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.view_screen, 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 |
create web engine and view | public BorderPane getMapView() {
final WebEngine webEngine = new WebEngine(getClass().getResource("/racesearcher/ui/map/map.html").toString());
final WebView webView = new WebView(webEngine);
// create map type buttons
final ToggleGroup mapTypeGroup = new ToggleGroup();
final ToggleButton road = new ToggleButton("Road");
road.setSelected(true);
road.setToggleGroup(mapTypeGroup);
final ToggleButton satellite = new ToggleButton("Satellite");
satellite.setToggleGroup(mapTypeGroup);
final ToggleButton hybrid = new ToggleButton("Hybrid");
hybrid.setToggleGroup(mapTypeGroup);
final ToggleButton terrain = new ToggleButton("Terrain");
terrain.setToggleGroup(mapTypeGroup);
mapTypeGroup.selectedToggleProperty().addListener(
new ChangeListener<Toggle>() {
public void changed(
ObservableValue<? extends Toggle> observableValue,
Toggle toggle, Toggle toggle1) {
if (road.isSelected()) {
webEngine.executeScript("document.setMapTypeRoad()");
} else if (satellite.isSelected()) {
webEngine.executeScript(
"document.setMapTypeSatellite()");
} else if (hybrid.isSelected()) {
webEngine.executeScript(
"document.setMapTypeHybrid()");
} else if (terrain.isSelected()) {
webEngine.executeScript(
"document.setMapTypeTerrain()");
}
}
});
Button zoomIn = new Button("Zoom In");
zoomIn.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent actionEvent) {
webEngine.executeScript("document.zoomIn()");
}
});
Button zoomOut = new Button("Zoom Out");
zoomOut.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent actionEvent) {
webEngine.executeScript("document.zoomOut()");
}
});
// create toolbar
ToolBar toolBar = new ToolBar();
toolBar.getStyleClass().add("map-toolbar");
toolBar.getItems().addAll(
road, satellite, hybrid, terrain,
createSpacer(),
new Label("Location:"), zoomIn, zoomOut);
// create root
BorderPane root = new BorderPane();
root.getStyleClass().add("map");
root.setCenter(webView);
root.setTop(toolBar);
return root;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initWebView(){ \r\n WebEngine webEngine = viewerPane.getEngine();\r\n webEngine.load(\"http://www.google.com\");\r\n }",
"private WebView createWebView() {\n WebView webView = new WebView();\n webView.setContextMenuEnabled(false);\n\n WebEngine engine = webView.getEngine();\n // The files below must exist! Or pdf viewer no more!\n String url = new File(\"src/Resources/pdfjs_2.7.570/web/viewer.html\").toURI().toString();\n\n engine.setJavaScriptEnabled(true);\n engine.load(url);\n\n\n engine.getLoadWorker()\n .stateProperty()\n .addListener(\n new ChangeListener<>() {\n @Override\n public void changed(ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) {\n JSObject window = (JSObject) engine.executeScript(\"window\");\n window.setMember(\"java\", null);\n engine.executeScript(\"console.log = function(message){ try {java.log(message);} catch(e) {} };\");\n\n if (newValue == Worker.State.SUCCEEDED) {\n try {\n PDFDisplayer.this.pdfJsLoaded = true;\n\n if (PDFDisplayer.this.loadScript != null) {\n engine.executeScript(PDFDisplayer.this.loadScript);\n }\n\n engine.executeScript(PDFDisplayer.this.toExecuteWhenPDFJSLoaded);\n PDFDisplayer.this.toExecuteWhenPDFJSLoaded = null;\n observable.removeListener(this);\n } catch (RuntimeException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n }\n });\n return webView;\n }",
"private void startWebApp(Handler<AsyncResult<HttpServer>> next) {\n Router router = Router.router(vertx);\n\n router.route(\"/assets/*\").handler(StaticHandler.create(\"assets\"));\n router.route(\"/api/*\").handler(BodyHandler.create());\n\n router.route(\"/\").handler(this::handleRoot);\n router.get(\"/api/timer\").handler(this::timer);\n router.post(\"/api/c\").handler(this::_create);\n router.get(\"/api/r/:id\").handler(this::_read);\n router.put(\"/api/u/:id\").handler(this::_update);\n router.delete(\"/api/d/:id\").handler(this::_delete);\n\n // Create the HTTP server and pass the \"accept\" method to the request handler.\n vertx.createHttpServer().requestHandler(router).listen(8888, next);\n }",
"public static void main(String[] args) throws Exception {\n URL webRootLocation = MainView.class.getResource(\"/webapp/\"); //src/masin\n URI webRootUri = webRootLocation.toURI();\n\n WebAppContext context = new WebAppContext();\n context.setBaseResource(Resource.newResource(webRootUri));\n context.setContextPath(\"/\");\n context.setAttribute(\"org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern\", \".*\");\n context.setConfigurationDiscovered(true);\n context.setConfigurations(new Configuration[]{\n new AnnotationConfiguration(),\n new WebInfConfiguration(),\n new WebXmlConfiguration(),\n new MetaInfConfiguration()\n });\n context.getServletContext().setExtendedListenerTypes(true);\n context.addEventListener(new ServletContextListeners());\n\n Server server = new Server(8080);\n server.setHandler(context);\n server.start();\n server.join();\n }",
"public interface IWebEngine {\n\n /**\n * Executes the specified JavaScript Command\n *\n * @param command The command to execute\n * @return The object returned by the script (if any).\n */\n public Object executeScript(String command);\n\n /**\n * Gets a worked which will be notified when a web page has finished\n * loading.\n *\n * @return The worker\n */\n public Worker<Void> getLoadWorker();\n\n /**\n * Loads the specified URL\n *\n * @param url The URL to load in the engine.\n */\n public void load(String url);\n\n}",
"private void createNewWebView()\n {\n //Remove the webView from it's parent if the webView exists\n if(webView != null) {\n ViewGroup parent = (ViewGroup) webView.getParent();\n parent.removeView(webView);\n }\n\n //Create a new WebView\n webView = new WebView(getContext());\n webView.setLayoutParams(new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT));\n\n //Add the new WebView to the webViewContainer\n webViewContainer.addView(webView);\n }",
"public static Result index() {\n\n String root = com.domain.root.Main.someString();\n String foo = com.domain.foo.Main.someString();\n String bar = com.domain.bar.Main.someString();\n String zee = com.domain.zee.Main.someString();\n\n return ok(index.render(\"Your new application is ready.\"));\n }",
"private static void initJspContext(WebAppContext webapp) throws IOException {\n File tempDir = new File(System.getProperty(\"java.io.tmpdir\"));\n File scratchDir = new File(tempDir.toString(),\"embedded-jetty-jsp\");\n\n if (!scratchDir.exists()) {\n if (!scratchDir.mkdirs()) {\n throw new IOException(\"Unable to create scratch directory: \" + scratchDir);\n }\n }\n\n webapp.setAttribute(\"javax.servlet.context.tempdir\",scratchDir);\n webapp.setAttribute(InstanceManager.class.getName(), new SimpleInstanceManager());\n \n\n //Ensure the jsp engine is initialized correctly\n JettyJasperInitializer sci = new JettyJasperInitializer();\n ServletContainerInitializersStarter sciStarter = new ServletContainerInitializersStarter(webapp);\n ContainerInitializer initializer = new ContainerInitializer(sci, null);\n List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();\n initializers.add(initializer);\n\n webapp.setAttribute(\"org.eclipse.jetty.containerInitializers\", initializers);\n webapp.addBean(sciStarter, true);\n\n // Add JSP Servlet (must be named \"jsp\")\n ServletHolder holderJsp = new ServletHolder(\"jsp\",JspServlet.class);\n holderJsp.setInitOrder(0);\n holderJsp.setInitParameter(\"logVerbosityLevel\",\"DEBUG\");\n holderJsp.setInitParameter(\"fork\",\"false\");\n holderJsp.setInitParameter(\"xpoweredBy\",\"false\");\n holderJsp.setInitParameter(\"compilerTargetVM\",\"1.7\");\n holderJsp.setInitParameter(\"compilerSourceVM\",\"1.7\");\n holderJsp.setInitParameter(\"keepgenerated\",\"true\");\n webapp.addServlet(holderJsp,\"*.jsp\");\n //context.addServlet(holderJsp,\"*.jspf\");\n //context.addServlet(holderJsp,\"*.jspx\");\n\t}",
"public abstract void createWebsite();",
"public static void main(String[] args) {\n webSocket(\"/forte\", WebSocketHandler.class);\n\n //indicar ruta de archivos publicos.\n staticFileLocation(\"/public\");\n //agregar pantalla de debug. Solo en desarrollo.\n enableDebugScreen();\n\n //freemarker template engine\n Configuration configuration = new Configuration();\n configuration.setClassForTemplateLoading(Main.class, \"/templates\");\n\n //aplicar filtros\n Filtros.iniciarFiltros();\n\n //iniciar db\n DBService.test();\n\n //crear usuario por default si no se ha creado ya\n GestorUsuarios.getInstance().editar(new Usuario(\"admin\",\"admin\",\"admin\",true,true));\n\n //Rutas\n get(\"/chat\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"chat\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n data.put(\"active_user\",Sesion.getUsuarioActivo(request));\n\n return new ModelAndView(data,\"chat_page.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/\", (request, response) -> {\n response.redirect(\"/page/1\");\n\n return \"\";\n });\n\n get(\"/page/:pageNumber\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"index\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n try {\n int page = Integer.parseInt(request.params(\"pageNumber\"));\n\n page = Math.max(1,page);\n\n data.put(\"articulos\",GestorArticulos.getInstance().find_page(page));\n\n if(GestorArticulos.getInstance().hasMoreArticles()) {\n data.put(\"proxima_pagina\", \"\" + (page + 1));\n }\n if(page > 1) {\n data.put(\"anterior_pagina\",\"\" + (page - 1));\n }\n\n\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n\n return new ModelAndView(data,\"index.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/tag/:etiqueta/\",(request, response) -> {\n String tag = request.params(\"etiqueta\");\n response.redirect(\"/tag/\" + tag + \"/page/1\");\n\n return \"\";\n });\n\n get(\"/tag/:etiqueta/page/:pageNumber\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"index\");\n data.put(\"loggedIn\",Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n try {\n int page = Integer.parseInt(request.params(\"pageNumber\"));\n page = Math.max(1,page);\n\n String tag = request.params(\"etiqueta\");\n\n data.put(\"articulos\",GestorArticulos.getInstance().find_by_tag(page,tag));\n\n if(GestorArticulos.getInstance().hasMoreArticles()) {\n data.put(\"proxima_pagina\", \"\" + (page + 1));\n }\n if(page > 1) {\n data.put(\"anterior_pagina\",\"\" + (page - 1));\n }\n\n\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n\n return new ModelAndView(data,\"index.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n\n get(\"/admin/user/list\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"list_users\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n //obtener los usuarios\n data.put(\"usuarios\", GestorUsuarios.getInstance().findAll());\n\n return new ModelAndView(data,\"user_list.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/admin/user/delete/:username\",(request, response) -> {\n String username = request.params(\"username\");\n\n Usuario target = GestorUsuarios.getInstance().find(username);\n\n if(target != null) {\n //borrar\n if(GestorUsuarios.getInstance().eliminar(target)) {\n target = null;\n }\n }\n //redireccionar\n response.redirect(\"/admin/user/list\");\n\n return \"\";\n });\n\n get(\"/admin/user/edit/:username\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"edit_user\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n String username = request.params(\"username\");\n Usuario target = GestorUsuarios.getInstance().find(username);\n\n if(target == null) {\n //redireccionar por error\n response.redirect(\"/admin/user/list\");\n }\n else {\n //setear datos para llenar formulario\n data.put(\"username\",target.getUsername());\n data.put(\"nombre\",target.getNombre());\n\n if(target.isAdministrador()) {\n data.put(\"esAdministrador\",\"si\");\n }\n else {\n if (target.isAutor()) {\n data.put(\"esAutor\", \"si\");\n }\n else {\n data.put(\"esLector\", \"si\");\n }\n }\n }\n\n return new ModelAndView(data,\"register_edit_user.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/admin/user/edit\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"edit_user\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n String username = request.queryParams(\"username\");\n Usuario target = GestorUsuarios.getInstance().find(username.trim());\n\n if(target == null) {\n //redireccionar por error\n response.redirect(\"/admin/user/list\");\n }\n else {\n //tratar de actualizar usuario\n String password = request.queryParams(\"password\");\n String nombre = request.queryParams(\"nombre\");\n boolean esAdministrador = request.queryParams(\"type\").contentEquals(\"administrador\");\n boolean esAutor = request.queryParams(\"type\").contentEquals(\"autor\") || esAdministrador;\n\n //actulizar usuario\n target = new Usuario(username,password,nombre,esAdministrador,esAutor);\n\n if(GestorUsuarios.getInstance().editar(target)) {\n //redireccionar\n response.redirect(\"/admin/user/list\");\n }\n else {\n //setear datos para llenar formulario\n data.put(\"username\", target.getUsername());\n data.put(\"nombre\", target.getNombre());\n if (target.isAdministrador()) {\n data.put(\"esAdministrador\", \"si\");\n }\n else {\n if (target.isAutor()) {\n data.put(\"esAutor\", \"si\");\n } else {\n data.put(\"esLector\", \"si\");\n }\n }\n\n data.put(\"msg_type\", \"error\");\n data.put(\"msg\", \"Hubo un error con el formulario. Revisa los campos.\");\n }\n }\n\n return new ModelAndView(data,\"register_edit_user.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n\n get(\"/article/new\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"new_article\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n return new ModelAndView(data,\"create_edit_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/article/new\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"new_article\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n String titulo = request.queryParams(\"titulo\");\n String cuerpo = request.queryParams(\"cuerpo\");\n String raw_etiquetas = request.queryParams(\"etiquetas\");\n\n //Crear articulo en el gestor\n Articulo nuevo = new Articulo();\n nuevo.setTitulo(titulo);\n nuevo.setCuerpo(cuerpo);\n nuevo.setAutor(GestorUsuarios.getInstance().find(Sesion.getUsuarioActivo(request)));\n nuevo.setFecha(new java.sql.Date(Calendar.getInstance().getTimeInMillis()));\n boolean exito = GestorArticulos.getInstance().crear(nuevo);\n\n if(exito) {\n //si se creo el articulo, crear las etiquetas\n Set<String> etiquetas = GestorEtiquetas.parsearEtiquetas(raw_etiquetas);\n for(String str : etiquetas) {\n Etiqueta e = new Etiqueta();\n e.setEtiqueta(str);\n e.setArticulo(nuevo);\n\n GestorEtiquetas.getInstance().crear(e);\n }\n\n //redireccionar a vista con mis articulos\n response.redirect(\"/\");\n }\n else {\n data.put(\"titulo\",titulo);\n data.put(\"cuerpo\",cuerpo);\n data.put(\"etiquetas\",raw_etiquetas);\n\n data.put(\"msg_type\",\"error\");\n data.put(\"msg\",\"Hubo un error en el formulario\");\n }\n\n return new ModelAndView(data,\"create_edit_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/article/edit/:articulo_id\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"edit_article\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n String raw_id = request.params(\"articulo_id\");\n Articulo articulo = null;\n\n try {\n Long long_id = Long.parseLong(raw_id);\n articulo = GestorArticulos.getInstance().find(long_id);\n } catch(NumberFormatException e) {\n e.printStackTrace();\n }\n\n if (articulo != null) {\n data.put(\"id\",articulo.getId());\n data.put(\"cuerpo\",articulo.getCuerpo());\n data.put(\"titulo\",articulo.getTitulo());\n data.put(\"etiquetas\",GestorEtiquetas.joinListEtiquetdas(articulo.etiquetas()));\n }\n else {\n response.redirect(\"/\");\n }\n\n return new ModelAndView(data,\"create_edit_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/article/edit\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"edit_article\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n //obtener datos del form y del usuario activo\n String raw_id = request.queryParams(\"id\");\n long long_id = -1;\n boolean exito = true;\n\n String titulo = request.queryParams(\"titulo\");\n String cuerpo = request.queryParams(\"cuerpo\");\n String raw_etiquetas = request.queryParams(\"etiquetas\");\n\n try {\n long_id = Long.parseLong(raw_id.trim());\n\n Articulo ar = GestorArticulos.getInstance().find(long_id);\n ar.setTitulo(titulo);\n ar.setCuerpo(cuerpo);\n exito = GestorArticulos.getInstance().editar(ar);\n exito = exito && GestorEtiquetas.getInstance().crearEtiquetasByArticle(ar,raw_etiquetas);\n } catch (NumberFormatException e) {\n //TODO CAMBIAR MENSAJE DE EXITO\n e.printStackTrace();\n }\n\n if(exito) {\n response.redirect(\"/\");\n }\n else {\n data.put(\"id\",long_id);\n data.put(\"titulo\",titulo);\n data.put(\"cuerpo\",cuerpo);\n// data.put(\"etiquetas\",_GestorEtiquetas.cargarEtiquetas(long_id));\n\n data.put(\"msg_type\",\"error\");\n data.put(\"msg\",\"Hubo un error con el formulario.\");\n }\n\n return new ModelAndView(data,\"create_edit_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/article/delete/:article_id\", (request, response) -> {\n String raw_id = request.params(\"article_id\");\n\n try {\n long long_id = Long.parseLong(raw_id);\n\n Articulo articulo = GestorArticulos.getInstance().find(long_id);\n\n if(articulo != null) {\n GestorArticulos.getInstance().eliminar(articulo);\n }\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n\n response.redirect(\"/\");\n\n return \"\";\n });\n\n get(\"/article/view/:article_id\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"view_article\");\n data.put(\"loggedIn\",Sesion.isLoggedIn(request));\n data.put(\"currentUser\",Sesion.getUsuarioActivo(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n if(esAdmin) {\n data.put(\"isAdmin\",\"si\");\n }\n\n String raw_article_id = request.params(\"article_id\");\n boolean exito = false;\n\n try {\n long long_id = Long.parseLong(raw_article_id);\n\n Articulo articulo = GestorArticulos.getInstance().find(long_id);\n\n if(articulo != null) {\n data.put(\"articulo\", articulo);\n data.put(\"comentarios\",GestorComentarios.getInstance().findByArticle(articulo));\n\n\n data.put(\"num_likes\",GestorComentarios.getInstance().likeCount(articulo) + \"\");\n\n exito = true;\n }\n } catch (NumberFormatException e) {\n //TODO CAMBIAR MENSAJE DE EXCEPCION\n e.printStackTrace();\n }\n\n if(!exito) {\n response.redirect(\"/\");\n }\n\n return new ModelAndView(data,\"view_article.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n\n post(\"/comment/new\", (request, response) -> {\n if(!Sesion.isLoggedIn(request)) {\n response.redirect(\"/\");\n }\n\n String username = Sesion.getUsuarioActivo(request);\n String cuerpo_com = request.queryParams(\"comentario\");\n String raw_articulo_id = request.queryParams(\"articulo_id\");\n String voto = request.queryParams(\"voto\");\n\n boolean exito = false;\n\n try {\n long long_articulo_id = Long.parseLong(raw_articulo_id);\n\n Comentario comentario = new Comentario();\n comentario.setArticulo(GestorArticulos.getInstance().find(long_articulo_id));\n comentario.setComentario(cuerpo_com);\n comentario.setAutor(GestorUsuarios.getInstance().find(username));\n boolean esVotoBueno = (voto != null && voto.contentEquals(\"bueno\"));\n comentario.setVoto(esVotoBueno);\n\n GestorComentarios.getInstance().crear(comentario);\n exito = true;\n } catch (NumberFormatException e) {\n //TODO CAMBIAR MENSAJE DE EXCEPCION\n e.printStackTrace();\n }\n\n if(exito) {\n response.redirect(\"/article/view/\" + raw_articulo_id);\n }\n else {\n response.redirect(\"/\");\n }\n\n return \"\";\n });\n\n get(\"/comment/like/:comentario/:articulo\", (request, response) -> {\n if(!Sesion.isLoggedIn(request)) {\n response.redirect(\"/\");\n }\n\n String username = Sesion.getUsuarioActivo(request);\n String raw_comentario_id = request.params(\"comentario\");\n String articulo_id = request.params(\"articulo\");\n\n try {\n Long comentario_id = Long.parseLong(raw_comentario_id);\n\n Usuario usuario = GestorUsuarios.getInstance().find(username);\n Comentario comentario = GestorComentarios.getInstance().find(comentario_id);\n\n GestorLikesComentarios.getInstance().darLike(usuario, comentario);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n\n response.redirect(\"/article/view/\" + articulo_id.trim());\n return \"\";\n });\n\n get(\"/comment/delete/:article_id/:comment_id\", (request, response) -> {\n String raw_articulo_id = request.params(\"article_id\");\n\n long articulo_id = Long.parseLong(raw_articulo_id);\n Articulo ar = GestorArticulos.getInstance().find(articulo_id);\n\n boolean esAdministrador = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n boolean esAutor = false;\n if(ar != null) {\n esAutor = esAutor && ar.getAutor().getUsername() == Sesion.getUsuarioActivo(request);\n }\n\n if(esAutor || esAdministrador) {\n String comentario_id = request.params(\"comment_id\");\n\n try {\n long long_comentario_id = Long.parseLong(comentario_id);\n\n Comentario comentario = GestorComentarios.getInstance().find(long_comentario_id);\n GestorComentarios.getInstance().eliminar(comentario);\n } catch (NumberFormatException e) {\n //TODO CAMBIAR MENSAJE DE EXCEPCION\n e.printStackTrace();\n }\n }\n\n response.redirect(\"/article/view/\" + articulo_id);\n\n return \"\";\n });\n\n\n get(\"/logout\",(request, response) -> {\n WebSocketHandler.desconectar(Sesion.getUsuarioActivo(request));\n\n Sesion.cerrar(request);\n\n response.redirect(\"/\");\n\n return \"\";\n });\n\n get(\"/login\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"login\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n return new ModelAndView(data,\"login.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/login\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"login\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n if(!request.queryParams(\"submit\").isEmpty()) {\n //obtener datos de quien desea iniciar sesion\n String username = request.queryParams(\"username\");\n String password = request.queryParams(\"password\");\n\n if(GestorUsuarios.getInstance().credencialesValidas(username,password)) {\n Usuario user = GestorUsuarios.getInstance().find(username);\n //iniciar sesion\n Sesion.iniciar(request,user);\n\n //redireccionar con estado de exito\n response.redirect(\"/\");\n }\n else {\n //setear datos para llenar formulario\n data.put(\"username\",username);\n\n data.put(\"msg_type\",\"error\");\n data.put(\"msg\",\"No se pudo iniciar sesion. Username/password no coinciden.\");\n }\n }\n\n return new ModelAndView(data,\"login.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n get(\"/user/register\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"register\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n return new ModelAndView(data,\"register_edit_user.ftl\");\n }, new FreeMarkerEngine(configuration));\n\n post(\"/user/register\", (request, response) -> {\n HashMap<String,Object> data = new HashMap<>();\n data.put(\"action\",\"register\");\n data.put(\"loggedIn\", Sesion.isLoggedIn(request));\n boolean esAdmin = Sesion.accesoValido(AccessTypes.ADMIN_ONLY,request,null);\n data.put(\"isAutor\",Sesion.getTipoUsuarioActivo(request) == \"autor\" || esAdmin);\n\n //si el request llego desde el formulario\n if(!request.queryParams(\"submit\").isEmpty()) {\n //obtener datos de nuevo usuario\n String username = request.queryParams(\"username\");\n String password = request.queryParams(\"password\");\n String nombre = request.queryParams(\"nombre\");\n //no es administrador by default\n boolean esAutor = request.queryParams(\"type\").contentEquals(\"autor\"); //1 : autor, 0 : lector\n\n //crear nueva instancia\n Usuario newUser = new Usuario(username,password,nombre,false,esAutor);\n\n //persistir nueva instancia, en caso de ser valida\n if(GestorUsuarios.getInstance().crear(newUser)) {\n //redireccionar con mensaje de exito\n response.redirect(\"/\");\n }\n else {\n //setear datos para llenar formulario\n data.put(\"username\",newUser.getUsername());\n data.put(\"nombre\",newUser.getNombre());\n if(newUser.isAutor()) {\n data.put(\"esAutor\",\"si\");\n }\n else {\n data.put(\"esLector\",\"si\");\n }\n\n data.put(\"msg_type\",\"error\");\n data.put(\"msg\",\"No se pudo crear usuario. Revisar datos del formulario.\");\n }\n }\n\n return new ModelAndView(data,\"register_edit_user.ftl\");\n }, new FreeMarkerEngine(configuration));\n }",
"@SuppressLint(\"SetJavaScriptEnabled\")\n private void configWebView() {\n mWebView = new WebView(getApplicationContext());\n mWebViewContainer.addView(mWebView);\n WebSettings settings = mWebView.getSettings();\n\n // 设置无图模式\n //settings.setBlockNetworkImage(SPUtil.getBoolean(Constants.SETTING_NO_IMAGE));\n\n // 设置离线设置\n //boolean offline = SPUtil.getBoolean(Constants.SETTING_AUTO_DOWNLOAD);\n //settings.setAppCacheEnabled(offline);\n //settings.setDomStorageEnabled(offline);\n //settings.setDatabaseEnabled(offline);\n\n // 设置缓存模式\n //boolean netWorkAvailable = NetWorkUtil.isNetWorkAvailable(AppUtil.getAppContext());\n //settings.setCacheMode(netWorkAvailable ? WebSettings.LOAD_DEFAULT : WebSettings.LOAD_CACHE_ONLY);\n\n // 设置大号字体\n /* if (SPUtil.getBoolean(Constants.SETTING_BIG_FONT)) {\n settings.setMinimumFontSize(25);\n }*/\n\n // 激活java script\n settings.setJavaScriptEnabled(true);\n\n // 充满全屏\n settings.setLoadWithOverviewMode(true);\n\n // 适配移动端屏幕\n settings.setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);\n\n // 支持缩放\n settings.setSupportZoom(true);\n settings.setBuiltInZoomControls(true);\n\n // 设置可以访问文件内容\n settings.setAllowContentAccess(true);\n\n // 设置夜景模式\n //mWebView.setDayOrNight(!isNightMode());\n }",
"public static void index() {\r\n render();\r\n }",
"public void exec() {\n\n try {\n\n String webDotXMLPath = webAppPath + \"/WEB-INF/web.xml\";\n DocumentBuilderFactory builderFactory = DocumentBuilderFactory\n .newInstance();\n\n DocumentBuilder builder = DocumentBuilderFactory.newInstance()\n .newDocumentBuilder();\n Document doc = builder.parse(new File(webDotXMLPath));\n DocumentType docType = doc.getDoctype();\n if (docType != null) {\n doc.removeChild(docType);\n }\n Element webAppElement = (Element) doc.getFirstChild();\n webAppElement.setAttribute(\"version\", \"2.4\");\n webAppElement.setAttribute(\"xmlns\",\n \"http://java.sun.com/xml/ns/j2ee\");\n webAppElement.setAttribute(\"xmlns:xsi\",\n \"http://www.w3.org/2001/XMLSchema-instance\");\n webAppElement\n .setAttribute(\n \"xsi:schemaLocation\",\n \"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd\");\n\n OutputFormat of = new OutputFormat();\n of.setIndenting(true);\n of.setIndent(4); // 2-space indention\n of.setLineWidth(16384);\n\n OutputStream outputStream = new FileOutputStream(webDotXMLPath);\n Writer writer = new OutputStreamWriter(outputStream, \"utf-8\");\n\n XMLSerializer serializer = new XMLSerializer(writer, of);\n serializer.serialize(doc);\n\n writer.close();\n\n } catch (Exception e) {\n throw new RuntimeException(\"Processing failed\", e);\n }\n\n }",
"public static void create() {\r\n render();\r\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n\n // Create the WebEngine\n final WebEngine web = webView.getEngine();\n String urlweb=\"http://google.com\";\n\n // LOad the Start-Page\n web.load(urlweb);\n \n }",
"@Test\n public void testTemplate2() throws Exception {\n TemplateWebApplication webApp = new TemplateWebApplication(\"src/main/template2\");\n webApp.initialize();\n webApp.start();\n\n TemplateHttpServletRequest request = new TemplateHttpServletRequest();\n request.setWebApplication(webApp);\n request.setContextPath(\"\");\n request.setServletPath(\"/index.html\");\n request.setPathInfo(null);\n\n TemplateHttpServletResponse response = new TemplateHttpServletResponse();\n TemplateServletOutputStream outputStream = new TemplateServletOutputStream();\n response.setOutputStream(outputStream);\n outputStream.setResponse(response);\n\n webApp.service(request, response);\n\n assertEquals(200, response.getStatus());\n String responseString = new String(response.getResponseBody());\n assertTrue(responseString.contains(\"Hello Mojarra\"));\n }",
"private void setupWebView() {\n\t\twebView = (WebView) findViewById(R.id.webview);\n\t\twebView.getSettings().setJavaScriptEnabled(true);\n\t\twebView.addJavascriptInterface(new JavaScriptInterface(this), \"Android\");\n\t\twebView.loadUrl(MAP_URL);\n\t}",
"public void initEasyJWeb() {\r\n\t\tlogger.info(I18n.getLocaleMessage(\"core.execute.EasyJWeb.initialization.applications\"));\r\n\t\tif (resourceLoader == null) {\r\n\t\t\tif (servletContext != null)\r\n\t\t\t\tresourceLoader = new ServletContextResourceLoader(\r\n\t\t\t\t\t\tservletContext);\r\n\t\t\telse\r\n\t\t\t\tresourceLoader = new FileResourceLoader();\r\n\t\t}\r\n\t\tinitContainer();\r\n\t\tFrameworkEngine.setWebConfig(webConfig);// 初始化框架工具\r\n\t\tFrameworkEngine.setContainer(container);// 在引擎中安装容器\r\n\t\tAjaxUtil.setServiceContainer(new AjaxServiceContainer(container));// 初始化Ajax容器服务\r\n\t\tinitTemplate(); // 初始化模版\r\n\t\tinvokeApps();// 在应用启动的时候启动一些配置好的应用\r\n\t\thaveInitEasyJWeb = true;\r\n\t\tlogger.info(I18n.getLocaleMessage(\"core.EasyJWeb.initialized\"));\r\n\t}",
"public static void main(String[] args) { //type “psvm + tab” to autocreate this\n // directing the server to immediate files it should access. Just like index\n staticFileLocation(\"/public\");\n\n\n // routes as per their handlebars templates. Make sure to read and understand what they do\n get(\"/\", (req, res) -> {\n Map<String, Object> model = new HashMap<>();\n return new ModelAndView(model, \"index.hbs\");\n }, new HandlebarsTemplateEngine());\n\n get(\"/animalnew\", (request, response) -> {\n Map<String, Object> model = new HashMap<>();\n return new ModelAndView(model, \"animalForm.hbs\");\n }, new HandlebarsTemplateEngine());\n\n get(\"/endangerednew\", (request, response) -> {\n Map<String, Object> model = new HashMap<>();\n return modelAndView(model,\"endangeredForm.hbs\");\n }, new HandlebarsTemplateEngine());\n\n get(\"/sightingsnew\", (request, response) -> {\n Map<String, Object> model = new HashMap<>();\n return modelAndView(model,\"sightingsForm.hbs\");\n }, new HandlebarsTemplateEngine());\n\n get(\"/animals\", (request, response) -> {\n Map<String, Object> model = new HashMap<>();\n List peter = Endangered.relative_All();\n System.out.println(peter.get(0));\n model.put(\"endangered\", peter);\n return modelAndView(model, \"endangered.hbs\");\n }, new HandlebarsTemplateEngine());\n\n\n get(\"/sightings\", (request, response) -> {\n Map<String, Object> model = new HashMap<>();\n return modelAndView(model, \"sightings.hbs\");\n }, new HandlebarsTemplateEngine());\n\n get(\"/saved\", (request, response) -> {\n Map<String, Object> model = new HashMap<>();\n List sightings = Sightings.retrieveFromSightings();\n model.put(\"sightings\", sightings);\n return new ModelAndView(model,\"sight.hbs\");\n }, new HandlebarsTemplateEngine());\n\n\n get(\"/newanimal\", (request, response) -> {\n Map<String, Object> model = new HashMap<>();\n List animal = Animal.relative_All();\n model.put(\"animals\", animal);\n return new ModelAndView(model, \"wildlife.hbs\");\n }, new HandlebarsTemplateEngine());\n\n get(\"/animals/:id/edit\", (request, response) -> {\n Map<String, Object> model = new HashMap<String, Object>();\n model.put(\"animal\", Animal.find(Integer.parseInt(request.params(\":id\"))));\n return new ModelAndView(model, \"editForm.hbs\");\n }, new HandlebarsTemplateEngine());\n\n\n get(\"/animals/:id/delete\", (request, response) -> {\n Map<String, Object> model = new HashMap<String, Object>();\n Animal.find(Integer.parseInt(request.params(\":id\"))).delete();\n response.redirect(\"/animals\");\n return null;\n }, new HandlebarsTemplateEngine());\n\n\n post(\"/animals/:id/edit\", (request, response) -> {\n Map<String, Object> model = new HashMap<String, Object>();\n int id = Integer.parseInt(request.params(\":id\"));\n String name = request.queryParams(\"name\");\n Animal animal = Animal.find(id);\n animal.setName(name);\n animal.update();\n return new ModelAndView(model, \"ess.hbs\");\n }, new HandlebarsTemplateEngine());\n\n\n post(\"/succ\", (req, res) -> { //new\n Map<String, Object> model = new HashMap<>();\n String animalname = req.queryParams(\"animalname\");\n String rangername = req.queryParams(\"ranger\");\n String location = req.queryParams(\"location\");\n Sightings sightings = new Sightings(animalname,rangername,location);\n sightings.save();\n model.put(\"sightings\", sightings);\n return modelAndView(model, \"succ.hbs\");\n }, new HandlebarsTemplateEngine());\n\n\n\n //post methods\n post(\"/success\", (req, res) -> {\n Map<String, Object> model = new HashMap<>();\n String name = req.queryParams(\"name\");\n String health = req.queryParams(\"health\");\n String age = req.queryParams(\"age\");\n Endangered endangered = new Endangered(name, health, age);\n endangered.save();\n System.out.println(\"Please enter all input fields.\");\n return new ModelAndView(model,\"success.hbs\");\n }, new HandlebarsTemplateEngine());\n\n post(\"/wildlife\", (req, res) -> {\n Map<String, Object> model = new HashMap<>();\n String name = req.queryParams(\"name\");\n Animal animal = new Animal(name);\n animal.save();\n return new ModelAndView(model,\"ess.hbs\");\n }, new HandlebarsTemplateEngine());\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_terms_and_condition, container, false);\n\n\n webView = (WebView) view.findViewById(R.id.webView);\n // displaying content in WebView from html file that stored in assets folder\n webView.getSettings().setJavaScriptEnabled(true);\n //webView.loadUrl(\"file:///android_res/raw/\" + \"terms_and_condition.html\");\n if (AppController.isBaseUrl) {\n webView.loadUrl(AppController.devURL + AppController.terms_and_conditions);\n } else {\n webView.loadUrl(AppController.prodURL + AppController.terms_and_conditions);\n }\n return view;\n }",
"public static void main(String[] args){\n //WebFactory.setLoaderFactory(() -> new HelperLoader());\n launch(args);\n }",
"AppengineWebAppType createAppengineWebAppType();",
"@Override\r\n\tpublic String executa(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\treturn \"view/home.html\";\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_gui_ge_xq, container, false);\n WebView webView= (WebView) inflate.findViewById(R.id.webView_gg);\n\n webView.getSettings().setJavaScriptEnabled(true);\n// webView.getSettings().setLayoutAlgorithm(WebSettings.LayoutAlgorithm.SINGLE_COLUMN);\n webView.loadUrl(\"http://product.suning.com/pds-web/product/graphicDetailsApp/0000000000/102295661/10051/R9000413/1.html\");\n return inflate;\n\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.wbview1);\n \n //String rawHTML = \"<HTML>\"+ \n // \t \"<body><h1>Hello Android </h1></body>\"+ \n \t// \"</HTML>\";\n \n mWebView = (WebView) findViewById(R.id.webview);\n mWebView.getSettings().setJavaScriptEnabled(true);\n mWebView.setWebViewClient(new WebViewClient1()); \n //mWebView.loadData(rawHTML, \"text/HTML\", \"UTF-8\");\n \n mWebView.loadUrl(\"file:///android_asset/www/sunburst.html\");\n }",
"@SuppressLint(\"JavascriptInterface\")\nprivate void setupWebView(){ \n \n webView = (WebView) findViewById(R.id.webview01); \n webView.getSettings().setJavaScriptEnabled(true); \n webView.setWebViewClient(new WebViewClient()); \n webView.loadUrl(MAP_URL); \n \n /** Allows JavaScript calls to access application resources **/ \n webView.addJavascriptInterface(new JavaScriptInterface(), \"android\"); \n \n }",
"@Ignore\n @Test\n public void renderTemplate() {\n\n Content html = views.html.index.render(\"Your new application is ready.\");\n assertThat(html.contentType(), is(\"text/html\"));\n assertThat(contentAsString(html), containsString(\"Your new application is ready.\"));\n }",
"protected void setUpView() throws Exception\n {\n UIViewRoot root = new UIViewRoot();\n root.setViewId(\"/viewId\");\n root.setRenderKitId(RenderKitFactory.HTML_BASIC_RENDER_KIT);\n facesContext.setViewRoot(root);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_web_view, container, false);\n ButterKnife.bind(this, view);\n\n getDataFromBundle();\n wvHomepage.setWebViewClient(new WebViewClient());\n wvHomepage.loadUrl(url);\n\n return view;\n }",
"private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}",
"public Preparation(){\n\t\ttry {\n\t\t\t\n\t\t\tValueObjectRetrieve valueObjectRetrieve = new ValueObjectRetrieve(\"StaticData\",new Integer(1),remotehosturi);\n\t\t\tStaticData staticData = (StaticData)valueObjectRetrieve.getValueObject();\n\t\t\tHttpPost httpPost = new HttpPost(\"name\",nameofj2eeproject,null,remotehosturi,\"J2eeProject\");\n\t\t\tSystem.err.println(httpPost.isOk());\n\t\t\t\n\t\t\tFile file = new File(eclipseroot + nameofj2eeproject + \"/mda\");\n\t\t\tfile.mkdir();\n\t\t\t\n\t\t\tFile webxmlfile = new File(eclipseroot + nameofj2eeproject + \"/WEB-INF/web.xml\");\n\t\t\t\n\t\t\tFileDownload fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/base.css\",remotehosturi + \"/base.css\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/createscheme.bat\",remotehosturi + \"/mda/createscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/dropscheme.bat\",remotehosturi + \"/mda/dropscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/h.jsp\",remotehosturi + \"/h.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/index.jsp\",remotehosturi + \"/index.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/menu.jsp\",remotehosturi + \"/menu.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/mysql-connector-java-3.1.12-bin.jar\",remotehosturi + \"/mda/mysql-connector-java-3.1.12-bin.jar\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/systemheader.jsp\",remotehosturi + \"/systemheader.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/web.xml\",remotehosturi + \"/WEB-INF/web.xml\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/.classpath\",remotehosturi + \"/.classpath\");\n\n\t\t\t \n\t\t\tHttpClient httpClient = new HttpClient(); \n\t\t\tGetMethod getMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/copycorejar.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString contentofcopycorejat_bat = getMethod.getResponseBodyAsString();\n\t\t\tcontentofcopycorejat_bat = contentofcopycorejat_bat.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile copycorejat_batfile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\tFileWriter writer = new FileWriter(copycorejat_batfile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n\t\t\t\n\t\t\thttpClient = new HttpClient(); \n\t\t\tgetMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/createscheme.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString content = getMethod.getResponseBodyAsString();\n\t\t\tcontent = content.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile instancefile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\twriter = new FileWriter(instancefile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n//\t\t\tFile base_css = new File(eclipseroot + nameofj2eeproject + \"base.css\");\n\t\t\t\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public interface IMainRendererFactory {\n\t\n\t/**\n\t * Return the render.\n\t * @param view the view for this render.\n\t */\n\tRenderer getRenderer(String view);\n\t\n\t/**\n\t * The extension of the view.\n\t * <p>\n\t * It must start with dot char \".\"\n\t * Example: \".html\" or \".ftl\"\n\t * </p>\n\t */\n\tString getViewExtension();\n}",
"public WebpageFactoryImpl() {\n\t\tsuper();\n\t}",
"public Object generateContent(PhpWebEnvironment webEnv)\r\n throws IOException, ServletException {\r\n super.startBlock(\"__wp_admin_upgrade_block1\");\r\n gVars.webEnv = webEnv;\r\n gConsts.setWP_INSTALLING(true);\r\n\r\n if (!FileSystemOrSocket.file_exists(gVars.webEnv, \"../wp-config.php\")) {\r\n System.exit(\r\n \"There doesn\\'t seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href=\\'http://codex.wordpress.org/Installing_WordPress#Step_3:_Set_up_wp-config.php\\'>We got it</a>. You can create a <code>wp-config.php</code> file through a web interface, but this doesn\\'t work for all server setups. The safest way is to manually create the file.</p><p><a href=\\'setup-config.php\\' class=\\'button\\'>Create a Configuration File</a>\");\r\n }\r\n\r\n require(gVars, gConsts, Wp_configPage.class);\r\n getIncluded(Wp_settingsPage.class, gVars, gConsts).timer_start();\r\n\r\n /* Condensed dynamic construct */\r\n requireOnce(gVars, gConsts, UpgradePage.class);\r\n\r\n if (isset(gVars.webEnv._GET.getValue(\"step\"))) {\r\n gVars.step = intval(gVars.webEnv._GET.getValue(\"step\"));\r\n } else {\r\n gVars.step = 0;\r\n }\r\n\r\n Network.header(\r\n gVars.webEnv,\r\n \"Content-Type: \" + getIncluded(FunctionsPage.class, gVars, gConsts).get_option(\"html_type\") + \"; charset=\" + getIncluded(FunctionsPage.class, gVars, gConsts).get_option(\"blog_charset\"));\r\n\r\n /* Start of block */\r\n super.startBlock(\"__wp_admin_upgrade_block2\");\r\n getIncluded(General_templatePage.class, gVars, gConsts).language_attributes(\"html\");\r\n\r\n /* Start of block */\r\n super.startBlock(\"__wp_admin_upgrade_block3\");\r\n getIncluded(General_templatePage.class, gVars, gConsts).bloginfo(\"html_type\");\r\n\r\n /* Start of block */\r\n super.startBlock(\"__wp_admin_upgrade_block4\");\r\n echo(gVars.webEnv, getIncluded(FunctionsPage.class, gVars, gConsts).get_option(\"blog_charset\"));\r\n\r\n /* Start of block */\r\n super.startBlock(\"__wp_admin_upgrade_block5\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"WordPress › Upgrade\", \"default\");\r\n\r\n /* Start of block */\r\n super.startBlock(\"__wp_admin_upgrade_block6\");\r\n getIncluded(General_templatePage.class, gVars, gConsts).wp_admin_css(\"css/install\");\r\n\r\n /* Start of block */\r\n super.startBlock(\"__wp_admin_upgrade_block7\");\r\n\r\n if (equal(getIncluded(FunctionsPage.class, gVars, gConsts).get_option(\"db_version\"), gVars.wp_db_version)) {\r\n echo(gVars.webEnv, \"\\n<h2>\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"No Upgrade Required\", \"default\");\r\n echo(gVars.webEnv, \"</h2>\\n<p>\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"Your WordPress database is already up-to-date!\", \"default\");\r\n echo(gVars.webEnv, \"</p>\\n<h2 class=\\\"step\\\"><a href=\\\"\");\r\n echo(gVars.webEnv, getIncluded(FunctionsPage.class, gVars, gConsts).get_option(\"home\"));\r\n echo(gVars.webEnv, \"/\\\">\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"Continue\", \"default\");\r\n echo(gVars.webEnv, \"</a></h2>\\n\\n\");\r\n } else {\r\n switch (gVars.step) {\r\n case 0: {\r\n gVars.goback = Strings.stripslashes(gVars.webEnv, getIncluded(FunctionsPage.class, gVars, gConsts).wp_get_referer());\r\n gVars.goback = getIncluded(FormattingPage.class, gVars, gConsts).clean_url(gVars.goback, null, \"url\");\r\n gVars.goback = URL.urlencode(gVars.goback);\r\n echo(gVars.webEnv, \"<h2>\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"Database Upgrade Required\", \"default\");\r\n echo(gVars.webEnv, \"</h2>\\n<p>\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"Your WordPress database is out-of-date, and must be upgraded before you can continue.\", \"default\");\r\n echo(gVars.webEnv, \"</p>\\n<p>\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"The upgrade process may take a while, so please be patient.\", \"default\");\r\n echo(gVars.webEnv, \"</p>\\n<h2 class=\\\"step\\\"><a href=\\\"upgrade.php?step=1&backto=\");\r\n echo(gVars.webEnv, gVars.goback);\r\n echo(gVars.webEnv, \"\\\">\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"Upgrade WordPress\", \"default\");\r\n echo(gVars.webEnv, \"</a></h2>\\n\");\r\n\r\n break;\r\n }\r\n\r\n case 1: {\r\n (((org.numiton.nwp.wp_admin.includes.UpgradePage) getIncluded(org.numiton.nwp.wp_admin.includes.UpgradePage.class, gVars, gConsts))).wp_upgrade();\r\n\r\n if (empty(gVars.webEnv._GET.getValue(\"backto\"))) {\r\n backto = strval((((org.numiton.nwp.wp_admin.includes.UpgradePage) getIncluded(org.numiton.nwp.wp_admin.includes.UpgradePage.class, gVars, gConsts))).__get_option(\"home\")) + \"/\";\r\n } else {\r\n backto = Strings.stripslashes(gVars.webEnv, URL.urldecode(strval(gVars.webEnv._GET.getValue(\"backto\"))));\r\n backto = getIncluded(FormattingPage.class, gVars, gConsts).clean_url(backto, null, \"url\");\r\n }\r\n\r\n echo(gVars.webEnv, \"<h2>\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"Upgrade Complete\", \"default\");\r\n echo(gVars.webEnv, \"</h2>\\n\\t<p>\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"Your WordPress database has been successfully upgraded!\", \"default\");\r\n echo(gVars.webEnv, \"</p>\\n\\t<h2 class=\\\"step\\\"><a href=\\\"\");\r\n echo(gVars.webEnv, backto);\r\n echo(gVars.webEnv, \"\\\">\");\r\n getIncluded(L10nPage.class, gVars, gConsts)._e(\"Continue\", \"default\");\r\n echo(gVars.webEnv, \"</a></h2>\\n\\n<!--\\n<pre>\\n\");\r\n QStrings.printf(gVars.webEnv, getIncluded(L10nPage.class, gVars, gConsts).__(\"%s queries\", \"default\"), gVars.wpdb.num_queries);\r\n echo(gVars.webEnv, \"\\n\");\r\n QStrings.printf(gVars.webEnv, getIncluded(L10nPage.class, gVars, gConsts).__(\"%s seconds\", \"default\"), getIncluded(Wp_settingsPage.class, gVars, gConsts).timer_stop(0, 3));\r\n echo(gVars.webEnv, \"</pre>\\n-->\\n\\n\");\r\n\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return DEFAULT_VAL;\r\n }",
"public WebServer()\n {\n if (!Variables.exists(\"w_DebugLog\"))\n Variables.setVariable(\"w_DebugLog\", true);\n\n if (!Variables.exists(\"w_Port\"))\n Variables.setVariable(\"w_Port\", 80);\n\n if (!Variables.exists(\"w_NetworkBufferSize\"))\n Variables.setVariable(\"w_NetworkBufferSize\", 2048);\n\n PORT = Variables.getInt(\"w_Port\");\n DEBUG = Variables.getBoolean(\"w_DebugLog\");\n BUFFER_SIZE = Variables.getInt(\"w_NetworkBufferSize\");\n }",
"private static FreeMarkerEngine createEngine() {\n Configuration config = new Configuration();\n File templates = new File(\"src/main/resources/spark/template/freemarker\");\n try {\n config.setDirectoryForTemplateLoading(templates);\n } catch (IOException ioe) {\n System.out.printf(\"ERROR: Unable use %s for template loading.%n\", templates);\n System.exit(1);\n }\n return new FreeMarkerEngine(config);\n }",
"@Override\n public void actionPerformed(AnActionEvent e) {\n SwingUtilities.invokeLater(()->{\n JFrame frame = new JFrame(\"JavaFX in Swing\");\n JFXPanel jfxPanel = new JFXPanel();\n frame.setLayout(new BorderLayout());\n frame.add(jfxPanel, BorderLayout.CENTER);\n /*PlatformImpl.startup(()->{\n\n });*/\n Platform.runLater(()->{\n BrowserService browserService = ServiceManager.getService(e.getProject(), BrowserService.class);\n WebView webView = new WebView();//browserService.getWebView();\n Scene scene = new Scene(webView);\n WebEngine webEngine = webView.getEngine();\n //webEngine.load(\"http://172.28.1.2:8087/rxtool/login\");\n webEngine.load(\"http://www.baidu.com\");\n jfxPanel.setScene(scene);\n });\n frame.setSize(1000,800);\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n });\n }",
"boolean generateEmbeddableWebComponents();",
"void addRenderEngine(String context, LoginRenderEngine vengine);",
"@Override\r\n\tpublic void index() {\n\t\trender(\"index.jsp\");\r\n\t}",
"private void setupJspHandler(WebAppContext context) throws IOException {\n JettyJasperInitializer sci = new JettyJasperInitializer();\n\n ServletContainerInitializersStarter sciStarter = new ServletContainerInitializersStarter(context);\n ContainerInitializer initializer = new ContainerInitializer(sci, null);\n List<ContainerInitializer> initializers = new ArrayList<ContainerInitializer>();\n initializers.add(initializer);\n context.setAttribute(\"org.eclipse.jetty.containerInitializers\", initializers);\n context.addBean(sciStarter, true);\n System.setProperty(\"org.apache.jasper.compiler.disablejsr199\",\"false\");\n\n // Set Classloader of Context to be sane (needed for JSTL)\n // JSP requires a non-System classloader, this simply wraps the\n // embedded System classloader in a way that makes it suitable\n // for JSP to use\n ClassLoader jspClassLoader = new URLClassLoader(new URL[0], this.getClass().getClassLoader());\n context.setClassLoader(jspClassLoader);\n\n // Add JSP Servlet (must be named \"jsp\")\n ServletHolder holderJsp = new ServletHolder(\"jsp\", JettyJspServlet.class);\n holderJsp.setInitOrder(0);\n holderJsp.setInitParameter(\"logVerbosityLevel\",\"INFO\");\n holderJsp.setInitParameter(\"fork\",\"false\");\n holderJsp.setInitParameter(\"xpoweredBy\",\"false\");\n holderJsp.setInitParameter(\"compilerTargetVM\",\"1.8\");\n holderJsp.setInitParameter(\"compilerSourceVM\",\"1.8\");\n holderJsp.setInitParameter(\"keepgenerated\",\"true\");\n context.addServlet(holderJsp, \"*.jsp\");\n }",
"Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}",
"public View runStartUp() {\r\n Controller contr = new Controller();\r\n contr.addObserver(InspectionStatsView.getObserver());\r\n Logger firstLogger = new FileLogger();\r\n return new View(contr, firstLogger);\r\n }",
"private void setupWebView(){\n \t\n\t\twebView = (WebView) findViewById(R.id.webview);\n\t\twebView.getSettings().setJavaScriptEnabled(true);\n\t\t/** Create an WebViewClient to add and remove an progress dialog*/\n\t\twebView.setWebViewClient(new WebViewClient() {\n\t\t\t@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tshowDialog(PROGRESS_DIALOG);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onPageFinished(WebView view, String url) {\n\t\t\t\tremoveDialog(PROGRESS_DIALOG); \n\t\t\t}\n\t\t});\n\t\twebView.loadUrl(MAP_URL);\n\t}",
"Page createPage();",
"private void buildPebbleEngine () {\n Builder builder = new PebbleEngine.Builder();\r\n\r\n // Add bundle specific loader\r\n builder.loader(loader);\r\n\r\n // Add page extensions\r\n Extension pageExtension = new AbstractExtension() {\r\n @Override\r\n public List<TokenParser> getTokenParsers() {\r\n List<TokenParser> parsers = new ArrayList<>();\r\n parsers.add(new Entity2TokenParser(loader));\r\n return parsers;\r\n }\r\n };\r\n builder.extension(pageExtension);\r\n \r\n // Build the Pebble engine\r\n pebbleEngine = builder.build();\r\n }",
"private static void initFX(final JFXPanel fxPanel) {\n Group group = new Group();\n Scene scene = new Scene(group);\n fxPanel.setScene(scene);\n\n webView = new WebView();\n\n group.getChildren().add(webView);\n webView.setMinSize(300, 300);\n webView.setPrefSize(850, 600);\n webView.setMaxSize(850, 600);\n\n webView.getEngine().setJavaScriptEnabled(true); //allows us to run JS code\n\n //START\n webView.getEngine().setOnAlert(new EventHandler<WebEvent<String>>() {\n @Override\n public void handle(WebEvent<String> event) {\n JOptionPane.showMessageDialog(\n fxPanel,\n event.getData(),\n \"Alert Message\",\n JOptionPane.ERROR_MESSAGE);\n }\n });\n\n webView.getEngine().getLoadWorker().stateProperty().addListener((observable, oldValue, newValue) ->\n {\n JSObject window = (JSObject) webView.getEngine().executeScript(\"window\");\n window.setMember(\"java\", bridge2);\n webView.getEngine().executeScript(\"console.log = function(message)\\n\" +\n \"{\\n\" +\n \" java.log(message);\\n\" +\n \"};\");\n });\n //END\n\n // Obtain the webEngine to navigate\n WebEngine webEngine = webView.getEngine();\n //solves Captcha problem\n //webEngine.setUserAgent(\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36\");\n webEngine.load(\"https://yandex.ru\"); //sets the start page for the application\n }",
"YARRWebAppInterface(Context c, WebView webView) {\n mContext = c;\n mWebView = webView;\n }",
"@Test\n public void testTemplate1() throws Exception {\n TemplateWebApplication webApp = new TemplateWebApplication(\"src/main/template1\");\n webApp.initialize();\n webApp.start();\n\n TemplateHttpServletRequest request = new TemplateHttpServletRequest();\n request.setWebApplication(webApp);\n request.setContextPath(\"\");\n request.setServletPath(\"/faces\");\n request.setPathInfo(\"/notfound.html\");\n\n TemplateHttpServletResponse response = new TemplateHttpServletResponse();\n TemplateServletOutputStream outputStream = new TemplateServletOutputStream();\n response.setOutputStream(outputStream);\n outputStream.setResponse(response);\n\n webApp.service(request, response);\n\n assertEquals(404, response.getStatus());\n }",
"public WebSession(){\n\tstartmodel = new StartModel();\n\tgraphmodel = new GraphModel();\n\treportmodel = new ReportModel();\n\tsetupmodel = new SetupModel();\n }",
"private void setUpWebView() {\n setWebViewClient(new MPulseInboxWebViewClient());\n setWebChromeClient(new MPulseInboxWebChromeClient());\n configureWebViewSettings();\n }",
"public static Result index() {\n return ok(index.render(\"Welcome to the UW-La Crosse Eco Warehouse.\"));\n }",
"public RunMVC() {\n\n\t\t//cria o Modelo e a Visao\n\t\tModel myModel \t= new Model();\n\t\tView myView \t= new View();\n\t\t//View outraView \t= new View();\n\t\tOutraView outraView \t= new OutraView();\n\n\t\t//avisa o modelo que a visao existe \n\t\tmyModel.addPropertyChangeListener(myView);\n\t\tmyModel.addPropertyChangeListener(outraView);\n\n\t\tController myController = new Controller();\n\t\tmyController.addModel(myModel);\n\t\t//myController.addView(myView);\n\t\t//myController.addView(outraView);\n\t\tmyController.initModel(start_value);\n\n\t\t//tell View about Controller \n\t\tmyView.addController(myController);\n\t\toutraView.addController(myController);\n\t\t\n\n\t}",
"@Override\r\npublic void start(Stage arg0) throws Exception {\n\t\r\n\t webComponent = new WebView();\r\n webEngine=webComponent.getEngine();\r\n \r\n /* JSObject jsobj = (JSObject)webEngine.executeScript(\"window\");\r\n jsobj.setMember(\"android\", new HelloWorld());*/\r\n \r\n// Util.list.add(url);\r\n // loadUrl(url);\r\n // webComponent.getEngine().getLoadWorker().stateProperty().add\r\n System.out.println(\"RUN2\");\r\n webEngine.getLoadWorker().stateProperty()\r\n .addListener((obs, oldValue, newValue) -> {\r\n if (newValue == Worker.State.SUCCEEDED) {\r\n\r\n JSObject jsobj = (JSObject) webEngine.executeScript(\"window\");\r\n jsobj.setMember(\"android\", new HelloWorld());\r\n }\r\n });\r\n\t mainFrame = new ApplicationFrame(webEngine,webComponent);\r\n mainFrame.setVisible(true);\r\n System.out.println(\"RUN\");\r\n}",
"WebkitRenderHelper(WebkitRenderer parent) {\n page = new QWebPage();\n view = new QWebView();\n view.setPage(page);\n window = new QMainWindow();\n window.setCentralWidget(view);\n\n // Import QWebSettings\n for (Map.Entry<QWebSettings.WebAttribute, Boolean> attr : parent.getAttributes().entrySet()) {\n page.settings().setAttribute(attr.getKey(), attr.getValue());\n }\n\n // Connect required event listeners\n page.loadFinished.connect(this, \"onLoadFinished(boolean)\");\n page.loadStarted.connect(this, \"onLoadStarted()\");\n page.networkAccessManager().sslErrors.connect(this, \"onSslErrors(com.trolltech.qt.network.QNetworkReply, java.util.List)\");\n\n // The way we will use this, it seems to be unesseccary to have Scrollbars enabled\n page.mainFrame().setScrollBarPolicy(Qt.Orientation.Horizontal, Qt.ScrollBarPolicy.ScrollBarAlwaysOff);\n page.mainFrame().setScrollBarPolicy(Qt.Orientation.Vertical, Qt.ScrollBarPolicy.ScrollBarAlwaysOff);\n\n page.settings().setUserStyleSheetUrl(new QUrl(\"data:text/css,html,body{overflow-y:hidden !important;}\"));\n\n // Show this widget\n window.show();\n }",
"@SuppressWarnings(\"deprecation\")\n\t@SuppressLint({ \"SetJavaScriptEnabled\", \"NewApi\" })\n\tprivate void initWebview() {\n\t\twebView = (WebView) findViewById(AppUtility.getResourseIdByName(getApplicationContext().getPackageName(), \"id\", \"webView1\"));\n\n\t\twebView.setWebChromeClient(webChromeClient);\n\t\twebView.getSettings().setJavaScriptEnabled(true);\n\t\twebView.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);\n\t\twebView.getSettings().setDomStorageEnabled(true);\n\t\twebView.getSettings().setSupportZoom(false);\n\n\t\t// To enable web debugging for Android KitKat(API level 19) & above\n\t\tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n\t\t\tWebView.setWebContentsDebuggingEnabled(true);\n\t\t}\n\t\t// ----------------------------------------------------------------\n\n\t\t// Done to facilitate debugging through tools such as Node JS as devices\n\t\t// running Jelly Bean and above were not supporting such debugging\n\t\tif (Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN)\n\t\t\twebView.getSettings().setAllowUniversalAccessFromFileURLs(true);\n\n\t\t// TODO temp changes\n\t\twebView.getSettings().setDefaultZoom(WebSettings.ZoomDensity.MEDIUM);\n\t\t// -------------------------------------\n\n\t\twebView.setVerticalScrollBarEnabled(false);\n\t\twebView.setOverScrollMode(View.OVER_SCROLL_NEVER);\n\t\t// Defines the rendering priority for WebView.Improves performance in\n\t\t// rendering pages\n\t\twebView.getSettings().setRenderPriority(RenderPriority.HIGH);\n\t\t// Prevents the cache from loading. Improves performance in creating and\n\t\t// rendering pages\n\t\twebView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);\n\t\t// Disabling hardware acceleration by default in Android 4.0+\n\t\tif (isICSOrHigher) {\n\t\t\twebView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);\n\t\t}\n\n\t\tSmartJsInterface smartJsInterface = new SmartJsInterface(this);\n\t\twebView.addJavascriptInterface(smartJsInterface, \"appezAndroid\");\n\t\twebView.setWebViewClient(new SmartWebViewClient(this));\n\n\t\t// To restrict horizontal scrolling\n\t\twebView.setScrollBarStyle(View.SCROLLBARS_INSIDE_OVERLAY);\n\t\twebView.setBackgroundResource(AppUtility.getResourseIdByName(getApplicationContext().getPackageName(), \"drawable\", \"splash\"));\n\t\tif (getIntent().hasExtra(SmartConstants.CHECK_FOR_BACKGROUND)) {\n\t\t\twebViewDefaultImg = (ImageView) findViewById(AppUtility.getResourseIdByName(getApplicationContext().getPackageName(), \"id\", \"webview1bg\"));\n\t\t\tif (webViewDefaultImg != null) {\n\t\t\t\tif (getIntent().getBooleanExtra(SmartConstants.CHECK_FOR_BACKGROUND, false)) {\n\t\t\t\t\twebViewDefaultImg.setVisibility(View.VISIBLE);\n\t\t\t\t} else {\n\t\t\t\t\twebViewDefaultImg.setVisibility(View.INVISIBLE);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Added for detecting the show/hide of the soft keyboard\n\t\tfinal View activityRootView = findViewById(AppUtility.getResourseIdByName(getApplicationContext().getPackageName(), \"id\", \"frame_layout\"));\n\t\tactivityRootView.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() {\n\t\t\t@Override\n\t\t\tpublic void onGlobalLayout() {\n\t\t\t\tint heightDiff = activityRootView.getRootView().getHeight() - activityRootView.getHeight();\n\t\t\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->initWebview->soft keyboard->heightDiff:\" + heightDiff);\n\t\t\t\tif (heightDiff > 100) {\n\t\t\t\t\t// if more than 100 pixels, its probably a keyboard...\n\t\t\t\t\tisSoftKeyboardShown = true;\n\t\t\t\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->initWebview->soft keyboard shown\");\n\t\t\t\t} else {\n\t\t\t\t\tif (isSoftKeyboardShown) {\n\t\t\t\t\t\tisSoftKeyboardShown = false;\n\t\t\t\t\t\tLog.d(SmartConstants.APP_NAME, \"SmartViewActivity->initWebview->soft keyboard hidden\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t// ---------------------------------------\n\t}",
"public static WebXml newWebXml(WebXmlVersion theVersion)\n throws ParserConfigurationException\n {\n DocumentBuilder builder = createDocumentBuilder();\n DocumentType docType = null;\n if (theVersion != null)\n {\n docType = builder.getDOMImplementation().createDocumentType(\"web-app\",\n theVersion.getPublicId(), theVersion.getSystemId());\n }\n Document doc = builder.getDOMImplementation().createDocument(\"\", \"web-app\", docType);\n return new WebXml(doc);\n }",
"protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"ViewProcessWorker createWorker(ViewProcessWorkerContext context, ViewExecutionOptions executionOptions, ViewDefinition viewDefinition);",
"@Override\n protected AbstractUrlBasedView buildView(String viewName) throws Exception {\n try (InputStream stream = getServletContext().getResourceAsStream(getPrefix() + \"/custom/jsp/\" + viewName + getSuffix())) {\n return super.buildView(\"/\" + (stream == null ? \"common\" : \"custom\") + \"/jsp/\" + viewName);\n }\n }",
"private void loadJavaFXScene(){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n BorderPane borderPane = new BorderPane();\n webComponent = new WebView();\n \n webComponent.getEngine().loadContent(URLDecoder.decode(module.getData().toString()));\n\n borderPane.setCenter(webComponent);\n Scene scene = new Scene(borderPane,320,480);\n javafxPanel.setScene(scene);\n\n }\n });\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_webvitool);\n webview= findViewById(R.id.webviewweb);\n webview.getSettings().setJavaScriptEnabled(true);\n webview.setWebViewClient(new MyWebViewClient());\n openURL();\n }",
"public PageView(WebFrameworkConfigElement webFrameworkConfiguration,\r\n ModelObjectService modelObjectService,\r\n ResourceService resourceService,\r\n RenderService renderService,\r\n TemplatesContainer templatesContainer)\r\n {\r\n super(webFrameworkConfiguration, \r\n modelObjectService, \r\n resourceService, \r\n renderService, \r\n templatesContainer);\r\n }",
"public interface WebappRuntime extends ServletRequestListener, HttpSessionListener, SCA4JRuntime<WebappHostInfo> {\n\n /**\n * Activates a composite in the domain.\n *\n * @param qName the composite qualified name\n * @param componentId the id of the component that should be bound to the webapp\n * @throws DeploymentException if there was a problem initializing the composite\n * @throws ContributionException if an error is found in the contribution. If validation errors are encountered, a ValidationException will be\n * thrown.\n */\n void activate(QName qName, URI componentId) throws ContributionException, DeploymentException;\n\n /**\n * Returns the ServletRequestInjector for the runtime.\n *\n * @return the ServletRequestInjector for the runtime\n */\n ServletRequestInjector getRequestInjector();\n\n}",
"protected void createPages() {\n\t\tcreateIntroEditor();\n\t\tcreatePageMainEditor();\n\t\tcreatePageController();\n\t\tcreateCssEditor();\n\t\tcreatePageTextEditor();\n\t\trefreshPageMainEditor();\n\t\trefreshPageControllerEditor();\n\t\trefreshCssEditor();\n\t\tsetDirty(false);\n\t}",
"public FXWebView(String url) {\n\t\t//Validate the passed in url\n\t\tURL u;\n\t\ttry {\n\t\t\tu = new URL(url);\n\t\t} catch (MalformedURLException e) {\n\t\t\tthrow new IllegalArgumentException(e);\n\t\t}\n\t\tthis.homeUrl = u.toExternalForm();\n\t\t\n\t\t//Construct the underlying scene\n\t\tcreateScene();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View mview=inflater.inflate(R.layout.fragment_smartgrid, container, false);\n mywebview=(WebView)mview.findViewById(R.id.web);\n mywebview.loadUrl(\"https://solarrooftop.gov.in/rooftop_calculator\");\n WebSettings webSettings=mywebview.getSettings();\n webSettings.setJavaScriptEnabled(true);\n mywebview.setWebViewClient(new WebViewClient());\n return mview;\n }",
"@Override\n protected String getViewBasePath() {\n return \"/game/\";\n //endregion your codes 2\n }",
"public static void main(String[] args) throws Exception {\n \n// // Log actions into a text file\n// String currentDirectory = System.getProperty(\"user.dir\");\n// String configurationFilename = \"logging.properties\";\n// String configFilePath = currentDirectory + \"/\" + configurationFilename;\n// try {\n// FileInputStream config = new FileInputStream(configFilePath);\n// LogManager.getLogManager().readConfiguration(config);\n// String logFilename = System.getProperty(\"user.home\") + \"/.ihale/log.txt\";\n// // Allow appending to the logging file.\n// Handler fh = new FileHandler(logFilename, true);\n// Logger.getLogger(\"\").setLevel(Level.OFF);\n// Logger.getLogger(\"\").addHandler(fh);\n// }\n// catch (IOException ioe) {\n// // CheckStyle was complaining about use of tabs when there wasn't so this long string is\n// // placed into a String variable to comply with the warning.\n// System.out.println(\"Error, logging properties file not found at \" + configFilePath);\n// System.out.println(\"Log messages will be appended to the console\");\n// }\n \n Server server = new Server(port);\n Context context = new Context(server, \"/\" + contextPath, Context.SESSIONS);\n\n ServletHolder servletHolder = new ServletHolder(new WicketServlet());\n servletHolder.setInitParameter(\"applicationClassName\", applicationClass);\n servletHolder.setInitOrder(1);\n context.addServlet(servletHolder, \"/*\");\n try {\n server.start();\n System.out.printf(\"%nApplication at http://localhost:%s/%s. Press return to exit.%n\", port,\n contextPath);\n while (System.in.available() == 0) {\n Thread.sleep(5000);\n }\n server.stop();\n server.join();\n }\n catch (Exception e) {\n e.printStackTrace();\n System.exit(1);\n }\n }",
"View createView();",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint editorId = Integer.parseInt(request.getParameter(\"editor\"));\n\t\tEditor E = webpicture.getEditorById(editorId);\n\t\tArrayList<Diagram> diagrams = webpicture.getAllDiagramsForEditor(E);\n\t\tDiagram current = null;\n\t\tString strDiagrams = \"\";\n\t\t\n\t\tif (diagrams.isEmpty()) {\n\t\t\tstrDiagrams = \"<div class=\" + '\"' + \"hero-titles\" + '\"' + \">\" + \"\\n\" + \"<h3 class=\" + '\"' + \"marketing-header\" + '\"' + \" style=\" + '\"' + \"text-align:center; margin-top:50px\" + '\"' + \">\" + \"There's no available diagrams to display\" + \"</h3>\" + \"\\n\" + \"</div>\";\n\t\t\t\n\t\t} else {\n\t\t\tfor (int i = 0; i < diagrams.size(); i++) {\n\t\t\t\tcurrent = diagrams.get(i);\n\t\t\t\tstrDiagrams += current.toString(\n\t\t\t\t\t\tdateParser.dateToString(current.getCreated()),\n\t\t\t\t\t\tdateParser.dateToString(current.getLastModified()));\n\t\t\t}\n\t\t}\n\t\tresponse.setContentType(\"text/html\");\n\t\tout = response.getWriter();\n\t\tString html = \"<! DOCTYPE html><meta charset='UTF-8'><html lang='en'><link rel='icon' href='resources/res/siteIcon.png' type='image/x-icon'> <meta name='viewport' content='width=device-width, initial-scale=1.0'> <meta name='description' content='Index web site for WebPicture online DSL model editor'> <head><title>WebPicture</title><link rel='icon' href='resources/res/siteIcon.png' type='image/x-icon'><!-- JQuery --><script src='http://code.jquery.com/jquery-2.1.1.js'></script> <script src='http://code.jquery.com/ui/jquery-ui-git.js'></script><!-- Bootstrap --> <script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js'></script> <link rel='stylesheet' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css'> <!-- Bootbox --> <script src='resources/bootbox/bootbox.js'></script> <!-- Hojas de estilo --> <link rel='stylesheet' href='http://yui.yahooapis.com/pure//pure.css'> <link rel='stylesheet' href='http://yui.yahooapis.com/pure/0.5.0/pure-min.css'> <link rel='stylesheet' href='http://yui.yahooapis.com/pure//grids-responsive.css'> <link rel='stylesheet' href='resources/pure-css/css/layouts/marketing.css'> <link rel='stylesheet' href='http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css'> <link rel='stylesheet' href='resources/pure-css/css/layouts/headers.css'></head> <body> <div class='header'> <div class='home-menu pure-menu pure-menu-open pure-menu-horizontal pure-menu-fixed' style='background-color:#181818'> <a class='pure-menu-heading' href='welcome'> <img src='resources/res/logo.png' class='pure-img' /> </a> </div> </div> <div class='pure-g'><!-- Informacion del editor -->\"\n\t\t\t\t+ E.dataToString(dateParser.dateToString(E.getCreated()))\n\t\t\t\t+ \"<div id='diagrams' class='pure-u-2-3' style='text-align:center; height:100%; overflow-y: auto'> <div class='hero-titles'><h3 class='hero-tagline' style='text-align:center; margin-top:50px'>Available diagrams</h3> </div> <form id='editorDetailForm' name='editorDetailForm' method='post' action='review_models_for_editor'><!-- Inicio plantilla de celda de tabla para un editor-->\" \n\t\t\t\t+ strDiagrams \n\t\t\t\t+ \"<!-- Fin plantilla--> <!-- Fin acceso a diagramas existentes --> </div>\"\n\t\t\t\t+ \"<input id='editorModel' type='hidden' value='' name='editor' /></form>\"\n\t\t\t\t+ \"</div><div class='footer l-box is-center' style='background-color:#181818; margin-top:0px'><p>All rights reserved Uniandes 2014</p><p>Universidad de los Andes - Computer engineering department - Engineering Faculty</p></div>\"\n\t\t\t\t+ \"<!-- Script de referencia para llamar la funcion de acuerdo al comando y al editor seleccionado-->\"\n\t\t\t\t+ \"<script> \"\n\t\t\t\t+ \"var form = $('#editorDetailForm'); \"\n\t\t\t\t+ \"function getSelectedActionForEditor(action, editor) {if (action == 'delete') {bootbox.dialog({message: 'Current editor will be deleted, would you like to continue?',buttons: {success: {label: 'Yes',className: 'btn-primary',callback: function () { $('#editorModel').val(editor);form.attr('action', 'available_editors');console.log('entro');form.on('submit', function (e) {$.ajax({url: form.attr('action'),type: form.attr('method'),data: form.serialize(),success: function (data) {},error: function (jXHR, textStatus, errorThrown) {alert(errorThrown);}});return false;});form.submit();window.location = 'all_editors';}},danger: {label: 'No',className: 'btn-danger',callback: function () {}}}});}else if (action == 'newModel') {$('#editorModel').val(editor);form.attr('action', 'new_diagram');form.on('submit', function (e) {$.ajax({url: $(this).attr('action'),type: $(this).attr('method'),data: $(this).serialize(),success: function (data) {},error: function (jXHR, textStatus, errorThrown) {alert(errorThrown);}});return true;});form.submit();}}\"\n\t\t\t\t+ \"function getSelectedActionForModel(action, model) { if (action == 'delete') {bootbox.dialog({message: 'Selected item will be deleted, would you like to continue?',buttons: {success: {label: 'Yes',className: 'btn-primary',callback: function () {$('#diagram_' + model).fadeOut(500, function () {$(this).remove();});$('#pad_' + model).fadeOut(500, function () {$(this).remove();});$('#editorModel').val(model);console.log($('#editorModel').val());form.attr('action', 'review_models_for_editor');form.on('submit', function (e) {$.ajax({url: form.attr('action'),type: form.attr('method'),data: form.serialize(),success: function (data) {},error: function (jXHR, textStatus, errorThrown) {alert(errorThrown);}});});form.submit();checkState();form.attr('action','editor_information');$('#editorModel').val(\" + E.getId() + \");form.submit();}},danger: {label: 'No',className: 'btn-danger',callback: function () {}}}});}else if (action == 'editDiagram') {$('#editorModel').val(model);console.log('new model');form.attr('action', 'get_diagram');form.on('submit', function (e) {$.ajax({url: $(this).attr('action'),type: $(this).attr('method'),data: $(this).serialize(),success: function (data) {},error: function (jXHR, textStatus, errorThrown) {alert(errorThrown);}});return true;});form.submit();}} \"\n\t\t\t\t+ \"function checkState() { \"\n\t\t\t\t+ \"var elements = $('#diagrams > div').length;var elements = $('#diagrams > div').length;\"\n\t\t\t\t+ \"var msg = \\\"<div class=\\\" + '\\\"' + \\\"hero-titles\\\" + '\\\"' + \\\">\\\" + \\\"<h3 class=\\\" + '\\\"' + \\\"marketing-header\\\" + '\\\"' + \\\" style=\\\" + '\\\"' + \\\"text-align:center; margin-top:50px\\\" + '\\\"' + \\\">\\\" + \\\"There's no available diagrams to display\\\" + \\\"</h3>\\\" + \\\"</div>\\\";\"\n\t\t\t\t+ \"if (elements == 3) {$('#diagrams').append(msg);}\"\n\t\t\t\t+ \"}\"\n\t\t\t\t+ \"</script>\"\n\t\t\t\t+ \"</body></html>\";\n\t\tout.println(html);\n\t\tout.close();\n\t}",
"public void create() {\n\t\trandomUtil = new RandomUtil();\n\t\t// create the camera using the passed in viewport values\n\t\tcamera = new OrthographicCamera(viewPortWidth, viewPortHeight);\n\t\tbatch.setProjectionMatrix(camera.combined);\n\t\tdebugRender = new Box2DDebugRenderer(true, false, false, false, false, true);\n\t\ttestWorld = new TestWorld(assetManager.blockManager(), new Vector2(0, 0f));\n\t\ttestWorld.genWorld(debugUtil);\n\t\ttestWorld.setCamera(getCamera());\n\t\tplayer.createBody(testWorld.getWorld(), BodyType.DynamicBody);\n\t\ttestWorld.getPlayers().add(player);\n\t\tworldParser = new WorldParser(testWorld, \"Test World\");\n\t\tworldParser = new WorldParser(testWorld, \"Test Write\");\n\t\tworldParser.parseWorld();\n\t\twriter = new WorldWriter(\"Test Write\", testWorld);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_program_unggulan, container, false);\n wvPage1 = (WebView)v.findViewById(R.id.activity_main_webview);\n WebSettings settings = wvPage1.getSettings();\n settings.setJavaScriptEnabled(true);\n wvPage1.setWebViewClient(new MyWebViewClient());\n\n wvPage1.loadUrl(url);\n return v;\n }",
"public void run() {\n\t\tport(8080);\n\n\t\t// Main Page, welcome\n\t\tget(\"/\", (request, response) -> \"Welcome!\");\n\n\t\t// Date\n\t\tget(\"/date\", (request, response) -> {\n\t\t\tDate d = new Date(\"frida.org\", Calendar.getInstance().get(Calendar.YEAR),\n\t\t\t\t\tCalendar.getInstance().get(Calendar.MONTH), Calendar.getInstance().get(Calendar.DAY_OF_MONTH));\n\t\t\treturn om.writeValueAsString(d);\n\t\t});\n\n\t\t// Time\n\t\tget(\"/time\", (request, response) -> {\n\t\t\tTime t = new Time(\"frida.org\", Calendar.getInstance().get(Calendar.HOUR),\n\t\t\t\t\tCalendar.getInstance().get(Calendar.MINUTE), Calendar.getInstance().get(Calendar.SECOND));\n\t\t\treturn om.writeValueAsString(t);\n\t\t});\n\t}",
"WebAppInterface(Context c, WebView normal_wv, SPUtils spUtils) {\n mContext = c;\n this.normal_wv = normal_wv;\n this.spUtils = spUtils;\n }",
"public StartupHandler(){\r\n\t\tloadGameFiles();\r\n\t\tnew Engine();\r\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_web_view);\n\n\t\tsetTitle(\"지식경제부 기술표준원\");\n\t\tgetActionBar().setDisplayHomeAsUpEnabled(true);\n\t\t// 액션바에서 뒤로가기 버튼을 생성하기 위해 선언.\n\n\t\t// webview.setWebViewClient(new WebClient()); // 응룡프로그램에서 직접 url 처리\n\n\t\twv = (WebView) findViewById(R.id.webview);\n\t\t\n\t\t// 이렇게 해야 Web이 App 바깥영역으로 나가지 않는다.\n\t\twv.setWebViewClient(new MyWebClient());\n\t\t\n\t\t// WebSetting 옵션\n\t\tWebSettings set = wv.getSettings();\n\t\tset.setJavaScriptEnabled(true);\n\t\tset.setBuiltInZoomControls(true);\t// 감압식 폰 화면 확대\n\t\twv.getSettings().setJavaScriptEnabled(true);\n\t\twv.loadUrl(\"http://www.kats.go.kr/mobile/main.do\");\n\t}",
"@GET\r\n @Produces(\"text/html\")\r\n public String getHtml() {\r\n return \"<html><body>the solution is :</body></html> \";\r\n }",
"@Override\n\tpublic void start() {\n\t\ttry {\n\t\t\tif ( _webView instanceof BBWebView) {\n\t\t\t\t_webView.start();\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tConsole.Log(ex.getMessage());\n\t\t}\n\t}",
"public abstract void viewRun();",
"public TemplateEngine getEngine( String name );",
"private VelocityEngine createEngine(boolean withConversionsHandler)\n throws Exception\n {\n VelocityEngine ve = new VelocityEngine();\n ve.setProperty( Velocity.VM_PERM_INLINE_LOCAL, Boolean.TRUE);\n ve.setProperty(Velocity.RUNTIME_LOG_INSTANCE, log);\n ve.setProperty(RuntimeConstants.RESOURCE_LOADER, \"file\");\n ve.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, TEST_COMPARE_DIR + \"/conversion\");\n if (withConversionsHandler)\n {\n ve.setProperty(RuntimeConstants.EVENTHANDLER_METHODEXCEPTION, PrintException.class.getName());\n }\n else\n {\n ve.setProperty(RuntimeConstants.CONVERSION_HANDLER_CLASS, \"none\");\n }\n ve.init();\n\n return ve;\n }",
"public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}",
"private WebView m25229c(Context context) {\n WebView webView = new WebView(context);\n webView.setLayoutParams(new LayoutParams(-1, -1));\n webView.setWebViewClient(new C57413(this));\n webView.loadUrl(this.webOptions.getUrl());\n return webView;\n }",
"public RenderEngine() {\n\t\twindow = Window.getInstance();\n\t\t\n\t\ttestEntity = new Entity(\"skull/skull.obj\", \"./res/models/skull/skull.png\", new Vector3f(0,0,0), new Vector3f(0,0,0));\n\t\ttestEntity.getWorldTransform().setScaling(new Vector3f(0.01f,0.01f,0.01f));\n\t\t\n\t\ttestEntity2 = new Entity(\"dummy/dummy.obj\", \"./res/models/dummy/dummy.jpg\", new Vector3f(0,8,0), new Vector3f(0,0,0));\n\t\ttestEntity2.getWorldTransform().setScaling(new Vector3f(0.05f,0.05f,0.05f));\n\t\t\n\t\ttestLight = new Light(new Vector3f(-5,5,-5), new Vector3f(1,1,1));\n\t\ttestLight.getWorldTransform().setScaling(new Vector3f(0.1f,0.1f,0.1f));\n\t\t\n\t\tsky = new SkyDome();\n\t\t\n\t}",
"public static void main(String[] args) {\n TemplateController controller = new TemplateController();\n controller.run();\n }",
"Analytics_Engine createAnalytics_Engine();",
"public void createPage(@NonNull WPEView wpeView, @NonNull Context context) {\n Log.d(LOGTAG, \"Create new Page instance for view \" + wpeView);\n if (m_pages == null) {\n m_pages = new IdentityHashMap<>();\n }\n assert (!m_pages.containsKey(wpeView));\n Page page = new Page(this, context, wpeView, m_pages.size());\n m_pages.put(wpeView, page);\n m_activeView = wpeView;\n if (m_webProcess != null) {\n m_webProcess.setActivePage(page);\n }\n loadPendingUrls(wpeView);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_shouye, container, false);\n initView(view);\n myPresenter = new MyPresenter(this);\n myPresenter.startRequest(url1,1);\n\n myPresenter2 = new MyPresenter2(this);\n myPresenter2.startRequest(url2,2);\n return view;\n }",
"public void init(){\n\t\tcfg = new Configuration();\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), \"WEB-INF/templates\");\r\n }",
"private static org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor createHtmlBrowserFactoryEditor() {\n return new org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor(){\n public void setValue(Object value) {\n setWWWBrowser((HtmlBrowser.Factory)value);\n }\n\n public Object getValue() {\n return getWWWBrowser();\n }\n };\n }",
"public static void main(String[] args) {\n staticFiles.location(\"/public\");\n //This will listen to GET requests to /model and return a clean new model\n get(\"/model\", (req, res) -> newModel());\n //This will listen to POST requests and expects to receive a game model, as well as location to fire to\n post(\"/fire/:row/:col\", (req, res) -> fireAt(req));\n //This will listen to POST requests and expects to receive a game model, as well as location to place the ship\n post(\"/placeShip/:id/:row/:col/:orientation\", (req, res) -> placeShip(req));\n }",
"public static void main(String[] args) {\n Menu m = new Menu();\n RenderWebCode r = new RenderWebCode(m);\n\n System.out.println(r.generateMenu());\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_course, container, false);\n WebView mWebView = view.findViewById(R.id.courseWebView);\n // Enable Javascript\n WebSettings webSettings = mWebView.getSettings();\n webSettings.setJavaScriptEnabled(true);\n // 화면 비율\n webSettings.setUseWideViewPort(true);// wide viewport를 사용하도록 설정\n webSettings.setLoadWithOverviewMode(true);// 컨텐츠가 웹뷰보다 클 경우 스크린 크기에 맞게 조정\n // 웹뷰 멀티 터치 가능하게 (줌기능)\n //webSettings.setBuiltInZoomControls(true);// 줌 아이콘 사용\n webSettings.setSupportZoom(true);\n // Force links and redirects to open in the WebView instead of in a browser\n mWebView.setWebViewClient(new WebViewClient());\n mWebView.loadUrl(\"http://192.168.219.100:7000/E_LearningPage.jsp\");\n return view;\n }",
"@Override\n public void start() throws LifecycleException {\n logger.info(\"Start http server ... \");\n\n\n try {\n // create a resource config that scans for JAX-RS resources and providers\n final ResourceConfig rc = new ResourceConfig()\n .packages(PACKAGES_SCAN) // packages path for resources loading\n .property(MvcFeature.TEMPLATE_BASE_PATH, FREEMARKER_BASE) // config freemarker view files's base path\n .register(LoggingFeature.class)\n .register(FreemarkerMvcFeature.class)\n .register(JettisonFeature.class)\n .packages(\"org.glassfish.jersey.examples.multipart\")\n .register(MultiPartFeature.class)\n .registerInstances(new ApplicationBinder()); //\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n httpServer = GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);\n\n // Set StaticHttpHandler to handle http server's static resources\n String htmlPath = this.getClass().getResource(HTML_BASE).getPath(); // TODO, 部署后要根据实际目录修正!classes 同级目录下的 html 目录\n HttpHandler handler = new StaticHttpHandler(htmlPath);\n httpServer.getServerConfiguration().addHttpHandler(handler, \"/\");\n\n logger.info(\"Jersey app started with WADL available at {} application.wadl\\n \", BASE_URI);\n } catch (Exception e) {\n throw new LifecycleException(e); // just convert to self defined exception\n }\n }",
"public static void main(String[] args) {\n\n HttpConnector connector = new HttpConnector();\n Wrapper wrapper = new SimpleWrapper();\n wrapper.setServletClass(\"ModernServlet\");\n Loader loader = new SimpleLoader();\n Valve valve1 = new HeaderLoggerValve();\n Valve valve2 = new ClientIPLoggerValve();// 在这里显示IP\n\n wrapper.setLoader(loader);\n ((Pipeline) wrapper).addValve(valve1);\n ((Pipeline) wrapper).addValve(valve2);\n\n connector.setContainer(wrapper);\n\n try {\n connector.initialize();\n connector.start();\n\n // make the application wait until we press a key.\n System.in.read();\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void createWebServers() throws Exception {\r\n\t\tXPathReader xmlReader = new XPathReader(CONFIGURE_FILE);\r\n\t\tNodeList webServerNodeList = (NodeList) xmlReader.getElement(\"/application/webServer\");\r\n\t\tfor(int idx = 1; idx <= webServerNodeList.getLength(); idx ++ ) {\r\n\t\t\tString webServerExpression = String.format(\"/application/webServer[%d]\", idx);\r\n\t\t\tString id = xmlReader.getTextContent(webServerExpression + \"/@id\");\r\n\t\t\tint port = Integer.parseInt(xmlReader.getTextContent(webServerExpression + \"/@port\"));\r\n\t\t\tWebServer webServer = new WebServer();\r\n\t\t\twebServer.setPort(port);\r\n\t\t\t\r\n\t\t\t// setting SSL properties\r\n\t\t\tif(xmlReader.hasElement(webServerExpression + \"/ssl\")) {\r\n\t\t\t\twebServer.setSsl(true);\r\n\t\t\t\tString keyStorePath = xmlReader.getTextContent(webServerExpression + \"/ssl/keyStorePath\");\r\n\t\t\t\tString keyStoreType = xmlReader.getTextContent(webServerExpression + \"/ssl/keyStoreType\");\r\n\t\t\t\tString keyStorePass = xmlReader.getTextContent(webServerExpression + \"/ssl/keyStorePass\");\r\n\t\t\t\twebServer.setKeyStorePath(keyStorePath);\r\n\t\t\t\twebServer.setKeyStoreType(keyStoreType);\r\n\t\t\t\twebServer.setKeyStorePass(keyStorePass);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// adds context\r\n\t\t\tNodeList contextNodeList = (NodeList) xmlReader.getElement(webServerExpression + \"/context\");\r\n\t\t\tfor(int i = 1; i <= contextNodeList.getLength(); i ++) {\r\n\t\t\t\tString contextExpression = String.format(webServerExpression + \"/context[%d]\", i);\r\n\t\t\t\tString path = xmlReader.getTextContent(contextExpression + \"/@path\");\r\n\t\t\t\tString resourceBase = xmlReader.getTextContent(contextExpression + \"/resourceBase\");\r\n\t\t\t\tString descriptor = xmlReader.getTextContent(contextExpression + \"/descriptor\");\r\n\t\t\t\tWebServerContext webServerContext = new WebServerContext();\r\n\t\t\t\twebServerContext.setContextPath(path);\r\n\t\t\t\twebServerContext.setResourceBase(resourceBase);\r\n\t\t\t\twebServerContext.setDescriptor(descriptor);\r\n\t\t\t\twebServer.addContext(webServerContext);\r\n\t\t\t}\r\n\r\n\t\t\t// add webServer\r\n\t\t\twebServers.put(id, webServer);\r\n\t\t}\r\n\t}",
"public Builder webapp(Class<?> aClass) {\n return webapp(false, aClass);\n }",
"protected void renderWebPage(String urlToRender){\n web_view.setWebViewClient(new WebViewClient(){\n @Override\n public void onPageStarted(WebView view, String url, Bitmap favicon){\n\n mUrl = view.getUrl();\n Log.e(\"Page loadedstarted_get1\",\"\"+mUrl);\n Uri uri = Uri.parse(mUrl);\n String result = uri.getQueryParameter(\"result\");\n Log.e(\"result_vinod\",\"\"+result);\n if (result != null && result.equalsIgnoreCase(\"SUCCESS\")) {\n Log.e(\"success\",\"\");\n String ref = uri.getQueryParameter(\"ref\");\n String trackid = uri.getQueryParameter(\"trackid\");\n String hash = uri.getQueryParameter(\"hash\");\n String crdtype = uri.getQueryParameter(\"crdtype\");\n String payid = uri.getQueryParameter(\"payid\");\n Log.e(\"ref\",\"\"+ref);\n Log.e(\"trackid\",\"\"+trackid);\n Log.e(\"hash\",\"\"+hash);\n Log.e(\"crdtype\",\"\"+crdtype);\n Log.e(\"payid\",\"\"+payid);\n payment_sucess(result,ref,trackid,hash,crdtype,payid);\n\n }else {\n\n }\n\n }\n\n @Override\n public void onPageFinished(WebView view, String url){\n mUrl = view.getUrl();\n Log.e(\"Pageloadedfinished_get2\",\"\"+mUrl);\n }\n\n });\n Log.e(\"final_set\",\"\"+urlToRender);\n // Enable the javascript\n web_view.getSettings().setJavaScriptEnabled(true);\n // Render the web page\n web_view.loadUrl(urlToRender);\n }",
"public void configure() throws IOException {\n\n\n mWebClient = new WebClient(BrowserVersion.getDefault());\n\n // 1 启动JS\n mWebClient.getOptions().setJavaScriptEnabled(true);\n // 2 禁用Css,可避免自动二次请求CSS进行渲染\n mWebClient.setCssErrorHandler(new SilentCssErrorHandler());\n mWebClient.setAjaxController(new NicelyResynchronizingAjaxController());\n mWebClient.getOptions().setCssEnabled(true);\n // 3 启动客户端重定向\n mWebClient.getOptions().setRedirectEnabled(true);\n\n mWebClient.getOptions().setAppletEnabled(false);\n\n mWebClient.getOptions().setPopupBlockerEnabled(true);\n\n // 4 js运行错误时,是否抛出异常\n //mWebClient.getOptions().setThrowExceptionOnScriptError(false);\n // 5 设置超时\n mWebClient.getOptions().setTimeout(20000);\n\n //HtmlPage htmlPage = mWebClient.getPage();\n // 等待JS驱动dom完成获得还原后的网页\n mWebClient.waitForBackgroundJavaScript(50000);\n\n }",
"public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }"
]
| [
"0.66213936",
"0.62855417",
"0.62558657",
"0.5995778",
"0.5963241",
"0.5909364",
"0.57426643",
"0.5670974",
"0.56332237",
"0.5603138",
"0.56022793",
"0.55726683",
"0.5550574",
"0.55364305",
"0.5518263",
"0.5508858",
"0.55015093",
"0.5483048",
"0.54489744",
"0.5446621",
"0.5415192",
"0.5414679",
"0.539349",
"0.5387597",
"0.5380735",
"0.53774357",
"0.5376839",
"0.53760564",
"0.5366675",
"0.5339539",
"0.5338086",
"0.5330388",
"0.5328768",
"0.5324348",
"0.528723",
"0.52775574",
"0.5270863",
"0.52691483",
"0.526777",
"0.52623713",
"0.5255202",
"0.5253859",
"0.52491415",
"0.5244544",
"0.52427524",
"0.5227917",
"0.5220915",
"0.5213747",
"0.5208008",
"0.5197796",
"0.5194441",
"0.51908594",
"0.5185697",
"0.51838744",
"0.5157728",
"0.5156392",
"0.51501137",
"0.5146625",
"0.51398635",
"0.51371974",
"0.5135359",
"0.5125621",
"0.51243955",
"0.51238286",
"0.5122687",
"0.51153255",
"0.5110743",
"0.5109593",
"0.51074517",
"0.51035774",
"0.51024884",
"0.5102299",
"0.5085501",
"0.50814414",
"0.50802195",
"0.5078084",
"0.50769264",
"0.5073908",
"0.5069003",
"0.5066521",
"0.5063703",
"0.50511605",
"0.5050597",
"0.50482345",
"0.50479215",
"0.5045497",
"0.5036279",
"0.503235",
"0.50302696",
"0.5024332",
"0.50208634",
"0.5005203",
"0.49981913",
"0.49909645",
"0.4989335",
"0.49867806",
"0.498673",
"0.4981432",
"0.49802047",
"0.49624538",
"0.4958615"
]
| 0.0 | -1 |
Constructs an IllegalMoveException with the specified detail message. | public IllegalMoveException(String message) {
super(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public InvalidMoveException(String message) {\n super(message);\n }",
"public InvalidMoveException() {\n super(\"Invalid move!\");\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException2() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(0, 3, 1, 3);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException1() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(0, 3, 3, 3);\n }",
"public Message generateInvalidMoveMessage() {\n Message moveMessage = new Message(false, -1,\n \"ERROR: It is not your turn or the space you have chosen is full.\");\n return moveMessage; \n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException10() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(2, 0, 2, -2);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException2() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(1, 1, 0, 0);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException13() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(0, 0, 0, 2);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException7() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(2, 0, -4, 0);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException11() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(2, 2, 2, 4);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException6() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(2, 1, 0, 1);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException7() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(1, 0, 1, -2);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException1() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(1, 1, 4, 4);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException14() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(2, 3, 4, 3);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException4() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl(4, 4);\n exampleBoard.move(2, 2, 4, 4);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException12() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(3, 3, 3, 5);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException11() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(1, 3, 1, 1);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException3() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(0, 3, 0, 3);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException4() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(2, 1, 0, 1);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException9() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(2, 6, 2, 8);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException5() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl(2, 4);\n exampleBoard.move(4, 2, 2, 4);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException9() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(0, 0, 2, 0);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException3() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(1, 1, 1, 1);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException6() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(1, 1, 1, 3);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException5() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(2, 0, -4, 0);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException8() {\n MarbleSolitaireModel exampleBoard = new MarbleSolitaireModelImpl();\n exampleBoard.move(6, 3, 8, 3);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void moveException8() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(1, 1, 3, 1);\n }",
"public InvalidStackPositionException(String message) {\n\t\tsuper(message);\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void moveException12() {\n MarbleSolitaireModel exampleBoard = new TriangleSolitaireModelImpl();\n exampleBoard.move(2, 0, 0, 0);\n exampleBoard.move(4, 0, 2, 0);\n exampleBoard.move(3, 2, 3, 0);\n exampleBoard.move(3, 0, 1, 0);\n exampleBoard.move(0, 0, 2, 0);\n exampleBoard.move(3, 3, 3, 1);\n }",
"public IllegalPuzzleException(String message)\n {\n super(message);\n }",
"public InvalidTransitionException(String message) {\r\n super(message);\r\n }",
"public InvalidTransitionException(String message) {\n\t\tsuper(message);\n\t}",
"public InvalidTransitionException(String message) {\n\t\tsuper(message);\n\t}",
"@Override\n\tpublic void onMoveError(String msg) {\n\n\t}",
"public InvalidInvocationException(String detailMessage)\n {\n super(detailMessage);\n }",
"public void receivedInvalidMoveMessage();",
"public void illegalMove(){\r\n //Taken care of in view?\n \t//throw new RuntimeException(\"this is a illegal move\");\r\n }",
"static public TmMove from(String represention) throws InvalidMovementRepresentationException {\n\t\tswitch (represention) {\n\t\tcase \"S\":\n\t\t\treturn TmMove.STOP;\n\t\tcase \"L\":\n\t\t\treturn TmMove.LEFT;\n\t\tcase \"R\":\n\t\t\treturn TmMove.RIGHT;\n\n\t\tdefault:\n\t\t\tthrow new InvalidMovementRepresentationException(represention);\n\t\t}\n\t}",
"public CollisionSnakeException(String message){\n\n super(message);\n }",
"public InvalidCommandException(String message) {\n super(message);\n }",
"public Message generateValidMoveMessage() {\n return new Message(true, 100, \"\");\n }",
"public void InvalidMove();",
"public AnimationPlanModificationException(String message)\r\n {\r\n super(message);\r\n }",
"public IllegalParameterException(final String message) {\n super(message);\n }",
"public IncorrectInputException(String message) {\r\n super(message);\r\n }",
"protected boolean processIllegalMove(String moveString, String reason){return false;}",
"public void invalidMove() {\n JOptionPane.showMessageDialog(frame, \"Invalid move\", \"Invalid move\", JOptionPane.ERROR_MESSAGE);\n }",
"public NotValidException(String message) {\r\n super(message);\r\n }",
"public ImagingMigratorException(String message) {\n super(message);\n }",
"public IllegalOperandException(String message) {\n super(message);\n }",
"public InvalidAccessException(String message) {\n super(message);\n }",
"public PreparationException(final String message) {\n\t\tsuper(message);\n\t}",
"public abstract void showBadMoveAlert(GameStateInterface state, Move mv);",
"public void makeMove(Move move) throws IllegalStateException{\n if (!undoBoards.peek().isValidMove(move).equals(Move.moveType.INVALID)){ //is move valid on the top board of undoBoards?\n Board newBoard = new Board(undoBoards.peek()); //make the move by adding a new board to the stack\n newBoard.makeMove(move);\n undoBoards.push(newBoard);\n return;\n }\n throw new IllegalStateException(\"Invalid Move\");\n }",
"protected MovieStoreException(final String message) {\n\t\tsuper(message);\n\t}",
"public InvalidDeliveryException(String message) {\n super(message);\n }",
"public abstract void move(int row, int col) throws IllegalMoveException;",
"private void printIllegalMove(Pole fromPole, Pole toPole)\n\t{\n\t\tSystem.out.println(\"Illegal move\");\n\t\tSystem.out.println(\"From \"+fromPole);\n\t\tSystem.out.println(\"To \"+toPole);\n\t}",
"public OperatorException(final Operator operator, final String message) {\n super(message);\n this.operator = operator;\n }",
"public InvalidInvocationException(String detailMessage, Throwable throwable)\n {\n super(detailMessage, throwable);\n }",
"public Move(String direction) throws InputException {\n\t\tif(direction.equals(LEFT) || direction.equals(RIGHT))\n\t\t\tthis.direction = direction;\n\t\telse\n\t\t\tthrow new InputException(\"Error: a turing machine can only move left (L) or right (R)\");\n\t}",
"public Exception(String message) {\n\t\t\tsuper(message);\n\t\t}",
"public InvalidProcessException(String message) {\n super(message);\n }",
"public Move() {\r\n\t}",
"public ArithmeticaException (String message) {\n super(message);\n }",
"public Move createValidMove(Coordinate fromCoordinate, int toX, int toY)\r\n\t{\r\n\t\tif (toX < 0 || toX > 7 || toY < 0 || toY > 7) return null;\r\n\t\t\r\n\t\tField toField = fields[toX][toY];\r\n\t\tPiece toPiece = toField.piece;\r\n\t\t\r\n\t\tField fromField = getField(fromCoordinate);\r\n\t\tPiece fromPiece = fromField.piece;\r\n\t\t\r\n\t\tif (toPiece != null && !fromPiece.isEnemy(toPiece)) return null;\r\n\t\t\r\n\t\treturn new Move(getLastMove(), fromField, toField, fromPiece.getColor(), null, toPiece);\r\n\t}",
"public ReservedCardOutOfRangeException(String message) {\n super(message);\n }",
"public ParsingException(String message) {\n super(message);\n }",
"@Test\n\tpublic void invalidMove() throws Exception {\n\t\tgame.board.movePiece(knightCorner1Black, -1, 2);\n\t\tgame.board.movePiece(knightCorner2White, 4, 7);\n\t\tgame.board.movePiece(knightSide1Black, 1, -1);\n\t\tgame.board.movePiece(knightSide2White, 4, 6);\n\t\tgame.board.movePiece(knightMiddleWhite, 10, 4);\n\t\tassertEquals(knightCorner1Black, game.board.getPiece(0, 0));\n\t\tassertEquals(knightCorner2White, game.board.getPiece(7, 7));\n\t\tassertEquals(knightSide1Black, game.board.getPiece(0, 3));\n\t\tassertEquals(knightSide2White, game.board.getPiece(3, 7));\n\t\tassertEquals(knightMiddleWhite, game.board.getPiece(4, 4));\n\t}",
"void makeMove(String move) {\n if (!isLegal(move)) {\n throw new IllegalArgumentException(\"This is an illegal move.\");\n }\n int column = Integer.parseInt(move.substring(2)) - 1;\n int row = Integer.parseInt(move.substring(0, 1)) - 1;\n _board[column][row] = currPlayer;\n alternatePlayer(currPlayer);\n }",
"public Neo4jException(String message) {\n this(\"N/A\", message);\n }",
"public OperationException(String message) {\n super(message);\n }",
"public DuplicateItemException(String message) {\r\n super(message);\r\n }",
"public ItemInvalidoException(String msg) {\r\n super(msg);\r\n }",
"public static Move getMoveFromProposition(Proposition p){\r\n \treturn new Move(p.getName().get(1));\r\n }",
"Move(Move m)\n\t{\n\t\tif(m != null) {\n\t\t\tpieceRow = m.pieceRow;\n\t\t\tpieceCol = m.pieceCol;\n\t\t\tdestRow = m.destRow;\n\t\t\tdestCol = m.destCol;\n\t\t}\n\t}",
"public SenhaInvalidaException(String message) {\n\t\tsuper(message);\n\t}",
"public PizzaException(String message) {\n super(message);\n }",
"public SSHException(String message) {\n super(message);\n }",
"public Move parseMove(String s) throws GameException {\n\t\t\ttry {\n\t\t\t\ts = s.split(\"\\\\s+\")[0]; // first token\n\t\t\t\tint i = Integer.parseInt(s);\n\t\t\t\tCMN.CMNMove m = CMN.moveList.get(i);\n\t\t\t\tif (isLegal(m)) {\n\t\t\t\t\treturn m;\n\t\t\t\t}\n\t\t\t\tthrow new IllegalMoveException(m);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new NoSuchMoveException(s);\n\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\tthrow new NoSuchMoveException(s);\n\t\t\t}\n\t\t}",
"public ScheduleException(String msg) {\r\n super(msg);\r\n }",
"public AbstractCodeGenException(final String message) {\n super(message);\n }",
"public NonExistentConfirmationMessageException(String message) {\n super(message);\n }",
"public DslException(String message) {\n\t\tsuper(message);\n\t}",
"@Override\r\n\tpublic Move validateMove(Piece[][] state, Coordinate from, Coordinate to) throws InvalidMoveException {\r\n\t\tList<Coordinate> possibles = getPossibleLocations(from);\r\n\t\tif (!possibles.contains(to))\r\n\t\t\tthrow new InvalidMoveException();\r\n\r\n\t\tMove result = new Move();\r\n\r\n\t\tMoveType type = MoveTypeChecker.getMoveType(getColor(), state, to);\r\n\t\tif (type == null)\r\n\t\t\treturn null;\r\n\r\n\t\tresult.setType(type);\r\n\t\tresult.setFrom(from);\r\n\t\tresult.setTo(to);\r\n\t\tresult.setMovedPiece(this);\r\n\r\n\t\tint i = 1;\r\n\t\tif (to.getX() < from.getX()) {\r\n\t\t\tif (to.getY() < from.getY()) {\r\n\t\t\t\twhile (from.getX() - i > to.getX()) {\r\n\t\t\t\t\tif (state[from.getX() - i][from.getY() - i] != null)\r\n\t\t\t\t\t\tthrow new InvalidMoveException();\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\twhile (from.getX() - i > to.getX()) {\r\n\t\t\t\t\tif (state[from.getX() - i][from.getY() + i] != null)\r\n\t\t\t\t\t\tthrow new InvalidMoveException();\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (to.getY() < from.getY()) {\r\n\t\t\twhile (from.getX() + i < to.getX()) {\r\n\t\t\t\tif (state[from.getX() + i][from.getY() - i] != null)\r\n\t\t\t\t\tthrow new InvalidMoveException();\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\twhile (from.getX() + i < to.getX()) {\r\n\t\t\t\tif (state[from.getX() + i][from.getY() + i] != null)\r\n\t\t\t\t\tthrow new InvalidMoveException();\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public OLMSException(String message) {\r\n super(message);\r\n }",
"public InvalidRectangleException(String message) {\n\t\tsuper(message);\n\t}",
"private void move() throws Exception{\r\n\t switch (direction) {\r\n\t case Constants.DIRECTION_NORTH:\r\n\t y += 1;\r\n\t break;\r\n\t case Constants.DIRECTION_EAST:\r\n\t x += 1;\r\n\t break;\r\n\t case Constants.DIRECTION_SOUTH:\r\n\t y -= 1;\r\n\t break;\r\n\t case Constants.DIRECTION_WEST:\r\n\t x -= 1;\r\n\t break;\r\n\t }\r\n\t if(!verifyBounds()){\r\n\t throw new Exception(\"Rover exceeding range!!!\");\r\n\t }\r\n\t }",
"public RedoException(String message) {\r\n\t\tsuper(message);\r\n\t}",
"InvalidDeletionException(String message) {\n super(message);\n }",
"public CompilationException(String message) {\n\t\tsuper(message);\n\t}",
"public Move createMove(Move lastMove) {\n // unused for now\n return null;\n }",
"private void invalidMove(){\n setMsgText(\"That's a invalid move\");\n playSound(WRONG_SOUND);\n }",
"public ConverterException(String message) {\n super(message);\n this.cause = null;\n }",
"public InvalidModelException(String message) {\n super(message);\n }",
"public LexerException(String message) {\n\t\tsuper(message);\n\t}",
"@java.lang.Override\n public void move(String position) throws IllegalChessMoveException {\n position = position.toUpperCase();\n isLegal(position);\n if (position.charAt(0) != this.position.charAt(0) && position.charAt(1) != this.position.charAt(1))\n throw new IllegalChessMoveException(\"Nedozvoljen potez za topa\");\n this.position = position;\n }",
"public ToolbarMenu_ArquitectureException(String message) {\n super(message);\n }",
"public InvalidCommandException() {\n super(EXCEPTION_INVALID_COMMAND_MESSAGE);\n }",
"public LogIllegalStateException(String message) {\r\n super(message);\r\n }"
]
| [
"0.80850995",
"0.7681344",
"0.64485025",
"0.64071596",
"0.63936543",
"0.6376573",
"0.63675874",
"0.63546854",
"0.634319",
"0.63366175",
"0.63242453",
"0.6297947",
"0.6273376",
"0.62623155",
"0.62557846",
"0.62381625",
"0.62314266",
"0.6210796",
"0.6188932",
"0.61824954",
"0.61785185",
"0.61747736",
"0.61567503",
"0.61330986",
"0.61163294",
"0.61141515",
"0.6046318",
"0.6013458",
"0.599755",
"0.596819",
"0.57962275",
"0.57746077",
"0.57746077",
"0.5738642",
"0.57023084",
"0.56892926",
"0.5685137",
"0.567914",
"0.56677413",
"0.5631382",
"0.56091064",
"0.5600797",
"0.55832064",
"0.5582509",
"0.5571024",
"0.5558845",
"0.55194163",
"0.55022687",
"0.5437233",
"0.5428629",
"0.5420118",
"0.5403721",
"0.5372376",
"0.5359832",
"0.53587973",
"0.5358298",
"0.53358763",
"0.53144",
"0.5297375",
"0.52946115",
"0.5281385",
"0.52788377",
"0.5271756",
"0.5262727",
"0.52524835",
"0.52438176",
"0.5235632",
"0.5220899",
"0.5217402",
"0.52172697",
"0.5176808",
"0.51767594",
"0.51679313",
"0.51670885",
"0.5164936",
"0.5164372",
"0.5155793",
"0.5155447",
"0.5151469",
"0.5142965",
"0.5136261",
"0.5127613",
"0.5123188",
"0.51219785",
"0.5120813",
"0.5112633",
"0.51015353",
"0.50922257",
"0.5091216",
"0.5089066",
"0.5082381",
"0.5078731",
"0.5077554",
"0.50673467",
"0.5067164",
"0.5058724",
"0.5048511",
"0.5045984",
"0.50458175",
"0.503419"
]
| 0.8321725 | 0 |
How many seconds between army spawn | public static int getArmySpawnSpeed(int city) {
switch(city) {
case 1:
return 8000;
case 2:
return 5500;
case 3:
return 4000;
case 4:
return 3000;
}
return -1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doTimeStep() {\r\n\t\twalk(getRandomInt(8));\r\n\t\tif (getEnergy() < 6 * Params.min_reproduce_energy && getEnergy() > Params.min_reproduce_energy) {\r\n\t\t\tCritter1 child = new Critter1();\r\n\t\t\treproduce(child, getRandomInt(8));\r\n\t\t\tnumberSpawned += 1;\r\n\t\t}else if(getEnergy() < Params.min_reproduce_energy) {\r\n\t\t\treturn;\r\n\t\t}else {\r\n\t\t\tCritter1 child1 = new Critter1();\r\n\t\t\treproduce(child1, getRandomInt(8));\r\n\t\t\tCritter1 child2 = new Critter1();\r\n\t\t\treproduce(child2, getRandomInt(8));\r\n\t\t\tnumberSpawned += 2;\r\n\t\t}\t\r\n\t}",
"@Override\r\n\tpublic void doTimeStep() {\n\t\tthis.run(Critter.getRandomInt(8));\r\n\t}",
"private void startSpawning()\n {\n MAUtils.setSpawnFlags(plugin, world, 1, allowMonsters, allowAnimals);\n \n // Start the spawnThread.\n spawnThread = new MASpawnThread(plugin, this);\n spawnTaskId = Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, spawnThread, waveDelay, (!waveClear) ? waveInterval : 60);\n }",
"public boolean timeUp(){\n return timeAlive == pok.getSpawnTime(); \n }",
"public void setup() {\naddBehaviour(new TickerBehaviour(this, 100) {\n//call onTick every 1000ms\nprotected void onTick() {\n//Count down\nif (w > 0) {\nSystem.out.println(w + \" seconds left.\");\n\nw--;\n} else {\nSystem.out.println(\"Bye, bye\");\nmyAgent.doDelete(); //Delete this agent\n}\n}\n});\n}",
"public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}",
"public void timePassed() { }",
"public static int randomSleepTime() {\n return ThreadLocalRandom.current().nextInt(2000);\n }",
"@Override\n public void timePassed() {\n }",
"@Override\r\n public void timePassed() {\r\n }",
"private void eating(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }",
"public void spawnTimeRender(Renderer screen) {\r\n\t\tif (respawns == 0) font.render(\"YOU LOSE\", this.getX()-((8*8)/2), this.getY(), true, 0xffffffff, screen, true);\r\n\t\telse font.render(\"Respawn: \"+respawnRender+\"...\", this.getX()-((13*8)/2), this.getY(), true, 0xffffffff, screen, true);\r\n\t}",
"public void timePassed() {\r\n }",
"public void timePassed() {\r\n }",
"private void thinking(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }",
"public void timePassed() {\r\n\r\n }",
"@Override\n public boolean act() {\n float variation = (random.nextFloat() / 2f) - 1;\n\n // Reconfigure the time to wait before spawning another enemy.\n this.deltaLimit = Math.max(100, INITIAL_SPAWN_TIME + variation - (100 * round));\n\n spawnEnemy();\n return false;\n }",
"public void passTime(){\n growPop();\n growGdp();\n growSocial();\n growLiving();\n }",
"public void timePassed() {\n }",
"public void timePassed() {\n }",
"public long startTime();",
"public static long randomTime() {\n return (random.nextInt(11) + 25)*1000;\n }",
"protected abstract void timed() throws Throwable;",
"int time()\n\t{\n\t\treturn totalTick;\n\t}",
"public void pipeTimer() {\n float amountOfSecondsBetweenSpawns = 3;\n if (getRenderTimer() < amountOfSecondsBetweenSpawns) {\n setRenderTimer(getRenderTimer() + elapsedTime);\n return;\n }\n setRenderTimer(0);\n createPipes();\n }",
"default public int getAliveInterval() \t\t\t\t\t{ return 1000; }",
"public abstract void twist(long ms);",
"void calculateSpawnAmount();",
"public void bake() {\n System.out.println(\"Baking for 25 min at 350\");\n }",
"public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}",
"private SleeperTask()\r\n\t{\r\n\t\ttimer = new Timer();\r\n\t\tprovider = null;\r\n\t\taction = \"\";\r\n\t\tverbose = false;\r\n\t\tsetRepeat(5);\r\n\t}",
"double time() throws Throwable;",
"protected void initialize() {\n \tsetTimeout(timeInSeconds);\n }",
"public float getSpawningChance()\n {\n return 0.1F;\n }",
"protected void onTick() {\n//Count down\nif (w > 0) {\nSystem.out.println(w + \" seconds left.\");\n\nw--;\n} else {\nSystem.out.println(\"Bye, bye\");\nmyAgent.doDelete(); //Delete this agent\n}\n}",
"@Override\n public int getSleepTime() {\n return this.sleepTime;\n }",
"public void act() {\n if (System.currentTimeMillis() - lastTime > 5000) {\n lastTime = System.currentTimeMillis();\n int y = (int)(Math.random() * ((BackGround1.height-30)+1)+30);\n int x = (int)(Math.random() * ((BackGround1.width-15)+1)+15);\n addObject(new Coin(),x ,y);\n }\n }",
"public void step() {\n \tinternaltime ++;\n \n }",
"String makeNewSleep(){\n\t\tbeginSleepTime = new SimpleDateFormat(\"HH:mm\").format(new Date());\n\t\treturn beginSleepTime;\n\t}",
"private static double pythonTime() {\n return System.currentTimeMillis() / 1000;\n }",
"public void spawnSlowMotionPickup() {\n Random random = new Random();\n\n slowMotionTimer.cancel();\n slowMotionTimer.purge();\n slowMotionTimer = new Timer();\n slowMotionTimer.schedule(\n new TimerTask() {\n @Override\n public void run() {\n Pickup pickup = new SlowMotionPickup(canvas);\n pickup.spawn();\n activePickups.add(pickup);\n spawnSlowMotionPickup();\n }\n }, (random.nextInt(SLOW_MOTION_MAX_SPAWN_TIME - SLOW_MOTION_MIN_SPAWN_TIME) + SLOW_MOTION_MIN_SPAWN_TIME));\n }",
"long getTimeSpoutBoltA();",
"@Override\n\t\t\tpublic int durationToWait() {\n\t\t\t\treturn getCarType() == 2 ? 60000 : 15000;\n\t\t\t}",
"abstract public void initSpawn();",
"public int getWarmupTime() {\n return warmupTime;\n }",
"protected void initialize() {\n \t\n \tstart_time = System.currentTimeMillis();\n \t\n \tgoal = start_time + duration;\n }",
"@Override\n\tpublic double timeToInitialize() {\n\t\treturn 0;\n\t}",
"public void act() \r\n {\r\n addDrone();\r\n if(droneTimer>0)\r\n {\r\n droneTimer--;\r\n }\r\n }",
"@Override\n\tpublic void spawn(List<String> args) throws IOException,\n\t\t\tURISyntaxException, InterruptedException {\n\t\t\n\t}",
"long random(long ws) {\r\n\t\treturn (System.currentTimeMillis() % ws);\r\n\t}",
"public void runTime() {\n int generation = 0;\n System.out.println(\"Beginning of time\");\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // CLS\n\n while (!universeIsDead() & generation < 2000 /*& !universStable*/) {\n // CLS\n System.out.println(\"Generation : \" + generation);\n generation++;\n System.out.println(this);\n nextGeneration();\n try {\n Thread.sleep(50);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n // CLS\n System.out.println(\"Generation : \" + generation);\n System.out.println(this);\n System.out.println(\"Ending of time\");\n }",
"@Override\n public String getName() {\n return \"sspawn:spawn\";\n }",
"Duration subsystemFreezeDuration();",
"private void doSpawnProcess()\n\t{\n\t\t// spawn sometin\n\t\tthis.spawn();\n\t\t\n\t\t// record another spawned enemy\n\t\tspawnCurrent++;\n\t\t\n\t\t// if that wasn't the last Walker\n\t\tif(currentWave.getNumberOfWalkers() > 0)\n\t\t{\n\t\t\t// restart the spawn timer\n\t\t\tfloat delay = currentWave.getSpawnDelay();\n\t\t\tspawnTimer.start(delay);\n\t\t}\n\t\t// otherwise, we've spawned all our piggies in this wave\n\t\telse\n\t\t{\n\t\t\tprepareNextWave();\n\t\t}\n\t}",
"public ItemSpawnTick() {\n super(100);\n }",
"public static long computeTimeout(long runtime) {\n return runtime * 10 + 2000;\n }",
"public int getSimulationTime() {\n return clock.getTimeCount();\n }",
"public void timer()\n {\n if(exists == true)\n { \n if(counter < 500) \n { \n counter++; \n } \n else \n { \n Greenfoot.setWorld(new Test()); \n exists = false; \n } \n } \n }",
"@Override\r\n public LocalDateTime bake_350degrees(LocalDateTime time) {\r\n System.out.println(\"Baking \"+quantity+\" batch(es) of cookies\");\r\n for(int count = 1; count <= quantity; count++) {\r\n \t time = time.plusMinutes(20);\r\n }\r\n return time;\r\n }",
"public void spawnFogLightsPickup() {\n Random random = new Random();\n\n fogLightsTimer.cancel();\n fogLightsTimer.purge();\n fogLightsTimer = new Timer();\n fogLightsTimer.schedule(\n new TimerTask() {\n @Override\n public void run() {\n Pickup pickup = new FogLightsPickup(canvas);\n pickup.spawn();\n activePickups.add(pickup);\n spawnFogLightsPickup();\n }\n }, (random.nextInt(FOG_LIGHTS_MAX_SPAWN_TIME - FOG_LIGHTS_MIN_SPAWN_TIME) + FOG_LIGHTS_MIN_SPAWN_TIME));\n }",
"public static void main(String[] args) {\n\tint seconds= 1 ;\n\tint minutes= 1 ;\n\tint hours= 1 ; \n\t}",
"long getInitialDelayInSeconds();",
"public void spawnCoinPickup() {\n\n Random random = new Random();\n\n coinTimer.cancel();\n coinTimer.purge();\n coinTimer = new Timer();\n coinTimer.schedule(\n new TimerTask() {\n @Override\n public void run() {\n Pickup pickup = new CoinPickup(canvas);\n pickup.spawn();\n activePickups.add(pickup);\n spawnCoinPickup();\n }\n }, (random.nextInt(COIN_MAX_SPAWN_TIME - COIN_MIN_SPAWN_TIME) + COIN_MIN_SPAWN_TIME));\n }",
"public void startWait() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (server.getNumberOfPlayers() > 0 && !server.gameStartFlag) {\n\t\t\t\t\tserver.runGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}, 120000);\n\t\t// 2min(2*60*1000)\n\t\tsendMessage(\"The game will start 2 minute late\");\n\t}",
"Integer getStartTimeout();",
"@Override\n\tpublic void sleeps() {\n\t\t\n\t}",
"public int getEat_time()\n\t{\n\t\treturn eat_time;\n\t}",
"@Override\n\tpublic void doTimeStep() {\n\t\tint activity = Critter.getRandomInt(3);\n\t\tif(activity == 0) {\n\t\t\twalk(Critter.getRandomInt(8));\n\t\t\tthis.moveFlag = true;\n\t\t}\n\t\telse if(activity == 1) {\t\t\t\t\n\t\t\trun(Critter.getRandomInt(8));\n\t\t\tthis.moveFlag = true;\n\t\t}\n\t\telse if(this.getEnergy() >= Params.min_reproduce_energy) {\n\t\t\tCritter4 egg = new Critter4();\n\t\t\tthis.reproduce(egg,Critter.getRandomInt(8));\n\t\t}\n\t\telse {\n\t\t}\n\t}",
"public void timePassed() {\n this.moveOneStep();\n }",
"public abstract double sensingTime();",
"int getWaitTime();",
"public void act()\n {\n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Cabbage(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Eggplant(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(200) < 3)\n {\n addObject(new Onion(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(300) < 3)\n {\n addObject(new Pizza(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Cake(), Greenfoot.getRandomNumber(600), 0);\n }\n \n if (Greenfoot.getRandomNumber(400) < 3)\n {\n addObject(new Icecream(), Greenfoot.getRandomNumber(600), 0);\n }\n countTime();\n }",
"int getRunningDuration();",
"public long getLoopTime();",
"int getCPU_time();",
"public long getTimeTaken();",
"public int getInitLifetime() throws GSSException {\n/* 277 */ Date date = getEndTime();\n/* 278 */ if (date == null) {\n/* 279 */ return 0;\n/* */ }\n/* */ \n/* 282 */ long l = date.getTime() - System.currentTimeMillis();\n/* 283 */ return (int)(l / 1000L);\n/* */ }",
"private long getSleepTime()\n {\n return sleepTime;\n }",
"protected void setupTime() {\n this.start = System.currentTimeMillis();\n }",
"@Override\n void planted() {\n super.planted();\n TimerTask Task = new TimerTask() {\n @Override\n public void run() {\n\n for (Drawable drawables : gameState.getDrawables()) {\n if (drawables instanceof Zombie) {\n int distance = (int) Math.sqrt(Math.pow((drawables.x - x), 2) + Math.pow((drawables.y - y), 2));\n if (distance <= explosionradious) {\n ((Zombie) drawables).hurt(Integer.MAX_VALUE);\n }\n }\n }\n\n life = 0;\n }\n\n };\n\n Timer timer = new Timer();\n timer.schedule(Task, 2000);\n }",
"protected void runEachSecond() {\n \n }",
"public static void main(String[] args) {\n\n Timer timer = new Timer();\n final TimerTask task = new TimerTask() {\n\n @Override\n public void run() {\n System.out.println(\"=====\" + System.currentTimeMillis());\n try {\n TimeUnit.SECONDS.sleep(10);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n };\n timer.schedule(task, 1000, 1000);\n }",
"int getChronicDelayTime();",
"@Override\r\n\tpublic void spawn(Location location) {\n\t\t\r\n\t}",
"private int getActiveTime() {\n\t\treturn 15 + level;\n\t}",
"@Override\n\t\tpublic final double time() throws Throwable {\n\t\t\tinit();\n\t\t\ttimer.lap();\n\t\t\ttimed();\n\t\t\tdouble time = timer.lap();\n\t\t\tcleanup();\n\t\t\treturn time;\n\t\t}",
"long getExecutionTime();",
"long getElapsedTime();",
"public void setup() {\n\t\taddBehaviour(new TickerBehaviour(this, 1000L) {\n\n\t\t\t@Override\n\t\t\tprotected void onTick() {\n\t\t\t\tint extinguishedFires = 0;\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < worldAgent.getAircraftAgents().length; i++) {\n\t\t\t\t\textinguishedFires+=worldAgent.getAircraftAgents()[i].getAircraftMetricsStats().getNumTotalFiresExtinguishedByThisAircraft();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tworldAgent.getWorldMetricsStats().setNumTotalFiresExtinguishedByAllAircrafts(extinguishedFires);\n\t\t\t\t\n\t\t\t\tif(extinguishedFires >= 3) {\t\t\t\t\t\n\t\t\t\t\tlong end_time = System.currentTimeMillis();\n\t\t\t\t\tlong execution_time = end_time - init_time;\n\t\t\t\t\t\n\t\t\t\t\tAircraftAgent[] aircrafts = worldAgent.getAircraftAgents();\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < aircrafts.length; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(Thread sleepingThread : aircrafts[i].getSleepingThreads().values()) {\n\t\t\t\t\t\t\tSystem.err.println(\"Interrupting thread = \\\"\" + sleepingThread.getName() + \"!\");\n\t\t\t\t\t\t\tsleepingThread.interrupt();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tkillContainer();\n\t\t\t\t\t\n\t\t\t\t\tLogger.appendConfigValues(execution_time);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Run no. \" + JADELauncher.NUMBER_OF_RUNS + \" finished.\");\n\n\t\t\t\t\tif(JADELauncher.NUMBER_OF_RUNS == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLogger.closeStream();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tJADELauncher.NUMBER_OF_RUNS--;\n\t\t\t\t\t\tinstanceRun();\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\t\n\t\tinstanceRun();\n\t}",
"DurationTracker timeSpentTaskWait();",
"public abstract void interactionStarts(long ms);",
"long duration();",
"public static void main(String[] args) {\n\t\t\r\n\t\ttimer = new Timer();\r\n//\t\ttimer.schedule(new WorkTask(), 5000, 3000);\r\n\t\ttimer.schedule(new WorkTask(), 1000);\r\n\t}",
"public int timeToNextEnemy(){\n if(mEnemyIndex < mEnemiesToSpawn.size()){\n return mTimeToSpawnEnemy.get(mEnemyIndex);\n } else {\n return -1;\n }\n }",
"long start();",
"public final void respawn() {\r\n World.submit(new Pulse(getRespawnRate()) {\r\n\r\n @Override\r\n public boolean pulse() {\r\n GroundItemManager.create(GroundSpawn.this);\r\n return true;\r\n }\r\n });\r\n }",
"public static void ComienzaTimer(){\n timer = System.nanoTime();\n }",
"public int getNortpTimeout();",
"@Override\n\tpublic void run() {\n\n\t\tdouble d = Math.random() * 299;\n\t\tlong val = (long) d;\n\n\t\ttry {\n\t\t\tThread.sleep(val);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (Thread.currentThread().getName().equals(\"one\")) {\n\t\t\tSystem.out.println(Thread.currentThread().getName()\n\t\t\t\t\t+ \" sleep time: \" + val);\n\n\t\t} else {\n\t\t\tSystem.out.println(Thread.currentThread().getName()\n\t\t\t\t\t+ \" sleep time: \" + val);\n\t\t}\n\n\t}",
"public void next( long time );",
"public abstract void systemTurnStarts(long ms);"
]
| [
"0.6328474",
"0.5913451",
"0.5901173",
"0.58873194",
"0.581779",
"0.58176386",
"0.5806366",
"0.5784565",
"0.57760566",
"0.5761233",
"0.5752211",
"0.5732237",
"0.5731334",
"0.5731334",
"0.5706164",
"0.569315",
"0.5681711",
"0.56799775",
"0.56419474",
"0.56419474",
"0.56411815",
"0.5626197",
"0.56139773",
"0.5598479",
"0.55943185",
"0.5585081",
"0.55797434",
"0.5558079",
"0.5553747",
"0.5551866",
"0.5545063",
"0.5543361",
"0.554152",
"0.55289197",
"0.5516945",
"0.5507281",
"0.5497557",
"0.54909325",
"0.5464676",
"0.5458888",
"0.54535365",
"0.5451386",
"0.5449353",
"0.5437353",
"0.5436074",
"0.5424177",
"0.5423538",
"0.54183245",
"0.5415301",
"0.5403214",
"0.5398092",
"0.5397111",
"0.5390262",
"0.5389725",
"0.53878134",
"0.53777426",
"0.5375231",
"0.5374079",
"0.53731126",
"0.53678745",
"0.5354741",
"0.53504366",
"0.5348691",
"0.53452194",
"0.533755",
"0.53350836",
"0.5335075",
"0.5334446",
"0.5333412",
"0.5332191",
"0.53313965",
"0.53248596",
"0.532086",
"0.53198576",
"0.5319833",
"0.53192085",
"0.53117293",
"0.5311517",
"0.53086364",
"0.5308507",
"0.53014636",
"0.5298811",
"0.52937436",
"0.528538",
"0.5281676",
"0.5276107",
"0.52752167",
"0.52735096",
"0.5272522",
"0.5271639",
"0.52684116",
"0.52680993",
"0.52633524",
"0.5260166",
"0.52541935",
"0.5253523",
"0.52514887",
"0.524851",
"0.52448326",
"0.5244789",
"0.5236953"
]
| 0.0 | -1 |
Constructor of the system view that take as input the bodies's system model | public NBodiesSystemView(INBodiesSystemModel bodiesModel) {
model = bodiesModel;
paintSynchSemaphore = new Semaphore(0);
initializeGUI();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public System(String systemMake, String systemModel, int processorSpeed)\n\t{\n\t\tmake = systemMake;\n\t\tmodel = systemModel;\n\t\tspeed = processorSpeed;\n\t}",
"private EntityManager initSystems() {\n CameraSystem cameraSystem = new CameraSystem(Constants.WINDOW_WIDTH, Constants.WINDOW_HEIGHT);\n addSystem(cameraSystem);\n addSystem(new ZoomSystem());\n //Physics System\n addSystem(new PhysicsSystem());\n //Player movement system\n addSystem(new PlayerMovementSystem());\n\n addSystem(new CannonFiringSystem());\n addSystem(new CollisionSystem());\n addSystem(new KillSystem());\n addSystem(new HealthSystem());\n addSystem(new StatisticSystem());\n addSystem(new EnemySpawningSystem());\n addSystem(new InventorySystem());\n addSystem(new CurrencySystem());\n\n GUISystem guiSystem = new GUISystem();\n InputSystem inputSystem = new InputSystem(guiSystem);\n\n //Input System\n addSystem(inputSystem);\n //Entity Render System\n addSystem(new EntityRenderSystem());\n //Particle System\n addSystem(new ParticleSystem());\n addSystem(new PlayerActionSystem(guiSystem));\n addSystem(new MapRenderSystem());\n addSystem(new HUDSystem());\n //Debug Render System\n addSystem(new DebugRendererSystem());\n //GUI System\n addSystem(guiSystem);\n\n return this;\n }",
"public WorldModel(){\t\n\t}",
"private void initializeGUI() {\n\n\t\t// system's view windows dimensions\n\t\twindowsDimension = new Dimension(900, 700);\n\n\t\t// system's main frame and its properties\n\t\tframeSystem = new JFrame(\"NBodies System Viewer\");\n\t\tframeSystem.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframeSystem.setResizable(false);\n\t\tframeSystem.setBackground(Color.white);\n\n\t\t// buttons and their properties\n\t\tbtnNextStep = new JButton(\"Next Step\");\n\t\tbtnStart = new JButton(\"Start\");\n\t\tbtnStart.setSize(btnNextStep.getSize());\n\t\tbtnPause = new JButton(\"Pause\");\n\t\tbtnPause.setSize(btnNextStep.getSize());\n\t\tbtnReset = new JButton(\"Reset\");\n\t\tbtnReset.setSize(btnNextStep.getSize());\n\t\tbtnRestart = new JButton(\"Restart Application\");\n\t\tbtnRestart.setSize(btnNextStep.getSize());\n\n\t\t// control console and its properties and internal buttons\n\t\tcontrolConsole = new JPanel();\n\t\tcontrolConsole.setBackground(new Color(180, 180, 180));\n\t\tcontrolConsole.add(btnStart);\n\t\tcontrolConsole.add(btnNextStep);\n\t\tcontrolConsole.add(btnPause);\n\t\tcontrolConsole.add(btnReset);\n\t\tcontrolConsole.add(btnRestart);\n\n\t\t// label related to the number of bodies involved in the system and its\n\t\t// properties\n\t\tlblNBodies = new JLabel(\"- Number of bodies: 0\", JLabel.RIGHT);\n\t\tcontrolConsole.add(lblNBodies);\n\n\t\t// bodies's display and its properties (background color black to\n\t\t// simulate the space)\n\t\tbodiesDisplay = new BodiesSystemDisplay(model);\n\t\tbodiesDisplay.setBackground(new Color(0, 0, 0));\n\n\t\t// master panel and its layout's properties\n\t\tmasterPanel = new JPanel();\n\t\tLayoutManager layout = new BorderLayout();\n\t\tmasterPanel.setLayout(layout);\n\t\tmasterPanel.add(BorderLayout.NORTH, controlConsole);\n\t\tmasterPanel.add(BorderLayout.CENTER, bodiesDisplay);\n\n\t\t// view's main frame and its properties\n\t\tframeSystem.setContentPane(masterPanel);\n\t\tframeSystem.setSize(windowsDimension);\n\t\tframeSystem.setLocationRelativeTo(null);\n\t\tframeSystem.setVisible(true);\n\t\t\n\t\tbodiesDisplay.setUpBuffer();\n\t}",
"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}",
"private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}",
"public Model() {\n\t \tentranceCarQueue = new CarQueue();\n\t entrancePassQueue = new CarQueue();\n\t paymentCarQueue = new CarQueue();\n\t exitCarQueue = new CarQueue();\n\t abonnementsPlaatsen = abonnementsPlaatsen < 0 ? 0 : abonnementsPlaatsen;\n\t numberOfOpenSpots =numberOfFloors*numberOfRows*numberOfPlaces;\n\t hoeveelheid = abonnementsPlaatsen;\n\t cars = new Car[numberOfFloors][numberOfRows][numberOfPlaces];\n\t \n\t /*\n\t\tguiframe=new JFrame(\"Parkeergarage Simulator\");\n\t\tscreen.setSize(800, 500);\n\t\tscreen.setLayout(null);\n\t \n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t Container Controlpanelview = getContentPane();\n\t Controlpanelview.add(cpview, BorderLayout.CENTER);\n\t Controlpanelview.add(simcontroller, BorderLayout.EAST);\n\t pack();\n\t screen.setVisible(true);\n\t\t\n\t updateViews(); */\n\t}",
"private void createModel() {\n model = new Node(\"Enemy\"+enemyCounter);\n Box b = new Box(.5f, 2, .5f);\n Geometry bg = new Geometry(\"Box\", b);\n Material bm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n Sphere sphere = new Sphere(32, 32, 1.5f, false, false);\n Geometry sg = new Geometry(\"Sphere\", sphere);\n Material sm = new Material(assetManager, \"Common/MatDefs/Misc/Unshaded.j3md\");\n bm.setColor(\"Color\", ColorRGBA.Blue);\n sm.setColor(\"Color\", ColorRGBA.Red);\n bg.setMaterial(bm); \n sg.setMaterial(sm);\n model.attachChild(bg);\n model.attachChild(sg);\n sg.setLocalTranslation(0,2.5f,0);\n \n attachChild(model);\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 OpenGLModel() {\n\n\n\t}",
"public RenderSystem() {\n super(SystemType.RENDER);\n bufferBuffer =\n new MasterBuffer(\n voide.resources.Resources\n .get()\n .getResource(\"voide.packed_texture\", Texture.class)\n .getTextureId()\n );\n master =\n new MasterRenderer(Constants.GAME_WIDTH, Constants.GAME_HEIGHT);\n }",
"@Override\r\n protected void initModel() {\n model = new Sphere(\"projectil Model\", 5, 5, 0.2f);\r\n model.setModelBound(new BoundingBox());\r\n model.updateModelBound();\r\n }",
"public VisualView(ReadOnlyAnimatorModel aModel) {\n\n super();\n\n // attrs\n\n int leftMostX = (int) aModel.getBoundingBoxLoc().getX();\n int topMostY = (int) aModel.getBoundingBoxLoc().getY();\n int height = aModel.getBoundingBoxHeight();\n int width = aModel.getBoundingBoxWidth();\n\n List<AnimatedShapeImpl> shapesAtTick = aModel.getShapesAtTick(aModel.getModelStartTime());\n\n this.setTitle(\"Animator Visual View - Bou Lahdou and McNeill\");\n this.setSize(width, height);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setLayout(new BorderLayout());\n\n this.animationPanel = new AnimationPanel(shapesAtTick);\n animationPanel.setPreferredSize(new Dimension(width, (7 * height) / 8));\n this.add(animationPanel, BorderLayout.NORTH);\n\n JScrollPane scroller = new JScrollPane(animationPanel);\n scroller.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n scroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n scroller.setBounds(20, 25, 200, 50);\n\n this.add(scroller, BorderLayout.CENTER);\n }",
"public BusSystem(){\n\t\tmar = new MAR((short)0, this);\n\t\tmdr = new MDR((short)0, this);\n\t\tpc = new PC((short)0);\n\t\tA = new Register((short)0);\n\t\tB = new Register((short)0);\n\t\tstack = new MemStack();\n\t\tprogramMemory = new Memory();\n\t\tMemory.setMemSize((short)1024);\n\t}",
"public RobotWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n prepare();\n }",
"public SynopticView() {\n\t\tsuper();\n\t}",
"public Model(ThingNode thing, ThingNode world)\n {\n this.thing = thing;\n this.world = world;\n }",
"protected CreateMachineNodeModel() {\r\n super(0,1);\r\n }",
"public VisualView(IModel model1, int tickPerSecond) {\n super();\n this.tickPerSecond = tickPerSecond;\n panel = new MyPanel(model1, tickPerSecond);\n model = model1;\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 }",
"protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }",
"public BaseView() {\r\n\t\tsuper();\r\n\t\tthis.modelView = new BaseModelView();\r\n\t\tthis.buildLayout();\r\n\t\tthis.setVisible(true);\r\n\t}",
"public System(String implClassName, Params param) {\n\t\tSimLogger.log(Level.INFO, \"New System Created.\");\n\t\tthis.param = param;\n\t\tthis.param.system = this;\n\t\ttry {\n\t\t\tClass implClass = Class.forName(implClassName);\n\t\t\timpl = (Implementation) implClass.newInstance();\n\t\t\t// Set the implementation's system so init() can set it in workload!!!\n\t\t\timpl.sys = this;\n\t\t\timpl.init(param.starter.build());\n\t\t\tSimLogger.log(Level.FINE, \"Implementation \" + implClassName + \" was created successfully.\");\n\n\t\t\ttry {\n\t\t\t\tfor(String s : param.measures) {\n\t\t\t\t\tSimLogger.log(Level.FINE, \"Adding measure \" + s + \" to system.\");\n\t\t\t\t\tClass measureClass = Class.forName(s);\n\t\t\t\t\tMeasure measure = (Measure) measureClass.newInstance();\n\t\t\t\t\tmeasures.add(measure);\n\t\t\t\t}\n\t\t\t\tCollections.sort(measures);\n\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(InstantiationException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate measure class with name = \" + implClassName);\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\n\t\t\t//init actors\n\t\t\tHashMap<String, Integer> actorMachineInstances = param.starter.buildActorMachine();\n\t\t\tfor(String aType : actorMachineInstances.keySet()) {\n\t\t\t\tint numActors = actorMachineInstances.get(aType);\n\t\t\t\tSimLogger.log(Level.FINE, \"Creating \" + numActors + \" many of actor type \" + aType);\n\t\t\t\tfor(int i = 0; i < numActors; i++) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tClass actorClass = Class.forName(aType);\n\t\t\t\t\t\tActorMachine am = (ActorMachine) actorClass.newInstance();\n\t\t\t\t\t\tString actorName = am.getPrefix() + i;\n\t\t\t\t\t\tam.actor = actorName;\n\t\t\t\t\t\tam.actorType = aType;\n\t\t\t\t\t\tam.sys = this;\n\t\t\t\t\t\tactors.put(actorName, am);\n\t\t\t\t\t} catch(ClassNotFoundException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(InstantiationException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch(IllegalAccessException e) {\n\t\t\t\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate actor machine class with name = \" + implClassName);\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSimLogger.log(Level.FINE, \"Actors init was successful.\");\n\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot find implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Cannot instantiate implementation class with name = \" + implClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public SystemNode(SystemInfo sys) {\n\t\tsuper(sys);\n\t}",
"public View(Model m) {\n super(\"Group G: Danmarkskort\");\n model = m;\n iconPanel.addObserverToIcons(this);\n routePanel = new RouteView(this, model);\n optionsPanel = new OptionsPanel(this,model);\n /*Three helper functions to set up the AffineTransform object and\n make the buttons and layout for the frame*/\n setScale();\n makeGUI();\n adjustZoomFactor();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\n //This sets up a listener for when the frame is re-sized.\n createComponentListener();\n\n pack();\n canvas.requestFocusInWindow();\n model.addObserver(this);\n }",
"@Override\n protected void buildWorldRepresentation() {\n java.util.List<BasicModelEntity> worldModelEntityList = spaceExplorerModel.getWorldEntityList();\n java.util.List<CSysEntity> viewWorldEntityList = new ArrayList();\n for (int i = 0; i < worldModelEntityList.size(); i++) {\n\n BasicModelEntity basicModelEntity = worldModelEntityList.get(i);\n\n CSysEntity cSysEntity = null;\n if (basicModelEntity instanceof ModelLineEntity) {\n cSysEntity = new SeCSysLineEntity(this, (ModelLineEntity) basicModelEntity);\n cSysEntity.setDrawColor(basicModelEntity.getColor());\n// addWorldEntity(cSysLineEntity);\n } else if (basicModelEntity instanceof ModelPolyLineEntity) {\n cSysEntity = new SeCSysViewPolyLineEntity(this, (ModelPolyLineEntity) basicModelEntity);\n cSysEntity.setDrawColor(basicModelEntity.getColor());\n// addWorldEntity(seCSysViewPolylineEntity);\n }\n viewWorldEntityList.add(cSysEntity);\n }\n\n createAxis(viewWorldEntityList);\n viewWorldEntityArray = viewWorldEntityList.toArray(new BasicCSysEntity[viewWorldEntityList.size()]);\n updateCSysEntList(combinedRotatingMatrix);\n }",
"public Controller()\n {\n // Create initial queues and stations\n q0 = new Queue(); //registration q\n \n // p[arameters are id of station, 4 queues, completed q)\n s0 = new Station(0, q0, q1, q2, q3, qx);\n \n //Student soiurce ss is an actor\n \n actors = new ArrayList<>(); \n actors.add(s0); // add all Actor implementors\n //actors.add(myStudentSorce);\n }",
"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 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 VirtualWorld(Node rootNode, AssetManager assetManager, ViewPort viewPort){\n sky = new Sky(rootNode, assetManager);\n water = new Water(rootNode, viewPort, assetManager);\n }",
"public Model(JSONObject selfAsJson) {\n try {\n int width = selfAsJson.getInt(\"width\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n int height = selfAsJson.getInt(\"height\") / PlayGameActivity.PIXELS_PER_PHYSICS_GRID;\n this.physModel = new Physics2D(selfAsJson.getJSONObject(\"physics\"), width, height);\n this.graphModel = new Graphics2D(selfAsJson.getJSONObject(\"graphics\"));\n this.gameStateModel = new GameState(selfAsJson.getJSONObject(\"gamestate\"));\n }catch(JSONException e) {\n e.printStackTrace();\n }\n\n }",
"public EAEditorView(ReadOnlyEAOperations model) {\n\n super();\n setTitle(\"The Easy Animator\");\n\n // check for null\n if (model == null) {\n throw new IllegalArgumentException(\"Model can't be null\");\n }\n this.model = model;\n\n // initialize the main panel\n constructMainPanel();\n constructAnimationPanel();\n generateLabelPanel();\n generateButtonPanel();\n constructPopup();\n createOKButtons();\n\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.pack();\n }",
"public SimulationView() {\n initComponents();\n }",
"public SingleSystem(MaltipsSystem maltipsSystem) {\n this.maltipsSystem = maltipsSystem;\n }",
"public DriveSystem() {\n \t\n \tsuper(\"DriveSystem\", 0.5, 0.3, 1.0);//Must be first line of constructor!\n \tultraRangeFinder.setAutomaticMode(true);\n \tultraRangeFinder.setEnabled(true);\n \tultraRangeFinderBack.setAutomaticMode(true);\n \tultraRangeFinderBack.setEnabled(true);\n //double kp = 0.0001;\n \t//double ki = 0.001;\n \t//double kd = 0.01;\n \t//getPIDController().setPID(kp,ki,kd);//Set the PID controller gains.\n this.setInputRange(-180.0, 180.0);//Sets the MIN and MAX values expected from the input and setPoint!\n this.setOutputRange(-1.0, 1.0);//Sets the the MIN and MAX values to write to output\n //this.setAbsoluteTolerance(5.0);//Set the absolute error which is considered tolerable for use with OnTarget()\n //this.setPercentTolerance(10);//Set the percentage error which is considered tolerable for use with OnTarget()\n //this.setSetpoint(45);//Set the where to go to, clears GetAvgError()\n getPIDController().setContinuous(true);//True=input is continuous, calculates shortest route to setPoint()\n //this.enable();//Begin running the PID Controller.\n \n LiveWindow.addActuator(\"DriveSystem\", \"PID DriveSystem\", getPIDController());\n \n // getPIDController().startLiveWindowMode();//Start having this object automatically respond to value changes.\n }",
"public VancarrierModel() {\r\n\t\tthis(null, \"VCModel\", true, true);\r\n\t}",
"public StudentController(PrIS infoSys) {\r\n\t\tinformatieSysteem = infoSys;\r\n\t}",
"public TopView(TopModel topModel) {\r\n this.topModel = topModel;\r\n }",
"public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}",
"public TemplateController() {\n super();\n // get distance sensors and save them in array\n _distanceSensors = new DistanceSensor[] {\n getDistanceSensor(\"ps5\"),\n getDistanceSensor(\"ps6\"),\n getDistanceSensor(\"ps7\"),\n getDistanceSensor(\"ps0\"),\n getDistanceSensor(\"ps1\"),\n getDistanceSensor(\"ps2\"),\n };\n // get light sensors and save them in array\n _lightSensors = new LightSensor[]{\n getLightSensor(\"ls5\"),\n getLightSensor(\"ls6\"),\n getLightSensor(\"ls7\"),\n getLightSensor(\"ls0\"),\n getLightSensor(\"ls1\"),\n getLightSensor(\"ls2\")\n };\n\n //enable the sensors\n for (int i = 0; i < 6; i++){\n _distanceSensors[i].enable(10);\n _lightSensors[i].enable(10);\n }\n }",
"public final void rule__Model__BodiesAssignment_2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8990:1: ( ( ruleSystem ) )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8991:1: ( ruleSystem )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8991:1: ( ruleSystem )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:8992:1: ruleSystem\n {\n before(grammarAccess.getModelAccess().getBodiesSystemParserRuleCall_2_0()); \n pushFollow(FOLLOW_ruleSystem_in_rule__Model__BodiesAssignment_218028);\n ruleSystem();\n\n state._fsp--;\n\n after(grammarAccess.getModelAccess().getBodiesSystemParserRuleCall_2_0()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public SpaceSim() {\n TimeZone.setDefault(TimeZone.getTimeZone(\"GMT\"));\n initComponents();\n \n bodies = new CopyOnWriteArrayList<>();\n addBody(\"Sun\", massOfSun, .001, 0, 0, 0, 0, 0, 0);\n sun = bodies.get(0);\n \n for (String c : colors.keySet()) {\n colorComboBoxEdit.addItem(c);\n colorComboBoxAdd.addItem(c);\n }\n colorComboBoxAdd.setSelectedItem(\"Black\");\n \n setEditor(bodies.get(0));\n simDate = new Date(0);\n setupKeyMaps();\n }",
"public ModelManagerImpl() {\n this( null );\n }",
"public NCLBody() {}",
"Model() {\r\n this.observers = new ArrayList<Observer>();\r\n\r\n init();\r\n }",
"public simulation() {\n\n }",
"public void create() {\n\t\trandomUtil = new RandomUtil();\n\t\t// create the camera using the passed in viewport values\n\t\tcamera = new OrthographicCamera(viewPortWidth, viewPortHeight);\n\t\tbatch.setProjectionMatrix(camera.combined);\n\t\tdebugRender = new Box2DDebugRenderer(true, false, false, false, false, true);\n\t\ttestWorld = new TestWorld(assetManager.blockManager(), new Vector2(0, 0f));\n\t\ttestWorld.genWorld(debugUtil);\n\t\ttestWorld.setCamera(getCamera());\n\t\tplayer.createBody(testWorld.getWorld(), BodyType.DynamicBody);\n\t\ttestWorld.getPlayers().add(player);\n\t\tworldParser = new WorldParser(testWorld, \"Test World\");\n\t\tworldParser = new WorldParser(testWorld, \"Test Write\");\n\t\tworldParser.parseWorld();\n\t\twriter = new WorldWriter(\"Test Write\", testWorld);\n\t}",
"public void init() {\n try {\n java.net.URL codeBase = getCodeBase();\n codeBaseString = codeBase.toString();\n } catch (Exception e) {\n // probably running as an application, try the application\n // code base\n codeBaseString = \"file:./\";\n }\n\n if (colorMode == USE_COLOR) {\n objColor = red;\n } else {\n objColor = white;\n }\n\n Container contentPane = getContentPane();\n\n contentPane.setLayout(new BorderLayout());\n\n GraphicsConfiguration config = SimpleUniverse\n .getPreferredConfiguration();\n\n canvas = new Canvas3D(config);\n\n u = new SimpleUniverse(canvas);\n\n if (isApplication) {\n offScreenCanvas = new OffScreenCanvas3D(config, true);\n // set the size of the off-screen canvas based on a scale\n // of the on-screen size\n Screen3D sOn = canvas.getScreen3D();\n Screen3D sOff = offScreenCanvas.getScreen3D();\n Dimension dim = sOn.getSize();\n dim.width *= OFF_SCREEN_SCALE;\n dim.height *= OFF_SCREEN_SCALE;\n sOff.setSize(dim);\n sOff.setPhysicalScreenWidth(sOn.getPhysicalScreenWidth()\n * OFF_SCREEN_SCALE);\n sOff.setPhysicalScreenHeight(sOn.getPhysicalScreenHeight()\n * OFF_SCREEN_SCALE);\n\n // attach the offscreen canvas to the view\n u.getViewer().getView().addCanvas3D(offScreenCanvas);\n\n }\n contentPane.add(\"Center\", canvas);\n\n // setup the env nodes and their GUI elements\n setupLights();\n setupBackgrounds();\n setupFogs();\n setupSounds();\n\n // Create a simple scene and attach it to the virtual universe\n BranchGroup scene = createSceneGraph();\n\n // set up sound\n u.getViewer().createAudioDevice();\n\n // get the view\n view = u.getViewer().getView();\n\n // Get the viewing platform\n ViewingPlatform viewingPlatform = u.getViewingPlatform();\n\n // Move the viewing platform back to enclose the -4 -> 4 range\n double viewRadius = 4.0; // want to be able to see circle\n // of viewRadius size around origin\n // get the field of view\n double fov = u.getViewer().getView().getFieldOfView();\n\n // calc view distance to make circle view in fov\n float viewDistance = (float) (viewRadius / Math.tan(fov / 2.0));\n tmpVector.set(0.0f, 0.0f, viewDistance);// setup offset\n tmpTrans.set(tmpVector); // set trans to translate\n // move the view platform\n viewingPlatform.getViewPlatformTransform().setTransform(tmpTrans);\n\n // add an orbit behavior to move the viewing platform\n OrbitBehavior orbit = new OrbitBehavior(canvas, OrbitBehavior.STOP_ZOOM);\n orbit.setSchedulingBounds(infiniteBounds);\n viewingPlatform.setViewPlatformBehavior(orbit);\n\n u.addBranchGraph(scene);\n\n contentPane.add(\"East\", guiPanel());\n }",
"public RJGUIModel () {\n\t}",
"public SceneJFrameController(Scene model, SceneEditorVisual view) {\r\n this.model = model;\r\n this.view = view;\r\n }",
"public MainGui(FileHandlingLibrary fileDomainModel, SocketHandlingLibrary socketDomainModel) {\n this.fileDomainModel = fileDomainModel;\n this.socketDomainModel = socketDomainModel;\n initComponents();\n initTrees();\n }",
"private void initialize() {\n SystemManager.get(this);\n SystemManager.add(new PlayerInputSystem(this, win.getInputHandler()));\n SystemManager.add(new PhysicSystem(this, win.getDimension()));\n SystemManager.add(new RenderSystem(this));\n\n World world = new World(new Vector2D(0.0f, 98.1f));\n theCar = new Car(\"car\");\n\n theCar.setPosition(new Vector2D(win.getWidth() * 0.5f, win.getHeight() * 0.5f))\n .setSize(new Rectangle(50, 20))\n .setVelocity(new Vector2D(0.0f, 0.0f))\n .setResistance(0.90f)\n .setMass(2000.0f)\n .setWorld(world);\n\n add(theCar);\n }",
"public Model() {\n this(DSL.name(\"model\"), null);\n }",
"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 MyModel() {\n mazeGeneratingServer = new Server(5400, 1000, new ServerStrategyGenerateMaze());\n solveSearchProblemServer = new Server(5401, 1000, new ServerStrategySolveSearchProblem());\n //Raise the servers\n }",
"public Linearmodel() {\n this(DSL.name(\"LinearModel\"), null);\n }",
"public Main()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n\n prepare();\n }",
"public MapView(GameModel model){\n this.model = model;\n this.images = new Images(model);\n this.visualizer = new VisualizerVisitor(this, zoomFactor);\n this.debug = new DebugVisitor(this, zoomFactor);\n this.modelMid = new DoubleVec(model.getFieldSizeX()*0.5,model.getFieldSizeY()*0.5);\n this.refPoint = modelMid;\n this.smallVisualizer = new SmallVisitor(this, 3);\n updateBoxes();\n }",
"public MParameterSystem() {\n\t\tsuper();\n\t}",
"public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}",
"public SystemFrame() {\n initComponents();\n }",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }",
"public VibrationalStructureInfo() {\n }",
"public Stage() {\n\n for (int i = 0; i < 20; i++) { // Generate the basic grid array\n ArrayList<Cell> cellList = new ArrayList<Cell>();\n cells.add(cellList);\n for (int j = 0; j < 20; j++) {\n cells.get(i).add(new Cell(10 + 35 * i, 10 + 35 * j));\n }\n }\n\n for (int i = 0; i < cells.size(); i++) { // Generate the list of environment blocks\n ArrayList<Environment> envList = new ArrayList<Environment>();\n environment.add(envList);\n for (int j = 0; j < cells.size(); j++) {\n int cellGenerator = (int) (Math.random() * 100) + 1;\n environment.get(i).add(generateCell(cellGenerator, cells.get(i).get(j)));\n }\n }\n\n grid = new Grid(cells, environment); // Initialise the grid with the generated cells array\n }",
"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 Model() {\n\t}",
"public Model() {\n\t}",
"public void createBody(){\n this.fuelMass = this.initFuelMass;\n BodyDef def = new BodyDef();\n def.position.set(initPosition);\n def.type = BodyDef.BodyType.DynamicBody;\n body = world.createBody(def);\n\n PolygonShape box = new PolygonShape();\n box.setAsBox(lunarModuleWidth / 2, lunarModuleHeight / 2);\n fixture = body.createFixture(box, (lunarModuleMass + fuelMass) / (lunarModuleHeight * lunarModuleWidth));\n box.dispose();\n\n fixture.setUserData(\"lunar module\");\n fixture.setFriction(0.4f);\n massData = body.getMassData();\n setSize(lunarModuleWidth, lunarModuleHeight);\n\n this.alive = true;\n this.activateEngine = false;\n this.activateAuxiliaryEnginesLeft = false;\n this.activateAuxiliaryEnginesRight = false;\n }",
"public ModelRenderer(ModelSurfaceView modelSurfaceView, Context context) {\n this.main = modelSurfaceView;\n this.context = context;\n }",
"public WindBarbView(WindBarbModel model) {\n this.model = model;\n }",
"private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }",
"public Ocean()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n BF bf = new BF();\n addObject(bf,500,300);\n SF sf = new SF();\n addObject(sf,100,300);\n }",
"SystemParamModel createSystemParamModel();",
"public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }",
"public ME_Model() {\n _nheldout = 0;\n _early_stopping_n = 0;\n _ref_modelp = null;\n }",
"public Units(final SystemOfUnits system) {\n metre = system.getUnit(Length.class);\n radian = system.getUnit(Angle.class);\n second = system.getUnit(Time.class);\n pascal = system.getUnit(Pressure.class);\n one = getDimensionless(system);\n kilometre = metre .multiply(1000);\n foot = metre .multiply(0.3048);\n footSurveyUS = metre .multiply(12 / 39.37);\n degree = radian.multiply(Math.PI / 180);\n grad = radian.multiply(Math.PI / 200);\n arcSecond = radian.multiply(Math.PI / (180*60*60));\n microradian = radian.divide(1E6);\n day = second.multiply(24*60*60);\n hectopascal = pascal.multiply(100);\n ppm = one .divide(1000000);\n }",
"private void createWorld() {\n world = new World();\n world.setEventDeliverySystem(new BasicEventDeliverySystem());\n //world.setSystem(new MovementSystem());\n world.setSystem(new ResetPositionSystem());\n world.setSystem(new RenderingSystem(camera, Color.WHITE));\n\n InputSystem inputSystem = new InputSystem();\n InputMultiplexer inputMultiplexer = new InputMultiplexer();\n inputMultiplexer.addProcessor(inputSystem);\n inputMultiplexer.addProcessor(new GestureDetector(inputSystem));\n Gdx.input.setInputProcessor(inputMultiplexer);\n world.setSystem(inputSystem);\n world.setSystem(new MoveCameraSystem(camera));\n\n world.initialize();\n }",
"private void constructBody( Vector2 position, float height, float width ) {\n\t\tBodyDef bodyDef = new BodyDef( );\n\t\tbodyDef.type = BodyType.KinematicBody;\n\t\tbodyDef.position.set( position.x * Util.PIXEL_TO_BOX, position.y\n\t\t\t\t* Util.PIXEL_TO_BOX );\n\t\tbody = world.createBody( bodyDef );\n\n\t\tPolygonShape polygon = new PolygonShape( );\n\t\tpolygon.setAsBox( width * Util.PIXEL_TO_BOX, height * Util.PIXEL_TO_BOX );\n\t\tFixtureDef steamFixtureDef = new FixtureDef( );\n\t\tsteamFixtureDef.shape = polygon;\n\t\tsteamFixtureDef.isSensor = true;\n\t\tbody.createFixture( steamFixtureDef );\n\n\t\tpolygon.dispose( );\n\n\t\tbody.setUserData( this );\n\n\t}",
"public View(Model m) {\r\n\t\tsuper();\r\n\t\tsetBackground(Color.black); // Setting background color.\r\n\t\tthis.model = m;\r\n\t}",
"public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}",
"public RenderEngine() {\n\t\twindow = Window.getInstance();\n\t\t\n\t\ttestEntity = new Entity(\"skull/skull.obj\", \"./res/models/skull/skull.png\", new Vector3f(0,0,0), new Vector3f(0,0,0));\n\t\ttestEntity.getWorldTransform().setScaling(new Vector3f(0.01f,0.01f,0.01f));\n\t\t\n\t\ttestEntity2 = new Entity(\"dummy/dummy.obj\", \"./res/models/dummy/dummy.jpg\", new Vector3f(0,8,0), new Vector3f(0,0,0));\n\t\ttestEntity2.getWorldTransform().setScaling(new Vector3f(0.05f,0.05f,0.05f));\n\t\t\n\t\ttestLight = new Light(new Vector3f(-5,5,-5), new Vector3f(1,1,1));\n\t\ttestLight.getWorldTransform().setScaling(new Vector3f(0.1f,0.1f,0.1f));\n\t\t\n\t\tsky = new SkyDome();\n\t\t\n\t}",
"public void buildModel(){\r\n\t\t\r\n\t\tsuper.buildModel();\r\n\t\t\r\n\t}",
"public Vue(Model model)\n {\n initAttributs();\n creerWidget();\n\n setSize(560,500);\n setVisible(true);\n setResizable(false);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }",
"@Override\n\tpublic void create() {\n\t\tassetManager = new AssetManager();\n\t\tassetManager.load(ROLIT_BOARD_MODEL, Model.class);\n\t\tassetManager.load(ROLIT_BALL_MODEL, Model.class);\n\t\t\n\t\t//construct the lighting\n\t\tenvironment = new Environment();\n\t\tenvironment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1f));\n\t\tenvironment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));\n\t\t\n\t\tmodelBatch = new ModelBatch();\n\t\t\n\t\tcam = new PerspectiveCamera(67f, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\t\n\t\tGdx.input.setInputProcessor(new InputHandler());\n\t}",
"public ControlView (SimulationController sc){\n myProperties = ResourceBundle.getBundle(\"english\");\n myStartBoolean = false;\n mySimulationController = sc;\n myRoot = new HBox();\n myPropertiesList = sc.getMyPropertiesList();\n setView();\n\n }",
"public TopAbstractView(TopModel topModel) {\r\n this.topModel = topModel;\r\n }",
"public pr3s1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1280, 720, 1); \n prepare();\n }",
"public Os() {\n osBO = new OsBO();\n }",
"public RunMVC() {\n\n\t\t//cria o Modelo e a Visao\n\t\tModel myModel \t= new Model();\n\t\tView myView \t= new View();\n\t\t//View outraView \t= new View();\n\t\tOutraView outraView \t= new OutraView();\n\n\t\t//avisa o modelo que a visao existe \n\t\tmyModel.addPropertyChangeListener(myView);\n\t\tmyModel.addPropertyChangeListener(outraView);\n\n\t\tController myController = new Controller();\n\t\tmyController.addModel(myModel);\n\t\t//myController.addView(myView);\n\t\t//myController.addView(outraView);\n\t\tmyController.initModel(start_value);\n\n\t\t//tell View about Controller \n\t\tmyView.addController(myController);\n\t\toutraView.addController(myController);\n\t\t\n\n\t}",
"private void build()\n\t{\n\t\tengine.addSystem(new InputSystem());\n\t\tengine.addSystem(new MovementSystem());\n\t\t\n\t}",
"public Title()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(PlatformWorld.sWidth, PlatformWorld.sHeight, 1); \n \n addObject(new TitleController(), 0, 0);\n }",
"public DynamicModelPart(DynamicModel dynamicModel, int textureOffsetU, int textureOffsetV) {\n super(dynamicModel, textureOffsetU, textureOffsetV);\n this.dynamicModel = dynamicModel;\n this.cuboids = new ObjectArrayList<DynamicModelPart.DynamicCuboid>();\n this.children = new ObjectArrayList<DynamicModelPart>();\n }",
"public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}",
"public SystemMessage() {\r\n\t}",
"public void initView() {\n\t\t view.initView(model);\t \n\t }",
"protected Body (World world, org.jbox2d.dynamics.Body body) {\n\t\tthis.world = world;\n\t\tthis.body = body;\n\t}",
"public View(final IModel model) throws HeadlessException {\r\n\t\tthis.model=model;\r\n\t\tthis.viewFrame = new ViewFrame(model, this);\r\n\t\tSwingUtilities.invokeLater(this);\r\n\t\tthis.viewFrame.setVisible(true);\r\n\t}",
"public PartsViewImpl() {\n }",
"protected Model(EntityManagerFactory emf, TextRepository textRepository) {\n this.entityManagerFactory = emf;\n this.textRepository = textRepository;\n this.gateDatastoreLocation = new GateDatastoreLocation();\n }",
"public TwoBody(double mu)\n\t{\n\t\t//Constants c = new Constants();\n\t\tthis.mu = mu;\n\t\trv = new VectorN(randv());\n\t}"
]
| [
"0.6557299",
"0.65158063",
"0.64835465",
"0.62083644",
"0.6003452",
"0.593258",
"0.5917318",
"0.59081054",
"0.5867463",
"0.5864801",
"0.58539975",
"0.58426607",
"0.5838978",
"0.58297",
"0.58121294",
"0.58101505",
"0.5794316",
"0.5780417",
"0.57763666",
"0.57716936",
"0.5760389",
"0.5745288",
"0.57312936",
"0.5716979",
"0.5709875",
"0.57048786",
"0.5701836",
"0.5683359",
"0.56702",
"0.56389874",
"0.5630475",
"0.55814916",
"0.55772126",
"0.5566154",
"0.55569917",
"0.55565274",
"0.55508405",
"0.55461496",
"0.5539223",
"0.5537624",
"0.55259806",
"0.5524545",
"0.5507086",
"0.54905146",
"0.5485817",
"0.54695714",
"0.5457193",
"0.54498917",
"0.5448027",
"0.5447847",
"0.54386574",
"0.5435501",
"0.54254067",
"0.5421922",
"0.5418228",
"0.5416198",
"0.5413171",
"0.54097503",
"0.5409249",
"0.54052424",
"0.5403514",
"0.539937",
"0.5397119",
"0.5388821",
"0.5387907",
"0.5375768",
"0.5375768",
"0.5370941",
"0.53631663",
"0.5362291",
"0.5361322",
"0.53592485",
"0.53454214",
"0.5341273",
"0.5338697",
"0.53179485",
"0.5315234",
"0.53079754",
"0.5307284",
"0.52964395",
"0.5288428",
"0.5283606",
"0.5279246",
"0.52763253",
"0.52720636",
"0.526951",
"0.526526",
"0.5258434",
"0.5256178",
"0.52535814",
"0.5251817",
"0.5244442",
"0.5244042",
"0.52426004",
"0.5241178",
"0.5238231",
"0.52315754",
"0.52291566",
"0.5227267",
"0.52218974"
]
| 0.73546916 | 0 |
Method to initialize the GUI of the system's view | private void initializeGUI() {
// system's view windows dimensions
windowsDimension = new Dimension(900, 700);
// system's main frame and its properties
frameSystem = new JFrame("NBodies System Viewer");
frameSystem.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frameSystem.setResizable(false);
frameSystem.setBackground(Color.white);
// buttons and their properties
btnNextStep = new JButton("Next Step");
btnStart = new JButton("Start");
btnStart.setSize(btnNextStep.getSize());
btnPause = new JButton("Pause");
btnPause.setSize(btnNextStep.getSize());
btnReset = new JButton("Reset");
btnReset.setSize(btnNextStep.getSize());
btnRestart = new JButton("Restart Application");
btnRestart.setSize(btnNextStep.getSize());
// control console and its properties and internal buttons
controlConsole = new JPanel();
controlConsole.setBackground(new Color(180, 180, 180));
controlConsole.add(btnStart);
controlConsole.add(btnNextStep);
controlConsole.add(btnPause);
controlConsole.add(btnReset);
controlConsole.add(btnRestart);
// label related to the number of bodies involved in the system and its
// properties
lblNBodies = new JLabel("- Number of bodies: 0", JLabel.RIGHT);
controlConsole.add(lblNBodies);
// bodies's display and its properties (background color black to
// simulate the space)
bodiesDisplay = new BodiesSystemDisplay(model);
bodiesDisplay.setBackground(new Color(0, 0, 0));
// master panel and its layout's properties
masterPanel = new JPanel();
LayoutManager layout = new BorderLayout();
masterPanel.setLayout(layout);
masterPanel.add(BorderLayout.NORTH, controlConsole);
masterPanel.add(BorderLayout.CENTER, bodiesDisplay);
// view's main frame and its properties
frameSystem.setContentPane(masterPanel);
frameSystem.setSize(windowsDimension);
frameSystem.setLocationRelativeTo(null);
frameSystem.setVisible(true);
bodiesDisplay.setUpBuffer();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void initUI();",
"void initView();",
"public void init()\n {\n buildUI(getContentPane());\n }",
"private void initUI() {\n }",
"private void initializateGUI() {\n\t\t\n\t\t\n\t\tthis.menuBar = buildMenuBar();\n\t\t\n\t\tthis.toolBar = buildToolBar();\n\t\t\n\t\tthis.container = (JComponent) ContainerViewFactory.getInstance().getContainerView(null);\n\t\t\n\t\tthis.status = buildStatusBar();\n\t\t\n\t\tscrollPane = new JScrollPane();\n\t\tscrollPane.getViewport().add(this.container);\n\t\t\n\t\ttextResources.getString(\"application.title\").ifPresent(super::setTitle);\n\n\t\tif (this.menuBar != null) {\n\t\t\tsuper.setJMenuBar(this.menuBar);\n\t\t}\n\t\tsuper.setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.setMinimumSize(MINIMUM_SIZE);\n\t\tsuper.setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\n\t\tsuper.getRootPane().setPreferredSize(MINIMUM_SIZE);\n\t\tsuper.getRootPane().setMinimumSize(MINIMUM_SIZE);\t\t\n\t\tsuper.getRootPane().setMaximumSize(new Dimension(Short.MAX_VALUE, Short.MAX_VALUE));\n\t\t\n\t\tsuper.setLayout(new BorderLayout());\n\t\t\n\t\tsuper.add(toolBar, BorderLayout.NORTH);\n\t\tsuper.add(scrollPane, BorderLayout.CENTER);\n\t\tsuper.add(status, BorderLayout.SOUTH);\n\t\t\n\t\tsuper.addWindowListener(new WindowAdapter() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\tinitializationDialog = buildInitializationAction();\n\t\t\t\tinitializationDialog.setVisible(true);\n\t\t\t\tinitializationDialog.toFront();\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tconfirmExitAction();\n\t\t\t}\n\t\t});\n\t\tthis.handlerInitializateGUI();\n\t}",
"@Override\n public void init() // set up GUI\n {\n setLayout(new FlowLayout());\n\n customerView = new CustomerView(); // initialize customerView\n \n add(customerView); // add customerView to the GUI\n }",
"protected void initializeGUI() {\n\n\t}",
"private static void initAndShowGUI() {\n }",
"protected abstract void initView();",
"public abstract void initView();",
"private void initView() {\n\n }",
"public GUI() {\n\t\tinitComponents();\n\t}",
"private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}",
"private void initView() {\n\n SwingUtilities.invokeLater(() -> {\n view = new MainWindow();\n view.setMinimumSize(new Dimension(1080, 720));\n view.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n view.setVisible(true);\n view.aboutListener(actionEvent -> showAboutDialog());\n view.helpListener(actionEvent -> showHelpDialog());\n view.addComboBox(comboBox);\n\n });\n\n }",
"protected abstract void initializeView();",
"public abstract void initUiAndListener();",
"public mainUI() {\n initComponents();\n }",
"private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}",
"public ViewInit() {\n initComponents();\n }",
"public void init(){\r\n\t\t\r\n\t\ttry {\r\n\t\t\tSwingUtilities.invokeAndWait(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tbuildWindow();\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(\"createGUI didn't complete successfully\");\r\n\t\t}\r\n\t}",
"public abstract void initViews();",
"private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }",
"public void initView() {\n JPanel pane= new JPanel();\n panel = new JPanel();\n this.getFile(pane);\n JScrollPane scp = new JScrollPane(pane);\n scp.setPreferredSize(new Dimension(500, 280));\n scp.setVisible(true);\n enter.setPreferredSize(new Dimension(100, 50));\n enter.setVisible(true);\n enter.setActionCommand(\"enter\");\n enter.addActionListener(this);\n send.setPreferredSize(new Dimension(80, 50));\n send.setVisible(true);\n send.setActionCommand(\"sendOptions\");\n send.addActionListener(this);\n send.setEnabled(true);\n back.setVisible(true);\n back.setActionCommand(\"back\");\n back.addActionListener(this);\n back.setPreferredSize(new Dimension(80, 50));\n \n panel.add(scp);\n panel.add(send);\n panel.add(enter);\n panel.add(back);\n Launch.frame.add(panel);\n }",
"public GUI() {\n initComponents();\n this.setVisible(true);\n }",
"@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }",
"public MainView() {\n initComponents();\n \n }",
"@Override\n public void initGui()\n {\n super.initGui();\n }",
"public MainView() {\n initComponents();\n }",
"public MainView() {\n initComponents();\n }",
"public MHTYGUI() {\n\t\t\tinitComponents();\n\t\t}",
"public Gui() { \n preInitComponents(); \n initComponents();\n postInitComponents(); \n setVisible(true);\n appInitialization();\n }",
"protected void initUI() {\n\r\n\t\t((Button) findViewById(R.id.project_site_start_wifiscan_button)).setOnClickListener(this);\r\n\r\n\t\t// ((Button) findViewById(R.id.project_site_calculate_ap_positions_button)).setOnClickListener(this);\r\n\r\n\t\t// ((Button) findViewById(R.id.project_site_add_known_ap)).setOnClickListener(this);\r\n\r\n\t\t((Button) findViewById(R.id.project_site_step_detect)).setOnClickListener(this);\r\n\t\t\r\n\t\t((ToggleButton) findViewById(R.id.project_site_toggle_autorotate)).setOnClickListener(this);\r\n\r\n\t\tmultiTouchView = ((MultiTouchView) findViewById(R.id.project_site_resultview));\r\n\t\tmultiTouchView.setRearrangable(false);\r\n\r\n\t\tmultiTouchView.addDrawable(map);\r\n\r\n\t\tif (site.getTitle().equals(ProjectSite.UNTITLED)) {\r\n\t\t\tshowDialog(DIALOG_TITLE);\r\n\t\t} else {\r\n\t\t\tif (freshSite) {\r\n\t\t\t\t// start configuration dialog\r\n\t\t\t\tshowDialog(DIALOG_FRESH_SITE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"protected abstract void initViews();",
"public void initGUI(){\n\t\t\n\t\t//the layout is a new BorderLayout\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\t//the label will be north\t\n\t\tadd(createHeroList(), BorderLayout.NORTH);\n\t\t\n\t\t//the questions will be displayed center\t\t\n\t\tadd(createQuestions(), BorderLayout.CENTER);\n\t\t//the button panel should be south\n\t\tadd(createAnswerButtonPanel(), BorderLayout.SOUTH);\n\t\t\n\t\t\n\t\t \n\t}",
"@Override\n public void initGUI() {\n\n }",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"public GUI() {\n initComponents();\n }",
"public GUI() {\n initComponents();\n }",
"public seViewAnswerUI() {\n initComponents();\n }",
"public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }",
"public orgGui() {\n initComponents();\n }",
"protected void setupUI() {\n\n }",
"private void init() {\r\n\r\n createGUI();\r\n\r\n setSize(new Dimension(600, 600));\r\n setTitle(\"Grid - Regular Grid Renderer\");\r\n }",
"@Override\r\n\tprotected void initUI() {\n\r\n\t}",
"public UI() {\n initComponents();\n }",
"public ViewInvoicesGUI() {\n initComponents();\n updateDatabase();\n this.setLocationRelativeTo(null);\n \n }",
"public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}",
"private void initUI() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\trenderer = new LWJGLRenderer();\n\t\t\tgui = new GUI(stateWidget, renderer);\n\t\t\tthemeManager = ThemeManager.createThemeManager(StateWidget.class.getResource(\"gameui.xml\"), renderer);\n\t\t\tgui.applyTheme(themeManager);\n\t\t\t\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"public Gui() {\n\t\tsuper();\n\t\tinitGUI();\n\t}",
"public void initView(){}",
"void initializeView() {\n displayProjectFilter();\n displayTimeFrameFilter();\n\n setUsersIntoComboBox();\n setClientsIntoComboBox();\n setProjectsIntoComboBox();\n setDateRestrictions();\n setValidators();\n setTable();\n\n selectUser();\n selectClient();\n selectProject();\n listenDatePickerStart();\n listenDatePickerEnd();\n\n removeUserFilter();\n removeProjectFilter();\n removeTimeFrameFilter();\n clearAllFilters();\n\n // this is important for hiding user combo box and stuff\n setUpUserRules();\n\n //vBox.translateXProperty().bind((scrollPane.widthProperty().subtract(vBox.widthProperty())).divide(2));\n scrollPane.widthProperty().addListener((observable, oldValue, newValue) -> {\n if (newValue != null) {\n grid.setPrefWidth(newValue.doubleValue() - (oldValue.doubleValue() - scrollPane.getViewportBounds().getWidth()));\n }\n });\n\n //TODO: Refactor this.\n setUpBarChart();\n tbvTasks.getItems().addListener((ListChangeListener.Change<? extends TaskConcrete2> c) -> {\n setUpBarChart();\n });\n\n setToolTipsForButtons();\n changeTableSize();\n }",
"public MainView() {\r\n\t\tinitialize();\r\n\t}",
"@Override\n public void initView() {\n }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"private void initGUI() {\n\t\tContainer cp = getContentPane();\n\t\tcp.setLayout(new BorderLayout());\n\t\t\n\t\tJPanel top = new JPanel(new GridLayout(0, 1));\n\t\tcp.add(top, BorderLayout.PAGE_START);\n\t\t\n\t\ttop.add(createMenuBar());\n\n\t\tJTabbedPane tabs = new JTabbedPane();\n\t\ttabs.add(\"Encryptor\", encryptorPanel);\n\t\ttabs.add(\"Decryptor\", decryptorPanel);\n\t\ttabs.setSelectedComponent(encryptorPanel);\n\t\t\n\t\tcp.add(tabs);\n\t}",
"public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}",
"public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }",
"public ServerGUI() {\n\t\t\n\t\tinitialize();\n\n\t}",
"public gui() {\n initComponents();\n }",
"public gui() {\n initComponents();\n }",
"private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }",
"private void setupUI(){\n this.setupTimerSchedule(controller, 0, 500);\n this.setupFocusable(); \n this.setupSensSlider();\n this.setupInitEnable();\n this.setupDebugger();\n }",
"public studentGUI() {\n\t\ttry {\n\t\t\tinitialize();\n\t\t} catch (AccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (NotBoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public GUI() {\n app = new Aplikasi();\n initComponents();\n }",
"public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }",
"private void viewInit() {\n }",
"public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }",
"private void initViews() {\n\n }",
"private void initUI()\r\n\t{\r\n\t\tthis.label = new Label();\r\n\t\t\r\n\t\tthis.label.setText(\"This view is also saveable\");\r\n\t\t\r\n\t\tthis.label.setSizeUndefined();\r\n\t\tthis.add(this.label);\r\n\t\tthis.setSizeFull();\r\n\t}",
"public ClientMainView() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"private void setupGUI() {\r\n\t\tPaperToolkit.initializeLookAndFeel();\r\n\t\tgetMainFrame();\r\n\t}",
"private void initUI() {\n\t\tfileInputPanel.setLayout(new GridBagLayout());\n\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\t\tgridBagConstraints.anchor = GridBagConstraints.NORTH;\n\t\tgridBagConstraints.gridwidth = 2;\n\n\t\tJLabel title = new JLabel(\"Welcome to ANNie\");\n\t\ttitle.setFont(new Font(\"Serif\", Font.BOLD, 36));\n\n\t\tfileInputPanel.add(title, gridBagConstraints);\n\n\t\tgridBagConstraints.gridwidth = 1;\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\n\t\tfileInputPanel.setBorder(BorderFactory.createLineBorder(Color.black));\n\n\t\tcreateFileDropdownArea(gridBagConstraints);\n\t\tcreateLabelSelectArea(gridBagConstraints);\n\t\tcreateButtons(gridBagConstraints);\n\t}",
"public viewOpe() {\n initComponents();\n }",
"public void initViews(){\n }",
"public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tjavax.swing.SwingUtilities.invokeAndWait(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tcreateGUI();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"createGUI didn't successfully complete: \"\n\t\t\t\t\t+ e.toString());\n\t\t}\n\t}",
"private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}",
"private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}",
"public MainWindow() {\n\t\t\tthis.initUI();\n\t\t\t\n\t\t}",
"public HomePageGUI() {\n initComponents();\n }",
"private void initialiseUI()\n { \n // The actual data go in this component.\n String defaultRootElement = \"icr:regionSetData\";\n JPanel contentPanel = initialiseContentPanel(defaultRootElement);\n pane = new JScrollPane(contentPanel);\n \n panelLayout = new GroupLayout(this);\n\t\tthis.setLayout(panelLayout);\n\t\tthis.setBackground(DAOConstants.BG_COLOUR);\n\n\t\tpanelLayout.setAutoCreateContainerGaps(true);\n\n panelLayout.setHorizontalGroup(\n\t\t\tpanelLayout.createParallelGroup()\n\t\t\t.addComponent(pane, 10, 520, 540)\n );\n\n panelLayout.setVerticalGroup(\n\t\t\tpanelLayout.createSequentialGroup()\n .addComponent(pane, 10, GroupLayout.PREFERRED_SIZE, Short.MAX_VALUE)\n );\n }",
"@Override\n public final void initGui() {\n \tKeyboard.enableRepeatEvents(true);\n\t\t\n \tif(components == null) {\n \t\tcomponents = Lists.newArrayList();\n \t\t\n \t\ttry {\n \t\t\tbuildGui();\n \t\t} catch(Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}\n \t\n \t// XXX: Untested. Might lead to crash. Leaving it in for now.\n \tif(this.behindScreen != null) {\n \t\tthis.behindScreen.width = this.width;\n \t\tthis.behindScreen.height = this.height;\n \t\tthis.behindScreen.initGui();\n \t}\n \t\n \tlayoutGui();\n }",
"private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"public AplicationGUI() {\n initComponents();\n }",
"private void initViews() {\n\n\t}",
"public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }",
"public myView() {\n initComponents();\n CreatMenu();\n }",
"public MediaLibraryGUI() {\r\n initializeFields();\r\n\r\n makeMenu();\r\n\r\n makeCenter();\r\n\r\n makeSouth();\r\n\r\n startGUI();\r\n }",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"public DesktopGUI() {\n initComponents();\n }",
"private void initUI() {\r\n\t\tthis.verticalLayout = new XdevVerticalLayout();\r\n\t\tthis.verticalLayout2 = new XdevVerticalLayout();\r\n\t\r\n\t\tthis.setSpacing(false);\r\n\t\tthis.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout.setSpacing(false);\r\n\t\tthis.verticalLayout.setMargin(new MarginInfo(false));\r\n\t\tthis.verticalLayout2.setMargin(new MarginInfo(false));\r\n\t\r\n\t\tthis.verticalLayout2.setSizeFull();\r\n\t\tthis.verticalLayout.addComponent(this.verticalLayout2);\r\n\t\tthis.verticalLayout.setComponentAlignment(this.verticalLayout2, Alignment.MIDDLE_CENTER);\r\n\t\tthis.verticalLayout.setExpandRatio(this.verticalLayout2, 20.0F);\r\n\t\tthis.verticalLayout.setSizeFull();\r\n\t\tthis.addComponent(this.verticalLayout);\r\n\t\tthis.setComponentAlignment(this.verticalLayout, Alignment.MIDDLE_CENTER);\r\n\t\tthis.setExpandRatio(this.verticalLayout, 10.0F);\r\n\t\tthis.setSizeFull();\r\n\t\r\n\t\tthis.addContextClickListener(event -> this.this_contextClick(event));\r\n\t}",
"public void initialize() {\n this.setPreferredSize(new com.ulcjava.base.application.util.Dimension(548, 372));\n this.add(getTitlePane(), new com.ulcjava.base.application.GridBagConstraints(0, 0, 3, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getXpertIvyPane(), new com.ulcjava.base.application.GridBagConstraints(0, 1, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getLicensePane(), new com.ulcjava.base.application.GridBagConstraints(0, 2, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getDatabasePane(), new com.ulcjava.base.application.GridBagConstraints(0, 3, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n this.add(getJavaPane(), new com.ulcjava.base.application.GridBagConstraints(0, 4, 1, 1, -1, -1,\n com.ulcjava.base.application.GridBagConstraints.CENTER, com.ulcjava.base.application.GridBagConstraints.NONE,\n new com.ulcjava.base.application.util.Insets(0, 0, 0, 0), 0, 0));\n }"
]
| [
"0.7809708",
"0.7804583",
"0.7792427",
"0.7791874",
"0.77535313",
"0.77414167",
"0.7706454",
"0.76411366",
"0.7622341",
"0.7611098",
"0.754039",
"0.75356936",
"0.75021523",
"0.7491324",
"0.7482904",
"0.74825746",
"0.747868",
"0.7475638",
"0.7452739",
"0.7440686",
"0.74307495",
"0.7422382",
"0.74209565",
"0.7408816",
"0.74075395",
"0.7390774",
"0.7390573",
"0.7379604",
"0.7379604",
"0.7373521",
"0.7368447",
"0.73487073",
"0.7347872",
"0.7331439",
"0.733069",
"0.7326543",
"0.7326543",
"0.7317303",
"0.7317303",
"0.7315033",
"0.731349",
"0.729945",
"0.7298345",
"0.72938174",
"0.7292495",
"0.7290338",
"0.72777337",
"0.7264652",
"0.7258866",
"0.7258045",
"0.72579706",
"0.72485286",
"0.7248234",
"0.72304684",
"0.7226447",
"0.72249395",
"0.7216884",
"0.72159785",
"0.72159785",
"0.7215",
"0.72142774",
"0.7204549",
"0.7202718",
"0.72001034",
"0.72001034",
"0.71999806",
"0.7194566",
"0.7191963",
"0.71814317",
"0.71793836",
"0.7176036",
"0.7173996",
"0.7170923",
"0.71665835",
"0.71638864",
"0.7160193",
"0.7160193",
"0.7153817",
"0.71443623",
"0.71413076",
"0.71402764",
"0.7140214",
"0.7140127",
"0.7137713",
"0.7133591",
"0.7130204",
"0.71270245",
"0.7122943",
"0.71183366",
"0.71091866",
"0.7108223",
"0.7108223",
"0.7106957",
"0.71059465",
"0.7105933",
"0.710181",
"0.7093572",
"0.709321",
"0.7088201",
"0.70880836",
"0.70807695"
]
| 0.0 | -1 |
TODO load bacteria configuration from XML file | public static boolean verification(List<Bacteria> bacterias) {
double[][] centralDistancesIJ = new double[bacterias.size()][bacterias
.size()];
double[][] actualDistancesIJ = new double[bacterias.size()][bacterias
.size()];
double actualDistanceX;
double actualDistanceY;
int sum = 0;
for (int i = 0; i <= (bacterias.size() - 1); i++) {
for (int j = i + 1; j < bacterias.size(); j++) {
centralDistancesIJ[i][j] = bacterias.get(i).getDiameter() / 2
+ bacterias.get(j).getDiameter() / 2;
actualDistanceX = bacterias.get(j).getX()
- bacterias.get(j).getX()
+ bacterias.get(j).getDiameter() / 2
- bacterias.get(i).getDiameter() / 2;
actualDistanceY = bacterias.get(j).getY()
- bacterias.get(i).getY()
+ bacterias.get(j).getDiameter() / 2
- bacterias.get(i).getDiameter() / 2;
actualDistancesIJ[i][j] = Math.round(Math.sqrt(Math.pow(
actualDistanceX, 2)
+ Math.pow(actualDistanceY, 2)));
if (actualDistancesIJ[i][j] >= centralDistancesIJ[i][j]) {
sum = sum + 1;
}
}
}
System.out.println("sum: " + sum);
if (sum == bacterias.size() * (bacterias.size() - 1) / 2) {
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void procesarConfiguracion() {\n try {\n\n\n IXMLParser parser = XMLParserFactory.createDefaultXMLParser();\n IXMLReader reader = StdXMLReader.fileReader(Servidor.path_config);\n parser.setReader(reader);\n IXMLElement xml = (IXMLElement) parser.parse();\n Enumeration e = xml.enumerateChildren();\n\n Vector v, c;\n IXMLElement proc, caso;\n\n\n while (e.hasMoreElements()) {\n proc = (IXMLElement) e.nextElement();\n v = proc.getChildren();\n int n = 0;\n LinkedList<Caso> list = new LinkedList<>();\n while (n < v.size()) {\n caso = (IXMLElement) v.get(n);\n\n Caso ca = new Caso(((IXMLElement) caso.getChildrenNamed(\"solucion\").get(0)).getContent(), ((IXMLElement) caso.getChildrenNamed(\"normal\").get(0)).getContent(), ((IXMLElement) caso.getChildrenNamed(\"error\").get(0)).getContent());\n list.add(ca);\n n++;\n\n }\n config.put(proc.getName(), list);\n }\n\n\n\n\n\n } catch (XMLException | IOException | ClassNotFoundException | InstantiationException | IllegalAccessException ex) {\n Servidor.logger.severe(ex.toString());\n }\n\n\n }",
"public static void readXML(){\n try{\n Document doc = getDoc(\"config.xml\");\n Element root = doc.getRootElement();\n\n //Muestra los elementos dentro de la configuracion del xml\n \n System.out.println(\"Color : \" + root.getChildText(\"color\"));\n System.out.println(\"Pattern : \" + root.getChildText(\"pattern\"));\n System.out.println(\"Background : \" + root.getChildText(\"background\"));\n \n\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n }",
"public void loadConfig(XMLElement xml) {\r\n\r\n }",
"private void cargarConfiguracionBBDD()\r\n\t{\r\n\t\tjava.io.InputStream IO = null;\r\n\r\n\t\ttry {\r\n\t\t\tIO = getClass().getClassLoader().getResourceAsStream(\"configuracion.properties\");\r\n\r\n\t\t // load a properties file\r\n\t\t prop.load(IO);\r\n\t\t \r\n\t\t \r\n\t\t host=prop.getProperty(\"host\");\r\n\t\t database=prop.getProperty(\"database\");\r\n\t\t username=prop.getProperty(\"username\");\r\n\t\t password=prop.getProperty(\"password\");\r\n\t\t \r\n\t\t System.out.println(host);\r\n\r\n\t\t \r\n\t\t \r\n\t\t} catch (IOException ex) {\r\n\t\t ex.printStackTrace();\r\n\t\t} finally {\r\n\t\t if (IO != null) {\r\n\t\t try {\r\n\t\t IO.close();\r\n\t\t } catch (IOException e) {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\t\t }\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"private void initalConfig() {\n \t\tconfig = new Configuration(new File(getDataFolder(),\"BeardStat.yml\"));\n \t\tconfig.load();\n \t\tconfig.setProperty(\"stats.database.type\", \"mysql\");\n \t\tconfig.setProperty(\"stats.database.host\", \"localhost\");\n \t\tconfig.setProperty(\"stats.database.username\", \"Beardstats\");\n \t\tconfig.setProperty(\"stats.database.password\", \"changeme\");\n \t\tconfig.setProperty(\"stats.database.database\", \"stats\");\n \n \t\tconfig.save();\n \t}",
"public void loadConfig(){\r\n File config = new File(\"config.ini\");\r\n if(config.exists()){\r\n try {\r\n Scanner confRead = new Scanner(config);\r\n \r\n while(confRead.hasNextLine()){\r\n String line = confRead.nextLine();\r\n if(line.indexOf('=')>0){\r\n String setting,value;\r\n setting = line.substring(0,line.indexOf('='));\r\n value = line.substring(line.indexOf('=')+1,line.length());\r\n \r\n //Perform the actual parameter check here\r\n if(setting.equals(\"romfile\")){\r\n boolean result;\r\n result = hc11_Helpers.loadBinary(new File(value.substring(value.indexOf(',')+1,value.length())),board,\r\n Integer.parseInt(value.substring(0,value.indexOf(',')),16));\r\n if(result)\r\n System.out.println(\"Loaded a rom file.\");\r\n else\r\n System.out.println(\"Error loading rom file.\");\r\n }\r\n }\r\n }\r\n confRead.close();\r\n } catch (FileNotFoundException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }",
"public abstract void loaded() throws ConfigurationException;",
"public void testBizlistrLoad() {\n \t try {\n \t\n \t\tString [] args = new String[1];\n \t// which environment are we running on?\n \t\targs[0] = \"/home/randall/bizlistr/ContentLoader/abbrev_priv_cos.xml\";\n \t//args[0] = \"/home/randall/bizlistr/ContentLoader/randallexp.xml\";\n \t\t//args[0] = \"/home/randall/bizlistr/ContentLoader/sample_exp.xml\";\n \t// where is the properties file?\n \t//args[1] = \"C:\\\\bizlistr\\\\randallexp.xml\";\n \n \tContentLoader.main(args);\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"private static void loadDictionaryConfig()\r\n\t{\r\n\t\tURL dictionaryConfigURL = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tBundle cfmlBundle = Platform.getBundle(CFMLPlugin.PLUGIN_ID);\r\n\t\t\tdictionaryConfigURL = org.eclipse.core.runtime.FileLocator.find(CFMLPlugin.getDefault().getBundle(),\r\n new Path(\"dictionary\"), null);\r\n\t\t\t\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t\tfactory.setIgnoringComments(true);\r\n\t\t\tfactory.setIgnoringElementContentWhitespace(true);\r\n\t\t\tfactory.setCoalescing(true);\r\n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\r\n\t\t\t\r\n\t\t\tURL configurl = FileLocator.LocateURL(dictionaryConfigURL, \"dictionaryconfig.xml\");\r\n\t\t\t\t\t\t\r\n\t\t\tdictionaryConfig = builder.parse(configurl.getFile());\r\n\t\t\tif(dictionaryConfig == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:\"\r\n\t\t\t\t\t\t\t+ DictionaryManager.class.getClassLoader()\r\n\t\t\t\t\t\t\t\t\t.getResource(\"org.cfeclipse.cfml/dictionary/dictionaryconfig.xml\").getFile()\r\n\t\t\t\t\t\t\t\t\t.replace(\"dictionaryconfig.xml\", \"\"));\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tdictionaryConfig = builder.parse(\"jar:file:\" + DictionaryManager.class.getResource(\"/dictionaries.zip\").getFile()\r\n\t\t\t\t\t\t\t+ \"!/org.cfeclipse.cfml/dictionary/\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e) \r\n\t\t{\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t}",
"private static OMElement loadConfigXML() throws EventBrokerConfigurationException {\n\n String carbonConfigHome = CarbonBaseUtils.getCarbonConfigDirPath();\n File confFile = Paths.get(carbonConfigHome, EventBrokerConstants.EB_CONF).toFile();\n String path = confFile.toString();\n BufferedInputStream inputStream = null;\n try {\n inputStream = new BufferedInputStream(new FileInputStream(confFile));\n XMLStreamReader parser = XMLInputFactory.newInstance().\n createXMLStreamReader(inputStream);\n StAXOMBuilder builder = new StAXOMBuilder(parser);\n OMElement omElement = builder.getDocumentElement();\n omElement.build();\n return omElement;\n } catch (FileNotFoundException e) {\n throw new EventBrokerConfigurationException(EventBrokerConstants.EB_CONF\n + \"cannot be found in the path : \" + path, e);\n } catch (XMLStreamException e) {\n throw new EventBrokerConfigurationException(\"Invalid XML for \" + EventBrokerConstants.EB_CONF\n + \" located in the path : \" + path, e);\n } finally {\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n } catch (IOException ingored) {\n throw new EventBrokerConfigurationException(\"Can not close the input stream\");\n }\n }\n }",
"private void parseConfig() throws CatascopiaException {\n\t\tthis.config = new Properties();\n\t\t//load config properties file\n\t\ttry {\t\t\t\t\n\t\t\tFileInputStream fis = new FileInputStream(JCATASCOPIA_AGENT_HOME + File.separator + CONFIG_PATH);\n\t\t\tconfig.load(fis);\n\t\t\tif (fis != null)\n\t \t\tfis.close();\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\tthrow new CatascopiaException(\"config file not found\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\tthrow new CatascopiaException(\"config file parsing error\", CatascopiaException.ExceptionType.FILE_ERROR);\n\t\t}\n\t}",
"void loadConfig() {\r\n\t\tFile file = new File(\"open-ig-mapeditor-config.xml\");\r\n\t\tif (file.canRead()) {\r\n\t\t\ttry {\r\n\t\t\t\tElement root = XML.openXML(file);\r\n\t\t\t\t\r\n\t\t\t\t// reposition the window\r\n\t\t\t\tElement eWindow = XML.childElement(root, \"window\");\r\n\t\t\t\tif (eWindow != null) {\r\n\t\t\t\t\tsetBounds(\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"x\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"y\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"width\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"height\"))\r\n\t\t\t\t\t);\r\n\t\t\t\t\tsetExtendedState(Integer.parseInt(eWindow.getAttribute(\"state\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eLanguage = XML.childElement(root, \"language\");\r\n\t\t\t\tif (eLanguage != null) {\r\n\t\t\t\t\tString langId = eLanguage.getAttribute(\"id\");\r\n\t\t\t\t\tif (\"hu\".equals(langId)) {\r\n\t\t\t\t\t\tui.languageHu.setSelected(true);\r\n\t\t\t\t\t\tui.languageHu.doClick();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tui.languageEn.setSelected(true);\r\n\t\t\t\t\t\tui.languageEn.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSplitters = XML.childElement(root, \"splitters\");\r\n\t\t\t\tif (eSplitters != null) {\r\n\t\t\t\t\tsplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"main\")));\r\n\t\t\t\t\ttoolSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"preview\")));\r\n\t\t\t\t\tfeaturesSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"surfaces\")));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tElement eTabs = XML.childElement(root, \"tabs\");\r\n\t\t\t\tif (eTabs != null) {\r\n\t\t\t\t\tpropertyTab.setSelectedIndex(Integer.parseInt(eTabs.getAttribute(\"selected\")));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eLights = XML.childElement(root, \"lights\");\r\n\t\t\t\tif (eLights != null) {\r\n\t\t\t\t\talphaSlider.setValue(Integer.parseInt(eLights.getAttribute(\"preview\")));\r\n\t\t\t\t\talpha = Float.parseFloat(eLights.getAttribute(\"map\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eMode = XML.childElement(root, \"editmode\");\r\n\t\t\t\tif (eMode != null) {\r\n\t\t\t\t\tif (\"true\".equals(eMode.getAttribute(\"type\"))) {\r\n\t\t\t\t\t\tui.buildButton.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eView = XML.childElement(root, \"view\");\r\n\t\t\t\tif (eView != null) {\r\n\t\t\t\t\tui.viewShowBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"buildings\"))) {\r\n\t\t\t\t\t\tui.viewShowBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewSymbolicBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"minimap\"))) {\r\n\t\t\t\t\t\tui.viewSymbolicBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\trenderer.scale = Double.parseDouble(eView.getAttribute(\"zoom\"));\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewStandardFonts.setSelected(\"true\".equals(eView.getAttribute(\"standard-fonts\")));\r\n\t\t\t\t\tui.viewPlacementHints.setSelected(!\"true\".equals(eView.getAttribute(\"placement-hints\")));\r\n\t\t\t\t\tui.viewPlacementHints.doClick();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSurfaces = XML.childElement(root, \"custom-surface-names\");\r\n\t\t\t\tif (eSurfaces != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eSurfaces, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomSurfaceNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eBuildigns = XML.childElement(root, \"custom-building-names\");\r\n\t\t\t\tif (eBuildigns != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eBuildigns, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomBuildingNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tElement eFilter = XML.childElement(root, \"filter\");\r\n\t\t\t\tif (eFilter != null) {\r\n\t\t\t\t\tfilterSurface.setText(eFilter.getAttribute(\"surface\"));\r\n\t\t\t\t\tfilterBuilding.setText(eFilter.getAttribute(\"building\"));\r\n\t\t\t\t}\r\n\t\t\t\tElement eAlloc = XML.childElement(root, \"allocation\");\r\n\t\t\t\tif (eAlloc != null) {\r\n\t\t\t\t\tui.allocationPanel.availableWorkers.setText(eAlloc.getAttribute(\"worker\"));\r\n\t\t\t\t\tui.allocationPanel.strategies.setSelectedIndex(Integer.parseInt(eAlloc.getAttribute(\"strategy\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eRecent = XML.childElement(root, \"recent\");\r\n\t\t\t\tif (eRecent != null) {\r\n\t\t\t\t\tfor (Element r : XML.childrenWithName(eRecent, \"entry\")) {\r\n\t\t\t\t\t\taddRecentEntry(r.getAttribute(\"file\")); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void loadConfig() {\n\t}",
"public static ChebiConfig readFromFile() throws IOException{\n return readFromInputStream(ChebiConfig.class.getClassLoader()\n .getResourceAsStream(\"chebi-adapter.properties\"));\n }",
"private CommonConfigBean(){\n\t\tsuper();\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\tFile fXmlFile = new File(PathTool.getAbsolute(RELATIVE_FILE_PATH));\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\t\t\t\n\t\t\t//optional, but recommended\n\t\t\t//read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tSystem.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n\t NodeList nList = doc.getElementsByTagName(\"param\");\n\t params = new HashMap<>();\n\t for (int temp = 0; temp < nList.getLength(); temp++) {\n\t Node nodo = nList.item(temp);\n\t System.out.println(\"Elemento:\" + nodo.getNodeName());\n\t if (nodo.getNodeType() == Node.ELEMENT_NODE) {\n\t Element element = (Element) nodo;\n\t params.put(element.getAttribute(\"name\"), element.getAttribute(\"value\"));\n\t }\n\t }\n\t\t\t\n\t\t\t\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t}",
"public void loadConfig(){\n \t\tFile configDir = this.getDataFolder();\n \t\tif (!configDir.exists())\n \t\t\tconfigDir.mkdir();\n \n \t\t// Check for existance of config file\n \t\tFile configFile = new File(this.getDataFolder().toString() + \"/config.yml\");\n \t\tconfig = YamlConfiguration.loadConfiguration(configFile);\n \t\t\n \t\t// Adding Variables\n \t\tif(!config.contains(\"Debug\"))\n \t\t{\n \t\t\tconfig.addDefault(\"Debug\", false);\n \t \n \t config.addDefault(\"Worlds\", \"ExampleWorld1, ExampleWorld2\");\n \t\n\t config.addDefault(\"Regions.Residence\", \"ExampleWorld.ExampleResRegion1, ExampleWorld.ExampleResRegion2\");\n \t \n\t config.addDefault(\"Regions.WorldGuard\", \"ExampleWorld.ExampleWGRegion1, ExampleWorld.ExampleWGRegion2\"); \n \t\t}\n \n // Loading the variables from config\n \tdebug = (Boolean) config.get(\"Debug\");\n \tpchestWorlds = (String) config.get(\"Worlds\");\n \tpchestResRegions = (String) config.get(\"Regions.Residence\");\n \tpchestWGRegions = (String) config.get(\"Regions.WorldGuard\");\n \n if(pchestWorlds != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Chests Worlds: \" + pchestWorlds);\n }\n \n if(pchestResRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All Residence Regions: \" + pchestResRegions);\n }\n \n if(pchestWGRegions != null)\n {\n \tlog.info(\"[\"+getDescription().getName()+\"] All World Guard Regions: \" + pchestWGRegions);\n }\n \n config.options().copyDefaults(true);\n try {\n config.save(configFile);\n } catch (IOException ex) {\n Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, \"Could not save config to \" + configFile, ex);\n }\n }",
"private CardParser() throws ParserConfigurationException, IOException, SAXException{\n\n InputStream configStream = getClass().getClassLoader().getResourceAsStream(\"config.xml\");\n DocumentBuilderFactory domBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder domBuilder = domBuilderFactory.newDocumentBuilder();\n Document dom = domBuilder.parse(configStream);\n dom.getDocumentElement().normalize();\n config = getChildNode(\"config\", dom)\n .orElseThrow(() -> new IllegalConfigXMLException(\"Missing root config node\"));\n }",
"public static void load(String filename, Supervisor k) throws FileNotFoundException{\n String source = \"\";\n try {\n Scanner in = new Scanner(new FileReader(filename));\n while(in.hasNext()){\n source = source + in.next();\n }\n } catch (FileNotFoundException ex) {\n //throw ex;\n System.out.println(\"Could not read config file: \" + ex);\n System.out.println(\"trying to create a new one...\");\n String stsa = \"Done!\\n\";\n try (\n Writer writer = new BufferedWriter(new OutputStreamWriter(\n new FileOutputStream(filename), \"utf-8\"))) {\n writer.write(\"\");\n writer.close();\n }\n \n catch (IOException ex1) {\n stsa = \"\";\n System.out.println(\"FAILED, SKIPPING CONFIG READ BECOUSE:\");\n Logger.getGlobal().warning(ex1.toString());\n System.out.println(\"Console version: \" + ex1.toString());\n }\n System.out.print(stsa);\n }\n LinkedList<String[]> raw = fetch(source);\n \n if(k.Logic == null){\n Logger.getGlobal().warning(\"ENGINE NOT INITIALIZED PROPERLY, ABORTING APPLYING CONFIG\");\n return;\n }\n if(k.Logic.Vrenderer == null){\n Logger.getGlobal().warning(\"ENGINE RENDERER NOT INITIALIZED PROPERLY, ABORTING APPLYING CONFIG\");\n return;\n }\n \n for(String[] x: raw){\n String value = x[1];\n if(!k.features_overrideAllStandard)\n switch(x[0]){\n case \"nausea\":\n int numValue = 0;\n try{\n numValue = Integer.parseInt(value);\n }\n catch(Exception e){\n quickTools.alert(\"configReader\", \"invalid nausea value\");\n break;\n }\n if(numValue > 0){\n k.Logic.Vrenderer.dispEffectsEnabled = true;\n }\n //k.Logic.Vrenderer.di\n break;\n default:\n\n break;\n }\n customFeatures(x[0], x[1], k);\n }\n }",
"public void crearConfiguracion (){\n\t\tInputStream streamMenues = FileUtil.getResourceAsStream(\"organizacionMenues.xml\");\r\n\t\tgruposModulos = new ArrayList<GrupoModulos>();\r\n\t\ttry {\r\n\t\t\tif (streamMenues != null){\r\n\t\t\t\tgruposModulos = leerGruposModulos(streamMenues);\t\r\n\t\t\t}\r\n\t\t} catch(XPathExpressionException e) {\r\n\t\t\tManejadorMenues.logger.error(\"Error procesando xml de menues\",e);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif (gruposModulos.isEmpty()){\r\n\t\t\tGrupoModulos gm = new GrupoModulos();\r\n\t\t\tgm.setNombre(\"Módulos\");\r\n\t\t\tgm.setEsDefault(true);\r\n\t\t\tgruposModulos.add(gm);\r\n\t\t}\r\n\t\t\r\n\t}",
"public static Parametros ConfiguracionParametros(String ruta){\n try{\n Parametros theParametros = new Parametros();\n List<EventoPuertaMagnetica> eventoPM = new ArrayList<>();\n File theXmlFile = new File(ruta + \"config.xml\");\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(theXmlFile);\n doc.getDocumentElement().normalize();\n\n String url_ws= doc.getDocumentElement().getElementsByTagName(\"Url_WebServices\").item(0).getTextContent();\n String id_port = doc.getDocumentElement().getElementsByTagName(\"Id_Portico\").item(0).getTextContent();\n String ip_bd = doc.getDocumentElement().getElementsByTagName(\"Base_Datos_IP\").item(0).getTextContent();\n String mani_puerta_chapa = doc.getDocumentElement().getElementsByTagName(\"Tiene_Chapa\").item(0).getTextContent();\n String dispo = doc.getDocumentElement().getElementsByTagName(\"Disposicion\").item(0).getTextContent();\n String crede_admin = doc.getDocumentElement().getElementsByTagName(\"Id_Crede_Administrador\").item(0).getTextContent();\n String loc_geo = doc.getDocumentElement().getElementsByTagName(\"Localizacion_Geografica\").item(0).getTextContent();\n\n NodeList events = doc.getDocumentElement().getElementsByTagName(\"Evento\"); //0 o mas ...\n for(int i=0; i< events.getLength(); i++){\n EventoPuertaMagnetica event = new EventoPuertaMagnetica();\n\n Node nodo = events.item(i);\n NodeList caracteristicasEvento = nodo.getChildNodes();\n\n String id_evento = caracteristicasEvento.item(0).getTextContent();\n String nombre_evento = caracteristicasEvento.item(1).getTextContent();\n\n event.set_U01B3F3(id_evento);\n event.set_DESTINO(nombre_evento);\n\n eventoPM.add(event);\n }\n theParametros.set_Url_WebServices(url_ws);\n theParametros.set_Id_Portico(id_port);\n theParametros.set_Base_Datos_IP(ip_bd);\n theParametros.set_Manipulacion_Puerta(mani_puerta_chapa);\n theParametros.set_Disposicion(dispo);\n theParametros.set_Id_CredencialAdmin(crede_admin);\n theParametros.set_Localizacion_Geografica(loc_geo);\n theParametros.set_Eventos(eventoPM);\n\n return theParametros;\n\n }catch (Exception ex){\n return null;\n }\n }",
"public static void main(String[] args) throws Exception {\r\n //Get Document Builder\r\n boolean isAccordian=false;\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder builder = factory.newDocumentBuilder();\r\n\r\n //Build Document\r\n Document document = builder.parse(new File(\"C:\\\\users\\\\amiraj2\\\\Desktop\\\\configurations.xml\"));\r\n\r\n //Normalize the XML Structure; It's just too important !!\r\n document.getDocumentElement().normalize();\r\n\r\n //Here comes the root node\r\n Element root = document.getDocumentElement();\r\n //// System.out.println(root.getNodeName());\r\n\r\n visitChildNodesOfRoot(document);\r\n\r\n //// System.out.println(\"============================\");\r\n }",
"private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}",
"private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}",
"private void loadConfig()\n {\n File config = new File(\"config.ini\");\n\n if (config.exists())\n {\n try\n {\n BufferedReader in = new BufferedReader(new FileReader(config));\n\n configLine = Integer.parseInt(in.readLine());\n configString = in.readLine();\n socketSelect = (in.readLine()).split(\",\");\n in.close();\n }\n catch (Exception e)\n {\n System.exit(1);\n }\n }\n else\n {\n System.exit(1);\n }\n }",
"private Machine readConfig() {\n try {\n String firstLine = _config.next();\n if (firstLine.contains(\"*\") || firstLine.contains(\"(\")\n || firstLine.contains(\")\") || firstLine.contains(\" \")) {\n throw error(\"incompatible characters in alphabet\");\n }\n\n _alphabet = new Alphabet(firstLine);\n if (!_config.hasNextInt()) {\n throw new EnigmaException(\"Should be number of rotors\");\n }\n\n int numRotors = _config.nextInt();\n if (!_config.hasNextInt()) {\n throw new EnigmaException(\"Should be number of pawls\");\n }\n\n int numPawls = _config.nextInt();\n\n _name = _config.next().toUpperCase();\n while (_config.hasNext()) {\n notches = _config.next();\n mRotors.add(readRotor());\n }\n return new Machine(_alphabet, numRotors, numPawls, mRotors);\n\n } catch (NoSuchElementException excp) {\n throw error(\"configuration file truncated\");\n }\n }",
"public void readConfigFile() throws IOException {\r\n Wini iniFileParser = new Wini(new File(configFile));\r\n\r\n databaseDialect = iniFileParser.get(DATABASESECTION, \"dialect\", String.class);\r\n databaseDriver = iniFileParser.get(DATABASESECTION, \"driver\", String.class);\r\n databaseUrl = iniFileParser.get(DATABASESECTION, \"url\", String.class);\r\n databaseUser = iniFileParser.get(DATABASESECTION, \"user\", String.class);\r\n databaseUserPassword = iniFileParser.get(DATABASESECTION, \"userPassword\", String.class);\r\n\r\n repositoryName = iniFileParser.get(REPOSITORYSECTION, \"name\", String.class);\r\n\r\n partitions = iniFileParser.get(DEFAULTSECTION, \"partitions\", Integer.class);\r\n logFilename = iniFileParser.get(DEFAULTSECTION, \"logFilename\", String.class);\r\n logLevel = iniFileParser.get(DEFAULTSECTION, \"logLevel\", String.class);\r\n\r\n maxNGramSize = iniFileParser.get(FEATURESSECTION, \"maxNGramSize\", Integer.class);\r\n maxNGramFieldSize = iniFileParser.get(FEATURESSECTION, \"maxNGramFieldSize\", Integer.class);\r\n String featureGroupsString = iniFileParser.get(FEATURESSECTION, \"featureGroups\", String.class);\r\n\r\n if ( databaseDialect == null )\r\n throw new IOException(\"Database dialect not found in config\");\r\n if ( databaseDriver == null )\r\n throw new IOException(\"Database driver not found in config\");\r\n if ( databaseUrl == null )\r\n throw new IOException(\"Database URL not found in config\");\r\n if ( databaseUser == null )\r\n throw new IOException(\"Database user not found in config\");\r\n if ( databaseUserPassword == null )\r\n throw new IOException(\"Database user password not found in config\");\r\n\r\n if (repositoryName == null)\r\n throw new IOException(\"Repository name not found in config\");\r\n\r\n if (partitions == null)\r\n partitions = 250;\r\n if ( logFilename == null )\r\n logFilename = \"FeatureExtractor.log\";\r\n if ( logLevel == null )\r\n logLevel = \"INFO\";\r\n\r\n if ( featureGroupsString != null ) {\r\n featureGroups = Arrays.asList(featureGroupsString.split(\"\\\\s*,\\\\s*\"));\r\n }\r\n if (maxNGramSize == null)\r\n maxNGramSize = 5;\r\n if (maxNGramFieldSize == null)\r\n maxNGramFieldSize = 500;\r\n\r\n }",
"public static void loadAspriations(Console console) {\t\t\n\t\tconsole.writeDebugText(\"Loading aspirations from aspirations.xml\");\n\t\taspirations = new ArrayList<String>();\n\t\txmlAspirations = new XMLReader(\"/xml/aspirations.xml\");\n\t\t\n\t\tString[] tags = {\"child\", \"adult\"};\n\t\t\n\t\tfor (String tag : tags) {\n\t\t\tfor (String node : xmlAspirations.getNodeList(tag)) {\n\t\t\t\taspirations.add(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\tconsole.writeNotification(\"Loaded %d aspirations from file.\", aspirations.size());\n\t}",
"public static void inicializarBD() {\n\t\ts = new StandardServiceRegistryBuilder().configure().build();\r\n\t\tsf = new MetadataSources(s).buildMetadata().buildSessionFactory();\r\n\t}",
"public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}",
"static void loadConfiguration() throws Exception {\n cleanConfiguration();\n\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"test_conf/stress/logging.xml\");\n cm.add(\"test_conf/stress/dbconnectionfactory.xml\");\n cm.add(\"test_conf/stress/simplecache.xml\");\n cm.add(\"test_conf/stress/profiletypes.xml\");\n cm.add(\"test_conf/stress/daofactory.xml\");\n cm.add(\"test_conf/stress/dao.xml\");\n }",
"public static void load() {\n tag = getPlugin().getConfig().getString(\"Tag\");\n hologram_prefix = getPlugin().getConfig().getString(\"Prefix\");\n hologram_time_fixed = getPlugin().getConfig().getBoolean(\"Hologram_time_fixed\");\n hologram_time = getPlugin().getConfig().getInt(\"Hologram_time\");\n hologram_height = getPlugin().getConfig().getInt(\"Hologram_height\");\n help_message = getPlugin().getConfig().getStringList(\"Help_message\");\n hologram_text_lines = getPlugin().getConfig().getInt(\"Max_lines\");\n special_chat = getPlugin().getConfig().getBoolean(\"Special_chat\");\n radius = getPlugin().getConfig().getBoolean(\"Radius\");\n radius_distance = getPlugin().getConfig().getInt(\"Radius_distance\");\n chat_type = getPlugin().getConfig().getInt(\"Chat-type\");\n spectator_enabled = getPlugin().getConfig().getBoolean(\"Spectator-enabled\");\n dataType = getPlugin().getConfig().getInt(\"Data\");\n mySQLip = getPlugin().getConfig().getString(\"Server\");\n mySQLDatabase = getPlugin().getConfig().getString(\"Database\");\n mySQLUsername = getPlugin().getConfig().getString(\"Username\");\n mySQLPassword = getPlugin().getConfig().getString(\"Password\");\n\n }",
"protected abstract void _fromXml_(Element in_xml) throws ConfigurationException;",
"private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }",
"public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }",
"public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }",
"public void loadxml ()\n\t{\n\t\t\t\tString [] kategorienxml;\n\t\t\t\tString [] textbausteinexml;\n\t\t\t\tString [] textexml;\n\t\t\t\t\n\t\t\t\tString filenamexml = \"Katalogname_gekuerzt_lauffaehig-ja.xml\";\n\t\t\t\tFile xmlfile = new File (filenamexml);\n\t\t\t\t\n\t\t\t\t// lies gesamten text aus: String gesamterhtmlcode = \"\";\n\t\t\t\tString gesamterhtmlcode = \"\";\n\t\t\t\tString [] gesamtertbarray = new String[1001];\n\t\t BufferedReader inx = null;\n\t\t try {\n\t\t inx = new BufferedReader(new FileReader(xmlfile));\n\t\t String zeilex = null;\n\t\t while ((zeilex = inx.readLine()) != null) {\n\t\t \tSystem.out.println(zeilex + \"\\n\");\n\t\t \tRandom rand = new Random();\n\t\t \tint n = 0;\n\t\t \t// Obtain a number between [0 - 49].\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.End\\\"/>\")) // dann ab hier speichern bis zum ende:\n\t\t \t{\n\t\t \t\t// \terstelle neue random zahl und speichere alle folgenden zeilen bis zum .Start in diesen n rein\n\t\t \t\tn = rand.nextInt(1001);\n\n\t\t \t\t\n\t\t \t}\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n] + zeilex;\n\t\t \tFile f = new File (\"baustein_\"+ n + \".txt\");\n\t\t \t\n\t\t \tFileWriter fw = new FileWriter (f);\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\\\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\\\"\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/></w:rPr><w:r><w:rPr><w:rStyle w:val=\\\"T8\\\"/></w:rPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"\t\t \t<w:rStyle\" , \"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:p>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:val=\\\"Hyperlink\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:pStyle w:val=\\\"_37_b._20_Text\\\"/>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr><w:r><w:t>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:rPr></w:r></w:hlink><w:hlink w:dest=\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"<w:r><w:rPr><w:rStyle\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:t></w:r></w:r></w:hlink></w:p><w:p\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"xmlns:fo=\\\"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0\\\"><w:pPr></\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"w:pPr><w:r>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"compatible:1.0\\\"><w:pPr></w:pPr>\",\"\");\n\t\t \tgesamtertbarray[n] = gesamtertbarray[n].replace(\"</w:p><w:p\",\"\");\n\t\t \n\n\t\t \t\n\n\t\t \tfw.write(gesamtertbarray[n]);\n\t\t \tfw.flush();\n\t\t \tfw.close();\n\t\t \t\n\t\t \tif (zeilex.contains(\"w:type=\\\"Word.Bookmark.Start\\\"))\"))\n \t\t\t{\n\t\t \t\t// dann erhöhe speicher id für neue rand zahl, weil ab hier ist ende des vorherigen textblocks;\n\t\t\t \tn = rand.nextInt(1001);\n \t\t\t}\n\t\t \n\t\t }}\n\t\t \tcatch (Exception s)\n\t\t {}\n\t\t \n\t\t\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t}",
"@SuppressWarnings(\"unchecked\")\n private static List<Appliance> parseApplianceConfiguration() {\n List<Appliance> appliances = new ArrayList<>();\n SAXReader reader = new SAXReader();\n try {\n Document document = reader.read(new File(ConfigUtil.getConfigFilesDir() +\n File.separator + CONFIG_FILE));\n // Get the root node (appliances)\n Element root = document.getRootElement();\n // Get each sub-node (appliance) for the root\n List<Element> nodes = root.elements();\n for (Element node : nodes) {\n appliances.add(parseAppliance(node));\n }\n } catch (DocumentException e) {\n logger.warn(\"Error at parsing {}.\", CONFIG_FILE);\n }\n\n return appliances;\n }",
"private void loadInformation(){\n\t\ttry{\n\t\t\tFileReader fr = new FileReader(\"SpaceProgramGaussDistribution.txt\");\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tScanner sc = new Scanner(br);\n\t\t\t\n\t\t\tString info = \"\";\n\t\t\t\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\tinfo += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t\tString split[] = info.split(\"#\");\n\t\t\t\n\t\t\tfor(int i = 0; i < split.length; i++){\n\t\t\t\tpopulationInfo += split[i]+\"\\n\";\n\t\t\t}\n\t\t\tsc.close();\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"File not found: SpaceProgramGaussDistribution.txt\");\n\t\t}\n\t}",
"public static void main(String[] args) throws Exception {\n \tString filename = \"boGen.conf.xml\";\n\n \ttry{\n\t\t\tSAXReader saxReader = new SAXReader();\n\t\t\tDocument document = saxReader.read(filename);\n\n\t\t\tList<Node> boList = document.selectNodes(\"//bo\");\n\n\t \tfor(Node bo : boList)\n\t \t{\n\t \t\tString boName = bo.selectSingleNode(\"@name\").getStringValue();\n\t\t String className = bo.selectSingleNode(\"@class\").getStringValue();\n\n\t\t Class<? extends BusinessObject> boClass = (Class<? extends BusinessObject>)Class.forName( className );\n\t\t PropertyDescriptor[] props = PropertyUtils.getPropertyDescriptors( boClass );\n\n\t\t StringBuffer sb = new StringBuffer( 4000 );\n\t\t sb.append( \"<beans xmlns=\\\"http://www.springframework.org/schema/beans\\\"\\r\\n\" +\n\t\t \t\t\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\"\\r\\n\" +\n\t\t \t\t\" xmlns:p=\\\"http://www.springframework.org/schema/p\\\"\\r\\n\" +\n\t\t \t\t\" xsi:schemaLocation=\\\"http://www.springframework.org/schema/beans\\r\\n\" +\n\t\t \t\t\" http://www.springframework.org/schema/beans/spring-beans-2.0.xsd\\\">\\r\\n\" +\n\t\t \t\t\"\\r\\n\" +\n\t\t \t\t\" <bean id=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"\\\" parent=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-parentBean\\\" />\\r\\n\" +\n\t\t \t\t\"\\r\\n\" +\n\t\t \t\t\" <bean id=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-parentBean\\\" abstract=\\\"true\\\" parent=\\\"BusinessObjectEntry\\\"\\r\\n\" +\n\t\t \t\t\" p:businessObjectClass=\\\"\" );\n\t\t sb.append( boClass.getName() );\n\t\t sb.append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:titleAttribute=\\\"\" );\n\t\t sb.append( \"FILL ME IN\" );\n\t\t sb.append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:objectLabel=\\\"\" );\n\t\t sb.append( camelCaseToString( boClass.getSimpleName() ) );\n\t\t sb.append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:inquiryDefinition-ref=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-inquiryDefinition\\\"\\r\\n\" );\n\t\t sb.append( \" p:lookupDefinition-ref=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-lookupDefinition\\\" >\\r\\n\" );\n\t\t sb.append( \" <property name=\\\"attributes\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\t\t sb.append( \" <ref bean=\\\"\" ).append( boClass.getSimpleName() ).append( '-' );\n\t\t sb.append( p.getName() );\n\t\t sb.append( \"\\\" />\\r\\n\" );\n\t\t }\n\t\t }\n\n\t\t sb.append( \" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" +\n\t\t \t\t\"\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\n\t\t if ( p.getName().equals( \"versionNumber\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"AttributeReferenceDummy-versionNumber\" ) );\n\n\t\t } /*else if ( p.getName().endsWith(\"chartOfAccountsCode\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"Chart-chartOfAccountsCode\" ) );\n\n\t\t } else if ( p.getName().endsWith(\"organizationCode\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"Org-organizationCode\" ) );\n\n\t\t } else if ( p.getName().endsWith(\"accountNumber\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"Account-accountNumber\" ) );\n\n\t\t } else if ( p.getName().equals(\"active\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"GenericAttributes-activeIndicator\" ) );\n\n\t\t } else if ( p.getName().equals(\"codeAndDescription\" ) ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBeanWithLabel(boClass, p.getName(), \"CommonField-CodeAndDescription\", camelCaseToString(boClass.getSimpleName()) ) );\n\n\t\t } else if ( p.getPropertyType() == Boolean.TYPE ) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBean(boClass, p.getName(), \"GenericAttributes-genericBoolean\" ) );\n\n\t\t } else if ( p.getPropertyType() == Date.class && !p.getName().equals(\"lastUpdateDate\")) {\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBeanWithLabel(boClass, p.getName(), \"GenericAttributes-genericDate\", camelCaseToString(p.getName()) ) );\n\n\t\t } else if( p.getName().equals(\"lastUpdateDate\")) {\n\t\t \tsb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t sb.append( getSimpleAbstractInheritanceBeanWithLabel(boClass, p.getName(), \"GenericAttributes-genericTimestamp\", camelCaseToString(p.getName()) ) );\n\t\t }\n\t\t */else {\n\t\t // attribute bean\n\t\t sb.append( getSimpleParentBeanReference( boClass, p.getName() ) );\n\t\t // attribute parent bean\n\t\t sb.append( \" <bean id=\\\"\" ).append( boClass.getSimpleName() ).append( '-' );\n\t\t sb.append( p.getName() ).append( \"-parentBean\\\" parent=\\\"AttributeDefinition\\\" abstract=\\\"true\\\"\\r\\n\" );\n\t\t sb.append( \" p:name=\\\"\" ).append( p.getName() ).append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:forceUppercase=\\\"false\\\"\\r\\n\" );\n\t\t sb.append( \" p:label=\\\"\" ).append( camelCaseToString(p.getName()) ).append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:shortLabel=\\\"\" ).append( camelCaseToString(p.getName()) ).append( \"\\\"\\r\\n\" );\n\t\t sb.append( \" p:maxLength=\\\"10\\\"\\r\\n\" );\n\t\t sb.append( \" p:required=\\\"false\\\" >\\r\\n\" );\n\t\t sb.append( \" <property name=\\\"validationPattern\\\" >\\r\\n\" +\n\t\t \" <bean parent=\\\"AnyCharacterValidationPattern\\\"\\r\\n\" +\n\t\t \" p:allowWhitespace=\\\"true\\\" />\\r\\n\" +\n\t\t \" </property>\\r\\n\" +\n\t\t \" <property name=\\\"control\\\" >\\r\\n\");\n\t\t if(p.getName().equals(\"lastUpdateDate\"))\t{\n\t\t \tsb.append( \" <bean parent=\\\"HiddenControlDefinition\\\" />\\r\\n\");\n\t\t }\n\t\t else if (p.getName().equals(\"lastUpdateId\"))\t{\n\t\t \tsb.append( \" <bean parent=\\\"HiddenControlDefinition\\\" />\\r\\n\");\n\t\t }\n\t\t else {\n\t\t \tsb.append( \" <bean parent=\\\"TextControlDefinition\\\"\\r\\n\" +\n\t\t \t\" p:size=\\\"10\\\" />\\r\\n\");\n\t\t }\n\t\t sb.append( \" </property>\\r\\n\" +\n\t\t \" </bean>\\r\\n\" );\n\n\t\t }\n\t\t sb.append( \"\\r\\n\" );\n\t\t }\n\t\t }\n\t\t // inquiry definition\n\t\t sb.append(\"<!-- Business Object Inquiry Definition -->\\r\\n\");\n\t\t sb.append( \"\\r\\n\" );\n\t\t sb.append( getSimpleParentBeanReference( boClass, \"inquiryDefinition\" ) );\n\t\t sb.append( \"\\r\\n\" );\n\t\t sb.append( \" <bean id=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-inquiryDefinition-parentBean\\\" abstract=\\\"true\\\" parent=\\\"InquiryDefinition\\\"\\r\\n\" +\n\t\t \t\t\" p:title=\\\"\" );\n\t\t sb.append( camelCaseToString(boClass.getSimpleName() ) );\n\t\t sb.append( \" Inquiry\\\" >\\r\\n\" +\n\t\t \t\t\" <property name=\\\"inquirySections\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" +\n\t\t \t\t\" <bean parent=\\\"InquirySectionDefinition\\\"\\r\\n\" +\n\t\t \t\t\" p:title=\\\"\" );\n\t\t sb.append( camelCaseToString(boClass.getSimpleName() ) );\n\t\t sb.append( \" Attributes\\\"\\r\\n\" +\n\t\t \t\t\" p:numberOfColumns=\\\"1\\\" >\\r\\n\" +\n\t\t \t\t\" <property name=\\\"inquiryFields\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\t\t sb.append(\" <bean parent=\\\"FieldDefinition\\\" p:attributeName=\\\"\" );\n\t\t sb.append( p.getName() ).append( \"\\\" />\\r\\n\" );\n\t\t }\n\t\t }\n\t\t sb.append( \" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" +\n\t\t \t\t\" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" +\n\t\t \t\t\"\\r\\n\" );\n\n\t\t sb.append(\"<!-- Business Object Lookup Definition -->\");\n\t\t sb.append( \"\\r\\n\" );\n\t\t sb.append( getSimpleParentBeanReference( boClass, \"lookupDefinition\" ) );\n\t\t sb.append( \"\\r\\n\" );\n\t\t sb.append( \" <bean id=\\\"\" );\n\t\t sb.append( boClass.getSimpleName() );\n\t\t sb.append( \"-lookupDefinition-parentBean\\\" abstract=\\\"true\\\" parent=\\\"LookupDefinition\\\"\\r\\n\" +\n\t\t \" p:title=\\\"\" );\n\t\t sb.append( camelCaseToString(boClass.getSimpleName() ) );\n\t\t sb.append( \" Lookup\\\" \\r\\n\" );\n\t\t sb.append( \" >\\r\\n\" );\n\t\t sb.append( \" <property name=\\\"defaultSort\\\" >\\r\\n\" +\n\t\t \t\t\" <bean parent=\\\"SortDefinition\\\">\\r\\n\" +\n\t\t \t\t\" <property name=\\\"attributeNames\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" +\n\t\t \t\t\" <value>FILL ME IN</value>\\r\\n\" +\n\t\t \t\t\" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" <property name=\\\"sortAscending\\\" value=\\\"true\\\" />\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" <property name=\\\"lookupFields\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\t\t sb.append(\" <bean parent=\\\"FieldDefinition\\\" p:attributeName=\\\"\" );\n\t\t sb.append( p.getName() ).append( \"\\\" />\\r\\n\" );\n\t\t }\n\t\t }\n\t\t sb.append( \" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" <property name=\\\"resultFields\\\" >\\r\\n\" +\n\t\t \t\t\" <list>\\r\\n\" );\n\t\t for ( PropertyDescriptor p : props ) {\n\t\t if ( isNormalProperty(p) ) {\n\t\t sb.append(\" <bean parent=\\\"FieldDefinition\\\" p:attributeName=\\\"\" );\n\t\t sb.append( p.getName() ).append( \"\\\" />\\r\\n\" );\n\t\t }\n\t\t }\n\t\t sb.append( \" </list>\\r\\n\" +\n\t\t \t\t\" </property>\\r\\n\" +\n\t\t \t\t\" </bean>\\r\\n\" );\n\t\t sb.append( \"\\r\\n</beans>\" );\n\n\t\t FileWriter outputfile = null;\n\t\t try\n\t\t {\n\t\t \toutputfile = new FileWriter(getOutputFilePath(className, false) + boName + \".xml\");\n\t\t \toutputfile.write(sb.toString());\n\t\t }\n\t\t catch(IOException e)\n\t\t {\n\t\t \tSystem.err.println(\"Error writing bean data to file.\");\n\t\t }\n\t\t finally {\n\t\t \toutputfile.close();\n\t\t }\n\t \t}\n \t}\n \tcatch(DocumentException e)\n \t{\n \t\tSystem.err.println(\"Error parsing xml document.\");\n \t}\n }",
"public void load() throws Exception\n {\n String id = request.getParameter(\"config\");\n if (id != null && id.length() > 0)\n {\n List<DDVConfig> configs = this.getConfigs();\n for (DDVConfig c:configs)\n {\n if (c.getId().equals(id))\n {\n this.config = c;\n return;\n }\n }\n }\n }",
"public void readXMLFile(File file, int dim, int verbose) {\n\n\t\tif(file.exists()) {\n\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n\n\t\t\ttry {\n\t\t\t\tDocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\t\tDocument document = builder.parse(file);\n\n\t\t\t\tElement racine = document.getDocumentElement();\n\t\t\t\tNodeList racineNoeuds = racine.getChildNodes();\n\t\t\t\tint nbRacineNoeuds = racineNoeuds.getLength();\n\n\t\t\t\t// Number of instances\n\t\t\t\tint numberOfInstances = -1;\n\n\t\t\t\tfor(int i=0; i<nbRacineNoeuds; i++) {\n\t\t\t\t\tif(racineNoeuds.item(i).getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\tElement e = (Element) racineNoeuds.item(i);\n\t\t\t\t\t\tif(verbose > 2) System.out.println(i + \"\\t\" + e + \"\\t\" + e.getTextContent());\n\n\t\t\t\t\t\tif(e.getTagName().compareToIgnoreCase(\"name\") == 0) {\n\t\t\t\t\t\t\t// Read the name of the bag\n\t\t\t\t\t\t\tString name = e.getTextContent();\n\t\t\t\t\t\t\tsetName(name);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(e.getTagName().compareToIgnoreCase(\"numberofinstances\") == 0) {\n\t\t\t\t\t\t\t// Read the number of instances\n\t\t\t\t\t\t\tnumberOfInstances = Integer.parseInt(e.getTextContent());\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(e.getTagName().compareToIgnoreCase(\"feature\") == 0) {\n\t\t\t\t\t\t\t// Read the global feature representation of the bag\n\t\t\t\t\t\t\tint featureDim = Integer.parseInt(e.getAttribute(\"dim\"));\n\t\t\t\t\t\t\tif(dim >= 0 && featureDim != dim) {\n\t\t\t\t\t\t\t\tSystem.out.println(\"ERROR - read dimension feature \" + featureDim + \" vs \" + dim);\n\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tString stringFeature = e.getTextContent();\n\t\t\t\t\t\t\tsetBagFeature(readFeature(stringFeature, featureDim));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(e.getTagName().compareToIgnoreCase(\"instance\") == 0) {\n\t\t\t\t\t\t\t// Read an instance\n\n\t\t\t\t\t\t\tNodeList childNoeuds = e.getChildNodes();\n\t\t\t\t\t\t\tint nbChildNoeuds = childNoeuds.getLength();\n\n\t\t\t\t\t\t\t// Index of instance\n\t\t\t\t\t\t\tint index = -1;\n\n\t\t\t\t\t\t\t// Instance feature\n\t\t\t\t\t\t\tdouble[] feature = null;\n\n\t\t\t\t\t\t\tfor(int j=0; j<nbChildNoeuds; j++) {\n\t\t\t\t\t\t\t\tif(childNoeuds.item(j).getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\t\t\tElement childElement = (Element) childNoeuds.item(j);\n\n\t\t\t\t\t\t\t\t\tif(verbose > 2) System.out.println(j + \"\\t\" + childElement);\n\n\t\t\t\t\t\t\t\t\tif(childElement.getTagName().compareToIgnoreCase(\"index\") == 0) {\n\t\t\t\t\t\t\t\t\t\t// Read index of instance\n\t\t\t\t\t\t\t\t\t\tindex = Integer.parseInt(childElement.getTextContent());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if(childElement.getTagName().compareToIgnoreCase(\"feature\") == 0) {\n\t\t\t\t\t\t\t\t\t\t// Read instance feature\n\t\t\t\t\t\t\t\t\t\tint featureDim = Integer.parseInt(childElement.getAttribute(\"dim\"));\n\t\t\t\t\t\t\t\t\t\tif(dim >= 0 && featureDim != dim) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"ERROR - read dimension feature \" + featureDim + \" vs \" + dim);\n\t\t\t\t\t\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tString stringFeature = childElement.getTextContent();\n\t\t\t\t\t\t\t\t\t\tfeature = readFeature(stringFeature, featureDim);\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\tif(index != -1) {\n\t\t\t\t\t\t\t\taddInstance(index, feature);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\taddInstance(feature);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tif(numberOfInstances != -1 && numberOfInstances != numberOfInstances()) {\n\t\t\t\t\tSystem.out.println(\"Error in readXMLFile - number of instances incorrect \" + numberOfInstances + \" != \" + numberOfInstances());\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (final ParserConfigurationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (final SAXException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (final IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"\\nError file \" + file.getAbsolutePath() + \" does not exist\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"private void initConfig() {\n Path walletPath;\n Wallet wallet;\n\n // load a CCP\n Path networkConfigPath; \n \n try {\n \t\n \tif (!isLoadFile) {\n // Load a file system based wallet for managing identities.\n walletPath = Paths.get(\"wallet\");\n wallet = Wallet.createFileSystemWallet(walletPath);\n\n // load a CCP\n networkConfigPath = Paths.get(\"\", \"..\", \"basic-network\", configFile);\n \n builder = Gateway.createBuilder();\n \n \tbuilder.identity(wallet, userId).networkConfig(networkConfigPath).discovery(false);\n \t\n \tisLoadFile = true;\n \t}\n } catch (Exception e) {\n \te.printStackTrace();\n \tthrow new RuntimeException(e);\n }\n\t}",
"void loadSettings(String configFileName, String corpusDirName, String inputasN, String outputasN)\n throws GateException, IOException {\n LogService.minVerbosityLevel = 0;\n if(LogService.minVerbosityLevel>0)\n System.out.println(\"Learning Home : \" + learningHome.getAbsolutePath());\n FeatureMap parameters = Factory.newFeatureMap();\n URL configFileURL = new File(configFileName).toURI().toURL();\n parameters.put(\"configFileURL\", configFileURL);\n learningApi = (LearningAPIMain)Factory.createResource(\n \"gate.learning.LearningAPIMain\", parameters);\n // Load the corpus\n corpus = Factory.newCorpus(\"DataSet\");\n ExtensionFileFilter fileFilter = new ExtensionFileFilter();\n fileFilter.addExtension(\"xml\");\n File[] xmlFiles = new File(corpusDirName).listFiles(fileFilter);\n Arrays.sort(xmlFiles, new Comparator<File>() {\n public int compare(File a, File b) {\n return a.getName().compareTo(b.getName());\n }\n });\n for(File f : xmlFiles) {\n if(!f.isDirectory()) {\n Document doc = Factory.newDocument(f.toURI().toURL(), \"UTF-8\");\n doc.setName(f.getName());\n corpus.add(doc);\n }\n }\n// URL tempURL = new File(corpusDirName).toURI().toURL();\n// corpus.populate(tempURL, fileFilter, \"UTF-8\", false);\n // Set the inputAS\n learningApi.setInputASName(inputasN);\n learningApi.setOutputASName(outputasN);\n controller = (gate.creole.SerialAnalyserController)Factory\n .createResource(\"gate.creole.SerialAnalyserController\");\n controller.setCorpus(corpus);\n controller.add(learningApi);\n }",
"private void loadConfig() throws IOException {\n File bStatsFolder = new File(plugin.getDataFolder().getParentFile(), \"bStats\");\n File configFile = new File(bStatsFolder, \"config.yml\");\n Config config = new Config(configFile);\n \n // Check if the config file exists\n if (!config.exists(\"serverUuid\")) {\n // Add default values\n config.set(\"enabled\", true);\n // Every server gets it's unique random id.\n config.set(\"serverUuid\", UUID.randomUUID().toString());\n // Should failed request be logged?\n config.set(\"logFailedRequests\", false);\n // Should the sent data be logged?\n config.set(\"logSentData\", false);\n // Should the response text be logged?\n config.set(\"logResponseStatusText\", false);\n \n DumperOptions dumperOptions = new DumperOptions();\n dumperOptions.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);\n writeFile(configFile,\n \"# bStats collects some data for plugin authors like how many servers are using their plugins.\",\n \"# To honor their work, you should not disable it.\",\n \"# This has nearly no effect on the server performance!\",\n \"# Check out https://bStats.org/ to learn more :)\",\n new Yaml(dumperOptions).dump(config.getRootSection()));\n }\n \n // Load the data\n enabled = config.getBoolean(\"enabled\", true);\n serverUUID = config.getString(\"serverUuid\");\n logFailedRequests = config.getBoolean(\"logFailedRequests\", false);\n logSentData = config.getBoolean(\"logSentData\", false);\n logResponseStatusText = config.getBoolean(\"logResponseStatusText\", false);\n }",
"private static HisPatientInfoConfiguration loadConfiguration(String filePath) throws HisServiceException{\n File file = new File(filePath);\n if(file != null && file.exists() && file.isFile() ) {\n try {\n configuration = new Yaml().loadAs(new FileInputStream(file), HisPatientInfoConfiguration.class);\n } catch(FileNotFoundException e) {\n log.error(e.getMessage());\n isOK = false;\n throw new HisServiceException(HisServerStatusEnum.NO_CONFIGURATION);\n }\n }\n else {\n isOK = false;\n }\n return configuration;\n }",
"public static void acceptConfig() {\r\n\t\t//Here, it tries to read over the config file using try-catch in case of Exception\r\n\t\ttry {\r\n\t\t\tProperties properties = new Properties();\r\n\t\t\tFileInputStream fis = new FileInputStream(new File(\"config.properties\"));\r\n\t\t\tproperties.load(fis);\r\n\t\t\tString storage = properties.getProperty(\"storage\");\r\n\t\t\tif(storage == null) \r\n\t\t\t\tthrow new IllegalArgumentException(\"Property 'storage' not found\");\r\n\t\t\tif(storage.equals(\"tree\"))\r\n\t\t\t\tdata = new BinarySearchTree();\r\n\t\t\tif(storage.equals(\"trie\"))\r\n\t\t\t\tdata = new Trie();\r\n\t\t\tif(data == null) \r\n\t\t\t\tthrow new IllegalArgumentException(\"Not valid storage configuration.\");\r\n\t\t}\r\n\t\t//If an Exception occurs, it just prints a message\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Configuration file not found.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.exit(1);\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error reading the configuration file.\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprotected void parseConfig() {\n\t\t_nameservers = new ArrayList<String>();\n\t\t_nameserverPorts = new ArrayList<String>();\n\n\t\t_props = new Hashtable<String,String>();\n\t\t// Get the Carma namespace\n\t\tNamespace ns = Namespace.getNamespace(\"Carma\",\n\t\t\t\t\"http://www.mmarray.org\");\n\n\n\t\t// Cache Size\n\t\t_cacheSize = Integer.parseInt(_root.getChild(\"pdbi\", ns).getChild(\n\t\t\t\t\"CacheSize\", ns).getTextTrim());\n\n\t\t// get the location of the scripts and web pages\n\t\tscriptLocationSci1 = _root.getChild(\"pdbi\",ns).getChild(\"scriptDirectorySci1\",ns).getTextTrim();\n\t\tscriptLocationSci2 = _root.getChild(\"pdbi\",ns).getChild(\"scriptDirectorySci2\",ns).getTextTrim();\n\t\tscriptLocationFT = _root.getChild(\"pdbi\",ns).getChild(\"scriptDirectoryFT\",ns).getTextTrim();\n\t\tgradeWeb = _root.getChild(\"pdbi\",ns).getChild(\"webDirectory\",ns).getTextTrim();\n\t\t// Load Properties\n\t\tList propElements = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"properties\", ns)\n\t\t\t\t\t\t\t\t .getChildren(\"prop\", ns);\n\t\tIterator i = propElements.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tElement current = (Element)i.next();\n\t\t\t_props.put(current.getAttributeValue(\"key\"),\n\t\t\t current.getAttributeValue(\"value\"));\n\t\t}\n\n\t\t// Load Starting NameComponent\n\t\tString start = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"NameComponent\", ns)\n\t\t\t\t\t\t\t.getAttributeValue(\"start\");\n\t\tif (start.equals(\"1\") || start.equals(\"true\")) {\n\t\t\t_nameComponentIDs = new ArrayList<String>();\n\t\t\t_nameComponentKinds = new ArrayList<String>();\n\t\t\tList ncElements = _root.getChild(\"pdbi\", ns)\n\t\t .getChild(\"NameComponent\", ns)\n\t\t\t\t\t\t\t\t .getChildren(\"item\", ns);\n\t\t\ti = ncElements.iterator();\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tElement current = (Element)i.next();\n\t\t\t\tString id = current.getAttributeValue(\"id\");\n\t\t\t\tString kind = current.getAttributeValue(\"kind\");\n\t\t\t\t_nameComponentIDs.add(id);\n\t\t\t\t_nameComponentKinds.add(kind);\n\t\t\t}\n\t\t} else {\n\t\t\t_nameComponentIDs = null;\n\t\t\t_nameComponentKinds = null;\n\t\t}\n\t\t\t\n\n\t\t// Load NameServers\n\t\tList nameServerElements = _root.getChild(\"pdbi\", ns)\n\t\t\t.getChild(\"nameServers\", ns)\n\t\t\t.getChildren(\"nameServer\", ns);\n\t\ti = nameServerElements.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tElement current = (Element)i.next();\n\t\t\t_nameservers.add(current.getChild(\"identifier\", ns)\n\t\t\t\t\t.getTextTrim());\n\t\t}\n\n\t\t// Load NameServer Ports\n\t\tList nameServerPortElements = _root.getChild(\"pdbi\", ns)\n\t\t\t.getChild(\"nameServerPorts\", ns)\n\t\t\t.getChildren(\"nameServerPort\", ns);\n\t\ti = nameServerPortElements.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tElement current = (Element)i.next();\n\t\t\t_nameserverPorts.add(current.getChild(\"pidentifier\", ns)\n\t\t\t\t\t.getTextTrim());\n\t\t}\n\t}",
"private void setLoadBalance() {\n deleteAllChildren(\"/soa/config/service\");\n\n Properties prop = new Properties();\n try {\n InputStream in = StaticInfoHelper.class.getClassLoader().getResourceAsStream(\"config.properties\");\n prop.load(in);\n } catch (IOException e) {\n LOGGER.error(\"error reading file config.properties\");\n LOGGER.error(e.getMessage(), e);\n }\n\n Iterator<Map.Entry<Object, Object>> it = prop.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<Object, Object> entry = it.next();\n Object key = entry.getKey();\n Object value = entry.getValue();\n String t_value = ((String) value).replaceAll(\"/\", \"=\");\n\n createConfigNodeWithData(\"/soa/config/service/\" + (String) key, t_value);\n }\n\n }",
"public FileConfiguration loadConfiguration(File file);",
"private boolean readFile() {\n\t\ttry {\n\n\t\t\tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\n\t\t\tDocument doc = docBuilder.parse(cnfFile);\n\n\t\t\t// normalize text representation\n\t\t\tdoc.getDocumentElement().normalize();\n\t\t\tSystem.out.println(\"Root element of the doc is \" + doc.getDocumentElement().getNodeName());\n\t\t\tdoc.getDocumentElement().getAttributeNode(\"version\");\n\n\t\t\tNodeList rootNode = doc.getElementsByTagName(\"SCMS_DATA\");\n\t\t\tif (rootNode.getLength() < 1) {\n\t\t\t\tSystem.out.println(\"ERROR in config data file: there is no SCMS_DATA element\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString version = rootNode.item(0).getAttributes().getNamedItem(\"version\").getNodeValue();\n\t\t\tfinal String dataVersion = \"0.1\";\n\t\t\tif (!version.equals(dataVersion)) {\n\t\t\t\tSystem.out.println(\"ERROR in config data file: required version is \" + dataVersion);\n\t\t\t\tSystem.out.println(\"Version \" + version + \" is not supported.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tNodeList listOfDevices = doc.getElementsByTagName(\"DEVICE\");\n\t\t\tint totalDevices = listOfDevices.getLength();\n\t\t\tSystem.out.println(\"Total no of devices : \" + totalDevices);\n\n\t\t\tHashMap<String, CnfDevice> devices = new HashMap<>();\n\t\t\tfor (int s = 0; s < listOfDevices.getLength(); s++) {\n\n\t\t\t\tNode node = listOfDevices.item(s);\n\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\n\t\t\t\t\tString id = node.getAttributes().getNamedItem(\"id\").getNodeValue();\n\t\t\t\t\tString name = node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\t\tString description = node.getAttributes().getNamedItem(\"description\").getNodeValue();\n\t\t\t\t\tString pi_name = node.getAttributes().getNamedItem(\"PI_Name\").getNodeValue();\n\t\t\t\t\tString pixHor = node.getAttributes().getNamedItem(\"pixHor\").getNodeValue();\n\t\t\t\t\tString pixVer = node.getAttributes().getNamedItem(\"pixVer\").getNodeValue();\n\t\t\t\t\tString location = node.getAttributes().getNamedItem(\"location\").getNodeValue();\n\n\t\t\t\t\tdevices.put(id, new CnfDevice(id, name, description, pi_name,\n\t\t\t\t\t\t\tInteger.valueOf(pixHor), Integer.valueOf(pixVer),location));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcnfData.setDevices(devices);\n\n\t\t\tNodeList listOfViews = doc.getElementsByTagName(\"VIEW\");\n\t\t\tint totalViews = listOfViews.getLength();\n\t\t\tSystem.out.println(\"Total no of views : \" + totalViews);\n\n\t\t\tHashMap<String, CnfView> views = new HashMap<>();\n\t\t\tfor (int s = 0; s < listOfViews.getLength(); s++) {\n\n\t\t\t\tNode node = listOfViews.item(s);\n\n\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tString id = node.getAttributes().getNamedItem(\"id\").getNodeValue();\n\t\t\t\t\tString name = node.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\t\tString description = node.getAttributes().getNamedItem(\"description\").getNodeValue();\n\t\t\t\t\tString pixHor = node.getAttributes().getNamedItem(\"pixHor\").getNodeValue();\n\t\t\t\t\tString pixVer = node.getAttributes().getNamedItem(\"pixVer\").getNodeValue();\n\t\t\t\t\tString asso_device = node.getAttributes().getNamedItem(\"associatedDevice\").getNodeValue();\n\n\t\t\t\t\tElement element = (Element) node;\n\t\t\t\t\tNodeList listOfImages = ((Element) node).getElementsByTagName(\"IMAGE\");\n\t\t\t\t\tElement iElement = (Element) listOfImages.item(0);\n\t\t\t\t\tString[] images = new String[listOfImages.getLength()];\n\t\t\t\t\tfor (int i = 0; i < listOfImages.getLength(); i++) {\n\n\t\t\t\t\t\tNode iNode = listOfImages.item(i);\n\t\t\t\t\t\timages[i] = iNode.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\t\t}\n\n\t\t\t\t\tviews.put(id, new CnfView(id, name, description,\n\t\t\t\t\t\t\tInteger.valueOf(pixHor), Integer.valueOf(pixVer), asso_device, images));\n\t\t\t\t}\n\t\t\t}\n\t\t\tcnfData.setViews(views);\n\n\t\t\tNodeList listOfSections = doc.getElementsByTagName(\"SECTION\");\n\t\t\tint totalSections = listOfSections.getLength();\n\t\t\tSystem.out.println(\"Total no of sections : \" + totalSections);\n\n\t\t\tHashMap<String, CnfSection> sections = new HashMap<>();\n\t\t\tfor (int s = 0; s < totalSections; s++) {\n\t\t\t\tNode node = listOfSections.item(s);\n\n\t\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\tString sectionId = node.getAttributes().getNamedItem(\"sectionId\").getNodeValue();\n\t\t\t\t\tString deviceId = node.getAttributes().getNamedItem(\"deviceId\").getNodeValue();\n\t\t\t\t\tString positionId = node.getAttributes().getNamedItem(\"positionId\").getNodeValue();\n\t\t\t\t\tString vOffset = node.getAttributes().getNamedItem(\"vOffset\").getNodeValue();\n\n\t\t\t\t\t// A section is invalid if the deviceId doesn't exist\n\t\t\t\t\tif (null == cnfData.getDeviceById(deviceId)) {\n\t\t\t\t\t\tSystem.out.println(\"ERROR in SECTION config data: deviceId \" + deviceId + \" sectionId \" + sectionId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsections.put(deviceId, new CnfSection(sectionId, deviceId, positionId, vOffset));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcnfData.setSections(sections);\n\t\t\treturn true;\n\n\t\t} catch (SAXParseException err) {\n\t\t\tSystem.out.println(\"** Parsing error\" + \", line \" + err.getLineNumber() + \", uri \" + err.getSystemId());\n\t\t\tSystem.out.println(\" \" + err.getMessage());\n\n\t\t} catch (SAXException e) {\n\t\t\tException x = e.getException();\n\t\t\t((x == null) ? e : x).printStackTrace();\n\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n public final void testConfigurationParser() {\n URL resourceUrl = this.getClass().getResource(configPath);\n File folder = new File(resourceUrl.getFile());\n for (File configFile : folder.listFiles()) {\n try {\n System.setProperty(\"loadbalancer.conf.file\", configFile.getAbsolutePath());\n LoadBalancerConfiguration.getInstance();\n } finally {\n LoadBalancerConfiguration.clear();\n }\n }\n }",
"private static void processConfig() throws IOException, IllegalArgumentException, UnknownHostException {\n //\n // Use the defaults if there is no configuration file\n //\n File configFile = new File(dataPath+Main.fileSeparator+\"BitcoinWallet.conf\");\n if (!configFile.exists())\n return;\n //\n // Process the configuration file\n //\n List<PeerAddress> addressList = new ArrayList<>(5);\n try (BufferedReader in = new BufferedReader(new FileReader(configFile))) {\n String line;\n while ((line=in.readLine()) != null) {\n line = line.trim();\n if (line.length() == 0 || line.charAt(0) == '#')\n continue;\n int sep = line.indexOf('=');\n if (sep < 1)\n throw new IllegalArgumentException(String.format(\"Invalid configuration option: %s\", line));\n String option = line.substring(0, sep).trim().toLowerCase();\n String value = line.substring(sep+1).trim();\n switch (option) {\n case \"connect\":\n PeerAddress addr = new PeerAddress(value);\n addressList.add(addr);\n break;\n case \"passphrase\":\n Parameters.passPhrase = value;\n break;\n default:\n throw new IllegalArgumentException(String.format(\"Invalid configuration option: %s\", line));\n }\n }\n }\n if (!addressList.isEmpty())\n peerAddresses = addressList.toArray(new PeerAddress[addressList.size()]);\n }",
"public RegCita() {\n\t\tinitialize();\n\t}",
"public static void loadGameConfiguration() {\n File configFile = new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME);\n manageGameConfigFile(configFile);\n }",
"private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"@Test\n\tpublic void testConfigLoading(){\n\t\tassertEquals(2,occurrencePortalConfig.getSupportedLocale().size());\n\t\tassertNotNull(occurrencePortalConfig.getResourceBundle(Locale.ENGLISH));\n\t\t\n\t\tassertEquals(\"cc0\",occurrencePortalConfig.getLicenseShortName(\"http://creativecommons.org/publicdomain/zero/1.0/\"));\n\t}",
"public Registracija() {\n servletContext = (ServletContext) FacesContext.getCurrentInstance().getExternalContext().getContext();\n konf = (Konfiguracija) servletContext.getAttribute(\"Konfig\");\n bpkonf = (BP_Konfiguracija) servletContext.getAttribute(\"BP_Konfig\");\n }",
"private void loadData () {\n try {\n File f = new File(\"arpabet.txt\");\n BufferedReader br = new BufferedReader(new FileReader(f));\n vowels = new HashMap<String, String>();\n consonants = new HashMap<String, String>();\n phonemes = new ArrayList<String>();\n String[] data = new String[3];\n for (String line; (line = br.readLine()) != null; ) {\n if (line.startsWith(\";\")) {\n continue;\n }\n data = line.split(\",\");\n phonemes.add(data[0]);\n if (data[1].compareTo(\"v\") == 0) {\n vowels.put(data[0], data[2]);\n } else {\n consonants.put(data[0], data[2]);\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void init(Element element) throws ConfigurationException {\r\n\r\n \tthis.infobusUrl = DOMUtils.getAttribute(element, \"infobusUrl\", true);\r\n\r\n\t}",
"@Test\n public void testLoadConfiguration() throws ConfigurationException\n {\n factory.setFile(TEST_FILE);\n checkConfiguration();\n }",
"public void loadConfiguration() throws VEMAConfigurationException\n\t{\n\t}",
"private void loadFromXml(String fileName) throws IOException {\n\t\tElement root = new XmlReader().parse(Gdx.files.internal(fileName));\n\n\t\tthis.name = root.get(\"name\");\n\t\tGdx.app.log(\"Tactic\", \"Loading \" + this.name + \"...\");\n\n\t\tArray<Element> players = root.getChildrenByName(\"player\");\n\t\tint playerIndex = 0;\n\t\tfor (Element player : players) {\n\t\t\t//int shirt = player.getInt(\"shirt\"); // shirt number\n\t\t\t//Gdx.app.log(\"Tactic\", \"Location for player number \" + shirt);\n\n\t\t\t// regions\n\t\t\tArray<Element> regions = player.getChildrenByName(\"region\");\n\t\t\tfor (Element region : regions) {\n\t\t\t\tString regionName = region.get(\"name\"); // region name\n\n\t\t\t\tthis.locations[playerIndex][Location.valueOf(regionName).ordinal()] = new Vector2(region.getFloat(\"x\"), region.getFloat(\"y\"));\n\n\t\t\t\t//Gdx.app.log(\"Tactic\", locationId + \" read\");\n\t\t\t}\n\t\t\tplayerIndex++;\n\t\t}\t\n\t}",
"@Override\n public void loadDefaultConfig() {\n currentConfigFileName = defaultConfigFileName;\n mesoCfgXML = (SCANConfigMesoXML) readDefaultConfig();\n createAttributeMap(getAttributes());\n }",
"C getConfiguration();",
"public void testLoadConfig(AugeasTree tree,PluginContainer container)throws Exception{\n \t System.out.print(\"\\tTest mapping of augeas tree to rhq configuration.\");\n \t ApacheConfigurationUtil util = new ApacheConfigurationUtil();\n \t for (Components component : Components.values()){\n \t //get nodes for each component\n \t List<AugeasNode> nodes = component.getAllNodes(tree);\n \t for (int i=0;i<nodes.size();i++){\n \t String key = AugeasNodeSearch.getNodeKey(nodes.get(i), tree.getRootNode());\n \t Configuration config = ApacheConfigurationUtil.componentToConfiguration(container, component, key, tree);\n \t //load configuration for related component and augeas node from tempfolder\n \t Configuration expectedConfig = util.loadConfiguration(ApacheTestConstants.getConfigFilesPathForLoad()+\n \t File.separator+component.getComponentName()+String.valueOf(i));\n assert config.equals(expectedConfig) :\n \"Unexpected Resource configuration - \\nExpected:\\n\\t\"\n + expectedConfig.toString(true) + \"\\nActual:\\n\\t\" + config.toString(true);\n \t }\n \t }\n System.out.println(\" [success!]\");\n \t }",
"@Override\n protected void loadConfig(String fileName){\n fileName = PSO_PATH + fileName;\n File file = new File(fileName);\n try {\n Scanner sc = new Scanner(file); \n String line = sc.nextLine();\n List<List<String>> list = Arrays.asList(line.split(\",\"))\n .stream()\n .map(s -> Arrays.asList(s.split(\":\"))\n .stream()\n .map(n -> n.replaceAll(\"[^a-zA-Z0-9_.]\", \"\"))\n .collect(Collectors.toList())\n )\n .collect(Collectors.toList());\n\n this.initialTemperature = Double.parseDouble(list.get(0).get(1));\n this.coolingRate = Double.parseDouble(list.get(2).get(1));\n sc.close();\n } \n catch(IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n }",
"private void chargeConfiguration() {\n\t\tgetConfig().options().copyDefaults(true);\n\t\tFile config = new File(getDataFolder(), \"config.yml\");\n\t\tFile lang = new File(getDataFolder(), \"lang.properties\");\n\t\ttry {\n\t\t\tif (!config.exists()) {\n\t\t\t\tsaveDefaultConfig();\n\t\t\t}\n\t\t\tif (!lang.exists()) {\n\t\t\t\tsaveResource(\"lang.properties\", false);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthis.error(\"Can not load the configuration\", e);\n\t\t}\n\t}",
"void setXMLBFactura(com.synergyj.cursos.webservices.ordenes.XMLBFactura xmlbFactura);",
"public static void readConfig() {\n\t\tint[] defaultBanned = Loader.isModLoaded(\"twilightforest\") ? new int[]{7} : new int[0];\n\t\t\n\t\tDIMENSION_LIST = ConfigHelpers.getIntArray(config, \"dimensionIdList\", \"general\", defaultBanned, \"The list of dimension IDs, used as a allow-list or deny-list, depending on your other config settings. Internal numeric IDs, please.\");\n\t\t\n\t\tMODE = ConfigHelpers.getEnum(config, \"mode\", \"general\", ListMode.DENY_LIST, \"What mode should Broken Wings operate under?\", (mode) -> {\n\t\t\tswitch (mode) {\n\t\t\t\tcase DENY_LIST: return \"Flying is disabled in only the dimensions listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALLOW_LIST: return \"Flying is disabled in all dimensions, except the ones listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALWAYS_DENY: return \"Flying is always disabled, regardless of dimension ID.\";\n\t\t\t\tcase ALWAYS_ALLOW: return \"Flying is never disabled (it's like the mod isn't even installed)\";\n\t\t\t\tdefault: return \"h\";\n\t\t\t}\n\t\t}, ListMode.class);\n\t\t\n\t\tARMOR_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyArmor\", \"general\", new ItemList(), \"A player wearing one of these armor pieces will be immune to the no-flight rule.\");\n\t\t\n\t\tINVENTORY_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyInventory\", \"general\", new ItemList(), \"A player with one of these items in their inventory will be immune to the no-flight rule.\");\n\t\t\n\t\tif(Loader.isModLoaded(\"baubles\")) {\n\t\t\tBUBBLE_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyBauble\", \"general\", new ItemList(), \"A player wearing one of these Baubles will be immune to the no-flight rule.\");\n\t\t} else {\n\t\t\tBUBBLE_BYPASS_KEYS = new ItemList();\n\t\t}\n\t\t\n\t\t//Countermeasures\n\t\tCountermeasures.readConfig(config);\n\t\t\n\t\t//Effects\n\t\tPRINT_TO_LOG = config.getBoolean(\"printToLog\", \"effects\", true, \"Should a message be printed to the server console when a player is dropped from the sky?\");\n\t\t\n\t\tSEND_STATUS_MESSAGE = config.getBoolean(\"sendStatusMessage\", \"effects\", true, \"Should players receive a status message when they are dropped from the sky?\");\n\t\t\n\t\tSHOW_PARTICLES = config.getBoolean(\"showParticles\", \"effects\", true, \"Should players create particle effects when they are dropped from the sky?\");\n\t\t\n\t\tEFFECT_INTERVAL = config.getInt(\"effectInterval\", \"effects\", 3, 0, Integer.MAX_VALUE, \"To prevent spamming players and the server console, how many seconds will need to pass before performing another effect? (Players will still drop out of the sky if they try to fly faster than this interval.)\");\n\t\t\n\t\tFIXED_MESSAGE = config.getString(\"fixedStatusMessage\", \"effects\", \"\", \"Whatever you enter here will be sent to players when they are dropped out of the sky if 'effects.sendStatusMessage' is enabled. If this is empty, I'll choose from my own internal list of (tacky) messages.\").trim();\n\t\t\n\t\t//Client\n\t\tSHOW_BYPASS_KEY_TOOLTIP = config.getBoolean(\"showBypassKeyTooltip\", \"client\", true, \"Show a tooltip on items that are bypass-keys informing the player that they can use this item to bypass the rule.\");\n\t\t\n\t\tif(config.hasChanged()) config.save();\n\t}",
"ConfigurationPackage getConfigurationPackage();",
"public T loadConfig(File file) throws IOException;",
"private void initConfiguration() {\n\n\t\t//Configuration du jeu\n\t\tconfigJeu = ask(config, \"Emplacement de départ ?\", \"Emplacement\");\n\t\tSystem.out.println(\"\"+modeJeu);\n\n\t\t//mode 2 = Machine contre Machine\n\t\t//mode 1 = Jouur contre Machine\n\n\t\t//On demande le mode de jeu\n\t\tmodeJeu = JOptionPane.showOptionDialog(this, \"Quel mode de jeu ?\", \"Mode de jeu\",\n\t\t\t\tJOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,\n\t\t\t\ticon, modes, modes[1]); //default button title\n\n\t\tif(modeJeu == 1 || modeJeu == 2){\t//Dans le cas ou c'est joueur contre machine\n\t\t\t nivDifficulté = new String[]{\"Niveau 0 (Random)\",\n\t\t\t\t\t \"Niveau 1 (MinMax niveau 4 avec random)\",\n\t\t\t\t\t \"Niveau 2 (MinMax niveau 2)\",\n\t\t\t\t\t \"Niveau 2.5 (MinMax niveau 2 puis 4)\",\n\t\t\t\t\t \"Niveau 3 (AlphaBeta profondeur 2)\",\n\t\t\t\t\t \"Niveau 4 (NégaAlphaBeta profondeur 4)\",\n\t\t\t\t\t \"Niveau 5 (IA Tricheuse, avec NégaAlphaBeta profondeur 4)\",\n\t\t\t\t\t \"Niveau 6 (IA Tricheuse & voleuse, avec NégaAlphaBeta profondeur 4)\"};\n\n\t\t\tniveauDifficulté = ask(nivDifficulté, \"Votre niveau de difficulté?\",\"Niveau de difficulté\");\n\n\t\t\tniveauHeuristique = ask(configHeuristique, \"L'orientation des poids de l'IA ?\", \"Poids de l'IA\");\n\t\t\tif(niveauHeuristique == 0)\n\t\t\t\tpoids = poidsEquilibre;\n\t\t\telse if(niveauHeuristique == 1)\n\t\t\t\tpoids = poidsAttaque;\n\t\t\telse if (niveauHeuristique == 2)\n\t\t\t\tpoids = poidsDefense;\n\n\n\t\t}else if (modeJeu == 2){\n\t\t\tniveauDifficulté = 10;\t// Dans le cas ou c'est Humain contre humain\n\t\t}\n\t}",
"private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }",
"public void setup() \n { \n \tsize(400,400);\n \tbac = new Bacteria[15];\n \tfor (int i = 0; i<bac.length; i++)\n \t{\n \t\tbac[i]= new Bacteria(200,200);\n \t\tbac[i].c();\n \t} //initialize bacteria variables here \n }",
"com.synergyj.cursos.webservices.ordenes.XMLBFactura getXMLBFactura();",
"public void loadConfigurationFromDisk() {\r\n try {\r\n FileReader fr = new FileReader(CONFIG_FILE);\r\n BufferedReader rd = new BufferedReader(fr);\r\n\r\n String line;\r\n while ((line = rd.readLine()) != null) {\r\n if (line.startsWith(\"#\")) continue;\r\n if (line.equalsIgnoreCase(\"\")) continue;\r\n\r\n StringTokenizer str = new StringTokenizer(line, \"=\");\r\n if (str.countTokens() > 1) {\r\n String aux;\r\n switch (str.nextToken().trim()) {\r\n case \"system.voidchain.protocol_version\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.protocolVersion = aux;\r\n continue;\r\n case \"system.voidchain.transaction.max_size\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.transactionMaxSize = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.block.num_transaction\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.numTransactionsInBlock = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.storage.data_file_extension\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.dataFileExtension = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_base_name\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.walletFileBaseName = aux;\r\n }\r\n continue;\r\n case \"system.voidchain.storage.data_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.dataDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.block_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.blockFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.storage.wallet_file_directory\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null) {\r\n aux = aux.replace('/', File.separatorChar);\r\n if (!aux.endsWith(File.separator))\r\n //aux = aux.substring(0, aux.length() - 1);\r\n aux = aux.concat(File.separator);\r\n this.walletFileDirectory = aux;\r\n }\r\n }\r\n continue;\r\n case \"system.voidchain.memory.block_megabytes\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.memoryUsedForBlocks = Integer.parseInt(aux);\r\n continue;\r\n case \"system.voidchain.sync.block_sync_port\":\r\n if (firstRun) {\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockSyncPort = Integer.parseInt(aux);\r\n }\r\n continue;\r\n case \"system.voidchain.crypto.ec_param\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.ecParam = aux;\r\n continue;\r\n case \"system.voidchain.core.block_proposal_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockProposalTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n case \"system.voidchain.blockchain.chain_valid_timer\":\r\n aux = str.nextToken().trim();\r\n if (aux != null)\r\n this.blockchainValidTimer = Integer.parseInt(aux) * 1000;\r\n continue;\r\n }\r\n }\r\n }\r\n\r\n fr.close();\r\n rd.close();\r\n\r\n if (this.firstRun)\r\n this.firstRun = false;\r\n } catch (IOException e) {\r\n logger.error(\"Could not load configuration\", e);\r\n }\r\n }",
"public static void load() {\r\n\r\n log.info(\"Config : loading Listener info\"); //$NON-NLS-1$\r\n\r\n Collection children = Collections.EMPTY_LIST;\r\n\r\n try {\r\n\r\n Content startPage = ContentRepository.getHierarchyManager(ContentRepository.CONFIG).getContent(CONFIG_PAGE);\r\n Content configNode = startPage.getContent(\"IPConfig\");\r\n children = configNode.getChildren(ItemType.CONTENTNODE); //$NON-NLS-1$\r\n }\r\n catch (RepositoryException re) {\r\n log.error(\"Config : Failed to load Listener info\"); //$NON-NLS-1$\r\n log.error(re.getMessage(), re);\r\n }\r\n\r\n Listener.cachedContent.clear();\r\n Listener.cacheContent(children);\r\n log.info(\"Config : Listener info loaded\"); //$NON-NLS-1$\r\n }",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"private void load() {\n if (loaded) {\n return;\n }\n loaded = true;\n\n if(useDefault){\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), \"server-embed.xml\"));\n }else {\n ConfigFileLoader.setSource(\n new MhttpdBaseConfigurationSource(\n Bootstrap.getMhttpdBaseFile(), getConfigFile()));\n }\n Digester digester = createStartDigester();\n try (ConfigurationSource.Resource resource = ConfigFileLoader.getSource().getServerXml()) {\n InputStream inputStream = resource.getInputStream();\n InputSource inputSource = new InputSource(resource.getUri().toURL().toString());\n inputSource.setByteStream(inputStream);\n digester.push(this);\n digester.parse(inputSource);\n } catch (Exception e) {\n return;\n }\n\n }",
"public void fromXML ( Element element )\r\n {\n String name = element.getAttribute( \"name\" );\r\n if ( name.compareTo( gadgetclass.getName() ) == 0 )\r\n {\r\n // load each user preference\r\n NodeList userPrefs = element.getElementsByTagName( \"UserPref\" );\r\n for ( int i = 0; i < userPrefs.getLength(); i++ )\r\n {\r\n Element prefElement = (Element) userPrefs.item( i );\r\n String prefName = prefElement.getAttribute( \"name\" );\r\n Text prefValue = (Text) prefElement.getChildNodes().item( 0 );\r\n for ( int j = 0; j < gadgetclass.getUserPrefsCount(); j++ )\r\n {\r\n UserPref up = gadgetclass.getUserPref( i );\r\n if ( prefName.compareTo( up.getName() ) == 0 )\r\n {\r\n setUserPrefValue( up, prefValue.getNodeValue() );\r\n j = gadgetclass.getUserPrefsCount();\r\n }\r\n }\r\n }\r\n }\r\n }",
"public <T> T loadConfiguration(ModuleCharacteristics moduleCharacteristics, Class<T> configurationClass) {\n log.debug(\"Loading configuration for '\" + moduleCharacteristics + \"'.\");\n String defaultClassPathLocation = String.format(DEFAULT_CONFIGURATION_CLASSPATH_LOCATION, \n moduleCharacteristics.getLowerCaseName());\n String defaultTestClassPathLocation = String.format(DEFAULT_TEST_CONFIGURATION_CLASSPATH_LOCATION, \n moduleCharacteristics.getLowerCaseName());\n JaxbHelper jaxbHelper = new JaxbHelper(\"configuration/schema/Configuration.xsd\");\n InputStream configStreamLoad = null;\n InputStream configStreamValidate = null;\n if(configStreamLoad == null) {\n String path = System.getProperty(CONFIGURATION_DIR_SYSTEM_PROPERTY);\n String name = String.format(DEFAULT_CONFIGURATION_CLASSPATH_NAME,\n moduleCharacteristics.getLowerCaseName());\n if(path != null && !path.isEmpty()){\n File configFile = new File(path, name);\n log.trace(\"Trying to retrieve configuration from '\" + configFile.getAbsolutePath() + \"'.\");\n try {\n configStreamLoad = new FileInputStream(configFile);\n configStreamValidate = new FileInputStream(configFile);\n } catch (IOException e) {\n log.warn(\"Couldn't find or handle config file '\" + configFile.getAbsolutePath() + \"'\");\n }\n }\n }\n if (configStreamLoad == null) {\n log.trace(\"Trying to retrieve configuration from classpath '\" + defaultClassPathLocation + \"'\");\n configStreamLoad = ClassLoader.getSystemResourceAsStream(defaultClassPathLocation);\n configStreamValidate = ClassLoader.getSystemResourceAsStream(defaultClassPathLocation);\n }\n if(configStreamLoad == null) {\n log.trace(\"Trying to retrieve configuration from classpath '\" + defaultTestClassPathLocation + \"'\");\n configStreamLoad = ClassLoader.getSystemResourceAsStream(defaultTestClassPathLocation);\n configStreamValidate = ClassLoader.getSystemResourceAsStream(defaultTestClassPathLocation);\n }\n if (configStreamLoad == null || configStreamValidate == null) {\n throw new ConfigurationException(\"Failed to find \" + defaultTestClassPathLocation + \" or \" + \n defaultClassPathLocation + \" in classpath\");\n }\n try {\n log.debug(\"Loading the configuration '\" + configurationClass.getCanonicalName() + \"'.\");\n jaxbHelper.validate(configStreamValidate);\n return (T) jaxbHelper.loadXml(configurationClass, configStreamLoad);\n \n } catch (JAXBException e) {\n throw new ConfigurationException(\"Failed to load the configuration from \" + configStreamLoad, \n e);\n } catch(SAXException e) {\n \tthrow new ConfigurationException(\"Failed to validate the xml from \" + configStreamLoad, e);\n }\n \n }",
"public ConfigCuenta() {\n initComponents();\n }",
"public void loadConfiguration() {\n Properties prop = new Properties();\n String propFileName = \".env_\" + this.dbmode.name().toLowerCase();\n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n System.err.println(\"property file '\" + propFileName + \"' not found in the classpath\");\n }\n this.jdbc = prop.getProperty(\"jdbc\");\n this.host = prop.getProperty(\"host\");\n this.port = prop.getProperty(\"port\");\n this.database = prop.getProperty(\"database\");\n this.user = prop.getProperty(\"user\");\n this.password = prop.getProperty(\"password\");\n // this.sslFooter = prop.getProperty(\"sslFooter\");\n } catch (Exception e) {\n System.err.println(\"can't read property file\");\n }\n try {\n inputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static ArrayList<String> loadParameters() throws IOException {\r\n BufferedReader br = new BufferedReader(new FileReader(new File(\"conf.data\")));\r\n\r\n ArrayList<String> params = new ArrayList<>();\r\n\r\n String param;\r\n while ((param = br.readLine()) != null ){\r\n params.add(param);\r\n }\r\n\r\n return params;\r\n }",
"public BoardBuilder(File fileName) throws Exception {\n\t\tJAXBContext contextObj = JAXBContext.newInstance(BoardInitializer.class);\n\t\tUnmarshaller mub = contextObj.createUnmarshaller();\n\t\tbi = (BoardInitializer) mub.unmarshal(new FileReader(fileName));\n\t}",
"private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }",
"@Override\n\tpublic void load() throws RemoteException {\n\t\tsuper.load();\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(config);\n\t\tbnetMap = loadBnetMap(adapter, config.getStoreUri(), getName());\n\t\tadapter.close();\n\t\t\n\t\titemIds = bnetMap.keySet();\n\t}",
"private void config() {\n\t}",
"private static void loadConfig() throws IOException { \t\t\n final InputStream input = Main.class.getResourceAsStream(\"/configuration.properties\");\n final Properties prop = new Properties();\n \n prop.load(input);\n System.out.println(\"Configuration loaded:\"); \n\n // PostgreSQL server access config\n dbmsUrl = prop.getProperty(\"dbms_url\");\n System.out.println(\"- dbms_url: \" + dbmsUrl);\n\n dbmsUser = prop.getProperty(\"dbms_user\");\n System.out.println(\"- dbms_user: \" + dbmsUser);\n\n userPw = prop.getProperty(\"user_pw\"); \n System.out.println(\"- user_pw: \" + userPw);\n\n\n // Benchmarks config\n noTransactions = Integer.parseInt(prop.getProperty(\"no_transactions\"));\n System.out.println(\"- no_transactions: \" + noTransactions);\n\n noStatementsPerTransaction = Integer.parseInt(prop.getProperty(\"no_statements_per_transaction\")); \n System.out.println(\"- no_statements_per_transaction: \" + noStatementsPerTransaction);\n\n noSelectStatements = Integer.parseInt(prop.getProperty(\"no_select_statements\")); \n System.out.println(\"- no_select_statements: \" + noSelectStatements + \"\\n\");\n\n input.close();\n }",
"@Test\n public void testLoadConfigurationFromFile() throws ConfigurationException\n {\n factory = new DefaultConfigurationBuilder(TEST_FILE);\n checkConfiguration();\n }",
"public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}",
"private AppConfigContent() {}",
"private void loadConfigValues() throws IOException {\n File propertiesFile = ConfigurationHelper.findConfigurationFile(\"ec2-service.properties\");\n if (null != propertiesFile) {\n logger.info(\"Use EC2 properties file: \" + propertiesFile.getAbsolutePath());\n Properties EC2Prop = new Properties();\n FileInputStream ec2PropFile = null;\n try {\n EC2Prop.load(new FileInputStream(propertiesFile));\n ec2PropFile = new FileInputStream(propertiesFile);\n EC2Prop.load(ec2PropFile);\n\n } catch (FileNotFoundException e) {\n logger.warn(\"Unable to open properties file: \" + propertiesFile.getAbsolutePath(), e);\n } catch (IOException e) {\n logger.warn(\"Unable to read properties file: \" + propertiesFile.getAbsolutePath(), e);\n } finally {\n IOUtils.closeQuietly(ec2PropFile);\n }\n managementServer = EC2Prop.getProperty(\"managementServer\");\n cloudAPIPort = EC2Prop.getProperty(\"cloudAPIPort\", null);\n\n try {\n if (ofDao.getOfferingCount() == 0) {\n String strValue = EC2Prop.getProperty(\"m1.small.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.small\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.large.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.large\", strValue);\n\n strValue = EC2Prop.getProperty(\"m1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.medium.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.medium\", strValue);\n\n strValue = EC2Prop.getProperty(\"c1.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"c1.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.2xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.2xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"m2.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"m2.4xlarge\", strValue);\n\n strValue = EC2Prop.getProperty(\"cc1.4xlarge.serviceId\");\n if (strValue != null)\n ofDao.setOfferMapping(\"cc1.4xlarge\", strValue);\n }\n } catch (Exception e) {\n logger.error(\"Unexpected exception \", e);\n }\n } else\n logger.error(\"ec2-service.properties not found\");\n }",
"public void initialize() {\n if (!BungeeBan.getInstance().getDataFolder().exists()) {\n BungeeBan.getInstance().getDataFolder().mkdirs();\n }\n File file = this.getConfigurationFile();\n if (!file.exists()) {\n try {\n file.createNewFile();\n if (this.defaultConfig != null) {\n try (InputStream is = BungeeBan.getInstance().getResourceAsStream(this.defaultConfig);\n OutputStream os = new FileOutputStream(file)) {\n ByteStreams.copy(is, os);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n this.reload();\n }",
"public String readConfiguration(String path);",
"void setConfiguration();",
"public void load()\n\t{\n\t\ttry {\n\t\t\tIFile file = project.getFile(PLAM_FILENAME);\n\t\t if (file.exists()) {\n\t\t\t\tInputStream stream= null;\n\t\t\t\ttry {\n\t\t\t\t\tstream = new BufferedInputStream(file.getContents(true));\n\t\t\t\t SAXReader reader = new SAXReader();\n\t\t\t\t Document document = reader.read(stream);\n\t\t\t\t \n\t\t\t\t Element root = document.getRootElement();\n\n\t\t\t\t String url = root.elementTextTrim(\"server-url\");\n\t\t\t\t setServerURL((url != null) ? new URL(url) : null);\n\t\t\t\t \n\t\t\t\t setUserName(root.elementTextTrim(\"username\"));\n\t\t\t\t setPassword(root.elementTextTrim(\"password\"));\n\t\t\t\t setProductlineId(root.elementTextTrim(\"pl-id\"));\n \n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\t\n\t\t\t\t} finally {\n\t\t\t\t if (stream != null)\n\t\t\t\t stream.close();\n\t\t\t\t}\n\t\t }\n\t\t} catch (DocumentException e) {\n\t\t\tlogger.info(\"Error while parsing PLAM config.\", e);\n\t\t} catch (IOException e) {\n\t\t}\n\t}",
"public static void readConfiguration() throws IOException {\n synchronized (Configuration.class) {\n Properties props = new Properties();\n InputStream is = new FileInputStream(Constants.ROOT_PATH + \"/opencraft.properties\");\n try {\n props.load(is);\n configuration = new Configuration(props);\n } finally {\n is.close();\n }\n }\n }"
]
| [
"0.5906401",
"0.58301175",
"0.5781118",
"0.57730407",
"0.55172586",
"0.5506309",
"0.5483439",
"0.5411578",
"0.5368656",
"0.5354582",
"0.52759683",
"0.52300787",
"0.5218008",
"0.52138525",
"0.5180408",
"0.517808",
"0.51732755",
"0.51573944",
"0.5118149",
"0.5104822",
"0.51008964",
"0.5092289",
"0.5076885",
"0.50767404",
"0.5073573",
"0.50710803",
"0.5025168",
"0.50197387",
"0.5014328",
"0.49970815",
"0.49950305",
"0.4983271",
"0.4976404",
"0.49593106",
"0.49555868",
"0.49395162",
"0.49380583",
"0.49289998",
"0.49166209",
"0.49129042",
"0.49032605",
"0.48987833",
"0.48898333",
"0.4888605",
"0.48786032",
"0.48698828",
"0.4858127",
"0.48539397",
"0.4828592",
"0.48270065",
"0.48245135",
"0.48218265",
"0.48196343",
"0.48120165",
"0.4809027",
"0.48038715",
"0.4798583",
"0.4796096",
"0.4794706",
"0.4772081",
"0.47689566",
"0.47665378",
"0.47504908",
"0.47450876",
"0.47447303",
"0.47423953",
"0.47351384",
"0.47275227",
"0.47236693",
"0.47235003",
"0.47225603",
"0.4717427",
"0.47124115",
"0.47099334",
"0.4706786",
"0.4705777",
"0.47055054",
"0.47044235",
"0.47044235",
"0.47044235",
"0.47044235",
"0.4700348",
"0.4700137",
"0.4697143",
"0.46932128",
"0.4691218",
"0.46877867",
"0.46845862",
"0.46843785",
"0.46781477",
"0.46751034",
"0.46747163",
"0.4669023",
"0.46648547",
"0.46640825",
"0.4663877",
"0.46637365",
"0.46602812",
"0.46565554",
"0.4650972",
"0.46449003"
]
| 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
CustomizedException obj=new CustomizedException();
try {
int age=obj.getAge();
if(age<0)
throw new negativeException();
else
System.out.println(age);
}
catch(negativeException e) {
System.out.println(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 |
Validates if incoming entity is create Valid | void validateCreate(T entity); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void validateCreate(ClaudiaData claudiaData, EnvironmentDto environmentDto, String vdc) throws \r\n AlreadyExistEntityException, InvalidEntityException;",
"protected void validateEntity() {\n super.validateEntity();\n }",
"void validateActivoCreate(Activo activo);",
"private boolean requiresCreate( EntityInstanceImpl ei )\n {\n // Can't create an entity that wasn't created...\n if ( !ei.isCreated() )\n return false;\n\n // Skip deleted entities; they've been created then deleted so no need to save them.\n if ( ei.isDeleted() )\n return false;\n\n // Check to see if this EI has already been inserted into the DB.\n if ( ei.dbhCreated )\n return false;\n\n EntityDef entityDef = ei.getEntityDef();\n if ( entityDef.isDerivedPath() )\n return false;\n\n // Skip the entity if we don't allow creates.\n if ( ! entityDef.isCreate() )\n return false;\n\n DataRecord dataRecord = entityDef.getDataRecord();\n if ( dataRecord == null )\n return false;\n\n return true;\n }",
"public abstract boolean create(T entity) throws ServiceException;",
"@Override\n\tprotected boolean isValidaInserir(ContatoTipo entity) {\n\t\treturn false;\n\t}",
"private static void validate(final ContentModelCreate item) throws InvalidContentException {\r\n \r\n // check public status of Content Model\r\n final StatusType publicStatus = item.getProperties().getObjectProperties().getStatus();\r\n \r\n if (publicStatus != StatusType.PENDING) {\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"New Content Model has to be in public-status '\" + StatusType.PENDING + \"'.\");\r\n }\r\n item.getProperties().getObjectProperties().setStatus(StatusType.PENDING);\r\n }\r\n \r\n // validate Metadata Records\r\n checkMetadataRecords(item);\r\n }",
"public void validate() throws org.apache.thrift.TException {\n if (entity != null) {\r\n entity.validate();\r\n }\r\n }",
"@Override\n public void validate(StudentiEntity entity){\n List<String> errorMessages = new ArrayList<>();\n if(entity.getID() < 0) errorMessages.add(\"Invalid ID\");\n if(entity.getNume().equals(\"\")) errorMessages.add(\"Invalid name\");\n if(entity.getEmail().equals(\"\")) errorMessages.add(\"Invalid email\");\n if(entity.getGrupa() < 0) errorMessages.add(\"Invalid grupa\");\n\n if(errorMessages.size() > 0) throw new ValidationException(errorMessages);\n }",
"@Test\n public void checkValidEntity() {\n cleanEntity0();\n entity0 = EntityUtil.getSampleRole();\n final Set<ConstraintViolation<Object>> cv = PersistenceValidation.validate(entity0);\n assertTrue(cv.isEmpty());\n }",
"@Override\r\n\tpublic void validateEntity(TableEntity entity, EntityEvent event) throws InvalidModelException, NotFoundException,\r\n\t\t\tDatastoreException, UnauthorizedException {\n\t\tif(EventType.CREATE == event.getType() || EventType.UPDATE == event.getType() || EventType.NEW_VERSION == event.getType()){\r\n\t\t\tboolean isNew = false;\r\n\t\t\tif(EventType.CREATE == event.getType()){\r\n\t\t\t\tisNew = true;\r\n\t\t\t}\r\n\t\t\tList<String> columnIds = entity.getColumnIds();\r\n\t\t\t// Bind the entity to these columns\r\n\t\t\tcolumnModelManager.bindColumnToObject(event.getUserInfo(), columnIds, entity.getId(), isNew);\r\n\t\t}\t\r\n\t}",
"@Override\n\tprotected List<Message> validateInsert(SecUser entity) {\n\t\treturn null;\n\t}",
"protected void validateEntity()\n {\n super.validateEntity();\n \n Date startDate = getStartDate();\n Date endDate = getEndDate();\n \n validateStartDate(startDate);\n validateEndDate(endDate);\n\n // We validate the following here instead of from within an attribute because\n // we need to make sure that both values are set before we perform the test.\n\n if (endDate != null)\n {\n // Note that we want to truncate these values to allow for the possibility\n // that we're trying to set them to be the same day. Calling \n // dateValue( ) does not include time. Were we to want the time element,\n // we would call timestampValue(). Finally, whenever comparing jbo\n // Date objects, we have to convert to long values.\n \n long endDateLong = endDate.dateValue().getTime();\n\n // We can assume we have a Start Date or the validation of this \n // value would have thrown an exception.\n \n if (endDateLong < startDate.dateValue().getTime())\n {\n throw new OARowValException(OARowValException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(),\n getPrimaryKey(),\n \"AK\", // Message product short name\n \"FWK_TBX_T_START_END_BAD\"); // Message name\n } \n } \n \n }",
"E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;",
"private void validateCreateAccountRequest(CreateUserAccountRequest request) {\n if (isNullOrEmpty(request.getOwnerUsername())\n || isNullOrEmpty(request.getOwnerEmail())\n || isNull(request.getOwnerAge())) {\n throw new CommonBadRequestException(msgSource.ERR001); //err001=Dane wymagane do realizacji żądania są niekompletne.\n }\n if (isIncorrectEmail(request.getOwnerEmail())) {\n throw new CommonBadRequestException(msgSource.ERR002); //Podaj poprawny adres e-mail.\n }\n if (isIncorrectAge(request.getOwnerAge())) {\n throw new CommonBadRequestException(msgSource.ERR003); //Wiek powinien mieścić się w zakresie od 1 do 100.\n }\n }",
"@Override\r\n\tpublic void validateIntegrityConstraint() {\n\t\tvalidatorEngine.validate(entity);\r\n\t}",
"@Override\n public void validateEntity() {\n if ((Strings.isNullOrEmpty(this.getIdentity()) &&\n Strings.isNullOrEmpty(this.getFileSystemPath())) ||\n Strings.isNullOrEmpty(this.getSourceId())) {\n throw new IllegalArgumentException(\n \"Either the Entity Id or file system path used\" +\n \" to generate the id must be present along with the source id\");\n }\n }",
"@Override\n protected void validaCampos(ArquivoLoteVO entity) {\n\n }",
"void create(T entity) throws Exception;",
"@PostMapping(consumes = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<?> create(@Validated({UserReqDTO.New.class}) @RequestBody UserReqDTO userDTO) {\n log.info(\"Create user {}\", userDTO);\n return new ResponseEntity<>(service.create(userDTO), HttpStatus.CREATED);\n }",
"@Override\n protected void validateSave(Fornecedor post) {\n\n }",
"@Override\r\n public boolean validate() {\n return true;\r\n }",
"@PostMapping(\"\")\n public ResponseEntity<Post> createPost(@Valid @RequestBody Post post) {\n return ResponseEntity.status(HttpStatus.CREATED)\n .body(postService.createPost(post));\n }",
"private static void validateEntity(AdminOffice entity) throws ValidationException {\n\t\t//Validator.validateStringField(\"officeName\", entity.getOfficeName(), 55, true);\n\t\t//Validator.validateStringField(\"phone\", entity.getPhone(), 12, false);\t\t\n\t}",
"@Override\r\n public boolean create(Person person) {\n return false;\r\n }",
"Entity createEntity();",
"E create(E entity);",
"E create(E entity);",
"public abstract boolean create(T entity) throws SQLException;",
"@PostMapping(\"/document-entities\")\n public ResponseEntity<DocumentEntityDTO> createDocumentEntity(@Valid @RequestBody DocumentEntityDTO documentEntityDTO) throws URISyntaxException {\n log.debug(\"REST request to save DocumentEntity : {}\", documentEntityDTO);\n if (documentEntityDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new documentEntity cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n DocumentEntityDTO result = documentEntityService.save(documentEntityDTO);\n return ResponseEntity.created(new URI(\"/api/document-entities/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public boolean create(ModelObject obj);",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n \n }",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n\n\t}",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n\n\t}",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n\n\t}",
"private final void validateBeforeTransactionSave() throws NSValidation.ValidationException {\n\n\t}",
"protected void validate(String uuid, B bean, boolean isNew) throws InvalidDataException {\n // Empty\n }",
"@Override\n public boolean create(Revue objet) {\n return false;\n }",
"public void validateForSave() throws NSValidation.ValidationException {\n\t\tvalidateObjectMetier();\n\t\tvalidateBeforeTransactionSave();\n\t\tsuper.validateForSave();\n\n\t}",
"public void validateForSave() throws NSValidation.ValidationException {\n\t\tvalidateObjectMetier();\n\t\tvalidateBeforeTransactionSave();\n\t\tsuper.validateForSave();\n\n\t}",
"public void validateForSave() throws NSValidation.ValidationException {\n\t\tvalidateObjectMetier();\n\t\tvalidateBeforeTransactionSave();\n\t\tsuper.validateForSave();\n\n\t}",
"@POST\n public Response create(EvenementDto evenementDto) {\n DataAccess dataAccess = DataAccess.begin();\n EvenementEntity evenementEntity = EvenementEntity.convertFromEvenementDto(evenementDto);\n\n System.out.println(evenementDto.toString());\n System.out.println(evenementEntity.toString());\n\n if (evenementDto.getNom() == null) {\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"name not specified\\n\").build();\n }\n else if(evenementDto.getDate() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"date not specified\\n\").build();\n }\n else if(evenementDto.getHeure() == null){\n return Response.status(Response.Status.NOT_ACCEPTABLE).entity(\"heure not specified\\n\").build();\n }\n\n long id = dataAccess.createEvent(evenementEntity);\n URI instanceURI = uriInfo.getAbsolutePathBuilder().path(\"\" + id).build();\n dataAccess.closeConnection(true);\n return Response.created(instanceURI).status(201).entity(evenementDto).location(instanceURI).build(); // .created(instanceURI).build();\n\n }",
"EntityAddInfo validateAddrAndSaveEntity(Record inputRecord, boolean shouldSaveActivityHist);",
"@Valid\n\tvoid create(Price Price);",
"@Override\r\n\tpublic void validate() {\n\t\t\r\n\t}",
"public EmailValidation create(EmailValidation user);",
"@Override\n public ResponseEntity createEmployee(@Valid Employee employeeRequest) {\n Employee savedemployee = employeeService.create(employeeRequest);\n URI location= ServletUriComponentsBuilder.fromCurrentRequest().path(\"/{id}\").buildAndExpand(savedemployee.getId()).toUri();\n return ResponseEntity.created(location).build();\n\n }",
"@Override\r\n public void validate() {\r\n }",
"@Override\n public final boolean create(T toCreate) {\n if (toCreate == null) {\n throw new IllegalArgumentException(\"Argument cannot be null\");\n }\n return addRecord(toCreate);\n }",
"void validate(T entity) throws ValidatorException;",
"@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean validate() {\n\t\treturn true;\r\n\t}",
"private void validate() throws FlightCreationException {\n validateNotNull(\"number\", number);\n validateNotNull(\"company name\", companyName);\n validateNotNull(\"aircraft\", aircraft);\n validateNotNull(\"pilot\", pilot);\n validateNotNull(\"origin\", origin);\n validateNotNull(\"destination\", destination);\n validateNotNull(\"departure time\", scheduledDepartureTime);\n\n if (scheduledDepartureTime.isPast()) {\n throw new FlightCreationException(\"The departure time cannot be in the past\");\n }\n\n if (origin.equals(destination)) {\n throw new FlightCreationException(\"The origin and destination cannot be the same\");\n }\n }",
"void create(E entity);",
"public ResultadoDTO crearUsuario(UsuarioDTO UsuarioDTO)throws EntityExistsException, IllegalArgumentException;",
"void create(T entity);",
"default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }",
"public void assertValid(adamant.global.v1.CreatePolicyResponse proto, io.envoyproxy.pgv.ValidatorIndex index) throws io.envoyproxy.pgv.ValidationException {\n\n\t\n\t}",
"public void validateCreate(NocRequest nocRequest, Object mdmsData) {\n\t\tmdmsValidator.validateMdmsData(nocRequest, mdmsData);\n\t\tif (!ObjectUtils.isEmpty(nocRequest.getNoc().getDocuments())) {\n\t\t\tvalidateAttachedDocumentTypes(nocRequest.getNoc(), mdmsData);\n\t\t\tvalidateDuplicateDocuments(nocRequest.getNoc());\n\t\t}\n\t}",
"@PostMapping\n @ResponseStatus(HttpStatus.CREATED)\n public UserResponse createUser(@Valid @RequestBody CreateUserRequest createUser) {\n return userMapper.toUserResponse(\n userService.createUser(\n userMapper.toDto(createUser)\n )\n );\n }",
"@Override\n\tpublic void validate()\n\t{\n\n\t}",
"@Test\n public void createSchedule_whenModelIsValid_successfullyCreated() throws CreateException {\n\n SportCenter sportCenter = sportCenter = this.modelMapper\n .map(validSportCenterServiceModel1, SportCenter.class);\n SportCenter savedSportCenter = this.sportCenterRepository.saveAndFlush(sportCenter);\n SportCenterServiceModel sportCenterServiceModel = this.modelMapper\n .map(savedSportCenter, SportCenterServiceModel.class);\n ScheduleServiceModel actual = this.scheduleService\n .createSchedule(sportCenterServiceModel, \"11\", \"11\", \"2011\");\n ScheduleServiceModel expected = this.modelMapper\n .map(this.scheduleRepository.findAll().get(0), ScheduleServiceModel.class);\n\n assertEquals(expected.getId(), actual.getId());\n assertEquals(expected.getDay(), actual.getDay());\n assertEquals(expected.getMonth(), actual.getMonth());\n assertEquals(expected.getYear(), actual.getYear());\n }",
"@Override\n\tprotected void check() throws SiDCException, Exception {\n\t\tif (entity == null) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of request.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getStatus())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of status.\");\n\t\t}\n\t\tif (StringUtils.isBlank(entity.getLangcode())) {\n\t\t\tthrow new SiDCException(APIStatus.ILLEGAL_ARGUMENT, \"illegal of lang code.\");\n\t\t}\n\t}",
"@PostMapping\n public User addUser(@Validated(value = Create.class) @RequestBody User user) {\n try {\n return userService.addUser(user);\n }catch (UserIdAlreadyExistsException exception){\n throw new UserIdAlreadyExistsException(\"User Id Already Exists\");\n }\n }",
"protected abstract ENTITY createEntity();",
"@Override\n\tpublic void validate() {\n\t}",
"@Override\n public void validate() throws ValidationExceptions {\n ValidationExceptions errors = null;\n if (getState().getState() == EEntityState.Unknown) {\n errors = ValidationExceptions.add(new ValidationException(\n String.format(\"Entity State is Unknown : [id=%s]\",\n getKey().toString())), errors);\n }\n errors = validate(errors);\n\n if (errors != null) {\n getState().setError(errors);\n throw errors;\n }\n }",
"@Override\r\n public void createNewEntity(String entityName) {\n\r\n }",
"@PostMapping(\"/nominees\")\n @Timed\n public ResponseEntity<NomineeDTO> createNominee(@Valid @RequestBody NomineeDTO nomineeDTO) throws URISyntaxException {\n log.debug(\"REST request to save Nominee : {}\", nomineeDTO);\n if (nomineeDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new nominee cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n NomineeDTO result = nomineeService.save(nomineeDTO);\n return ResponseEntity.created(new URI(\"/api/nominees/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public boolean validate(){\n return true;\n }",
"private void validateAndSave() {\n try {\n binder.writeBean(user);\n fireEvent(new SaveEvent(this, user));\n } catch (ValidationException e) {\n e.printStackTrace();\n }catch (DataIntegrityViolationException e){\n e.printStackTrace();\n Notification.show(\" Användarnamn används redan, försök med en ny.\",\n 2000, Notification.Position.MIDDLE ).addThemeVariants(NotificationVariant.LUMO_ERROR);\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (stampedeId != null) {\n stampedeId.validate();\n }\n if (runId != null) {\n runId.validate();\n }\n }",
"public void validate() {}",
"public UserEntity create(String userId) throws CreateException;",
"@Override\r\n\tprotected void validate() {\n\t}",
"public EntityAlreadyExistsException() {\n\t\tsuper(\"exception.entity.already.exists\");\n\t}",
"CreateResponse create(@NonNull CreateRequest request);",
"public boolean isValid() {\n return _id != null && !_id.isEmpty() &&\n _name != null && !_name.isEmpty() &&\n _created != null && !_created.isEmpty();\n }",
"@RequestMapping(method = RequestMethod.POST)\r\n\t@ResponseBody\r\n\t@Transactional\r\n\tpublic Object create(@RequestBody Model model) {\r\n\t\ttry {\r\n\t\t\tgetService().create(model);\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Create exception for \" + model, e);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"void create(Student entity);",
"public abstract void validate () throws ModelValidationException;",
"@Test\n\tpublic void testValidate() throws Exception {\n\t\tSystem.out.println(\"validate\");\n\t\tso.validate(entity);\n\t}",
"public void shouldCreate() {\n }",
"@Override\n public Validation create(Validation value) {\n return null;\n }",
"protected abstract EntityBase createEntity() throws Exception;",
"T createEntity();",
"@Override\n protected Result validate() {\n return successful(this);\n }",
"@Override\n @JsonIgnore\n public void validateRequest(Map<String, Object> map) throws EntityError {\n }",
"@Override\n\t\tpublic boolean isValid() {\n\t\t\treturn false;\n\t\t}",
"@Override\r\n public void validate() {\n\r\n }",
"ValidationResponse validate();",
"@RequestMapping(value=\"create\", method=RequestMethod.POST,\n\t\t\t\tconsumes=MediaType.APPLICATION_JSON_VALUE)\n\t\t@ResponseBody // do not redirect/forward.. rather write to response\n\t\tpublic ResponseEntity<UserBean> create(@Valid @RequestBody UserBean user){\n\t\t\treturn new ResponseEntity<UserBean>(this.dao.save(user), HttpStatus.OK);\n\t\t}",
"protected boolean _isEventForSuccessfulCreate(final PersistenceOperationOKEvent opEvent) {\n\t\tPersistenceOperationOK opResult = opEvent.getResultAsOperationOK();\n\t\tboolean handle = _crudOperationOKEventFilter.hasTobeHandled(opEvent);\n\t\tif (!handle) return false;\n\t\n\t\treturn ((opResult.isCRUDOK()) \n\t\t\t && (opResult.as(CRUDOK.class).hasBeenCreated()));\t\t\t\t\t\t\t\t\t\t\t\t// it's a create event\n\t}",
"@Override\n @Modifying\n public ResponseEntity<GenericResponseDTO> createTask(TaskDTO taskDTO) {\n TaskEntity taskEntity = new TaskEntity();\n Optional<UserEntity> userEntity;\n try{\n userEntity = userRepository.findByIdUser(taskDTO.getIdUser());\n if(userEntity.isPresent()){\n taskEntity = itaskConverter.taskDtoToTaskEntity(taskDTO);\n taskRepository.save(taskEntity);\n return new ResponseEntity<>(GenericResponseDTO.builder()\n .message(\"tarea creada\")\n .objectResponse(taskDTO)\n .statusCode(HttpStatus.OK.value())\n .build(), HttpStatus.OK);\n }else{\n return new ResponseEntity<>(GenericResponseDTO.builder()\n .message(\"Error creando tarea no se encontro ningun usuario asociado\")\n .objectResponse(null)\n .statusCode(HttpStatus.BAD_REQUEST.value())\n .build(), HttpStatus.BAD_REQUEST);\n }\n }catch (Exception e){\n log.error(\"Algo fallo en la creacion de la tarea \" + e);\n return new ResponseEntity<>(GenericResponseDTO.builder()\n .message(\"Error creando tarea: \" + e.getMessage())\n .objectResponse(null)\n .statusCode(HttpStatus.BAD_REQUEST.value())\n .build(), HttpStatus.BAD_REQUEST);\n }\n\n }",
"@Override\n\tpublic boolean validate() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean validate() {\n\t\treturn false;\n\t}",
"public boolean isCreate() {\r\n\t\treturn controller.closedByCreate;\r\n\t}",
"public EntityBundleCreate() {}",
"void create(Feedback entity);",
"protected void validate() {\n // no op\n }"
]
| [
"0.7510596",
"0.7188773",
"0.7083778",
"0.6740386",
"0.66734856",
"0.6573501",
"0.6466415",
"0.64661723",
"0.62855273",
"0.6202302",
"0.6174277",
"0.6170834",
"0.61363214",
"0.6119689",
"0.6073261",
"0.6058458",
"0.6036304",
"0.6028185",
"0.5969727",
"0.5960377",
"0.5924508",
"0.5920929",
"0.59134406",
"0.5895008",
"0.5888115",
"0.5882731",
"0.5868871",
"0.5868871",
"0.5864349",
"0.5861106",
"0.5854577",
"0.5852681",
"0.5847888",
"0.5847888",
"0.5847888",
"0.5847888",
"0.5847385",
"0.5846096",
"0.58451027",
"0.58451027",
"0.58451027",
"0.58263344",
"0.5822648",
"0.5822406",
"0.5812285",
"0.5801873",
"0.5792427",
"0.5782279",
"0.5768709",
"0.5761663",
"0.5755786",
"0.5755786",
"0.57535636",
"0.5751596",
"0.574943",
"0.574798",
"0.57377803",
"0.57335484",
"0.5709238",
"0.5702876",
"0.5698324",
"0.56903285",
"0.56771094",
"0.567606",
"0.5653385",
"0.565104",
"0.5645312",
"0.56445134",
"0.56406474",
"0.56376565",
"0.56372833",
"0.5636485",
"0.5629953",
"0.5621547",
"0.5614993",
"0.56138134",
"0.56129813",
"0.5612412",
"0.5606755",
"0.5605431",
"0.56024647",
"0.5597181",
"0.5596093",
"0.5595004",
"0.55944014",
"0.5592978",
"0.5589232",
"0.5587512",
"0.557245",
"0.5566253",
"0.5552977",
"0.55519485",
"0.55515224",
"0.5549145",
"0.5546092",
"0.5546092",
"0.5544531",
"0.5539193",
"0.5535917",
"0.55338687"
]
| 0.81998223 | 0 |
Getters y setters para cada tabla y por nodo. De esta forma evitamos condiciones de carrera en los distintos hilos | public boolean isTimerConvergencia() {
return timerConvergencia;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void preencherTabela() {\n\t\tList<Cidade> listCidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tObservableList<Cidade> oListCidade;\n\n\t\t// Determina os atributos que irão preencher as colunas\n\t\tcolCidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeCidades\"));\n\t\tcolEstado.setCellValueFactory(new PropertyValueFactory<>(\"nomeEstado\"));\n\t\tcolSigla.setCellValueFactory(new PropertyValueFactory<>(\"siglaEstado\"));\n\t\tcolCodigoCidade.setCellValueFactory(new PropertyValueFactory<>(\"idCidade\"));\n\t\tcolIdEstado.setCellValueFactory(new PropertyValueFactory<>(\"idEstado\"));\n\n\t\t// Instancia a lista de cidades e a DAO\n\t\tlistCidade = new ArrayList<Cidade>();\n\t\tcidadeDAO = new CidadeDAO();\n\n\t\t// Chama o metodo para selecionar todas as cidades e atribuir a lista\n\t\tlistCidade = cidadeDAO.selecionar();\n\n\t\t// Converte a lista de cidades em observablearray\n\t\toListCidade = FXCollections.observableArrayList(listCidade);\n\n\t\t// Adiciona a lista na tabela\n\t\ttblCidades.setItems(oListCidade);\n\t}",
"private void setDataModel() {\r\n tableData = new Object[resultSet.size()][classFields.length];\r\n // for every object from collection of objects\r\n for (int i = 0; i < resultSet.size(); i++) {\r\n // for every fields from class of object\r\n for (int j = 0; j < classFields.length; j++) {\r\n // for every method from class of object\r\n for (int x = 0; x < classMethods.length; x++) {\r\n // if class name start with 'get' and class method name\r\n // lenght is equal to field name + 3 (becouse of get word)\r\n if ((classMethods[x].getName().startsWith(\"get\"))\r\n && (classMethods[x].getName().length() == (classFields[j].getName().length() + 3))) {\r\n // if class name to lowercase ends with field name to\r\n // lower case\r\n if (classMethods[x].getName().toLowerCase().endsWith(classFields[j].getName().toLowerCase())) {\r\n // then try to invoke that getter\r\n try {\r\n tableData[i][j] = classMethods[x].invoke(resultSet.get(i));\r\n } catch (IllegalAccessException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (IllegalArgumentException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } catch (InvocationTargetException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n // This is alternative method for obtaining getter for field but\r\n // it will need public fields\r\n // try {\r\n // fieldValue = pola[j].get(resultSet.get(i));\r\n // data[i][j]=fieldValue;\r\n // } catch (IllegalArgumentException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // } catch (IllegalAccessException e) {\r\n // // TODO Auto-generated catch block\r\n // e.printStackTrace();\r\n // }\r\n }\r\n }\r\n }",
"public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }",
"private EstabelecimentoTable() {\n\t\t\t}",
"public TabellaModel() {\r\n lista = new Lista();\r\n elenco = new Vector<Persona>();\r\n elenco =lista.getElenco();\r\n values = new String[elenco.size()][3];\r\n Iterator<Persona> iterator = elenco.iterator();\r\n while (iterator.hasNext()) {\r\n\t\t\tfor (int i = 0; i < elenco.size(); i++) {\r\n\t\t\t\tpersona = new Persona();\r\n\t\t\t\tpersona = (Persona) iterator.next();\r\n\t\t\t\tvalues[i][0] = persona.getNome();\r\n\t\t\t\tvalues[i][1] = persona.getCognome();\r\n\t\t\t\tvalues[i][2] = persona.getTelefono();\t\r\n\t\t\t}\r\n\t\t}\r\n setDataVector(values, columnNames);\t\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic void funkcie() {\n\t\tTableColumn<Znamka, String> datumColumn = new TableColumn<>(\"Datum pisomky\");\n\t\tdatumColumn.setMinWidth(velkostPolickaX - 1);\n\t\tdatumColumn.setCellValueFactory(new PropertyValueFactory<>(\"datumS\"));\n\n\t\tTableColumn<Znamka, Double> hodnotaColumn = new TableColumn<Znamka, Double>(\"Hodnota\");\n\t\thodnotaColumn.setMinWidth(velkostPolickaX - 1);\n\t\thodnotaColumn.setCellValueFactory(new PropertyValueFactory<>(\"hodnotaS\"));\n\n\t\tTableColumn<Znamka, Double> maxHodnotaColumn = new TableColumn<Znamka, Double>(\"Max. Hodnota\");\n\t\tmaxHodnotaColumn.setMinWidth(velkostPolickaX - 1);\n\t\tmaxHodnotaColumn.setCellValueFactory(new PropertyValueFactory<>(\"maxHodnotaS\"));\n\n\t\ttabulkaZiak.getColumns().addAll(hodnotaColumn, maxHodnotaColumn, datumColumn);\n\n\t\tvyberPredmetov.setItems(((Ziak) aktualnyPouzivatel).vratMenoPredmetov());\n\t\tvyberPredmetov.getSelectionModel().selectedIndexProperty()\n\t\t\t\t.addListener((ChangeListener<Number>) (ov, value, new_value) -> {\n\t\t\t\t\ttabulkaZiak.setItems(((Ziak) aktualnyPouzivatel).vratZnamkyPredmetu((int) new_value));\n\t\t\t\t});\n\t\tvyberPredmetov.getSelectionModel().selectFirst();\n\t}",
"private void continuarInicializandoComponentes() {\n javax.swing.table.TableColumn columna1 = tablaDetalle.getColumn(\"Id\");\n columna1.setPreferredWidth(10); \n javax.swing.table.TableColumn columna2 = tablaDetalle.getColumn(\"Tipo\");\n columna2.setPreferredWidth(250); \n javax.swing.table.TableColumn columna3 = tablaDetalle.getColumn(\"Número\");\n columna3.setPreferredWidth(50); \n DefaultTableCellRenderer tcrr = new DefaultTableCellRenderer();\n tcrr.setHorizontalAlignment(SwingConstants.RIGHT);\n DefaultTableCellRenderer tcrc = new DefaultTableCellRenderer();\n tcrc.setHorizontalAlignment(SwingConstants.CENTER);\n tablaDetalle.getColumnModel().getColumn(0).setCellRenderer(tcrc);\n tablaDetalle.getColumnModel().getColumn(2).setCellRenderer(tcrr);\n tablaDetalle.getColumnModel().getColumn(3).setCellRenderer(tcrr);\n tablaDetalle.getColumnModel().getColumn(4).setCellRenderer(tcrr);\n }",
"public void fill_table()\n {\n Secante secante = new Secante(GraficaSecanteController.a, GraficaSecanteController.b, GraficaSecanteController.ep, FuncionController.e);\n list = secante.algoritmo();\n }",
"public datosTaller() {\n this.cedulaCliente = new int[100]; //Atributo de la clase\n this.nombreCliente = new String[100]; //Atributo de la clase\n this.compraRealizada = new String[100]; //Atributo de la clase\n this.valorCompra = new float[100]; //Atributo de la clase\n this.posicionActual = 0; //Inicializacion de la posicion en la que se almacenan datos\n }",
"public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }",
"private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Titular\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Dependente dependente : new NDependente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(dependente.getId() + \"\");\n linha.add(dependente.getNome());\n linha.add(dependente.getTelefone());\n linha.add(new NCliente().consultar(dependente.getCliente_id()).getNome());\n linha.add(dependente.getDataNascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblDependentes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }",
"public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }",
"private TableModel getTabelaProduto() {\r\n\t\tString[] columnNames = { \"id_c\", \"nome\", \"telefone\", \"endereco\", \"cidade\", \"estado\", \"email\", \"genero\" };\r\n\r\n\t\tObject[][] dados = new Object[listacliente.size()][8];\r\n\t\tfor (int i = 0; i < listacliente.size(); i++) {\r\n\t\t\tint x = 0;\r\n\t\t\tdados[i][x++] = listacliente.get(i).getId();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getNome();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getTelefone();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEndereco();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getCidade();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEstado().getNome();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getEmail();\r\n\t\t\tdados[i][x++] = listacliente.get(i).getGenero().getNome();\r\n\t\t}\r\n\r\n\t\treturn new DefaultTableModel(dados, columnNames);\r\n\r\n\t}",
"public void writeTable(){\n\n PersistenceUtil pu= PersistenceUtil.getInstance();\n EntityManagerFactory emf =pu.getEmf();\n EntityManager em = emf.createEntityManager();\n\n\n\n final Integer[] i = {0};\n\n tabela.getColumns().forEach((Consumer<TableColumn<Map, String>>) col -> {\n col.setCellValueFactory(new MapValueFactory<>(\"column\" + (i[0]).toString()));\n\n\n if(alegereBD!=\"0\")\n switch(alegereTabela){\n case \"Artists\":\n\n if(i[0]==0)\n col.setText(\"id\");\n if(i[0]==1)\n col.setText(\"Name\");\n if(i[0]==2)\n col.setText(\"Country\");\n if(i[0]==3)\n col.setText(\"\");\n if(i[0]==4)\n col.setText(\"\");\n textField1.disableProperty().setValue(false);\n textField2.disableProperty().setValue(false);\n\n textField3.disableProperty().setValue(true);\n textField4.disableProperty().setValue(true);\n textField5.disableProperty().setValue(true);\n\n\n\n\n break;\n case \"Albums\":\n if(i[0]==0)\n col.setText(\"id\");\n if(i[0]==1)\n col.setText(\"Name\");\n if(i[0]==2)\n col.setText(\"Genre\");\n if(i[0]==3)\n col.setText(\"Artist\");\n if(i[0]==4)\n col.setText(\"Realease\");\n\n textField3.disableProperty().setValue(false);\n textField4.disableProperty().setValue(false);\n textField5.disableProperty().setValue(false);\n\n textField1.disableProperty().setValue(true);\n textField2.disableProperty().setValue(true);\n\n\n break;\n case \"Genres\":\n if(i[0]==0)\n col.setText(\"id\");\n if(i[0]==1)\n col.setText(\"Name\");\n if(i[0]==2)\n col.setText(\"\");\n if(i[0]==3)\n col.setText(\"\");\n if(i[0]==4)\n col.setText(\"\");\n\n textField1.disableProperty().setValue(true);\n textField2.disableProperty().setValue(true);\n textField3.disableProperty().setValue(true);\n textField4.disableProperty().setValue(true);\n textField5.disableProperty().setValue(true);\n\n break;\n case \"Charts\":\n if(i[0]==0)\n col.setText(\"id\");\n if(i[0]==1)\n col.setText(\"Album\");\n if(i[0]==2)\n col.setText(\"Artist\");\n if(i[0]==3)\n col.setText(\"Position\");\n if(i[0]==4)\n col.setText(\"\");\n\n textField1.disableProperty().setValue(true);\n textField2.disableProperty().setValue(true);\n textField3.disableProperty().setValue(true);\n textField4.disableProperty().setValue(true);\n textField5.disableProperty().setValue(true);\n\n break;\n }\n\n\n System.out.println(i[0]);\n i[0]++;\n });\n\n\n\n tabela.setItems(generateDataInMap());\n }",
"@Override\n\tpublic void setColumnProperties() {\n\t\t\n\t\tcolPedidoCompraId.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n//\t\tcolPedidoCompraNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n\t\tcolStatus.setCellValueFactory(new PropertyValueFactory<>(\"status\"));\n//\t\tcolSaldoInicial.setCellValueFactory(new PropertyValueFactory<>(\"saldoinicial\"));\n//\t\tcolIE.setCellValueFactory(new PropertyValueFactory<>(\"inscricaoestadual\"));\n//\t\tcolEmail.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\n//\t\tcolTelefone.setCellValueFactory(new PropertyValueFactory<>(\"telefone\"));\n\t\tcolAtivo.setCellValueFactory(new PropertyValueFactory<>(\"ativo\"));\n//\t\t\n\t\tcolEdit.setCellFactory(cellFactory);\n\t\tcolDel.setCellFactory(cellFactorydel);\n\t\t\n\t\tsuper.setColumnProperties();\n\t}",
"private void populateFields() {\n pedidos = pdao.listaTodos();\n cCliente = new HashSet();\n cEstado = new HashSet();\n cCidade = new HashSet();\n cFornecedor = new HashSet();\n\n for (int i = 0; i < pedidos.size(); i++) {\n cCliente.add(pedidos.get(i).getCliente().getNome());\n cEstado.add(pedidos.get(i).getCliente().getEstado());\n cCidade.add(pedidos.get(i).getCliente().getCidade());\n for (int j = 0; j < pedidos.get(i).getItens().size(); j++) {\n cFornecedor.add(pedidos.get(i).getItens().get(j).getProduto().getFornecedor().getNome());\n }\n }\n\n clientes = new ArrayList<>(cCliente);\n fornecedores = new ArrayList<>(cFornecedor);\n\n Iterator i = cCliente.iterator();\n while (i.hasNext()) {\n jCBCliente.addItem(i.next());\n }\n\n i = null;\n i = cEstado.iterator();\n while (i.hasNext()) {\n jCBEstado.addItem(i.next());\n }\n\n i = null;\n i = cCidade.iterator();\n while (i.hasNext()) {\n jCBCidade.addItem(i.next());\n }\n i = null;\n i = cFornecedor.iterator();\n while (i.hasNext()) {\n jCBFornecedor.addItem(i.next());\n }\n\n }",
"public void initTable_Pesanan(){\n //Set cell TableView\n id_pesan.setCellValueFactory(new PropertyValueFactory<Order, String>(\"Id\"));\n jumlah_pesan.setCellValueFactory(new PropertyValueFactory<Order, String>(\"Jumlah\"));\n harga_pesan.setCellValueFactory(new PropertyValueFactory<Order, Integer>(\"Harga\"));\n catatan_pesan.setCellValueFactory(new PropertyValueFactory<Order, String>(\"Catatan\"));\n hapus_pesan.setCellValueFactory(new PropertyValueFactory<Order, Button>(\"Hapus\"));\n\n //Editable\n catatan_pesan.setCellFactory(TextFieldTableCell.forTableColumn());\n catatan_pesan.setOnEditCommit(event ->\n {\n event.getTableView().getItems().get(event.getTablePosition().getRow()).setCatatan(event.getNewValue());\n });\n tablePesanan.setEditable(true);\n //Set TableView\n tablePesanan.setItems(list_order);\n }",
"@Override\r\n\tprotected JSONArray getTablero() {\n\t\tJSONArray jsa = new JSONArray();\r\n\t\tfor (int i = 0; i < this.tableroDomino.size(); i++) {\r\n\t\t\tjsa.put(this.tableroDomino.get(i).toJSON());\r\n\t\t}\r\n\t\treturn jsa;\r\n\t}",
"private void carregarTabela() {\n try {\n\n Vector<String> cabecalho = new Vector();\n cabecalho.add(\"Id\");\n cabecalho.add(\"Nome\");\n cabecalho.add(\"CPF\");\n cabecalho.add(\"Telefone\");\n cabecalho.add(\"Endereço\");\n cabecalho.add(\"E-mail\");\n cabecalho.add(\"Data de Nascimento\");\n\n Vector detalhe = new Vector();\n\n for (Cliente cliente : new NCliente().listar()) {\n Vector<String> linha = new Vector();\n\n linha.add(cliente.getId() + \"\");\n linha.add(cliente.getNome());\n linha.add(cliente.getCpf());\n linha.add(cliente.getTelefone());\n linha.add(cliente.getEndereco());\n linha.add(cliente.getEmail());\n linha.add(cliente.getData_nascimento().toString());\n detalhe.add(linha);\n\n }\n\n tblClientes.setModel(new DefaultTableModel(detalhe, cabecalho));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }",
"public void rozmiarTablicy()\n {\n iloscWierszy = tabelaDanych.getRowCount();\n iloscKolumn = tabelaDanych.getColumnCount();\n tablica = new int[iloscWierszy][iloscKolumn];\n // wypelnienie tablicy pomocniczej z wartościami tabeli\n for (int i = 0; i < iloscWierszy ; i++)\n {\n for (int j = 0; j < iloscKolumn; j++)\n {\n tablica [i][j] = (int) tabelaDanych.getValueAt(i,j);\n }\n }\n }",
"public void cargarTablas(){\n ControladorEmpleados empleados= new ControladorEmpleados();\n ControladorProyectos proyectos= new ControladorProyectos();\n ControladorCasos casos= new ControladorCasos();\n actualizarListadoObservable(empleados.consultarEmpleadosAdminProyectos(ESTADO_ASIGNADO, TIPO_3),casos.consultarCasos(devolverUser()),casos.consultarTiposCaso());\n }",
"public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}",
"public DataTable getDtCuentaContable()\r\n/* 309: */ {\r\n/* 310:375 */ return this.dtCuentaContable;\r\n/* 311: */ }",
"private void configuraTablaDiscos() {\n\t\tthis.discos = FXCollections.observableArrayList();\n\t\tthis.discos.setAll(DiscDAO.List_All_Disc());\n\n\t\tcd1.setCellValueFactory(cellData -> {\n\t\t\treturn new SimpleObjectProperty<>(cellData.getValue().getName());\n\t\t});\n\n\t\tcd2.setCellValueFactory(cellData -> {\n\t\t\treturn new SimpleObjectProperty<>(cellData.getValue().getArtist().getName());\n\t\t});\n\n\t\ttablaDiscos.setEditable(true);\n\t\ttablaDiscos.getSelectionModel().selectedItemProperty()\n\t\t\t\t.addListener((observable, oldvalue, newvalue) -> showDiscos(newvalue));\n\t\ttablaDiscos.setItems(discos);\n\n\t\tshowDiscos(null);\n\n\t}",
"private void inicializarTablero() {\n for (int i = 0; i < casillas.length; i++) {\n for (int j = 0; j < casillas[i].length; j++) {\n casillas[i][j] = new Casilla();\n }\n }\n }",
"public Cotizaciones() throws DatatypeConfigurationException {\r\n initComponents();\r\n this.jDateChooser1.setDateFormatString(\"yyyy-MM-dd\");\r\n this.jDateChooser2.setDateFormatString(\"yyyy-MM-dd\");\r\n \r\n //Escondo la columna que tiene el objeto guardado.\r\n jTable1.getColumnModel().getColumn(4).setMinWidth(0);\r\n jTable1.getColumnModel().getColumn(4).setMaxWidth(0);\r\n jTable1.getColumnModel().getColumn(4).setWidth(0);\r\n DefaultTableCellRenderer Alinear = new DefaultTableCellRenderer();\r\n Alinear.setHorizontalAlignment(SwingConstants.LEFT);\r\n \r\n jTable1.getColumnModel().getColumn(0).setCellRenderer(Alinear);\r\n jTable1.getColumnModel().getColumn(1).setCellRenderer(Alinear);\r\n jTable1.getColumnModel().getColumn(2).setCellRenderer(Alinear);\r\n jTable1.getColumnModel().getColumn(3).setCellRenderer(Alinear);\r\n \r\n }",
"public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}",
"public AllTablesHaveColumnsRule() {\n super();\n\n this.countOp = this.addProperty(new ChoiceProperty<>(\n \"count_op\",\n ComparisonOperator.class, ComparisonOperator.GTE, ComparisonOperator.getChoices(),\n \"Počet sloupců\", \"Operátor pro ověření počtu řádků v tabulkách\", this.getGenericLabel()\n ));\n this.count = this.addProperty(new Property<>(\n \"count\",\n Integer.class, 1,\n \"...\", \"Všechny tabulky v databázi musí obsahovat zadaný počet sloupců\", this.getGenericLabel()\n ));\n\n this.columnType = this.addProperty(new ChoiceProperty<>(\n \"column_type\",\n ColumnType.class, ColumnType._ANY, ColumnType.getChoices(),\n \"Typ sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnName = this.addProperty(new Property<>(\n \"column_name\",\n String.class, \"\",\n \"Název sloupce\", \"Ověří, zda v tabulce existuje sloupec daného typu a názvu\", this.getGenericLabel()\n ));\n this.columnIsPrimary = this.addProperty(new ChoiceProperty<>(\n \"column_primary\",\n YesNoType.class, YesNoType._ANY, YesNoType.getChoices(),\n \"Primární klíč\", \"Ověří, zda je sloupec součástí primárního klíče\", this.getGenericLabel()\n ));\n }",
"private void UpdateTable() {\n\t\t\t\t\n\t\t\t}",
"public Table<Integer, Integer, String> getData();",
"public void setOrderPropertyColumns() {\n\t\t// Clave\n\t\tColumn<BmObject, String> codeColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getCode().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(codeColumn, SafeHtmlUtils.fromSafeConstant(\"Clave\"));\n\t\torderPropertyTaxGrid.setColumnWidth(codeColumn, 150, Unit.PX);\n\n\n\t\t\t// Descripcion\n\t\t\tColumn<BmObject, String> blockColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t@Override\n\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getDescription().toString();\n\t\t\t\t}\n\t\t\t};\n\t\t\torderPropertyTaxGrid.addColumn(blockColumn, SafeHtmlUtils.fromSafeConstant(\"Descripción\"));\n\t\t\torderPropertyTaxGrid.setColumnWidth(blockColumn, 150, Unit.PX);\n\n\t\t// Calle y numero\n\t\tColumn<BmObject, String> streetColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getBmoProperty().getStreet().toString() + \" \"\n\t\t\t\t\t\t+ \" #\" + ((BmoOrderPropertyTax)bmObject).getBmoProperty().getNumber().toString();\n\t\t\t}\n\t\t};\n\t\torderPropertyTaxGrid.addColumn(streetColumn, SafeHtmlUtils.fromSafeConstant(\"Calle y Número\"));\n\t\torderPropertyTaxGrid.setColumnWidth(streetColumn, 200, Unit.PX);\n\t\t\n\t\t//Meses\n\t\tColumn<BmObject, String> monthsColumn;\n\t\tmonthsColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t// con un asicrono obtener los meses de f.inicio y f.fin del pedido\n\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getQuantity().toString();\n//\t\t\t\treturn String.valueOf(months);\n\t\t\t}\n\t\t};\n//\t\tmonthsColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n//\t\t\t@Override\n//\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n//\t\t\t\tchangeOrderEquipmentDays(bmObject, value);\n//\t\t\t}\n//\t\t});\n\t\t\n\t\t\n\t\tSafeHtmlHeader daysHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t@Override \n\t\t\tpublic String asString() { \n\t\t\t\treturn \"<p style=\\\"text-center;\\\">Meses</p>\"; \n\t\t\t} \n\t\t}); \n\t\torderPropertyTaxGrid.addColumn(monthsColumn, daysHeader);\n\t\torderPropertyTaxGrid.setColumnWidth(monthsColumn, 50, Unit.PX);\n\t\tmonthsColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_LEFT);\n//\t}\n\t\t\n\t// Precio\n\t\t\tColumn<BmObject, String> priceColumn;\n\t\t\t\tif (bmoOrder.getStatus().equals(BmoOrder.STATUS_REVISION)) {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new EditTextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\tpriceColumn.setFieldUpdater(new FieldUpdater<BmObject, String>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void update(int index, BmObject bmObject, String value) {\n\t\t\t\t\t\t\tchangeOrderPropertyPrice(bmObject, value);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpriceColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\t\t\t\treturn ((BmoOrderPropertyTax)bmObject).getPrice().toString();\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tSafeHtmlHeader priceHeader = new SafeHtmlHeader(new SafeHtml() { \n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t\t@Override \n\t\t\t\t\tpublic String asString() { \n\t\t\t\t\t\treturn \"<p style=\\\"text-align:right;\\\">Precio</p>\"; \n\t\t\t\t\t} \n\t\t\t\t}); \n\t\t\t\torderPropertyTaxGrid.addColumn(priceColumn, priceHeader);\n\t\t\t\torderPropertyTaxGrid.setColumnWidth(priceColumn, 50, Unit.PX);\n\t\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\n//\t\t\t\t@Override\n//\t\t\t\tpublic String getValue(BmObject bmObject) {\n//\t\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat()\n//\t\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getPrice().toDouble());\n//\t\t\t\t\treturn (formatted);\n//\t\t\t\t}\n//\t\t\t};\n//\t\t\tpriceColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n//\t\t\torderPropertyTaxGrid.addColumn(priceColumn, SafeHtmlUtils.fromSafeConstant(\"Precio\"));\n\n\n\t\t// Total\n\t\tColumn<BmObject, String> totalColumn = new Column<BmObject, String>(new TextCell()) {\n\t\t\t@Override\n\t\t\tpublic String getValue(BmObject bmObject) {\n\t\t\t\tnumberFormat = NumberFormat.getCurrencyFormat();\n\t\t\t\tString formatted = numberFormat.format(((BmoOrderPropertyTax)bmObject).getAmount().toDouble());\n\t\t\t\treturn (formatted);\n\t\t\t}\n\t\t};\n\t\ttotalColumn.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);\n\t\torderPropertyTaxGrid.addColumn(totalColumn, SafeHtmlUtils.fromSafeConstant(\"Total\"));\n\t}",
"private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }",
"Tablero consultarTablero();",
"private void enlazarListadoTabla() {\n tblCursos.setItems(listaCursos);\n\n //Enlazar columnas con atributos\n clmNombre.setCellValueFactory(new PropertyValueFactory<Curso, String>(\"nombre\"));\n clmAmbito.setCellValueFactory(new PropertyValueFactory<Curso, String>(\"familiaProfesional\"));\n clmDuracion.setCellValueFactory(new PropertyValueFactory<Curso, Integer>(\"duracion\"));\n }",
"public void preencherTabela(){\n imagemEnunciado.setImage(imageDefault);\n pergunta.setImagemEnunciado(caminho);\n imagemResposta.setImage(imageDefault);\n pergunta.setImagemResposta(caminho);\n ///////////////////////////////\n perguntas = dao.read();\n if(perguntas != null){\n perguntasFormatadas = FXCollections.observableList(perguntas);\n\n tablePerguntas.setItems(perguntasFormatadas);\n }\n \n }",
"public int getDiasTrabajados() {\n return diasTrabajados;\n }",
"private void createTableBill(){\r\n //Se crean y definen las columnas de la Tabla\r\n TableColumn col_orden = new TableColumn(\"#\"); \r\n TableColumn col_city = new TableColumn(\"Ciudad\");\r\n TableColumn col_codigo = new TableColumn(\"Código\"); \r\n TableColumn col_cliente = new TableColumn(\"Cliente\"); \r\n TableColumn col_fac_nc = new TableColumn(\"FAC./NC.\"); \r\n TableColumn col_fecha = new TableColumn(\"Fecha\");\r\n TableColumn col_monto = new TableColumn(\"Monto\"); \r\n TableColumn col_anulada = new TableColumn(\"A\");\r\n \r\n //Se establece el ancho de cada columna\r\n this.objectWidth(col_orden , 25, 25); \r\n this.objectWidth(col_city , 90, 150); \r\n this.objectWidth(col_codigo , 86, 86); \r\n this.objectWidth(col_cliente , 165, 300); \r\n this.objectWidth(col_fac_nc , 70, 78); \r\n this.objectWidth(col_fecha , 68, 68); \r\n this.objectWidth(col_monto , 73, 73); \r\n this.objectWidth(col_anulada , 18, 18);\r\n\r\n col_fac_nc.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguip_det, String>() {\r\n @Override\r\n public void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n ret = getItem().toString();\r\n if (ret.equals(\"0\"))\r\n ret = \"\";\r\n } else {\r\n ret = \"\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n col_fecha.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguip_det, Date>() {\r\n @Override\r\n public void updateItem(Date item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if(!empty){\r\n setText(item.toLocalDate().toString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n else\r\n setText(null);\r\n }\r\n };\r\n }\r\n }); \r\n\r\n col_monto.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguid, Double>() {\r\n @Override\r\n public void updateItem(Double item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER_RIGHT);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n String gi = getItem().toString();\r\n NumberFormat df = DecimalFormat.getInstance();\r\n df.setMinimumFractionDigits(2);\r\n df.setRoundingMode(RoundingMode.DOWN);\r\n\r\n ret = df.format(Double.parseDouble(gi));\r\n } else {\r\n ret = \"0,00\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n col_anulada.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguid, Integer>() {\r\n @Override\r\n public void updateItem(Integer item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n ret = getItem().toString();\r\n if (ret.equals(\"0\"))\r\n ret = \"\";\r\n\r\n setTextFill(isSelected() ? Color.WHITE :\r\n ret.equals(\"0\") ? Color.BLACK :\r\n ret.equals(\"1\") ? Color.RED : Color.GREEN);\r\n } else {\r\n ret = \"\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n //Se define la columna de la tabla con el nombre del atributo del objeto USUARIO correspondiente\r\n col_orden.setCellValueFactory( \r\n new PropertyValueFactory<>(\"orden\") );\r\n col_city.setCellValueFactory( \r\n new PropertyValueFactory<>(\"ciudad\") );\r\n col_codigo.setCellValueFactory( \r\n new PropertyValueFactory<>(\"codigo\") );\r\n col_cliente.setCellValueFactory( \r\n new PropertyValueFactory<>(\"cliente\") );\r\n col_fac_nc.setCellValueFactory( \r\n new PropertyValueFactory<>(\"numdocs\") );\r\n col_fecha.setCellValueFactory( \r\n new PropertyValueFactory<>(\"fecdoc\") );\r\n col_monto.setCellValueFactory( \r\n new PropertyValueFactory<>(\"monto\") );\r\n col_anulada.setCellValueFactory( \r\n new PropertyValueFactory<>(\"anulada\") );\r\n \r\n //Se Asigna ordenadamente las columnas de la tabla\r\n tb_factura.getColumns().addAll(\r\n col_orden, col_city, col_codigo, col_cliente, col_fac_nc, col_fecha, \r\n col_monto, col_anulada \r\n ); \r\n \r\n //Se Asigna menu contextual \r\n tb_factura.setRowFactory((TableView<Fxp_Archguid> tableView) -> {\r\n final TableRow<Fxp_Archguid> row = new TableRow<>();\r\n final ContextMenu contextMenu = new ContextMenu();\r\n final MenuItem removeMenuItem = new MenuItem(\"Anular Factura\");\r\n removeMenuItem.setOnAction((ActionEvent event) -> {\r\n switch (tipoOperacion){\r\n case 1:\r\n tb_factura.getItems().remove(tb_factura.getSelectionModel().getSelectedIndex());\r\n break;\r\n case 2:\r\n tb_factura.getItems().get(tb_factura.getSelectionModel().getSelectedIndex()).setAnulada(1);\r\n col_anulada.setVisible(false);\r\n col_anulada.setVisible(true);\r\n break;\r\n }\r\n });\r\n contextMenu.getItems().add(removeMenuItem);\r\n // Set context menu on row, but use a binding to make it only show for non-empty rows:\r\n row.contextMenuProperty().bind(\r\n Bindings.when(row.emptyProperty())\r\n .then((ContextMenu)null)\r\n .otherwise(contextMenu)\r\n );\r\n return row ; \r\n });\r\n \r\n //Se define el comportamiento de las teclas ARRIBA y ABAJO en la tabla\r\n EventHandler eh = new EventHandler<KeyEvent>(){\r\n @Override\r\n public void handle(KeyEvent ke){\r\n //Si fue presionado la tecla ARRIBA o ABAJO\r\n if (ke.getCode().equals(KeyCode.UP) || ke.getCode().equals(KeyCode.DOWN)){ \r\n //Selecciona la FILA enfocada\r\n selectedRowInvoice();\r\n }\r\n }\r\n };\r\n //Se Asigna el comportamiento para que se ejecute cuando se suelta una tecla\r\n tb_factura.setOnKeyReleased(eh); \r\n }",
"private void establecerTablaPlatillos() {\n Object[] columnas = {\"Platillo\", \"Cantidad\", \"Costo\"};\n Object[][] modelo = new Object[platillosAVender.size()][3];\n int x = 0;\n\n for (VentaPlatillo ventaPlatillo : platillosAVender) {\n\n modelo[x][0] = ventaPlatillo.getPlatillo().getNombre();\n modelo[x][1] = ventaPlatillo.getCantidad();\n modelo[x][2] = ventaPlatillo.getCosto();\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaPlatillosAVender.setDefaultEditor(Object.class, null);\n tablaPlatillosAVender.setModel(new DefaultTableModel(modelo, columnas));\n tablaPlatillosAVender.setCellSelectionEnabled(false);\n tablaPlatillosAVender.setRowSelectionAllowed(false);\n txtTotal.setText(total + \"\");\n }",
"public void populateTreeTable() {\n root = new DefaultTreeNode(\"root\", null);\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n String sqlMenu = \"SELECT o from Tblobjeto o WHERE o.tipoObjeto LIKE 'menu' ORDER BY o.idObjeto\";\n menus = session.createQuery(sqlMenu).list();\n\n for (Tblobjeto mnu : menus) {\n TreeNode nodeMenu = new DefaultTreeNode(mnu, root);\n nodes.add(nodeMenu);\n\n Criteria cMenu = session.createCriteria(Tblobjeto.class);\n cMenu.add(Restrictions.eq(\"tblobjeto\", mnu));\n subMenus = (List<Tblobjeto>) cMenu.list();\n\n for (Tblobjeto smnu : subMenus) {\n TreeNode nodeSubMenu = new DefaultTreeNode(smnu, nodeMenu);\n nodes.add(nodeSubMenu);\n\n Criteria cSubMenu = session.createCriteria(Tblobjeto.class);\n cSubMenu.add(Restrictions.eq(\"tblobjeto\", smnu));\n acciones = (List<Tblobjeto>) cSubMenu.list();\n\n for (Tblobjeto ac : acciones) {\n nodes.add(new DefaultTreeNode(ac, nodeSubMenu));\n }\n }\n }\n } catch (HibernateException e) {\n logger.throwing(getClass().getName(), \"ObjetosBean\", e);\n } finally {\n session.close();\n }\n }",
"public interface Table\n extends Tabular\n{\n /** @return the names of the columns in this table or an empty list if no columns have been defined, never null */\n List<String> getColumns();\n\n /**\n * Define the name of a column\n *\n * @param index the position in the header starting with 0\n * @param name the name to be used for this column\n * @return this to allow chaining\n */\n Table setColumn(int index, String name);\n\n /**\n * Determine the name of a column if the position is known.\n *\n * @param index the position in the header starting with 0\n * @return the column name at the given position, null if unknown\n */\n String getColumn(int index);\n\n /**\n * Determine the index of a column if the name is known.\n *\n * @param column the case insensitive name of the respective column\n * @return the index of the column in the headings, -1 if the column is unknown\n */\n int indexOf(String column);\n\n /**\n * Retrieve the value of the given row and column\n *\n * If the row is out of bounds or the column is unknown will simply return <code>null</code> to indicate that no value\n * has been set.\n *\n * @param column the column name in the table\n * @param row the row number in the table starting with 0\n * @return the associated value of that cell, can be null\n */\n\n String getValue(String column, int row);\n\n /**\n * Retrieve the configuration parameters of this table.\n *\n * As there can be many implementations of a table and these implementations are configured in a different manner,\n * this is the place where these parameters can be retrieved in a uniform manner and passed to other layers, e.g. to\n * configure appropriate writers and readers or simply to setup the respective factories.\n *\n * @return the not-null list of (key, value) pairs that configure this particular table\n */\n Map<String, String> getParameters();\n}",
"private ArrayList<FornecedorModelo> iniciaTabela() {\n int i;\n DefaultTableModel model=(DefaultTableModel)tblFornecedor.getModel();\n // atribui 0 linhas à coluna\n model.setNumRows(0);\n // atribui um tamanho fixo a coluna codigo\n tblFornecedor.getColumnModel().getColumn(0).setPreferredWidth(2);\n ArrayList<FornecedorModelo> listaFornecedores = new ArrayList<FornecedorModelo>();\n listaFornecedores = new FornecedorControle().listarFornecedor();\n //adiciona alunos as tabelas\n for (i=0;i<=listaFornecedores.size()-1;i++){\n model.addRow(\n new Object[]{\n listaFornecedores.get(i).getCodFornecedor(),\n listaFornecedores.get(i).getNomeFantasia(),\n listaFornecedores.get(i).getRazaoSocial(),\n listaFornecedores.get(i).getEndereco(),\n listaFornecedores.get(i).getEmail(),\n listaFornecedores.get(i).getTelefone(),\n listaFornecedores.get(i).getCnpj(),\n Boolean.FALSE\n }\n );\n }\n return listaFornecedores;\n }",
"private void srediTabelu() {\n\n mtu = (ModelTabeleUlica) jtblUlica.getModel();\n ArrayList<Ulica> ulice = kontrolor.Kontroler.getInstanca().vratiUlice();\n mtu.setLista(ulice);\n\n }",
"public listaAlumnos()\r\n\t{\r\n\t\tinicio = fin = null; \r\n\t}",
"private void llenarTabla() {\n\t\t// TODO Auto-generated method stub\n\t\tif (gestionando.equals(\"Empleado\")) {\n\t\t\ttry {\n\t\t\t\tObservableList<PersonaObservable> empleados = administradorDelegado.listarEmpleadosObservables();\n\t\t\t\ttable.setItems(empleados);\n\t\t\t\tcolumnCedula.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"cedula\"));\n\t\t\t\tcolumnNombre.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"nombre\"));\n\t\t\t\tcolumnApellidos.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"apellido\"));\n\t\t\t\tcolumnTelefono.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"telefono\"));\n\t\t\t\ttable.getColumns().setAll(columnCedula, columnNombre, columnApellidos, columnTelefono);\n\t\t\t\ttable.setPrefWidth(450);\n\t\t\t\ttable.setPrefHeight(300);\n\t\t\t\ttable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);\n\n\t\t\t\ttable.getSelectionModel().selectedIndexProperty().addListener(new RowSelectChangeListener());\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else if (gestionando.equals(\"Recolector\")) {\n\t\t\ttry {\n\t\t\t\tObservableList<PersonaObservable> recolectores = administradorDelegado.listarRecolectoresObservables();\n\t\t\t\ttable.setItems(recolectores);\n\t\t\t\tcolumnCedula.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"cedula\"));\n\t\t\t\tcolumnNombre.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"nombre\"));\n\t\t\t\tcolumnApellidos.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"apellido\"));\n\t\t\t\tcolumnTelefono.setCellValueFactory(new PropertyValueFactory<PersonaObservable, String>(\"telefono\"));\n\t\t\t\ttable.getColumns().setAll(columnCedula, columnNombre, columnApellidos, columnTelefono);\n\t\t\t\ttable.setPrefWidth(450);\n\t\t\t\ttable.setPrefHeight(300);\n\t\t\t\ttable.setColumnResizePolicy(TableView.CONSTRAINED_RESIZE_POLICY);\n\n\t\t\t\ttable.getSelectionModel().selectedIndexProperty().addListener(new RowSelectChangeListener());\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}",
"protected void dataTableleibie(int i) {\n\t\r\n}",
"Object getTables();",
"private void atualizarTabuleiro() throws Exception {\n JogoVelha jogo;\n \n // Recebe dados do jogo\n jogo = remoteApi.getJogo(this.idJogo);\n // Atualizar tabuleiro com o jogo recebido\n jButton11.setText(String.valueOf(jogo.getCelula(1, 1)));\n jButton12.setText(String.valueOf(jogo.getCelula(1, 2)));\n jButton13.setText(String.valueOf(jogo.getCelula(1, 3)));\n jButton21.setText(String.valueOf(jogo.getCelula(2, 1)));\n jButton22.setText(String.valueOf(jogo.getCelula(2, 2)));\n jButton23.setText(String.valueOf(jogo.getCelula(2, 3)));\n jButton31.setText(String.valueOf(jogo.getCelula(3, 1)));\n jButton32.setText(String.valueOf(jogo.getCelula(3, 2)));\n jButton33.setText(String.valueOf(jogo.getCelula(3, 3)));\n }",
"private DefaultTableModel getDatos3(){\n String folio = String.valueOf(venta.ns);\n //consulta sql\n String SQL_SELECT = \"SELECT p.Nombres,dv.Cantidad,dv.PrecioVenta FROM ventas v JOIN detalle_ventas dv ON v.IdVentas=dv.IdVentas JOIN producto p ON p.IdProducto=dv.IdProducto WHERE v.NumeroSerie = \"+folio+\"\";\n try {\n setTitutlos3();\n ps = con.getConnection().prepareStatement(SQL_SELECT);\n RS = ps.executeQuery();\n Object[] fila = new Object[3];\n while (RS.next()){\n fila[0] = RS.getString(1);\n fila[1] = RS.getInt(2);\n fila[2] = RS.getDouble(3);\n DT.addRow(fila);\n }\n //System.out.println(\"si hizo el desmadre\");\n } catch (SQLException e) {\n System.out.println(\"error en la tabla de ticket\");\n }\n \n return DT;\n \n }",
"public void setar_campos()\n {\n int setar = tblCliNome.getSelectedRow();\n txtCliId.setText(tblCliNome.getModel().getValueAt(setar, 0).toString());\n txtCliNome.setText(tblCliNome.getModel().getValueAt(setar, 1).toString());\n txtCliRua.setText(tblCliNome.getModel().getValueAt(setar, 2).toString());\n txtCliNumero.setText(tblCliNome.getModel().getValueAt(setar, 3).toString());\n txtCliComplemento.setText(tblCliNome.getModel().getValueAt(setar, 4).toString());\n txtCliBairro.setText(tblCliNome.getModel().getValueAt(setar, 5).toString());\n txtCliCidade.setText(tblCliNome.getModel().getValueAt(setar, 6).toString());\n txtCliUf.setText(tblCliNome.getModel().getValueAt(setar, 7).toString());\n txtCliFixo.setText(tblCliNome.getModel().getValueAt(setar, 8).toString());\n txtCliCel.setText(tblCliNome.getModel().getValueAt(setar, 9).toString());\n txtCliMail.setText(tblCliNome.getModel().getValueAt(setar, 10).toString());\n txtCliCep.setText(tblCliNome.getModel().getValueAt(setar, 11).toString());\n \n // A LINHA ABAIXO DESABILITA O BOTÃO ADICIONAR PARA QUE O CADASTRO NÃO SEJA DUPLICADO\n btnAdicionar.setEnabled(true);\n \n }",
"public DefaultTableModel buscarlotes() {\n \n String encabezados[]= {\"Nombre\",\"Codigo\",\"Lote\",\"Vencimiento\",\"Dias Restantes\"};\n Control.ControlLote c = new Control.ControlLote();\n List<Modelo.Lotes> lotes = null;\n \n try {\n lotes = c.buscarlote();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(AgregarStock.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n Long resta;//para saber cuanto queda de vencimiento\n java.util.Date fechaActual = new Date(); \n \n String [][] data = new String[lotes.size()][5];\n for (int i = 0; i < lotes.size(); i++) {\n \n resta=lotes.get(i).getVencimiento().getTime()-fechaActual.getTime();\n long dias = (resta / (1000 * 60 * 60 * 24))+1;\n \n \n data[i][0] = lotes.get(i).getNombre();\n data[i][1] = Long.toString(lotes.get(i).getCodigo());\n data[i][2] = lotes.get(i).getLote();\n data[i][3] = lotes.get(i).getVencimiento().toString();\n if(dias<1)\n data[i][4] = (\"Vencido\");\n else{\n data[i][4] = Long.toString(dias);\n }\n\n }\n\n jTable1.setDefaultRenderer (Object.class, new MiRender());\n \n return new DefaultTableModel(data,encabezados);\n }",
"public void cargarDatos() {\n \n if(drogasIncautadoList==null){\n return;\n }\n \n \n \n List<Droga> datos = drogasIncautadoList;\n\n Object[][] matriz = new Object[datos.size()][4];\n \n for (int i = 0; i < datos.size(); i++) {\n \n \n //System.out.println(s[0]);\n \n matriz[i][0] = datos.get(i).getTipoDroga();\n matriz[i][1] = datos.get(i).getKgDroga();\n matriz[i][2] = datos.get(i).getQuetesDroga();\n matriz[i][3] = datos.get(i).getDescripcion();\n \n }\n Object[][] data = matriz;\n String[] cabecera = {\"Tipo Droga\",\"KG\", \"Quetes\", \"Descripción\"};\n dtm = new DefaultTableModel(data, cabecera);\n tableDatos.setModel(dtm);\n }",
"public ComprasRealizadas() {\n initComponents();\n tablaCompraDefault = (DefaultTableModel) tablaCompra.getModel();//conveirto la tabla\n tablaComprasDefault = (DefaultTableModel) tablaCompras.getModel();\n }",
"static void setPropertiesFromGetters(TableEntity entity, ClientLogger logger) {\n Class<?> myClass = entity.getClass();\n\n // Do nothing if the entity is actually a `TableEntity` rather than a subclass\n if (myClass == TableEntity.class) {\n return;\n }\n\n for (Method m : myClass.getMethods()) {\n // Skip any non-getter methods\n if (m.getName().length() < 3\n || TABLE_ENTITY_METHODS.contains(m.getName())\n || (!m.getName().startsWith(\"get\") && !m.getName().startsWith(\"is\"))\n || m.getParameterTypes().length != 0\n || void.class.equals(m.getReturnType())) {\n continue;\n }\n\n // A method starting with `is` is only a getter if it returns a boolean\n if (m.getName().startsWith(\"is\") && m.getReturnType() != Boolean.class\n && m.getReturnType() != boolean.class) {\n continue;\n }\n\n // Remove the `get` or `is` prefix to get the name of the property\n int prefixLength = m.getName().startsWith(\"is\") ? 2 : 3;\n String propName = m.getName().substring(prefixLength);\n\n try {\n // Invoke the getter and store the value in the properties map\n entity.getProperties().put(propName, m.invoke(entity));\n } catch (ReflectiveOperationException | IllegalArgumentException e) {\n logger.logThrowableAsWarning(new ReflectiveOperationException(String.format(\n \"Failed to get property '%s' on type '%s'\", propName, myClass.getName()), e));\n }\n }\n }",
"private void createTable(){\n Object[][] data = new Object[0][8];\n int i = 0;\n for (Grupo grupo : etapa.getGrupos()) {\n Object[][] dataAux = new Object[data.length+1][8];\n System.arraycopy(data, 0, dataAux, 0, data.length);\n dataAux[i++] = new Object[]{grupo.getNum(),grupo.getAtletas().size(),\"Registar Valores\",\"Selecionar Vencedores\", \"Selecionar Atletas\"};\n data = dataAux.clone();\n }\n\n //COLUMN HEADERS\n String columnHeaders[]={\"Numero do Grupo\",\"Número de Atletas\",\"\",\"\",\"\"};\n\n tableEventos.setModel(new DefaultTableModel(\n data,columnHeaders\n ));\n //SET CUSTOM RENDERER TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(3).setCellRenderer(new ButtonRenderer());\n tableEventos.getColumnModel().getColumn(4).setCellRenderer(new ButtonRenderer());\n\n //SET CUSTOM EDITOR TO TEAMS COLUMN\n tableEventos.getColumnModel().getColumn(2).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(3).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n tableEventos.getColumnModel().getColumn(4).setCellEditor(new ButtonEditor(new JTextField(), this.etapa));\n\n }",
"public void cargarTitulos1() throws SQLException {\n\n tabla1.addColumn(\"CLAVE\");\n tabla1.addColumn(\"NOMBRE\");\n tabla1.addColumn(\"DIAS\");\n tabla1.addColumn(\"ESTATUS\");\n\n this.tbpercep.setModel(tabla1);\n\n TableColumnModel columnModel = tbpercep.getColumnModel();\n\n columnModel.getColumn(0).setPreferredWidth(15);\n columnModel.getColumn(1).setPreferredWidth(150);\n columnModel.getColumn(2).setPreferredWidth(50);\n columnModel.getColumn(3).setPreferredWidth(70);\n\n }",
"public int obtenerColumnas(){\n return COLUMNAS;\n }",
"private void initTableView() {\n // nastaveni sloupcu pro zobrazeni spravne hodnoty a korektniho datoveho typu\n this.colId.setCellValueFactory(cellData -> cellData.getValue().getPersonalIdProperty());\n this.colName.setCellValueFactory(cellData -> cellData.getValue().getDisplayNameProperty());\n this.colAge.setCellValueFactory(cellData -> cellData.getValue().getAgeProperty().asObject());\n this.colGender.setCellValueFactory(cellData -> cellData.getValue().getGenderProperty());\n this.colPrice.setCellValueFactory(cellData -> cellData.getValue().getPriceProperty().asObject());\n\n // nastaveni listu prvku tabulce\n this.offerTable.setItems(this.marketplace.getOfferList());\n\n // listener pro zjisteni, ktery prvek tabulky uzivatel oznacil a naplneni aktualni reference na vybrane dite\n this.offerTable.getSelectionModel().getSelectedCells().addListener(new ListChangeListener<TablePosition>() {\n\n @Override\n public void onChanged(Change<? extends TablePosition> change) {\n ObservableList selectedCells = offerTable.getSelectionModel().getSelectedCells();\n TablePosition tablePosition = (TablePosition) selectedCells.get(0);\n currentChild = marketplace.getOfferList().get(tablePosition.getRow());\n System.out.println(currentChild);\n updateUi();\n }\n });\n }",
"private TableModel getTableModelProduto() {\n\t\tString[] columnNames = { \"cod_p\", \"cod_barra\", \"categoria\", \"descricao\", \"unidade\", \"custo\", \"marge_lucro\" };\n\n\t\tObject[][] data = new Object[listaP.size()][7];\n\t\tfor (int i = 0; i < listaP.size(); i++) {\n\t\t\tint j = 0;\n\t\t\tdata[i][j++] = Long.valueOf(listaP.get(i).getCod());\n\t\t\tdata[i][j++] = listaP.get(i).getCodBarra();\n\t\t\tdata[i][j++] = listaP.get(i).getCategoria();\n\t\t\tdata[i][j++] = listaP.get(i).getDescricao();\n\t\t\tdata[i][j++] = listaP.get(i).getUnidade();\n\t\t\tdata[i][j++] = listaP.get(i).getCusto();\n\t\t\tdata[i][j++] = listaP.get(i).getMargenLucro();\n\t\t}\n\t\treturn new DefaultTableModel(data, columnNames);\n\t}",
"public int getIdAlumno() {\n return idAlumno;\n }",
"public DataTable getDtMotivoLlamadoAtencion()\r\n/* 134: */ {\r\n/* 135:140 */ return this.dtMotivoLlamadoAtencion;\r\n/* 136: */ }",
"private void inicializarTablero() {\r\n\t\t\r\n\t\tfor(int i = 0; i < filas; i++) {\r\n\t\t\tfor(int j = 0; j < columnas; j++) {\r\n\t\t\t\tsuperficie[i][j] = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}",
"public Ventas() {\n setIdVenta(1);\n setIdCliente(1);\n setFecha(new Date());\n setEstado(0); \n }",
"private void preencherTabelaVeiculoCarga() {\n\n ArrayList dados = new ArrayList();\n cargaDao = new CargaDao();\n Carga carga;\n String[] colunas = new String[]{\"ID\", \"DESCRICAO\", \"STATUS\"};\n\n try {\n final List<Object> listaCarga = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n\n if (listaCarga != null && listaCarga.size() > 0) {\n for (Object cargaAtual : listaCarga) {\n carga = (Carga) cargaAtual;\n dados.add(new Object[]{carga.getIdCarga(), carga.getDescricao(), carga.getStatus()});\n }\n }\n\n ModeloTabela modTabela = new ModeloTabela(dados, colunas);\n jTB_VeiculoCarga.setModel(modTabela);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setPreferredWidth(100);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setPreferredWidth(300);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setPreferredWidth(150);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setResizable(false);\n\n jTB_VeiculoCarga.getTableHeader().setReorderingAllowed(false);\n jTB_VeiculoCarga.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n jTB_VeiculoCarga.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n jTB_VeiculoCarga.addMouseListener(new MouseAdapter() {\n\n @Override\n public void mouseClicked(MouseEvent e) {\n try {\n List<Object> lista = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n cargaSelecionada = (Carga) lista.\n get(jTB_VeiculoCarga.convertRowIndexToModel(jTB_VeiculoCarga.getSelectedRow()));\n\n // if (veiculoDao.listarVeiculosAtivos().size() > 0 && veiculoDao.listarVeiculosAtivos() != null) {}\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(FormVeiculoCargas.this, \"Erro genérico1: \" + ex.getMessage());\n ex.printStackTrace(System.err);\n }\n }\n\n });\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Erro genérico2: \" + e.getMessage());\n }\n }",
"public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }",
"public Object getTablePelanggan() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void pintarTabla() {\r\n ArrayList<Corredor> listCorredors = gestion.getCorredores();\r\n TableModelCorredores modelo = new TableModelCorredores(listCorredors);\r\n jTableCorredores.setModel(modelo);\r\n TableRowSorter<TableModel> elQueOrdena = new TableRowSorter<>(modelo);\r\n jTableCorredores.setRowSorter(elQueOrdena);\r\n\r\n }",
"public void reloadTableCliente() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (lista.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Cliente object = lista.get(i);\n this.AddtoTableCliente(object);\n }\n\n }",
"public DefaultTableModel pedidosCocinero(){\r\n List<Pedido> lista =pedidos.listadosPedidosCocinero(GestionUsuarios.getInstance().getPersona());\r\n return Convertidor.pedidoToTableModel(lista); \r\n }",
"private void cargarTablaConPaquetes() {\n tcId.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"codigo\"));\n tcdescripcion.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"descripcion\"));\n tcDestino.setCellValueFactory(\n new PropertyValueFactory<Paquete, String>(\"destino\"));\n tcEntregado.setCellValueFactory(\n new PropertyValueFactory<Paquete, Boolean>(\"entregado\"));\n\n tbPaqueteria.setItems(data);\n tbPaqueteria.getSelectionModel().selectFirst();\n\n //TODO futura implementacion\n //setDobleClickFila();\n }",
"private void cargar(List<Personas> listaP) {\n int total= listaP.size();\n Object [][] tab = new Object [total][10];\n int i=0;\n Iterator iter = listaP.iterator();\n while (iter.hasNext()){\n Object objeto = iter.next();\n Personas pro = (Personas) objeto;\n\n tab[i][0]=pro.getLocalidadesid().getProvinciasId();\n tab[i][1]=pro.getLocalidadesid();\n tab[i][2]=pro.getCuilcuit();\n tab[i][3]=pro.getApellido();\n tab[i][4]=pro.getNombres();\n tab[i][5]=pro.getCalle();\n tab[i][6]=pro.getAltura();\n tab[i][7]=pro.getPiso();\n tab[i][8]=pro.getEmail();\n// if(pro.getEmpleados().equals(\"\")){\n tab[i][9]=\"Cliente\";\n // }else{\n // tab[i][7]=\"Empleado\";\n // }\n i++;\n }\njTable1 = new javax.swing.JTable();\n\njTable1.setModel(new javax.swing.table.DefaultTableModel(\ntab,\nnew String [] {\n \"Provincia\", \"Localidad\", \"DNI/Cuit\", \"Apellido\", \"Nombres\", \"Calle\", \"Altura\", \"Piso\", \"Email\", \"Tipo\"\n}\n));\n jScrollPane1.setViewportView(jTable1);\n }",
"public Tabla(int tip) {\n\t\tthis.sirinaTable = 20;\n\t\tthis.visinaTable = 20;\n\t\tthis.tip = tip;\n\t\tthis.tabla = new char[20][20];\n\t\tfor (int i = 0; i < this.visinaTable;i++) {\n\t\t\tfor (int j = 0; j < this.sirinaTable;j++) {\n\t\t\t\ttabla[i][j] = '.';\n\t\t\t}\n\t\t}\n\t\trezultat = 0;\n\t\tzmija = new ArrayList<Cvor>();\n\t\t\n\t\tif (tip == 2) {\n\t\t\tthis.dodajZidove();\n\t\t}\n\t\telse if(tip == 3) {\n\t\t\tthis.dodajPrepreke1();\n\t\t}\n\t\telse if(tip == 4) {\n\t\t\tthis.dodajPrepreke2();\n\t\t}\n\t\tthis.dodajZmijuPocetak();\n\t\tthis.dodajHranu();\n\t\tthis.smjer = 'd';\n\t}",
"@Override\n\tpublic ArregloDinamico<V> valueSet() {\n\t\tArregloDinamico<V> respuesta = new ArregloDinamico<V>(N);\n\t\tfor(int i = 0; i<M ; i++)\n\t\t{\n\t\t\tArregloDinamico<NodoTabla<K,V>> temporal = map.darElemento(i).getAll();\n\t\t\tfor(int j=0 ; j < temporal.size() ; j++)\n\t\t\t{\n\t\t\t\tNodoTabla<K,V> elemento = temporal.darElemento(j);\n\t\t\t\tif(elemento != null && elemento.darLlave() != null)\n\t\t\t\t\trespuesta.addLast(elemento.darValor());\t\n\t\t\t}\n\t\t}\n\t\treturn respuesta;\n\t}",
"public void datosIniciales() {\n try {\n nombre.setCellValueFactory(new PropertyValueFactory<>(\"nombre\"));\n subTipo.setCellValueFactory(new PropertyValueFactory<>(\"subTipo\"));\n tipo.setCellValueFactory(new PropertyValueFactory<>(\"tipo\"));\n editar.setCellValueFactory(new PropertyValueFactory<>(\"imagenEditar\"));\n listaSubTipoDAO = subTipoDAO.hacerConsulta();\n listaSubTipo = FXCollections.observableArrayList(listaSubTipoDAO);\n valoresSubtipo = new ListSpinnerValueFactory(listaSubTipo);\n spinnerSubtipo.setValueFactory(valoresSubtipo);\n\n puntuacion = new SpinnerValueFactory.IntegerSpinnerValueFactory(1, 5, 1, 1);\n\n editar.getStyleClass().add(\"cursorMano\");\n refrescarDatos();\n\n } catch (SQLException ex) {\n alarmaFalloSQL();\n }\n }",
"public void setAll(int IDCUENTACONTABLEIn,\r\n String DECOMPARENDOIn,\r\n String CODIGOCUENTAIn,\r\n String NOMBRECUENTAIn,\r\n int VIGENCIAINICIALIn,\r\n int VIGENCIAFINALIn,\r\n String FILTROPORFECHASIn,\r\n int IDTARIFAIn,\r\n int IDCONCEPTOIn,\r\n String NOMBRECONCEPTOIn,\r\n int IDITEMIn,\r\n double VALORPAGOIn,\r\n String FECHAPAGOIn,\r\n int VIGENCIAIn) {\r\n this.IDCUENTACONTABLE = IDCUENTACONTABLEIn;\r\n this.DECOMPARENDO = DECOMPARENDOIn;\r\n this.CODIGOCUENTA = CODIGOCUENTAIn;\r\n this.NOMBRECUENTA = NOMBRECUENTAIn;\r\n this.VIGENCIAINICIAL = VIGENCIAINICIALIn;\r\n this.VIGENCIAFINAL = VIGENCIAFINALIn;\r\n this.FILTROPORFECHAS = FILTROPORFECHASIn;\r\n this.IDTARIFA = IDTARIFAIn;\r\n this.IDCONCEPTO = IDCONCEPTOIn;\r\n this.NOMBRECONCEPTO = NOMBRECONCEPTOIn;\r\n this.IDITEM = IDITEMIn;\r\n this.VALORPAGO = VALORPAGOIn;\r\n this.FECHAPAGO = FECHAPAGOIn;\r\n this.VIGENCIA = VIGENCIAIn;\r\n }",
"public ValorPorUnidadLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess = new ValorPorUnidadDataAccess();\r\n\t\t\t\r\n\t\t\tthis.valorporunidads= new ArrayList<ValorPorUnidad>();\r\n\t\t\tthis.valorporunidad= new ValorPorUnidad();\r\n\t\t\t\r\n\t\t\tthis.valorporunidadObject=new Object();\r\n\t\t\tthis.valorporunidadsObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.valorporunidadDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.valorporunidadDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }",
"private Object getTable() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void updateTabela() {\n\n if (txBuscar.getText().isEmpty()) {\n ListaEmprestimosBEANs = new ControlerEmprestimos().listaEmprestimoss();\n } else {\n try {\n Integer buscar = Integer.parseInt(txBuscar.getText());\n ListaEmprestimosBEANs = new ArrayList<>();\n ListaEmprestimosBEANs.add(new ControlerEmprestimos().findEmprestimos(buscar));\n } catch (Exception e) {\n\n }\n }\n DefaultTableModel model = new DefaultTableModel(null, new String[]{\"ID\", \"Data de Saida\", \"Data Estimada do Retorno\", \"Data do Retorno\"});\n try {\n jTable1.setModel(model);\n String[] dados = new String[9];\n for (EmprestimosBEAN a : ListaEmprestimosBEANs) {\n dados[0] = String.valueOf(a.getId_emprestimo());\n dados[1] = a.getDtSaida().toString();\n dados[2] = a.getDtVolta().toString();\n dados[3] = a.getDtRetorno() == null ? \"\" : a.getDtRetorno().toString();\n model.addRow(dados);\n }\n } catch (Exception ex) {\n\n }\n\n }",
"public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }",
"public void construirTabla(String tipo) {\r\n\r\n\t\t\r\n\t\tif(tipo == \"lis\") {\r\n\t\t\tlistaPersonas = datarPersonas();\r\n\t\t} else if (tipo == \"bus\") {\r\n\t\t\tlistaPersonas = datarPersonasBusqueda();\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<String> titulosList=new ArrayList<>();\r\n\t\t\r\n\t\t//Estos son los encabezados de las columnas\r\n\t\t\r\n\t\ttitulosList.add(\"DNI\");\r\n\t\ttitulosList.add(\"NOMBRE\");\r\n\t\ttitulosList.add(\"APELLIDO\");\r\n\t\ttitulosList.add(\"CUENTA BANCARIA\");\r\n\t\ttitulosList.add(\"PASSWORD\");\r\n\t\ttitulosList.add(\"FECHA DE NACIMIENTO\");\r\n\t\ttitulosList.add(\"TELEFONO\");\r\n\t\ttitulosList.add(\"CORREO ELECTRONICO\");\r\n\t\ttitulosList.add(\"ROL\");\r\n\t\ttitulosList.add(\"Modificar\");\r\n\t\ttitulosList.add(\"Eliminar\"); \r\n\t\t\t\t\r\n\t\t//se asignan los tÃtulos de las columnas para enviarlas al constructor de la tabla\r\n\t\t\r\n\t\tString titulos[] = new String[titulosList.size()];\r\n\t\tfor (int i = 0; i < titulos.length; i++) {\r\n\t\t\ttitulos[i]=titulosList.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tObject[][] data = arrayDatos(titulosList);\r\n\t\tcrearTabla(titulos,data);\r\n\t\t\r\n\t}",
"public GestorDeConseptos() {\n initComponents();\n service=new InformeService(); \n m=new ConseptoTableModel();\n this.jTable1.setModel(m);\n cuentas=new Vector<ConseptoEnCuenta>();\n }",
"public void llenadoDeTablas() {\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Articulo\");\n modelo.addColumn(\"Fecha Ingreso\");\n modelo.addColumn(\"Nombre Articulo\");\n modelo.addColumn(\"Talla XS\");\n modelo.addColumn(\"Talla S\");\n modelo.addColumn(\"Talla M\");\n modelo.addColumn(\"Talla L\");\n modelo.addColumn(\"Talla XL\");\n modelo.addColumn(\"Color Articulo\");\n modelo.addColumn(\"Nombre Proveedor\");\n modelo.addColumn(\"Existencias\");\n\n RegistroArticuloDAO registroarcticuloDAO = new RegistroArticuloDAO();\n\n List<RegistroArticulo> registroarticulos = registroarcticuloDAO.select();\n TablaArticulo.setModel(modelo);\n String[] dato = new String[11];\n for (int i = 0; i < registroarticulos.size(); i++) {\n dato[0] = Integer.toString(registroarticulos.get(i).getPK_id_articulo());\n dato[1] = registroarticulos.get(i).getFecha_ingreso();\n dato[2] = registroarticulos.get(i).getNombre_articulo();\n dato[3] = registroarticulos.get(i).getTalla_articuloXS();\n dato[4] = registroarticulos.get(i).getTalla_articuloS();\n dato[5] = registroarticulos.get(i).getTalla_articuloM();\n dato[6] = registroarticulos.get(i).getTalla_articuloL();\n dato[7] = registroarticulos.get(i).getTalla_articuloXL();\n dato[8] = registroarticulos.get(i).getColor_articulo();\n dato[9] = registroarticulos.get(i).getNombre_proveedor();\n dato[10] = registroarticulos.get(i).getExistencia_articulo();\n\n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }\n }",
"public PersonaTreeTableView(String rutCliente, String nomCliente, String dineroTotal, String numeroCuent) {\n this.rutCliente = new SimpleStringProperty(rutCliente);\n this.nomCliente = new SimpleStringProperty(nomCliente);\n this.dineroTotal = new SimpleStringProperty(dineroTotal);\n this.numeroCuent = new SimpleStringProperty(numeroCuent);\n }",
"static void obiektyTablice() {\n\n Object obiektString = new String();\n Object obiektObiekt = new Object();\n Integer[] obiektInt = new Integer[3];\n int[] tablicaInt = new int[5];\n\n obiektString = \"tekstStringa\";\n obiektObiekt = \"tekstObiektu\";\n obiektInt[2] = 3;\n tablicaInt[2] = 2;\n int wielkoscTablicy = tablicaInt.length;\n System.out.println(obiektObiekt + \"\\n\" + obiektString + \"\\n\" + obiektInt[2] + \"\\n\" + tablicaInt[3] + \"\\n\"\n + wielkoscTablicy);\n\n // modulo mniejszej przez większą = reszta*większa\n int b = 7 % 12;\n System.out.println(\"Modulo = \" + b);\n }",
"@Override\r\n @FXML public void initialize(URL url, ResourceBundle rb) {\n // chargement des donnes dans le tableau CLASSE\r\n //**********************************************************************\r\n \r\n colidclasse.setCellValueFactory(new PropertyValueFactory<>(\"idclasse\"));\r\n colfiliereclasse.setCellValueFactory(new PropertyValueFactory<>(\"filiere\"));\r\n colanneeclasse.setCellValueFactory(new PropertyValueFactory<>(\"annee\"));\r\n \r\n \r\n try {\r\n leadDatabaseDataClasse();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n //**********************************************************************\r\n // chargement des donnes dans le tableau ETUDIANT\r\n //**********************************************************************\r\n \r\n colidentifiant.setCellValueFactory(new PropertyValueFactory<>(\"idindividu\"));\r\n colnom.setCellValueFactory(new PropertyValueFactory<>(\"Nom\"));\r\n colprenom.setCellValueFactory(new PropertyValueFactory<>(\"Prenom\"));\r\n coladresse.setCellValueFactory(new PropertyValueFactory<>(\"Adresse\"));\r\n colnumerotel.setCellValueFactory(new PropertyValueFactory<>(\"numeroTel\"));\r\n colmail.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\r\n colclasse.setCellValueFactory(new PropertyValueFactory<>(\"Classe\"));\r\n \r\n try {\r\n leadDatabaseDataEtudiant();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n //**********************************************************************\r\n // chargement des donnes dans le tableau ENSEIGNANT\r\n //**********************************************************************\r\n \r\n colidentifiant1.setCellValueFactory(new PropertyValueFactory<>(\"idindividu\"));\r\n colnom1.setCellValueFactory(new PropertyValueFactory<>(\"nom\"));\r\n colprenom1.setCellValueFactory(new PropertyValueFactory<>(\"prenom\"));\r\n coladresse1.setCellValueFactory(new PropertyValueFactory<>(\"adresse\"));\r\n colnumerotel1.setCellValueFactory(new PropertyValueFactory<>(\"numeroTel\"));\r\n colmail1.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\r\n colspecialite1.setCellValueFactory(new PropertyValueFactory<>(\"specialite\"));\r\n \r\n try {\r\n leadDatabaseDataEnseignant();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n //**********************************************************************\r\n // chargement des donnes dans le tableau PERSONNEL\r\n //**********************************************************************\r\n \r\n colidentifiant2.setCellValueFactory(new PropertyValueFactory<>(\"idindividu\"));\r\n colnom2.setCellValueFactory(new PropertyValueFactory<>(\"nom\"));\r\n colprenom2.setCellValueFactory(new PropertyValueFactory<>(\"prenom\"));\r\n coladresse2.setCellValueFactory(new PropertyValueFactory<>(\"adresse\"));\r\n colnumerotel2.setCellValueFactory(new PropertyValueFactory<>(\"numeroTel\"));\r\n colmail2.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\r\n colfonction2.setCellValueFactory(new PropertyValueFactory<>(\"statut\"));\r\n \r\n try {\r\n leadDatabaseDataPersonnel();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AdminController.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n }",
"public void setDtCuentaContable(DataTable dtCuentaContable)\r\n/* 314: */ {\r\n/* 315:379 */ this.dtCuentaContable = dtCuentaContable;\r\n/* 316: */ }",
"public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }",
"public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}",
"public void PreencherTabela2() throws SQLException {\n\n String[] colunas = new String[]{\"ID do Pedido\", \"Numero Grafica\", \"Data Emissao\",\"Boleto\"};\n ArrayList dados = new ArrayList();\n Connection connection = ConnectionFactory.getConnection();\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ModeloPedido modeloPedido = new ModeloPedido();\n modeloPedido = pedidoDAO.buscaPorId(idPedidoClasse);\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n dados.add(new Object[]{modeloPedido.getId(), modeloPedido.getNumeroGrafica(), format.format(modeloPedido.getDataEmissao()), modeloPedido.isBoleto()});\n\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n\n jTablePedido.setModel(modelo);\n jTablePedido.setRowSorter(new TableRowSorter(modelo));\n jTablePedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTablePedido.getColumnModel().getColumn(0).setResizable(false);\n jTablePedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTablePedido.getColumnModel().getColumn(1).setResizable(false);\n\n jTablePedido.getTableHeader().setReorderingAllowed(false);\n connection.close();\n }",
"@Override\n\tpublic void configTable() {\n\t\tString[][] colNames = { { \"Name\", \"name\" }, { \"Ward No\", \"wardNo\" }, { \"Max. patients\", \"maxPatients\" }, { \"No of Patients\", \"patientCount\" },\n\t\t\t\t{ \"No of Employees\", \"employeeCount\" }};\n\n\t\tfor (String[] colName : colNames) {\n\t\t\tTableColumn<Ward, String> col = new TableColumn<>(colName[0]);\n\t\t\tcol.setCellValueFactory(new PropertyValueFactory<>(colName[1]));\n\t\t\ttable.getColumns().add(col);\n\t\t}\n\n\t\ttable.setItems(tableData);\n\t\t\n\t}",
"public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }",
"public void paramTable() {\n jTable2.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);\n mode = (DefaultTableModel) jTable2.getModel();\n dtcm = (DefaultTableColumnModel) jTable2.getColumnModel();\n\n jTable2.setRowHeight(40);\n largeurColoneMax(dtcm, 0, 70);\n largeurColoneMax(dtcm, 3, 50);\n largeurColoneMax(dtcm, 4, 100);\n largeurColoneMax(dtcm, 6, 90);\n largeurColoneMax(dtcm, 9, 70);\n\n TableCellRenderer tbcProjet = getTableCellRenderer();\n TableCellRenderer tbcProjet2 = getTableHeaderRenderer();\n for (int i = 0; i < jTable2.getColumnCount(); i++) {\n TableColumn tc = jTable2.getColumnModel().getColumn(i);\n tc.setCellRenderer(tbcProjet);\n tc.setHeaderRenderer(tbcProjet2);\n\n }\n\n }",
"public Complementos() {\n initComponents();\n String cabecera []={\"Producto\",\"Precio\"};\nString datos[][]={};\nboolean t=true;\nboolean f=false;\nmodelo = new Tablachida(datos,cabecera);\ntabla.setModel(modelo);\nTableColumnModel columnModel = tabla.getColumnModel();\ncolumnModel.getColumn(0).setPreferredWidth(250);\ntabla.setRowHeight(40);\n\n }",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"private void actualizarTabla(Map intData, Usuario usuario, String metodo)\n\t\t\tthrows Exception {\n\t\tClass[] clase = new Class[2];\n\t\tclase[0] = Class.forName(\"java.util.Map\");\n\t\tclase[1] = Class.forName(\"biz.belcorp.ssicc.model.Usuario\");\n\t\tgetClass().getMethod(metodo, clase).invoke(this,\n\t\t\t\tnew Object[]{intData, usuario});\n\n\t}",
"public interface CarTable {\r\n\r\n\tCar getCar();\r\n\tvoid setCar(Car car);\r\n\t\r\n\tint getMaxX();\r\n\tint getMaxY();\r\n}",
"private void configuraTablaCanciones() {\n\t\tthis.canciones = FXCollections.observableArrayList();\n\t\tthis.canciones.setAll(SongDAO.List_All_Songs());\n\n\t\tcs1.setCellValueFactory(cellData -> {\n\t\t\treturn new SimpleObjectProperty<>(cellData.getValue().getName());\n\t\t});\n\n\t\tcs2.setCellValueFactory(cellData -> {\n\t\t\treturn new SimpleObjectProperty<>(cellData.getValue().getNrepro());\n\t\t});\n\t\tcs3.setCellValueFactory(cellData -> {\n\t\t\treturn new SimpleObjectProperty<>(cellData.getValue().getGender().getName());\n\t\t});\n\t\tcs4.setCellValueFactory(cellData -> {\n\t\t\treturn new SimpleObjectProperty<>(cellData.getValue().getDisc().getName());\n\t\t});\n\n\t\tcs5.setCellValueFactory(cellData -> {\n\t\t\treturn new SimpleObjectProperty<>(cellData.getValue().getDuration());\n\t\t});\n\n\t\ttablaCanciones.setEditable(true);\n\t\ttablaCanciones.getSelectionModel().selectedItemProperty()\n\t\t\t\t.addListener((observable, oldvalue, newvalue) -> showCanciones(newvalue));\n\t\ttablaCanciones.setItems(canciones);\n\n\t\tshowCanciones(null);\n\n\t}",
"public JanelaTipoContato() {\r\n initComponents();\r\n try {\r\n\r\n List<TipoContato> tipoContatos = (List<TipoContato>) (Object) tipoContatoDao.pesquisarTodos();\r\n adicionarListaTipoContatosTabela(tipoContatos);\r\n } catch (Exception exception) {\r\n }\r\n }",
"public void setCyTable(CyTable cyTable);",
"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}",
"public void get_TableValues(){\r\n\tFFM=99;\r\n\tADFM=99;\r\n\tDF=0;\r\n\tFLOAD=0;\r\n\t\r\n}"
]
| [
"0.61637956",
"0.6119759",
"0.5961431",
"0.59120905",
"0.5881505",
"0.58646005",
"0.5860409",
"0.580299",
"0.5802367",
"0.5787748",
"0.5762851",
"0.5706358",
"0.5704539",
"0.57028556",
"0.5678564",
"0.5671035",
"0.5654481",
"0.5586565",
"0.5579804",
"0.55715346",
"0.5563678",
"0.5553964",
"0.55321354",
"0.5519978",
"0.55177265",
"0.54997987",
"0.5498211",
"0.54959464",
"0.5469301",
"0.54678977",
"0.5463676",
"0.5454622",
"0.54518384",
"0.5441828",
"0.54415274",
"0.54361457",
"0.5427923",
"0.5420872",
"0.541871",
"0.5417802",
"0.5408211",
"0.5405212",
"0.5403588",
"0.5398819",
"0.5398443",
"0.5396874",
"0.53934205",
"0.5390474",
"0.5384702",
"0.53774107",
"0.5371588",
"0.5367511",
"0.5362474",
"0.5359156",
"0.53591156",
"0.5350026",
"0.53453",
"0.5340499",
"0.53400147",
"0.5335754",
"0.5324778",
"0.5322288",
"0.53118604",
"0.53097737",
"0.53036547",
"0.52987134",
"0.52920395",
"0.5291612",
"0.5290214",
"0.5290104",
"0.52853775",
"0.5284893",
"0.5278795",
"0.52769303",
"0.52748877",
"0.5271701",
"0.52710456",
"0.5270909",
"0.5267747",
"0.5263106",
"0.5260719",
"0.52600664",
"0.5259159",
"0.52561957",
"0.5254142",
"0.524724",
"0.5246127",
"0.52460253",
"0.52459764",
"0.52430946",
"0.5239346",
"0.52311367",
"0.521244",
"0.52104735",
"0.5208568",
"0.5207312",
"0.52070457",
"0.5202822",
"0.5202702",
"0.52018225",
"0.52013993"
]
| 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Page<Object[]> getPaging(String type, String keyword, Pageable page) {
QBoardVO board = QBoardVO.boardVO;
QBoardReplyVO reply = QBoardReplyVO.boardReplyVO;
/** Query Make Search Table */
JPQLQuery<BoardVO> query = from(board);
/** Query Select Set */
JPQLQuery<Tuple> tuple = query.select(board.idx, board.title, board.content, board.writer, reply.count(), board.createdAt, board.updatedAt);
/** Left JOIN */
tuple.leftJoin(reply);
/** LEFT JOIN ON OPTION */
tuple.on(board.idx.eq(reply.board.idx));
tuple.where(board.idx.gt(0L));
/** Search Option Type */
if(type != null) {
switch(type.toLowerCase()) {
case "t":
tuple.where(board.title.like("%" + keyword + "%"));
break;
case "w":
tuple.where(board.writer.like("%" + keyword + "%"));
break;
case "c":
tuple.where(board.content.like("%" + keyword + "%"));
break;
}
}
/** Group By */
tuple.groupBy(board.idx);
/** ORDER DESC */
tuple.orderBy(board.idx.desc());
/** Paging */
tuple.offset(page.getOffset());
tuple.limit(page.getPageSize());
/** Get Fetch */
List<Tuple> list = tuple.fetch();
/** Return List */
List<Object[]> resultList = new ArrayList<>();
/** And Reply */
list.forEach(t->{
resultList.add(t.toArray());
});
/** Fetch Count */
long total = tuple.fetchCount();
return new PageImpl<>(resultList, page, total);
} | {
"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 |
Checks if the CTPL specification holds for the entrypoint of kripke structure k. | public static boolean check(KripkeStructure k, Specification spec) {
List formulas = spec.getSubformulaList();
log.info("======= Modelchecker Start =======");
long startTime = System.currentTimeMillis();
/* iterate all subformulas */
for (Iterator fIter = formulas.iterator(); fIter.hasNext();) {
CtplTreeNode f = (CtplTreeNode)fIter.next();
/*
* AF psi
*/
if (f.getValue().equals(CtplOperator.AF)) {
CtplTreeNode psi = f.getChild(0);
boolean changed = false;
System.out.print("Checking AF, Iterations:");
// If any state is labelled with psi
// then label this state with AF psi.
for (Iterator iter = k.getGraph().vertexSet().iterator(); iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(psi))
changed |= s.addLabel(f, (BindingSet)s.getBindingSet(psi).clone());
}
// Fixed point algorithm
int iterations = 0;
while (changed) {
System.out.print(" " + ++iterations);
changed = false;
stateIteration: for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (k.getGraph().outDegreeOf(s) < 1) continue;
BindingSet join = null;
// boolean isAF = true;
for (Iterator cIter = k.getGraph().outgoingEdgesOf(s).iterator(); cIter.hasNext();) {
KripkeNode child = (KripkeNode)((DirectedEdge)(cIter.next())).getTarget();
if (!child.hasLabel(f)) continue stateIteration;
else {
if (join == null) join = child.getBindingSet(f);
else join = BindingSet.and(child.getBindingSet(f), join);
if (join.isEmpty()) continue stateIteration;
}
}
changed |= s.addLabel(f, join);
}
}
System.out.println(" Done.");
}
/*
* EF(phi)
*/
else if (f.getValue().equals(CtplOperator.EF)) {
CtplTreeNode phi = f.getChild(0);
boolean changed = false;
System.out.print("Checking EF, Iterations:");
// If any state is labelled with the formula f
// within EF, then label this state with EF(f).
for (Iterator iter = k.getGraph().vertexSet().iterator(); iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(phi))
changed |= s.addLabel(f, (BindingSet)s.getBindingSet(phi).clone());
}
// Fixed point algorithm
int iterations = 0;
while (changed) {
System.out.print(" " + ++iterations);
k.clearMarks();
changed = false;
LinkedList queue = new LinkedList();
queue.add(k.getExitNode());
while(!queue.isEmpty()) {
/* Breadth first search */
KripkeNode s = (KripkeNode)queue.removeFirst();
s.mark(); // Make sure to only access every node once.
/* Iterate parents */
// TODO: No support for procedures with multiple return statements.
for (Iterator iter = k.getGraph().incomingEdgesOf(s).iterator(); iter.hasNext();) {
KripkeNode parent = (KripkeNode)((DirectedEdge)(iter.next())).getSource();
/* parent propagation goes here */
if (s.hasLabel(f)) changed |= parent.addLabel(f, (BindingSet)s.getBindingSet(f).clone());
if (!parent.isMarked()) queue.add(parent);
}
}
}
System.out.println(" Done.");
}
/*
* E phi U psi
*/
else if (f.getValue().equals(CtplOperator.EU)) {
CtplTreeNode phi = f.getChild(0);
CtplTreeNode psi = f.getChild(1);
boolean changed = false;
System.out.print("Checking EU, Iterations:");
// If any state is labelled with the formula psi
// within E phi U psi, then label this state with E phi U psi.
for (Iterator iter = k.getGraph().vertexSet().iterator(); iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(psi))
changed |= s.addLabel(f, (BindingSet)s.getBindingSet(psi).clone());
}
// Fixed point algorithm
int iterations = 0;
while (changed) {
System.out.print(" " + ++iterations);
k.clearMarks();
changed = false;
LinkedList queue = new LinkedList();
queue.add(k.getExitNode());
while(!queue.isEmpty()) {
/* Breadth first search */
KripkeNode s = (KripkeNode)queue.removeFirst();
s.mark(); // Make sure to only access every node once.
/* Iterate parents */
// TODO: No support for procedures with multiple return statements.
for (Iterator iter = k.getGraph().incomingEdgesOf(s).iterator(); iter.hasNext();) {
KripkeNode parent = (KripkeNode)((DirectedEdge)(iter.next())).getSource();
/* parent propagation goes here */
if (s.hasLabel(f)
&& parent.hasLabel(phi)) {
BindingSet join = BindingSet.and(s.getBindingSet(f), parent.getBindingSet(phi));
if (!join.isEmpty()) changed |= parent.addLabel(f, join);
}
if (!parent.isMarked()) queue.add(parent);
}
}
}
System.out.println(" Done.");
}
/*
* EX
*/
else if (f.getValue().equals(CtplOperator.EX)) {
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(f.getChild(0)))
for (Iterator iter2 = k.getGraph().incomingEdgesOf(s).iterator(); iter2.hasNext();) {
KripkeNode parent = (KripkeNode)((DirectedEdge)(iter2.next())).getSource();
parent.addLabel(f, (BindingSet)s.getBindingSet(f.getChild(0)).clone());
}
}
}
/*
* AND
*/
else if (f.getValue().equals(CtplOperator.AND)) {
//System.out.println(f.getChild(1).toString());
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(f.getChild(0))
&& s.hasLabel(f.getChild(1))) {
BindingSet join = BindingSet.and(s.getBindingSet(f.getChild(0)),
s.getBindingSet(f.getChild(1)));
if (!join.isEmpty()) s.setLabel(f, join);
}
}
}
/*
* OR
*/
else if (f.getValue().equals(CtplOperator.OR)) {
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(f.getChild(0))) {
BindingSet c = s.getBindingSet(f.getChild(0));
if (s.hasLabel(f.getChild(1))) c = BindingSet.or(c, s.getBindingSet(f.getChild(1)));
s.setLabel(f, c);
}
else if (s.hasLabel(f.getChild(1)))
s.setLabel(f, s.getBindingSet(f.getChild(1)));
}
}
/*
* NOT
*/
else if (f.getValue().equals(CtplOperator.NOT)) {
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (!s.hasLabel(f.getChild(0))) {
BindingSet c = new BindingSet();
c.add(BindingClause.emptyClause);
s.setLabel(f, c);
}
else {
BindingSet res = BindingSet.negate(s.getBindingSet(f.getChild(0)));
if (!res.isEmpty()) s.setLabel(f, res);
}
}
}
/*
* EXISTS QUANTIFIER
*/
else if (f.getValue().equals(CtplQuantifier.EXISTS)) {
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
if (s.hasLabel(f.getChild(0))) {
s.setLabel(f, BindingSet.purge(
s.getBindingSet(f.getChild(0)),
((CtplQuantifier)f.getValue()).getParameter())
);
}
}
}
/*
* PREDICATE
*/
else {
/* location predicates are no instructions, but special */
boolean locOnly;
if (((CtplPredicate)f.getValue()).getBody().equals(P_LOCATION))
locOnly = true;
else locOnly = false;
for (Iterator iter = k.getGraph().vertexSet().iterator();
iter.hasNext();) {
KripkeNode s = (KripkeNode)iter.next();
BindingClause b;
if (locOnly)
b = s.getInstruction().getLocation().unify((CtplPredicate)f.getValue());
else
b = s.getInstruction().unify((CtplPredicate)f.getValue());
if (b != null) {
BindingSet c = new BindingSet();
c.add(b);
if (locOnly) s.addLabel(f, c);
else s.setLabel(f, c);
}
}
}
}
long stopTime = System.currentTimeMillis();
log.info("======= Modelchecker Stop =======");
log.info("Finished after " + (stopTime - startTime) + "ms.");
return k.getEntryNode().hasLabel((CtplTreeNode)formulas.get(formulas.size() - 1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasPkpfe1000();",
"public boolean hasK() {\n return resultCase_ == 3;\n }",
"public boolean hasK() {\n return resultCase_ == 3;\n }",
"public boolean shouldRender(CodePackageTag cpt) {\n\t\treturn null == this.getKey() || this.getKey().equals(cpt.getKey());\n\t}",
"public boolean checkKey(char k) { \r\n \t\tif (keys.length >= k) {\r\n \t\t\treturn keys[k];\r\n \t\t}\r\n \t\treturn false;\r\n \t}",
"boolean isKOd();",
"public boolean isSetKau() {\n return this.kau != null;\n }",
"public boolean isSetKau() {\n return this.kau != null;\n }",
"boolean hasCdkey();",
"public boolean isSetKin() {\n return this.kin != null;\n }",
"boolean defined(K k);",
"public Boolean isKochLineValid(){\n\t\treturn super.isValid();\n\t\t\n\t\t\n\t}",
"public boolean hasKdKelas() {\n return fieldSetFlags()[0];\n }",
"public boolean hasKv() {\n return resultCase_ == 2;\n }",
"boolean isPwc();",
"boolean isSetKeyBox();",
"public boolean hasKv() {\n return resultCase_ == 2;\n }",
"boolean hasPakringFree();",
"boolean hasPakringFree();",
"public boolean hasKeyComponents(){\n\n // Event is valid if it has an event name date\n if(event == null || date == 0 || startTime == null || endTime == null){\n return false;\n }\n return true;\n }",
"boolean hasKeywordPlan();",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean isSetKnf() {\n return this.knf != null;\n }",
"public boolean hasKdMk() {\n return fieldSetFlags()[7];\n }",
"public boolean checkEntryInputs() {\n\t\tboolean isValid = true;\n\t\tif(sampleNumberTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(materialDescriptionTF.getText().equals(\"\")) {\n\t\t\tisValid = false;\n\t\t}\n\t\t\n\t\tif(Double.valueOf(bacteroidesConcentrationTF.getText())==null) {\n\t\t\tisValid = false;\n\t\t}\n\t\treturn isValid;\n\t}",
"public boolean k_()\r\n/* 450: */ {\r\n/* 451:464 */ return false;\r\n/* 452: */ }",
"public boolean isValidateRoot() {\n/* 463 */ return true;\n/* */ }",
"public boolean checkSelf() {\n\t\tboolean ok = true;\n\t\tif (controller == null) {\n\t\t\tSystem.err.println(\"CRParameters :: controller not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (scenario.length() == 0 && controller.getWorld().getHasScenarios()) {\n\t\t\tSystem.err.println(\"CRParameters :: scenario not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (reportFolderName.length() == 0) {\n\t\t\tSystem.err.println(\"CRParameters :: report folder not set\");\n\t\t\tok = false;\n\t\t}\n\t\tif (trialDuration <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: trial duration not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfRuns <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of runs not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\tif (numOfTrials <= 0) {\n\t\t\tSystem.err.println(\"CRParameters :: number of trials not set or 0\");\n\t\t\tok = false;\n\t\t}\n\t\treturn ok;\n\t}",
"boolean hasContKey();",
"public boolean isValidateRoot() {\n/* 246 */ return true;\n/* */ }",
"public boolean check() {\n BigInteger t1 = y.modPow(int2, c.p);\n BigInteger t2 = x.modPow(int3, c.p);\n BigInteger t3 = ((t2.add(c.a.multiply(x))).add(c.b)).mod(c.p);\n return t1.compareTo(t3) == 0;\n }",
"@Test\n\tpublic void testGetSparePartSpec() {\n\t\t\t\n\t\tassertTrue(spReg.getSparePartSpecification(\"1\") != null);\n\t\t\n\t\t//fail(\"Not yet implemented\");\n\t}",
"private boolean pptIsAvailable() {\n try {\n pinpoint = new pinpointInterface(true);\n } catch (NoConnectionException ex) {\n JOptionPane.showMessageDialog(RACApp.getApplication().getMainFrame(),\n \"No PIN Points were found.\\nPlease make sure it is plugged in and turned on.\",\n \"PIN POINT NOT FOUND\",\n JOptionPane.ERROR_MESSAGE);\n return false;\n } catch (Exception ex) {\n return false;\n }\n return true;\n }",
"boolean hasC3();",
"public boolean isAppropriatePatchLocation(int bank, int num) \n {\n return true;\n }",
"public void validateRpd8s23()\n {\n // This guideline cannot be automatically tested.\n }",
"boolean hasGcj02();",
"boolean hasC();",
"public void validateRpd11s6()\n {\n // This guideline cannot be automatically tested.\n }",
"public boolean istKorrupt() {\n\t\tif (this.korrupt) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public Boolean satisfies(KB kb) {\n\t\t//I flipped the return statements in this, they looked wrong before?\n\t\tCollection<Sentence> sentences = kb.sentences();\n\t\t\n\t\tfor(Sentence s: sentences) {\n\t\t\tif(!(s.isSatisfiedBy(this))) {\n\t\t\t\treturn Boolean.FALSE;\n\t\t\t}\n\n\t\t}\n\t\treturn Boolean.TRUE;\n\t}",
"public boolean isNotNullAltMid() {\n return genClient.cacheValueIsNotNull(CacheKey.altMid);\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public void validateRpd22s1()\n {\n // This guideline cannot be automatically tested.\n }",
"public boolean isAvailable() throws KKException\r\n {\r\n return isAvailable(MODULE_PAYMENT_CYBERSOURCESA_STATUS);\r\n }",
"public void validateRpd22s9()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd8s6()\n {\n // Already checked by RPD 1s3\n }",
"private boolean validate(K key,\n\t\t\tDictionaryEntry<K,V> pre,\n\t\t\tDictionaryEntry<K,V> cur) {\n\t\treturn (!pre.isMarked()\n\t\t\t\t&& (cur == pre.getNext())\n\t\t\t\t&& (cur.isSentinel()\n\t\t\t\t\t\t|| (key.compareTo(cur.getKey()) <= 0))\n\t\t\t\t);\n\t}",
"boolean hasCompoundKey();",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isValidPatchLocation(int bank, int num) \n {\n return true; \n }",
"public boolean hasC() {\n return c_ != null;\n }",
"public void validateRpd22s6()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd11s7()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd11s1()\n {\n // This guideline cannot be automatically tested.\n }",
"public boolean isKPalindrome(String input, int k){\n\t\t\n\t\t//if the input string is null or less than 0 return false\n\t\tif(input == null || k < 0)\n\t\t\treturn false;\n\t\t//if the input length equals 1, return true\n\t\telse if(input.length() == 1)\n\t\t\treturn true;\n\t\telse if(input.length() ==2)\n\t\t{\n\t\t\t//if the input length equals true, then return true if characters are equal or if \n\t\t\t// k is greater than 0, otherwise return false.\n\t\t\tif(input.charAt(0) == input.charAt(1))\n\t\t\t\treturn true;\n\t\t\telse if(k > 0)\n\t\t\t\treturn true;\n\t\t\telse \n\t\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Check recursively\n\t\t\t//Compare the first and last characters, if they are the same make a recursive call\n\t\t\t// with k the same and the start and end lopped off\n\t\t\t// if they are not the same, make 2 recursive calls, each with one end lopped off and k decremented by 1\n\t\t\t// return true if either one of them returns true.\n\t\t\tif(input.charAt(0)==input.charAt(input.length()-1))\n\t\t\t\treturn isKPalindrome(input.substring(1,input.length()-1),k);\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(k<=0)\n\t\t\t\t\treturn false;\n\t\t\t\telse\n\t\t\t\t\treturn isKPalindrome(input.substring(0,input.length()-1),k-1) ||\n\t\t\t\t\t\t\tisKPalindrome(input.substring(1,input.length()),k-1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"private final boolean m717l() {\n akl akl = this.f531p.f603f;\n return (akl == null || akl.mo443d() == Long.MIN_VALUE) ? false : true;\n }",
"public void validateRpd3s6()\n {\n // This guideline cannot be automatically tested.\n }",
"boolean isSetParlay();",
"@Test\n\tpublic void getDeZipCode24848_checkNumberOfPlacesStartingWithKlein_expect3() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\tthen();\n\t}",
"@Test\n\tpublic void getDeZipCode24848_checkThirdPlaceInList_expectKropp() {\n\n\t\tgiven().\n\t\t\tspec(requestSpec).\n\t\twhen().\n\t\t\t\tget().\n\t\tthen();\n\t}",
"public boolean hasKdOrg() {\n return fieldSetFlags()[12];\n }",
"boolean hasPatch();",
"protected void checkValidity(Epml epml) {\n\t}",
"public void validateRpd8s18()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd11s9()\n {\n // This guideline cannot be automatically tested.\n }",
"public void validateRpd3s14()\n {\n // This guideline cannot be automatically tested.\n }",
"@Test\n public void boolean_true_assert() throws Exception {\n check(\"boolean_true_assert.c\",\n ImmutableMap.of(\"cpa.stator.policy.generateOctagons\", \"true\",\n \"CompositeCPA.cpas\",\n \"cpa.location.LocationCPA, cpa.callstack.CallstackCPA, cpa.functionpointer.FunctionPointerCPA, cpa.loopstack.LoopstackCPA, cpa.value.ValueAnalysisCPA, cpa.policyiteration.PolicyCPA\",\n \"precision.trackIntAddVariables\", \"false\",\n \"precision.trackVariablesBesidesEqAddBool\", \"false\"));\n }",
"public void validateRpd22s7()\n {\n // This guideline cannot be automatically tested.\n }",
"public boolean hasMinRequirements() {\n\t\t// FIXME MIN input\n\t\treturn true;\n\t}",
"public boolean isPlainText(File src, int k_p) throws IOException {\n\t\tboolean isPlainText = true;\r\n\t\tMap<String, Integer> bifreq = Frequencies.getBigramQuantities(src, Main.alphabet, true); //src\r\n\t\tlong prohibitedBigramClasses = bifreq.entrySet().stream()\r\n\t\t\t.filter(x -> x.getValue() != 0)\r\n\t\t\t.filter(x -> A_prh.contains(x.getKey()))\r\n\t\t\t.count();\r\n\t\tif(prohibitedBigramClasses < 3) {\r\n\t\t\tbifreq.entrySet().stream()\r\n\t\t\t.filter(x -> x.getValue() != 0)\r\n\t\t\t.filter(x -> A_prh.contains(x.getKey()))\r\n\t\t\t.forEach(System.out::println);\r\n\t\t}\r\n\t\tSystem.out.println(\"prohibitedBigramClasses: \" + prohibitedBigramClasses);\r\n\t\tif(prohibitedBigramClasses >= k_p) {\r\n\t\t\tisPlainText = false;\r\n\t\t}\r\n\t\treturn isPlainText;\r\n\t}",
"private boolean isPackValid() {\n\t\treturn (logData != null\n\t\t\t\t&& logData.entries != null\n\t\t\t\t&& logData.entries.size() > 1);\n\t}",
"public boolean DEBUG_containsAtALL(int k) {\r\n Node curr = head.get();\r\n \r\n while (curr != null) {\r\n \r\n if (curr.key == k) {\r\n //s = curr.state;\r\n \r\n //if (s != 3 && s != 1) {\r\n return true;\r\n //}\r\n }\r\n curr = curr.next;\r\n }\r\n return false;\r\n }",
"private boolean isValid() {\n\t\treturn proposalTable != null && !proposalTable.isDisposed();\n\t}",
"boolean hasInputConstraints();",
"public boolean hasLicensePlate() {\n return licensePlateBuilder_ != null || licensePlate_ != null;\n }",
"public void verifyEntrySet() {\n }",
"public void hasKey() {\n\t\tif (checkKey(Integer.parseInt(getCurrentPositionX()),Integer.parseInt(getCurrentPositionY()))) {\n\t\t\tDisplay.setKey(\"Yes\");\n\t\t\tDisplay.setMessage(\"You have found a key! Try to go through a house!\");\n\t\t}\n\t}",
"boolean hasFkocs();",
"public boolean isValidateRoot()\r\n\t{\r\n\t\treturn(true);\r\n\t}",
"public void validateRpd3s7()\n {\n // This guideline cannot be automatically tested.\n }",
"private boolean useCurrentThread(List<String> dependedKeyList) {\n if (dependedKeyList.size() <= 0) {\n return false;\n }\n for (String deptKey : dependedKeyList) {\n if (dag.getFollowingKey(deptKey).size() > 1) {\n return false;\n }\n }\n return true;\n }",
"public void validateRpd22s10()\n {\n // This guideline cannot be automatically tested.\n }",
"private boolean checkKey(char k)\n {\n \tint index = word.indexOf(k);\n \tif (index == -1)\n \t{\n \t\t//k doesn't exist in word\n \t\tguess_number--;\n \t\treturn false;\n \t}\n \telse\n \t{\n \t\t//k exist in the word\n \t\twhile (index != -1)\n \t\t{\n \t\t\t//update mask\n \t\t\tmask = mask.substring(0, index)+k+mask.substring(index+1);\n \t\t\t//update index\n \t\t\tindex = word.indexOf(k, index + 1);\n \t\t}\n \t\treturn true;\n \t}\n \t\n }",
"@Override\n public boolean hasValenceError() {\n String valenceCheck = atom.checkBadValence();\n//\n// System.out.println(\"valenceCheckBad \" + valenceCheck);\n// System.out.println(\"calling actual checkValence \" + atom.checkValence());\n// System.out.println(\"valenceCheckBad again \" + atom.checkBadValence());\n return !valenceCheck.isEmpty();\n }",
"public boolean validStopCheck(){\n return points.validPolygon();\n }",
"public boolean mo43859c(C14109b entry) {\n return entry != null && entry.mo43860d() == mo43860d();\n }",
"boolean hasPokers();",
"boolean hasPokers();",
"private void checkIfReadyToParse() {\r\n\t\tif (this.hostGraph != null)\r\n\t\t\tif (this.stopGraph != null)\r\n\t\t\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\t\t\tthis.readyToParse = true;\r\n\t\t\t\t}\r\n\t}",
"boolean requiresExpression(int k);"
]
| [
"0.6223217",
"0.61192596",
"0.6102082",
"0.5852612",
"0.58524954",
"0.5740376",
"0.5729487",
"0.5729487",
"0.5717794",
"0.56338215",
"0.5594873",
"0.5591644",
"0.5518533",
"0.54890794",
"0.5470428",
"0.5458215",
"0.5443131",
"0.5435085",
"0.5435085",
"0.5434555",
"0.54306597",
"0.5425582",
"0.5425582",
"0.5425582",
"0.5425582",
"0.5425582",
"0.5425582",
"0.5425582",
"0.5425582",
"0.5425582",
"0.54221666",
"0.5406531",
"0.53936553",
"0.53526074",
"0.5334419",
"0.5317082",
"0.530702",
"0.530613",
"0.52841794",
"0.52620727",
"0.5208733",
"0.5203339",
"0.5196196",
"0.5167579",
"0.5163581",
"0.5154077",
"0.5144701",
"0.51438314",
"0.5142",
"0.51327336",
"0.51294297",
"0.51218796",
"0.5113081",
"0.51076543",
"0.5100864",
"0.51006395",
"0.5099902",
"0.5099902",
"0.5099902",
"0.50856566",
"0.5085045",
"0.50847834",
"0.508238",
"0.50733894",
"0.5068701",
"0.50660646",
"0.50648403",
"0.505482",
"0.50481254",
"0.5046744",
"0.50437033",
"0.5034627",
"0.5032796",
"0.5031958",
"0.5031502",
"0.5031009",
"0.503083",
"0.50300217",
"0.5029097",
"0.50278735",
"0.5021658",
"0.5019548",
"0.5019486",
"0.5015401",
"0.5006783",
"0.50049615",
"0.4999253",
"0.49974677",
"0.4997356",
"0.4994886",
"0.49930298",
"0.49887446",
"0.4988084",
"0.49867296",
"0.49852496",
"0.49850732",
"0.49826124",
"0.49826124",
"0.49813163",
"0.49748424"
]
| 0.5188542 | 43 |
saves a serializable data to the given file. | public static void save(Serializable data, String fileName) throws Exception {
try(ObjectOutputStream out = new ObjectOutputStream( Files.newOutputStream(Paths.get(fileName)) )) {
out.writeObject(data);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveAsSerialization() {\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(new File(\"saves/data.dat\")))){\n os.writeObject(this);\n } catch (FileNotFoundException e){\n System.out.println(\"Could not create file: \" + e.getMessage());\n } catch (IOException e){\n System.out.println(\"IO exception occurred: \" + e.getMessage());\n }\n\n }",
"@Override\n\tpublic void save(String file_name) {\n\t\tserialize(file_name);\n\t}",
"String saveToFile(Object data, String fileName, FileFormat fileFormat) throws IOException;",
"public void saveToFile(Map<String, T> data) throws IOException{\n\t\tOutputStream file = new FileOutputStream(filePath);\n OutputStream buffer = new BufferedOutputStream(file);\n ObjectOutput output = new ObjectOutputStream(buffer);\n\n // serialize the Map\n output.writeObject(data);\n output.close();\n\t}",
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"public static void save(final String filename, final Serializable object)\r\n throws IOException {\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n\r\n fos = new FileOutputStream(filename);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(object);\r\n out.close();\r\n }",
"@Override\n public boolean save(String file) {\n boolean ans = false;\n ObjectOutputStream oos;\n try {\n FileOutputStream fileOut = new FileOutputStream(file, true);\n oos = new ObjectOutputStream(fileOut);\n oos.writeObject(this);\n ans= true;\n }\n catch (FileNotFoundException e) {\n e.printStackTrace(); }\n catch (IOException e) {e.printStackTrace();}\n return ans;\n }",
"@Override\n\tpublic void save(Object o, String file) {\n\t\t\n\t}",
"public static void saveObj(Object obj, File file)\n {\n try(ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)))\n {\n oos.writeObject(obj);\n }\n \n catch(IOException e)\n {\n JOptionPane.showMessageDialog(null, \"[Error] Failed to save file: \" + e.getMessage());\n }\n }",
"public static void storeObject(Object data, File file) throws IOException\n {\n FileOutputStream stream = null;\n try\n {\n stream = new FileOutputStream(file);\n stream.write(toPlist(data).getBytes());\n }\n finally\n {\n silentlyClose(stream);\n }\n }",
"public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }",
"public void save(File filename) throws IOException {\n FileOutputStream fos = new FileOutputStream(filename);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.close();\n }",
"public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;",
"void saveData() throws SerializerException;",
"void save(File file);",
"public void save(String fileName) throws IOException;",
"public void saveBinary(String file) throws IOException {\n FileOutputStream f = new FileOutputStream(new File(file));\n ObjectOutputStream o = new ObjectOutputStream(f);\n o.writeObject(this);\n o.flush();\n o.close();\n }",
"public abstract void saveToFile(PrintWriter out);",
"synchronized public void saveToFile() {\n try {\n saveObjToFile(this, saveFilePath);\n } catch (IOException e) {\n e.printStackTrace();\n log(\"error saving resource to file\");\n }\n }",
"public void save(){\n Player temp = Arena.CUR_PLAYER;\n try{\n FileOutputStream outputFile = new FileOutputStream(\"./data.sec\");\n ObjectOutputStream objectOut = new ObjectOutputStream(outputFile);\n objectOut.writeObject(temp);\n objectOut.close();\n outputFile.close();\n }\n catch(FileNotFoundException e){\n System.out.print(\"Cannot create a file at that location\");\n }\n catch(SecurityException e){\n System.out.print(\"Permission Denied!\");\n }\n catch(IOException e){\n System.out.println(\"Error 203\");\n } \n }",
"public void save() {\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(\"studentData.dat\");\n\n\t\t\tObjectOutputStream oos;\n\t\t\ttry {\n\t\t\t\toos = new ObjectOutputStream(fos);\n\n\t\t\t\toos.writeObject(studentList);\n\t\t\t\toos.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"File is finished writing to the hard drive\");\n\t}",
"public static void save(Object o, String filename) {\n\t\ttry\n\t {\n\t\t\tfilename = \"save\" + File.separator + filename + \".hsc\";\n\t\t\tcreateSaveDirIfNotExisting();\n\t\t\tprepareSaveFile(filename);\n\t FileOutputStream fileOut = new FileOutputStream(filename);\n\t ObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t out.writeObject(o.getClass().cast(o));\n\t out.close();\n\t fileOut.close();\n\t //System.out.println(\"Serialized object is saved in \" + filename);\n\t }catch(NotSerializableException e) {\n\t \t System.out.println(\"Object to be saved does not implement java.io.Serializable!\");\n\t \t e.printStackTrace();\n\t }\n\t\tcatch(IOException i)\n\t {\n\t i.printStackTrace();\n\t } \n\t}",
"public void save(File filename) throws IOException {\n ObjectOutputStream outputStream = null;\n try {\n outputStream = new ObjectOutputStream(new FileOutputStream(filename));\n outputStream.writeObject(this.getHighScores());\n } catch (IOException e) {\n System.out.println(\"cannot save to file\");\n } finally {\n if (outputStream != null) { // Exception might have happened at constructor\n try {\n outputStream.close();\n } catch (IOException e) {\n System.out.println(\" Failed closing the file !\");\n }\n }\n }\n }",
"private void serialize() {\r\n if (newFile) {\r\n this.newFile = this.serializeAs();\r\n } else if (!newFile && !path.equals(\"\")) {\r\n sr.save(this.path);\r\n }\r\n }",
"private void serialize(String file_name) {\n\t\t//Saving of object in a file\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(file_name);\n\t\t\tObjectOutputStream out = new ObjectOutputStream(file);\n\t\t\t// Method for serialization of object\n\t\t\tout.writeObject(this.GA);\n\n\t\t\tout.close();\n\t\t\tfile.close();\n\n\t\t\tSystem.out.println(\"Object has benn serialized\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException is caught,Object didnt save.\");\n\t\t}\n\t}",
"public void SerialWriteFile() {\r\n\r\n PrintWriter pwrite = null;\r\n File fileObject = new File(getName());\r\n QuizPlayer q = new QuizPlayer(getName(), getNickname(), getTotalScore());\r\n\r\n try {\r\n ObjectOutputStream outputStream =\r\n new ObjectOutputStream(new FileOutputStream(fileObject));\r\n\r\n outputStream.writeObject(q); //Writes the object to the serialized file.\r\n outputStream.close();\r\n\r\n\r\n } catch (IOException e) {\r\n System.out.println(\"Problem with file output.\");\r\n }\r\n\r\n }",
"void save(String fileName) throws IOException, TransformerConfigurationException, ParserConfigurationException;",
"public boolean save(String file);",
"public void save(Cacheable[] data) throws IOException, NullPointerException {\n validate(data);\n\n // write the header\n writeHeader(data);\n\n // write the data\n writeData(data);\n\n // close the file\n close();\n }",
"void save(String fileName);",
"public void save(File file) throws Exception {\n\t\tFileOutputStream fos = new FileOutputStream(file);\t\t\n\t\tfos.write(getStream().getData());\n\t\tfos.close();\n\t}",
"public void save(OutputStream os) throws IOException;",
"void saveToFile(String filename) throws IOException;",
"public boolean writeObject(Serializable object){\n try {\n FileOutputStream fileOut = new FileOutputStream(name);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(object);\n out.close();\n fileOut.close();\n System.out.println(\"Serialized data is saved in: \" + name);\n return true;\n } \n catch (IOException i) {\n System.out.println(\"Failed to load!\");\n return false;\n }\n }",
"private void serializeToFile(File file) {\n\t\ttry {\n FileOutputStream outputStream = new FileOutputStream(file); // a file stream for writing the serialized objects two.\n ObjectOutputStream byteStream = new ObjectOutputStream(outputStream); // connect the byte stream to the file stream\n byteStream.writeObject(myProjects); // write objects to a byte stream for putting in a file\n byteStream.close(); \n outputStream.close();\n\t\t} catch (IOException e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: file could not be read.\");\n\t\t}\n\t}",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"public void saveToFile() {\n FileOutputStream fos = null;\n try {\n //write the object into file\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(travelGUI.getTravelAgent());\n oos.flush();\n oos.close();\n }\n catch (IOException ioe) {\n System.out.println(ioe.getMessage());\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }",
"public static void save(DSAGraph objToSave, String filename)\n {\n FileOutputStream fileStrm;\n ObjectOutputStream objStrm;\n\n try\n {\n fileStrm = new FileOutputStream(filename); //Underlying stream\n objStrm = new ObjectOutputStream(fileStrm); //Object serialization stream\n objStrm.writeObject(objToSave); //Serialize and save to filename\n objStrm.close();//Clean up\n }\n catch (Exception e)\n { //should do more here\n throw new IllegalArgumentException(\"Unable to save object to file: \" + e);\n }\n }",
"public void Save() {\n try {\n ObjectOutputStream objUt = new ObjectOutputStream(\n new FileOutputStream(\"sparfil.txt\"));\n objUt.writeObject(this);\n } catch(Exception e) {\n System.out.println(e);}\n }",
"private void saveData() {\n\t\tdataSaver.save(data);\n\t}",
"private void writeToFile(String filename, Object object) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(filename, MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(object);\n objectOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void save() {\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n fileChooser.setSelectedFile(new File(\"save.ser\"));\n int saveFile = fileChooser.showSaveDialog(GameFrame.this);\n\n if (saveFile == JFileChooser.APPROVE_OPTION) {\n File saveGame = fileChooser.getSelectedFile();\n FileOutputStream fileOut = new FileOutputStream(saveGame);\n ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n objOut.writeObject(world);\n objOut.close();\n fileOut.close();\n System.out.println(\"Game saved.\");\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n }",
"public void salvaDati(Object dati){\n\t\ttry{\n\t\t\tFileOutputStream fos = new FileOutputStream(file);\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\toos.writeObject(dati);\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t\tSystem.out.println(\"File \" + file + \" salvato\");\n\t\t} catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\t\n\t}",
"public void save(String filename) throws IOException\n {\n DataOutputStream output;\n\n try\n {\n output = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(new File(filename))));\n }\n catch (Exception e)\n {\n throw new IOException(\"Cannot open output file \" + filename + \":\" + e.getMessage());\n }\n save(output);\n output.flush();\n output.close();\n }",
"public static synchronized void save() {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n String team_backup = config.Server.serverdata_file_location + \"/teams\";\n\n Calendar dato = new GregorianCalendar();\n\n team_backup += dato.get(Calendar.YEAR) + \"-\" + dato.get(Calendar.DAY_OF_MONTH) + \"-\" + dato.get(Calendar.MONTH) + \"-\";\n team_backup += dato.get(Calendar.HOUR) + \"-\" + dato.get(Calendar.MINUTE) + \".ser\";\n\n admin.logging.globalserverMsg(\"Saving team data to file.\");\n\n try {\n FileOutputStream fil = new FileOutputStream(team_fil);\n FileOutputStream fil_backup = new FileOutputStream(team_backup);\n\n //Skriv til teams.txt\n ObjectOutputStream out = new ObjectOutputStream(fil);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n\n //Skriv til backup fil.\n out = new ObjectOutputStream(fil_backup);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n } catch (Exception e) {\n e.printStackTrace();\n admin.logging.globalserverMsg(\"Error saving team data to file.\");\n }\n }",
"public void saveToFile(File file, Model model) throws IOException;",
"public void save(List<T> data) {\n\t\ttry {\n\t\t\tFile file = new File(getFileLocation());\n\t\t\tif (!file.getParentFile().exists()) {\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(getFileLocation());\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(gson.toJson(data));\n\t\t\tbw.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void writeObjectToFile(Serializable object, String fileName) throws IOException {\n try (FileOutputStream fos = new FileOutputStream(fileName);\n ObjectOutputStream oos = new ObjectOutputStream(fos);) {\n oos.writeObject(object);\n }\n }",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}",
"private void saveToFile(File file) throws IOException {\n FileWriter fileWriter = null;\n try {\n fileWriter = new FileWriter(file);\n fileWriter.write(getSaveString());\n }\n finally {\n if (fileWriter != null) {\n fileWriter.close();\n }\n }\n }",
"public void save (File argFile) throws IOException;",
"void save(String filename);",
"public void writeToRestaurantFile()\r\n {\r\n\ttry(ObjectOutputStream toRestaurantFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/restaurant.dta\")))\r\n\t{\r\n toRestaurantFile.writeObject(restaurant);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Restaurant objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"@Override\n\tpublic void saveData(Object objectsToSave, String path) {\n\t\t\n\t\ttry {\n\t\t\tString objects = (String) objectsToSave;\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(path);\n\t\t\tfileOutputStream.write(objects.getBytes());\n\t\t\tfileOutputStream.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void saveData(){\r\n file.executeAction(modelStore);\r\n }",
"public static void save(File mazeFile, Object maze) throws IOException {\n\n /* IO stuff */\n ObjectOutputStream oo = new ObjectOutputStream( new FileOutputStream( mazeFile ) );\n\n oo.writeObject(maze);\n\n oo.close();\n }",
"public void saveToFile(SubjectDataContainer container, Path file) throws IOException {\n MoreFiles.createDirectoriesIfNotExists(file.getParent());\n try (BufferedWriter writer = Files.newBufferedWriter(file, StandardCharsets.UTF_8)) {\n GsonProvider.prettyPrinting().toJson(container.serialize(), writer);\n writer.flush();\n }\n }",
"private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"public void saveToFile(String file) throws IOException {\n if (file == null) {\n throw new IllegalArgumentException(\"file may not be null\");\n }\n \n save(new File(file));\n }",
"public static void main(String[] args) throws IOException {\nPerson p=new Person(101,\"reya\");\nFileOutputStream fo=new FileOutputStream(\"something.txt\");\nObjectOutputStream os=new ObjectOutputStream (fo);\nos.writeObject(p);\nSystem.out.println(\"Serialization Success\");//should implemet serializable concept\n\t}",
"public void writeToFile() {\n\t\ttry {\n\t\t\tFileOutputStream file = new FileOutputStream(pathName);\n\t\t\tObjectOutputStream output = new ObjectOutputStream(file);\n\n\t\t\tMap<String, HashSet<String>> toSerialize = tagToImg;\n\t\t\toutput.writeObject(toSerialize);\n\t\t\toutput.close();\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveGame(String fileName){\n try {\n File file1 = new File(fileName);\n FileOutputStream fileOutputStream = new FileOutputStream(file1);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(this);\n }catch (Exception e){\n System.err.println(\"Error when saving file\");\n }\n }",
"@Override\n public void setSaveFile(File file)\n {\n \n }",
"public void saveJobDataToFile(File file) {\n try {\n\n JAXBContext context = JAXBContext.newInstance(JobListWrapper.class);\n Marshaller m = context.createMarshaller();\n m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n // Wrapping our job data.\n JobListWrapper wrapper = new JobListWrapper();\n wrapper.setJobs(jobData);\n\n // Marshalling and saving XML to the file.\n m.marshal(wrapper, file);\n\n // Save the file path to the registry.\n setJobFilePath(file);\n\n } catch (Exception e) { // catches ANY exception\n e.printStackTrace();\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"Could not save data\");\n alert.setContentText(\"Could not save data to file:\\n\" + file.getPath());\n\n alert.showAndWait();\n }\n }",
"void saveObject(DataObject sdo, XMLStreamWriter writer) throws XMLStreamException;",
"private void writeToFile() {\n try {\n FileOutputStream fos = new FileOutputStream(f);\n String toWrite = myJSON.toString(4);\n byte[] b = toWrite.getBytes();\n fos.write(b);\n fos.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}",
"public void save(File file) {\n //new FileSystem().saveFile(addressBook, file);\n }",
"public void serialize(T t) throws IOException {\n FileOutputStream fileOutputStream = new FileOutputStream(this.mFile);\n BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);\n DataOutputStream dataOutputStream = new DataOutputStream(bufferedOutputStream);\n this.mCodec.serialize(t, dataOutputStream);\n dataOutputStream.flush();\n $closeResource(null, dataOutputStream);\n $closeResource(null, bufferedOutputStream);\n $closeResource(null, fileOutputStream);\n }",
"public void saveToFile(final File file) throws IOException, AnalysisConfigurationException;",
"private void saveToFileData() {//Context context) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(fileNameData, Context.MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(Data.userData);\n objectOutputStream.close();\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void saveData() {\n }",
"public static void saveDataToFile(File file, XmlSerializableResidentBook residentBook)\n throws FileNotFoundException {\n try {\n XmlUtil.saveDataToFile(file, residentBook);\n } catch (JAXBException e) {\n assert false : \"Unexpected exception \" + e.getMessage();\n }\n }",
"private void serializeObject(String filename, Object content)\n throws IOException\n {\n synchronized(filename)\n {\n FileOutputStream fileOut = new FileOutputStream(filename);\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(content);\n out.close();\n fileOut.close();\n }\n }",
"public void save(Item file) {\n\t\tthis.getItemdao().save(file);\r\n\t}",
"public void saveToFile(File file) {\n\t\ttry {\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(file));\n\t\t \t\n\t\t \t// write the column names\n\t\t \twriteStrings(out, colNames);\n\t\t \t\n\t\t \t// write all the data\n\t\t \tfor (int i=0; i<data.size(); i++) {\n\t\t \t\twriteStrings(out, data.get(i));\n\t\t \t}\n\t\t \t\n\t\t \tout.close();\n\t\t }\n\t\t catch (IOException e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t}",
"public void saveToFile(File file) throws CoreException {\n\tOutputStream stream = null;\n\n\ttry {\n\t stream = new FileOutputStream(file);\n\t saveToStream(stream);\n\n\t} catch (IOException e) {\n\t throwWriteException(e);\n\n\t} finally {\n\t try {\n\t\tif (stream != null)\n\t\t stream.close();\n\t } catch (IOException e) {\n\t }\n\t}\n }",
"private static void LessonSerialization() {\n PersonDAO personDAO = new PersonDAOImpl();\n Person person = personDAO.getPersonById(1);\n\n // serialize to a text file\n try {\n FileOutputStream fileOut = new FileOutputStream(\"./newfile.txt\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(person);\n out.close();\n fileOut.close();\n System.out.println(\"Person Object serialized and written to file: newfile.txt\");\n System.out.println(\"Serialized Object: \" + person.ToString());\n } catch(IOException ioEx) {\n System.out.println(ioEx);\n }\n }",
"public static void writeObjectToDisk(Object obj, String name) throws IOException {\r\n\t\t// Create file output stream\r\n\t\tFileOutputStream fileOutStr = new FileOutputStream(name);\r\n\t\t// Create object output stream and write object\r\n\t\tObjectOutputStream objOutStr = new ObjectOutputStream(fileOutStr);\r\n\t\tobjOutStr.writeObject(obj);\r\n\t\t// Close all streams\r\n\t\tobjOutStr.close();\r\n\t\tfileOutStr.close();\r\n\t\tSystem.out.printf(\"Serialized data is saved in a file - \" + name); // Printing message and file name which is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// saved\r\n\t}",
"public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}",
"@Override\n\tpublic void write(Object obj, File file) throws IJunitException {\n\t\t\n\t}",
"public void writeToEmployeeListFile()\r\n {\r\n\ttry(ObjectOutputStream toEmployeeListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/employeelist.dta\")))\r\n\t{\r\n toEmployeeListFile.writeObject(employeeList);\r\n employeeList.saveStaticEmpRunNr(toEmployeeListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Ansatt objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"static void WriteEmployeeObjectIntoFile(Employee emp,String filename)\n\t{\n\t\t\n\t try\n\t {\n\t FileOutputStream fileOut =\n\t new FileOutputStream(filename);\n\t ObjectOutputStream out = new ObjectOutputStream(fileOut);\n\t //Main write method\n\t out.writeObject(emp);\n\t out.close();\n\t fileOut.close();\n\t System.out.printf(\"Serialized data is saved in \" + filename);\n\t }catch(IOException i)\n\t {\n\t i.printStackTrace();\n\t }\n\t}",
"public int saveFile(File file)\r\n {\r\n try \r\n {\r\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file));\r\n oos.writeObject(root);\r\n return 0;\r\n } \r\n catch (FileNotFoundException ex) \r\n {\r\n System.out.println(\"A file related error has occurred while saving file: \" + ex);\r\n return 1;\r\n } \r\n catch (IOException ex) \r\n {\r\n System.out.println(\"A file related error has occurred while saving file: \" + ex);\r\n return 1;\r\n }\r\n }",
"@Override\n public void saveFile(Object o, File file, String ext)\n throws IOException {\n dest = file;\n }",
"void saveAs() {\n writeFile.Export();\n }",
"void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;",
"private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);//goes stream based on filename\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); //create buffer writer\n Gson gson = new Gson();\n gson.toJson(countbookList, out);//convert java object to json string & save in output\n out.flush();\n fos.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"public boolean saveData() throws FileNotFoundException, IOException {\n\t\t\n\t\tFile f = new File(FILE_SAVE_PATH);\n\t\t\n\t\tboolean wasSaved = false;\n\t\t\n\t\tif(f.exists()) {\n\t\t\t\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(FILE_SAVE_PATH));\n\t\t\toos.writeObject(students);\n\t\t\toos.close();\n\t\t\twasSaved = true;\n\t\t}\n\t\t\n\t\treturn wasSaved;\n\t}",
"public static void writeObjectInFile(File file, Object objToWrite) throws Exception {\n FileOutputStream fileOutputStream = null;\n ObjectOutputStream objectOutputStream = null;\n try {\n fileOutputStream = new FileOutputStream(file);\n objectOutputStream = new ObjectOutputStream(fileOutputStream);\n\n // Write objects to file\n objectOutputStream.writeObject(objToWrite);\n } finally {\n objectOutputStream.close();\n fileOutputStream.close();\n }\n }",
"public static void serialize(String filePath) throws IOException {\n if (filePath == null) {\n throw new IllegalArgumentException(\"Filepath cannot be null\");\n }\n\n List<Object> toSave = new ArrayList<>();\n toSave.add(models);\n if (userData != null) {\n toSave.add(userData);\n }\n\n try {\n FileOutputStream fos = new FileOutputStream(filePath, false);\n ObjectOutputStream out = new ObjectOutputStream(fos);\n out.writeObject(toSave);\n\n out.flush();\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static boolean saveToFile(Object o, String fileName) {\n FileOutputStream fos = null;\n BufferedOutputStream bos = null;\n ObjectOutputStream oos = null;\n File objectFile = null;\n\n objectFile = new File(fileName);\n try {\n fos = new FileOutputStream(objectFile);\n bos = new BufferedOutputStream(fos);\n oos = new ObjectOutputStream(bos);\n oos.writeObject(o);\n oos.close();\n bos.close();\n fos.close();\n } catch (FileNotFoundException e) {\n return false;\n } catch (IOException e) {\n return false;\n }\n return true;\n }",
"public abstract void save(FileWriter fw) throws IOException;",
"public static void serialize(Object obj, String fileName) throws IOException {\n\t\tFileOutputStream fos = new FileOutputStream(fileName);\n\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\toos.writeObject(obj);\n\n\t\tfos.close();\n\t}",
"void save();",
"void save();",
"void save();",
"private void writeToFile(Contacts _data, String _filename) throws IOException {\n\n File mydir = this.getDir(\"mydir\", Context.MODE_PRIVATE); //Creating an internal dir;\n File fileWithinMyDir = new File(mydir, _filename); //Getting a file within the dir.\n FileOutputStream out = new FileOutputStream(fileWithinMyDir); //Use the stream as usual to write into the file.\n ObjectOutputStream oos = new ObjectOutputStream(out);\n\n if (mContacts == null){\n mContacts = new Contacts();\n }\n mContacts.setData(_data);\n oos.writeObject(mContacts);\n oos.close();\n\n }",
"private void saveData() {\n\t\tlogger.trace(\"saveData() is called\");\n\t\t\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFileOutputStream fileOut = new FileOutputStream(\"server-info.dat\");\n\t\t\tout = new ObjectOutputStream(fileOut);\n\t\t\tout.writeObject(jokeFile);\n\t\t\tout.writeObject(kkServerPort);\n\t\t\tout.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\t\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t} \n\t\tfinally {\n\t\t\tif (out != null){\n\t\t\t\ttry{\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static final void serializeToFile(Object object,String filename)\n\t{\n\t\t// Define local constants.\n\n\t\tString METHOD_NAME = \"serializeToFile\";\n\n\t\t// Check the parameters received and throw the appropriate\n\t\t// exception if necessary.\n\n\t\tif ((null == object) || (null == filename))\n\t\t{\n\t\t\tthrow new NullPointerException(Messages.buildErrorMessage(CLASS_NAME,\n\t\t\t METHOD_NAME,\n\t\t\t Messages.NULL_PARAMETER_MSG));\n\t\t}\n\n\t\tif (0 == filename.length())\n\t\t{\n\t\t\tthrow new IllegalArgumentException(Messages.buildErrorMessage(CLASS_NAME,\n\t\t\t METHOD_NAME,\n\t\t\t Messages.ZERO_LENGTH_PARAMETER_MSG));\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tObjectOutputStream objectOutputStream =\n\t\t\t\tnew ObjectOutputStream(new FileOutputStream(filename));\n\t\t\tobjectOutputStream.writeObject(object);\n\t\t\tobjectOutputStream.close();\n\t\t}\n\n\t\tcatch (IOException exception)\n\t\t{\n\t\t\tSystem.out.println(\"Caught: \" + exception);\n\t\t}\n\t}"
]
| [
"0.75939846",
"0.74093735",
"0.7344652",
"0.73194456",
"0.7203646",
"0.7160934",
"0.705622",
"0.70444876",
"0.69595057",
"0.69087625",
"0.6888298",
"0.68349224",
"0.67695487",
"0.67532784",
"0.66992104",
"0.66873854",
"0.6686645",
"0.6678756",
"0.6675702",
"0.66115385",
"0.6587698",
"0.65259045",
"0.6499606",
"0.6497957",
"0.6495697",
"0.6473847",
"0.6459122",
"0.6446822",
"0.64441997",
"0.6441573",
"0.64307904",
"0.64156044",
"0.6403766",
"0.63990223",
"0.6377176",
"0.6351138",
"0.6333833",
"0.6326564",
"0.63223726",
"0.632023",
"0.63122475",
"0.6310521",
"0.63054264",
"0.6275997",
"0.6268484",
"0.6257721",
"0.625717",
"0.624189",
"0.6223695",
"0.62221307",
"0.6219415",
"0.6209828",
"0.6202164",
"0.62015957",
"0.6196241",
"0.61948264",
"0.6193587",
"0.6186954",
"0.618423",
"0.61828744",
"0.6182597",
"0.61658317",
"0.6160831",
"0.6159668",
"0.6157909",
"0.61403733",
"0.61278504",
"0.612649",
"0.6114234",
"0.6105876",
"0.60974586",
"0.6096567",
"0.6096481",
"0.6092276",
"0.6089188",
"0.6066517",
"0.60587764",
"0.60566264",
"0.6041822",
"0.60341746",
"0.60256076",
"0.6024545",
"0.60129213",
"0.60027534",
"0.60020226",
"0.59994775",
"0.5997869",
"0.598736",
"0.59826964",
"0.59793705",
"0.5979047",
"0.59756845",
"0.59669906",
"0.59657943",
"0.59649605",
"0.59649605",
"0.59649605",
"0.5963603",
"0.59616727",
"0.59573364"
]
| 0.78280574 | 0 |
loads data from a given file location | public static Object load(String fileName) throws Exception {
try (ObjectInputStream in = new ObjectInputStream( Files.newInputStream(Paths.get(fileName)) )) {
return in.readObject();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"File getLoadLocation();",
"@Override\n\tpublic void loadData() throws FileNotFoundException {\n\t\tthis.getPromoShare();\n\t}",
"public abstract void load() throws IOException;",
"public void load(File source);",
"public void load (File file) throws Exception;",
"protected abstract void loadData();",
"void massiveModeLoading( File dataPath );",
"private void load(FileInputStream input) {\n\t\t\r\n\t}",
"@Override\n void load(String data) {\n }",
"void load(File file);",
"public abstract void loadData();",
"public abstract void loadData();",
"public static void load(){\n StringBuilder maleNamesString = new StringBuilder();\n try (Scanner maleNamesFile = new Scanner(mnames)){\n while (maleNamesFile.hasNext()) {\n maleNamesString.append(maleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the fnames.json file\n StringBuilder femaleNamesString = new StringBuilder();\n try (Scanner femaleNamesFile = new Scanner(fnames)){\n while (femaleNamesFile.hasNext()) {\n femaleNamesString.append(femaleNamesFile.next());\n }\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the snames.json file\n StringBuilder surNamesString = new StringBuilder();\n try (Scanner surNamesFile = new Scanner(snames)){\n while (surNamesFile.hasNext()) {\n surNamesString.append(surNamesFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n //Create a string from the locations.json file\n StringBuilder locationsString = new StringBuilder();\n try (Scanner locationsFile = new Scanner(locationsJson)){\n while (locationsFile.hasNext()) {\n locationsString.append(locationsFile.next());\n }\n\n }\n catch(FileNotFoundException e){\n e.printStackTrace();\n return;\n }\n\n maleNames = (Names)convertJsonToObject(maleNamesString.toString(), new Names());\n\n femaleNames = (Names)convertJsonToObject(femaleNamesString.toString(), new Names());\n\n surNames = (Names)convertJsonToObject(surNamesString.toString(), new Names());\n\n locations = (Locations)convertJsonToObject(locationsString.toString(), new Locations());\n }",
"public void load(){\n // Recover docIDs\n try(Reader reader = new FileReader(\"postings/docIDs.json\")){\n this.docIDs = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, String>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/docLengths.json\")){\n this.docLengths = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try(Reader reader = new FileReader(\"postings/titleToNumber.json\")){\n this.titleToNumber = (new Gson()).fromJson(reader,\n new TypeToken<Map<String, Integer>>(){}.getType());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void singleModeLoading( File dataPath, File resultsPath, int scenarioNumber );",
"public void load (IFile file) throws Exception;",
"public abstract void load();",
"private void loadData() {\n\n \tInputStream inputStream = this.getClass().getResourceAsStream(propertyFilePath);\n \n //Read configuration.properties file\n try {\n //prop.load(new FileInputStream(propertyFilePath));\n \tprop.load(inputStream);\n //prop.load(this.getClass().getClassLoader().getResourceAsStream(\"configuration.properties\"));\n } catch (IOException e) {\n System.out.println(\"Configuration properties file cannot be found\");\n }\n \n //Get properties from configuration.properties\n browser = prop.getProperty(\"browser\");\n testsiteurl = prop.getProperty(\"testsiteurl\");\n defaultUserName = prop.getProperty(\"defaultUserName\");\n defaultPassword = prop.getProperty(\"defaultPassword\");\n }",
"public void load() ;",
"public void loadFile(File p_file) throws IOException;",
"public void load(){\n Player temp;\n try{\n FileInputStream inputFile = new FileInputStream(\"./data.sec\");\n ObjectInputStream objectIn = new ObjectInputStream(inputFile);\n temp = (Player)objectIn.readObject();\n Arena.CUR_PLAYER = temp;\n objectIn.close();\n inputFile.close(); \n }\n catch(FileNotFoundException e ){\n System.err.print(\"data.sec not found\");\n }\n catch(IOException e){\n System.out.println(\"Error 201\");\n }\n catch(ClassNotFoundException e){\n System.out.println(\"Error 202\");\n }\n }",
"private void loadData() {\n FileInputStream fis;\n\n try {\n fis = openFileInput(DATA_FILE);\n user = (User) new JsonReader(fis).readObject();\n fis.close();\n } catch(Exception e) {\n Log.i(\"Exception :\", e.toString());\n }\n }",
"private void loadData() {\n\t\tlogger.trace(\"loadData() is called\");\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fileIn = new FileInputStream(\"server-info.dat\");\n\t\t\tObjectInputStream in = new ObjectInputStream(fileIn);\n\t\t\tjokeFile = (String ) in.readObject();\n\t\t\tkkServerPort = (int) in.readObject();\n\t\t\tin.close();\n\t\t} catch (Exception e) {\n\t\t\tjokeFile = \"kk-jokes.txt\";\n\t\t\tkkServerPort = 5555;\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.err.println(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t\tlogger.info(\"server-info.dat file is likely missing but it should be created automatically when this app is closed.\");\n\t\t}\t\n\t}",
"public void load() {\n }",
"public void load();",
"public void load();",
"void loadData();",
"void loadData();",
"protected void loadData()\n {\n }",
"public void load (String argFileName) throws IOException;",
"public boolean load(String file);",
"public Resource load(String filename) throws MalformedURLException;",
"void loadFromFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile source = new File(directory, FILE_NAME);\n\t\t\tMap<String, Scoreboard> scoreboards = new HashMap<String, Scoreboard>();\n\t\t\tif (source.exists()) {\n\t\t\t\tJsonReader reader = new JsonReader(new FileReader(source));\n\t\t\t\treader.beginArray();\n\t\t\t\twhile (reader.hasNext()) {\n\t\t\t\t\tScoreboard scoreboard = readScoreboard(reader);\n\t\t\t\t\tscoreboards.put(scoreboard.getName(), scoreboard);\n\t\t\t\t}\n\t\t\t\treader.endArray();\n\t\t\t\treader.close();\n\t\t\t} else {\n\t\t\t\tsource.createNewFile();\n\t\t\t}\n\t\t\tthis.scoreboards = scoreboards;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }",
"public void readData() throws FileNotFoundException {\n this.plane = readPlaneDimensions();\n this.groupBookingsList = readBookingsList();\n }",
"@Override\n public void load(String keyWord, String fileName){\n FileReader loadDetails;\n String record;\n try{\n loadDetails=new FileReader(fileName);\n BufferedReader bin=new BufferedReader(loadDetails);\n while (((record=bin.readLine()) != null)){\n if ((record).contentEquals(keyWord)){\n setUsername(record);\n setPassword(bin.readLine());\n setFirstname(bin.readLine());\n setLastname(bin.readLine());\n setDoB((Date)DMY.parse(bin.readLine()));\n setContactNumber(bin.readLine());\n setEmail(bin.readLine());\n setSalary(Float.valueOf(bin.readLine()));\n setPositionStatus(bin.readLine());\n homeAddress.load(bin);\n }//end if\n }//end while\n bin.close();\n }//end try\n catch (IOException ioe){}//end catch\n catch (ParseException ex) {\n Logger.getLogger(Product.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void loadFile(String fname) \n\t{\n\t\t// use Scanner used to read the file\n\t\ttry{\n\t\t\tScanner scan = new Scanner(new FileReader(fname));\n\t\t\t//read in number of row and column in the first line\n\t\t\treadRC(scan);\n\t\t\treadMaze(scan);\n\t\t\t//close the scanner\n\t\t\tscan.close();\t\t\t\t\t\t\t\t\n\t\t}catch(FileNotFoundException e){\n\t\t\tSystem.out.println(\"FileNotFound\"+e.getMessage());\n\t\t}\n\t}",
"public void\tload(String fileName) throws IOException;",
"protected void loadDataFromFile() throws IOException {\n \t\tInputStream is = null;\n \n \t\ttry {\n \t\t\tis = new BufferedInputStream(new GZIPInputStream(\n \t\t\t\t\tnew FileInputStream(this.dataFile)));\n \n \t\t\tint dataOffset = 0;\n \t\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\n \n \t\t\twhile (true) {\n \t\t\t\tint b = is.read();\n \n \t\t\t\tif (b == 0) {\n \t\t\t\t\t// field separator reached.\n \t\t\t\t\tif (this.componentId == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \t\t\t\t\t\tcomponentId = new String(URLEncoding.decode(encoded),\n \t\t\t\t\t\t\t\t\"UTF-8\");\n \t\t\t\t\t} else if (this.query == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tString queryXml = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \n \t\t\t\t\t\t\t// parse the query.\n \t\t\t\t\t\t\tSAXReader reader = new SAXReader();\n \t\t\t\t\t\t\tElement root = reader.read(\n \t\t\t\t\t\t\t\t\tnew StringReader(queryXml))\n \t\t\t\t\t\t\t\t\t.getRootElement();\n \t\t\t\t\t\t\tthis.query = root.getText();\n \t\t\t\t\t\t} catch (Exception e) {\n \t\t\t\t\t\t\tthrow new IOException(\n \t\t\t\t\t\t\t\t\t\"Cannot unmarshall cached query.\");\n \t\t\t\t\t\t}\n \t\t\t\t\t} else if (this.optionalParams == null) {\n \t\t\t\t\t\tbyte[] encoded = os.toByteArray();\n \t\t\t\t\t\tdataOffset += encoded.length;\n \t\t\t\t\t\tdataOffset += 1; // include the separator field\n \n \t\t\t\t\t\tif (encoded.length > 0) {\n \t\t\t\t\t\t\tMap optionalParams = new HashMap();\n \t\t\t\t\t\t\tString urlEncoded = new String(URLEncoding\n \t\t\t\t\t\t\t\t\t.decode(encoded), \"UTF-8\");\n \t\t\t\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(\n\t\t\t\t\t\t\t\t\turlEncoded, \"&\", false);\n \n \t\t\t\t\t\t\twhile (tokenizer.hasMoreTokens()) {\n String param = tokenizer.nextToken();\n\t\t\t\t\t\t\t\tString key = param.substring(0, param.indexOf('='));\n\t\t\t\t\t\t\t\tString value = param.substring(param.indexOf('=')+1);\n \t\t\t\t\t\t\t\toptionalParams.put(key, value);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tthis.optionalParams = optionalParams;\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tthis.optionalParams = null;\n \t\t\t\t\t\t}\n \n \t\t\t\t\t\tthis.dataOffset = dataOffset;\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \n \t\t\t\t\tos.reset();\n \t\t\t\t} else if (b == -1) {\n \t\t\t\t\tthrow new IOException(\"Premature end of cached file.\");\n \t\t\t\t} else {\n \t\t\t\t\tos.write(b);\n \t\t\t\t}\n \t\t\t}\n \t\t} finally {\n \t\t\tif (is != null) {\n \t\t\t\ttry {\n \t\t\t\t\tis.close();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tlog.error(\"Cannot close input cache file: \"\n \t\t\t\t\t\t\t+ this.dataFile.getAbsolutePath());\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"public void load() {\n\t}",
"public void loadData ( ) {\n\t\tinvokeSafe ( \"loadData\" );\n\t}",
"void load();",
"void load();",
"@Override\n\tpublic Object load(String file) {\n\t\treturn null;\n\t}",
"private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public static void load(FileIO fileIO) \r\n\t{\n\t\t\r\n\t}",
"@Override\n public Resource load(String filename, String path) {\n S3Object s3_file = this.s3client.getObject(\n this.s3_storage_properties.getBucketName(), path + \"/\" + filename\n );\n S3ObjectInputStream file_stream = s3_file.getObjectContent();\n\n Resource resource = new InputStreamResource(file_stream);\n if (resource.exists() || resource.isReadable()) {\n Application.logger.info(\"Loaded \"+path + \"/\" + filename+\" into S3\");\n return resource;\n }\n else {\n throw new StorageFileNotFoundException(\n \"Could not read file: \" + filename);\n }\n }",
"void loadProducts(String filename);",
"public void readFromFile() {\n\n\t}",
"public void load(String url);",
"public static void load() {\n }",
"private void loadData(){\n try (BufferedReader br = new BufferedReader(new FileReader(this.fileName))) {\n String line;\n while((line=br.readLine())!=null){\n E e = createEntity(line);\n super.save(e);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected abstract void loader() throws IOException;",
"public FileData(String file_path) {\n\t\tpath = file_path;\n\t\ttry {\n\t\t\topenAndReadFile();\n\t\t}\n\t\tcatch (IOException anything) {\n\t\t\tSystem.out.println(\"Couldn't open and read \" + file_path + \". Error: \" + anything.getMessage());\n\t\t}\n\t}",
"private void loadFromFile(String fileName) {\n try {\n InputStream inputStream = this.openFileInput(fileName);\n if (inputStream != null) {\n ObjectInputStream input = new ObjectInputStream(inputStream);\n boardManager = (BoardManager) input.readObject();\n inputStream.close();\n }\n } catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n } catch (ClassNotFoundException e) {\n Log.e(\"login activity\", \"File contained unexpected data type: \" + e.toString());\n }\n }",
"@PostConstruct\n private void loadFiles() {\n \n\n File dir = new File(Constants.DIR_PATH);\n File[] files = dir.listFiles(); //stores list of files in given paths\n String line=\"\";\n\n for(File file : files){\n try {\n br = new BufferedReader(new FileReader(file));\n br.readLine();\n while((line=br.readLine())!=null){\n\n String []token=line.split(Constants.DELIMETER);\n String fileName=file.getName().toUpperCase();\n\n FlightData newflight = new FlightData(fileName.substring(0,fileName.lastIndexOf(\".\")),token[0],token[1],token[2],token[3],token[4],token[5],Double.parseDouble(token[6]),token[7],token[8]);\n flightDataDao.insertFlightData(newflight);\n }\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }",
"void distributedSingleModeLoading( File dataPath, File resultsPath, int scenarioNumber );",
"public void fileLoaderMethod(String filename) {\n\t\t\n\t\tString fileloc = \"\";\n\t\tif(!prf.foldername.getText().equals(\"\"))\n\t\t\tfileloc += prf.foldername.getText()+\"/\";\n\t\t\n\t\tfileloc += filename;\n\t\tFile fl = new File(fileloc);\n\t\t\n\t\tString code = \"\";\n\t\t\n\t\tif(!fl.exists()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"The specified file doesnt exist at the given location.\");\n\t\t} else {\t\n\t\t\ttry {\n\t\t\t\tFileReader flrd = new FileReader(fileloc);\n\t\t\t\tBufferedReader bufread = new BufferedReader(flrd);\t\t\n\t\t\t\tString str;\n\t\t\t\twhile((str = bufread.readLine()) != null) {\n\t\t\t\t\tcode += str + \"\\n\";\n\t\t\t\t}\t\t\n\t\t\t\tbufread.close();\n\t\t\t\tflrd.close();\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\t\n\t\tinterpretorMainMethod(code, 0);\n\t}",
"private void loadData(final String filePath)\r\n {\r\n try\r\n {\r\n File fXMLFile = new File(filePath);\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\r\n Document doc = dBuilder.parse(fXMLFile);\r\n parseXMLDocument(doc);\r\n }\r\n catch (ParserConfigurationException ex)\r\n {\r\n System.err.println(\"\\t ParserConfigurationException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (SAXException ex)\r\n {\r\n System.err.println(\"\\t SAXException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n catch (IOException ex)\r\n {\r\n System.err.println(\"\\t IOException caught at XMLReader.loadData\");\r\n ex.printStackTrace();\r\n }\r\n }",
"private static void load(){\n }",
"@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}",
"public void initData(String url, String fileName, String fileLocation) {\r\n downloadURL = url;\r\n this.fileName = fileName;\r\n final String path = fileLocation + File.separator + fileName;\r\n this.fileLocation = new File(path);\r\n titledPane.setText(fileName);\r\n fileAddress.setText(downloadURL);\r\n }",
"public void loadJobDataFromFile(File file) {\n try {\n\n JAXBContext context = JAXBContext.newInstance(JobListWrapper.class);\n Unmarshaller um = context.createUnmarshaller();\n\n // Reading XML from the file and unmarshalling.\n JobListWrapper wrapper = (JobListWrapper) um.unmarshal(file);\n\n jobData.clear();\n jobData.addAll(wrapper.getJobs());\n\n // Save the file path to the registry.\n setJobFilePath(file);\n\n } catch (Exception e) { // catches ANY exception\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Error\");\n alert.setHeaderText(\"Could not load data\");\n alert.setContentText(\"Could not load data from file:\\n\" + file.getPath());\n\n alert.showAndWait();\n }\n }",
"private void fileRead(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\t// create file\n\t\t\tFile file = new File(path);\n\t\t\tFileInputStream fileStream = new FileInputStream(file);\n\t\t\t\n\t\t\t// data read\n\t\t\tthis.dataContent = new byte[(int)file.length()];\n\t\t\tint ret = fileStream.read(this.dataContent, 0, (int)file.length());\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File Not Found : \" + e.getMessage());\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed File Read : \" + e.getMessage());\n\t\t}\n\t\t\n\t}",
"public void loadFile(View view) {\n // start the background file loading task\n LoadFileTask task = new LoadFileTask();\n task.execute();\n }",
"protected void loadFile(String s) {\n\t\tpush();\n\t\tfile.load(s, curves);\n\t\trecalculateCurves();\n\t\tpushNew();\n\t}",
"private void loadFromURL(String url) throws IOException {\n URL destination = new URL(url);\r\n URLConnection conn = destination.openConnection();\r\n Reader r = new InputStreamReader(conn.getInputStream());\r\n load(r);\r\n }",
"public abstract void loadFile(Model mod, String fn) throws IOException;",
"private void loadUser() {\n File dataFile = new File(getFilesDir().getPath() + \"/\" + DATA_FILE);\n\n if(dataFile.exists()) {\n loadData();\n } else { // First time CigCount is launched\n user = new User();\n }\n }",
"protected void loadFile(String resourcePath) {\n // Locate the resource in the classpath\n //URL fileUrl = this.getClass().getResource(resourcePath);\n //File f = new File(fileUrl.getFile());\n List<String[]> data = new LinkedList<>();\n String readLine;\n String[] splitLine;\n\n InputStream in = this.getClass().getResourceAsStream(resourcePath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n /*\n Attempt to read the data from the csv file, provided the input stream was\n actually opened and store the String[] by splitting.\n */\n try {\n log.info(\"Reading data from {}\", resourcePath);\n while((readLine = reader.readLine()) != null) {\n splitLine = readLine.split(DELIMITER);\n\n if (this.validateData(splitLine))\n data.add(splitLine);\n else\n log.error(\"Skipping {}\", readLine);\n }\n }\n catch(IOException e) {\n log.debug(e.getLocalizedMessage());\n }\n finally {\n IOUtils.closeQuietly(reader);\n IOUtils.closeQuietly(in);\n }\n\n //Using toMap collector to provide a keyMapper function that serves as a test for duplicates based on the passenger ID.\n //https://stackoverflow.com/questions/52148400/remove-duplicates-from-a-list-of-string-array\n //This will use the first element as a key and the currently selected element as the value for mapping\n this.lines = new LinkedList<>(\n data.stream().collect(Collectors.toMap(arr -> arr[0], Function.identity(),\n (a, b) -> a)).values());\n\n log.info(\"File {} with {} lines has been loaded\", resourcePath, lines.size());\n }",
"private void readData() {\n try (BufferedReader br = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream(fileName)))) {\n String line;\n while ((line = br.readLine()) != null) {\n String[] parts = line.split(\",\");\n int zip = Integer.parseInt(parts[0]);\n String name = parts[1];\n\n zipMap.put(zip, name);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void loadGame(File fileLocation, boolean replay);",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate void readMapFromFile() {\r\n\t\ttry {\r\n\t\t\tType type = new TypeToken<HashMap<String, Country>>() {}.getType();\r\n\t\t\tthis.daoMap = (HashMap<String, Country>) gson.fromJson(new FileReader(path), type);\r\n\t\t} catch (JsonSyntaxException | JsonIOException | FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\r\n\t}",
"public void loadFlights(String path) throws StorageException {\r\n // Get the file contents\r\n String[] lines = readFile(path);\r\n parseFlights(lines);\r\n }",
"private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }",
"public AggregateReferenceFileLoader(String scenarioFile) throws AggregateFileInitializationException {\n \t\tdataFile = scenarioFile;\n \t\tscenarioData = new File(dataFile);\n \t\tif(!isDataFile(scenarioData)) {\n\t\t\tthrow new AggregateFileInitializationException(\"Not a valid data file, must be .csv or .txt \"+dataFile);\n \t\t} \n \t\taggregateData = processFile();\n \t}",
"private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }",
"public void initLoadingFileEnviroment() {\n // file init\n try {\n DiskFileItemFactory fileFactory = new DiskFileItemFactory();\n File filepath = new File(DATA_PATH);\n fileFactory.setRepository(filepath);\n this._uploader = new ServletFileUpload(fileFactory);\n\n } catch (Exception ex) {\n System.err.println(\"Error init new file environment. \" + ex.getMessage());\n }\n }",
"private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}",
"public void load() throws ClassNotFoundException, IOException;",
"public abstract void readFromFile(String key, String value);",
"public void load() {\n handleLoad(false, false);\n }",
"public void load(String filePath){\r\n File loadFile = new File(filePath);\r\n if (!loadFile.exists()){\r\n System.out.println(\"I failed. There are no saved games.\");\r\n return;\r\n }\r\n FileInputStream fis = null;\r\n ObjectInputStream in = null;\r\n try {\r\n fis = new FileInputStream(filePath);\r\n in = new ObjectInputStream(fis);\r\n long versionUID = (long) in.readObject();\r\n if (versionUID != this.serialVersionUID) {\r\n throw new UnsupportedClassVersionError(\"Version mismatch for save game!\");\r\n }\r\n this.p = (Character) in.readObject();\r\n this.map = (SpecialRoom[][]) in.readObject();\r\n\r\n } catch (FileNotFoundException ex){\r\n System.out.println(\"The saved game was not found!\");\r\n ex.printStackTrace();\r\n } catch (IOException ex) {\r\n System.out.println(\"There was an error reading your save game :(\");\r\n ex.printStackTrace();\r\n System.out.println(\")\");\r\n } catch (ClassNotFoundException ex) {\r\n System.out.println(\"The version of the save game is not compatible with this game!\");\r\n ex.printStackTrace();\r\n } catch (UnsupportedClassVersionError ex) {\r\n System.out.println(ex.getMessage());\r\n ex.printStackTrace();\r\n } catch (Exception ex) {\r\n System.out.println(\"An unknown error occurred!\");\r\n }\r\n\r\n }",
"String [][] importData (String path);",
"public void load() throws FileNotFoundException {\n loadConfig();\n initRepos();\n }",
"default void load(String file) {\n load(new File(file));\n }",
"private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}",
"private void loadFromDisk(String filename) throws IOException {\n Reader r = new FileReader(filename);\r\n load(r);\r\n }",
"private static void loadFridgeData(Fridge fridgeInput) {\n fridge = fridgeInput;\n try {\n checkFridgeDataDirectory();\n } catch (Exception e) {\n StorageLoadingException exception = new StorageLoadingException(e);\n Ui.printExceptionMessage(exception);\n }\n }",
"private FileInputStream loadFile(String file)\n\t{\n\t\tlogger.info(\"Fetching File : \"+System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file);\n\t\ttry \n\t\t{\n\t\t\treturn(new FileInputStream(System.getProperty(\"user.dir\")+\"\\\\src\\\\main\\\\resources\\\\\"+file));\n\t\t} catch (FileNotFoundException e) {\t\t\t\t\n\t\t\tAssert.assertTrue(file+\" file is missing\", false);\n\t\t\treturn null;\n\t\t}\n\t}",
"public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}",
"private static OIFitsFile loadOIFits(final String fileLocation, final OIFitsChecker checker) throws IOException {\n //@todo test if file has already been loaded before going further ??\n\n final OIFitsFile oifitsFile;\n try {\n // retrieve oifits if remote or use local one\n if (FileUtils.isRemote(fileLocation)) {\n // TODO let the user customize the application file storage preference:\n final String parentPath = SessionSettingsPreferences.getApplicationFileStorage();\n\n final File localCopy = FileUtils.retrieveRemoteFile(fileLocation, parentPath, MimeType.OIFITS);\n\n if (localCopy != null) {\n // TODO: remove StatusBar !\n StatusBar.show(\"loading file: \" + fileLocation + \" ( local copy: \" + localCopy.getAbsolutePath() + \" )\");\n\n oifitsFile = OIFitsLoader.loadOIFits(checker, localCopy.getAbsolutePath());\n oifitsFile.setSourceURI(new URI(fileLocation));\n } else {\n // download failed:\n oifitsFile = null;\n }\n } else {\n // TODO: remove StatusBar !\n StatusBar.show(\"loading file: \" + fileLocation);\n\n oifitsFile = OIFitsLoader.loadOIFits(checker, fileLocation);\n }\n } catch (AuthenticationException ae) {\n throw new IOException(\"Could not load the file : \" + fileLocation, ae);\n } catch (IOException ioe) {\n throw new IOException(\"Could not load the file : \" + fileLocation, ioe);\n } catch (FitsException fe) {\n throw new IOException(\"Could not load the file : \" + fileLocation, fe);\n } catch (URISyntaxException use) {\n throw new IOException(\"Could not load the file : \" + fileLocation, use);\n }\n\n if (oifitsFile == null) {\n throw new IOException(\"Could not load the file : \" + fileLocation);\n }\n return oifitsFile;\n }",
"public void loadFile(File file1){\n\n\t\ttry{\n\t\t\tFileReader reader = new FileReader(file1);\n\t\t\tBufferedReader BR = new BufferedReader(reader);\n\n fname = file1.getName();\n pathname = file1.getParent();\n\n\t\t}\n\t\tcatch(IOException e){\n\t\t\tSystem.out.println(\"error\");\n\t\t}\n\n\n repaint();\n\n\t}",
"@PostConstruct\n public void loaddata() throws IOException {\n File file = ResourceUtils.getFile(configProvider.getFilePath());\n Reader in = new FileReader(file.getPath());\n Iterable<CSVRecord> records = CSVFormat.RFC4180.withHeader(\n \"locationid\", \"Applicant\", \"FacilityType\", \"cnn\", \"LocationDescription\", \"Address\", \"blocklot\", \"block\", \"lot\",\n \"permit\", \"Status\", \"FoodItems\", \"X\", \"Y\", \"Latitude\", \"Longitude\", \"Schedule\",\n \"dayshours\", \"NOISent\", \"Approved\", \"Received\", \"PriorPermit\", \"ExpirationDate\",\n \"Location\", \"Fire Prevention Districts\", \"Police Districts\",\n \"Supervisor Districts\", \"Zip Codes\", \"Neighborhoods (old)\"\n ).parse(in);\n\n Iterator<CSVRecord> iterator = records.iterator();\n iterator.next();\n // use our own ids because of how atomic integers work, we can't have a 0 for an id, so can't rely on outside sources.\n int i = 0;\n while (iterator.hasNext()) {\n CSVRecord record = iterator.next();\n FoodTruck truck = new FoodTruck(Float.parseFloat(record.get(\"Latitude\")), Float.parseFloat(record.get(\"Longitude\")),\n record.get(\"Address\"), record.get(\"FoodItems\"), ++i);\n //add food truck to datastore\n truckDataStore.addTruck(truck.getId(), truck);\n\n final Rectangle rect = new Rectangle(truck.getLat(), truck.getLon(),\n truck.getLat(), truck.getLon());\n //add food truck location + id to location data store.\n locationDataStore.getSpatialIndex().add(rect, truck.getId());\n }\n }",
"private void loadDataFromMemory(String filename){\n shoppingList.clear();\n new ReadFromMemoryAsync(filename, getCurrentContext(), new ReadFromMemoryAsync.AsyncResponse(){\n\n @Override\n public void processFinish(List<ShoppingItem> output) {\n shoppingList.addAll(output);\n sortItems();\n }\n }).executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n// for (ShoppingItem item: items) {\n// shoppingList.add(item);\n// }\n// sortItems();\n }",
"public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}",
"@Override\n public D loadInBackground() {\n mData = SerializeUtils.readSerializableObject(mContext, mFilename);\n return mData;\n }",
"@Override\n\tpublic Object load(String path, Object defaultObject) throws Exception {\n\t\tfinal Object[] object = new Object[1];\n\t\t\n\t\t// Stream\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(path);\n\t\t\tfinal ObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\t// Load an object\n\t\t\tobject[0] = ois.readObject();\n\n\t\t\t// Close stream\n\t\t\tois.close();\n\t\t} catch (FileNotFoundException fileNotFoundException){\n\t\t\t// Assign default object when the file is not found.\n\t\t\tobject[0] = defaultObject;\n\t\t}\n\t\t\n\t\t// Return object\n\t\treturn object[0];\n\t}",
"@Override\r\n\tpublic void loadAircraftData(Path p) throws DataLoadingException {\t\r\n\t\ttry {\r\n\t\t\t//open the file\r\n\t\t\tBufferedReader reader = Files.newBufferedReader(p);\r\n\t\t\t\r\n\t\t\t//read the file line by line\r\n\t\t\tString line = \"\";\r\n\t\t\t\r\n\t\t\t//skip the first line of the file - headers\r\n\t\t\treader.readLine();\r\n\t\t\t\r\n\t\t\twhile( (line = reader.readLine()) != null) {\r\n\t\t\t\t//each line has fields separated by commas, split into an array of fields\r\n\t\t\t\tString[] fields = line.split(\",\");\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//Creating an Aircraft object\r\n\t\t\t\tAircraft loadingIn = new Aircraft();\r\n\t\t\t\t\r\n\t\t\t\t//put some of the fields into variables: check which fields are where atop the CSV file itself\r\n\t\t\t\tloadingIn.setTailCode(fields[0]);\r\n\t\t\t\tloadingIn.setTypeCode(fields[1]);\r\n\t\t\t\t//Checking the manufacturer and setting it\r\n\t\t\t\tManufacturer manufacturer = null;\r\n\t\t\t\tString mString = fields[2];\r\n\t\t\t\tif(mString.equals(\"Boeing\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.BOEING;\r\n\t\t\t\telse if(mString.equals(\"Airbus\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.AIRBUS;\r\n\t\t\t\telse if(mString.equals(\"Bombardier\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.BOMBARDIER;\r\n\t\t\t\telse if(mString.equals(\"Embraer\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.EMBRAER;\r\n\t\t\t\telse if(mString.equals(\"Fokker\"))\r\n\t\t\t\t\tmanufacturer = Manufacturer.FOKKER;\r\n\t\t\t\telse\r\n\t\t\t\t\tmanufacturer = Manufacturer.ATR;\r\n loadingIn.setManufacturer(manufacturer);\r\n\t\t\t\tloadingIn.setModel(fields[3]);\r\n\t\t\t\tloadingIn.setSeats(Integer.parseInt(fields[4]));\r\n\t\t\t\tloadingIn.setCabinCrewRequired(Integer.parseInt(fields[5]));\r\n\t\t\t\tloadingIn.setStartingPosition(fields[6]);\r\n\t\t\t\tairCrafts.add(loadingIn);\r\n\t\t\t\t\r\n\t\t\t\t//print a line explaining what we've found\r\n\t\t\t\t/*System.out.println(\"Tail Code: \" + loadingIn.getTailCode() + \" TypeCode: \" + loadingIn.getTailCode() +\r\n\t\t\t\t\t\t\" Manufacturer: \" + loadingIn.getManufacturer() + \" Model: \" + loadingIn.getModel() +\r\n\t\t\t\t\t\t\" Seats and CabinCrew : \" + loadingIn.getSeats() + \" \" + loadingIn.getCabinCrewRequired()\r\n\t\t\t\t\t\t+ \" Starting Pos. \" + loadingIn.getStartingPosition());*/\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tcatch (IOException ioe) {\r\n\t\t\t//There was a problem reading the file\r\n\t\t\tthrow new DataLoadingException(ioe);\r\n\t\t}\r\n\t\tcatch (NumberFormatException e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error loading aircraft data\");\r\n\t\t\tDataLoadingException dle = new DataLoadingException();\r\n\t\t\tthrow dle;\r\n\t\t}\r\n\r\n\t}"
]
| [
"0.6898884",
"0.6836684",
"0.6545876",
"0.6537166",
"0.6530574",
"0.6497009",
"0.6413116",
"0.63871706",
"0.637065",
"0.6340555",
"0.6337036",
"0.6337036",
"0.6334166",
"0.6275853",
"0.62471795",
"0.6236691",
"0.6234228",
"0.62163115",
"0.61726207",
"0.61582637",
"0.6127883",
"0.6096132",
"0.6067312",
"0.60496444",
"0.6038077",
"0.6038077",
"0.6032604",
"0.6032604",
"0.6012917",
"0.5995634",
"0.5988131",
"0.59804106",
"0.59722495",
"0.5970988",
"0.596844",
"0.59468406",
"0.59391063",
"0.592747",
"0.59204",
"0.59031993",
"0.5902567",
"0.5885189",
"0.5885189",
"0.58694917",
"0.5860841",
"0.58525014",
"0.58513033",
"0.5850601",
"0.5843366",
"0.58386",
"0.58271146",
"0.582185",
"0.5820154",
"0.58149",
"0.5797399",
"0.5794208",
"0.57935834",
"0.5786335",
"0.57794607",
"0.5773145",
"0.5757131",
"0.57564825",
"0.5749799",
"0.573819",
"0.57378113",
"0.5735468",
"0.57297593",
"0.57263726",
"0.5723373",
"0.57201046",
"0.57153887",
"0.57082796",
"0.57006645",
"0.5699506",
"0.56941503",
"0.5691386",
"0.56894475",
"0.56877744",
"0.56838715",
"0.5682969",
"0.56767875",
"0.5674995",
"0.5669564",
"0.566189",
"0.5659668",
"0.56584674",
"0.56548566",
"0.5652271",
"0.56494755",
"0.56262964",
"0.5624371",
"0.5613604",
"0.561108",
"0.5608274",
"0.56072325",
"0.5604862",
"0.55974877",
"0.5586026",
"0.5573039",
"0.5572362",
"0.5567626"
]
| 0.0 | -1 |
This doesn't really need to be a dynamic method, since it doesn't use `this` | static void checkSignatures() {
Reader stringReader;
StringBuffer out;
FreecellOperations<?> model = FreecellModelCreator.create(
FreecellModelCreator.GameType.MULTIMOVE);
checkNewModel(
FreecellModelCreator.create(FreecellModelCreator.GameType
.MULTIMOVE),
FreecellModelCreator.create(FreecellModelCreator.GameType.MULTIMOVE)
.getDeck());
stringReader = new StringReader("C1 8 F1 q");
out = new StringBuffer();
checkNewController(
FreecellModelCreator.create(FreecellModelCreator.GameType.SINGLEMOVE),
FreecellModelCreator.create(FreecellModelCreator.GameType.SINGLEMOVE)
.getDeck(),
new FreecellController(stringReader, out));
checkNewController(
FreecellModelCreator.create(FreecellModelCreator.GameType.MULTIMOVE),
FreecellModelCreator.create(FreecellModelCreator.GameType.MULTIMOVE)
.getDeck(),
new FreecellController(stringReader, out));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public static void thisMethod() {\n }",
"protected abstract T self();",
"protected abstract T self();",
"protected abstract T self();",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public abstract Object mo26777y();",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"public void method(){}",
"protected abstract T getThis();",
"@Override\n protected void prot() {\n }",
"@Override\n public void apply() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void doIt() {\n\t\t\n\t}",
"@Override\n\tpublic void myMethod() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"protected abstract Set method_1559();",
"public void smell() {\n\t\t\n\t}",
"protected void h() {}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"abstract void method();",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private final T self() { return (T)this; }",
"private final T self() { return (T)this; }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void method_6349() {\r\n super.method_6349();\r\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"@Override\n public void get() {}",
"public void method_4270() {}",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"abstract Function get(Object arg);",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n\tpublic void realFun() {\n\n\t}",
"public abstract void mo70713b();",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void increaseThis();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo1184a(Object obj);",
"public abstract Object mo1771a();",
"public abstract String mo83558a(Object obj);",
"protected ForNonStaticMethod(Method method) {\n this.method = method;\n }",
"public void doSomething() {\n \n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"@Override\n\tprotected void interr() {\n\t}",
"private ChainingMethods() {\n // private constructor\n\n }",
"protected void doSomethingElse()\r\n {\r\n \r\n }",
"public abstract void mh();",
"public abstract String use();",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"protected abstract Self self();",
"public class_4 method_9() {\n return this.method_17();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public static void thisDemo() {\n\t}",
"private ProcessedDynamicData( ) {\r\n super();\r\n }",
"protected abstract MethodDescription accessorMethod();",
"@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 abstract void mo27386d();",
"public abstract void call();",
"private stendhal() {\n\t}",
"abstract public T doSomething();",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\t\t\t\t\tpublic Method handleSimpleMethod(Element parent, FMethod src) {\n\t\t\t\t\t\treturn super.handleSimpleMethod(parent, src);\n\t\t\t\t\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"@Override\n public void test() {\n \n }",
"@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }",
"public void method_199() {}",
"@Override\n public void b() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"boolean dynamic();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"private void sub() {\n\n\t}",
"public abstract void mo56925d();",
"public void method_115() {}",
"protected abstract void switchOnCustom();",
"@Override\n\tprotected void logic() {\n\n\t}",
"public void foo() {\r\n\t}",
"@Override\n\tpublic void doYouWantTo() {\n\n\t}",
"private void test() {\n\n\t}",
"public abstract void wrapup();",
"public void method_193() {}",
"public void method_192() {}",
"protected abstract boolean invokable(Resource r);",
"StackManipulation virtual(TypeDescription invocationTarget);"
]
| [
"0.67245024",
"0.6397118",
"0.62968636",
"0.62968636",
"0.62968636",
"0.627879",
"0.6248976",
"0.61929625",
"0.61929625",
"0.6023068",
"0.601901",
"0.5990302",
"0.59865034",
"0.59765345",
"0.5972805",
"0.59598255",
"0.59521353",
"0.5931428",
"0.59259266",
"0.5912702",
"0.590562",
"0.5893752",
"0.5882375",
"0.58583426",
"0.58520526",
"0.5829926",
"0.5823728",
"0.5819298",
"0.5817398",
"0.5812706",
"0.5796644",
"0.5792099",
"0.5792099",
"0.5769265",
"0.57679355",
"0.5758509",
"0.5758509",
"0.5717844",
"0.5716967",
"0.56977326",
"0.5684529",
"0.5682397",
"0.5673898",
"0.5666631",
"0.5665771",
"0.56552887",
"0.5646776",
"0.56312823",
"0.5628654",
"0.56276006",
"0.5618095",
"0.5602317",
"0.5599543",
"0.5597141",
"0.5597141",
"0.5597141",
"0.5596507",
"0.5593294",
"0.5578234",
"0.5572491",
"0.55674195",
"0.5553253",
"0.55525416",
"0.5552521",
"0.5547077",
"0.5534885",
"0.5529097",
"0.5526931",
"0.5524203",
"0.5523394",
"0.5523394",
"0.5522606",
"0.5520811",
"0.5520224",
"0.5506869",
"0.5503792",
"0.55037403",
"0.54993516",
"0.54957694",
"0.54903656",
"0.54883367",
"0.5480705",
"0.5477177",
"0.5474653",
"0.5469322",
"0.5456318",
"0.5443656",
"0.54353005",
"0.5434723",
"0.5434033",
"0.54332036",
"0.5419435",
"0.5417954",
"0.54168534",
"0.54145104",
"0.54122376",
"0.54121435",
"0.54109216",
"0.5403145",
"0.53963286",
"0.53946793"
]
| 0.0 | -1 |
This doesn't really need to be a dynamic method, since it doesn't use `this` | static <K> void checkNewController(FreecellOperations<K> model, List<K> deck,
IFreecellController<K> controller) {
String input = "4 3";
try {
controller.playGame(deck, model, 7, 4, false);
} catch (IOException e) {
// No need to do anything with type checks
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"public static void thisMethod() {\n }",
"protected abstract T self();",
"protected abstract T self();",
"protected abstract T self();",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public abstract Object mo26777y();",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"public void method(){}",
"protected abstract T getThis();",
"@Override\n protected void prot() {\n }",
"@Override\n public void apply() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void doIt() {\n\t\t\n\t}",
"@Override\n\tpublic void myMethod() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"protected abstract Set method_1559();",
"public void smell() {\n\t\t\n\t}",
"protected void h() {}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"abstract void method();",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private final T self() { return (T)this; }",
"private final T self() { return (T)this; }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void method_6349() {\r\n super.method_6349();\r\n }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public void method_4270() {}",
"@Override\n public void get() {}",
"@Override\n\tpublic void apply() {\n\t\t\n\t}",
"abstract Function get(Object arg);",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"public abstract void mo70713b();",
"@Override\n\tpublic void realFun() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public abstract void increaseThis();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo1184a(Object obj);",
"public abstract Object mo1771a();",
"public abstract String mo83558a(Object obj);",
"protected ForNonStaticMethod(Method method) {\n this.method = method;\n }",
"public void doSomething() {\n \n }",
"@Override\n\tprotected void interr() {\n\t}",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"private ChainingMethods() {\n // private constructor\n\n }",
"protected void doSomethingElse()\r\n {\r\n \r\n }",
"public abstract void mh();",
"public abstract String use();",
"@Override\n\tpublic void einkaufen() {\n\t}",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected abstract Self self();",
"public class_4 method_9() {\n return this.method_17();\n }",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"public static void thisDemo() {\n\t}",
"private ProcessedDynamicData( ) {\r\n super();\r\n }",
"protected abstract MethodDescription accessorMethod();",
"public abstract void mo27386d();",
"@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 abstract void call();",
"private stendhal() {\n\t}",
"abstract public T doSomething();",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\t\t\t\t\tpublic Method handleSimpleMethod(Element parent, FMethod src) {\n\t\t\t\t\t\treturn super.handleSimpleMethod(parent, src);\n\t\t\t\t\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"@Override\n public void test() {\n \n }",
"@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }",
"public void method_199() {}",
"@Override\n public void b() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"boolean dynamic();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public abstract void mo56925d();",
"private void sub() {\n\n\t}",
"public void method_115() {}",
"protected abstract void switchOnCustom();",
"public void foo() {\r\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"private void test() {\n\n\t}",
"@Override\n\tpublic void doYouWantTo() {\n\n\t}",
"public abstract void wrapup();",
"public void method_193() {}",
"public void method_192() {}",
"protected abstract boolean invokable(Resource r);",
"abstract int pregnancy();"
]
| [
"0.6723592",
"0.6395381",
"0.62951493",
"0.62951493",
"0.62951493",
"0.62784183",
"0.62484574",
"0.6192683",
"0.6192683",
"0.6024335",
"0.60186386",
"0.59908754",
"0.59873784",
"0.5976329",
"0.5973742",
"0.5956677",
"0.595193",
"0.5930994",
"0.5925682",
"0.59125286",
"0.5905273",
"0.58934116",
"0.58833915",
"0.5857958",
"0.5851967",
"0.58306766",
"0.58243287",
"0.5820409",
"0.5817342",
"0.5813949",
"0.5796398",
"0.57889515",
"0.57889515",
"0.576869",
"0.57665664",
"0.5761082",
"0.5761082",
"0.571855",
"0.57182294",
"0.56975615",
"0.5686173",
"0.56830883",
"0.56742406",
"0.5667536",
"0.56663555",
"0.565596",
"0.56459194",
"0.56314385",
"0.5628966",
"0.5628565",
"0.5618521",
"0.56017876",
"0.5601031",
"0.55956256",
"0.5595511",
"0.5595511",
"0.5595511",
"0.5593894",
"0.5579051",
"0.55736285",
"0.5568279",
"0.5552059",
"0.55517775",
"0.5550605",
"0.5546657",
"0.55349624",
"0.55292094",
"0.5526322",
"0.5524829",
"0.55242336",
"0.5522744",
"0.5522744",
"0.5522573",
"0.5521988",
"0.5508237",
"0.5503311",
"0.5503246",
"0.54990625",
"0.5494483",
"0.5490655",
"0.54891133",
"0.5481976",
"0.5476684",
"0.547614",
"0.5469109",
"0.54558563",
"0.54451245",
"0.5436462",
"0.54359585",
"0.54358166",
"0.543459",
"0.54190856",
"0.54188335",
"0.54186726",
"0.5414991",
"0.54137456",
"0.5412355",
"0.54120404",
"0.54050994",
"0.5396531",
"0.53951705"
]
| 0.0 | -1 |
TODO Autogenerated method stub /Intent i = new Intent(context, CallActivity.class); i.putExtras(intent.getExtras()); i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); | @Override
public void onReceive(Context context, Intent intent) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onClick(View v) {\n Intent intent=new Intent(Intent.ACTION_CALL_BUTTON);\n //intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"public void makeCall(Context context){\n dbAdapter = new ContactsDbAdapter(context);\n dbAdapter.open();\n\n Cursor contactsCursor= dbAdapter.fetchAllContacts();\n if (contactsCursor.getCount()!=0){\n contactsCursor.moveToFirst();\n\n System.out.println(\"NOMBRE: \" + contactsCursor.getString(1));\n System.out.println(\"TELEFONO: \" + contactsCursor.getString(2));\n phoneNumber=contactsCursor.getString(2);\n\n try{\n\n System.out.println(\"ey\");\n\n if(ContextCompat.checkSelfPermission(context, Manifest.permission.CALL_PHONE)\n != PackageManager.PERMISSION_GRANTED){\n\n System.out.println(\"No hay permiso de llamada\");\n\n }\n\n Intent intentLlamada = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"+phoneNumber));\n intentLlamada.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intentLlamada);\n\n } catch (Exception e){\n System.out.println(\"err\");\n e.printStackTrace();\n }\n\n }\n\n\n\n }",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1091\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:101\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"public static void openCallIntent(Context context, String phone) {\n if (Utils.isNullOrEmpty(phone)) {\n return;\n }\n\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + phone));\n context.startActivity(intent);\n }",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:102\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:100\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:9753057542\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1073\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1407\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:108\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(Intent.ACTION_CALL);\n\t\t\t\tintent.setData(Uri.parse(\"tel:+8801744955241\"));\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:103\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1072\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"\n\t\t\t\t\t\t+ phoneCode));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}",
"@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\tIntent phoneIntent = new Intent(Intent.ACTION_CALL);\r\n phoneIntent.setData(Uri.parse(\"tel:\"+phoneNumber));\r\n startActivity(Intent.createChooser(phoneIntent, \"Calling number...\"));\r\n \t\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1031\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:104\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n public void onClick(View v) {\n\n try {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.fromParts(\"tel\", current_number, null));\n startActivity(intent);\n }\n catch (Exception e)\n {\n\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\t\tcallIntent.setData(Uri.parse(\"tel:\" + getIntent().getLongExtra(\"phone\", 0)));\n\t\t\t\tstartActivity(callIntent);\n\t\t\t}",
"@Override\r\n\t\tpublic void onClick(View arg0) {\n\t\t Intent intent =new Intent(Intent.ACTION_CALL);\r\n\t\t intent.setData(Uri.parse(\"tel:1071\"));\r\n\t\t startActivity(intent);\r\n\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + friend.getPhoneNo()));\n\n context.startActivity(intent);\n }",
"@Override\n\t\t\t\tpublic void onClick(DialogInterface arg0, int arg1) {\n\t\t\t\t\tUri uri=Uri.parse(\"tel:\"+ mPhone.getText()); //拨打电话号码的URI格式\n\t\t\t\t\tIntent it=new Intent(); //实例化Intent\n\t\t\t\t\tit.setAction(Intent.ACTION_CALL); //指定Action\n\t\t\t\t\tit.setData(uri); //设置数据\n\t\t\t\t\tstartActivity(it);//启动Acitivity\n\t\t\t\t}",
"@OnClick(R.id.converter_organization_phone_iv)\n public void callToOrg() {\n if (ActivityCompat.checkSelfPermission(CashApplication.getContext(), Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n new DialogInfoCall(mContext);\n } else {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" +\n mMainListForActions.get(mPositionOfCurInList).getOrganizations().get(mPositionOfOrgInList).getPhone()));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n }",
"@Override\n public void onClick(View v) {\n try {\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\" + books.getBuy()));\n context.startActivity(callIntent);\n\n } catch (ActivityNotFoundException e) {\n Log.e(\"helloandroid dialing \", \"Call failed\", e);\n }\n }",
"public void showCallDialog() {\n new AlertDialog.Builder(this)\n .setTitle(getString(R.string.ms_callDIalog_call_ask)).setMessage(getString(R.string.ms_callDialog_call_contact) + \" \" + user.getNom() + \" \" + user.getPrenom() + \" \" + getString(R.string.ms_callDialog_call_end))\n .setPositiveButton(getString(R.string.ms_callDialog_call), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(getString(R.string.ms_callDialog_phone) + \" \" + user.getTelephone()));\n try {\n startActivity(intent);\n }\n catch(SecurityException e) {\n e.printStackTrace();\n }\n }\n })\n .setNegativeButton(getString(R.string.ms_callDialog_stop), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n }",
"public void createPhoneIntent(View view){\n Intent intent = new Intent(Intent.ACTION_DIAL);\n\n //Step 2: Add the telephonne number as a data (URI) to the intent using \"tel:phone_num\";\n Uri uri = Uri.parse(\"tel:09095966472\");\n intent.setData(uri);\n\n //Step 3: Start the activity\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString number = listdata.get(position).getCallnumber();\n\t\t\t\tIntent callIntent = new Intent(Intent.ACTION_CALL);\n\t\t\t callIntent.setData(Uri.parse(\"tel:\" + number));\n\t\t\t startActivity(callIntent);\n\t\t\t}",
"@SuppressWarnings(\"ResourceType\")\n public static void callPhoneNum(Context context, String phoneNum) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\" + phoneNum));\n context.startActivity(intent);\n }",
"private void Call()\n {\n Intent i = new Intent();\n i.setAction(Intent.ACTION_DIAL);\n i.setData(Uri.parse(\"tel:\" + number[index]));\n startActivity(i);\n Toast.makeText(this, \"Option call Chosen...\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(PhoneDialerActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n // cerem permisiuni de CALL\n ActivityCompat.requestPermissions(\n PhoneDialerActivity.this,\n new String[]{Manifest.permission.CALL_PHONE},\n Constants.PERMISSION_REQUEST_CALL_PHONE);\n // daca avem permisiunea de a efectua CALL\n } else {\n // generam o intentie pentru CALL\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumberEditText.getText().toString()));\n // pornim activitatea de CALL\n startActivity(intent);\n }\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + mItem.getNumber()));\n try {\n startActivity(intent);\n } catch (SecurityException e) {\n // Swallow exception\n }\n }",
"private void makePhoneCall(){\n if(ContextCompat.checkSelfPermission(NotificationHelper.this, android.Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n\n Toast.makeText(this, \"Phone call permission not given\", Toast.LENGTH_SHORT).show();\n // ActivityCompat.requestPermissions(Alarm2Activity.this, new String[] {android.Manifest.permission.CALL_PHONE}, REQUEST_CALL);\n }\n else{\n String number = \"+213658305662\";\n String phoneNum = \"tel:\" + number;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(phoneNum)));\n }\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent=new Intent(context, Message_and_Dial.class);\n intent.putExtra(\"Contact Name\", contact.get(position).toString());\n intent.putExtra(\"Phone Number\", contact_num.get(position).toString());\n context.startActivity(intent);\n\n }",
"void startNewActivity(Intent intent);",
"@Override\n public void onClick(View v) {\n Uri number = Uri.parse(\"tel: 08963451822\");\n Intent call = new Intent(Intent.ACTION_DIAL);\n call.setData(number);\n startActivity(call);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n //Se envian datos asociados a ese Intent\n intent.setData(Uri.parse(\"tel:88854764\"));\n //Se envia el intent\n startActivity(intent);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n Contact currentContact = contacts[position];\n String cName = currentContact.getContactName();\n final String cNumber = currentContact.getContactNumber();\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Would you like to call \" + cName + \"?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int which)\n {\n //Call contact here\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\" + cNumber));\n startActivity(callIntent);\n }\n })\n .setNegativeButton(\"No\", null)\n .show();\n }",
"@Override\n protected CallStatusCode placeCallInternal(Intent intent) {\n if (DBG) log(\"placeCallInternal()... intent = \" + intent);\n int sub = intent.getIntExtra(SUBSCRIPTION_KEY, mApp.getVoiceSubscription());\n\n PhoneUtils.setActiveSubscription(sub);\n return super.placeCallInternal(intent);\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n\n Intent intentMessage = new Intent(context, MessageActivity.class);\n intentMessage.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intentMessage);\n }",
"@Override\n public void startActivity(Intent intent) {\n startActivity(intent, null);\n }",
"public void onClick(DialogInterface dialog, int id) {\n Intent intent = new Intent( Intent.ACTION_CALL, Uri.parse( \"tel:17\" ) );\n activity.startActivity(intent);\n }",
"public static void openDialerToCall(Context context, String mobileNo) {\n\n try {\n context.startActivity(\n new Intent(Intent.ACTION_DIAL).setData(Uri.parse(\"tel:\" + mobileNo))\n );\n } catch (Exception e) {e.printStackTrace();}\n }",
"public void callSellerButton(View Button){\n Intent i = getIntent();\n String contact = i.getStringExtra(\"contact\").toString();\n Intent callIntent = new Intent(Intent.ACTION_CALL);\n callIntent.setData(Uri.parse(\"tel:\"+contact));\n startActivity(callIntent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_CALL, Uri\n .parse(\"tel://\"\n + number));\n startActivity(intent);\n alert.dismiss();\n }",
"private void startNewAcitivity(Intent intent, ActivityOptionsCompat options) {\n ActivityCompat.startActivity(this, intent, options.toBundle());\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:041-746-8795\"));\n startActivity(intent);\n }",
"@OnClick({R.id.phone_img, R.id.phone})\n void OnClickPhone() {\n Intent intent=new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + getString(R.string.here_comes_phone_no)));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }",
"private void modifyCallFunc(String number) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + number));\n startActivity(intent);\n }",
"@Override\n\tpublic void onClick(View arg0) {\n\t\t\n\t\tIntent callIntent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:555-2345\"));\n\t\tstartActivity(callIntent);\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(AActivity.this, AActivity.class);\r\n\t\t\t\tintent.putExtra(PARAM_NAME_CALLER_MESSAGE, \"AActivity call \" + count);\r\n\t\t\t\tcount++;\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(FxService.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(FxService.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\r\n public void onItemClick(View view, final int position) {\n Uri u = Uri.parse(\"tel:\" + tasksubject2.get(position));\r\n\r\n Intent i = new Intent(Intent.ACTION_CALL, u);\r\n try {\r\n\r\n //TimeUnit.SECONDS.sleep(1);\r\n Intent maineIntent1 = new Intent(Main3Activity.this, logacall.class);\r\n maineIntent1.putExtra(\"ID\", tasksubject5.get(position));\r\n startActivity(maineIntent1,ActivityOptions.makeSceneTransitionAnimation(Main3Activity.this).toBundle());\r\n startActivity(i);\r\n\r\n }\r\n catch (SecurityException s) {\r\n\r\n }\r\n\r\n PhoneStateListener callStateListener = new PhoneStateListener() {\r\n public void onCallStateChanged(int state, String incomingNumber)\r\n {\r\n if(state==TelephonyManager.CALL_STATE_RINGING){\r\n Toast.makeText(getApplicationContext(),\"Phone Is Riging\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n if(state==TelephonyManager.CALL_STATE_OFFHOOK){\r\n\r\n Toast.makeText(getApplicationContext(),\"Phone Is on call\",\r\n Toast.LENGTH_LONG).show();\r\n }\r\n\r\n try {\r\n TimeUnit.SECONDS.sleep(1);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n if(state==TelephonyManager.CALL_STATE_IDLE){\r\n\r\n String id = tasksubject5.get(position);\r\n fields.put(\"Status\", \"Completed\");\r\n saveData(fields,id);\r\n\r\n\r\n//\r\n// Toast.makeText(getApplicationContext(),\"Phone Is not on call\",\r\n// Toast.LENGTH_LONG).show();\r\n\r\n }\r\n }\r\n };\r\n\r\n telephonyManager.listen(callStateListener,PhoneStateListener.LISTEN_CALL_STATE);\r\n\r\n\r\n }",
"private void MakeCall() {\n String number = content_txt.getText().toString();\n if (number.trim().length() > 0) {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE);\n\n if (permissionCheck != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(\n this,\n new String[]{Manifest.permission.CALL_PHONE},\n 123);\n } else {\n String dial = \"tel:\" + number;\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(dial));\n startActivity(intent);\n }\n }\n }",
"@Override\n public void startActivityForResult(Intent intent, int requestCode) {\n if (requestCode == -1) {\n // this is an intent requested from the preference framework.\n super.startActivityForResult(intent, requestCode);\n return;\n }\n \n if (DBG) log(\"startSubActivity: starting requested subactivity\");\n super.startActivityForResult(intent, requestCode);\n }",
"@Override\n public void onDialPhone(@Nullable String phone) {\n if (phone == null) return;\n Log.d(TAG, \"onDialPhone: Phone:\" + phone);\n\n //ACTION_DIAL does not call directly\n //ACTION_CALL will call directly and app has to declare permission in manifest\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(\"tel:\" + phone));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"@Override\n protected void onSuccess(Call<User> call, Response<User> response) {\n Intent intent = new Intent();\n intent.setClass(LoginActivity.this, MainActivity.class);\n startActivity(intent);\n }",
"public static void openPhoneIntent(Context context, String phone) {\n if (Utils.isNullOrEmpty(phone)) {\n return;\n }\n\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:\" + phone));\n context.startActivity(intent);\n }",
"@OnClick(R.id.rltContact)\n public void contact() {\n Intent cancel = new Intent(getApplicationContext(), ContactActivity.class);\n cancel.putExtra(\"status\", acceptDetailsModel.getStatus());\n cancel.putExtra(\"restaurantname\", acceptDetailsModel.getRestaurantName());\n cancel.putExtra(\"restaurantnumber\", acceptDetailsModel.getRestaurantMobileNumber());\n cancel.putExtra(\"eatername\", acceptDetailsModel.getEaterName());\n cancel.putExtra(\"eaternumber\", acceptDetailsModel.getEaterMobileNumber());\n startActivity(cancel);\n }",
"private void superStartActivity(Intent intent, Bundle options) {\n super.startActivity(intent, options);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MyInfoActivity.this, PhoneSetActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void onClick(View v) {\n\t\t\t\t\t\ttry {\n\t\t \t\t\t\tString phoneNumber = textViewsdt.getText().toString();\n\t\t \t\t\t \n\t\t \t\t\t\t\tIntent it = new Intent(Intent.ACTION_CALL);\n\t\t \t\t\t\t\tit.setData(Uri.parse(\"tel:\" + phoneNumber));\n\t\t \t\t\t\t\tstartActivity(it);\n\t\t \t\t\t\t}\n\t\t \t\t\t\tcatch (ActivityNotFoundException e) {\n\t\t \t\t\t\t\t// Exceptions\n\t\t \t\t\t\t}\n\t\t\t\t\t}",
"@Override\n\tprotected void onListItemClick(ListView l, View v, int position, long id) {\n\t\tsuper.onListItemClick(l, v, position, id);\n\n\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t \" Calling \"+ contact.get(position).getName() +\" for HELP\", Toast.LENGTH_LONG)\n\t\t\t\t.show();\n\t\t\n\t\tString num=contact.get(position).getNumber(); \n String number = \"tel:\" + num.trim();\n Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse(number)); \n startActivity(callIntent);\n\t\t\n//\t\tIntent intent = new Intent(TELEPHONY_SERVICE,)\n\t\t/*\n\t\t * Intent intent = new Intent(ListPlaces.this, Details.class);\n\t\t * intent.putExtra(PLACE, places.get(position).getName());\n\t\t * startActivity(intent);\n\t\t */\n\t\t}",
"public void onCallStateChanged(int state, String incomingNumber) {\n if (state == 2) {\n\n String msg = \" New Phone Call Event. Incoming Number : \"+incomingNumber;\n int mID = 1;\n long when = System.currentTimeMillis();\n NotificationManager notificationManager = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent notificationIntent = new Intent(context, afterCall.class);\n notificationIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n\n PendingIntent pendingIntent = PendingIntent.getActivity(context, 0,\n notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n\n Uri alarmSound = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n writeToFile(2, Calendar.getInstance().getTime().toString(), context);\n NotificationCompat.Builder mNotifyBuilder = new NotificationCompat.Builder(\n context).setSmallIcon(R.drawable.ic_launcher)\n .setContentTitle(\"Phone Call Made\")\n .setContentText(\"Touch to Take Survey\")\n .setSound(alarmSound)\n .setAutoCancel(true).setWhen(when)\n .setContentIntent(pendingIntent)\n .setVibrate(new long[]{1000, 1000, 1000, 1000, 1000});\n notificationManager.notify(mID,mNotifyBuilder.build());\n mID++;\n\n }\n }",
"private void makePhoneCall(){\n String number1 = _txtTel1.getText().toString();\n String number2 = _txtTel2.getText().toString();\n if (number1.trim().length() > 0 && number2.trim().length() >0)\n {\n if (ContextCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED)\n {\n ActivityCompat.requestPermissions(MainActivity.this,new String[]{Manifest.permission.CALL_PHONE},REQUEST_CALL);\n }\n else {\n AlertDialog call = MesOptions2();\n call.show();\n }\n }\n else if (number1.trim().length() > 0 && number2.trim().length() == 0 )\n {\n String dial = \"tel:\" + number1;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(dial)));\n }\n else\n {\n String dial = \"tel:\" + number2;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(dial)));\n }\n\n }",
"private void makePhoneCall(View root){\n Log.d(TAG, \"makePhoneCall: call the teacher \" + tvTeachersFirstName + \" \" + tvTeachersLastName);\n // Checks if the app have permission to make a phone call\n if(ContextCompat.checkSelfPermission(root.getContext(),\n Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n ActivityCompat.requestPermissions(getActivity(),\n new String[] {Manifest.permission.CALL_PHONE}, REQUEST_CALL);\n }\n else{\n if(tvTeachersPhoneNumber.getText().toString().contains(\"-\")) {\n tvTeachersPhoneNumber.getText().toString().replace(\"-\", \"\");\n }\n\n String dial = \"tel:\" + tvTeachersPhoneNumber.getText().toString();\n Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(dial));\n startActivity(intent);\n }\n }",
"public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Intent callOnwerIntent = new Intent(Intent.ACTION_DIAL,\n Uri.parse(\"tel:\"+gym.getOwnerMobile().toString()));\n startActivity(callOnwerIntent);\n }",
"@Override\n public void onClick(View view) {\n Intent i = new Intent(getApplicationContext(), BPActivity.class);\n startActivity(i);\n }",
"@Override\n\tpublic void startActivityForResult(Intent intent, int requestCode) {\n\t\tsuper.startActivityForResult(intent, requestCode);\n\t}",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n switch (requestCode){\n case PHONE_CALL_PERMISSION_REQUEST:\n if(grantResults.length > 0 && grantResults[0]== PackageManager.PERMISSION_GRANTED){\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + contactDetails.getNumbers().get(0)));\n startActivity(intent);\n }else{\n\n }\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString number = listdata.get(position).getCallnumber();\n\t\t\t\tIntent detailsActInt = new Intent(MainActivity.this, ContactDetailsActivity.class);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_name\", contactname);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_number\", callnumber);\n\t\t\t\tdetailsActInt.putExtra(\"key_contact_call_id\", contact_call_id);\n\t\t\t\tstartActivity(detailsActInt);\n\t\t\t\t//addCommentDialog(number);\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(), StartActivityReceiver.class);\n intent.putExtra(\"zjf\", \"123\");\n sendBroadcast(intent);\n }",
"public void launchPhone(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_DIAL);\n \tsendIntent.setData(Uri.parse(\"tel:\"));\n \t\n \tfinal ResolveInfo mInfo = pacman.resolveActivity(sendIntent, 0);\n \tString s = pacman.getApplicationLabel(mInfo.activityInfo.applicationInfo).toString();\n \t\n \tif (s != null && s.length() > 2) {\n startActivity(sendIntent);\n return;\n } else {\n \tToast.makeText(context, \"No Phone Call App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t super.onCreate(savedInstanceState);\r\n\t\r\n\t setContentView(R.layout.a_activity_layout);\r\n\t \r\n\t messageView = (TextView)findViewById(R.id.textView2);\r\n\t \r\n\t Intent i = getIntent();\r\n\t String message = i.getStringExtra(PARAM_NAME_CALLER_MESSAGE);\r\n\t messageView.setText(\"onCreate : caller message - \" + message + \"\\n\"\r\n\t \t\t+ \"activity \" + this.toString());\r\n\t Button btn = (Button)findViewById(R.id.button1);\r\n\t btn.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIntent intent = new Intent(AActivity.this, AActivity.class);\r\n\t\t\t\tintent.putExtra(PARAM_NAME_CALLER_MESSAGE, \"AActivity call \" + count);\r\n\t\t\t\tcount++;\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\t \r\n\t btn =(Button)findViewById(R.id.button2);\r\n\t btn.setOnClickListener(new View.OnClickListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tIntent intent = new Intent(AActivity.this, MainActivity.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:4089242222\"));\n startActivity(intent);\n }",
"@Override\n\tpublic void onReceive(Context context, Intent intent) {\n\t\tmyphone = BasicPhone.getInstance(context);\n\t \n\t myphone.login();\n /*Intent startServiceIntent = new Intent(context, MyPhoneActivity.class);\n context.startService(startServiceIntent);*/\n }",
"@Override\n\t\t\t\tpublic void onNewIntent(TiRootActivity activity, Intent intent)\n\t\t\t\t{\n\t\t\t\t\tTiActivity.this.onNewIntent(intent);\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n routineIntent = new Intent(getApplicationContext(), RoutineTaskActivity.class);\n startActivity(routineIntent);\n }",
"public void onClick(View v) {\n Intent intent = new Intent(Intent.ACTION_DIAL);\n intent.setData(Uri.parse(\"tel:4082778911\"));\n startActivity(intent);\n }",
"public void contactBtnIntent(View view) {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_APP_MESSAGING);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n sendMessage(phone_from_intent);\n }",
"@Override\n public void onClick(View arg0) {\n Uri uri = Uri.parse(\"content://contacts\");\n Intent intent = new Intent(Intent.ACTION_PICK, uri);\n intent.setType(Phone.CONTENT_TYPE);\n startActivityForResult(intent, REQUEST_CODE);\n }",
"private void startBackgroundTask(Intent intent, int startId) {\n backgroundExecution();\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(getActivity(), ContactAdd.class);\n startActivityForResult(intent, 10001);\n }",
"@Override\n\tpublic void resultActivityCall(int requestCode, int resultCode, Intent data) {\n\n\t}",
"@Override\n public void onClick(View v) {\n Intent ticketInfo = new Intent(mContext, BusInformationsCard.class);\n\n ticketInfo.putExtra(\"busLine\", getTickets().get(position).getBusLine());\n ticketInfo.putExtra(\"companyName\", getTickets().get(position).getCompany());\n ticketInfo.putExtra(\"driverName\", getTickets().get(position).getName());\n ticketInfo.putExtra(\"driverPhone\", getTickets().get(position).getDriverPhone());\n ticketInfo.putExtra(\"seatNum\", getTickets().get(position).getSeatNum());\n ticketInfo.putExtra(\"leavingTime\", getTickets().get(position).getLeavingTime());\n ticketInfo.putExtra(\"latitude\", getTickets().get(position).getLatitude());\n ticketInfo.putExtra(\"longitude\", getTickets().get(position).getLongitude());\n ticketInfo.putExtra(\"driverId\", getTickets().get(position).getDriverId());\n ticketInfo.putExtra(\"keyId\", getTickets().get(position).getId());\n ticketInfo.putExtra(\"busNum\", getTickets().get(position).getBusNum());\n ticketInfo.putExtra(\"expectedTime\", getTickets().get(position).getExpectedTime());\n\n\n mContext.startActivity(ticketInfo);\n\n\n }",
"@Override\n\tpublic void startActivityForResult(Intent intent, int requestCode,\n\t\t\tBundle options) {\n\t\tsuper.startActivityForResult(intent, requestCode, options);\n\t}",
"@Override\r\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\r\n\t\tString message = intent.getStringExtra(PARAM_NAME_CALLER_MESSAGE);\r\n\t\t\r\n\t\tmessageView.setText(\"onNewIntent : caller message - \" + message + \"\\n\"\r\n\t\t\t\t+ \"activity \" + this.toString());\r\n\t}",
"public static void recordCall(Context context, Intent intent) {\n\t\tContentValues values = new ContentValues();\n\t\tString number = intent.getStringExtra(\"Number\");\n\t\tvalues.put(RecordlistTable.TYPE, 2);\n\t\tvalues.put(RecordlistTable.SUBID, intent.getIntExtra(\"subid\", SubscriptionManager.getDefaultSmsSubId()));\n\t\tvalues.put(RecordlistTable.PHONE_NUMBER, number);\n\t\tvalues.put(RecordlistTable.TIME, System.currentTimeMillis());\n\t\tvalues.put(RecordlistTable.FORMAT, intent.getStringExtra(\"format\"));\n\t\tString cityName = getGeoDescription(context, number);\n\t\tif(!TextUtils.isEmpty(cityName)) {\n\t\t\tvalues.put(RecordlistTable.LOCATION, cityName);\n\t\t}\n\t\tif(context.getContentResolver().isSecreted(number)) {\n\t\t\tvalues.put(RecordlistTable.USER_MODE, 1);\n\t\t}\n\t\tUri uri= context.getContentResolver().insert(RECORDLIST_URI, values);\n\t\tlog(\"recordCall-Uri:\" + uri);\n\t\t//testRestoreItem(context, 2);\n\t}",
"void start(Intent intent, IntentFilter filter, IIntentCallback callback, IEclipseContext context);",
"public void hangUpOngoingCall(Context context) {\n // By the time we receive this intent, we could be shut down and call list\n // could be null. Bail in those cases.\n if (mCallList == null) {\n if (mStatusBarNotifier == null) {\n // The In Call UI has crashed but the notification still stayed up. We should not\n // come to this stage.\n StatusBarNotifier.clearAllCallNotifications(context);\n }\n return;\n }\n\n Call call = mCallList.getOutgoingCall();\n if (call == null) {\n call = mCallList.getActiveOrBackgroundCall();\n }\n\n if (call != null) {\n TelecomAdapter.getInstance().disconnectCall(call.getId());\n call.setState(Call.State.DISCONNECTING);\n mCallList.onUpdate(call);\n }\n }",
"public static void startActivity(Context context) {\n Intent homeIntent = new Intent(context, RequestActivity.class);\n context.startActivity(homeIntent);\n }",
"@Override\n public void onClick(View v) {\n\n Intent i = new Intent(OConnectBaseActivity.this, MessagingListActivity.class);\n startActivity(i);\n }",
"public void startCreateTripActivity() {\r\n\t\t\r\n\t\t// TODO - fill in here\r\n Intent intent = new Intent(this, CreateTripActivity.class);\r\n startActivityForResult(intent, CREATE_CODE);\r\n\r\n\t}",
"public static void startActivity(Activity context, Class<?> c, int requestCode) {\n\t\tstartActivity(context, c, requestCode, new Bundle());\n\t}",
"@Override\n public void onClick(View v) {\n Intent chatIntent = new Intent(v.getContext(), ChatActivity.class);\n chatIntent.putExtra(\"uid\", uid);\n mContext.startActivity(chatIntent);\n }",
"@Override\r\n\t public void onClick(View v) {\n\t\tBundle bundle = new Bundle();\r\n\t\tbundle.putString(\"msgKind\", \"CALLLOG\");\r\n\t\tbundle.putStringArray(\"msgValue\", callLogStr);\r\n\t\tIntent intent = new Intent(DisplayChoice.this, Display.class);\r\n\t\tintent.putExtras(bundle);\r\n\t\tstartActivity(intent);\r\n\t }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent in = new Intent(getApplicationContext(),AllContactsActivity.class);\n\t\t\t\tstartActivity(in);\n\t\t\t}"
]
| [
"0.7732762",
"0.70952517",
"0.7019121",
"0.69881004",
"0.6979827",
"0.6928559",
"0.6925503",
"0.691212",
"0.69111854",
"0.6877205",
"0.6849008",
"0.68370336",
"0.6822787",
"0.6794386",
"0.67881936",
"0.6781781",
"0.67692",
"0.6738195",
"0.6734944",
"0.67095506",
"0.6671003",
"0.66564286",
"0.6644382",
"0.66226125",
"0.6586762",
"0.6551947",
"0.65410656",
"0.6539156",
"0.64822876",
"0.6467875",
"0.6446704",
"0.6396075",
"0.6344965",
"0.63343227",
"0.6319701",
"0.6284971",
"0.62374467",
"0.623469",
"0.6216608",
"0.6177852",
"0.6154068",
"0.6133809",
"0.6109313",
"0.6097803",
"0.6090842",
"0.6081191",
"0.60745543",
"0.60604715",
"0.6058324",
"0.60243624",
"0.600377",
"0.60003453",
"0.59937674",
"0.59937674",
"0.5990884",
"0.5983151",
"0.5979948",
"0.59759134",
"0.59593606",
"0.5959024",
"0.5930811",
"0.5925905",
"0.5898297",
"0.5893679",
"0.58890116",
"0.58834463",
"0.58826375",
"0.58594203",
"0.58550084",
"0.5853809",
"0.5850502",
"0.58361435",
"0.5835186",
"0.5833811",
"0.58331406",
"0.58303654",
"0.58238",
"0.58176094",
"0.5803637",
"0.5788095",
"0.5778127",
"0.5765346",
"0.57631147",
"0.57626",
"0.5761487",
"0.5758214",
"0.5758004",
"0.5745516",
"0.57453436",
"0.57446396",
"0.5734948",
"0.57162315",
"0.5713404",
"0.57104075",
"0.5706232",
"0.57027376",
"0.56973624",
"0.5695854",
"0.5694744",
"0.569345",
"0.5691409"
]
| 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | private void initComponents()
{
java.awt.GridBagConstraints gridBagConstraints ;
operationPanel = new javax.swing.JPanel() ;
textScrollPanel = new javax.swing.JScrollPane() ;
operationTextPane = new javax.swing.JTextPane() ;
controlPanel = new javax.swing.JPanel() ;
runCancelButton = new javax.swing.JButton() ;
filler1 = new javax.swing.Box.Filler(new java.awt.Dimension(0, 0),
new java.awt.Dimension(0, 0), new java.awt.Dimension(32767, 32767)) ;
closeButton = new javax.swing.JButton() ;
setPreferredSize(new java.awt.Dimension(780, 460)) ;
setLayout(new java.awt.GridBagLayout()) ;
operationPanel
.setBorder(javax.swing.BorderFactory.createTitledBorder("Operations")) ;
operationPanel.setLayout(new java.awt.GridBagLayout()) ;
operationTextPane.setEditable(false) ;
textScrollPanel.setViewportView(operationTextPane) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 0 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.weightx = 1.0 ;
gridBagConstraints.weighty = 1.0 ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
operationPanel.add(textScrollPanel, gridBagConstraints) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 0 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.weightx = 1.0 ;
gridBagConstraints.weighty = 1.0 ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
add(operationPanel, gridBagConstraints) ;
controlPanel.setLayout(new java.awt.GridBagLayout()) ;
runCancelButton.setText("run") ;
runCancelButton.addActionListener(new java.awt.event.ActionListener()
{
@Override
public void actionPerformed(java.awt.event.ActionEvent evt)
{
runCancelButtonActionPerformed(evt) ;
}
}) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 0 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
controlPanel.add(runCancelButton, gridBagConstraints) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 1 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.weightx = 1.0 ;
gridBagConstraints.weighty = 1.0 ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
controlPanel.add(filler1, gridBagConstraints) ;
closeButton.setText("close") ;
closeButton.addActionListener(new java.awt.event.ActionListener()
{
@Override
public void actionPerformed(java.awt.event.ActionEvent evt)
{
closeButtonActionPerformed(evt) ;
}
}) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 2 ;
gridBagConstraints.gridy = 0 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
controlPanel.add(closeButton, gridBagConstraints) ;
gridBagConstraints = new java.awt.GridBagConstraints() ;
gridBagConstraints.gridx = 0 ;
gridBagConstraints.gridy = 1 ;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH ;
gridBagConstraints.weightx = 0.1 ;
gridBagConstraints.weighty = 0.1 ;
gridBagConstraints.insets = new java.awt.Insets(2, 2, 2, 2) ;
add(controlPanel, gridBagConstraints) ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
]
| [
"0.73191476",
"0.72906625",
"0.72906625",
"0.72906625",
"0.72860986",
"0.7248112",
"0.7213479",
"0.72078276",
"0.7195841",
"0.71899796",
"0.71840525",
"0.7158498",
"0.71477973",
"0.7092748",
"0.70800966",
"0.70558053",
"0.69871384",
"0.69773406",
"0.69548076",
"0.69533914",
"0.6944929",
"0.6942576",
"0.69355655",
"0.6931378",
"0.6927896",
"0.69248974",
"0.6924723",
"0.69116884",
"0.6910487",
"0.6892381",
"0.68921053",
"0.6890637",
"0.68896896",
"0.68881863",
"0.68826133",
"0.68815064",
"0.6881078",
"0.68771756",
"0.6875212",
"0.68744373",
"0.68711984",
"0.6858978",
"0.68558776",
"0.6855172",
"0.6854685",
"0.685434",
"0.68525875",
"0.6851834",
"0.6851834",
"0.684266",
"0.6836586",
"0.6836431",
"0.6828333",
"0.68276715",
"0.68262815",
"0.6823921",
"0.682295",
"0.68167603",
"0.68164384",
"0.6809564",
"0.68086857",
"0.6807804",
"0.6807734",
"0.68067646",
"0.6802192",
"0.67943805",
"0.67934304",
"0.6791657",
"0.6789546",
"0.6789006",
"0.67878324",
"0.67877173",
"0.6781847",
"0.6765398",
"0.6765197",
"0.6764246",
"0.6756036",
"0.6755023",
"0.6751404",
"0.67508715",
"0.6743043",
"0.67387456",
"0.6736752",
"0.67356426",
"0.6732893",
"0.6726715",
"0.6726464",
"0.67196447",
"0.67157453",
"0.6714399",
"0.67140275",
"0.6708251",
"0.6707117",
"0.670393",
"0.6700697",
"0.66995865",
"0.66989213",
"0.6697588",
"0.66939527",
"0.66908985",
"0.668935"
]
| 0.0 | -1 |
End of variables declaration | @Override
protected void enableReinitControl(boolean isEnable)
{
// Nothing to do.
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"protected void initVars() {}",
"private void assignment() {\n\n\t\t\t}",
"private void declareLocals() {\r\n\t\t// declare locals\r\n\t\tfor(Local local: method.retrieveActiveBody().getLocals()) {\r\n\t\t\tString cType = null;\r\n\t\t\t// null types need special treatment, we don't output them\r\n\t\t\t// we also won't generate statements that use a nullType\r\n\t\t\t// as a target.\r\n\t\t\tif(local.getType() instanceof NullType) {\r\n\t\t\t\tcType = \"java_lang_Object*\";\r\n\t\t\t} else {\r\n\t\t\t\tcType = CTypes.toCType(local.getType());\r\n\t\t\t}\r\n\t\t\twriter.wl(cType + \" \" + local.getName() + \" = 0;\");\r\n\t\t}\r\n\t\twriter.wl(\"java_lang_Object* _exception = 0;\");\r\n\t}",
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"Variables createVariables();",
"void compileVarDec() {\n tagBracketPrinter(VAR_DEC_TAG, OPEN_TAG_BRACKET);\n try {\n compileVarDecHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(VAR_DEC_TAG, CLOSE_TAG_BRACKET);\n }",
"private void updateVars()\n {\n\n }",
"String getVarDeclare();",
"public TradeVariables() { /*gets default values*/ }",
"public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }",
"private void declareArray() {\n\t\twriter.println();\n\t\twriter.println(\"; array of 52 for variables:\");\n\t\twriter.print(variables + \" dw\");\n\t\tfor (int i = 0; i < 51; i++) {\n\t\t\twriter.print(\" 0,\");\n\t\t}\n\t\twriter.println(\" 0\");\n\t}",
"@Override\r\n\tpublic void visit(VariableDeclaration variableDeclaration) {\n\r\n\t}",
"private void initVars(){\n this.sOut = new StringBuilder();\n this.curPos = this.frameCount = 0;\n this.heldKeys = new int[257];\n this.showCursor = false;\n this.fontId = DAGGER40;\n Arrays.fill(this.heldKeys,-1);\n }",
"public final void mo51373a() {\n }",
"private void variableDeclaratorRest(VariableType x, Scope scope, Vector queue)\r\n {\r\n x.type.dim += bracketsOpt();\r\n if (nextSymbol == Keyword.ASSIGNSY)\r\n {\r\n Operation node, root = new Operation();\r\n root.operator = (x.modify & Keyword.FINALSY.value) == 0?Keyword.ASSIGNSY:Keyword.FINALASSIGNSY;\r\n\r\n node = root.left = new Operation();\r\n\r\n node.operator = Keyword.LEAFSY;\r\n node = node.left = new Operation();\r\n node = node.left = new Operation();\r\n node = node.left = new Operation();\r\n\r\n node.name = x.name;\r\n node.type = x.type;\r\n\r\n lookAhead();\r\n\r\n root.right = variableIntitializer(x.type, x.type.dim, scope, queue);\r\n\r\n queue.add(root);\r\n\r\n root = new Operation();\r\n root.operator = Keyword.CLEARSY;\r\n queue.add(root);\r\n }\r\n }",
"int realnVars();",
"final public void varcall() throws ParseException {\n jj_consume_token(VARIABLE);\n if(userVals.get(token.image)==null) {\n {if (true) throw new ParseException(\"La variable no ha sido definida.\");}\n }\n }",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"public void mo38117a() {\n }",
"public void resetLocals()\n {\n maxLocalSize = 0;\n localCnt = localIntCnt = localDoubleCnt = localStringCnt = localItemCnt = 0;\n locals = lastLocal = new LocalVariable(null, null, null);\n }",
"private void kk12() {\n\n\t}",
"public void afficherVariables() {\n System.out.println\r\n (\"Objet de type GrillePain avec variables d'instance année = \" +\r\n annee + \" et nbTranches = \" + nbTranches);\r\n }",
"public void mo12930a() {\n }",
"protected void visitVariableDeclInfoAfterAddedToScope(VariableDeclInfo declInfo) {\n // Deliberately empty - to be optionally overridden by subclasses.\n }",
"void compileClassVarDec() {\n tagBracketPrinter(CLASS_VAR_DEC_TAG, OPEN_TAG_BRACKET);\n try {\n compileClassVarDecHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(CLASS_VAR_DEC_TAG, CLOSE_TAG_BRACKET);\n\n\n }",
"public final void mo91715d() {\n }",
"public void fixupVariables(List<QName> vars, int globalsSize)\n {\n // no-op\n }",
"private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }",
"@Override\n public List<String> getVariables()\n {\n return null;\n }",
"void initFunDecl() {\n\t\t_localVarID = 0;\r\n\t\t_labelID = 0;\r\n\t\t_tempVarID = 32;\r\n\t\t_lsymtable.clear();\r\n\t}",
"public void mo1327d(ac acVar) {\n }",
"public static void initialisations() {\n\t\tit = 0;\r\n\t\tbc = 1;\r\n\r\n\t\t// pile des reprises pour compilation des branchements en avant\r\n\t\tpileRep = new TPileRep(); \r\n\t\t// programme objet = code Mapile de l'unite en cours de compilation\r\n\t\tpo = new ProgObjet();\r\n\t\t// COMPILATION SEPAREE: desripteur de l'unite en cours de compilation\r\n\t\tdesc = new Descripteur();\r\n\r\n\t\t// initialisation necessaire aux attributs lexicaux\r\n\t\tUtilLex.initialisation();\r\n\r\n\t\t// initialisation du type de l'expression courante\r\n\t\ttCour = NEUTRE;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de param�tres de chaque proc�dure \r\n\t\tnbParamProc = 0;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de variables d�clar�es\r\n\t\tnbVar++;\r\n\r\n\t\t//Initialisation vTmp\r\n\t\tvTmp = 0;\r\n\t\t\r\n\t\tdesc.setUnite(\"programme\");\r\n\t\t\r\n\t}",
"private void decls() throws IOException\n {\n type();\n match(Tag.ID);\n match(';');\n }",
"void _smem_close_vars() throws SQLException\n {\n smem_variable_set(smem_variable_key.var_max_cycle, this.smem_max_cycle);\n \n // store num nodes/edges for future use of the smem database\n smem_variable_set(smem_variable_key.var_num_nodes, stats.nodes.get());\n smem_variable_set(smem_variable_key.var_num_edges, stats.edges.get());\n }",
"public void masterDeclaration();",
"private final void m28007e(JsonParser jVar) throws IOException {\n Object Q = jVar.mo29771Q();\n this.f20615n = Q;\n if (Q != null) {\n this.f20617p = true;\n }\n Object P = jVar.mo29770P();\n this.f20616o = P;\n if (P != null) {\n this.f20617p = true;\n }\n }",
"private B() {\n void var2_-1;\n void var1_-1;\n }",
"private void initVariables(){\n int counter = 1;\n for (int vCount = 0; vCount < vertexCount; vCount++){\n for (int pCount = 0; pCount < positionCount; pCount++){\n variables[vCount][pCount] = counter++;\n }\n }\n }",
"public void mo4359a() {\n }",
"public void setTotalVariables( int totalVars ) ;",
"public static String _globals() throws Exception{\nmostCurrent._pnloverlay = new anywheresoftware.b4a.objects.PanelWrapper();\n //BA.debugLineNum = 21;BA.debugLine=\"Private txtval As EditText\";\nmostCurrent._txtval = new anywheresoftware.b4a.objects.EditTextWrapper();\n //BA.debugLineNum = 22;BA.debugLine=\"Private btnlogin As Button\";\nmostCurrent._btnlogin = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 23;BA.debugLine=\"Private btndelete As Button\";\nmostCurrent._btndelete = new anywheresoftware.b4a.objects.ButtonWrapper();\n //BA.debugLineNum = 24;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public abstract int nVars();",
"void method_9229(int var1, int var2, int var3) {\r\n this.field_8735 = var1;\r\n this.field_8736 = var2;\r\n this.field_8737 = var3;\r\n super();\r\n }",
"public void mo2198g(C0317d dVar) {\n }",
"public String _class_globals() throws Exception{\n_abm = new com.ab.abmaterial.ABMaterial();\r\n //BA.debugLineNum = 4;BA.debugLine=\"End Sub\";\r\nreturn \"\";\r\n}",
"public void clearVars() {\n setLatitude (FLOATNULL);\n setLongitude (FLOATNULL);\n setDepth (FLOATNULL);\n setTemperatureMin (FLOATNULL);\n setTemperatureMax (FLOATNULL);\n setSalinityMin (FLOATNULL);\n setSalinityMax (FLOATNULL);\n setOxygenMin (FLOATNULL);\n setOxygenMax (FLOATNULL);\n setNitrateMin (FLOATNULL);\n setNitrateMax (FLOATNULL);\n setPhosphateMin (FLOATNULL);\n setPhosphateMax (FLOATNULL);\n setSilicateMin (FLOATNULL);\n setSilicateMax (FLOATNULL);\n setChlorophyllMin (FLOATNULL);\n setChlorophyllMax (FLOATNULL);\n }",
"public static void main(String[] args) {\nint b;\n\t\tint a;\n\t}",
"public void mo115190b() {\n }",
"double defendre();",
"private Constants$CounterNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }",
"private final void zzR(Object var1_1, zzha var2_2) {\n block94: {\n var3_3 = this;\n var4_4 = var1_1;\n var5_5 = var2_2;\n var6_6 = this.zzh;\n if (var6_6 != 0) break block94;\n var7_7 = this.zzc;\n var6_6 = ((int[])var7_7).length;\n var8_8 = zzja.zzb;\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n var11_11 = var9_9;\n var13_13 = 0;\n for (var12_12 = 0; var12_12 < var6_6; var12_12 += 3) {\n block95: {\n var14_14 = var3_3.zzA(var12_12);\n var15_15 = var3_3.zzc;\n var16_16 = var15_15[var12_12];\n var17_17 = zzja.zzC(var14_14);\n var18_18 = 17;\n var19_19 = 1;\n if (var17_17 <= var18_18) {\n var20_20 = var3_3.zzc;\n var21_21 = var12_12 + 2;\n var18_18 = var20_20[var21_21];\n if ((var21_21 = var18_18 & var9_9) != var11_11) {\n var22_22 = var21_21;\n var13_13 = var8_8.getInt(var4_4, var22_22);\n var11_11 = var21_21;\n }\n var18_18 >>>= 20;\n var18_18 = var19_19 << var18_18;\n } else {\n var18_18 = 0;\n var20_20 = null;\n }\n var24_23 = var14_14 &= var9_9;\n switch (var17_17) lbl-1000:\n // 56 sources\n\n {\n default: {\n var17_17 = 0;\n break block95;\n }\n case 68: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 67: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 66: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 65: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 64: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 63: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 62: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 61: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n ** GOTO lbl-1000\n }\n case 60: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 59: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 58: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = (int)zzja.zzH(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n ** GOTO lbl-1000\n }\n case 57: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 56: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 55: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 54: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 53: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 52: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var10_10 = zzja.zzE(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n ** GOTO lbl-1000\n }\n case 51: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var28_26 = zzja.zzD(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n ** GOTO lbl-1000\n }\n case 50: {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var3_3.zzS(var5_5, var16_16, var26_24, var12_12);\n ** GOTO lbl-1000\n }\n case 49: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzaa(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 48: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzN(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 47: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 46: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 45: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 44: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 43: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 42: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzW(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 41: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 40: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 39: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 38: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 37: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 36: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 35: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 34: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var16_16 = 0;\n var15_15 = null;\n zzjk.zzN(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 33: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 32: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 31: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 30: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 29: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, false);\nlbl290:\n // 6 sources\n\n var17_17 = 0;\n break block95;\n }\n case 28: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzY(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 27: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzZ(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 26: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzX(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 25: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var17_17 = 0;\n zzjk.zzW(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 24: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 23: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 22: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 21: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 20: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 19: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 18: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 17: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 16: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n }\n break block95;\n }\n case 15: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n }\n break block95;\n }\n case 14: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n }\n break block95;\n }\n case 13: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n }\n break block95;\n }\n case 12: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n }\n break block95;\n }\n case 11: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n }\n break block95;\n }\n case 10: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n }\n break block95;\n }\n case 9: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 8: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n }\n break block95;\n }\n case 7: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = (int)zzkh.zzh(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n }\n break block95;\n }\n case 6: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n }\n break block95;\n }\n case 5: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n }\n break block95;\n }\n case 4: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n }\n break block95;\n }\n case 3: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n }\n break block95;\n }\n case 2: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n }\n break block95;\n }\n case 1: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var10_10 = zzkh.zzj(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n }\n break block95;\n }\n case 0: \n }\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var28_26 = zzkh.zzl(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n }\n }\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n }\n var7_7 = var3_3.zzn;\n var4_4 = var7_7.zzd(var4_4);\n var7_7.zzi(var4_4, var5_5);\n return;\n }\n this.zzo.zzb(var1_1);\n throw null;\n }",
"public int getTotalVariables() ;",
"private void createClassVariables(){ \n //--------------------------------------------------------------------------- \n Hashtable table=sqlTagsGeneratorTable.getImportedForeignKeyHash();\n Enumeration enum=table.keys();\n buffer=new StringBuffer();\n //buffer.append(\" private Connection connection;\\n\"); \n //buffer.append(\" private ConnectionTag connectionObject;\\n\"); \n //buffer.append(\" private Vector primaryKeyVector=new Vector();\\n\"); \n buffer.append(\" private String tableName=\\\"\"+tableName+\"\\\";\\n\"); \n\n for(;enum.hasMoreElements();){\n String foreignKeyName=(String)enum.nextElement();\n SQLTagsGeneratorForeignKey object=(SQLTagsGeneratorForeignKey)\n table.get(foreignKeyName);\n String importTable=object.getImportTableName();\n String exportTable=object.getExportTableName();\n String fkName=object.getFkName();\n buffer.append(\" private \"+exportTable+\" \"+fkName+\"_PARENT;\\n\");\n }\n\n table=sqlTagsGeneratorTable.getExportedForeignKeyHash();\n enum=table.keys();\n\n for(;enum.hasMoreElements();){\n String foreignKeyName=(String)enum.nextElement();\n SQLTagsGeneratorForeignKey object=(SQLTagsGeneratorForeignKey)\n table.get(foreignKeyName);\n String exportTable=object.getImportTableName();\n String fkName=object.getFkName();\n buffer.append(\" private \"+exportTable+\" \"+fkName+\"_CHILD;\\n\");\n }\n }",
"public void mo21779D() {\n }",
"private void yy() {\n\n\t}",
"private void ResetVarC() {\n anchura = true;\n iterator = 0;\n Yencoding = new ArrayList<Integer>();\n Cbencoding = new ArrayList<Integer>();\n Crencoding = new ArrayList<Integer>();\n FY = new StringBuilder();\n FCB = new StringBuilder();\n FCR = new StringBuilder();\n }",
"protected Double[] allocateVariables() {\n\t\tDouble[] _variables = new Double[size];\n\t\treturn _variables;\n\t}",
"public Vector freeVars() {\r\n\t\tVector v = new Vector(2, 2);\r\n\t\tVector temp = ((SimpleNode) jjtGetChild(0)).freeVars();\r\n\t\ttemp.remove(\"\");\r\n\t\tVector temp2 = ((SimpleNode) jjtGetChild(1)).freeVars();\r\n\t\ttemp2.remove(\"\");\r\n\t\tfor (Object obj : temp2) {\r\n\t\t\tif (!temp.contains(obj)) {\r\n\t\t\t\tv.add(obj);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn v;\r\n\t}",
"private void m3417d(C0933b bVar) {\n m3422v(bVar);\n }",
"private void m50366E() {\n }",
"void declaration() {\n\t\tString theToken = currentToken();\r\n\r\n\t\tif (theToken.equals(\"int\") || theToken.equals(\"void\")) {\r\n\t\t\ttypeSpeci();\r\n\t\t\taccept(\"ID\");\r\n\t\t\ttheToken = currentToken();\r\n\t\t\tif (theToken.equals(\";\") || theToken.equals(\"[\"))\r\n\t\t\t\tvarDec();\r\n\r\n\t\t\t// if int ID ( param ) compoundStatment\r\n\t\t\telse if (theToken.equals(\"(\"))\r\n\t\t\t\tfunDec();\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn;\r\n\t}",
"public void resetVariables() {\n this.name = \"\";\n this.equipLevel = 0;\n this.cpuCost = 0;\n this.bankDamageModifier = 1.0f;\n this.redirectDamageModifier = 1.0f;\n this.attackDamageModifier = 1.0f;\n this.ftpDamageModifier = 1.0f;\n this.httpDamageModifier = 1.0f;\n this.attackDamage = 0.0f;\n this.pettyCashReducePct = 1.0f;\n this.pettyCashFailPct = 1.0f;\n this.dailyPayChangeFailPct = 1.0f;\n this.dailyPayChangeReducePct = 1.0f;\n this.stealFileFailPct = 1.0f;\n this.installScriptFailPct = 1.0f;\n }",
"@Override\n public void func_104112_b() {\n \n }",
"void reset(){\n if (vars!=null){\n vars.clear();\n }\n if (gVars!=null){\n gVars.clear();\n }\n }",
"private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}",
"String getDefiningEnd();",
"d(l lVar, m mVar, b bVar) {\n super(mVar);\n this.f11484d = lVar;\n this.f11483c = bVar;\n }",
"private void localVariableDeclaration(Modifier modify, Scope scope, Vector queue)\r\n {\r\n if (nextSymbol == Keyword.FINALSY)\r\n {\r\n modify.add(nextSymbol.value);\r\n lookAhead();\r\n }\r\n\r\n modify.check(modify.fields | modify.access);\r\n Type t = type();\r\n\r\n variableDeclarators(modify, t, scope, queue);\r\n }",
"void m1864a() {\r\n }",
"public Variable(){\n name = \"\";\n initialValue = 0;\n }",
"public void resetVariables() {\n\t\tArrays.fill(variables, 0.0);\n\t}",
"public void mo1403c() {\n }",
"@Override\n public int[] getRequiredTokens() {\n return new int[] {\n TokenTypes.VARIABLE_DEF,\n };\n }",
"static void feladat4() {\n\t}",
"public DetachedVarSymbol(long flags, Name name, Type type, Symbol owner) {\n super(flags, name, type, owner);\n this.decl = null;\n }",
"public void mo38031a(C13262e eVar) {\n }",
"public static void main(String[] args) {\n\t\t\n\n\tchar singleLetter='c';\n\t\n\t//boolean new=true; do not use keyword to name your variables \n\t\n\t//int 1num=100; //error\n\t int num1=100;\n\t \n\t boolean boo_=true;\n\t double $price=2.99;\n\t //byte <b=1; --> error\n\t \n\t //Preferences\n\t /*\n\t * Follow camel casing\n\t * Java Classes should start with upper case and follow camel casing\n\t * Variables and methods in Java should start with lowercase and follow camel casing \n\t */\n\t \n\t short ThisIsMyShortNumber=10;\n\t System.out.println(ThisIsMyShortNumber);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}",
"public static void main(String[] args)\n {\n int varInt1 = 10;\n int varInt2 = 20;\n int varInt3;\n\n varInt3 = 30;\n\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n\n varInt1 = 5;\n varInt2 = 55;\n varInt3 = 555;\n\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n\n {\n double varDouble1;\n varDouble1 = 10.5;\n double varDouble2;\n varDouble2 = 21.5;\n System.out.println(\"varInt1=\" + varInt1);\n System.out.println();\n System.out.println(\"varInt2=\" + varInt2);\n System.out.println();\n System.out.println(\"varInt3=\" + varInt3);\n System.out.println();\n System.out.println(\"varDouble1=\" + varDouble1);\n System.out.println();\n System.out.println(\"varDouble2=\" + varDouble2);\n System.out.println();\n }\n }",
"public void mo12628c() {\n }",
"public void m23075a() {\n }",
"public void mo3749d() {\n }",
"private void initVars(){\n this.dice = new Dice();\n this.playing = true;\n this.currentPlayer = 0;\n this.turn = 0;\n this.xPlayers=new ArrayList<>(); \n this.players = new Player[4];\n this.diceRoller=true;\n this.xTokens=new ArrayList<>();\n this.winners=new ArrayList<>();\n this.computerPlayer= new Autoplay();\n this.gameResults = \"\";\n this.debug = false;\n }",
"public void mo23813b() {\n }",
"public int getNotaFinal()\r\n {\n return 4;\r\n }",
"public int getNotaFinal()\r\n {\n return 4;\r\n }",
"private Constants$TraceNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }",
"public void exit()\n {\n m_doc = null;\n m_stylesheet = null;\n\n // m_defaultParaProperties = null;\n\n m_paragraph = null;\n m_paraProperties = null;\n m_charProperties = null;\n m_charPropertiesStack = null;\n m_container = null;\n m_containerStack = null;\n }",
"public void method_4231() {\r\n String[] var1;\r\n float var2;\r\n float var3;\r\n float var4;\r\n int var10000;\r\n float var10001;\r\n float var31;\r\n label281: {\r\n var1 = class_752.method_4253();\r\n var10000 = this.field_2990.field_1832;\r\n if(var1 != null) {\r\n label282: {\r\n if(this.field_2990.field_1832) {\r\n var2 = class_1715.method_9556(this.field_3412 * 3.1415927F * 2.0F);\r\n var3 = class_1715.method_9556(this.field_3411 * 3.1415927F * 2.0F);\r\n float var46;\r\n var10000 = (var46 = var3 - -0.3F) == 0.0F?0:(var46 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label282;\r\n }\r\n\r\n if(var10000 <= 0) {\r\n float var47;\r\n var10000 = (var47 = var2 - -0.3F) == 0.0F?0:(var47 < 0.0F?-1:1);\r\n if(var1 == null) {\r\n break label282;\r\n }\r\n\r\n if(var10000 >= 0) {\r\n String[] var29 = field_3418;\r\n this.field_2990.method_2085(this.field_2994, this.field_2995, this.field_2996, \"mob.enderdragon.wings\", 5.0F, 0.8F + this.field_3028.nextFloat() * 0.3F, false);\r\n }\r\n }\r\n }\r\n\r\n this.field_3411 = this.field_3412;\r\n var31 = this.method_406();\r\n var10001 = 0.0F;\r\n if(var1 == null) {\r\n break label281;\r\n }\r\n\r\n float var48;\r\n var10000 = (var48 = var31 - 0.0F) == 0.0F?0:(var48 < 0.0F?-1:1);\r\n }\r\n }\r\n\r\n if(var10000 <= 0) {\r\n var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var32 = field_3418;\r\n this.field_2990.method_2087(\"largeexplode\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n if(var1 != null) {\r\n return;\r\n }\r\n }\r\n\r\n this.method_4318();\r\n var31 = 0.2F;\r\n var10001 = class_1715.method_9558(this.field_2997 * this.field_2997 + this.field_2999 * this.field_2999) * 10.0F + 1.0F;\r\n }\r\n\r\n class_758 var34;\r\n label259: {\r\n var2 = var31 / var10001;\r\n var2 *= (float)Math.pow(2.0D, this.field_2998);\r\n var34 = this;\r\n if(var1 != null) {\r\n if(this.field_3414) {\r\n this.field_3412 += var2 * 0.5F;\r\n if(var1 != null) {\r\n break label259;\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n var34.field_3412 += var2;\r\n }\r\n\r\n float var11;\r\n float var12;\r\n float var13;\r\n float var14;\r\n float var17;\r\n label252: {\r\n label283: {\r\n double var7;\r\n double var9;\r\n double var15;\r\n double var30;\r\n label284: {\r\n label285: {\r\n label286: {\r\n this.field_3000 = class_1715.method_9579(this.field_3000);\r\n var10000 = this.field_3402;\r\n if(var1 != null) {\r\n if(this.field_3402 < 0) {\r\n int var5 = 0;\r\n\r\n while(var5 < this.field_3401.length) {\r\n this.field_3401[var5][0] = (double)this.field_3000;\r\n this.field_3401[var5][1] = this.field_2995;\r\n ++var5;\r\n if(var1 == null) {\r\n break label286;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n var10000 = ++this.field_3402;\r\n }\r\n\r\n if(var1 == null) {\r\n break label285;\r\n }\r\n\r\n if(var10000 == this.field_3401.length) {\r\n this.field_3402 = 0;\r\n }\r\n\r\n this.field_3401[this.field_3402][0] = (double)this.field_3000;\r\n this.field_3401[this.field_3402][1] = this.field_2995;\r\n }\r\n\r\n var34 = this;\r\n if(var1 == null) {\r\n break label284;\r\n }\r\n\r\n var10000 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var34 = this;\r\n if(var1 == null) {\r\n break label252;\r\n }\r\n\r\n if(this.field_3350 <= 0) {\r\n break label283;\r\n }\r\n\r\n var9 = this.field_2994 + (this.field_3351 - this.field_2994) / (double)this.field_3350;\r\n var15 = this.field_2995 + (this.field_3352 - this.field_2995) / (double)this.field_3350;\r\n var30 = this.field_2996 + (this.field_3353 - this.field_2996) / (double)this.field_3350;\r\n var7 = class_1715.method_9580(this.field_3354 - (double)this.field_3000);\r\n this.field_3000 = (float)((double)this.field_3000 + var7 / (double)this.field_3350);\r\n this.field_3001 = (float)((double)this.field_3001 + (this.field_3355 - (double)this.field_3001) / (double)this.field_3350);\r\n --this.field_3350;\r\n this.method_3854(var9, var15, var30);\r\n this.method_3853(this.field_3000, this.field_3001);\r\n if(var1 != null) {\r\n break label283;\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n double var18;\r\n double var20;\r\n label219: {\r\n var9 = var34.field_3398 - this.field_2994;\r\n var15 = this.field_3399 - this.field_2995;\r\n var30 = this.field_3400 - this.field_2996;\r\n var7 = var9 * var9 + var15 * var15 + var30 * var30;\r\n var34 = this;\r\n if(var1 != null) {\r\n if(this.field_3415 != null) {\r\n this.field_3398 = this.field_3415.field_2994;\r\n this.field_3400 = this.field_3415.field_2996;\r\n var18 = this.field_3398 - this.field_2994;\r\n var20 = this.field_3400 - this.field_2996;\r\n double var22 = Math.sqrt(var18 * var18 + var20 * var20);\r\n double var24 = 0.4000000059604645D + var22 / 80.0D - 1.0D;\r\n if(var1 != null) {\r\n if(var24 > 10.0D) {\r\n var24 = 10.0D;\r\n }\r\n\r\n this.field_3399 = this.field_3415.field_3004.field_6910 + var24;\r\n }\r\n\r\n if(var1 != null) {\r\n break label219;\r\n }\r\n }\r\n\r\n this.field_3398 += this.field_3028.nextGaussian() * 2.0D;\r\n var34 = this;\r\n }\r\n\r\n var34.field_3400 += this.field_3028.nextGaussian() * 2.0D;\r\n }\r\n\r\n label211: {\r\n var34 = this;\r\n if(var1 != null) {\r\n label209: {\r\n if(!this.field_3413) {\r\n label289: {\r\n double var49;\r\n var10000 = (var49 = var7 - 100.0D) == 0.0D?0:(var49 < 0.0D?-1:1);\r\n if(var1 != null) {\r\n if(var10000 < 0) {\r\n break label289;\r\n }\r\n\r\n double var50;\r\n var10000 = (var50 = var7 - 22500.0D) == 0.0D?0:(var50 < 0.0D?-1:1);\r\n }\r\n\r\n if(var1 != null) {\r\n if(var10000 > 0) {\r\n break label289;\r\n }\r\n\r\n var34 = this;\r\n if(var1 == null) {\r\n break label209;\r\n }\r\n\r\n var10000 = this.field_3006;\r\n }\r\n\r\n if(var10000 == 0) {\r\n var34 = this;\r\n if(var1 == null) {\r\n break label209;\r\n }\r\n\r\n if(!this.field_3007) {\r\n break label211;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n }\r\n\r\n var34.method_4321();\r\n }\r\n\r\n double var33;\r\n double var44;\r\n label291: {\r\n var15 /= (double)class_1715.method_9558(var9 * var9 + var30 * var30);\r\n var11 = 0.6F;\r\n double var51;\r\n var10000 = (var51 = var15 - (double)(-var11)) == 0.0D?0:(var51 < 0.0D?-1:1);\r\n if(var1 != null) {\r\n if(var10000 < 0) {\r\n var15 = (double)(-var11);\r\n }\r\n\r\n var44 = var15;\r\n var33 = (double)var11;\r\n if(var1 == null) {\r\n break label291;\r\n }\r\n\r\n double var52;\r\n var10000 = (var52 = var15 - var33) == 0.0D?0:(var52 < 0.0D?-1:1);\r\n }\r\n\r\n if(var10000 > 0) {\r\n var15 = (double)var11;\r\n }\r\n\r\n this.field_2998 += var15 * 0.10000000149011612D;\r\n this.field_3000 = class_1715.method_9579(this.field_3000);\r\n var44 = 180.0D;\r\n var33 = Math.atan2(var9, var30) * 180.0D / 3.141592653589793D;\r\n }\r\n\r\n label293: {\r\n var18 = var44 - var33;\r\n var20 = class_1715.method_9580(var18 - (double)this.field_3000);\r\n double var53;\r\n var10000 = (var53 = var20 - 50.0D) == 0.0D?0:(var53 < 0.0D?-1:1);\r\n if(var1 != null) {\r\n if(var10000 > 0) {\r\n var20 = 50.0D;\r\n }\r\n\r\n var44 = var20;\r\n var33 = -50.0D;\r\n if(var1 == null) {\r\n break label293;\r\n }\r\n\r\n double var54;\r\n var10000 = (var54 = var20 - -50.0D) == 0.0D?0:(var54 < 0.0D?-1:1);\r\n }\r\n\r\n if(var10000 < 0) {\r\n var20 = -50.0D;\r\n }\r\n\r\n var44 = this.field_3398 - this.field_2994;\r\n var33 = this.field_3399 - this.field_2995;\r\n }\r\n\r\n azw var38 = azw.method_5086(var44, var33, this.field_3400 - this.field_2996).method_5090();\r\n azw var23 = azw.method_5086((double)class_1715.method_9555(this.field_3000 * 3.1415927F / 180.0F), this.field_2998, (double)(-class_1715.method_9556(this.field_3000 * 3.1415927F / 180.0F))).method_5090();\r\n var17 = (float)(var23.method_5091(var38) + 0.5D) / 1.5F;\r\n var31 = var17;\r\n var10001 = 0.0F;\r\n if(var1 != null) {\r\n if(var17 < 0.0F) {\r\n var17 = 0.0F;\r\n }\r\n\r\n this.field_3349 *= 0.8F;\r\n var31 = class_1715.method_9558(this.field_2997 * this.field_2997 + this.field_2999 * this.field_2999) * 1.0F;\r\n var10001 = 1.0F;\r\n }\r\n\r\n float var41 = var31 + var10001;\r\n double var25 = Math.sqrt(this.field_2997 * this.field_2997 + this.field_2999 * this.field_2999) * 1.0D + 1.0D;\r\n var44 = var25;\r\n var33 = 40.0D;\r\n if(var1 != null) {\r\n if(var25 > 40.0D) {\r\n var25 = 40.0D;\r\n }\r\n\r\n this.field_3349 = (float)((double)this.field_3349 + var20 * (0.699999988079071D / var25 / (double)var41));\r\n this.field_3000 += this.field_3349 * 0.1F;\r\n var44 = 2.0D;\r\n var33 = var25 + 1.0D;\r\n }\r\n\r\n label171: {\r\n var12 = (float)(var44 / var33);\r\n var13 = 0.06F;\r\n this.method_3882(0.0F, -1.0F, var13 * (var17 * var12 + (1.0F - var12)));\r\n var34 = this;\r\n if(var1 != null) {\r\n if(this.field_3414) {\r\n this.method_3864(this.field_2997 * 0.800000011920929D, this.field_2998 * 0.800000011920929D, this.field_2999 * 0.800000011920929D);\r\n if(var1 != null) {\r\n break label171;\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n var34.method_3864(this.field_2997, this.field_2998, this.field_2999);\r\n }\r\n\r\n azw var27 = azw.method_5086(this.field_2997, this.field_2998, this.field_2999).method_5090();\r\n var14 = (float)(var27.method_5091(var23) + 1.0D) / 2.0F;\r\n var14 = 0.8F + 0.15F * var14;\r\n this.field_2997 *= (double)var14;\r\n this.field_2999 *= (double)var14;\r\n this.field_2998 *= 0.9100000262260437D;\r\n }\r\n\r\n this.field_3330 = this.field_3000;\r\n this.field_3404.field_3014 = this.field_3404.field_3015 = 3.0F;\r\n this.field_3406.field_3014 = this.field_3406.field_3015 = 2.0F;\r\n this.field_3407.field_3014 = this.field_3407.field_3015 = 2.0F;\r\n this.field_3408.field_3014 = this.field_3408.field_3015 = 2.0F;\r\n this.field_3405.field_3015 = 3.0F;\r\n this.field_3405.field_3014 = 5.0F;\r\n this.field_3409.field_3015 = 2.0F;\r\n this.field_3409.field_3014 = 4.0F;\r\n this.field_3410.field_3015 = 3.0F;\r\n this.field_3410.field_3014 = 4.0F;\r\n var34 = this;\r\n }\r\n\r\n var3 = (float)(var34.method_4317(5, 1.0F)[1] - this.method_4317(10, 1.0F)[1]) * 10.0F / 180.0F * 3.1415927F;\r\n var4 = class_1715.method_9556(var3);\r\n float var35 = -class_1715.method_9555(var3);\r\n float var19 = this.field_3000 * 3.1415927F / 180.0F;\r\n float var36 = class_1715.method_9555(var19);\r\n float var21 = class_1715.method_9556(var19);\r\n this.field_3405.method_3856();\r\n this.field_3405.method_3887(this.field_2994 + (double)(var36 * 0.5F), this.field_2995, this.field_2996 - (double)(var21 * 0.5F), 0.0F, 0.0F);\r\n this.field_3409.method_3856();\r\n this.field_3409.method_3887(this.field_2994 + (double)(var21 * 4.5F), this.field_2995 + 2.0D, this.field_2996 + (double)(var36 * 4.5F), 0.0F, 0.0F);\r\n this.field_3410.method_3856();\r\n this.field_3410.method_3887(this.field_2994 - (double)(var21 * 4.5F), this.field_2995 + 2.0D, this.field_2996 - (double)(var36 * 4.5F), 0.0F, 0.0F);\r\n var34 = this;\r\n if(var1 != null) {\r\n label163: {\r\n if(!this.field_2990.field_1832) {\r\n var34 = this;\r\n if(var1 == null) {\r\n break label163;\r\n }\r\n\r\n if(this.field_3315 == 0) {\r\n this.method_4319(this.field_2990.method_2155(this, this.field_3409.field_3004.method_7097(4.0D, 2.0D, 4.0D).method_7104(0.0D, -2.0D, 0.0D)));\r\n this.method_4319(this.field_2990.method_2155(this, this.field_3410.field_3004.method_7097(4.0D, 2.0D, 4.0D).method_7104(0.0D, -2.0D, 0.0D)));\r\n this.method_4320(this.field_2990.method_2155(this, this.field_3404.field_3004.method_7097(1.0D, 1.0D, 1.0D)));\r\n }\r\n }\r\n\r\n var34 = this;\r\n }\r\n }\r\n\r\n double[] var39 = var34.method_4317(5, 1.0F);\r\n double[] var40 = this.method_4317(0, 1.0F);\r\n var11 = class_1715.method_9555(this.field_3000 * 3.1415927F / 180.0F - this.field_3349 * 0.01F);\r\n var17 = class_1715.method_9556(this.field_3000 * 3.1415927F / 180.0F - this.field_3349 * 0.01F);\r\n this.field_3404.method_3856();\r\n this.field_3404.method_3887(this.field_2994 + (double)(var11 * 5.5F * var4), this.field_2995 + (var40[1] - var39[1]) * 1.0D + (double)(var35 * 5.5F), this.field_2996 - (double)(var17 * 5.5F * var4), 0.0F, 0.0F);\r\n int var42 = 0;\r\n\r\n label295: {\r\n while(true) {\r\n if(var42 < 3) {\r\n class_706 var43 = null;\r\n var10000 = var42;\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var42 == 0) {\r\n var43 = this.field_3406;\r\n }\r\n\r\n var10000 = var42;\r\n byte var37 = 1;\r\n if(var1 != null) {\r\n if(var42 == 1) {\r\n var43 = this.field_3407;\r\n }\r\n\r\n var10000 = var42;\r\n var37 = 2;\r\n }\r\n\r\n if(var10000 == var37) {\r\n var43 = this.field_3408;\r\n }\r\n\r\n double[] var26 = this.method_4317(12 + var42 * 2, 1.0F);\r\n var12 = this.field_3000 * 3.1415927F / 180.0F + this.method_4322(var26[0] - var39[0]) * 3.1415927F / 180.0F * 1.0F;\r\n var13 = class_1715.method_9555(var12);\r\n float var45 = class_1715.method_9556(var12);\r\n var14 = 1.5F;\r\n float var28 = (float)(var42 + 1) * 2.0F;\r\n var43.method_3856();\r\n var43.method_3887(this.field_2994 - (double)((var36 * var14 + var13 * var28) * var4), this.field_2995 + (var26[1] - var39[1]) * 1.0D - (double)((var28 + var14) * var35) + 1.5D, this.field_2996 + (double)((var21 * var14 + var45 * var28) * var4), 0.0F, 0.0F);\r\n ++var42;\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var34 = this;\r\n if(var1 == null) {\r\n break label295;\r\n }\r\n\r\n var10000 = this.field_2990.field_1832;\r\n break;\r\n }\r\n\r\n if(var10000 != 0) {\r\n return;\r\n }\r\n\r\n var34 = this;\r\n }\r\n\r\n var34.field_3414 = this.method_4323(this.field_3404.field_3004) | this.method_4323(this.field_3405.field_3004);\r\n }",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"@Test\n\tpublic void testMakeSureVarVariablesCanShadowLetVariables()\n\t{\n\t\tString[] code = {\n\t\t\t\"let a = 1;\",\n\t\t \"let b = 2;\",\n\t\t \"var c = 3;\",\n\n\t\t \"function sup(a) {\",\n\t\t \"var b = 4;\",\n\t\t \"let c = 5;\",\n\t\t \"let d = 6;\",\n\t\t \"if (false) {\",\n\t\t \"var d = 7;\",\n\t\t \"}\",\n\t\t \"return b + c + a + d;\",\n\t\t \"}\",\n\n\t\t \"sup();\"\n\t\t};\n\t\t\n\t\tth.addError(1, 5, \"'a' is defined but never used.\");\n\t th.addError(2, 5, \"'b' is defined but never used.\");\n\t th.addError(3, 5, \"'c' is defined but never used.\");\n\t th.addError(9, 5, \"'d' has already been declared.\");\n\t\tth.test(code, new LinterOptions().set(\"esnext\", true).set(\"unused\", true).set(\"undef\", true).set(\"funcscope\", true));\n\t}",
"private Stmt varDeclaration() {\n Token name = consume(IDENTIFIER, \"Expect variable name.\");\n Expr initializer = null;\n // Parse the initializer if an '=' is present. This branching allows initialization without declaration.\n if(match(EQUAL)) {\n initializer = expression();\n }\n\n consumeSemi(\"Expect ';' after variable declaration.\");\n return new Stmt.Var(name, initializer);\n }",
"@Modified(author=\"Phil Brown\", summary=\"Added Method\")\n public void setupEndValues() {\n }",
"public void method_1142(bdw var1) {\r\n super.method_651();\r\n this.field_987 = -16;\r\n this.field_971 = var1;\r\n }",
"public void resetVariables(){\n\t\tthis.queryTriplets.clear();\n\t\tthis.variableList.clear();\n\t\tthis.prefixMap.clear();\n\t}",
"public static void main(String[] args) {\n int static2 = 22;\n int _static = 22;\n int $tatic = 45;\n int staticVar = 23;\n\n int salary$ = 55;\n // int 1stMonthSalary = 55; --- ERROR, cannot start with number\n int $ = 10;\n int _ = 3;\n System.out.println(\"salary $ = \" + $); // these variable work....but not recommended\n System.out.println(\"weekly _ = \" + _);// these variable work....but not recommended\n // int number-of-friends = 400; --- cannot use dashes ----> ERROR\n\n //int number_of_friends = 500; ---- NOT CONVENTION\n int numberOfFriends = 500; // use this camel case\n\n\n\n\n\n\n\n\n\n }",
"@AfterAll\n public static void afterEverything() {\n //Set all instance variable to null\n oneHalf = null;\n oneFourth = null;\n twoThirds = null;\n negOneHalf = null;\n negOneFourth = null;\n negThreeNinths = null;\n negEightTwelfths = null;\n zeroTenth = null;\n zero = null;\n one = null;\n negOne = null;\n }",
"private void extractVariables(String codeString) {\n // Remove array initializations\n codeString = arrayInitializer.matcher(codeString).replaceAll(\"\");\n \n // Merge multi declarations and instantiations\n codeString = codeString.replace(\" = \", \"=\").replace(\" , \", \",\");\n \n // Keep only declaration and initialization part\n String[] tmp = codeString.split(\" \");\n if (tmp.length > 1) {\n codeString = tmp[tmp.length - 2];\n \n // Split per declaration\n String[] declarations = codeString.split(\",\");\n for (String declaration : declarations) {\n int endIndex = declaration.indexOf('=');\n if (endIndex != -1) {\n declaration = declaration.substring(0, endIndex);\n }\n declaration = declaration.trim();\n \n // Check that we did not accidentally extracted a keyword, parenthesis or other language elements.\n if (!KEYWORDS.contains(declaration)) {\n addResult(new GlobalVariable(currentFile, declaration));\n }\n }\n }\n }",
"public void mo97908d() {\n }",
"public void mo6944a() {\n }"
]
| [
"0.6759361",
"0.6568837",
"0.62458223",
"0.61133546",
"0.60982347",
"0.6087512",
"0.60586846",
"0.5882926",
"0.5873854",
"0.5771458",
"0.5769804",
"0.57594293",
"0.57517105",
"0.57495594",
"0.5749265",
"0.5725298",
"0.57189494",
"0.5666249",
"0.5654246",
"0.5628506",
"0.5626967",
"0.56191045",
"0.56091386",
"0.5567616",
"0.55607074",
"0.55529606",
"0.55490804",
"0.5538598",
"0.55365247",
"0.5529146",
"0.5518556",
"0.5514004",
"0.5513467",
"0.55110264",
"0.55010474",
"0.5498994",
"0.5495076",
"0.54937106",
"0.54838836",
"0.5474374",
"0.5459003",
"0.5441168",
"0.5438627",
"0.54246694",
"0.5419703",
"0.54133976",
"0.54094774",
"0.5409039",
"0.5399774",
"0.5398901",
"0.5392156",
"0.53920305",
"0.5364239",
"0.53492737",
"0.53465533",
"0.53422683",
"0.53402853",
"0.5336927",
"0.5335425",
"0.5334371",
"0.53304267",
"0.5329041",
"0.53212464",
"0.53177804",
"0.53096867",
"0.53052056",
"0.53024346",
"0.52943337",
"0.52930695",
"0.52907306",
"0.5287984",
"0.52876025",
"0.52872366",
"0.52839994",
"0.52818817",
"0.5273854",
"0.52727395",
"0.52692044",
"0.5266803",
"0.5264341",
"0.52640367",
"0.5263732",
"0.5248241",
"0.5242",
"0.524104",
"0.5240399",
"0.5240399",
"0.52325314",
"0.52293205",
"0.52283555",
"0.5227368",
"0.52226347",
"0.52196854",
"0.5219551",
"0.52147174",
"0.521445",
"0.5211866",
"0.52117723",
"0.5207038",
"0.520446",
"0.52021974"
]
| 0.0 | -1 |
This is the public class Calculation. it is public so we can use it in the main method The parameters ensure that it has two numbers to calculate, both as doubles. / | public Calculation (double firstVariable, double secondVariable){
setFirstVariable(firstVariable);
setSecondVariable(secondVariable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"double performeOperation(double argument1, double argument2);",
"public abstract double calcular();",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n double x = s.nextDouble();\n double y = s.nextDouble();\n double a = s.nextDouble();\n double b = s.nextDouble();\n \n DecimalFormat df = new DecimalFormat(\"#.000000000000\");\n double dp = x*a + y*b;\n double el =Math.sqrt(a*a + b*b);\n //double mel = dp/Double.valueOf(df.format(el*el));\n double mel = dp/(el*el);\n double as = mel*a;\n double bs = mel*b;\n double n = (x-mel*a)/(-1*b);\n //System.out.println(dp + \" \" + el + \" \" + mel + \" \" + as + \" \" + bs + \" \" + n);\n System.out.println(mel);\n System.out.println(n);\n }",
"@Override\n\tpublic double calc(double d1, double d2) {\n\t\treturn 0;\n\t}",
"public static void main(String[] args) {\n Calculator calc=new Calculator();\r\n double operand1,operand2,result=0;\r\n operand1=calc.getOperand1();\r\n operand2=calc.getOperand2();\r\n String op;\r\n op=calc.getOperator();\r\n try\r\n {\r\n \r\n switch(op)\r\n {\r\n case \"+\": Add add=new Add();\r\n result=add.doOperation(operand1, operand2);\r\n break;\r\n case \"-\": Subract sub=new Subract();\r\n result=sub.doOperation(operand1, operand2);\r\n break;\r\n case \"*\": Multiply mul=new Multiply();\r\n result=mul.doOperation(operand1, operand2);\r\n break;\r\n case \"/\": Division div =new Division();\r\n if(operand2==0)\r\n {\r\n \tthrow new ArithmeticException();\r\n }\r\n result=div.doOperation(operand1, operand2);\r\n break;\r\n default: throw new Exception(\"Invalid operation\");\r\n }\r\n \r\n\t }\r\n catch(ArithmeticException e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n }\r\n \r\n catch(Exception e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n } \r\n finally\r\n {\r\n \t System.exit(0);\r\n }\r\n System.out.print(result);\r\n \r\n}",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter first Value: \");\n\t\tdouble a = scan.nextDouble();\n\t\tSystem.out.println(\"Enter second Value: \");\n\t\tdouble b = scan.nextDouble();\n\t\tSystem.out.println(\"Enter operation you would like to perform (Example +, - , *, /): \");\n\t\tString s = scan.next();\n\t\tscan.close();\n\t\tdouble ans;\n\t\t\n\t\tif(s.equals(\"+\")){\n\t\t\tans = a+b;\n\t\t}\n\t\telse if(s.equals(\"-\")){\n\t\t\tans = a-b;\n\t\t}\n\t\telse if(s.equals(\"*\")){\n\t\t\tans = a*b;\n\t\t}\n\t\telse if(s.equals(\"/\")){\n\t\t\tans = a/b;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Invalid Operation\");\n\t\t\tans = 0;\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tSystem.out.printf(\"%.3f %s %.3f = %.3f\",a,s,b,ans);\n\n\n\n\n\t}",
"public void calculate();",
"public static void main(String[] args) {\n\n Scanner input = new Scanner(System.in);\n System.out.print(\"What is the first number? \");\n String num1Str = input.nextLine();\n System.out.print(\"What is the second number? \");\n String num2Str = input.nextLine();\n int num1Int = Integer.parseInt(num1Str);\n int num2Int = Integer.parseInt(num2Str);\n int sum = num1Int + num2Int;\n int difference = num1Int - num2Int;\n int product = num1Int * num2Int;\n double quotient = (double)num1Int / num2Int;\n System.out.printf(\"%d + %d = %d\\n%d - %d = %d\\n%d * %d = %d\\n%d / %d = %.2f\\n\", num1Int, num2Int, sum, num1Int, num2Int, difference, num1Int, num2Int, product, num1Int, num2Int, quotient );\n }",
"public static void main(String[] args) {\n int num1 = 5;\r\n int num2 = 10;\r\n NumOperation opr1 = new NumOperation();\r\n NumOperation opr2 = new NumOperation2();\r\n System.out.println(\"Addition of 5 and 10 is : \" + opr1.numCalc(num1, num2));\r\n System.out.println(\"Multiplication of 5 and 10 is : \" + opr2.numCalc(num1, num2));\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}",
"public double calculate(double num1, double num2, String operator)\n {\n switch(operator)\n {\n case \"+\":\n return num1 + num2;\n case \"-\":\n return num1 - num2;\n case \"*\":\n return num1 * num2;\n case \"/\":\n // This if statement prevents the creation of black holes. You are welcome, earth.\n if(num2 == 0)\n {\n return 0;\n }\n return num1 / num2;\n case \"%\":\n return num1 % num2;\n default:\n // Error\n System.out.println(\"Undefined operator pressed: \" + operator);\n return 0;\n }\n }",
"public static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\tdouble a,b,result;\n\t\tchar operation;\n\t\tSystem.out.println(\"PLease enter a first number\");\n\t\ta=input.nextDouble();\n\t\tSystem.out.println(\"Please enter a second number\");\n\t\tb=input.nextDouble();\n\t\tSystem.out.println(\"PLease tell us what kind of operation you want to use (+,-,*,/)\");\n\t\toperation=input.next().charAt(0);\n\t\t\n\t\tswitch(operation) {\n\t\t case '+':\n\t\t \tresult=a+b;\n\t\t \tbreak;\n\t\t case '-':\n\t\t \tresult=a-b;\n\t\t \tbreak;\n\t\t case'*':\n\t\t \tresult=a*b;\n\t\t \tbreak;\n\t\t case '/':\n\t\t \tresult=a/b;\n\t\t \tbreak;\n\t\t \tdefault:\n\t\t \t\tresult=0;\n\t\t \t\tSystem.out.println(\"Invalid input\");\n\t\t}System.out.println(\"The result is \"+ a+ operation+b+\"=\"+ result);\n \n\t\t\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}",
"public static void main(String[] args) {\n\t\t\t\t\t\t\r\n\t\tint num1 = 100;\r\n\t\tint num2 = 50;\r\n\t\t\r\n\t\tCalcOperation calc = new CalcOperation();\r\n\t\t\r\n\t\tSystem.out.println(\"Addition of \"+num1+\" and \"+num2+\" is: \"+calc.addition(num1, num2));\r\n\t\tSystem.out.println(\"Subraction of \"+num1+\" and \"+num2+\" is: \"+calc.subraction(num1, num2));\r\n\t\tSystem.out.println(\"Multiplication of \"+num1+\" and \"+num2+\" is: \"+calc.multipliation(num1, num2));\r\n\t\tSystem.out.println(\"Division of \"+num1+\" and \"+num2+\" is: \"+calc.division(num1, num2));\r\n\t}",
"@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}",
"public static void main (String [] args) {\n\t\tint num1, num2; //int num1; int num2;\n\t\t\n\t\t//initialize - give a value\n\t\tnum1 = 25;\n\t\tnum2 = 4;\n\t\t\n\t\tint sum = 0;\n\t\tint mult = 0;\n\t\tint div = 0;\n\t\t\n\t\tsum = num1 + num2;\n\t\tmult = num1*num2;\n\t\tdiv = num1/num2;\n\t\t\n\t\tSystem.out.println(\"The sum of the numbers is: \"+ sum);\n\t\tSystem.out.println(\"The product of the numbers is: \"+ mult);\n\t\tSystem.out.println(\"The division of the numbers is: \"+ div);\n\t\t\n\t\t\n\t\tdouble d1, d2;\t\n\t\t\n\t\td1 = 6.99;\n\t\td2 = 3.5;\n\t\t\n\t\t\n\t\t//double will keep all the number but division will only hold the whole number\n\t\tdouble div_d = 0;\n\t\tdouble div_i = 0;\n\n\t\t\n\t\tdiv_d = d1/d2;\n\t\tSystem.out.println(\"The division of the double numbers is: \" + div_d);\n\t\t\n\t\t//not deciding on the right data types, you might loose information\n\t\tdiv_i = num1/num2;\n\t\tSystem.out.println(\"The division of the numbers is: \" + div_i);\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\nScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter first number:\");\n\t\t\n\t\tdouble num1 = scan.nextDouble();\n\t\t \n\t\tSystem.out.println(\"Enter second number:\");\n\t\t\n\t\tdouble num2 = scan.nextDouble();\n\t\t \n\t\tSystem.out.println(\"Select operator: +, -, *, /, %\");\n\t\tString operator = scan.next();\n\t\t \n\t\t switch(operator) {\n\t\t \n\t\t case (\"+\"):\n\t\t\t System.out.println(\"result: \" +(num1+num2));\n\t\t break;\n\t\t case (\"-\"):\n\t\t\t System.out.println(\"result: \" +(num1-num2));\n\t\t break;\n\t\t case (\"*\"):\n\t\t\t System.out.println(\"result: \" +(num1*num2));\n\t\t break;\n\t\t case (\"/\"):\n\t\t\t System.out.println(\"result: \" + (num1/num2));\n\t\t break;\n\t\t case (\"%\"):\n\t\t\t System.out.println(\"result: \" + (num1%num2));\n\t\t break;\n\t\t default:\n\t\t\t System.out.println(\"impossible\");\n\t\t \n\t\t }\n\t\t \n\t\t \n\t}",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 / num2;\n\t\t}",
"public static void main(String[] args) {\n\n System.out.println(\"------------------------------------\");\n //making a simple console calculator\n Scanner sc = new Scanner(System.in);\n double x, y;\n double result = 0;\n\n System.out.println(\"1. Addition\");\n System.out.println(\"2. Subtraction\");\n System.out.println(\"3. Multiplying\");\n System.out.println(\"4. Division\"); //HW\n System.out.print(\"Enter the operation: \");\n int operation = sc.nextInt();\n\n System.out.print(\"Enter first number: \");\n x = sc.nextInt();\n System.out.print(\"Enter second number: \");\n y = sc.nextInt();\n\n //simple\n if (operation == 1) {\n result = x + y;\n } else if (operation == 2) {\n result = x - y;\n } else if (operation == 3) {\n result = x * y;\n } else if (operation == 4 && y != 0) {\n result = x / y;\n } else {\n System.out.println(\"Wrong operation!\");\n }\n \n System.out.println(\"Result: \" + result);\n }",
"public double divisao (double numero1, double numero2){\n\t}",
"public static void main(String[] args) {\r\n\r\n BasicMath one = new BasicMath();\r\n \r\n System.out.println();\r\n System.out.println(\"Integer calculations:\");\r\n\r\n one.integerAddition();\r\n one.integerSubtraction();\r\n one.integerMultiplication();\r\n one.integerDivisionWrong();\r\n one.integerDivisionRight();\r\n \r\n System.out.println();\r\n System.out.println(\"Floating Point calculations:\");\r\n\r\n one.doubleAddition();\r\n one.doubleSubtraction();\r\n one.doubleMultiplication();\r\n one.doubleDivision();\r\n \r\n System.out.println();\r\n \r\n }",
"private static double operate(Double a, Double b, String op){\n\t switch (op){\r\n\t case \"+\": return Double.valueOf(a) + Double.valueOf(b);\r\n\t case \"-\": return Double.valueOf(a) - Double.valueOf(b);\r\n\t case \"*\": return Double.valueOf(a) * Double.valueOf(b);\r\n\t case \"/\": try{\r\n\t return Double.valueOf(a) / Double.valueOf(b);\r\n\t }catch (Exception e){\r\n\t e.getMessage();\r\n\t }\r\n\t default: return -1;\r\n\t }\r\n\t }",
"abstract void calculate(double a);",
"public void calculate() {\n\n InputHelper inputHelper = new InputHelper();\n String firstNumber = inputHelper.getInput(\"Write first number: \");\n String secondNumber = inputHelper.getInput(\"Write second number: \");\n String action = inputHelper.getInput(\"What action you want to do ( + - * /): \");\n\n while (!firstNumber.equals(\"0\") || !secondNumber.equals(\"0\") || !action.equals(\"0\")) {\n try {\n switch (action) {\n case \"+\":\n System.out.println(\"The result is: \" + (Double.valueOf(firstNumber) + Double.valueOf(secondNumber)));\n break;\n case \"-\":\n System.out.println(\"The result is: \" + (Double.valueOf(firstNumber) - Double.valueOf(secondNumber)));\n break;\n case \"*\":\n System.out.println(\"The result is: \" + (Double.valueOf(firstNumber) * Double.valueOf(secondNumber)));\n break;\n case \"/\":\n System.out.println(\"The result is: \" + (Double.valueOf(firstNumber) / Double.valueOf(secondNumber)));\n break;\n default:\n System.out.println(\"You've entered a wrong action!\");\n }\n } catch (NumberFormatException e) {\n System.out.println(\"You've entered not a number!\");\n }\n\n firstNumber = inputHelper.getInput(\"Write first number: \");\n secondNumber = inputHelper.getInput(\"Write second number: \");\n action = inputHelper.getInput(\"What action you want to do ( + - * /): \");\n\n }\n }",
"public static void calculateMathProblem(){\n\n int num1 = 5;\n double num2 = 3.0d;\n float num3 = 3.0f;\n double result1 = num1 + num2;\n double result2 = num1 - num2;\n double result3 = num1 * num2;\n double result4 = num1 / num2;\n float result5 = num1 / num3;\n System.out.println(result1);\n System.out.println(result2);\n System.out.println(result3);\n System.out.println(result4);\n System.out.println(result5);\n\n }",
"public static int calc(int num1, int num2,double number1, double number2, String operation){\n\n int result=-1;\n double result1 =-1;\n\t\t\tswitch (operation){\n case \"+\":\n result = num1+num2;\n result1 = number1 + number2;\n break;\n case \"-\":\n result = num1-num2;\n break;\n case \"*\":\n result = num1*num2;\n break;\n default:\n System.out.println(\"wrong\");\n }\n return result;\n }",
"public double calculateValue () {\n return double1 * double2;\n }",
"public static void main(String[] args) {\n\n Scanner tc = new Scanner(System.in);\n\n double a, b, c = 0;\n String soma = \"+\";\n String subtração = \"-\";\n String multiplicação = \"*\";\n String divisão = \"/\";\n String potência = \"^\";\n String raiz = \"~\";\n String operação = \"\";\n System.out.println(\"Qual operação deseja fazer ?\");\n operação = tc.nextLine();\n System.out.println(\"insira um numero ó mortal\");\n a = tc.nextDouble();\n System.out.println(\"insira um numero ó mortal\");\n b = tc.nextDouble();\n ;\n if (operação == null ? soma == null : operação.equals(soma)) {\n c = a + b;\n System.out.println(\"o resultado é \" + c);\n } else if (operação == null ? subtração == null : operação.equals(subtração)) {\n c = a - b;\n System.out.println(\"o resultado é \" + c);\n } else if (operação == null ? multiplicação == null : operação.equals(multiplicação)) {\n c = a * b;\n System.out.println(\"o resultado é \" + c);\n }\n else \n c = a/b;\n \n System.out.println(\"o resultado é \" + c);\n }",
"public double calculate(double value1, double value2, String op)\r\n { \r\n if (op.equals(\"+\")) \r\n {\r\n return value1 + value2;\r\n }\r\n else if (op.equals(\"-\")) \r\n {\r\n return value1 - value2;\r\n }\r\n else if (op.equals(\"*\")) \r\n {\r\n return value1 * value2;\r\n }\r\n else if (op.equals(\"/\")) \r\n {\r\n return value1 / value2;\r\n }\r\n else // \"=\"\r\n {\r\n return value2;\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tcalculator c=new calculator();\n\t\tc.calculate(2, 3);\n\t\tscientific_calculator sc=new scientific_calculator();\n\t\tsc.calculate(2, 3);\n\t\thybrid_calculator hc=new hybrid_calculator();\n\t\thc.calculate(2, 3);\n\n\t}",
"public static void main(String[] args) {\n\t\tint num1 = 7;\r\n\t\tint num2 = 6;\r\n\t\t\r\n\t\tmathOps ops1 = new mathOps();\r\n\t\tSystem.out.println(\"sum = \" +ops1.addition(num1, num2));\r\n\t\tSystem.out.println(\"sub = \" +ops1.substraction(num1, num2));\r\n\t\tSystem.out.println(\"mul = \" +ops1.multiply(num1, num2));\r\n\t\tSystem.out.println(\"div = \" +ops1.divide(num1, num2));\r\n\t}",
"public static void main(String[] args){\n Scanner n = new Scanner(System.in);\r\n System.out.println(\"Escriba dos numeros par saber la suma y la multiplicacion de estos:\");\r\n double num1 = n.nextDouble();\r\n double num2 = n.nextDouble();\r\n double suma = num1+num2;\r\n double multi = num1*num2;\r\n System.out.println(\"La suma de los dos numeros es: \"+suma);\r\n System.out.println(\"La multiplicacion de los dos numeros es: \"+multi);\r\n }",
"private String calculate (double num1, double num2, String operator){\r\n \r\n double value;\r\n switch(operator){\r\n case \"+\":\r\n value = num1 + num2;\r\n break;\r\n case \"-\":\r\n value = num1 - num2;\r\n break;\r\n case \"*\":\r\n value = num1 * num2;\r\n break;\r\n case \"/\":\r\n value = num1/num2;\r\n break;\r\n default:\r\n throw new IllegalArgumentException();\r\n \r\n }\r\n String result = value + \"\";\r\n return result;\r\n }",
"public static void main(String[] args) {\n\t\tScanner input=new Scanner (System.in);\n\t\tint n1, n2,result;\n\t\tchar operator;\n\t\t\t\t\t\n\t\t\t\n\t\tSystem.out.println(\"Please enter first numbers:\");\n\t\t\n\t\tn1=input.nextInt();\n\t\t\n\n\t\tSystem.out.println(\"Please enter first number: \");\t\t\n\t\tn2=input.nextInt();\n\t\t\n\t\tSystem.out.println(\"Please enter one of the operators that you want to do with these two numbers: +,-,* or /: \");\n\t\t\n\t\toperator=input.next().charAt(0);\n\t\t\n\t\tresult=0;\n\t\t\n\t\tswitch (operator) {\n\t\tcase '+':\n\t\t\tresult=n1+n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '-':\n\t\t\tresult=n1-n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '*':\n\t\t\tresult=n1*n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '/':\n\t\t result=n1/n2;\n\t\t break;\n\t\tdefault:\n\t\t System.out.println(\"You have enetered the wrong operator\");\n\t\t \n\t\t}\n\t\t// if the result was not calculated I do not want to see below message\n\t\tif (result!=0) {\n\t\t\tSystem.out.println(\"The result of your operation is \"+result);\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\t\n\t\t}",
"public double utility();",
"public static double operation(int num1,int num2,int operation){\r\n \r\n int result =0 ;\r\n switch(operation){\r\n case 1:\r\n result=num1+num2;\r\n break;\r\n case 2:\r\n result=num1-num2;\r\n break;\r\n case 3:\r\n result=num1*num2;\r\n break;\r\n case 4:\r\n result=num1/num2;\r\n break;\r\n }\r\n return result ;\r\n \r\n}",
"protected abstract double doubleOp(double d1, double d2);",
"private void calculate() {\n\t\tif (!parseText()) {\n\t\t\t// TODO : error handling\n\t\t}\n\t\tswitch(operator) {\n\t\t\tcase 0: // addition\n\t\t\t\tans = num1 + num2;\n\t\t\t\tbreak;\n\t\t\tcase 1: // subtraction\n\t\t\t\tans = num1 - num2;\n\t\t\t\tbreak;\n\t\t\tcase 2: // multiplication\n\t\t\t\tans = num1 * num2;\n\t\t\t\tbreak;\n\t\t\tcase 3: // division\n\t\t\t\tif (num2 != 0)\n\t\t\t\t\tans = num1 / num2;\n\t\t\t\telse\n\t\t\t\t\tans = 0;\n\t\t\t\tbreak;\n\t\t\tcase 4: // MOD\n\t\t\t\tans = (int)num1%(int)num2;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\tdisplayText.setText(String.valueOf(ans));\n\t\toperator = -1;\n\t\tans = 0;\n\t\tnum1 = 0;\n\t\tnum2 = 0;\n\t}",
"public String calculate() {\r\n\t\t\r\n\t\tif(\"\".equals(firstNumber.toString()) || \"\".equals(secondNumber.toString())) {\r\n\t\t\tclear();\r\n\t\t\treturn \"0\";\r\n\t\t}\r\n\t\t\r\n\t\tif (\"\".equals(operator)) {\r\n\t\t\tif (getOperand().length() == 0) {\r\n\t\t\t\tclear();\r\n\t\t\t\treturn \"0\";\r\n\t\t\t}\r\n\t\t\tresult = getOperand().toString();\r\n\t\t}\r\n\r\n\t\tif (\"+\".equals(operator)) {\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t+ Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tif (\"-\".equals(operator)) {\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t- Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tif (\"*\".equals(operator)) {\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t* Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tif (\"/\".equals(operator)) {\r\n\t\t\tif (\"0\".equals(secondNumber.toString())) {\r\n\t\t\t\tclear();\r\n\t\t\t\treturn \"Division by zero\";\r\n\t\t\t}\r\n\t\t\tresult = Double.toString(Double.parseDouble(firstNumber.toString())\r\n\t\t\t\t\t/ Double.parseDouble(secondNumber.toString()));\r\n\t\t}\r\n\r\n\t\tclear();\r\n\t\treturn filter(result);\r\n\t}",
"public static void main(String[] args) {\n ArithmeticExpression calculation =\n new Operand(\n new Operand(new Number(4), Operation.PLUS, new Number(6)),\n Operation.MULTIPLICATION,\n new Operand(new Number(1), Operation.DIVISION, new Number(2)));\n\n System.out.println(calculation.toString() + \" = \" + calculation.calculate());\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tExForMath mathobj = new ExForMath();\r\n\t\t\r\n\t\tScanner userinput=new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Welcome to Java Calculator\");\r\n\t\tSystem.out.println(\"==========================\");\r\n\t\tSystem.out.println(\"Enter first number:\");\r\n\t\t\r\n\t\tint num1=userinput.nextInt();\r\n\t\t\r\n\t\tSystem.out.println(\"Enter second number:\");\r\n\t\t\r\n\t\tint num2=userinput.nextInt();\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the operation that you want to use(+,-,x,/):\");\r\n\t\t\r\n\t\tString operation = userinput.next();\r\n\t\t\r\n\t\tif (operation.equals(\"+\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The answer is \" +mathobj.add(num1, num2));\r\n\t\t}\t\r\n\t\t\r\n\t\tif (operation.equals(\"-\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The answer is \" +mathobj.subtract(num1, num2));\r\n\t\t}\r\n\t\t\r\n\t\tif (operation.equals(\"x\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The answer is \" +mathobj.multiply(num1, num2));\r\n\t\t}\r\n\t\t\r\n\t\tif (operation.equals(\"/\"))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"The answer is \" +mathobj.divide(num1, num2));\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args)\r\n\t{\n\t\tdouble num1;\r\n\t\tdouble num2;\r\n\t\t\r\n\t\t// Define a new variable that holds the character that represents the operator\r\n\t\tchar operator;\r\n\t\t\r\n\t\tdouble answer = 0.0;\r\n\t\t\r\n\t\t// Declare a new Scanner object called eval and set it to take in to the console input\r\n\t\tScanner eval = new Scanner(System.in);\r\n\t\t\r\n\t\t// Prompt the user for the 1st number\r\n\t\tSystem.out.println(\"Enter the 1st number: \");\r\n\t\t// Set num1 to the next double value the user enters\r\n\t\tnum1 = eval.nextDouble();\r\n\t\t\r\n\t\t// Prompt the user for the operator\r\n\t\tSystem.out.println(\"Enter the operator: \");\r\n\t\t// Set operator to the character the user wants\r\n\t\toperator = eval.next().charAt(0);\r\n\t\t\t\t\r\n\t\t// Prompt the user for the 2nd number\r\n\t\tSystem.out.println(\"Enter the 2nd number: \");\r\n\t\t// Set num2 to the next double value the user enters\r\n\t\tnum2 = eval.nextDouble();\r\n\t\t\r\n\t\t\t\t\r\n\t\t// Close the eval to prevent memory leakage\r\n\t\teval.close();\r\n\t\t\r\n\t\t// Take different actions depending on the operator passed to the function\r\n\t\tswitch(operator)\r\n\t\t{\r\n\t\t\t// If the operator is a +\r\n\t\t\tcase '+':\r\n\t\t\t\tanswer = num1 + num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// If the operator is a -\r\n\t\t\tcase '-':\r\n\t\t\t\tanswer = num1 - num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// If the operator is a *\r\n\t\t\tcase '*':\r\n\t\t\t\tanswer = num1 * num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// If the operator is a /\r\n\t\t\tcase '/':\r\n\t\t\t\tanswer = num1 / num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// Output the 2 values, the operator and result to the user\r\n\t\tSystem.out.println(\"Answer: \" + num1 + \" \" + operator + \" \" + num2 + \" = \" + answer);\r\n\t}",
"@Override\r\n\t\tvoid calculate() {\r\n\t\t\tnum3=num1+num2;\r\n\t\t\t\r\n\t\t}",
"public double basicCalculation(double num1, double num2, Operator operator) {\n double value = 0;\n switch (operator) {\n case DIVIDE -> { value = num1 / num2;}\n case ADDITION -> {value = num1 + num2; }\n case MULTIPLY -> { value = num1 * num2; }\n case SUBTRACT -> { value = num1 - num2; }\n }\n return value;\n }",
"protected abstract double operation(double val);",
"public static void main(String[] args) {\n\t\tm_threePlaces.setRoundingMode(RoundingMode.HALF_UP);\n\t\tm_onePlace.setRoundingMode(RoundingMode.HALF_UP);\n\t\tm_noPlaces.setRoundingMode(RoundingMode.HALF_UP);\n\t\t\n\t\t/*\n\t\t * Integer Math Portion\n\t\t * Takes two integers in, outputs various operations performed on those inputs\n\t\t */\n\t\t\n\t\tSystem.out.println(\"Please Enter 2 Numbers For Integer Mathematics:\");\n\t\t\n\t\t//gets first integer value\n\t\tSystem.out.print(\"Integer Number 1: \");\n\t\tm_int1 = ScannerUtils.readInt(m_input);\t\n\t\t\n\t\t//gets second integer value\n\t\tSystem.out.print(\"Integer Number 2: \");\n\t\tm_int2= ScannerUtils.readInt(m_input); \t\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t//prints result of addition\n\t\tSystem.out.println(\"Addition: \" + m_int1 + \" + \" + m_int2 + \" = \" + (m_int1 + m_int2) + \"\"); \t\t\t\n\t\t//prints result of subtraction\n\t\tSystem.out.println(\"Subtraction: \" + m_int1 + \" - \" + m_int2 + \" = \" + (m_int1 - m_int2) + \"\");\t\t\t\n\t\t//prints result of multiplication\n\t\tSystem.out.println(\"Multiplication: \" + m_int1 + \" * \" + m_int2 + \" = \" + (m_int1 * m_int2) + \"\");\t\t\n\t\t\n\t\t//finds the result and remainder when the two numbers when divided\n\t\tif (m_int2 != 0) {\n\t\t\tm_div = m_int1 / m_int2; \t\n\t\t\tm_rem = m_int1 % m_int2;\t\n\t\t}\n\t\t\n\t\t//prints result of integer division\n\t\tSystem.out.println(\"Integer Division (No Remainder): \" + m_int1 + \" / \" + m_int2 + \" = \" + m_div + \"\");\t\n\t\t//prints remainder after integer division\n\t\tSystem.out.println(\"Remainder After Integer Division: \" + m_rem + \"\");\t\t\t\t\t\t\t\t\t\n\t\t//prints as a mixed number in reduced form\n\t\tSystem.out.println(\"As A Fraction: \" + m_int1 + \" / \" + m_int2 + \" = \" + m_div + \" and \" + m_rem/findGCD(m_rem, m_int2) + \" / \" + m_int2/findGCD(m_rem, m_int2) + \"\");\t\n\t\t//prints the absolute value of m_int1\n\t\tSystem.out.println(\"The Absolute Value Of Integer Number 1 Is: \" + Math.abs(m_int1) + \"\");\n\t\t//prints the square of int2\n\t\tSystem.out.println(\"Integer Number 2 Raised To The Exponent 2 Is: \" + (int) Math.pow(m_int2, 2) + \"\");\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t/*\n\t\t * Decimal Math Portion\n\t\t * Takes two doubles in and outputs the results of various operations performed on those inputs\n\t\t */\n\t\t\n\t\tSystem.out.println(\"Please Enter 2 Numbers For Decimal Mathematics:\");\n\t\t\n\t\t//gets first integer value\n\t\tSystem.out.print(\"Decimal Number 1: \");\n\t\tm_d1 = ScannerUtils.readDouble(m_input);\t\n\t\t\n\t\t//gets second integer value\n\t\tSystem.out.print(\"Decimal Number 2: \");\n\t\tm_d2= ScannerUtils.readDouble(m_input); \t\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t//prints result of addition\n\t\tSystem.out.println(\"Addition: \" + m_d1 + \" + \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 + m_d2) + \"\"); \t\t\t\n\t\t//prints result of subtraction\n\t\tSystem.out.println(\"Subtraction: \" + m_d1 + \" - \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 - m_d2) + \"\");\t\t\t\n\t\t//prints result of multiplication\n\t\tSystem.out.println(\"Multiplication: \" + m_d1 + \" * \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 * m_d2) + \"\");\t\t\n\t\t//prints result of division\n\t\tSystem.out.println(\"Division: \" + m_d1 + \" / \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 / m_d2) + \"\");\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t//prints square root of first double, can handle negative numbers too by outputting imaginary numbers\n\t\tSystem.out.println(\"The Square Root Of \" + m_d1 + \" (Three Decimal Places) = \" + m_threePlaces.format(Math.sqrt(Math.abs(m_d1))) + (m_d1 >= 0 ? \"\" : \" i\") + \"\");\n\t\t//prints square root of second double, can handle negative numbers too by outputting imaginary numbers\n\t\tSystem.out.println(\"The Square Root Of \" + m_d2 + \" (One Decimal Place) = \" + m_onePlace.format(Math.sqrt(Math.abs(m_d2))) + (m_d2 >= 0 ? \"\" : \" i\") + \"\");\n\t\t//prints the first double rounded\n\t\tSystem.out.println(\"The Value \" + m_d1 + \" Rounded Is \" + m_noPlaces.format(m_d1) + \"\");\n\t\tSystem.out.println(\"The Value \" + m_d2 + \" Rounded Is \" + m_noPlaces.format(m_d2) + \"\");\n\t}",
"@Test\n void testCalculations() {\n double addition = calculator.add(10, 2);\n double subtraction = calculator.sub(10, 2);\n double multiplication = calculator.mul(10, 2);\n double division = calculator.div(10, 2);\n\n //Then\n assertEquals(12, addition);\n assertEquals(8, subtraction);\n assertEquals(20, multiplication);\n assertEquals(5, division);\n }",
"private double operation(char operand, double num1, double num2){\r\n\t\t\tdouble result;\r\n\t\t\tCalculatorImpl ci = new CalculatorImpl();\r\n\t\t\tswitch(operand){\r\n\t\t\tcase PLUS : result = ci.getAddition(num1, num2);break;\r\n\t\t\tcase MINUS : result = ci.getSubtraction(num1, num2);break;\r\n\t\t\tcase MULTI : result = ci.getMultification(num1, num2);break;\r\n\t\t\tcase DIVIDE : result = ci.getDivision(num1, num2);break;\r\n\t\t\tdefault : result=0.0;break;\r\n\t\t\t}\r\n\t\t\treturn result;\r\n\t\t}",
"public static void main(String[] args) {\n\t\tint a = 1+9;\n\t\tSystem.out.println(\"a = \" + a);\n\t\tint e = 12 - 7;\n\t\tSystem.out.println(\"e = \" + e);\n\t\tint i = 2 * 5;\n\t\tSystem.out.println(\"i = \" + i);\n\t\tint m = 12 / 6;\n\t\tSystem.out.println(\"m = \" + m);\n\t\t\n\t\t//Adding two decimal numbers and storing in an int type variable\n\t\t// int b = 5.5 + 7.5; //Adding two decimal numbers i.e. 5.5 and 3.2 and storing the result in the int type variable 'b'\n\t\t//We cant assign decimal values to the int type variables.\n\t\t//by adding type cast to the decimal values, the program will not throw the error, digits after the decimal points will be ignored while adding.\n\t\t\n\t\tint b = (int)5.5 + (int)7.5; //Type casting the flote values to int\n\t\tSystem.out.println(\"b = \" + b);\n\t\tint f = (int)9.5 - (int)7.5;\n\t\tSystem.out.println(\"f = \" + f);\n\t\tint j = (int)9.5 * (int)7.5;\n\t\tSystem.out.println(\"j = \" + j);\n\t\tint n = (int)5.5 / (int)3.2;\n\t\tSystem.out.println(\"n = \" + n);\n\t\t\n\t\tdouble c = 5 + 4;//Adding two integers i.e. 5 and 3 and storing the result in the double type variable 'a'\n\t\tSystem.out.println(\"c = \" + c);\n\t\tdouble g = 9 - 7;\n\t\tSystem.out.println(\"g = \" + g);\n\t\tdouble k = 9 * 7;\n\t\tSystem.out.println(\"k = \" + k);\n\t\tdouble o = 5 / 3;\n\t\tSystem.out.println(\"o = \" + o);\n\t\t\n\t\tdouble d = 4.5 + 5.3;\n\t\tSystem.out.println(\"d = \" + d);\n\t\tdouble h = 8.5 - 5.3;\n\t\tSystem.out.println(\"h = \" + h);\n\t\tdouble l = 8.5 * 5.3;\n\t\tSystem.out.println(\"l = \" + l);\n\t\tdouble p = 5.0 / 3;\n\t\tSystem.out.println(\"p = \" + p);\n\t\t\n\t\t//The Modulus operator '%' returns the reminder of a division operator.\n\t\tint q = 8%3;\n\t\tSystem.out.println(\"q = \" + q);\n\t\tdouble r = 8.568%3;\n\t\tSystem.out.println(\"r = \" + r);\n\t\t\n\t\t//Java provides special operators called Compound Assignment operators which combine an arithmetic operation with an assignment '='\n\t\tint s = 4;\n\t\ts+= 3;//you need to write s+= no space between + and = for compound assignment otherwise it will throw an error\n\t\t//Using Compound assignment operator to increment the variable 's' value by 3 i.e. 4+3\n\t\tSystem.out.println(\"s = \" + s);\n\t\tint t = 4;\n\t\tt-= 3;\n\t\tSystem.out.println(\"t = \" + t);\n\t\tint u = 4;\n\t\tu*= 3;\n\t\tSystem.out.println(\"u = \" + u);\n\t\tint v = 4;\n\t\tv/= 2;\n\t\tSystem.out.println(\"v = \" + v);\n\t\tint w = 5;\n\t\tw%= 3;\n\t\tSystem.out.println(\"w = \" + w);\n\t\t\n\t\tint x = 4;\n\t\tx++;\n\t\tSystem.out.println(\"x = \" + x);\n\t\tint y = 4;\n\t\t++y;\n\t\tSystem.out.println(\"y = \" + y);\n\t\t\n\t\tint pre = 4;\n\t\tSystem.out.println(\"The value of variable 'pre' before incremental using prefix operator = \" + pre);\n\t\tSystem.out.print(\"The value of variable 'pre' while incremental using prefix operator = \" );\n\t\tSystem.out.println(++pre); //(Incremented and printed)\n\t\tSystem.out.println(\"The value of variable 'pre' after incremental using prefix operator = \" + pre);\n\t\t\n\t\tint post = 4;\n\t\tSystem.out.println(\"The value of variable 'post' before incremental using prefix operator = \" + post);\n\t\tSystem.out.print(\"The value of variable 'post' while incremental using prefix operator = \" );\n\t\tSystem.out.println(post++); //(Printed without increment)\n\t\tSystem.out.println(\"The value of variable 'post' after incremental using prefix operator = \" + post); //(Incremented here)\n\t\t\n\t\tint a1 = 1;\n\t\tint b1 = 1;\n\t\tint c1 = ++b1;\n\t\tint d1 = a1++;\n\t\t\n\t\tSystem.out.println(\"a1 = \" + a1);\n\t\tSystem.out.println(\"b1 = \" + b1);\n\t\tSystem.out.println(\"c1 = \" + c1);// Here the value of variable 'b1' will get incremented first and then the incremented value gets assinged to vartiable 'c1'\n\t\tSystem.out.println(\"d1 = \" + d1); // Here the value of variable 'a1' will get assigned to variable 'd' and later the value of variable 'a1' gets incremented\n\t\t\n\t\tint pren = 4;\n\t\tSystem.out.println(\"The value of variable 'pren' before incremental using prefix operator = \" + pren);\n\t\tSystem.out.print(\"The value of variable 'pren' while incremental using prefix operator = \" );\n\t\tSystem.out.println(--pren); //decremented and printed)\n\t\tSystem.out.println(\"The value of variable 'pren' after incremental using prefix operator = \" + pren);\n\t\t\n\t\tint postn = 4;\n\t\tSystem.out.println(\"The value of variable 'postn' before incremental using prefix operator = \" + postn);\n\t\tSystem.out.print(\"The value of variable 'postn' while incremental using prefix operator = \" );\n\t\tSystem.out.println(postn--); //(Printed without decremented)\n\t\tSystem.out.println(\"The value of variable 'postn' after incremental using prefix operator = \" + postn); //(decremented here)\n\t\t\n\t\tint a2 = 1;\n\t\tint b2 = 2;\n\t\tint c2 = --b2;\n\t\tint d2 = a2--;\n\t\t\n\t\tSystem.out.println(\"a2 = \" + a2);\n\t\tSystem.out.println(\"b2 = \" + b2);\n\t\tSystem.out.println(\"c2 = \" + c2);// Here the value of variable 'b1' will get incremented first and then the incremented value gets assinged to vartiable 'c1'\n\t\tSystem.out.println(\"d2 = \" + d2); // Here the value of variable 'a1' will get assigned to variable 'd' and later the value of variable 'a1' gets incremented\n\n\t}",
"public static void main(String[] args){\n\t\tSimpleCalculator calc = new SimpleCalculator();\n\t\tboolean a=true;\n\t\tdouble number = 0.0;\n\t\tString checker = \"\";\n\t\twhile(a){\n\t\t\tSystem.out.println(\"Result: \" + number);\n\t\t\tSystem.out.println(\"Enter an operation or 'q' to end the program.\");\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\ttry{\n\t\t\t\tchecker= scan.next();\n\t\t\t\tif (checker.equals(\"q\")){\n\t\t\t\t\ta=false;\n\t\t\t\t}\n\t\t\t\telse if (!checker.equals(\"+\")&& !checker.equals(\"-\")&& !checker.equals(\"*\") && !checker.equals(\"/\")&&\n\t\t\t\t\t\t!checker.equals(\"%\")){\n\t\t\t\t\tthrow new UnknownOperatorException();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(UnknownOperatorException e){\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t\tif(a&&(checker.equals(\"+\")|| checker.equals(\"-\")|| checker.equals(\"*\") || checker.equals(\"/\")||\n\t\t\t\t\tchecker.equals(\"%\"))){\n\t\t\t\ttry{\n\t\t\t\t\tSystem.out.println(\"Please enter a number: \");\n\t\t\t\t\tnumber= scan.nextDouble();\n\t\t\t\t\tif (checker.equals(\"/\")&&(number==0)){\n\t\t\t\t\t\tthrow new ArithmeticException();\n\t\t\t\t\t}\n\t\t\t\t\tcalc.calcSetter(number, checker);\n\t\t\t\t\tnumber =calc.CalcLogic();\n\t\t\t\t}\n\t\t\t\tcatch(InputMismatchException exceptionObj){\n\t\t\t\t\tSystem.out.println(\"That is not a number! Please try again!\");\n\t\t\t\t\tScanner scan2 = new Scanner(System.in);\n\t\t\t\t\tnumber = scan2.nextDouble();\n\t\t\t\t}\n\t\t\t\tcatch(ArithmeticException e){\n\t\t\t\t\tSystem.out.println(\"Cannot divide by zero!\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 * num2;\n\t\t}",
"public static void main(String[] args) {\n\n\t\t// initiating the scanner\n\t\tScanner operation = new Scanner(System.in);\n\n\t\t// creating object for calc\n\t\tCalc calc = new Calc();\n\t\tboolean isProceed = true;\n\t\twhile (isProceed) {\n\t\t\t// getting the first variable value\n\t\t\tSystem.out.println(\"Enter an integer\");\n\t\t\tint a = operation.nextInt();\n\t\t\tcalc.setA(a);\n\n\t\t\t// getting the second variable value\n\t\t\tSystem.out.println(\"Enter next integer\");\n\t\t\tint b = operation.nextInt();\n\t\t\tcalc.setB(b);\n\n\t\t\t// getting the operator value\n\t\t\tSystem.out.println(\"Enter type of operation. It should be only + or - or * or /\");\n\t\t\tString c = operation.next();\n\n\t\t\tswitch (c) {\n\t\t\tcase \"+\":\n\t\t\t\tcalc.add(a, b);\n\t\t\t\tbreak;\n\t\t\tcase \"-\":\n\t\t\t\tcalc.sub();\n\t\t\t\tbreak;\n\t\t\tcase \"*\":\n\t\t\t\tcalc.mult();\n\t\t\t\tbreak;\n\t\t\tcase \"/\":\n\t\t\t\tcalc.div();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"No operation is matching. Please reenter values\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.println(\" \");\n\t\t\t\n\t\t\t// getting user consent to proceed\n\t\t\tSystem.out.println(\"You want to make an other calculation ? Y / N\");\n\t\t\tString proceedBool = operation.next();\n\t\t\tif(proceedBool.equalsIgnoreCase(\"y\")) {\n\t\t\t\tisProceed = true;\n\t\t\t} else {\n\t\t\t\tisProceed = false;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);//sc is a point of contact for console\n\t\t\n\t\tSystem.out.println(\"enter num1:\");\n\t\tint n1 = sc.nextInt();\n\t\t\n\t\tSystem.out.println(\"enter num2:\");\n\t\tint n2 = sc.nextInt();\n\t\t\n\t\t//perform operations\n\t\tint sum = n1 + n2;\n\t\tint sub = n1 - n2;\n\t\tint mul = n1 * n2;\n\t\tint div = n1 / n2;\n\t\t\n\t\tSystem.out.println(\"sum =\" +sum);\n\t\tSystem.out.println(\"sub =\" +sub);\n\t\tSystem.out.println(\"mul =\" +mul);\n\t\tSystem.out.println(\"div =\" +div);\n\t\t\n}",
"protected abstract Object doCalculations();",
"public static void main(String[] args) {\n\t\tint num1=90;\n\t\tint num2=10;\n\t\t//syso +ctrl+space (short cut)\n\t\tSystem.out.println(num1+num2);\n\t\tSystem.out.println(num1-num2);\n\t\tSystem.out.println(num1*num2);\n\t\tSystem.out.println(num1/num2);\n\t\tint sum=num1+num2;\n\t\tSystem.out.println(sum);\n\t\tint sub=num1-num2;\n\t\tSystem.out.println(num1-num2);\n\t\tdouble n1=1.99;\n\t\tdouble n2=4.99;\n\t\tdouble total=n1+n2;\n\t\tSystem.out.println(total);\n\t\tdouble resultOfDivision=n1/n2;\n\t\tSystem.out.println(resultOfDivision);\n\t\tfloat f1=2.99f;\n\t\tfloat f2=4.05f;\n\t\tfloat floatDivision=f1/f2;\n\t\tSystem.out.println(floatDivision);\n\t\t//modulus %\n\t\tint number1, number2, mod;\n\t\tnumber1=10;\n\t\tnumber2=6;\n\t\tmod=number1%number2;\n\t\tSystem.out.println(mod);\n\t\t\n\t}",
"public double adicao (double numero1, double numero2){\n\t}",
"@Test\n public void testSpreadCalc() {\n Result result = calculator.calculate(.1, .32);\n assert (result.getMaxProfit().doubleValue() == 4.84);\n assert (result.getMaxLoss().doubleValue() == .16);\n assert (result.getBreakEven().doubleValue() == 39.84);\n assert (result.getMaxProfitPerContract().doubleValue() == 484);\n assert (result.getMaxLossPerContract().doubleValue() == 16);\n assert (result.getBreakEvenPerContract().doubleValue() == 3984);\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tdouble a=sc.nextDouble();\n\t\tdouble b=sc.nextDouble();\n\t\tSystem.out.printf(\"%.2f%n\",(a/b));\n \n\t}",
"public static void main(String[] args) {\n\t\tNumero n1=new Numero(7);\n\t\tNumero n2=new Numero(5);\n\t\tint n3=6;\n\t\t\n\t\tSystem.out.println(\"La suma de:\" + n1.getN() + \"+\" + n3 + \" es:\" + n1.sumar(n3));\n\t\tSystem.out.println(\"La suma de:\" + n2.getN() + \"+\" + n3 + \" es:\" + n2.sumar(n3));\n\t\tSystem.out.println(\"La multiplicacion de:\" + n1.getN() + \"*\" + n3 + \" es:\" + n1.multiplicar(n3));\n\t\tSystem.out.println(\"La multiplicacion de:\" + n2.getN() + \"*\" + n3 + \" es:\" + n2.multiplicar(n3));\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" es par? \" + n1.esPar());\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" es par? \" + n2.esPar());\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" es primo? \" + n1.esPrimo());\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" es primo? \" + n2.esPrimo());\n\t\tSystem.out.println(n1.convertirAString());\n\t\tSystem.out.println(n2.convertirAString());\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" en formato double es: \" + n1.convertirADouble());\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" en formato double es: \" + n2.convertirADouble());\n\t\tint exp=2;\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" elevado a \" + exp + \" da como resultado \" + n1.calcularPotencia(exp));\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" elevado a \" + exp + \" da como resultado \" + n2.calcularPotencia(exp));\n\t\tSystem.out.println(\"El numero \" + n1.getN() + \" en base 2 es \" + n1.pasarBase2());\n\t\tSystem.out.println(\"El numero \" + n2.getN() + \" en base 2 es \" + n2.pasarBase2());\n\t\tSystem.out.println(\"El factorial de \" + n1.getN() + \" es \" + n1.calcularFactorial());\n\t\tSystem.out.println(\"El factorial de \" + n2.getN() + \" es \" + n2.calcularFactorial());\n\t\tint comb=2;\n\t\tSystem.out.println(\"El numero combinatorio de \" + n1.getN() + \" y \" + comb + \" es: \" + n1.numeroCombinatorio(comb));\n\t\tSystem.out.println(\"El numero combinatorio de \" + n2.getN() + \" y \" + comb + \" es: \" + n2.numeroCombinatorio(comb));\n\t\tSystem.out.println(\"Mellizos? \" + n1.esPrimoMellizo(n1, n2));\n\t\tint n=20;\n\t\t//primos utilizando un for\n\t\tfor(int i=2;i<=n;i++){\n\t\t\tint a=0;\n\t\t\tfor(int j=1;j<=n;j++){\n\t\t\t\tif(i%j==0){\n\t\t\t\t\ta+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(a==2){\n\t\t\t\tSystem.out.println(\"Numero: \" + i);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\n\t}",
"private Double check_mathOperator(Double result) {\n \r\n switch(mathOperator){\r\n case '/':\r\n result =totalFirst/totalLast;\r\n break;\r\n case 'x':\r\n result =totalFirst*totalLast;\r\n break;\r\n case '-':\r\n result =totalFirst-totalLast;\r\n break;\r\n case '+':\r\n result =totalFirst+totalLast;\r\n break;\r\n \r\n }\r\n return result;\r\n }",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Welcome to the calculator. What operation would you like to do?(+,-,*,/)\");\n\t\tString answer = input.next();\n\t\t\n\t\tif (answer.equals(\"add\") || answer.equals(\"Add\") || answer.equals(\"+\")) \n\t\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to add?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat add1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number you want to add\");\n\t\t\t\tfloat add2 = input.nextFloat();\n\t\t\t\t\n\t\t\t\tfloat addanswer = add1 + add2;\n\t\t\t\tSystem.out.println(addanswer);\n\t\t\t\t}\n\t\telse if(answer.equals(\"minus\") || answer.equals(\"-\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to subtract?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat sub1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number\");\n\t\t\t\tfloat sub2 = input.nextFloat();\n\t\t\t\t\t\n\t\t\t\tfloat subanswer = sub1 - sub2;\n\t\t\t\tSystem.out.println(subanswer);\n\t\t\t}\n\t\telse if(answer.equals(\"multiply\") || answer.equals(\"x\") || answer.equals(\"*\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to multiply?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat mul1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number\");\n\t\t\t\tfloat mul2 = input.nextFloat();\n\t\t\t\t\n\t\t\t\tfloat mulanswer = mul1 * mul2;\n\t\t\t\tSystem.out.println(mulanswer);\n\t\t\t}\n\t\telse if(answer.equals(\"divide\") || answer.equals(\"/\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to divide?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat div1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number\");\n\t\t\t\tfloat div2 = input.nextFloat();\n\t\t\t\t\n\t\t\t\tfloat divanswer = div1 / div2;\n\t\t\t\tSystem.out.println(divanswer);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Please try again.\");\n\t\t\t}\n\t\tinput.close();\n\t\t}",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 + num2;\n\t\t}",
"public abstract int calculate(int a, int b);",
"public static void main(String[] args)\r\n\t{\ndouble f,G,m1,m2,R;\r\nScanner sc =new Scanner(System.in);\r\nSystem.out.println(\"input m1,m2,R\");\r\nm1=sc.nextDouble();\r\nm2=sc.nextDouble();\r\nR=sc.nextDouble();\r\nG = 6.67e-11;\r\nf=G*m1*m2/(R*R);\r\nSystem.out.println(f);\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tCalculatorScanner calculatorScanner = new CalculatorScanner();\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter 2 numbers:- \");\n\t\tint num1 = scanner.nextInt();\n\t\tint num2 = scanner.nextInt();\n\t\tint add = calculatorScanner.addition(num1, num2);\n\t\tint subtraction = calculatorScanner.subtraction(num1, num2);\n\t\tint multiplication = calculatorScanner.multiplication(num1, num2);\n\t\tint division = calculatorScanner.division(num1, num2);\n\t\tcalculatorScanner.printTotalAnswer(add, subtraction, multiplication, division);\n\t\tscanner.close();\n\t}",
"public static void main(String[] args) {\n\t\tCal c = new Cal();\n\t\tc.setOperands(10, 20, 30);\n\t\tSystem.out.println(c.sum());\n\t\tSystem.out.println(c.avg());\n\t}",
"public static void main(String[] args) {\n\n\t\t// Check number of strings passed\n\t\tif (args.length != 3) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"Usage: java Calculator operand1 operator operand2\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\t// The result of the operation\n\t\tint result = 0;\n\n\t\t// Determine the operator\n\t\tswitch (args[1].charAt(0)) {\n\t\tcase '+': result = Integer.parseInt(args[0]) +\n\t\t\t\tInteger.parseInt(args[2]);\n\t\tbreak;\n\t\tcase '-': result = Integer.parseInt(args[0]) -\n\t\t\t\tInteger.parseInt(args[2]);\n\t\tbreak;\n\t\tcase '.': result = Integer.parseInt(args[0]) *\n\t\t\t\tInteger.parseInt(args[2]);\n\t\tbreak;\n\t\tcase '/': result = Integer.parseInt(args[0]) /\n\t\t\t\tInteger.parseInt(args[2]);\n\t\t}\n\n\t\t// Display result\n\t\tSystem.out.println(args[0] + ' ' + args[1] + ' ' + args[2] + \" = \" + result);\n\n\n\n\n\t}",
"public static void main(String[] args) {\n\t\tMyCalc cal = new MyCalc();\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"두 정수를 입력하세요.\");\n\t\tSystem.out.print(\"a > \");\n\t\tint a = Integer.parseInt(scan.nextLine());\n\t\tSystem.out.print(\"b > \");\n\t\tint b = Integer.parseInt(scan.nextLine());\n\n\t\tSystem.out.println(a + \" + \" + b + \" = \" + cal.add(a, b));\n\t\tSystem.out.println(a + \" - \" + b + \" = \" + cal.sub(a, b));\n\t\tSystem.out.println(a + \" * \" + b + \" = \" + cal.mul(a, b));\n\t}",
"public static void main(String[] args) {\r\n\t\tcalculateSum(3.4, 1.8);\r\n\t\tcalculation(2, 3);\r\n\t\tcalculation(2, 3, 4);\r\n\t\tcalculation(5, \"7\");\r\n\t\t\r\n\t\t// If you change the number of parameters, or the data type of parameters\r\n\t}",
"public abstract void calculate();",
"private int performCalculation (int num1, int num2, String operator){\n int result;\n if (operator.equals(\"+\")){\n try{\n result= Math.addExact(num2,num1);\n return result;\n }\n catch (ArithmeticException e){ //catches integer overflow and returns the integer max value.\n return Integer.MAX_VALUE;\n }\n }\n else if (operator.equals(\"-\")){\n try{\n result= Math.subtractExact(num2, num1);\n return result;\n }\n catch (ArithmeticException e){ //catches integer underflow and returns the integer min value.\n return Integer.MIN_VALUE;\n }\n }\n else if (operator.equals(\"/\")){\n return num2 / num1;\n }\n else if (operator.equals(\"*\")){\n try{\n result= Math.multiplyExact(num2, num1);\n return result;\n }\n catch (ArithmeticException e){ \n if (num1 < 0 && num2 >0 || num2<0 && num1>0){ //catches integer underflow and returns the integer min value.\n return Integer.MIN_VALUE;\n }\n else{\n return Integer.MAX_VALUE; //Catches integer overflow and returns integer max value.\n } \n }\n }\n else if (operator.equals(\"^\")){\n try{\n double tempResult= Math.pow((int)num2, (int)num1);\n result = (int) tempResult;\n return result;\n }\n catch (ArithmeticException e){ //Catches integer overflow and returns integer max value.\n return Integer.MAX_VALUE;\n }\n \n }\n else if (operator.equals(\"%\")){\n return num2%num1;\n }\n return 0;\n }",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 - n2;\r\n\t}",
"public static void main( String[] args )\n {\n Calculator calculator = new Calculator(2.2f);\n// Calculator calculator2 = new Calculator(3f);\n// calculator.name = \"calc\";\n// //System.out.println(Calculator.name);\n// calculator.add(5f);\n// System.out.println(calculator2.name);\n// System.out.println(calculator.getTotal());\n// calculator2.subtract(2f);\n// System.out.println(calculator2.getTotal());\n//\n// calculator.add(5f).subtract(1f).add(2.5f);\n// System.out.println(calculator.getTotal());\n\n for (int i = 0; i < 10; i++) {\n calculator.add(i);\n System.out.println(calculator.getTotal());\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\tdouble a=5;\n\t\t\n\t\tdouble b;\n\t\t\n\t\tb=7;\n\t\t\n\t\tdouble c=b+a;\n\t\tSystem.out.println(\"LA SUMA DE C ES : \"+c);\n\t\tc+=6;\n\t\tSystem.out.println(\"LA SUMA DE C ES : \"+c);\n\n\t\t//en tipo int\n\t\t c =b/a;\n\t\tSystem.out.println(\"LA DIVISION DE C ES : \"+c);\n\t\t\n\t\t//en float\n\t\tdouble c2=b/a;\n\t\tSystem.out.println(\"LA DIVISION DE C ES : \"+c2);\n\n\t\t\n\n\t\t \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"private int cal(int num1, int op, int num2){\n\n int ans=0;\n if(op<2){\n ans=num1+op*num2;\n }else if(op==2){\n ans=num1*num2;\n }else{\n ans=num1/num2;\n }\n return ans;\n }",
"public static void main(String[] args) {\n\r\n\t\tdouble a, b, c, answer;\r\n\t\t\r\n\t\ta = MyScanner2.getDouble(\"a = \", -10, 10);\r\n\t\tSystem.out.println(\"You enter a = \" + a);\r\n\t\tb = MyScanner2.getDouble(\"b = \", -20, 20);\r\n\t\tSystem.out.println(\"You enter b = \" + b);\r\n\t\tc = MyScanner2.getDouble(\"c = \", -100, 100);\r\n\t\tSystem.out.println(\"You enter c = \" + c);\r\n\t\t\r\n\t\tanswer = b * b - 4 * a * c;\r\n\t\tSystem.out.println(\"\\nDyscriminant = \" + answer);\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n //Get value of a\n System.out.print(\"Enter the value of a: \");\n double a = scanner.nextDouble();\n\n //Get value of b\n System.out.print(\"Enter the value of b: \");\n double b = scanner.nextDouble();\n\n //Get value of c\n System.out.print(\"Enter the value of c: \");\n double c = scanner.nextDouble();\n\n //solve for the discriminant (b^2 - 4 * a * c)\n double discriminant = Math.pow(b, 2) - (4 * a * c);\n\n //if the discriminant is negative than exit the program\n if (discriminant < 0) {\n System.out.println(\"Discriminant is negative\");\n return;\n }\n\n //solve for the first value of x1\n //(-b + sqrt(discriminant)) / 2 * a\n double x1 = (-b + Math.sqrt(discriminant)) / 2 * a;\n\n //solve for the first value of x2\n //(-b - sqrt(discriminant)) / 2 * a\n double x2 = (-b - Math.sqrt(discriminant)) / 2 * a;\n\n //output the results\n System.out.println(\"The first value of x: \" + x1);\n System.out.println(\"The second value of x \" + x2);\n\n //_________________________________________________________________\n // harmonic series formula\n System.out.print(\"Enter a number n: \");\n double n = scanner.nextInt();\n double sum = 0;\n for (double i = 1; i <= n; i++) {\n sum = sum + (1 / i);\n }\n System.out.println(\"The answer is: \" + sum);\n\n // __________________________________________________________\n //Finding average of int array\n System.out.print(\"Enter the number of values you want to average: \");\n int[] ages = new int[scanner.nextInt()]; //get size of the array & create array of that size\n //add the user's values to the array\n for (int i = 0; i < ages.length; i++) {\n System.out.print(\"Enter the next age: \");\n ages[i] = scanner.nextInt();\n }\n\n double sum2 = 0;\n for (int i = 0; i < ages.length; i++) {\n sum2 += ages[i];\n }\n\n double average = sum2 / ages.length;\n System.out.println(\"The average age of \" + ages.length + \" kids is: \" + average);\n\n\n //__________________________________________________________\n //Printing out the array\n System.out.print(\"Enter array size: \");\n int[] numbers = new int[scanner.nextInt()];\n for (int i = 0; i < numbers.length; i++) {\n System.out.print(\"Enter the next number: \");\n numbers[i] = scanner.nextInt();\n }\n //System.out.println(Arrays.toString(numbers));\n\n // Alternative way\n String numberArray = \"[\"; // Concatenating the values to this string\n for (int i = 0; i < numbers.length; i++) {\n if (i != numbers.length - 1) {\n numberArray += numbers[i] + \", \";\n } else {\n numberArray += numbers[i] + \"]\";\n }\n }\n System.out.println(numberArray);\n\n\n }",
"public abstract double compute(double value);",
"public static void main(String[] args) {\n \n\t\tcalculatior input=new calculatior();\n\tSystem.out.println(input.div(15, 3));\t\n\t\t\n\t}",
"public double executeStrategy(double num1,double num2) {\n\t\treturn exp.calculate(num1, num2);\n\t}",
"public static void main(String[] args) {\n Calculator result = new Calculator();\n\n // Perform operations on the object and print the calculations with the result\n System.out.println(\"1 + 1 = \" + result.add(1, 1));\n System.out.println(\"23 - 52 = \" + result.subtract(23, 52));\n System.out.println(\"34 * 2 = \" + result.multiply(34, 2));\n System.out.println(\"12 / 3 = \" + result.divide(12, 3));\n System.out.println(\"12 / 7 = \" + result.divide(12, 7));\n System.out.println(\"3.4 + 2.3 = \" + result.add(3.4, 2.3));\n System.out.println(\"6.7 * 4.4 = \" + result.add(6.7, 4.4));\n System.out.println(\"5.5 - 0.5 = \" + result.subtract(5.5,0.5));\n System.out.println(\"10.8 / 2.2 = \" + result.divide(10.8, 2.2));\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter the value of X1 and Y1\");\n\t\tdouble x1 = sc.nextDouble();\n\t\tdouble y1 =sc.nextDouble();\n\t\t\n\t\tSystem.out.println(\"Enter the value of X2 and Y2\");\n\t\tdouble x2 =sc.nextDouble();\n\t\tdouble y2 = sc.nextDouble();\n\t\t\n\t\tdouble a = Math.pow(x2-x1, 2) + Math.pow(y2-y1, 2);\n\t\t\n\t\tdouble distance = Math.sqrt(a) ;\n\t\tSystem.out.printf(\"%.4f\",distance);\n\n\t}",
"public static void main(String[] args) {\n\t\t\t\n\t\t// addition, subtraction, multiplication, division \n\t\t\n int a=30;\n int b=15;\n \n int sum=a+b;\n int subt=a-b;\n int div=a/b;\n int mult=a*b;\n \n System.out.println(sum); //45\n\t\tSystem.out.println(subt); //15\n\t\tSystem.out.println(mult); //450\n\t System.out.println(div); //2\n\n //print: the _ of two numbers is_\n\t \n\t System.out.println(\"The addition of two numbers is iqual \"+sum);\n\t System.out.println(\"The substruction of two numbers is iqual \"+subt);\n\t System.out.println(\"The multiplication of two numbers is iqual \"+mult);\n\t System.out.println(\"The division of two numbers is iqual \"+div);\n\t \n\t // print: find the square of the number 3.9\n\t double x=3.9;\n\t double sqrt=x*x;\n\t \n\t System.out.print(\"The square of the number \"+x+\" is \" +sqrt);\n\t \n\t // print: find the area and perimeter of a rectangle with width=5 and height =8\n\t int y=8;\n\t int z=5;\n\t int sq=y*z;\n\t int P=y+y+z+z;\n\t \n\t \n\t System.out.println(\"The area of a rectangle is \"+sq);\n\t System.out.println(\"The perimeter of a rectangle is \"+P);\n\t \n\t \n\t \n\t \n\t}",
"public static void main(String[] args) {\n\t\tint y;\r\n\t\tdouble x,quotient; // use meaningful names\r\n\t\t\r\n\t\tSystem.out.println(\"Welcome to my math program\");\r\n\t\tSystem.out.println(\"I hope you like it\");\r\n\t\t\r\n\t\t// give them initial values ( visualize them )\r\n\t\tx=45;\r\n\t\ty=9;\r\n\t\tquotient=x/y;\r\n\t\t\t\t\r\n\t\t//print their product and quotient\r\n\t\tSystem.out.println(\"The quotient is \" + x + \" / \"+y + \" = \" +quotient );\r\n\t\t\r\n\t\t// end main\r\n\r\n\t}",
"double calculatePrice();",
"public static void main (String [] args) {\n\t\tdouble num1 = 15.6;\n\t\tfloat num2 = 18.128f;\n\t\tdouble addn = num1 + num2, subs = num1 - num2, mult = num1 * num2, divn = num1 / num2;\n\t\tString add = \"addition\", sub = \"substraction\", mlt = \"multiplication\", div = \"division\";\n\t\t\t\t\n\t\tSystem.out.println(\"The \" + add + \" of 2 numbers \" + num1 + \" and \" + num2 + \" is equal to \" + addn);\n\t\tSystem.out.println(\"The \" + sub + \" of 2 numbers \" + num1 + \" and \" + num2 + \" is equal to \" + subs);\n\t\tSystem.out.println(\"The \" + mlt + \" of 2 numbers \" + num1 + \" and \" + num2 + \" is equal to \" + mult);\n\t\tSystem.out.println(\"The \" + div + \" of 2 numbers \" + num1 + \" and \" + num2 + \" is equal to \" + divn);\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\t\n\t\t// Write a program to find the square of the number 3.9. You program should say \"The square of the ____ is ____ \"\n\t\tdouble num3 = 3.9;\n\t\tdouble sqr = num3 * num3;\n\t\t\n\t\tSystem.out.println(\"The square of the \" + num3 +\" is \" + sqr);\n\t\tSystem.out.println(\"----------------------------------------------------------------\");\n\t\t\n\t\t/* Write a program to print the area and perimeter of a rectangle with width = 5 and height = 8. \n\t\t * Your program should say. \n\t\t *\"The perimeter of a rectangle with width ___ and height ____ is equal to _____ and the area is __\"*/\n\t\tint w = 5, h = 8;\n\t\tint prmtr = 2 * (w + h), area = w * h;\n\t\tSystem.out.println(\"The perimeter of a rectangle with width \" + w + \" and height \" + h +\n\t\t\" is equal to \" + prmtr +\" and the area is \" + area);\n\t\t\t\t\n\t\t\n\t}",
"public void doMath();",
"@NotNull\n BigDecimal calculate(@NotNull BigDecimal first, @NotNull BigDecimal second);",
"public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n int result = 0;\n\n System.out.print(\"Enter three integer number : \");\n String num = input.nextLine();\n\n String [] operand = num.split(\" \");\n int x = Integer.parseInt(operand[0]);\n int y = Integer.parseInt(operand[1]);\n int z = Integer.parseInt(operand[2]);\n\n System.out.print(\"Enter two operand : \");\n String operator = input.nextLine();\n\n String [] op = operator.split(\" \");\n String a = op[0];\n String b = op[1];\n\n int temp = 0;\n\n for(int i = 0; i< op.length; i++){\n if(a.equals(\"X\") || a.equals(\"D\") || a.equals(\"M\") || b.equals(\"X\") || b.equals(\"D\") || b.equals(\"M\")){\n\n if(a.equals(\"X\") || b.equals(\"X\")){\n if(a.equals(\"X\")){\n if(i == 0) temp = x*y;\n else result = temp * x;\n a = \"\";\n }\n else if(b.equals(\"X\")){\n if(i == 0) temp = y*z;\n else result = temp * z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"D\") || b.equals(\"D\")){\n if(a.equals(\"D\")){\n if(i==0) temp = x/y;\n else result = x/temp;\n a = \"\";\n }\n else if(b.equals(\"D\")){\n if(i == 0) temp = y/z;\n else result = temp / z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"M\") || b.equals(\"M\")){\n if(a.equals(\"M\")){\n if(i == 0)temp = x % y;\n else result = x % temp;\n a = \"\";\n }\n\n else if(b.equals(\"M\")) {\n if(i == 0) temp = y % z;\n else result = temp % z;\n b = \"\";\n }\n }\n\n } else{\n if(a.equals(\"A\")){\n if(b.equals(\"A\")) result = x+y+z;\n else if(b.equals(\"S\")) result = x+y-z;\n else result = temp + x;\n }\n\n else if(b.equals(\"A\")){\n if(a.equals(\"A\")) result = x+y+z;\n else if(a.equals(\"S\")) result = x-y+z;\n else result = temp + z;\n }\n }\n }\n System.out.println(x + \" \" + op[0] + \" \" + y + \" \" + op[1] + \" \" + z + \" = \" + result);\n\n }",
"public static void main(String[] args)\n {\n// Here we declare necessary variables and initialize the scanner:\n double firstNumber, secondNumber, total;\n String operator;\n Scanner myScanner = new Scanner(System.in); //This statement initializes a scanner called my scanner, and enables it to accept input from the user.\n//\n//\n//\n// Here we ask the user to input the numbers and operator.\nSystem.out.println(\"What is the first number?\");\nfirstNumber = myScanner.nextDouble(); //This statement assigns the number that the user inputs to the variable firstNumber.\nSystem.out.println(\"What is the second number?\");\nsecondNumber = myScanner.nextDouble(); //This statement assigns the number that the user inputs to the variable secondNumber.\nSystem.out.println(\"What operator would you like to use (choose between +,-,*,/?\");\noperator = myScanner.next(); //This statement assigns the string that the user inputs to the variable operator.\n//\n//\n//\n// Here we start the switch statement:\n switch (operator) //This tells the computer what to do for each of the 4 possible operators, and if the operator that was inputted isn't one of those for, it tells the user that it can't perform the operation.\n {\n case \"+\": //This case assigns total the value of the sum, and then prints that out.\n {\n total=firstNumber+secondNumber;\n System.out.println(\"The total is: \" + total);\n break;\n }\n case \"-\": //This case assigns total the value of the difference, and then prints that out.\n {\n total=firstNumber-secondNumber;\n System.out.println(\"The total is: \" + total);\n break;\n }\n case \"*\": //This case assigns total the value of the multiplication, and then prints that out.\n {\n total=firstNumber*secondNumber;\n System.out.println(\"The total is: \" + total);\n break;\n } \n case \"/\": //This case assigns total the value of the division, and then prints that out.\n {\n total=firstNumber/secondNumber;\n System.out.println(\"The total is: \" + total);\n break;\n }\n default: //This case prints out that the user did not select an appropriate operator.\n {\n System.out.println(\"Illegal Operator.\");\n break;\n }\n \n }\n }",
"@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public Double getResult();",
"public static double divide(double num1,double num2){\n\n // return num1/num2 ;\n\n if(num2==0){\n return 0 ;\n } else {\n return num1/num2 ;\n }\n }",
"public static void main(String[] args) {\n\n Locale.setDefault(Locale.US); //1\n Scanner sc = new Scanner(System.in); //1\n\n Calculator_Membros_Estaticos2 calc = new Calculator_Membros_Estaticos2(); //2\n System.out.print(\"Enter radius: \"); //3\n\n double radius = sc.nextDouble(); //4\n double c = calc.circumference(radius); //5\n double v = calc.volume(radius); //5\n\n System.out.printf(\"Circumference: %.2f%n\", c); //6\n System.out.printf(\"Volume: %.2f%n\", v); //6\n System.out.printf(\"PI value: %.2f%n\", calc.PI); //6\n\n sc.close();\n }",
"@Override\n\tpublic void calcul() {\n\t\tif(this.operateur.equals(\"\"))\n\t\t\tthis.result = Double.parseDouble(this.operande);\n\t\telse {\n\t\t\tif(!this.operande.equals(\"\")) {\n\t\t\t\tif(this.operateur.equals(\"+\")) {\n\t\t\t\t\tthis.result += Double.parseDouble(this.operande);\n\t\t\t\t}\n\t\t\t\tif(this.operande.equals(\"-\")) {\n\t\t\t\t\tthis.result -= Double.parseDouble(this.operande);\n\t\t\t\t}\n\t\t\t\tif(this.operateur.equals(\"*\"))\n\t\t\t\t\tthis.result *= Double.parseDouble(this.operande); \n\t\t\t\tif(this.operateur.equals(\"/\")){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tthis.result /= Double.parseDouble(this.operande);\n\t\t\t\t\t}catch(ArithmeticException e){\n\t\t\t\t\t\tthis.result = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthis.operande = \"\";\n\t\tnotifyObserver(String.valueOf(this.result));\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t//Reading input from the user\n\t\tSystem.out.println(\"Enter the number to find sqaure root of\");\n\t\tdouble num=AlgorithmUtility.userDouble();\n\t\t\n\t\t//Method 1- using static function of AlgorithmUtility class of\n\t\t//com.bridgelabz.util package\n\t\tdouble res=AlgorithmUtility.squareRoot(num);\n\t\t\n\t\tSystem.out.println(\"The square root of the given number using Newton's Method is: \"+ res);\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint a,b;\n\t\tdouble resultado;\n\t\t\n\t\ta = 5;\n\t\tb = 2;\n\t\t\n\t\tresultado = (double) a / b;\n\t\t\n\t\tSystem.out.println(resultado);\n\t\t\n\t}",
"private void divOperands() {\n\t\tif (text_Operand3.getText().isEmpty()) {\n\t\t\ttext_Operand3.setText(\"5\");\n\t\t}\n\t\tif (text_Operand4.getText().isEmpty()) {\n\t\t\ttext_Operand4.setText(\"5\");\n\t\t}\n\n\t\t/*\n\t\t * It will pass the value to the bussiness logic so trhat the further logics can\n\t\t * be performed on them.\n\t\t */\n\n\t\tif (conversionIsRequired(comboBox1.getSelectionModel().getSelectedItem(),\n\t\t\t\tcomboBox2.getSelectionModel().getSelectedItem())) {\n\t\t\tdouble op1 = Double.parseDouble(text_Operand1.getText());\n\t\t\tdouble op1et = Double.parseDouble(text_Operand3.getText());\n\t\t\tperform.setOperand1(String.valueOf(op1 * theFactor));\n\t\t\tperform.setOperand3(String.valueOf(op1et * theFactor));\n\t\t}\n\t\tif (binaryOperandIssues()) // If there are issues with the operands, return\n\t\t\treturn; // without doing the computation\n\t\tdouble x = Double.parseDouble(text_Operand2.getText());\n\t\tif (x == 0f) {\n\t\t\tlabel_errResult.setText(\"Divide by zero is not allowed\");\n\t\t\ttext_Result.setText(\"\");\n\n\t\t} else {\n\t\t\tString theAnswer = perform.division(); // Call the business logic Division method\n\t\t\tlabel_errResult.setText(\"\"); // Reset any result error messages from before\n\t\t\tString theAnswer1 = perform.division1(); // Call the business logic Division method\n\t\t\tlabel_errResulterr.setText(\"\"); // Reset any result error messages from before\n\n\t\t\tif (theAnswer.length() > 0 || theAnswer1.length() > 0) { // Check the returned String to see if it is okay\n\t\t\t\ttext_Result.setText(theAnswer); // If okay, display it in the result field and\n\t\t\t\tlabel_Result.setText(\"Quotient\"); // change the title of the field to \"Divide\".\n\t\t\t\tlabel_Result.setLayoutX(70);\n\t\t\t\tlabel_Result.setLayoutY(345);\n\t\t\t\ttext_Resulterr.setText(theAnswer1); // If okay, display it in the result field and\n\t\t\t\t// change the title of the field to \"Divide\"\n\t\t\t\tcomboBoxRes.getSelectionModel().select(comboBox1.getSelectionModel().getSelectedItem() + \"/\"\n\t\t\t\t\t\t+ comboBox2.getSelectionModel().getSelectedItem());\n\t\t\t} else { // Some error occurred while doing the division.\n\t\t\t\ttext_Result.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t\tlabel_Result.setText(\"Result\"); // Reset the result label if there is an error.\n\t\t\t\tlabel_errResult.setText(perform.getResultErrorMessage()); // Display the error message.\n\t\t\t\ttext_Resulterr.setText(\"\"); // Do not display a result if there is an error.\n\t\t\t\t// Reset the result label if there is an error.\n\t\t\t\tlabel_errResulterr.setText(perform.getResulterrErrorMessage()); // Display the error message.\n\t\t\t}\n\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"Enter numerator : \");\n\t\tint x = sc.nextInt();\n\t\tSystem.out.print(\"Enter denominator : \");\n\t\tint y = sc.nextInt();\n\t\tdivide(x, y);\n\t}"
]
| [
"0.70118093",
"0.69706565",
"0.6887056",
"0.6835117",
"0.679446",
"0.67913055",
"0.67808944",
"0.67173094",
"0.67040545",
"0.6702593",
"0.67022175",
"0.66901803",
"0.6687583",
"0.6684734",
"0.6666435",
"0.66243386",
"0.66173357",
"0.66063726",
"0.66015005",
"0.6598586",
"0.65854377",
"0.65734243",
"0.65594405",
"0.65563935",
"0.65410835",
"0.65382814",
"0.65094554",
"0.65044844",
"0.64914477",
"0.64894074",
"0.6468509",
"0.64637583",
"0.645824",
"0.6458002",
"0.64465857",
"0.6439554",
"0.64336133",
"0.6407377",
"0.63863707",
"0.63834107",
"0.63833064",
"0.6383172",
"0.63827467",
"0.63808584",
"0.6371621",
"0.6366621",
"0.6362404",
"0.6362318",
"0.63533276",
"0.6335045",
"0.63307494",
"0.63268733",
"0.6319632",
"0.62931526",
"0.6292974",
"0.6287429",
"0.62812686",
"0.62769747",
"0.6273737",
"0.6266055",
"0.62594676",
"0.6250917",
"0.6244644",
"0.6240969",
"0.62297994",
"0.622707",
"0.6222583",
"0.6212898",
"0.6206946",
"0.6203217",
"0.6201048",
"0.619257",
"0.6192444",
"0.61912054",
"0.61907375",
"0.61886895",
"0.6183504",
"0.6179709",
"0.617906",
"0.61736995",
"0.6169485",
"0.6166353",
"0.61661226",
"0.6158415",
"0.61498606",
"0.61451685",
"0.6143169",
"0.61429566",
"0.6136619",
"0.6134999",
"0.6131895",
"0.6131839",
"0.6130595",
"0.61257285",
"0.61205626",
"0.6112859",
"0.6112382",
"0.6107169",
"0.6104485",
"0.61016023"
]
| 0.68889505 | 2 |
Using multiple override methods to make the scanner inputs from the main method go through the following calculations for them. Each method will return the outcome of that calculation. | @Override
public double add() {
double outcome = firstVariable + secondVariable;
return outcome;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int calculateOutput();",
"public static void main(String[] args) {\n\t\tCalculatorScanner calculatorScanner = new CalculatorScanner();\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter 2 numbers:- \");\n\t\tint num1 = scanner.nextInt();\n\t\tint num2 = scanner.nextInt();\n\t\tint add = calculatorScanner.addition(num1, num2);\n\t\tint subtraction = calculatorScanner.subtraction(num1, num2);\n\t\tint multiplication = calculatorScanner.multiplication(num1, num2);\n\t\tint division = calculatorScanner.division(num1, num2);\n\t\tcalculatorScanner.printTotalAnswer(add, subtraction, multiplication, division);\n\t\tscanner.close();\n\t}",
"public void calculate() {\n\n InputHelper inputHelper = new InputHelper();\n String firstNumber = inputHelper.getInput(\"Write first number: \");\n String secondNumber = inputHelper.getInput(\"Write second number: \");\n String action = inputHelper.getInput(\"What action you want to do ( + - * /): \");\n\n while (!firstNumber.equals(\"0\") || !secondNumber.equals(\"0\") || !action.equals(\"0\")) {\n try {\n switch (action) {\n case \"+\":\n System.out.println(\"The result is: \" + (Double.valueOf(firstNumber) + Double.valueOf(secondNumber)));\n break;\n case \"-\":\n System.out.println(\"The result is: \" + (Double.valueOf(firstNumber) - Double.valueOf(secondNumber)));\n break;\n case \"*\":\n System.out.println(\"The result is: \" + (Double.valueOf(firstNumber) * Double.valueOf(secondNumber)));\n break;\n case \"/\":\n System.out.println(\"The result is: \" + (Double.valueOf(firstNumber) / Double.valueOf(secondNumber)));\n break;\n default:\n System.out.println(\"You've entered a wrong action!\");\n }\n } catch (NumberFormatException e) {\n System.out.println(\"You've entered not a number!\");\n }\n\n firstNumber = inputHelper.getInput(\"Write first number: \");\n secondNumber = inputHelper.getInput(\"Write second number: \");\n action = inputHelper.getInput(\"What action you want to do ( + - * /): \");\n\n }\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in); \r\n\t\twhile(sc.hasNext()){\r\n\t\t\tint x=sc.nextInt();\r\n\t\t\tint y=sc.nextInt();\r\n\t\t\tint result=getResult(x,y);\r\n\t\t\tSystem.out.println(result);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n \n /**\n * Creates scanner object.\n */\n Scanner scan = new Scanner(System.in);\n \n /**\n * Prompts for first input.\n */\n System.out.println(\"Enter your first number\");\n \n /**\n * Reads and stores user's first input.\n */\n double input1 = scan.nextDouble();\n \n /**\n * Prompts for user's second input.\n */\n System.out.println(\"Enter your second number\");\n \n /**\n * Reads and stores user's second input.\n */\n double input2 = scan.nextDouble();\n \n /**\n * Prints sum of inputs.\n */\n System.out.println(\"The sum of your numbers is: \" \n + (input1 + input2));\n \n /**\n * Prints difference of inputs.\n */\n System.out.println(\"The difference of your numbers is: \" \n + (input1 - input2));\n \n /**\n * Prints quotient of inputs.\n */\n System.out.println(\"The quotient of your numbers is: \" \n + (input1 / input2));\n \n /**\n * Prints product of inputs.\n */\n System.out.println(\"The product of your number is: \" \n + (input1 * input2));\n \n /**\n * Indicates that the program ran correctly.\n */\n System.out.println(\"Question three was called and ran sucessfully.\");\n \n /**\n * Closes Scanner.\n */\n scan.close();\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n //Reads ints from user\n int class1 = scanner.nextInt();\n int class2 = scanner.nextInt();\n int class3 = scanner.nextInt();\n\n //Your code goes here\n class1 = class1/2 + class1%2;\n class2 = class2/2 + class2%2;\n class3 = class3/2 + class3%2;\n int total = class1 + class2 + class3;\n System.out.print(total);\n\n // closing the scanner object\n scanner.close();\n }",
"public static void main(String[] args) {\n int a = 2;\n int b = 3;\n int c = 4;\n int d = 5;\n System.out.println(\"Result: \"+a*b*c*d);\n\n// Part 2: Use scanner to provide numbers\n Scanner s1 = new Scanner (System.in);\n System.out.println(\"Enter one integer to e: \" );\n int e = s1.nextInt();\n System.out.println(\"Enter one integer to f: \" );\n int f = s1.nextInt();\n System.out.println(\"Enter one integer to g: \" );\n int g = s1.nextInt();\n System.out.println(\"Enter one integer to h: \" );\n int h = s1.nextInt();\n System.out.println(\"Result: \" +e*f*g*h);\n\n// 3. way\n int result = 2; // 2\n result = result * 3; // 2 * 3 = 6\n result = result * 4; // 6 * 4 = 24\n result = result * 5; // 24 * 5 = 120\n System.out.println( \"3. way: \" + result );\n }",
"public static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\n\t\tdouble a,b,result;\n\t\tchar operation;\n\t\tSystem.out.println(\"PLease enter a first number\");\n\t\ta=input.nextDouble();\n\t\tSystem.out.println(\"Please enter a second number\");\n\t\tb=input.nextDouble();\n\t\tSystem.out.println(\"PLease tell us what kind of operation you want to use (+,-,*,/)\");\n\t\toperation=input.next().charAt(0);\n\t\t\n\t\tswitch(operation) {\n\t\t case '+':\n\t\t \tresult=a+b;\n\t\t \tbreak;\n\t\t case '-':\n\t\t \tresult=a-b;\n\t\t \tbreak;\n\t\t case'*':\n\t\t \tresult=a*b;\n\t\t \tbreak;\n\t\t case '/':\n\t\t \tresult=a/b;\n\t\t \tbreak;\n\t\t \tdefault:\n\t\t \t\tresult=0;\n\t\t \t\tSystem.out.println(\"Invalid input\");\n\t\t}System.out.println(\"The result is \"+ a+ operation+b+\"=\"+ result);\n \n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\n\t\t// initiating the scanner\n\t\tScanner operation = new Scanner(System.in);\n\n\t\t// creating object for calc\n\t\tCalc calc = new Calc();\n\t\tboolean isProceed = true;\n\t\twhile (isProceed) {\n\t\t\t// getting the first variable value\n\t\t\tSystem.out.println(\"Enter an integer\");\n\t\t\tint a = operation.nextInt();\n\t\t\tcalc.setA(a);\n\n\t\t\t// getting the second variable value\n\t\t\tSystem.out.println(\"Enter next integer\");\n\t\t\tint b = operation.nextInt();\n\t\t\tcalc.setB(b);\n\n\t\t\t// getting the operator value\n\t\t\tSystem.out.println(\"Enter type of operation. It should be only + or - or * or /\");\n\t\t\tString c = operation.next();\n\n\t\t\tswitch (c) {\n\t\t\tcase \"+\":\n\t\t\t\tcalc.add(a, b);\n\t\t\t\tbreak;\n\t\t\tcase \"-\":\n\t\t\t\tcalc.sub();\n\t\t\t\tbreak;\n\t\t\tcase \"*\":\n\t\t\t\tcalc.mult();\n\t\t\t\tbreak;\n\t\t\tcase \"/\":\n\t\t\t\tcalc.div();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"No operation is matching. Please reenter values\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.println(\" \");\n\t\t\tSystem.out.println(\" \");\n\t\t\t\n\t\t\t// getting user consent to proceed\n\t\t\tSystem.out.println(\"You want to make an other calculation ? Y / N\");\n\t\t\tString proceedBool = operation.next();\n\t\t\tif(proceedBool.equalsIgnoreCase(\"y\")) {\n\t\t\t\tisProceed = true;\n\t\t\t} else {\n\t\t\t\tisProceed = false;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Please enter value1: \");\r\n\t\tSystem.out.println(\"Please enter value2: \");\r\n\t\tint value1 = scanning();\r\n\t\tint value2 = scanning();\r\n\t\tint sum = calcsum(value1, value2, \"+\");\r\n\t\tSystem.out.print(sum);\r\n\t}",
"public static void getInput() {\n\t\tselectOption();\n\t\tsc = new Scanner(System.in);\n\t userInput2 = sc.nextInt();\n\t \n\t switch (userInput2) {\n\t \tcase 1: System.out.print(\"Enter the number for the factorial function: \");\n\t \t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The factorial of \" + userInput2 + \" is \" + factorial(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 2: System.out.print(\"Enter the Fibonacci position: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.println(\"The fibonacci number at position \" + userInput2 + \" is \" + fib(userInput2));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 3: System.out.print(\"Enter the first number: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter the second number: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The GCD of the numbers \" + userInput2 + \" and \" + userInput3 + \" is \" + GCD(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 4: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter r: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(userInput2 + \" choose \" + userInput3 + \" is \" + choose(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 5: System.out.print(\"Enter n: \");\n\t\t\t\t\tsc = new Scanner(System.in);\n\t\t\t\t userInput2 = sc.nextInt();\n\t\t\t\t System.out.print(\"Enter k: \");\n\t\t\t\t sc = new Scanner(System.in);\n\t\t\t\t userInput3 = sc.nextInt();\n\t\t\t\t System.out.println(\"The Josephus of \" + userInput2 + \" and \" + userInput3 + \" is \" + josephus(userInput2, userInput3));\n\t\t\t\t getInput();\n\t\t \t\tbreak;\n\t \tcase 6: System.out.println(\"Ending program...\");\n \t\t\t\tSystem.exit(0);\n \t\t\t\tbreak;\n \t\tdefault: System.out.println(\"\\nPlease enter number between 1 and 6\\n\");\n\t \t\t\tgetInput();\n\t \t\t\tbreak;\n\t }\t\n\t}",
"public static void main(String[] args) {\n\r\n\t\tdouble a, b, c, answer;\r\n\t\t\r\n\t\ta = MyScanner2.getDouble(\"a = \", -10, 10);\r\n\t\tSystem.out.println(\"You enter a = \" + a);\r\n\t\tb = MyScanner2.getDouble(\"b = \", -20, 20);\r\n\t\tSystem.out.println(\"You enter b = \" + b);\r\n\t\tc = MyScanner2.getDouble(\"c = \", -100, 100);\r\n\t\tSystem.out.println(\"You enter c = \" + c);\r\n\t\t\r\n\t\tanswer = b * b - 4 * a * c;\r\n\t\tSystem.out.println(\"\\nDyscriminant = \" + answer);\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Input 3 Numbers\");\n\t\tint a = input.nextInt();\n\t\tint b = input.nextInt();\n\t\tint c = input.nextInt();\n\n\t\tint method;\n\n\t\tmethod = Product(a,b,c);\n\t\tSystem.out.println(\"The product is: \" + method);\n\n\t\tSystem.out.println(\"\\nInclude two more numbers\");\n\t\tint o = input.nextInt();\n\t\tint p = input.nextInt();\n\n\t\tint method2;\n\t\tmethod2 = SumTwo(a,b);\n\t\tSystem.out.println(\"\\nThe Sum of these numbers are: \" + method2);\n\n\t\tint method3;\n\t\tSystem.out.println(\"\\nEnter one more number:\");\n\t\tmethod3 = input.nextInt();\n\t\tdouble avg = AverageInt(method3);\n\t\tSystem.out.println(\"The average between number\" + method3 + \" and avg is: \" + avg);\n\n\t}",
"public static void main(String[] args) {\n\t\tMagicCalculator magic = new MagicCalculator();\n\t\t\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Pick a number\");\n\t\tint number = Integer.parseInt(input.nextLine());\n\t\tSystem.out.println(\"Pick another number\");\n\t\tint number2 = Integer.parseInt(input.nextLine());\n\t\tinput.close();\n\t\t\n\t\t//Uses classes inherited from parent class Calculator\n\t\tmagic.Add(number, number2);\n\t\tmagic.Subtract(number, number2);\n\t\tmagic.Multiplication(number, number2);\n\t\tmagic.Division(number, number2);\n\t\t\n\t\tmagic.SquareRoot(number);\n\t\tmagic.SquareRoot(number2);\n\t\t\n\t\t//Uses its own classes\n\t\tmagic.FindSine(number, number2);\n\t\tmagic.FindCosine(number, number2);\n\t\tmagic.FindTangent(number, number2);\n\t\t\n\t\tmagic.FindFactorial(number);\n\t\t//magic.FindFactorial(number2);\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\nMethods2 methods=new Methods2();\nSystem.out.println(methods.getMax(12,155));\n//double res=getMaxWithoutReturn(2,13);VOID METHOD DOES not return cant store in variable\nScanner scan=new Scanner(System.in);//return methods \n//scanner class returns and allow us to print by storing in another variable \n\t}",
"public void takeInput() {\n\t\tboolean flag = true;\n\t\tMain test = new Main();\n\t\twhile(flag) {\n\t\t\tLOGGER.info(\"Enter an option 1.Calculate Simple Interest 2.Calculate Compound Interest 3.exit\");\n\t\t\tint val = sc.nextInt();\n\t\t\tswitch(val) {\n\t\t\tcase 1:\n\t\t\t\ttest.takeInputForSimpleInterest();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttest.takeInputForCompoundInterest();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tLOGGER.info(\"Enter valid input\");\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in).useLocale(Locale.ENGLISH)) {\n int progressionType = (int) scanNumber(scanner, \"type of progression\", 0, 0, 1);\n double firstElement = scanNumber(scanner, \"first element\", 1, -Double.MAX_VALUE, Double.MAX_VALUE);\n double commonDifOrRatio = scanNumber(scanner, \"common difference or ratio\", 1, -Double.MAX_VALUE, Double.MAX_VALUE);\n int memberCount = (int) scanNumber(scanner, \"member count\", 0, 1, Integer.MAX_VALUE);\n displayProgression(progressionType, firstElement, commonDifOrRatio, memberCount);\n }\n }",
"public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n\n System.out.println(\"Input first number: \");\n int inputNumber1 = scanner.nextInt();\n\n System.out.println(\"Input second number: \");\n int inputNumber2 = scanner.nextInt();\n\n System.out.println(inputNumber1 + \" x \" + inputNumber2 + \" = \" + inputNumber1 * inputNumber2);\n\n\n // 1.5 Write a Java program that takes a number as input and prints its multiplication table upto 10.\n\n System.out.println(\"Input a number: \");\n int number1 = scanner.nextInt();\n\n for (int i = 0; i < 10; i++) {\n System.out.println(number1 + \" x \" + (i + 1) + \" = \" + (number1 * (i + 1)));\n }\n\n // 1.6 print the area and perimeter of a circle.\n\n double radius = 7.5;\n\n double perimeter = 2 * Math.PI * radius;\n double area = Math.PI * radius * radius;\n\n System.out.println(\"Perimeter is = \" + perimeter);\n System.out.println(\"Area is = \" + area);\n\n // 1.7 Write a Java program to convert temperature from Fahrenheit to Celsius degree.\n\n System.out.println(\"Input a degree in Fahrenheit:\");\n\n double fahrenheit = scanner.nextDouble();\n\n double celsius = ((fahrenheit - 32) * 5 / 9);\n\n System.out.println(fahrenheit + \" degree Fahrenheit is equal to \" + celsius + \" in Celsius\");\n\n // 1.8 Write a Java program that reads a number in inches, converts it to meters.\n\n System.out.println(\"Input a value for inch: \");\n\n double inch = scanner.nextDouble();\n double meters = inch * 0.0254;\n\n System.out.println(inch + \" inch is \" + meters + \" meters\");\n\n // 1.9 Write a Java program to get a number from the user and print whether it is positive or negative.\n\n System.out.print(\"Input a number: \");\n\n int num = scanner.nextInt();\n\n if (num > 0) {\n System.out.println(\"Number is positive\");\n } else if (num < 0) {\n System.out.println(\"Number is negative\");\n } else {\n System.out.println(\"Number is zero\");\n }\n\n // 1.10 Take three numbers from the user and print the greatest number.\n\n System.out.print(\"Input the 1st number: \");\n int num1 = scanner.nextInt();\n\n System.out.println(\"Input the 2nd number: \");\n int num2 = scanner.nextInt();\n\n System.out.println(\"Input the 3rd number: \");\n int num3 = scanner.nextInt();\n\n if ((num1 > num2) && (num1 > num3))\n System.out.println(\"The greatest: \" + num1);\n\n if ((num2 > num1) && (num2 > num3))\n System.out.println(\"The greatest: \" + num2);\n\n if ((num3 > num1) && (num3 > num2))\n System.out.println(\"The greatest: \" + num3);\n\n // 1.11 Write a program in Java to input 5 numbers from the keyboard and find their sum and average.\n\n System.out.println(\"Input the 5 numbers : \");\n\n int num5, sum = 0;\n\n for (int i = 0; i < 5; i++) {\n num5 = scanner.nextInt();\n sum = sum + num5;\n }\n\n int average = sum / 5;\n System.out.println(\"The sum of 5 no is : \" + sum + \"\\nThe Average is : \" + average);\n\n // 1.12 Write a program Check Whether Number is Even or Odd\n\n System.out.println(\"Input: \");\n int num6 = scanner.nextInt();\n\n System.out.println(\"Input: \");\n int num7 = scanner.nextInt();\n\n if (num6 % 2 == 0) {\n System.out.println(\"Even\");\n }\n if (num7 % 2 == 0) {\n System.out.println(\"Even\");\n } else {\n System.out.println(\"Odd\");\n }\n }",
"public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nSystem.out.println(\"Enter the value\");\r\nvalue=sc.nextInt();\r\nint result=calculateDifferences(value);\r\nSystem.out.println(\"The differences is \"+result);\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner input=new Scanner (System.in);\n\t\tint n1, n2,result;\n\t\tchar operator;\n\t\t\t\t\t\n\t\t\t\n\t\tSystem.out.println(\"Please enter first numbers:\");\n\t\t\n\t\tn1=input.nextInt();\n\t\t\n\n\t\tSystem.out.println(\"Please enter first number: \");\t\t\n\t\tn2=input.nextInt();\n\t\t\n\t\tSystem.out.println(\"Please enter one of the operators that you want to do with these two numbers: +,-,* or /: \");\n\t\t\n\t\toperator=input.next().charAt(0);\n\t\t\n\t\tresult=0;\n\t\t\n\t\tswitch (operator) {\n\t\tcase '+':\n\t\t\tresult=n1+n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '-':\n\t\t\tresult=n1-n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '*':\n\t\t\tresult=n1*n2;\n\t\t\tbreak;\n\t\t\t\n\t\tcase '/':\n\t\t result=n1/n2;\n\t\t break;\n\t\tdefault:\n\t\t System.out.println(\"You have enetered the wrong operator\");\n\t\t \n\t\t}\n\t\t// if the result was not calculated I do not want to see below message\n\t\tif (result!=0) {\n\t\t\tSystem.out.println(\"The result of your operation is \"+result);\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\t\n\t\t}",
"public void result(){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Result Method initialized\r\n this.getRollNumber();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// getRollNumber() method called inside the result() method\r\n float sum; \t\t// float (Variable) sum and average Declared\r\n Scanner scanner = new Scanner(System.in);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Initialize the scanner to get input from User\r\n System.out.print(\"Enter Physics Marks : \"); // This will print out the argument and ends the line\r\n float Physics = scanner.nextFloat(); // Read float input Physics from the User\r\n System.out.print(\"Enter Chemistry Marks : \"); // This will print out the argument and ends the line\r\n float Chemistry = scanner.nextFloat(); // Read float input Chemistry from the User\r\n System.out.print(\"Enter Math Marks : \"); // This will print out the argument and ends the line\r\n float Maths = scanner.nextFloat(); // Read float input Math from the User\r\n sum = Physics + Chemistry + Maths; // Adding the value of Physics,Chemistry and Math floating variables and stored them in float variable sum\r\n average = sum / 3;\t}",
"public void executeTask10 () {\n double a = UserInput.input(\"Input a:\");\n double b = UserInput.input(\"Input b:\");\n\n //Methods which take TWO parameters - sides of rectangle and returns perimeter and area:\n double s = RectangleCalculator.calculateArea(a, b);\n double p = RectangleCalculator.calculatePerimeter(a, b);\n\n //Print to the console finaly results:\n Printer.print(\"Square with a = \" + a + \" and b = \" + b + \": \");\n Printer.print(\"S = \" + s);\n Printer.print(\"P = \" + p);\n }",
"@Override\r\n\tpublic double execute(Scanner scanner) {\r\n\t\tint[] params = new int[parameterCount]; \r\n\t\tfor (int i = 0; i < parameterCount; i++) {\r\n\t\t\tSystem.out.println(operationName + \" yapılacak \" + i + \". değer : \");\r\n\t\t\tparams[i] = scanner.nextInt();\r\n\t\t}\r\n\t\treturn op.exec(params);\r\n\t}",
"public static void main(String[] args){\n\t\tSimpleCalculator calc = new SimpleCalculator();\n\t\tboolean a=true;\n\t\tdouble number = 0.0;\n\t\tString checker = \"\";\n\t\twhile(a){\n\t\t\tSystem.out.println(\"Result: \" + number);\n\t\t\tSystem.out.println(\"Enter an operation or 'q' to end the program.\");\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\ttry{\n\t\t\t\tchecker= scan.next();\n\t\t\t\tif (checker.equals(\"q\")){\n\t\t\t\t\ta=false;\n\t\t\t\t}\n\t\t\t\telse if (!checker.equals(\"+\")&& !checker.equals(\"-\")&& !checker.equals(\"*\") && !checker.equals(\"/\")&&\n\t\t\t\t\t\t!checker.equals(\"%\")){\n\t\t\t\t\tthrow new UnknownOperatorException();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(UnknownOperatorException e){\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t\tif(a&&(checker.equals(\"+\")|| checker.equals(\"-\")|| checker.equals(\"*\") || checker.equals(\"/\")||\n\t\t\t\t\tchecker.equals(\"%\"))){\n\t\t\t\ttry{\n\t\t\t\t\tSystem.out.println(\"Please enter a number: \");\n\t\t\t\t\tnumber= scan.nextDouble();\n\t\t\t\t\tif (checker.equals(\"/\")&&(number==0)){\n\t\t\t\t\t\tthrow new ArithmeticException();\n\t\t\t\t\t}\n\t\t\t\t\tcalc.calcSetter(number, checker);\n\t\t\t\t\tnumber =calc.CalcLogic();\n\t\t\t\t}\n\t\t\t\tcatch(InputMismatchException exceptionObj){\n\t\t\t\t\tSystem.out.println(\"That is not a number! Please try again!\");\n\t\t\t\t\tScanner scan2 = new Scanner(System.in);\n\t\t\t\t\tnumber = scan2.nextDouble();\n\t\t\t\t}\n\t\t\t\tcatch(ArithmeticException e){\n\t\t\t\t\tSystem.out.println(\"Cannot divide by zero!\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public static void main(String[] args) {\nScanner scan = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Enter first number:\");\n\t\t\n\t\tdouble num1 = scan.nextDouble();\n\t\t \n\t\tSystem.out.println(\"Enter second number:\");\n\t\t\n\t\tdouble num2 = scan.nextDouble();\n\t\t \n\t\tSystem.out.println(\"Select operator: +, -, *, /, %\");\n\t\tString operator = scan.next();\n\t\t \n\t\t switch(operator) {\n\t\t \n\t\t case (\"+\"):\n\t\t\t System.out.println(\"result: \" +(num1+num2));\n\t\t break;\n\t\t case (\"-\"):\n\t\t\t System.out.println(\"result: \" +(num1-num2));\n\t\t break;\n\t\t case (\"*\"):\n\t\t\t System.out.println(\"result: \" +(num1*num2));\n\t\t break;\n\t\t case (\"/\"):\n\t\t\t System.out.println(\"result: \" + (num1/num2));\n\t\t break;\n\t\t case (\"%\"):\n\t\t\t System.out.println(\"result: \" + (num1%num2));\n\t\t break;\n\t\t default:\n\t\t\t System.out.println(\"impossible\");\n\t\t \n\t\t }\n\t\t \n\t\t \n\t}",
"public void calcOutput()\n\t{\n\t}",
"public abstract void execute(InputCalc input, Calculator calculator);",
"public static void main(String[] args){\n //Variables\n Scanner scnr = new Scanner(System.in);\n //Custom test case\n if(scnr.hasNext()){\n String testInput = \"\";\n while(scnr.hasNext()){\n testInput = scnr.nextLine();\n System.out.println(testInput + \" : \" + evaluate(testInput));\n }\n }\n //Default test case\n else{\n String [] sampletests = {\"(1+(2*3))\", \"(2*(4*(6/3)))\",\"(3+(4*2))\"};\n double [] sampleoutput = {7.0, 16.0, 11.0};\n for(int i = 0; i < sampletests.length; i++){\n if(evaluate(sampletests[i]) != sampleoutput[i]){\n System.out.println(\"Failed sample tests\");\n return;\n }\n }\n System.out.println(\"Passed sample tests\");\n }\n }",
"public abstract void input();",
"public static void main(String[] args) {\n\n Scanner input = new Scanner(System.in);\n System.out.print(\"What is the first number? \");\n String num1Str = input.nextLine();\n System.out.print(\"What is the second number? \");\n String num2Str = input.nextLine();\n int num1Int = Integer.parseInt(num1Str);\n int num2Int = Integer.parseInt(num2Str);\n int sum = num1Int + num2Int;\n int difference = num1Int - num2Int;\n int product = num1Int * num2Int;\n double quotient = (double)num1Int / num2Int;\n System.out.printf(\"%d + %d = %d\\n%d - %d = %d\\n%d * %d = %d\\n%d / %d = %.2f\\n\", num1Int, num2Int, sum, num1Int, num2Int, difference, num1Int, num2Int, product, num1Int, num2Int, quotient );\n }",
"public static int[] choice(String enemy, int enemyHealth, int enemyDamage, int playerHealth, int playerDamage, int elixirCount, int elixirHealth, int wins, boolean[] items, int itemCount, int level) {\r\n //ASK: Gets user input\r\n Scanner scnr = new Scanner(System.in);\r\n System.out.println(\"What would you like to do?\\n\\t> 1: Fight\\n\\t> 2: Drink elixir\\n\\t> 3: Run\");\r\n String userInput = scnr.next();\r\n //FIGHT\r\n switch (userInput) {\r\n case \"1\": {\r\n int[] returned = fight(enemy, enemyHealth, enemyDamage, playerHealth, playerDamage, elixirCount, elixirHealth, wins, items, itemCount, level);\r\n if (level == 3)\r\n playerHealth = returned[0];\r\n elixirCount = returned[1];\r\n wins = returned[2];\r\n itemCount = returned[3];\r\n return new int[]{playerHealth, elixirCount, wins, itemCount};\r\n }\r\n //ELIXIR\r\n case \"2\": {\r\n int[] returned = elixir(enemy, enemyHealth, enemyDamage, playerHealth, playerDamage, elixirCount, elixirHealth, wins, items, itemCount, level);\r\n if (level == 3)\r\n playerHealth = returned[0];\r\n elixirCount = returned[1];\r\n wins = returned[2];\r\n itemCount = returned[3];\r\n return new int[]{playerHealth, elixirCount, wins, itemCount};\r\n }\r\n //RUN/SKIP\r\n case \"3\":\r\n System.out.println(\"You chose to run.\\nHere comes another enemy!\");\r\n break;\r\n //NOTHING SELECTED\r\n default:\r\n System.out.println(\"What would you like to do?\\n\\t> 1: Fight\\n\\t> 2: Drink elixir\\n\\t> 3: Run\");\r\n userInput = scnr.next();\r\n break;\r\n }\r\n return new int[]{playerHealth, elixirCount, wins, itemCount};\r\n }",
"public static void main(String[] args) {\n\t\t\t\tScanner scanner = new Scanner(System.in); \r\n\t\t\t\tSystem.out.print(\"Enter first number \");\r\n\t\t\t\t\r\n\t\t\t\t//Scans the next token of the input as an int and pass to firstValue \r\n\t\t\t\tint firstValue = scanner.nextInt();\r\n\t\t\t\tSystem.out.print(\"Enter second number \");\r\n\t\t\t\t\r\n\t\t\t\t//Scans the next token of the input as an int and pass to secondValue \r\n\t\t\t\tint secondValue = scanner.nextInt();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"First number is: \"+ firstValue);\r\n\t\t\t\tSystem.out.println(\"Second number is: \"+ secondValue);\r\n\t\t\t\t\r\n\t\t\t\t//Calling method sum which prints the sum of two numbers\r\n\t\t\t\tsum(firstValue , secondValue);\r\n\r\n\t\t\t\t\r\n\r\n\t}",
"@Override\n\tpublic void inputScore() {\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner S1=new Scanner(System.in); //Scanner is the class name\n\t\tSystem.out.println(\"enter the first number\");\n\t\tint a=S1.nextInt(); //method\n\t\tSystem.out.println(\"enter the second number\");\n\t\tint b=S1.nextInt();\n\t\twhile(true)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tSystem.out.println(a/b);\n\t\t\tbreak;\n\t\t\n\t\t\t}\n\t\t\tcatch(ArithmeticException AE)\n\t\t\t{\n\t\t\t\tSystem.out.println(AE); //if we dont print AE then it will not show the reason for exception\n\t\t\t\tSystem.out.println(\"denominator cannot be zero please type again\");\n\t\t\t\tb=S1.nextInt();\n\t\t\t}\n\t\t}\n\n\t}",
"protected abstract Object doCalculations();",
"public static void main(String[] args)\r\n\t{\n\t\tdouble num1;\r\n\t\tdouble num2;\r\n\t\t\r\n\t\t// Define a new variable that holds the character that represents the operator\r\n\t\tchar operator;\r\n\t\t\r\n\t\tdouble answer = 0.0;\r\n\t\t\r\n\t\t// Declare a new Scanner object called eval and set it to take in to the console input\r\n\t\tScanner eval = new Scanner(System.in);\r\n\t\t\r\n\t\t// Prompt the user for the 1st number\r\n\t\tSystem.out.println(\"Enter the 1st number: \");\r\n\t\t// Set num1 to the next double value the user enters\r\n\t\tnum1 = eval.nextDouble();\r\n\t\t\r\n\t\t// Prompt the user for the operator\r\n\t\tSystem.out.println(\"Enter the operator: \");\r\n\t\t// Set operator to the character the user wants\r\n\t\toperator = eval.next().charAt(0);\r\n\t\t\t\t\r\n\t\t// Prompt the user for the 2nd number\r\n\t\tSystem.out.println(\"Enter the 2nd number: \");\r\n\t\t// Set num2 to the next double value the user enters\r\n\t\tnum2 = eval.nextDouble();\r\n\t\t\r\n\t\t\t\t\r\n\t\t// Close the eval to prevent memory leakage\r\n\t\teval.close();\r\n\t\t\r\n\t\t// Take different actions depending on the operator passed to the function\r\n\t\tswitch(operator)\r\n\t\t{\r\n\t\t\t// If the operator is a +\r\n\t\t\tcase '+':\r\n\t\t\t\tanswer = num1 + num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\t// If the operator is a -\r\n\t\t\tcase '-':\r\n\t\t\t\tanswer = num1 - num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// If the operator is a *\r\n\t\t\tcase '*':\r\n\t\t\t\tanswer = num1 * num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t// If the operator is a /\r\n\t\t\tcase '/':\r\n\t\t\t\tanswer = num1 / num2;\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t// Output the 2 values, the operator and result to the user\r\n\t\tSystem.out.println(\"Answer: \" + num1 + \" \" + operator + \" \" + num2 + \" = \" + answer);\r\n\t}",
"public abstract int calculate(int a, int b);",
"public static void main(String[] args) {\n DecimalFormat decimalFormat = new DecimalFormat(\"#.####\");\n Scanner scanner = new Scanner(System.in);\n int a = 0;\n int b = 0;\n int c = 0;\n\n System.out.println(\" Enter a \");\n a = scanner.nextInt();\n\n System.out.println(\" Enter b\");\n b = scanner.nextInt();\n\n System.out.println(\" Enter c \");\n c = scanner.nextInt();\n\n System.out.println(\"Result 2: \"+product(a,b));\n System.out.println(\"Result 3: \"+product(a,b,c));\n\n }",
"public void calculateMethod() {\n\n if (counter != 16) {\n ifElseCalculation();\n } else {\n ifElseCalculation();\n\n //saves final Points for 2nd Activity\n shareData();\n //opens 2nd Activity for Result\n Intent intent = new Intent(this, EditTextActivity.class);\n startActivity(intent);\n }\n\n /**\n * Set back all Buttons\n */\n checkedA = false;\n checkedB = false;\n checkedC = false;\n checkedD = false;\n\n /**\n * Set up all included Views for the next Question\n */\n nextQuestion();\n }",
"public static void main(String[] args) \n\t{\n\t\tSystem.out.println(\"Enter the amount for the check:\");\n\t\t//Looks at what your input\n\t\tScanner sc = new Scanner(System.in);\n\t\t//Stores your input, (\"sc\") \n\t\tdouble checkAmount = sc.nextDouble();\n\t\t//These are the methods being called with the variable\n\t\tdouble tenPercent = tenpercent(checkAmount);\n\t\tdouble fifteenPercent = fifteenpercent(checkAmount);\n\t\tdouble twentyPercent = twentypercent(checkAmount);\n\t\tSystem.out.println(\"Your 10, 15, and 20 tips are \" + tenPercent + \" 15 percent \" + fifteenPercent + \" and 20 percent \" + twentyPercent);\n\n\t}",
"public static void main(String[] args) {\n Scanner scn =new Scanner(System.in);\n boolean b=true;\n while(b)\n {\n \n char ch=scn.next().charAt(0);\n \n if(ch=='+'||ch=='-'||ch=='*'||ch=='/'||ch=='%')\n {\n\t int N1 =scn.nextInt();\n\t int N2 =scn.nextInt();\n\t calculator(ch,N1,N2);\n }\n else if(ch!='X'&&ch=='x')\n\t {System.out.println(\"try again\");}\n else\n\tbreak;\n }\n }",
"public static void main(String[] args) {\n System.out.println(\"Start of code\");\r\n\t\t\r\n\t\tmyAdd();\r\n\t\tmyAdd();\r\n\t\tmyAdd();\r\n\t\tmyMultiple(15,23);\r\n\t\tmyMultiple(15,22);\r\n\t\t\r\n\t\tint a= myDivision(100,5);\r\n\t\tSystem.out.println(\"Value of s is \"+a);\r\n\t\t\r\n\t\tint b= myDivision(100,15);\r\n\t\tSystem.out.println(\"Value of s is \"+b);\r\n \r\n\t\tSystem.out.println(\"End of code\");\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner num= new Scanner(System.in);\n\t\tSystem.out.println(\"Enter Your First Number=\");\n\t\tint a =num.nextInt();\n\t\t\n//\t\tSystem.out.println(\"Yoour Number is =\"+a);\n\t\tSystem.out.println(\"Enter Your Second Number=\");\n\t\tint b =num.nextInt();\n\t\tSystem.out.println(\"Enter Your Operation=\");\n\t\tnum.nextLine();\n\t\tchar operation=num.nextLine().charAt(0);\n\t\tint result=0;\n\t\t\n\t\tswitch(operation) {\n\t\tcase '+':\n\t\t\tresult =a+b;\n\t\t\tbreak;\n\t\tcase '-':\n\t\t\tresult =a-b;\n\t\t\tbreak;\n\t\tcase '*':\n\t\t\tresult =a*b;\n\t\t\tbreak;\n\t\tcase '/':\n\t\t\tresult =a/b;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Enter Value Are Invalid\");\n\t\t}\n\t\tSystem.out.println(\"Answer For Your Operation \"+ result);\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter first Value: \");\n\t\tdouble a = scan.nextDouble();\n\t\tSystem.out.println(\"Enter second Value: \");\n\t\tdouble b = scan.nextDouble();\n\t\tSystem.out.println(\"Enter operation you would like to perform (Example +, - , *, /): \");\n\t\tString s = scan.next();\n\t\tscan.close();\n\t\tdouble ans;\n\t\t\n\t\tif(s.equals(\"+\")){\n\t\t\tans = a+b;\n\t\t}\n\t\telse if(s.equals(\"-\")){\n\t\t\tans = a-b;\n\t\t}\n\t\telse if(s.equals(\"*\")){\n\t\t\tans = a*b;\n\t\t}\n\t\telse if(s.equals(\"/\")){\n\t\t\tans = a/b;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Invalid Operation\");\n\t\t\tans = 0;\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tSystem.out.printf(\"%.3f %s %.3f = %.3f\",a,s,b,ans);\n\n\n\n\n\t}",
"public abstract void calculate();",
"public static void main(String[] args) {\n // TODO code application logic here\n ArrayList<Integer> ints=new input().getInts(10);\n //PT -- stuff?\n calculates stuff=new calculates(ints);\n System.out.printf(\"Minimun Value is %d \\n\",(int)stuff.getMin());\n System.out.printf(\"Maximun Value is %d \\n\",(int)stuff.getMax());\n System.out.printf(\"Average Value is %f \\n\",stuff.getAvg());\n \n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int no_cases = scanner.nextInt();\n for (int i = 0; i < no_cases; i++) {\n int n = scanner.nextInt();\n int[] input = new int[n];\n for(int j = 0; j < n; j++) {\n input[j] = scanner.nextInt();\n }\n System.out.printf(\"%.2f\\n\", getExpectedValue(input));\n }\n }",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tresult(num);\n\t}",
"public static void main (String[] args){\n\tScanner in = new Scanner(System.in);\n\t\n\tSystem.out.print(\"Enter the first number: \");\n\tint n1 = in.nextInt();\n\t\n\tSystem.out.print(\"Enter the second numer: \");\n\tint n2 = in.nextInt();\n\t\n\tint ans = n1 + n2;\n\tSystem.out.printf(\"%d + %d = %d\\n\", n1, n2, ans);\n\t\n\tans = n1 - n2;\n\tSystem.out.printf(\"%d - %d = %d\\n\", n1, n2, ans);\n\t\n\tans = n1 * n2;\n\tSystem.out.printf(\"%d * %d = %d\\n\", n1, n2, ans);\n\t\n\tans = n1 / n2;\n\tSystem.out.printf(\"%d / %d = %d\\n\", n1, n2, ans);\n\t\n\tin.close();\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"Enter numerator : \");\n\t\tint x = sc.nextInt();\n\t\tSystem.out.print(\"Enter denominator : \");\n\t\tint y = sc.nextInt();\n\t\tdivide(x, y);\n\t}",
"public void go() {\n Counter counter = new Counter();\n UserInput userInput = new UserInput();\n System.out.println(\"Input the x: \");\n int x = userInput.lengthInput();\n mainLogger.info(\"The user has entered {} as x\", x);\n mainLogger.info(\"Answer of the equation is: {}\", counter.wholeAnswer(x));\n }",
"public static void main(String[] args)\n {\n// Here we declare necessary variables and initialize the scanner:\n double firstNumber, secondNumber, total;\n String operator;\n Scanner myScanner = new Scanner(System.in); //This statement initializes a scanner called my scanner, and enables it to accept input from the user.\n//\n//\n//\n// Here we ask the user to input the numbers and operator.\nSystem.out.println(\"What is the first number?\");\nfirstNumber = myScanner.nextDouble(); //This statement assigns the number that the user inputs to the variable firstNumber.\nSystem.out.println(\"What is the second number?\");\nsecondNumber = myScanner.nextDouble(); //This statement assigns the number that the user inputs to the variable secondNumber.\nSystem.out.println(\"What operator would you like to use (choose between +,-,*,/?\");\noperator = myScanner.next(); //This statement assigns the string that the user inputs to the variable operator.\n//\n//\n//\n// Here we start the switch statement:\n switch (operator) //This tells the computer what to do for each of the 4 possible operators, and if the operator that was inputted isn't one of those for, it tells the user that it can't perform the operation.\n {\n case \"+\": //This case assigns total the value of the sum, and then prints that out.\n {\n total=firstNumber+secondNumber;\n System.out.println(\"The total is: \" + total);\n break;\n }\n case \"-\": //This case assigns total the value of the difference, and then prints that out.\n {\n total=firstNumber-secondNumber;\n System.out.println(\"The total is: \" + total);\n break;\n }\n case \"*\": //This case assigns total the value of the multiplication, and then prints that out.\n {\n total=firstNumber*secondNumber;\n System.out.println(\"The total is: \" + total);\n break;\n } \n case \"/\": //This case assigns total the value of the division, and then prints that out.\n {\n total=firstNumber/secondNumber;\n System.out.println(\"The total is: \" + total);\n break;\n }\n default: //This case prints out that the user did not select an appropriate operator.\n {\n System.out.println(\"Illegal Operator.\");\n break;\n }\n \n }\n }",
"public static void main(String[] args) {\n\t\tMyCalc cal = new MyCalc();\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"두 정수를 입력하세요.\");\n\t\tSystem.out.print(\"a > \");\n\t\tint a = Integer.parseInt(scan.nextLine());\n\t\tSystem.out.print(\"b > \");\n\t\tint b = Integer.parseInt(scan.nextLine());\n\n\t\tSystem.out.println(a + \" + \" + b + \" = \" + cal.add(a, b));\n\t\tSystem.out.println(a + \" - \" + b + \" = \" + cal.sub(a, b));\n\t\tSystem.out.println(a + \" * \" + b + \" = \" + cal.mul(a, b));\n\t}",
"public void operator() {\n while (keepOperational) {\n Scanner scanner = new Scanner(System.in);\n\n System.out.print(\"\\nInput:\\n\");\n String input = scanner.nextLine();\n\n /** delegate the input - all for enabling unit testing */\n operate(input);\n }\n }",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Welcome to the calculator. What operation would you like to do?(+,-,*,/)\");\n\t\tString answer = input.next();\n\t\t\n\t\tif (answer.equals(\"add\") || answer.equals(\"Add\") || answer.equals(\"+\")) \n\t\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to add?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat add1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number you want to add\");\n\t\t\t\tfloat add2 = input.nextFloat();\n\t\t\t\t\n\t\t\t\tfloat addanswer = add1 + add2;\n\t\t\t\tSystem.out.println(addanswer);\n\t\t\t\t}\n\t\telse if(answer.equals(\"minus\") || answer.equals(\"-\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to subtract?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat sub1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number\");\n\t\t\t\tfloat sub2 = input.nextFloat();\n\t\t\t\t\t\n\t\t\t\tfloat subanswer = sub1 - sub2;\n\t\t\t\tSystem.out.println(subanswer);\n\t\t\t}\n\t\telse if(answer.equals(\"multiply\") || answer.equals(\"x\") || answer.equals(\"*\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to multiply?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat mul1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number\");\n\t\t\t\tfloat mul2 = input.nextFloat();\n\t\t\t\t\n\t\t\t\tfloat mulanswer = mul1 * mul2;\n\t\t\t\tSystem.out.println(mulanswer);\n\t\t\t}\n\t\telse if(answer.equals(\"divide\") || answer.equals(\"/\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"What numbers would you like to divide?\");\n\t\t\t\tSystem.out.println(\"Type your first number\");\n\t\t\t\tfloat div1 = input.nextFloat();\n\t\t\t\tSystem.out.println(\"Type the second number\");\n\t\t\t\tfloat div2 = input.nextFloat();\n\t\t\t\t\n\t\t\t\tfloat divanswer = div1 / div2;\n\t\t\t\tSystem.out.println(divanswer);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Please try again.\");\n\t\t\t}\n\t\tinput.close();\n\t\t}",
"public static void main(String[] args) {\n\t\tint a=0, b=0, res=0;\n\t\tString sel=null;\n\t\tScanner entrada= new Scanner(System.in);\n System.out.println(\"Selecciona la opcion:\\n \");\n System.out.println(\"+: Suma\"\n \t\t + \"\\n-: Resta\"\n \t\t + \"\\n*: Multiplicacion\"\n \t\t + \"\\n/: Division\");\n sel=entrada.next();\n switch(sel){ //creo suma con el Scanner, luego copio esto mismo para la resta,mult y div\n \t case \"+\":\n \t\t System.out.println(\"Ha seleccionado suma\\n Ingrese los valores\");\n \t\t System.out.println(\"Ingrese el primer numero:\");\n \t\t a=entrada.nextInt();\n \t\t System.out.println(\"Ingrese el segundo numero: \");\n \t\t b=entrada.nextInt();\n \t\t res=a+b;\n \t\t System.out.println(a+\"+\"+b+\"=\"+res);\n \t\t \t\t break;\n \t case \"-\":\n \t\t System.out.println(\"Ha seleccionado resta\\n Ingrese los valores\");\n \t\t System.out.println(\"Ingrese el primer numero:\");\n \t\t a=entrada.nextInt();\n \t\t System.out.println(\"Ingrese el segundo numero: \");\n \t\t b=entrada.nextInt();\n \t\t res=a-b;\n \t\t System.out.println(a+\"-\"+b+\"=\"+res);\n \t\t \t\t break;\n \t case \"*\":\n \t\t System.out.println(\"Ha seleccionado multiplicacion\\n Ingrese los valores\");\n \t\t System.out.println(\"Ingrese el primer numero:\");\n \t\t a=entrada.nextInt();\n \t\t System.out.println(\"Ingrese el segundo numero: \");\n \t\t b=entrada.nextInt();\n \t\t res=a*b;\n \t\t System.out.println(a+\"*\"+b+\"=\"+res);\n \t\t \t\t break;\n \t case \"/\":\n \t\t System.out.println(\"Ha seleccionado division\\n Ingrese los valores\");\n \t\t System.out.println(\"Ingrese el primer numero:\");\n \t\t a=entrada.nextInt();\n \t\t System.out.println(\"Ingrese el segundo numero: \");\n \t\t b=entrada.nextInt();\n \t\t res=a/b;\n \t\t System.out.println(a+\"/\"+b+\"=\"+res);\n \t\t \t\t break;\n \t\t \t\t default:\n \t\t \t\t\t System.out.println(\"Esa opcion no existe\");\n }\n \n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);//sc is a point of contact for console\n\t\t\n\t\tSystem.out.println(\"enter num1:\");\n\t\tint n1 = sc.nextInt();\n\t\t\n\t\tSystem.out.println(\"enter num2:\");\n\t\tint n2 = sc.nextInt();\n\t\t\n\t\t//perform operations\n\t\tint sum = n1 + n2;\n\t\tint sub = n1 - n2;\n\t\tint mul = n1 * n2;\n\t\tint div = n1 / n2;\n\t\t\n\t\tSystem.out.println(\"sum =\" +sum);\n\t\tSystem.out.println(\"sub =\" +sub);\n\t\tSystem.out.println(\"mul =\" +mul);\n\t\tSystem.out.println(\"div =\" +div);\n\t\t\n}",
"public void processInput() {\n\n\t}",
"public static void main(String[] args) {\r\n\t\tcalculateSum(3.4, 1.8);\r\n\t\tcalculation(2, 3);\r\n\t\tcalculation(2, 3, 4);\r\n\t\tcalculation(5, \"7\");\r\n\t\t\r\n\t\t// If you change the number of parameters, or the data type of parameters\r\n\t}",
"public static void main(String[] args) {\n while (true) {\n System.out.println(\"1. Normal Calculator\");\n System.out.println(\"2. BMI Calculator\");\n System.out.println(\"3. Exit\");\n System.out.print(\"Enter your choice: \");\n int choice = CheckInput.checkInputIntLimit(1, 3);\n\n switch (choice) {\n case 1:\n NomalCal nc = new NomalCal();\n double memory = 0,\n number;\n System.out.print(\"Enter number: \");\n number = CheckInputNumber.checkInputDouble();\n memory = nc.addCal(number);\n while (true) {\n\n System.out.print(\"Enter operator: \");\n String operator = CheckInputOperator.checkInputOperator();\n\n if (operator.equalsIgnoreCase(\"+\")) {\n System.out.print(\"Enter number: \");\n number = CheckInputNumber.checkInputDouble();\n memory = nc.addCal(number);\n System.out.println(\"Memory: \" + memory);\n }\n if (operator.equalsIgnoreCase(\"-\")) {\n System.out.print(\"Enter number: \");\n number = CheckInputNumber.checkInputDouble();\n memory = nc.subCal(number);\n System.out.println(\"Memory: \" + memory);\n }\n if (operator.equalsIgnoreCase(\"*\")) {\n System.out.print(\"Enter number: \");\n number = CheckInputNumber.checkInputDouble();\n memory = nc.mulCal(number);\n System.out.println(\"Memory: \" + memory);\n }\n if (operator.equalsIgnoreCase(\"/\")) {\n System.out.print(\"Enter number: \");\n number = CheckInputNumber.checkInputDouble();\n memory = nc.divCal(number);\n System.out.println(\"Memory: \" + memory);\n }\n if (operator.equalsIgnoreCase(\"^\")) {\n System.out.print(\"Enter number: \");\n number = CheckInputNumber.checkInputDouble();\n memory = nc.powCal(number);\n System.out.println(\"Memory: \" + memory);\n }\n if (operator.equalsIgnoreCase(\"=\")) {\n System.out.println(\"Result: \" + memory);\n return;\n }\n }\n case 2:\n IBMCal.BMICalculator();\n break;\n case 3:\n return;\n }\n }\n\n }",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n System.out.println(\"Input first number:\");\n int nr1 = s.nextInt();\n System.out.println(\"Input second number:\");\n int nr2 = s.nextInt();\n System.out.println(\"Input third number:\");\n int nr3 = s.nextInt();\n System.out.println(compareNumbers(nr1,nr2,nr3));\n}",
"public void get_UserInput(){\r\n\t Scanner s = new Scanner(System.in);\r\n\t // get User inputs \r\n\t System.out.println(\"Please enter a number for Dry (double):\");\r\n\t DRY = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wet (double):\");\r\n\t WET = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for ISNOW (double):\");\r\n\t ISNOW = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wind(double):\");\r\n\t WIND = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for BUO (double):\");\r\n\t BUO = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Iherb (int):\");\r\n\t IHERB = s.nextInt(); \r\n\t System.out.println(\"****Data for parameters are collected****.\");\r\n\t System.out.println(\"Data for parameters are collected.\");\r\n\t dry=DRY;\r\n\t wet=WET;\r\n}",
"public void calculate();",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint result = 0;\n\t\tint number = scanner.nextInt();\n\t\t\n\t\tif(number <= 99) {\n\t\t\tSystem.out.print(number);\n\t\t}\n\t\telse {\n\t\t\t\n\t\t\tif(number == 1000){\n\t\t\t\tnumber = 999;\n\t\t\t}\n\t\t\t\n\t\t\tresult = 99 + getResult(number);\n\t\t\t\n\t\t\tSystem.out.println(result);\n\t\t}\n\t}",
"public static void main(String[] args) \r\n {\r\n \tScanner input = new Scanner(System.in); \r\n \tSystem.out.println(\"Input your expression of fractions.\"); //prompts user input \r\n \tString inputString = input.nextLine();\r\n // TODO: Read the input from the user and call produceAnswer with an equation\r\n //user input\r\n \twhile (inputString.equals(\"quit\") == false) {\r\n \t\tString answer = produceAnswer(inputString);\r\n \t\tSystem.out.println(answer);\r\n \t\tSystem.out.println(\"Input your expression.\");\r\n \t\tinputString = input.nextLine(); \r\n \t}\r\n \tinput.close();\r\n }",
"public static void main(String[] args) {\n\t\t\n\tScanner scan = new Scanner(System.in);\n\t\n\tSystem.out.print(\"Enter a value: \");\n\tbyte num = scan.nextByte();\n\t\n\t\n\tScanner input = new Scanner(System.in);\n\t\n\tSystem.out.print(\"Enter another value: \");\n\tint n = input.nextInt();\n\t\n\t\n\tScanner car = new Scanner(System.in);\n\t\n\tSystem.out.print(\"Enter third value: \");\n\tint nn = car.nextInt();\n\t\n\tSystem.out.print(\"The total value is: \" + (num + n + nn));\n\n\t\n\t\n\t\n\t}",
"public static void main(String[] args) {\n\t\tcalculateNumbers(105);\n\t\t\n\t\tcalculateNumbers(140);\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args){\n Scanner input = new Scanner(System.in);\n int result = 0;\n\n System.out.print(\"Enter three integer number : \");\n String num = input.nextLine();\n\n String [] operand = num.split(\" \");\n int x = Integer.parseInt(operand[0]);\n int y = Integer.parseInt(operand[1]);\n int z = Integer.parseInt(operand[2]);\n\n System.out.print(\"Enter two operand : \");\n String operator = input.nextLine();\n\n String [] op = operator.split(\" \");\n String a = op[0];\n String b = op[1];\n\n int temp = 0;\n\n for(int i = 0; i< op.length; i++){\n if(a.equals(\"X\") || a.equals(\"D\") || a.equals(\"M\") || b.equals(\"X\") || b.equals(\"D\") || b.equals(\"M\")){\n\n if(a.equals(\"X\") || b.equals(\"X\")){\n if(a.equals(\"X\")){\n if(i == 0) temp = x*y;\n else result = temp * x;\n a = \"\";\n }\n else if(b.equals(\"X\")){\n if(i == 0) temp = y*z;\n else result = temp * z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"D\") || b.equals(\"D\")){\n if(a.equals(\"D\")){\n if(i==0) temp = x/y;\n else result = x/temp;\n a = \"\";\n }\n else if(b.equals(\"D\")){\n if(i == 0) temp = y/z;\n else result = temp / z;\n b = \"\";\n }\n }\n\n else if(a.equals(\"M\") || b.equals(\"M\")){\n if(a.equals(\"M\")){\n if(i == 0)temp = x % y;\n else result = x % temp;\n a = \"\";\n }\n\n else if(b.equals(\"M\")) {\n if(i == 0) temp = y % z;\n else result = temp % z;\n b = \"\";\n }\n }\n\n } else{\n if(a.equals(\"A\")){\n if(b.equals(\"A\")) result = x+y+z;\n else if(b.equals(\"S\")) result = x+y-z;\n else result = temp + x;\n }\n\n else if(b.equals(\"A\")){\n if(a.equals(\"A\")) result = x+y+z;\n else if(a.equals(\"S\")) result = x-y+z;\n else result = temp + z;\n }\n }\n }\n System.out.println(x + \" \" + op[0] + \" \" + y + \" \" + op[1] + \" \" + z + \" = \" + result);\n\n }",
"public static void operations() {\n System.out.println(\"Enter two numbers\");\n double a = getNumber();\n double b = getNumber();\n\n System.out.println(\"Enter operations (as one string)\");\n String input = scanner.nextLine();\n\n if (input.contains(\"+\")) {\n System.out.println(\"Sum: \" + sum(a, b));\n }\n if (input.contains(\"-\")) {\n System.out.println(\"Difference: \" + diff(a, b));\n }\n if (input.contains(\"*\")) {\n System.out.println(\"Product: \" + multi(a, b));\n }\n if (input.contains(\"/\")) {\n System.out.println(\"Fraction: \" + div(a, b));\n }\n }",
"public void executeTask11 () {\n double r = UserInput.input(\"Input rsdius:\");\n\n //Methods which take one parameter - radius of circle and returns perimeter and lenth:\n double l = CircleCalculator.calculateLength(r);\n double s = CircleCalculator.calculateArea(r);\n\n //Print to the console finaly results:\n Printer.print(\"Circle with r = \" + r + \": \");\n Printer.print(\"L = \" + l);\n Printer.print(\"S = \" + s);\n }",
"@Test\n public void testCalculateScore() {\n System.out.println(\"calculateScore\");\n String input1 = \"8 0 3 1 6 5 -2 4 7 1 3 -2 6\";\n String input2 = \"8 0 3 1 6 5 -2 4 7 3 2 -2 6\";\n CCGeneticDrift instance = new CCGeneticDrift();\n int expResult1 = 2;\n int expResult2 = 4;\n int result1 = instance.calculateScore(input1);\n assertEquals(result1, expResult1);\n int result2 = instance.calculateScore(input2);\n assertEquals(result2, expResult2);\n }",
"public static void main(String args[])\n {\n Scanner n = new Scanner(System.in);\n int n1= n.nextInt();\n switch(n1){\n case 1:int a=n.nextInt();\n a=a*a;\n System.out.println(a);\n break;\n case 2:int l=n.nextInt();\n int b=n.nextInt();\n int r=l*b;\n System.out.println(r);\n break;\n case 3:int b1=n.nextInt();\n int h=n.nextInt();\n int r1=(b1*h)/2;\n System.out.println(r1);\n break;\n case 4:int r2=n.nextInt();\n double a2=3.14*r2*r2;\n System.out.println(a2);\n break;\n default:break;\n }\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\r\n\r\n //Reads ints from user\r\n int StuNumA = scanner.nextInt();\n int StuNumB = scanner.nextInt();\n int StuNumC = scanner.nextInt();\n\n int Adesks;\n int Bdesks;\n int Cdesks;\r\n\r\n /*\r\n * your code goes here\r\n */\r\n \n if (StuNumA % 2 == 0)\n {\n Adesks = StuNumA/2;\n } else {\n Adesks = (StuNumA/2) + 1;\n }\n\n if (StuNumB % 2 == 0)\n {\n Bdesks = StuNumB/2;\n } else {\n Bdesks = (StuNumB/2) + 1;\n }\n\n if (StuNumC % 2 == 0)\n {\n Cdesks = StuNumC/2;\n } else {\n Cdesks = (StuNumC/2) + 1;\n }\n\n System.out.print(Adesks + Bdesks + Cdesks);\n \r\n // closing the scanner object\r\n scanner.close();\r\n }",
"default int[] runAll(String playerAChoice, String playerBChoice) throws IOException{\n\t\tfinal int[] result = new int[2];\n\t\tresult[0] = getNumber(true, playerAChoice);\n\t\tresult[1] = getNumber(false, playerBChoice);\n\t\treturn result;\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num, num1,num2;\n\t\tSystem.out.println(\"Eliga una opcion\");\n\t\tSystem.out.println(\"1.Primera opcion suma de dos numeros \");\n\t\tSystem.out.println(\"2.Segunda opcion resta de dos numeros\");\n\t\tSystem.out.println(\"3.Tercera opcion multiplicar dos numeros\");\n\t\tSystem.out.println(\"4.Cuarta opcion divison de dos numeros\");\n\t\tSystem.out.println(\"5.Quinta opcion factorial de un numero\");\n\n\t\tnum=sc.nextInt();\n\t\tif (num==1){\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tSystem.out.println(\"Introduzca otro numero\");\n\t\t\tnum2=sc.nextInt();\n\t\t\tsuma(num,num1,num2);\n\t\n\t\t}\n\t\tif (num==2) {\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tSystem.out.println(\"Introduzca otro numero\");\n\t\t\tnum2=sc.nextInt();\n\t\t\tresta(num,num1,num2);\n\t\t\t\n\t\t}\n\t\tif (num==3) {\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tSystem.out.println(\"Introduzca otro numero\");\n\t\t\tnum2=sc.nextInt();\n\t\t\tmultiplicacion(num,num1,num2);\n\t\t\t\n\t}\n\t\tif (num==4) {\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tSystem.out.println(\"Introduzca otro numero\");\n\t\t\tnum2=sc.nextInt();\n\t\t\tdivision(num,num1,num2);\n\t}\n\t\tif (num==5) {\n\t\t\tSystem.out.println(\"Introduzca un numero\");\n\t\t\tnum1=sc.nextInt();\n\t\t\tfactorial(num1);\n\t\t\t\n\t\t}\n\t}",
"@Override\n public double calculate(double input)\n {\n return input/getValue();\n }",
"public static void main(String[] args) {\n \n\t Scanner getStats = new Scanner(System.in);\n\t \n\t String userAtBats = null;\n\t String userResult = null;\n\t ArrayList<Integer> results = new ArrayList<>();\n\t \n\t int totalBases = 0;\n\t int totalHits = 0;\n\n\t float battingAvg = 0.0f;\n\t float slugPercent = 0.0f;\n\t \n\t \n\t System.out.println(\"Welcome to the batting average and slugging percentage calculator!\\n\");\n\t System.out.println(\"Please enter the number of at bats: \");\n\t \n\t userAtBats = getStats.nextLine();\n\t int numAtBats = Integer.parseInt(userAtBats);\n\t \n\t for (int i = 0; i < numAtBats; i++) {\n\t \n\t System.out.println(\"Please enter a result (0 - 4) for at bat number \" + (i+1) + \":\");\n\t \n\t //exception for entering 0 - 4\n\t \n\t userResult = getStats.nextLine();\n\t results.add(Integer.parseInt(userResult));\n\t \n\t totalBases += results.get(i);\n\t }\n\t \n\t System.out.println(totalBases);\n\t \n\t \n\t}",
"public static void main(String[] args) \r\n {\r\n // TODO: Read the input from the user and call produceAnswer with an equation\r\n \tScanner in = new Scanner(System.in);\r\n \tString problem = in.nextLine();\r\n \tin.close();\r\n \tSystem.out.printf(\"Result: %s\" , produceAnswer(problem));\r\n }",
"public void getInput() {\r\n System.out.print(\"Is the car silent when you turn the key? \");\r\n setAnswer1(in.nextLine());\r\n if(getAnswer1().equals(YES)) {\r\n System.out.print(\"Are the battery terminals corroded? \");\r\n setAnswer2(in.nextLine());\r\n if(getAnswer2().equals(YES)){\r\n printString(\"Clean the terminals and try again\");\r\n }\r\n else {\r\n printString(\"The battery may be damaged.\\nReplace the cables and try again\");\r\n }\r\n\r\n }\r\n else {\r\n System.out.print(\"Does the car make a slicking noise? \");\r\n setAnswer3(in.nextLine());\r\n if(getAnswer3().equals(YES)) {\r\n printString(\"Replace the battery\");\r\n }\r\n else {\r\n System.out.print(\"Does the car crank up but fail to start? \");\r\n setAnswer4(in.nextLine());\r\n if(getAnswer4().equals(YES)) {\r\n printString(\"Check spark plug connections.\");\r\n }\r\n else{\r\n System.out.print(\"Does the engine start and then die? \");\r\n setAnswer5(in.nextLine());\r\n if(getAnswer5().equals(YES)){\r\n System.out.print(\"Does your care have fuel injection? \");\r\n setAnswer6(in.nextLine());\r\n if(getAnswer6().equals(YES)){\r\n printString(\"Get it in for service\");\r\n }\r\n else{\r\n printString(\"Check to insure the chock is opening and closing\");\r\n }\r\n }\r\n else {\r\n printString(\"This should be impossible\");\r\n }\r\n }\r\n }\r\n\r\n }\r\n\r\n\r\n\r\n }",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (scanner.hasNext()) {\n\t\t\tint n = scanner.nextInt();\n\t\t\tint able = scanner.nextInt();\n\t\t\tint sum = able;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tint bi = scanner.nextInt();\n\t\t\t\tif (bi <= sum) {\n\t\t\t\t\tsum += bi;\n\t\t\t\t} else {\n\t\t\t\t\tsum += maxCommonDivisor(sum, bi);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(sum + \"\");\n\t\t}\n\t\tscanner.close();\n\t}",
"public static void take_inputs(){\n\t\tScanner in = new Scanner(System.in);\n\t\tSystem.out.println(\"Input the ideal restaurant attributes:\");\n\t\tSystem.out.print(\"Cheap: \"); cheap = in.nextFloat();\n\t\tSystem.out.print(\"Nice: \"); nice = in.nextFloat();\n\t\tSystem.out.print(\"Traditional: \"); traditional = in.nextFloat();\n\t\tSystem.out.print(\"creative: \"); creative = in.nextFloat();\n\t\tSystem.out.print(\"Lively: \"); lively = in.nextFloat();\n\t\tSystem.out.print(\"Quiet: \"); quiet = in.nextFloat();\n\t\t\n\t\tSystem.out.println(\"Input the attributes weights:\");\n\t\tSystem.out.print(\"Weight for Cheap: \"); wt_cheap = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Nice: \"); wt_nice = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Traditional: \"); wt_traditional = in.nextFloat();\n\t\tSystem.out.print(\"Weight for creative: \"); wt_creative = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Lively: \"); wt_lively = in.nextFloat();\n\t\tSystem.out.print(\"Weight for Quiet: \"); wt_quiet = in.nextFloat();\n\t}",
"public static void main(String[] args) {\r\n // calculate how much it would cost to purchase different quantities of computer parts\n String name;\n System.out.println(\"Welcome! Enter which computer parts you would like to purchase along with a quantity:\");\n System.out.println(\"How many Chromebook Chargers would you like?:\");\n // Creates a Scanner used for input\n Scanner input = new Scanner(System.in);\n int chromebookCharger = input.nextInt();\n\n\n System.out.println(\"How many Replacement Motherboards would you like?:\"); \n int replacementMotherboard = input.nextInt();\n \n System.out.println(\"How many Computer Mouses would you like?:\");\n int computerMouse = input.nextInt();\n\n double Subtotal = (chromebookCharger*34.99 + replacementMotherboard*127.50 + computerMouse*18.00);\n\n double Tax = (1.13);\n\n // declare and calculate the quotient\n System.out.println(Subtotal*1.13);\n\n\n\n \r\n \r\n }",
"public static void main(String[] args) {\n Calculator calc=new Calculator();\r\n double operand1,operand2,result=0;\r\n operand1=calc.getOperand1();\r\n operand2=calc.getOperand2();\r\n String op;\r\n op=calc.getOperator();\r\n try\r\n {\r\n \r\n switch(op)\r\n {\r\n case \"+\": Add add=new Add();\r\n result=add.doOperation(operand1, operand2);\r\n break;\r\n case \"-\": Subract sub=new Subract();\r\n result=sub.doOperation(operand1, operand2);\r\n break;\r\n case \"*\": Multiply mul=new Multiply();\r\n result=mul.doOperation(operand1, operand2);\r\n break;\r\n case \"/\": Division div =new Division();\r\n if(operand2==0)\r\n {\r\n \tthrow new ArithmeticException();\r\n }\r\n result=div.doOperation(operand1, operand2);\r\n break;\r\n default: throw new Exception(\"Invalid operation\");\r\n }\r\n \r\n\t }\r\n catch(ArithmeticException e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n }\r\n \r\n catch(Exception e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n } \r\n finally\r\n {\r\n \t System.exit(0);\r\n }\r\n System.out.print(result);\r\n \r\n}",
"public static void main(String[] args) {\n\t\tm_threePlaces.setRoundingMode(RoundingMode.HALF_UP);\n\t\tm_onePlace.setRoundingMode(RoundingMode.HALF_UP);\n\t\tm_noPlaces.setRoundingMode(RoundingMode.HALF_UP);\n\t\t\n\t\t/*\n\t\t * Integer Math Portion\n\t\t * Takes two integers in, outputs various operations performed on those inputs\n\t\t */\n\t\t\n\t\tSystem.out.println(\"Please Enter 2 Numbers For Integer Mathematics:\");\n\t\t\n\t\t//gets first integer value\n\t\tSystem.out.print(\"Integer Number 1: \");\n\t\tm_int1 = ScannerUtils.readInt(m_input);\t\n\t\t\n\t\t//gets second integer value\n\t\tSystem.out.print(\"Integer Number 2: \");\n\t\tm_int2= ScannerUtils.readInt(m_input); \t\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t//prints result of addition\n\t\tSystem.out.println(\"Addition: \" + m_int1 + \" + \" + m_int2 + \" = \" + (m_int1 + m_int2) + \"\"); \t\t\t\n\t\t//prints result of subtraction\n\t\tSystem.out.println(\"Subtraction: \" + m_int1 + \" - \" + m_int2 + \" = \" + (m_int1 - m_int2) + \"\");\t\t\t\n\t\t//prints result of multiplication\n\t\tSystem.out.println(\"Multiplication: \" + m_int1 + \" * \" + m_int2 + \" = \" + (m_int1 * m_int2) + \"\");\t\t\n\t\t\n\t\t//finds the result and remainder when the two numbers when divided\n\t\tif (m_int2 != 0) {\n\t\t\tm_div = m_int1 / m_int2; \t\n\t\t\tm_rem = m_int1 % m_int2;\t\n\t\t}\n\t\t\n\t\t//prints result of integer division\n\t\tSystem.out.println(\"Integer Division (No Remainder): \" + m_int1 + \" / \" + m_int2 + \" = \" + m_div + \"\");\t\n\t\t//prints remainder after integer division\n\t\tSystem.out.println(\"Remainder After Integer Division: \" + m_rem + \"\");\t\t\t\t\t\t\t\t\t\n\t\t//prints as a mixed number in reduced form\n\t\tSystem.out.println(\"As A Fraction: \" + m_int1 + \" / \" + m_int2 + \" = \" + m_div + \" and \" + m_rem/findGCD(m_rem, m_int2) + \" / \" + m_int2/findGCD(m_rem, m_int2) + \"\");\t\n\t\t//prints the absolute value of m_int1\n\t\tSystem.out.println(\"The Absolute Value Of Integer Number 1 Is: \" + Math.abs(m_int1) + \"\");\n\t\t//prints the square of int2\n\t\tSystem.out.println(\"Integer Number 2 Raised To The Exponent 2 Is: \" + (int) Math.pow(m_int2, 2) + \"\");\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t/*\n\t\t * Decimal Math Portion\n\t\t * Takes two doubles in and outputs the results of various operations performed on those inputs\n\t\t */\n\t\t\n\t\tSystem.out.println(\"Please Enter 2 Numbers For Decimal Mathematics:\");\n\t\t\n\t\t//gets first integer value\n\t\tSystem.out.print(\"Decimal Number 1: \");\n\t\tm_d1 = ScannerUtils.readDouble(m_input);\t\n\t\t\n\t\t//gets second integer value\n\t\tSystem.out.print(\"Decimal Number 2: \");\n\t\tm_d2= ScannerUtils.readDouble(m_input); \t\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t//prints result of addition\n\t\tSystem.out.println(\"Addition: \" + m_d1 + \" + \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 + m_d2) + \"\"); \t\t\t\n\t\t//prints result of subtraction\n\t\tSystem.out.println(\"Subtraction: \" + m_d1 + \" - \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 - m_d2) + \"\");\t\t\t\n\t\t//prints result of multiplication\n\t\tSystem.out.println(\"Multiplication: \" + m_d1 + \" * \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 * m_d2) + \"\");\t\t\n\t\t//prints result of division\n\t\tSystem.out.println(\"Division: \" + m_d1 + \" / \" + m_d2 + \" = \" + m_threePlaces.format(m_d1 / m_d2) + \"\");\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\t//prints square root of first double, can handle negative numbers too by outputting imaginary numbers\n\t\tSystem.out.println(\"The Square Root Of \" + m_d1 + \" (Three Decimal Places) = \" + m_threePlaces.format(Math.sqrt(Math.abs(m_d1))) + (m_d1 >= 0 ? \"\" : \" i\") + \"\");\n\t\t//prints square root of second double, can handle negative numbers too by outputting imaginary numbers\n\t\tSystem.out.println(\"The Square Root Of \" + m_d2 + \" (One Decimal Place) = \" + m_onePlace.format(Math.sqrt(Math.abs(m_d2))) + (m_d2 >= 0 ? \"\" : \" i\") + \"\");\n\t\t//prints the first double rounded\n\t\tSystem.out.println(\"The Value \" + m_d1 + \" Rounded Is \" + m_noPlaces.format(m_d1) + \"\");\n\t\tSystem.out.println(\"The Value \" + m_d2 + \" Rounded Is \" + m_noPlaces.format(m_d2) + \"\");\n\t}",
"public static void main(String[] args) {\n\t\tScanner input=new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter two numbers:\");\r\n\t\tint s1=input.nextInt();\r\n\t\tint s2=input.nextInt();\r\n\t\tSystem.out.println(\"sum of two numbers is: \"+(s1+s2));\r\n\t\tSystem.out.println(\"multiplication of two numbers is: \"+(s1*s2));\r\n\t\tSystem.out.println(\"Average of two numbers is: \"+(s1+s2)/2);\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\tInterest obj = Calculator.getInterest();\r\n\t\tSystem.out.println(obj.calcSimple(5000, 2, 4));\r\n\t\tSystem.out.println(obj.calcCompound(5000, 4, 3));\r\n\t\tSystem.out.println(obj.convertToBinary(12));\r\n\t\tSystem.out.println(obj.doSum(6,8,15));\r\n\t\tSystem.out.println(obj.doAvg(14,65,87));\r\n\t}",
"public static void main(String[] args) {\n\t\tMyCalc2sub mc = new MyCalc2sub();\r\n\t\t\t\t\r\n\t\tint a = mc.scanNum();\r\n\t\tint b = mc.scanNum();\t\t\r\n\t\tmc.add(a, b);\r\n\r\n\t}",
"public static void main(String[] args) {\n Scanner userInput = new Scanner(System.in);\n System.out.println(\"Please enter 3 numbers.\");\n int a = userInput.nextInt();\n int b = userInput.nextInt();\n int c = userInput.nextInt();\n\n System.out.println(\"Myavarage is\" + findAvarage(a, b, c));\n }",
"public static void main(String[] args) \r\n\t{\n\t\t\tSystem.out.printf( \"%s\\n%s\\n\",\"5+2\",\"5+9\" ); \r\n\t\t\tScanner input = new Scanner( System.in ); // takes input\r\n\t\t\t\r\n\t\t\tint sum1; // user input of sum1\r\n\t\t\tint sum2; // user input of sum2\r\n\t\t\tint number1; // sum of first eq\r\n\t\t\tint number2; // sum of second eq\r\n\t\t\t\r\n\t\t\tnumber1 = 7; //true sum\r\n\t\t\tnumber2 = 14; //true sum\r\n\t\t\t\r\n\t\tCase1:\r\n\t\t\tSystem.out.print( \"Enter first sum: \" );\r\n\t\t\tsum1 = input.nextInt();\r\n\t\t\tif ( number1 == sum1 )\r\n\t\t\t\tSystem.out.printf(\"That is correct\\n\"+\"%d == %d\\n\", number1, sum1 );\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.print( \"Incorrect, please try again\\n\" );\r\n\t\t\t}\r\n\t\tCase2:\r\n\t\t\tSystem.out.print( \"Enter second sum: \" );\r\n\t\t\tsum2 = input.nextInt();\r\n\t\t\tif ( number2 == sum2 )\r\n\t\t\t\tSystem.out.printf(\"That is correct\\n\"+\"%d == %d\\n\", number2, sum2 );\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.print( \"Incorrect, please try again\\n\" );\r\n\t\t\t}\r\n\t\t\t}",
"public static void main(String[] args) throws IOException\n {\n boolean metric = false;\n double[] gravity = new double[8];\n double[] weightOnPlanets = new double[8];\n double weight = 0.0;\n String[] names = {\"Mercury\", \"Venus\", \"Earth\", \"Mars\", \"Jupiter\", \"Saturn\", \"Uranus\", \"Neptune\"};\n String input = \"\";\n \n \n Scanner in = new Scanner(System.in);\n \n \n //INPUT AND DATA MANIPULATIONS\n System.out.print(\"Please enter your weight on Earth: \");\n weight = in.nextDouble();\n System.out.print(\"Is your weight in kilograms [Y/N]: \");\n input = in.next();\n \n //Since metric is already false, I don't need an else statement here\n if(input.substring(0,1).equalsIgnoreCase(\"Y\"))\n {\n metric = true;\n }\n \n gravity = getGravity(gravity);\n weightOnPlanets = weightOnPlanets(weightOnPlanets, metric, gravity, weight);\n output(gravity, metric, weightOnPlanets, names);\n }",
"public static void main(String args[])\r\n {\r\n System.out.println(\"Enter two fractions, a numerator, and a denominator\"\r\n + \", separated by new lines.\");\r\n Scanner stdin = new Scanner(System.in);\r\n Fraction f1 = new Fraction(stdin.nextLine());\r\n Fraction f2 = new Fraction(stdin.nextLine());\r\n int numerator = Integer.parseInt(stdin.nextLine());\r\n int denominator = Integer.parseInt(stdin.nextLine());\r\n \r\n Fraction f4 = new Fraction(f1.toString());\r\n Fraction f5 = new Fraction(f1.toString());\r\n f1.add(f2);\r\n System.out.println(\"First two fractions added gives: \" + f1.toString());\r\n f4.subtract(f2);\r\n System.out.println(\"First two fractions subtracted gives: \" + \r\n f4.toString());\r\n f5.multiply(f2);\r\n System.out.println(\"First two fractions multiplied gives: \" + \r\n f5.toString());\r\n f2.setNumerator(numerator);\r\n f2.setDenominator(denominator);\r\n System.out.println(\"Inputted numerator and denominator gives: (\" + \r\n f2.getNumerator() + \"/\" + f2.getDenominator() + \")\\n\");\r\n \r\n System.out.println(\"end of testbed\");\r\n }",
"public void main()throws IOException\n {\n BufferedReader br= new BufferedReader( new InputStreamReader(System.in));\n System.out.println(\" 1>. Enter plus symbol for addition \");\n System.out.println(\" 2>. Enter minus symbol for substraction \");\n System.out.println(\" 3>. Enter star symbol for multiplication \");\n System.out.println(\" 4>. Enter backslash symbol for division \");\n System.out.println(\" 5>. Enter percentage symbol for remainder \");\n System.out.println(\" Enter the user choice \");\n String s;\n s=br.readLine();\n char ch=s.charAt(0);\n double n1,n2;\n switch(ch)\n {\n case '+':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double add=n1+n2;\n System.out.println(\" The total of the two is \"+add);\n break;\n case '-':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double sub=n1-n2;\n System.out.println(\" The difference of the two is \"+sub);\n break;\n case '*':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double mul=n1*n2;\n System.out.println(\" The product of the two is \"+mul);\n break;\n case '/':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double div=n1/n2;\n System.out.println(\" The quotient of the two is \"+div);\n break;\n case '%':\n n1=Double.parseDouble(br.readLine());\n n2=Double.parseDouble(br.readLine());\n double rem=n1%n2;\n System.out.println(\" The remainder of the two is \"+rem);\n break;\n default:\n System.out.println(\" Wrong Choice\");\n break;\n }\n }",
"public static void main(String[] args) {\n\n sc = new Scanner(System.in);\n int a = 0;\n int b = 0;\n int c = 0;\n String d = \"\";\n\n while (true) {\n System.out.println(\"What do you want to calculate?\"\n + \"\\n1: Modulo\"\n + \"\\n2: Euklid\"\n + \"\\n3: \"\n );\n\n int input = sc.nextInt();\n\n switch (input)\n {\n case 1:\n System.out.println(\"Modulo Operation Active\");\n System.out.print(\"Please enter a: \");\n a = sc.nextInt();\n System.out.print(\"Please enter b: \");\n b = sc.nextInt();\n\n // For at find sfd af to tal.\n sfd(a, b);\n break;\n case 2:\n System.out.println(\"Euklids algoritme Active\\n\");\n System.out.print(\"Please enter a: \");\n a = sc.nextInt();\n System.out.print(\"Please enter b: \");\n b = sc.nextInt();\n System.out.print(\"Hvad sfd skal være lig: \");\n c = sc.nextInt();\n euklid(a, b, c);\n break;\n case 3:\n\n default:\n System.out.println(\"This is not a calculator \\n\");\n break;\n }\n\n }\n\n }",
"public static void main(String[] args) {\n\t\tcalculator c=new calculator();\n\t\tc.calculate(2, 3);\n\t\tscientific_calculator sc=new scientific_calculator();\n\t\tsc.calculate(2, 3);\n\t\thybrid_calculator hc=new hybrid_calculator();\n\t\thc.calculate(2, 3);\n\n\t}",
"public static void main(String args[])\r\n {\r\n Scanner scanner = new Scanner(System.in);\r\n\r\n System.out.print(\"Enter base: \");\r\n int base = scanner.nextInt(); // get base from user\r\n\r\n System.out.print(\"Enter exponent: \");\r\n int exponent = scanner.nextInt(); // get exponent from user\r\n\r\n // raise to exponent if appropriate\r\n if (exponent > 0)\r\n {\r\n int result = integerPower(base, exponent);\r\n System.out.printf(\"Value is %d%n\", result);\r\n }\r\n else\r\n System.out.println(\"Invalid Exponent.\");\r\n }",
"public static void main(String[] args) {\n\t\tScanner teclado = new Scanner(System.in);\r\n\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.println(\"CALCULADORA\");\r\n\t\t\tSystem.out.println(\"1.- SUMA.\");\r\n\t\t\tSystem.out.println(\"2.- RESTA.\");\r\n\t\t\tSystem.out.println(\"3.- MULTIPLICACION\");\r\n\t\t\tSystem.out.println(\"4.- DIVISION\");\r\n\t\t\tSystem.out.println(\"5.- RAIZ CUADRADA\");\r\n\t\t\tSystem.out.println(\"6.- AREA DE UN CÍRCULO\");\r\n\t\t\tSystem.out.println(\"7.- AREA DE UN TRIANGULO\");\r\n\t\t\tSystem.out.println(\"0.- SALIR\");\r\n\t\t\tSystem.out.println(\"INTRODUZCA OPCION\");\r\n\r\n\t\t\tint opcion = teclado.nextInt();\r\n\t\t\tSystem.out.println(\"Introduzca valor a:\");\r\n\t\t\tint a = teclado.nextInt();\r\n\t\t\tSystem.out.println(\"Introduzca valor b:\");\r\n\t\t\tint b = teclado.nextInt();\r\n\r\n\t\t\tswitch (opcion) {\r\n\t\t\tcase 1:\r\n\t\t\t\tSystem.out.println(\"SUMA:\");\r\n\t\t\t\tSystem.out.println(OperacionesBasicas.suma(a, b));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tSystem.out.println(\"RESTA:\");\r\n\t\t\t\tSystem.out.println(OperacionesBasicas.resta(a, b));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tSystem.out.println(\"MULTIPLICACION:\");\r\n\t\t\t\tSystem.out.println(OperacionesBasicas.multiplicacion(a, b));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tSystem.out.println(\"DIVISION:\");\r\n\t\t\t\tSystem.out.println(OperacionesBasicas.division(a, b));\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 5:\r\n\t\t\t\tSystem.out.println(\"RAIZ CUADRADA\");\r\n\t\t\t\tSystem.out.println(OperacionesBasicas.raizCuadrada(a));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 6:\r\n\t\t\t\tSystem.out.println(\"ÁREA DE UN CÍRCULO:\");\r\n\t\t\t\tSystem.out.println(OperacionesBasicas.areaCirculo(a, b));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 7:\r\n\t\t\t\tSystem.out.println(\"AREA DEL TRIANGULO\");\r\n\t\t\t\tSystem.out.println(OperacionesBasicas.areatri(a, b));\r\n\t\t\t\tbreak;\r\n\t\t\tcase 0:\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) {\r\n MyInputReader in = new MyInputReader(System.in);\r\n out = new PrintWriter(new BufferedOutputStream(System.out));\r\n\r\n String s = in.next();\r\n char c[] = s.toCharArray();\r\n \r\n int ans = 0, n = s.length();\r\n \r\n if(n%2 == 1) ans = -1;\r\n else {\r\n int l = 0, r = 0, u = 0, d = 0;\r\n for(int i=0; i<n; i++) {\r\n if(c[i] == 'L') l++;\r\n if(c[i] == 'R') r++;\r\n if(c[i] == 'U') u++;\r\n if(c[i] == 'D') d++;\r\n }\r\n int ud = Math.abs(u -d);\r\n int rl = Math.abs(r - l);\r\n if(ud % 2 == 1) {\r\n ans = 1 + (ud/2) + (rl/2);\r\n }\r\n else\r\n ans = (ud/2) + (rl/2);\r\n }\r\n \r\n out.println(ans);\r\n out.close();\r\n }",
"public static void main(String[] args){\n// int[] testArray = {82, 95, 71, 6, 34};\n//\n// int min = Aggregate.min(testArray);\n// int max = Aggregate.max(testArray);\n// int sum = Aggregate.sum(testArray);\n// double avg = Aggregate.average(testArray);\n// double div = Aggregate.standardDeviation(testArray);\n//\n// System.out.println(min); // 6\n// System.out.println(max); //95\n// System.out.println(sum); //288\n// System.out.println(avg); //57.6\n// System.out.println(div); //36.719\n\n final int ROCK = 1;\n final int SCISSORS = 2;\n final int PAPER = 3;\n\n int computerDecision = getComputerChoice();\n int userDecision = getUserChoice();\n\n System.out.print(\"user: \" + printChoice(userDecision));\n switch(userDecision) {\n\n case ROCK:\n if(computerDecision == ROCK){\n System.out.println(\"That's a Tie!\");\n }\n else if(computerDecision == SCISSORS ){\n System.out.println(\"Congrats! You won\");\n }\n else{\n System.out.println(\"Sorry,You lost!\");\n }\n break;\n case SCISSORS:\n if(computerDecision == ROCK){\n System.out.println(\"Sorry,You lost!\");\n }\n else if(computerDecision == SCISSORS ){\n System.out.println(\"That's a Tie!\");\n }\n else{\n System.out.println(\"Congrats! You won\");\n }\n break;\n case PAPER:\n if(computerDecision == ROCK){\n System.out.println(\"Congrats! You won\");\n }\n else if(computerDecision == SCISSORS ){\n System.out.println(\"Sorry,You lost!\");\n }\n else{\n System.out.println(\"That's a Tie!\");\n }\n break;\n\n default:\n\n }\n\n\n }",
"public static double method1(double[] numbers, Scanner input) {\r\n double sum = 0;\r\n System.out.print(\"enter the numbers: \");\r\n for (int i = 0; i < numbers.length; i++) {\r\n numbers[i] = input.nextDouble();\r\n sum += numbers[i];\r\n }\r\n\r\n return (sum / numbers.length);\r\n }",
"public static void main(String[] args) {\n\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tInteger primeraCalificacion = 0;\n\t\tInteger segundaCalificacion = 0;\n\t\tInteger terceraCalificacion = 0;\n\t\tInteger media = 3;\n\t\tDouble resultado;\n\n\t\tSystem.out.println(\"Introduzca la primera calificacion\");\n\t\tprimeraCalificacion = scanner.nextInt();\n\n\t\tSystem.out.println(\"Introduzca la primera calificacion\");\n\t\tsegundaCalificacion = scanner.nextInt();\n\n\t\tSystem.out.println(\"Introduzca la primera calificacion\");\n\t\tterceraCalificacion = scanner.nextInt();\n\n\t\tresultado = Math.floor((double) (primeraCalificacion\n\t\t\t\t+ segundaCalificacion + terceraCalificacion) / media);\n\t\tSystem.out.println(\"Su nota final es: \" + resultado);\n\t\tscanner.close();\n\n\t\tSystem.out.println(\"Hasta luego!\");\n\n\t}",
"public static void main(String[] args) {\n\t\ttry {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString inp = in.readLine();\n\t\t\n\t\twhile(!inp.isEmpty()) \n\t\t{\n\t\t\tint testCases = Integer.parseInt(inp);\n\t\t\twhile(testCases>0)\n\t\t\t{\n\t\t\t\tint inp1 = Integer.parseInt(in.readLine());\n\t\t\t\tfloat exprsn = (((((inp1*567)/9)+7492)*235)/47) - 498;\n\t\t\t\tint exprsnInt = (int) (exprsn/10);\n\t\t\t\tSystem.out.println(Math.abs((exprsnInt%10)));\n\t\t\t\ttestCases--;\n\t\t\t}\n\t\t}\n\t}\n\tcatch(Exception e){\n\t\t\n\t}\n\n}"
]
| [
"0.6517285",
"0.6495779",
"0.64737725",
"0.6419239",
"0.63416463",
"0.63061845",
"0.6236217",
"0.6232093",
"0.62190175",
"0.6203521",
"0.61831987",
"0.61750895",
"0.61143786",
"0.6098281",
"0.6067651",
"0.60513616",
"0.60395056",
"0.6038721",
"0.6031005",
"0.6019341",
"0.60122424",
"0.5997577",
"0.5991499",
"0.5990214",
"0.5987112",
"0.59835863",
"0.5980535",
"0.5970211",
"0.59632826",
"0.59519976",
"0.5951595",
"0.593929",
"0.59310436",
"0.5890683",
"0.5885009",
"0.5881062",
"0.5859311",
"0.5853991",
"0.5852558",
"0.5852085",
"0.5837874",
"0.58362496",
"0.5830164",
"0.58278173",
"0.5820047",
"0.5802941",
"0.5801882",
"0.57990396",
"0.5798672",
"0.5791421",
"0.5782506",
"0.57693595",
"0.57623374",
"0.57605904",
"0.5758103",
"0.5747879",
"0.57392836",
"0.5730613",
"0.5728661",
"0.57282835",
"0.57270247",
"0.5726819",
"0.5709717",
"0.5703433",
"0.57024306",
"0.56989354",
"0.5695098",
"0.5694767",
"0.56861424",
"0.5685926",
"0.5672444",
"0.5660965",
"0.56600106",
"0.5656588",
"0.5651753",
"0.56424224",
"0.5641221",
"0.5641179",
"0.563873",
"0.56330305",
"0.5623114",
"0.5621243",
"0.5621129",
"0.5616941",
"0.56090885",
"0.56088257",
"0.56065035",
"0.56060505",
"0.5604169",
"0.5599923",
"0.55993617",
"0.5598619",
"0.559426",
"0.55918807",
"0.55871826",
"0.55839986",
"0.5583008",
"0.55826306",
"0.5581102",
"0.55758107",
"0.5570906"
]
| 0.0 | -1 |
The Getters and Setters for our private variables. We are using this to again, ensure encapsulation of the variables. | public double getFirstVariable() {
return firstVariable;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }",
"public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }",
"protected void initVars() {}",
"@Override\n public boolean isPrivate() {\n return true;\n }",
"private void assignment() {\n\n\t\t\t}",
"@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}",
"protected Value() {\n flags = 0;\n num = null;\n str = null;\n object_labels = getters = setters = null;\n excluded_strings = included_strings = null;\n functionPartitions = null;\n functionTypeSignatures = null;\n var = null;\n hashcode = 0;\n }",
"private GlobalPrefs() {\n\t\tprops = new Properties();\n\t}",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private String getSomePrivateInfo() {\r\n \treturn \"private information of MySubject\";\r\n }",
"public void printPrivateVariables() {\n NestedTest outerClass = new NestedTest();\n System.out.println(outerClass.private_member_variable);\n //System.out.println(private_member_variable);\n //System.out.println(private_member_variable);\n }",
"private GameVariableRepository() {\r\n\t\tthis.playerTurn = 0;\r\n\t}",
"private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}",
"public void setupProperties() {\n // left empty for subclass to override\n }",
"private Rekenhulp()\n\t{\n\t}",
"public void setPrivate(Boolean isPrivate)\n {\n this.isPrivate = isPrivate;\n }",
"public void testing() {\n\t\tprotectedInstanceVariable = \"\";\n\t}",
"private DiffProperty() {\n\t\t// No implementation\n\t}",
"public int getAge(){\n return age;\n }",
"private stendhal() {\n\t}",
"public FieldModifierPropertyEditor() {\n super(Modifier.PUBLIC | Modifier.PROTECTED | Modifier.PRIVATE | Modifier.STATIC |\n Modifier.FINAL | Modifier.TRANSIENT | Modifier.VOLATILE);\n }",
"private AccessorModels() {\n // Private constructor to prevent instantiation\n }",
"public void setPublic()\n {\n ensureLoaded();\n m_flags.setPublic();\n setModified(true);\n }",
"public int getAge() {return age;}",
"public TradeVariables() { /*gets default values*/ }",
"private TigerData() {\n initFields();\n }",
"private Get() {}",
"private Get() {}",
"private Value() {\n\t}",
"private PropertiesHelper() {\n throw new AssertionError(\"Cannot instantiate this class\");\n }",
"private void initVars(){\n this.dice = new Dice();\n this.playing = true;\n this.currentPlayer = 0;\n this.turn = 0;\n this.xPlayers=new ArrayList<>(); \n this.players = new Player[4];\n this.diceRoller=true;\n this.xTokens=new ArrayList<>();\n this.winners=new ArrayList<>();\n this.computerPlayer= new Autoplay();\n this.gameResults = \"\";\n this.debug = false;\n }",
"private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }",
"@Override\n public boolean getAllowPrivateConstructors()\n {\n \treturn allowPrivateConstructors;\n }",
"private UserPrefernce(){\r\n\t\t\r\n\t}",
"private ReadProperty()\r\n {\r\n\r\n }",
"private SecurityConsts()\r\n\t{\r\n\r\n\t}",
"public void setAge(int age) { this.age = age; }",
"private PropertiesGetter() {\n // do nothing\n }",
"public static boolean canAccessFieldsDirectly(){\n return false; //TODO codavaj!!\n }",
"private Client() {\n solution_set = new HashSet<>();\n contentsMap = new HashMap<>();\n current_state = new HashSet<>();\n next_state = new HashSet<>();\n }",
"protected UserWordData() {\n\n\t}",
"@Test\n\tpublic void serializePrivateFieldsWithoutAnyGetterSetter() throws JsonProcessingException\n\t{\n\t\t// We do not have setter method in POJO class so can not set any value.\n\t\tEmployee_PrivateFieldsWithoutAnyGetterSetterMethods employee_PrivateFieldsWithoutAnyGetterSetterMethods = \n\t\t\t\tnew Employee_PrivateFieldsWithoutAnyGetterSetterMethods();\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\tString serializedJson = objectMapper.writerWithDefaultPrettyPrinter().writeValueAsString(employee_PrivateFieldsWithoutAnyGetterSetterMethods);\n\t\tSystem.out.println(serializedJson);\t\t\n\t}",
"private Store() {\n\t}",
"protected void fixateBindings()\r\n\t\t\t\tthrows IllegalArgumentException, IllegalAccessException,\r\n\t\t\t\tNoSuchFieldException, SecurityException {\n\t\t\tfor (Field field : getClass().getDeclaredFields()) {\r\n\t\t\t\t// relax private fields for reflection only\r\n\t\t\t\tfield.setAccessible(true);\r\n\t\t\t\t// search local -> global -> default for set value\r\n\t\t\t\tfield.set(this, evaluateField(field));\r\n\t\t\t}\r\n\t\t}",
"public Object get()\n {\n return m_internalValue;\n }",
"@java.lang.Override\n public int getAge() {\n return age_;\n }",
"@Test\n\tpublic static void testGetters() {\n\t\tCompoundMadeOfElementDTO idk = new CompoundMadeOfElementDTO(1, 3, 20);\n\t\tassertEquals(1, idk.getCompoundID());\n\t\tassertEquals(3, idk.getElementID());\n\t\tassertEquals(20, idk.getElementQuantity());\n\t}",
"protected HashSet getNoAccess(){\n return tester.noAccess;\n }",
"public int getAge()\r\n {\r\n return age;\r\n }",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"private Response() {\n initFields();\n }",
"@JsonIgnore\n public Boolean isPrivate()\n {\n return isPrivate;\n }",
"@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 }",
"private InternalStorage() {}",
"private PropertyHolder() {\n }",
"@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}",
"@Override\n\t/**\n\t * returns the visibility modifiers for the specific class\n\t * \n\t * @return visibility modifiers \n\t */\n\tpublic String getVisability() {\n\t\treturn visability;\n\t}",
"private FundInfo() {\n initFields();\n }",
"protected StockPrice() {\n\t\t// just for serializers\n\t}",
"private EclipsePrefUtils() {\n // Exists only to defeat instantiation.\n }",
"private Constants() {\n\t\tthrow new AssertionError();\n\t}",
"public double getStrong(){return this.aStrong;}",
"@Test\n\tpublic void testPublicInstanceVars() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.changes);\n\t\t/* OBSOLETE\n\t\tassertEquals(1.0,ip.pixelHeight,0.0);\n\t\tassertEquals(1.0,ip.pixelWidth,0.0);\n\t\tassertEquals(\"pixel\",ip.unit);\n\t\tassertEquals(\"pixel\",ip.units);\n\t\tassertFalse(ip.sCalibrated);\n\t\t*/\n\t}",
"@Override\n protected void updateProperties() {\n }",
"@Test\n\tpublic void testGetters() {\n\t\tEngine engine = new Engine(20);\n\t\tCoordinate point = new Coordinate(5,5);\n\t\tCoordinate playerLocation = engine.getMoveableObject(0).getLocation();\n\t\tint playerX = playerLocation.getX();\n\t\tint playerY = playerLocation.getY();\n\t\tassertEquals(\"failure - didn't create coordinate x-val\", 5, point.getX(), 0.0);\n\t\tassertEquals(\"failure - didn't create coordinate y-val\", 5, point.getY(), 0.0);\n\t\tassertEquals(\"failure - didn't get player's x coordinate correctly\", 3, playerX, 0.0);\n\t\tassertEquals(\"failure - didn't get player's y coordinate correctly\", 3, playerY, 0.0);\n\t\t}",
"public static void main(String[] args) {\n\t\tEncapsulation player1 = new Encapsulation(\"215356\");\n\t\tplayer1.setName(\"cedi\");\n\t\tplayer1.setAge(22);\n\t\t//player1.setIdNum(\"23\");\n\t\t\n\t//System.out.println(String.format(\"%s with id number:%s is %d year old %s\",player1.getName(),player1.getIdNum(),player1.getAge(),player1.getAdress()));\n // System.out.println(player1.age); age is private variable\n\t\t//System.out.println(player1.adress); //adress is not private\n\t}",
"protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t}",
"@SuppressWarnings(\"unused\")\n\tprivate LedgerInitProposalData() {\n\t}",
"public Object clone() {\n // No problems cloning here since private variables are immutable\n return super.clone();\n }",
"public RequestValues() {\n //mUserId = userId;\n }",
"final void getData() {\n\t\t//The final method can't be overriden\n\t}",
"@Test\n public void testGetters()\n {\n assertEquals(\"\",test.getPlayerName());\n assertEquals(\"UseCard\",test.toString());\n assertEquals(13,test.getCardID());\n }",
"private void checkNoGettersSetters() {\n if (getters != null || setters != null)\n throw new AnalysisException(\"Unexpected getter/setter value!\");\n }",
"private PlayerStateDataAccess() {\n }",
"public boolean isPrivate() {\n return isPrivate;\n }",
"private ApplicationConstants(){\n\t\t//not do anything \n\t}",
"public int getlife(){\r\n return life;\r\n}",
"public boolean isPrivate() {\n return false;\n }",
"private LevelConstants() {\n\t\t\n\t}",
"public int getAge()\n {\n return age;\n }",
"@java.lang.Override\n public int getAge() {\n return age_;\n }",
"private RoleData() {\n initFields();\n }",
"private mxPropertiesManager()\n\t{\n\t}",
"private ApiReleaseContractProperties innerProperties() {\n return this.innerProperties;\n }",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"private LocalParameters() {\n\n\t}",
"public double getLoY() {\r\n\treturn fieldLoY;\r\n}",
"private MetallicityUtils() {\n\t\t\n\t}",
"public final void resetSecurityVars() {\n String disable = getStr(\"DISABLE\");\n if (getVar(Str.MULTICLASS).equalsIgnoreCase(\"DISABLED\"))\n disable += \", CLASSES\";\n CMSecurity.setAnyDisableVars(disable);\n CMSecurity.setAnyEnableVars(getStr(\"ENABLE\"));\n CMSecurity.setDebugVars(getStr(\"DEBUG\"));\n CMSecurity.setSaveFlags(getStr(\"SAVE\"));\n }",
"public int getAge() {\r\n return age;\r\n }",
"protected SecurityObject() {\n\t\t// Used by JPA provider.\n\n\t\tLOGGER.debug(\"SecurityObject#co\");\n\t}",
"private Weapon() {\n\t\t\tname = \"\";\n\t\t\tdamage = 0;\n\t\t\tcrippleDamage = 0;\n\t\t\tflavors = new HashMap<>();\n\t\t}",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.514 -0500\", hash_original_method = \"E49204FD271E895B10D86A1AFEA21B04\", hash_generated_method = \"59B3C6A592AE63BEE2BC1CC1723B36DF\")\n \nprivate Settings() {}",
"protected void validateAndSetValues()\n\t\t{\n\t\t\tif (null == eventDispatcher)\n\t\t\t{\n\t\t\t\teventDispatcher = new DefaultEventDispatcher();\n\t\t\t}\n\t\t\tif (null == sessionAttributes)\n\t\t\t{\n\t\t\t\tsessionAttributes = new HashMap<String, Object>();\n\t\t\t}\n\t\t\tif (null == reconnectPolicy)\n\t\t\t{\n\t\t\t\treconnectPolicy = ReconnectPolicy.NO_RECONNECT;\n\t\t\t}\n\t\t\tcreationTime = System.currentTimeMillis();\n\t\t}",
"public int getAge() {\n\t \t return age; \n\t}",
"protected NodeProperties() {\r\n }",
"private TMCourse() {\n\t}",
"@Test\n public void testAccessors() { \n // Tests the accessor methods for student Jesse Oberstein.\n assertEquals(jesseOberstein.getStudentUsername(), \"joberste\");\n assertEquals(jesseOberstein.getFirstName(), \"Jesse\");\n assertEquals(jesseOberstein.getLastName(), \"Oberstein\");\n assertEquals(jesseOberstein.getAdvisor(), \"Mazor\");\n assertEquals(new Integer(jesseOberstein.getGradYear()),\n new Integer(2017));\n \n // Tests the accessor methods for student Kate Hutchinson.\n assertEquals(kateHutchinson.getStudentUsername(), \"klhutch\");\n assertEquals(kateHutchinson.getFirstName(), \"Kate\");\n assertEquals(kateHutchinson.getLastName(), \"Hutchinson\");\n assertEquals(kateHutchinson.getAdvisor(), \"Hughes\");\n assertEquals(new Integer(kateHutchinson.getGradYear()),\n new Integer(2016));\n \n // Tests the accessor methods for student Nathan Goodman\n assertEquals(nathanGoodman.getStudentUsername(), \"nmg149\");\n assertEquals(nathanGoodman.getFirstName(), \"Nathan\");\n assertEquals(nathanGoodman.getLastName(), \"Goodman\");\n assertEquals(nathanGoodman.getAdvisor(), \"Hughes\");\n assertEquals(new Integer(nathanGoodman.getGradYear()),\n new Integer(2017));\n }",
"public Book getBook() \t\t{ return this.myBook; }",
"public double getHiY() {\r\n\treturn fieldHiY;\r\n}"
]
| [
"0.66093785",
"0.6288829",
"0.5886285",
"0.5869999",
"0.5785741",
"0.5728579",
"0.56786245",
"0.5677237",
"0.56456065",
"0.5628751",
"0.5594432",
"0.5584945",
"0.55477905",
"0.5503753",
"0.54926986",
"0.5478483",
"0.5454968",
"0.5454427",
"0.54458904",
"0.5428317",
"0.5423369",
"0.5420212",
"0.5417043",
"0.541062",
"0.54055595",
"0.54018176",
"0.5398447",
"0.53940797",
"0.53940797",
"0.53761613",
"0.5369043",
"0.5368479",
"0.53642285",
"0.536276",
"0.5361902",
"0.5356516",
"0.5344011",
"0.53428835",
"0.5341507",
"0.533241",
"0.53207105",
"0.5317825",
"0.5312221",
"0.53120863",
"0.5297537",
"0.52902603",
"0.52887946",
"0.5277837",
"0.52643037",
"0.52611583",
"0.5253143",
"0.52481335",
"0.52431726",
"0.5239344",
"0.52378154",
"0.5236921",
"0.5233657",
"0.52302116",
"0.5224464",
"0.52236146",
"0.521631",
"0.52152544",
"0.52131486",
"0.52114475",
"0.520724",
"0.5204757",
"0.5199981",
"0.5199629",
"0.5198185",
"0.5195804",
"0.51957405",
"0.51948166",
"0.5190952",
"0.51896566",
"0.5189015",
"0.518321",
"0.51790094",
"0.5162291",
"0.51622564",
"0.5155668",
"0.5150667",
"0.51504564",
"0.5145297",
"0.5144877",
"0.51355594",
"0.51269615",
"0.5125287",
"0.5123899",
"0.5114143",
"0.5105014",
"0.5098076",
"0.50922287",
"0.5091196",
"0.5090052",
"0.50809914",
"0.5080345",
"0.50759125",
"0.5074696",
"0.5069322",
"0.50628614",
"0.50579417"
]
| 0.0 | -1 |
Copy a file from the asset folder in the testContext to the OUTPUT_PATH in the target context. | public static Uri copyFileFromTestToTargetCtx(Context testCtx, Context targetCtx, String filename) throws IOException {
String destinationFileName = String.format("blur-test-%s.png", UUID.randomUUID().toString());
File outputDir = new File(targetCtx.getFilesDir(),OUTPUT_PATH);
File outputFile = new File(outputDir, destinationFileName);
BufferedInputStream bis = new BufferedInputStream(testCtx.getAssets().open(filename));
BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream(outputFile));
byte[] buf = new byte[1024];
bis.read(buf);
do {
bos.write(buf);
} while (bis.read(buf) != -1);
bis.close();
bos.close();
return Uri.fromFile(outputFile);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void copyCoverageFile(String sourceResourceName, String targetFileName, WorkflowJob job) throws Exception {\n FilePath directory = ensureWorkspaceExists(job);\n\n FilePath dest = directory.child(targetFileName);\n org.apache.commons.io.IOUtils.copy(getClass().getResourceAsStream(sourceResourceName), dest.write());\n }",
"@Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n Path targetFile = this.currentTargetDirectory.resolve(file.getFileName());\n Files.copy(file, targetFile);\n logger.output(\"Copied file: \" + targetFile);\n return FileVisitResult.CONTINUE;\n }",
"private void copyFile( final File source, final File target )\n throws MojoExecutionException\n {\n if ( source.exists() == false )\n {\n throw new MojoExecutionException( \"Source file '\" + source.getAbsolutePath() + \"' does not exist!\" );\n }\n if ( target.exists() == true )\n {\n throw new MojoExecutionException( \"Target file '\" + source.getAbsolutePath() + \"' already existing!\" );\n }\n\n try\n {\n this.logger.debug( \"Copying file from '\" + source.getAbsolutePath() + \"' to \" + \"'\"\n + target.getAbsolutePath() + \"'.\" );\n PtFileUtil.copyFile( source, target );\n }\n catch ( PtException e )\n {\n throw new MojoExecutionException( \"Could not copy file from '\" + source.getAbsolutePath() + \"' to \" + \"'\"\n + target.getAbsolutePath() + \"'!\", e );\n }\n }",
"private File copyResources(String srcFileName, File sourceDir, File destinationDir) throws MojoExecutionException {\n File srcFile = new File(sourceDir.getAbsolutePath()+File.separator+srcFileName);\n if (srcFile.exists()) {\n getLog().info(\"Copying \"+srcFile.getName()+\"...\");\n try {\n File destFile = new File(destinationDir.getAbsolutePath()+File.separator+srcFile.getName());\n if (srcFile.isDirectory()) {\n FileUtils.copyDirectory(srcFile, destFile, false);\n } else {\n FileUtils.copyFile(srcFile, destFile, false);\n }\n return destFile;\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Error copying resource '\"+srcFile.getName()+\"'\", ex);\n }\n } else {\n getLog().warn(\"No source file '\"+srcFile.getName()+\"' to copy\");\n return null;\n }\n }",
"public void saveAsset(Context context, String sourceDirectory, @NonNull String filename) throws IOException {\n InputStream inputStream = context.getAssets().open(filename);\n File outFile = new File(sourceDirectory, filename);\n OutputStream outputStream = new FileOutputStream(outFile);\n copyFile(inputStream, outputStream);\n inputStream.close();\n outputStream.flush();\n outputStream.close();\n }",
"private static void copyFile(File scrFile, File file) {\n\t\r\n}",
"@Test(groups = \"Integration\")\n public void testCopyFileTo() throws Exception {\n File dest = Os.newTempFile(getClass(), \".dest.tmp\");\n File src = Os.newTempFile(getClass(), \".src.tmp\");\n try {\n Files.write(\"abc\", src, Charsets.UTF_8);\n host.copyTo(src, dest);\n assertEquals(\"abc\", Files.readFirstLine(dest, Charsets.UTF_8));\n } finally {\n src.delete();\n dest.delete();\n }\n }",
"void copyFile(String sourceFile, String destinationFile) throws IOException;",
"public void copyFile(String inputFile, String outputFile)\r\n\t{\r\n\t\tif(new File(inputFile).exists())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tInputStream in = new FileInputStream(inputFile);\r\n\t\t\t\tOutputStream out = new FileOutputStream(outputFile);\r\n\t\t\t\t// Transfer bytes from in to out\r\n\t\t\t\tbyte[] buf = new byte[1024];\r\n\t\t\t\tint length;\r\n\t\t\t\twhile ((length = in.read(buf)) > 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tout.write(buf, 0, length);\r\n\t\t\t\t}\r\n\t\t\t\tin.close();\r\n\t\t\t\tout.close();\r\n\t\t\t\tSystem.out.println(inputFile + \" file copied to \" + outputFile);\r\n\t\t\t\tLog.info(inputFile + \" file copied.\");\r\n\t\t\t}\r\n\t\t\tcatch(IOException e) \r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"@Test\n public void testCopyFile() throws Exception {\n System.out.println(\"copyFile with existing source image file\");\n String sourcePath = System.getProperty(\"user.dir\")+fSeparator+\"src\"+fSeparator+\"test\"+fSeparator+\n \"java\"+fSeparator+\"resources\"+fSeparator+\"testImg.jpg\";\n File source = new File(sourcePath);\n \n File dest = new File(folder.toString()+fSeparator+\"Images\");\n FilesDao instance = new FilesDao();\n boolean result;\n try{\n instance.copyFile(source, dest);\n File copiedFile = new File(dest+fSeparator+\"testImg.jpg\");\n if(copiedFile.exists())\n result = true;\n else\n result = false;\n }catch(Exception ex){\n result = false;\n }\n boolean expResult = true;\n assertEquals(\"Some message\",expResult,result);\n }",
"private static void copyFile(File in, File out)\n\t{\n\t\ttry\n\t\t{\n\t\t\tFileChannel inChannel = new\tFileInputStream(in).getChannel();\n\t\t\tFileChannel outChannel = new FileOutputStream(out).getChannel();\n\t\t\tinChannel.transferTo(0, inChannel.size(), outChannel);\n\t\t\tinChannel.close();\n\t\t\toutChannel.close();\t\t\t\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tDebug.e(\"RFO.copyFile(): \" + e);\n\t\t}\n\n\t}",
"void copyFile(String sourceFile, String destinationFile, boolean overwrite) throws IOException;",
"private void copyFromAssets(AssetManager manager, String asset,\n File fileLocation, boolean overwrite) {\n // Only write to file if it does not exist already\n if (fileLocation.exists() && !overwrite) {\n return;\n }\n\n // Create necessary directory structure\n if (!fileLocation.getParentFile().exists() && !fileLocation.getParentFile().mkdirs()) {\n throw new IllegalArgumentException(\"Could not create directory: \" + fileLocation.getParentFile().getPath());\n }\n Log.d(this.getClass().getSimpleName(), \"Writing asset file: \" + asset + \" to \"\n + fileLocation.getAbsolutePath());\n InputStream inStream;\n try {\n inStream = new BufferedInputStream(manager.open(asset,\n AssetManager.ACCESS_STREAMING));\n } catch (IOException e) {\n Log.w(this.getClass().getSimpleName(), \"Could not read asset file: \" + asset);\n // don't throw - it is ok to miss a file in the app bundle (asset manager used with\n // different file configurations), just don't install in that case\n return;\n }\n try {\n OutputStream outStream = new BufferedOutputStream(new FileOutputStream(fileLocation));\n byte[] buffer = new byte[10240]; // 10KB\n int length = 0;\n while ((length = inStream.read(buffer)) >= 0) {\n outStream.write(buffer, 0, length);\n }\n outStream.close();\n inStream.close();\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Could not write file to \" + fileLocation, e);\n }\n }",
"public void copyImageFile() throws IOException {\n Path sourcePath = imageFile.toPath();\n\n String selectFileName = imageFile.getName();\n\n Path targetPath = Paths.get(\"/Users/houumeume/IdeaProjects/Assignment2/image/\" + selectFileName);\n\n //copy the file to the new directory\n Files.copy(sourcePath, targetPath, StandardCopyOption.REPLACE_EXISTING);\n\n //update the imageFile to point to the new File\n imageFile = new File(targetPath.toString());\n }",
"void copyFile(File sourcefile, File targetfile) throws Exception {\n\t\tif(targetfile.exists()) targetfile.delete();\n\t\ttargetfile.createNewFile();\n\t\tFileChannel source = null;\n\t\tFileChannel target = null;\n\t\ttry{\n\t\t\tsource = new FileInputStream(sourcefile).getChannel();\n\t\t\ttarget = new FileOutputStream(targetfile).getChannel();\n\t\t\ttarget.transferFrom(source, 0, source.size());\n\t\t}\n\t\tfinally{\n\t\t\tif(source!=null) source.close();\n\t\t\tif(target!=null) target.close();\n\t\t}\n\t\ttargetfile.setLastModified(sourcefile.lastModified());\n\t}",
"private void copyFile(String source, String destination, Environment env) throws IOException, InvalidPathException {\n\t\tPath sourcePath = Paths.get(source);\n\t\tPath destinationPath = Paths.get(destination);\n\n\t\tif (sourcePath.equals(destinationPath)) {\n\t\t\tenv.writeln(\"The source and the destination can not be equal.\");\n\t\t\treturn;\n\t\t}\n\t\tif (!Files.exists(sourcePath)) {\n\t\t\tenv.writeln(\"The specified file does not exist.\");\n\t\t\treturn;\n\t\t}\n\t\tif (Files.isDirectory(sourcePath)) {\n\t\t\tenv.writeln(\"Copy command can not copy a directory.\");\n\t\t\treturn;\n\t\t}\n\t\tif (Files.isDirectory(destinationPath)) {\n\t\t\tdestinationPath = Paths.get(destinationPath.toString(), sourcePath.getFileName().toString());\n\t\t}\n\t\tif (Files.exists(destinationPath)) {\n\t\t\tenv.write(\n\t\t\t\t\t\"There already is a file with the same name at the specified destination. \\nDo you want to overwrite it? [y/n] \");\n\n\t\t\twhile (true) {\n\t\t\t\tString answer;\n\t\t\t\ttry {\n\t\t\t\t\tanswer = env.readLine().trim();\n\t\t\t\t} catch (ShellIOException ex) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (answer.equals(\"n\")) {\n\t\t\t\t\tenv.writeln(\"Operation canceled.\");\n\t\t\t\t\treturn;\n\t\t\t\t} else if (answer.equals(\"y\")) {\n\t\t\t\t\tenv.writeln(\"Operation confirmed.\");\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tenv.writeln(\"Invalid answer. Answer 'y' for 'yes' or 'n' for 'no'.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tBufferedInputStream inputStream = new BufferedInputStream(Files.newInputStream(sourcePath));\n\t\tBufferedOutputStream outputStream = new BufferedOutputStream(Files.newOutputStream(destinationPath));\n\t\twhile (true) {\n\t\t\tint b = inputStream.read();\n\t\t\tif (b == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\toutputStream.write(b);\n\t\t}\n\n\t\tinputStream.close();\n\t\toutputStream.close();\n\t}",
"final public VFile copyTo(VFile targetFile) throws VlException\n {\n //return (VFile)doCopyMoveTo(parentDir,null,false /*,options*/);\n return (VFile)this.getTransferManager().doCopyMove(this,targetFile,false); \n }",
"private void copyFile(String source, String destination) throws IOException {\n File inputFile = new File(source);\n File outputFile = new File(destination);\n\t\n BufferedInputStream in = new BufferedInputStream(\n\t\t\t\t new FileInputStream(inputFile));\n BufferedOutputStream out = new BufferedOutputStream(\n\t\t\t\t new FileOutputStream(outputFile));\n int c;\n\tbyte[] tmp = new byte[4096];\n\t\n while ((c = in.read(tmp, 0, 4096)) != -1)\n\t out.write(tmp, 0, c);\n\t\n in.close();\n out.close();\n }",
"private void copy(File src, File dst) throws IOException \r\n {\r\n InputStream in = new FileInputStream(src);\r\n OutputStream out = new FileOutputStream(dst);\r\n \r\n // Transfer bytes from in to out\r\n byte[] buf = new byte[1024];\r\n int len;\r\n while ((len = in.read(buf)) > 0) \r\n {\r\n out.write(buf, 0, len);\r\n }\r\n in.close();\r\n out.close();\r\n }",
"public int Copy(final String sSourceFile, final String sDestinationtFile, final int EXISITING_FILE_ACTION) throws Exception {\n OutputStream out = null;\n InputStream in = null;\n File fSrc = null;\n File fDest = null;\n File fDestDir = null;\n byte[] buf = null;\n int len = 0;\n int iFileCopied = 0;\n boolean bProcess = false;\n try {\n\n buf = new byte[4096];\n\n //reating source file object\n fSrc = new File(sSourceFile);\n if (!fSrc.exists()) {\n throw new Exception(\"Source File Does not exists!! :\" + sSourceFile);\n }\n\n //creating output file object\n fDest = new File(sDestinationtFile);\n\n //check for folder/directory\n if (fSrc.isDirectory()) {\n File[] fSubFiles = fSrc.listFiles();\n\n //creating destination directory\n if (!fDest.exists()) {\n fDest.mkdirs();\n }\n\n for (int i = 0; i < fSubFiles.length; i++) {\n String sSourceSubFile = sSourceFile + File.separator + fSubFiles[i].getName();\n String sDestinationtSubFile = sDestinationtFile + File.separator + fSubFiles[i].getName();\n\n iFileCopied = iFileCopied + Copy(sSourceSubFile, sDestinationtSubFile, EXISITING_FILE_ACTION);\n }\n\n //check for file \n } else {\n\n //creating input stream of source file\n in = new FileInputStream(fSrc);\n\n //check for destination file parent directory\n fDestDir = fDest.getParentFile();\n if (!fDestDir.exists()) {\n fDestDir.mkdirs();\n }\n\n //check for exisitng file\n //REPLACE EXISITNG FILE\n if (fDest.exists() && EXISITING_FILE_ACTION == FILE_REPLACE) {\n bProcess = true;\n out = new FileOutputStream(fDest);\n\n //APPEND EXISITNG FILE\n } else if (fDest.exists() && EXISITING_FILE_ACTION == FILE_APPEND) {//For Append the file.\n bProcess = true;\n out = new FileOutputStream(fDest, true);\n\n //COPY WITH TIMESTAMP WITH EXISITNG FILE\n } else if (fDest.exists() && EXISITING_FILE_ACTION == FILE_COPY_WITH_TIMESTAMP) {//For Append the file.\n bProcess = true;\n String sTimeStamp = fDest.lastModified() + \"_\";\n fDest = new File(fDest.getParent() + File.separator + sTimeStamp + fDest.getName());\n out = new FileOutputStream(fDest);\n\n //DO NOTHING EXISITNG FILE\n } else if (fDest.exists() && EXISITING_FILE_ACTION == FILE_DO_NOTHING) {//For Append the file.\n bProcess = false;\n\n //file does not exists\n } else if (!fDest.exists()) {\n bProcess = true;\n out = new FileOutputStream(fDest, true);\n\n }\n\n //loop to read buffer & copy in output file\n while ((len = in.read(buf)) > 0 && bProcess) {\n out.write(buf, 0, len);\n }\n\n iFileCopied = iFileCopied + 1;\n }\n\n return iFileCopied;\n } catch (Exception e) {\n throw e;\n } finally {\n try {\n in.close();\n } catch (Exception e) {\n }\n try {\n out.close();\n } catch (Exception e) {\n }\n in = null;\n out = null;\n fSrc = null;\n fDest = null;\n fDestDir = null;\n }\n }",
"public void CopySimFile() throws IOException {\n\t\t\n\t\tif(IsOutpathGiven) {\n\t\t\tString name = getSimulationName();\t\n\t\t\tint l = name.length();\n\t\t\tString sim_name = name.substring(0, l-7); // \"_FOLDER\" contains 7 character\n\t\t\tString txtfile = sim_name + \".txt\";\n\t\t\t\n\t\t\tFileSystem fileSys = FileSystems.getDefault();\n\t\t\tjava.nio.file.Path srcPath = fileSys.getPath(inpath + \"\\\\\" + txtfile);\n\t\t\tjava.nio.file.Path destPath = fileSys.getPath(outpath + \"\\\\\" + txtfile);\n\t\t\ttry {\t\t \n\t\t\t Files.copy(srcPath, destPath, StandardCopyOption.REPLACE_EXISTING);\n\t\t\t System.out.println(\"Succesfully Copied the simFile.\");\n\t\t\t \t\t \n\t\t\t } catch (IOException ioe) {\n\t\t\t ioe.printStackTrace();\n\t\t\t }\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Default simulation location already has the simFile.\");\n\t\t}\n\t\t\t\n\t}",
"public static void copyFile(String from, String to) throws IOException{\r\n Path src = Paths.get(from); // set path of source directory from parent function\r\n Path dest = Paths.get(to); // set path of destination directory from parent function\r\n Files.copy(src, dest); //inbuilt function to copy files\r\n \r\n }",
"public static void copyFile(File src, File dst) throws IOException {\n if (!src.exists()) {\n throw new IOException(\"Source file does not exist: \" + src);\n }\n \n String dstAbsPath = dst.getAbsolutePath();\n String dstDir = dstAbsPath.substring(0, dstAbsPath.lastIndexOf(File.separator));\n File dir = new File(dstDir);\n if (!dir.exists() && !dir.mkdirs()) {\n throw new IOException(\"Fail to create the directory: \" + dir.getAbsolutePath());\n }\n\n try (InputStream in = new FileInputStream(src); OutputStream out = new FileOutputStream(dst)) {\n\n // Transfer bytes from in to out\n byte[] buf = new byte[10240];\n int len;\n while ((len = in.read(buf)) > 0) {\n out.write(buf, 0, len);\n }\n } catch (IOException e) {\n logger.warn(\"Unable to copy file \" + e.getMessage(), e);\n throw new IOException(\"Unable to copy file \", e);\n }\n }",
"private static void copyFile(Path srcPath, Path destPath) throws IOException {\n try (FileWriter outputStream = new FileWriter(destPath.toFile().getAbsolutePath(), false);\n FileReader inputStream = new FileReader(srcPath.toFile().getAbsolutePath())) {\n int i;\n while ((i = inputStream.read()) != -1) {\n outputStream.write(toChars(i));\n }\n }\n }",
"public Path copie(String source, String destination) throws IOException {\n Path root = Paths.get(source);\n Path cible = Paths.get(destination);\n\n Path copy;\n copy = Files.copy(root, cible.resolve(root.getFileName()), StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.COPY_ATTRIBUTES);\n\n return copy;\n }",
"@Test\n public void testCopyFileUsingApacheCommonsIO() throws Exception {\n long start = System.nanoTime();\n CopyFile.copyFileUsingApacheCommonsIO(sourceFile, apacheDestFile);\n System.out.println(\"Time taken by apache using:\" + (System.nanoTime() - start) / 1000);\n }",
"@Override\n public void copyImageIntoAppDir(Context context) {\n try {\n mImagePath.create(context, \"newFile\", \".jpg\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n File destFile = mImagePath.getFile();\n\n// try {\n// Util.copyFile(srcFile, destFile);\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n\n String infoString = mImagePath.toString();\n\n Log.d(\"infoString \", \" \" + infoString);\n mContractview.showImageInfo(infoString);\n\n }",
"private void copyFiles() {\n if( !USE_EXTERNAL_FILES_DIR ) return;\n boolean ret = mFileUtil.copyFilesAssetToExternalFilesDir( FILE_EXT );\n if(ret) {\n showList();\n showToast(\"copy successful\");\n } else {\n showToast(\"copy faild\");\n }\n}",
"public static void copyFile(File src, File dst) throws IOException {\n InputStream in = new FileInputStream(src);\n OutputStream out = new FileOutputStream(dst);\n byte[] buf = new byte[1024];\n int len;\n while ((len = in.read(buf)) > 0) out.write(buf, 0, len);\n in.close();\n out.close();\n }",
"@Test\n public void testCopyFileUsingJavaFiles() throws Exception {\n long start = System.nanoTime();\n CopyFile.copyFileUsingJavaFiles(sourceFile, filesDestFile);\n System.out.println(\"Time taken by files using:\" + (System.nanoTime() - start) / 1000);\n }",
"@Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();",
"protected File copyURLToFile(String filename) throws IOException {\r\n\t\tURL deltaFileUrl = getClass().getResource(filename);\t\t\r\n\t\tFile tempFile = File.createTempFile(\"test\", \".dlt\");\r\n\t\t_tempFiles.add(tempFile);\r\n\t\tFileUtils.copyURLToFile(deltaFileUrl, tempFile);\t\t\r\n\t\treturn tempFile;\t\r\n\t}",
"public static void copyPath(Path source, Path target) {\n try {\n Files.copy(source, target);\n if (Files.isDirectory(source)) {\n try (Stream<Path> files = Files.list(source)) {\n files.forEach(p -> copyPath(p, target.resolve(p.getFileName())));\n }\n }\n } catch (IOException e) { e.printStackTrace(); }\n }",
"public static void copy(String owner, Path src, Path target) throws CWLException {\r\n final Path finalSrc = toFinalSrcPath(src);\r\n if (src.toFile().exists() && Files.isReadable(src)) {\r\n CopyOption[] options = new CopyOption[] {\r\n StandardCopyOption.COPY_ATTRIBUTES,\r\n StandardCopyOption.REPLACE_EXISTING\r\n };\r\n final Path finalTarget = toFinalTargetPath(src, target);\r\n if (!finalTarget.getParent().toFile().exists()) {\r\n logger.debug(\"mkdir \\\"{}\\\"\", finalTarget.getParent());\r\n mkdirs(owner, finalTarget.getParent());\r\n }\r\n logger.debug(\"copy \\\"{}\\\" to \\\"{}\\\"\", finalSrc, finalTarget);\r\n try {\r\n if (finalSrc.toFile().isDirectory()) {\r\n Files.walkFileTree(finalSrc, new FileVisitor<Path>() {\r\n @Override\r\n public FileVisitResult preVisitDirectory(Path dir,\r\n BasicFileAttributes attrs) throws IOException {\r\n Files.copy(dir, finalTarget.resolve(finalSrc.relativize(dir)),\r\n StandardCopyOption.COPY_ATTRIBUTES);\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\r\n Files.copy(file, finalTarget.resolve(finalSrc.relativize(file)),\r\n StandardCopyOption.COPY_ATTRIBUTES);\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {\r\n return FileVisitResult.CONTINUE;\r\n }\r\n\r\n @Override\r\n public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {\r\n throw exc;\r\n }\r\n });\r\n } else {\r\n Files.copy(finalSrc, finalTarget, options);\r\n }\r\n } catch (IOException e) {\r\n throw new CWLException(\r\n ResourceLoader.getMessage(\"cwl.io.copy.failed\",\r\n finalSrc.toString(),\r\n finalTarget.toString(),\r\n e.getMessage()),\r\n 255);\r\n }\r\n } else {\r\n throw new CWLException(ResourceLoader.getMessage(\"cwl.io.file.unaccessed\", finalSrc.toString()),\r\n 255);\r\n }\r\n }",
"public void copyFile(File src, File dst) throws IOException {\n File file = new File(dst + File.separator + src.getName());\n file.createNewFile();\n Log.i(\"pictureSelect\", \"Dest file: \" + file.getAbsolutePath());\n\n InputStream in = new FileInputStream(src);\n OutputStream out = new FileOutputStream(file);\n\n // Transfer bytes from in to out\n byte[] buf = new byte[1024];\n int len;\n while ((len = in.read(buf)) > 0) {\n out.write(buf, 0, len);\n }\n in.close();\n out.close();\n scanSD(file);\n }",
"private void executeCopyFiles( final File folderResources, final File folderJava, final File targetJavaAppStub,\n final File jarWithDependsSource )\n throws MojoExecutionException\n {\n this.logger.info( \"Copying files ...\" );\n\n final File jarWithDependsTarget = new File( folderJava, jarWithDependsSource.getName() );\n\n if ( JAVA_APP_STUB.exists() == false )\n {\n throw new MojoExecutionException( \"Could not find Java Application stub at: \"\n + JAVA_APP_STUB.getAbsolutePath() );\n }\n\n copyFile( JAVA_APP_STUB, targetJavaAppStub );\n copyFile( jarWithDependsSource, jarWithDependsTarget );\n\n if ( this.data.getAppIcon() != null )\n {\n copyFile( this.data.getAppIcon(), new File( folderResources, this.data.getAppIcon().getName() ) );\n }\n\n if ( this.data.getAdditionalResources() != null )\n {\n for ( int i = 0, n = this.data.getAdditionalResources().size(); i < n; i++ )\n {\n final String rsrc = (String) this.data.getAdditionalResources().get( i );\n\n final File source = new File( this.data.getBaseDirectory(), rsrc );\n final File target = new File( folderResources, source.getName() );\n\n copyFile( source, target );\n }\n }\n }",
"static void copyFile(File srcFile, File destFile) {\n\t\ttry {\n\t\t\tLong start = System.currentTimeMillis();\n\t\t\tdestFile.createNewFile();\n\t\t\tInputStream oInStream = new FileInputStream(srcFile);\n\t\t\tOutputStream oOutStream = new FileOutputStream(destFile);\n\n\t\t\t// Transfer bytes from in to out\n\t\t\tbyte[] oBytes = new byte[1024];\n\t\t\tint nLength;\n\t\t\tBufferedInputStream oBuffInputStream = \n\t\t\t\t\tnew BufferedInputStream( oInStream );\n\t\t\twhile ((nLength = oBuffInputStream.read(oBytes)) > 0) {\n\t\t\t\toOutStream.write(oBytes, 0, nLength);\n\t\t\t}\n\t\t\toInStream.close();\n\t\t\toOutStream.close();\n\t\t\tLong end = System.currentTimeMillis();\n\t\t\tSystem.out.println((end-start));\n\t\t} catch (IOException e) {\n\t\t\tlogger.info(\"Error in creating the excels :\" +e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void copyFileChannel(String inputFile, String outputFile) throws IOException {\n\t\tFileInputStream inputStream = new FileInputStream(inputFile);\n\t\tFileOutputStream outputStream = new FileOutputStream(outputFile);\n\n\t\tFileChannel inChannel = inputStream.getChannel();\n\t\tFileChannel outChannel = outputStream.getChannel();\n\n\t\tinChannel.transferTo(0, inChannel.size(), outChannel);\n\n\t\tinputStream.close();\n\t\toutputStream.close();\n\t}",
"@Override\n public TaskResult execute(CompilerContext context) {\n File intermediates = ExecutorUtils.createDir(context.getPaths().getBuildDir(), \"intermediates\");\n File resDir = ExecutorUtils.createDir(intermediates, \"res\");\n context.getPaths().setMergedResDir(ExecutorUtils.createDir(resDir, \"merged\"));\n context.getPaths().setTmpPackageName(new File(\n context.getPaths().getDeployDir().getAbsolutePath() + File.separator\n + context.getProject().getProjectName() + \"._ap\"));\n\n PngCruncher cruncher = new AaptCruncher(context.getResources().aapt(), null, null);\n if (!context.getComponentInfo().getExplodedAarLibs().mergeResources(\n context.getPaths().getMergedResDir(), context.getPaths().getResDir(), cruncher)) {\n return TaskResult.generateError(\"Could not merge resources\");\n }\n return TaskResult.generateSuccess();\n }",
"@SuppressWarnings(\"resource\")\r\n\tpublic static synchronized void copyFile(File source, File dest)\r\n\t\t\tthrows IOException {\r\n\t\tFileChannel srcChannel = null;\r\n\t\tFileChannel dstChannel = null;\r\n\t\ttry {\r\n\t\t\tsrcChannel = new FileInputStream(source).getChannel();\r\n\t\t\tdstChannel = new FileOutputStream(dest).getChannel();\r\n\t\t\tdstChannel.transferFrom(srcChannel, 0, srcChannel.size());\r\n\t\t} finally {\r\n\t\t\tsrcChannel.close();\r\n\t\t\tdstChannel.close();\r\n\t\t}\r\n\t}",
"final public VFile copyTo(VDir parentDir) throws VlException\n {\n //return (VFile)doCopyMoveTo(parentDir,null,false /*,options*/);\n return (VFile)this.getTransferManager().doCopyMove(this,parentDir,null,false); \n }",
"private void copyInputFile(String originalFilePath, String destinationFilePath) {\n String inputType = ((DataMapperDiagramEditor) workBenchPart.getSite().getWorkbenchWindow().getActivePage()\n .getActiveEditor()).getInputSchemaType();\n\n if (null != originalFilePath && null != destinationFilePath\n && (inputType.equals(\"XML\") || inputType.equals(\"JSON\") || inputType.equals(\"CSV\"))) {\n File originalFile = new File(originalFilePath);\n File copiedFile = new File(destinationFilePath);\n try {\n FileUtils.copyFile(originalFile, copiedFile);\n assert (copiedFile).exists();\n\t\t\t\tassert (Files.readAllLines(originalFile.toPath(), Charset.defaultCharset())\n\t\t\t\t\t\t.equals(Files.readAllLines(copiedFile.toPath(), Charset.defaultCharset())));\n } catch (IOException e) {\n log.error(\"IO error occured while saving the datamapper input file!\", e);\n }\n } else if (null != destinationFilePath) {\n clearContent(new File(destinationFilePath));\n }\n }",
"public void writeFile(IFile resource, IPath destinationPath)\n\t\t\tthrows CoreException;",
"@Test\n public void testCopyFileUsingStream() throws Exception {\n long start = System.nanoTime();\n CopyFile.copyFileUsingStream(sourceFile, streamDestFile);\n System.out.println(\"Time taken by file stream using:\" + (System.nanoTime() - start) / 1000);\n }",
"public File toOutputFile(File source, String basePath, String outName) {\n String path = basePath != null ? basePath : source.getParent();\r\n if (path == null) path = \"\";\r\n // if the configured path is absolute we take it, otherwise we append it\r\n if (directory != null && directory.startsWith(File.separator)) {\r\n path = directory;\r\n }\r\n if (directory != null) {\r\n if (path.length() > 0) {\r\n path += File.separator + directory;\r\n } else {\r\n path += directory;\r\n }\r\n }\r\n // setting the name\r\n path += File.separator + buildName(FilenameUtils.getBaseName(source.getName()), name != null ? name : outName, namePrefix, nameSuffix);\r\n\r\n return FileUtil.newFile(path);\r\n }",
"public void copyFileTo(String sourceFilename, String targetFilename)\r\n\tthrows FileNotFoundException, IOException {\r\n\t\tString theFileContent = readStringFromFile(sourceFilename);\r\n\t\toverwriteStringToFile(theFileContent, targetFilename);\r\n\t}",
"public void moveCoverageFileToLocalBase() throws IOException {\n\t\tString projectName = DataManager.getProjectVersion();\n\t\tif(projectName.contains(\"_Old\")){\n\t\t\tprojectName = projectName.replace(\"_Old\", \"\");\n\t\t}\n\t\tString origin = ajdtHandler.getFullProjectPath(projectName);\n\t\torigin += slash + \"report\" + slash;\n\t\tString destiny = DataManager.getCurrentPath();\n\t//\tJavaIO.copy(origin, destiny, \"coveragePriorJ.xml\");\n\t\tJavaIO.copyAll(new File(origin), new File(destiny), true);\n\t}",
"static void copyFile(File src, File dest) throws IOException {\r\n\t\tFileInputStream fis = new FileInputStream(src);\r\n\t\tFileOutputStream fos = new FileOutputStream (dest);\r\n\t\tbyte[] bytes = new byte[4*1048576];\r\n\t\tint numRead;\r\n\t\twhile ((numRead = fis.read(bytes)) > 0) {\r\n\t\t\tfos.write(bytes, 0, numRead);\r\n\t\t}\r\n\t\tfis.close();\r\n\t\tfos.close();\r\n\t}",
"public void copyFile(String destination, String fileName, InputStream in) {\r\n try {\r\n // write the inputStream to a FileOutputStream\r\n OutputStream out = new FileOutputStream(new File(destination + fileName));\r\n int read = 0;\r\n byte[] bytes = new byte[1024];\r\n while ((read = in.read(bytes)) != -1) {\r\n out.write(bytes, 0, read);\r\n }\r\n in.close();\r\n out.flush();\r\n out.close();\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n }",
"public static void copyResourceToDir(@Nonnull File targetDirectory, @Nonnull String resource) throws IOException {\n copyResourceToDir(targetDirectory, null, resource);\n }",
"@Test\n public void testCopyToTempDir() throws IOException {\n File fileA = null;\n\n try {\n fileA = File.createTempFile(\"fileA\", \"fileA\");\n System.out.println(fileA.getAbsolutePath());\n FileOutputStream fos = new FileOutputStream(fileA);\n InputStream sis = new StringInputStream(\"some content\");\n StreamUtil.copy(sis, fos);\n sis.close();\n fos.close();\n\n copyToTempDir(fileA);\n\n File fileACopy = new File(new File(getTempDirPath()), fileA.getName());\n assertTrue(fileACopy.exists());\n assertTrue(fileACopy.isFile());\n } finally {\n boolean deleted = fileA.delete();\n assertTrue(deleted);\n }\n\n File dirB = null;\n\n try {\n dirB = Files.createTempDirectory(\"dirB\").toFile();\n System.out.println(dirB.getAbsolutePath());\n\n copyToTempDir(dirB);\n\n File dirBCopy = new File(new File(getTempDirPath()), dirB.getName());\n assertTrue(dirBCopy.exists());\n assertTrue(dirBCopy.isDirectory());\n } finally {\n boolean deleted = dirB.delete();\n assertTrue(deleted);\n }\n }",
"@Test\n public void testCopyFileUsingChannel() throws Exception {\n long start = System.nanoTime();\n CopyFile.copyFileUsingChannel(sourceFile, channelDestFile);\n System.out.println(\"Time taken by file channel using:\" + (System.nanoTime() - start) / 1000);\n }",
"abstract File getTargetDirectory();",
"public boolean copyBinaryFromAssetsToData(String out_screenFileName) {\n File filesDirectory = new File(fileDir);\n\n InputStream is;\n try {\n is = mContext.getAssets().open(screenFileName);\n // copy ffmpeg file from assets to files dir\n Log.i(TAG, \"copyBinaryFromAssetsToData fileNameFromAssets \" + screenFileName + \" => \" + filesDirectory + \" filename \" + out_screenFileName);\n File myFile = new File(filesDirectory, out_screenFileName);\n// if (myFile.exists()) {\n// return true;\n// }\n\n final FileOutputStream os = new FileOutputStream(myFile);\n byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];\n\n int n;\n while(EOF != (n = is.read(buffer))) {\n os.write(buffer, 0, n);\n }\n\n os.close();\n is.close();\n\n File ffmpegFile = new File(filesDirectory, out_screenFileName);\n\n if(!ffmpegFile.canExecute()) {\n Log.i(TAG, \"FFmpeg File is not executable, trying to make it executable ...\");\n if (ffmpegFile.setExecutable(true)) {\n return true;\n } else {\n Log.w(TAG, \"make excute failed\");\n }\n } else {\n Log.i(TAG, \"FFmpeg file is executable\");\n return true;\n }\n } catch (IOException e) {\n Log.e(TAG, \"issue in coping binary from assets to data. \", e);\n }\n\n return false;\n }",
"public void source(String path) throws Exception;",
"public void copyAssets(String dist) {\n copyFile(dist, \"pointer.png\");\n copyFile(dist, \"WebElementRecorder.js\");\n }",
"public void copyConfigFile() throws IOException {\n InputStream myInput = ApplicationContextProvider.getContext().getAssets().open(CONFIG_FILE);\n\n // Path to the just created empty db\n //String outFileName = DB_PATH + DATABASE_NAME;\n String outFileName = \"/sdcard/games/Config/ConfigA.txt\";\n\n\n // Open the empty db as the output stream\n OutputStream myOutput = new FileOutputStream(outFileName);\n\n // transfer bytes from the inputfile to the outputfile\n byte[] buffer = new byte[1024];\n int length;\n while ((length = myInput.read(buffer)) > 0) {\n myOutput.write(buffer, 0, length);\n }\n\n // Close the streams\n myOutput.flush();\n myOutput.close();\n myInput.close();\n }",
"public void copy(){\n\t\tFileInputStream is = null;\n\t\tFileOutputStream os = null;\n\t\ttry {\n\t\t\tis = new FileInputStream(source);\n\t\t\tos = new FileOutputStream(dest);\n\t\t\tif(dest.exists())\n\t\t\t\tdest.delete();\n\t\t\tint i = -1;\n\t\t\twhile((i = is.read()) != -1)\n\t\t\t\tos.write(i);\n\t\t\tsource.deleteOnExit();\n\t\t} catch (IOException e) {\n\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t} finally {\n\t\t\tif(is != null)\n\t\t\t\ttry {\n\t\t\t\t\tis.close();\n\t\t\t\t} catch (IOException ignored) {}\n\t\t\tif(os != null)\n\t\t\t\ttry {\n\t\t\t\t\tos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e);\n\t\t\t\t}\n\t\t}\n\t}",
"public void copyAssets(View view) {\n log(\"copy assets to fon\");\n try {\n String [] list = getApplicationContext().getAssets().list(\"\");\n if (list.length > 0) {\n for (String file : list) {\n copyAssetFile(file, getApplicationContext());\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n log(\"copy finished\");\n log(\"deploy assets start\");\n executeCommand(\"deploy.sh\");\n log(\"deploy assets finished\");\n }",
"public void copy(String name, String oldPath, String newPath);",
"@Test\n public final void whenConvertingToFile_thenCorrect() throws IOException {\n final Path path = Paths.get(\"src/test/resources/sample.txt\");\n final byte[] buffer = java.nio.file.Files.readAllBytes(path);\n\n final File targetFile = new File(\"src/test/resources/targetFile.tmp\");\n final OutputStream outStream = new FileOutputStream(targetFile);\n outStream.write(buffer);\n\n IOUtils.closeQuietly(outStream);\n }",
"public void get(String platform, String key, File destination) throws ExtenderClientException {\n File cachedFile = getCachedBuildFile(platform);\n\n if (!key.equals(this.persistentHashes.get(cachedFile.getAbsolutePath())) ) {\n throw new ExtenderClientException(String.format(\"The file %s wasn't cached with key %s\", cachedFile.getAbsolutePath(), key));\n }\n\n try {\n Files.copy(new FileInputStream(cachedFile), destination.toPath(), REPLACE_EXISTING);\n } catch (IOException e) {\n throw new ExtenderClientException(String.format(\"Failed to copy %s to %s\", cachedFile.getAbsolutePath(), destination.getAbsolutePath()), e);\n }\n }",
"private static void exportResource(String resourcePathName, File outFolder) throws Exception {\n InputStream stream = null;\n try {\n // note that each / is a directory down in the \"jar tree\" been the jar the root of the\n // tree\n stream = DeployManagementModuleFlow.class.getResourceAsStream(resourcePathName);\n if (stream == null) {\n throw new Exception(\"Cannot get resource \\\"\" + resourcePathName\n + \"\\\" from Jar file.\");\n }\n File outFile = new File(outFolder, new File(resourcePathName).getName());\n outFile.getParentFile().mkdirs();\n Files.copy(stream, outFile.toPath());\n } finally {\n if (stream != null) {\n stream.close();\n }\n }\n }",
"protected SlotFile copyAndOpen(String fileName) throws IOException {\r\n\t\t\r\n\t\tURL deltaFileUrl = getClass().getResource(fileName);\t\t\r\n\t\tFile tempDeltaFile = File.createTempFile(\"test\", \".dlt\");\r\n\t\t\r\n\t\t_tempFiles.add(tempDeltaFile);\r\n\t\t\r\n\t\tFileUtils.copyURLToFile(deltaFileUrl, tempDeltaFile);\r\n\t\tSlotFile slotFile = new SlotFile(tempDeltaFile.getAbsolutePath(), BinFileMode.FM_EXISTING);\r\n\t\t\r\n\t\treturn slotFile;\r\n\t}",
"File getTargetDirectory();",
"public static void copyFile(InputStream in, File to) throws IOException {\r\n FileOutputStream out = new FileOutputStream(to);\r\n int len;\r\n byte[] buffer = new byte[4096];\r\n while ((len = in.read(buffer)) != -1) {\r\n out.write(buffer, 0, len);\r\n }\r\n out.close();\r\n in.close();\r\n }",
"@Override\n public boolean doWork() {\n\n logger.debug(\"CopyCommand->doWork()\");\n\n // Parameter ermitteln\n strSrcFile = getValueForKey(CONST_PARAM_SCRFILE);\n strDestFile = getValueForKey(CONST_PARAM_DESTFILE);\n bIsDirectory = Boolean.parseBoolean(getValueForKey(CONST_PARAM_ISDIRECTORY));\n\n // TODO: richtigen Replaces einfuegen\n VarReplace objVarRepl = new VarReplace();\n strSrcFile = objVarRepl.replacePlaceholder(strSrcFile);\n strDestFile = objVarRepl.replacePlaceholder(strDestFile);\n\n if ((strSrcFile == null) || (strDestFile == null)) {\n return false;\n }\n else if (new File(strSrcFile).isDirectory()) {\n try {\n FileUtils.copyDirectory(new File(strSrcFile), new File(strDestFile));\n }\n catch (IOException ioe) {\n logger.error(\" unable to copy file: \" + ioe.getMessage());\n }\n return true;\n\n }\n else {\n try {\n if (new File(strDestFile).getName().startsWith(\"v\")\n || new File(strDestFile).getName().startsWith(\"z\")) {\n strDestFile = new File(strDestFile).getParent() + File.separator\n + new File(strDestFile).getName().toUpperCase();\n }\n logger.debug(\"srcFile: \" + strSrcFile + \", destFile: \" + strDestFile);\n\n if (!new File(strSrcFile).getParentFile().exists()) {\n logger.debug(\"srcFile parent folder existiert nicht: \" + new File(strSrcFile).getParent());\n }\n\n if (!new File(strSrcFile).exists()) {\n logger.debug(\"srcFile existiert nicht: \" + new File(strSrcFile).getAbsolutePath());\n }\n\n if (!new File(strDestFile).getParentFile().exists()) {\n logger.debug(\"destFile parent folder existstiert nicht: \"\n + new File(strDestFile).getParentFile().getAbsolutePath());\n new File(strDestFile).getParentFile().mkdirs();\n }\n\n FileUtils.copyFile(new File(strSrcFile), new File(strDestFile));\n }\n catch (IOException ioe) {\n\n logger.error(\" unable to copy file: \" + ioe.getMessage());\n\n ioe.printStackTrace();\n\n while (iCounter < 20) {\n\n logger.debug(\"IOException loop: \" + iCounter);\n\n try {\n logger.debug(\"wait 20 seconds\");\n Thread.sleep(TimeUnit.SECONDS.toMillis(20));\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n try {\n FileUtils.copyFile(new File(strSrcFile), new File(strDestFile));\n logger.debug(\"break loop\");\n break;\n }\n catch (IOException e) {\n\n logger.debug(\"again an exception: \" + e.getMessage());\n }\n\n iCounter++ ;\n\n logger.debug(\"try it ounce again\");\n\n }\n\n }\n return true;\n }\n\n }",
"public void copyFile(@NonNull File sourceFile, @NonNull File destFile) throws IOException {\n if (!destFile.getParentFile().exists()) {\n if (!destFile.getParentFile().mkdirs())\n Log.e(ConstantVariables.ERR, ConstantVariables.DIR_NOT_CREATED);\n } else {\n Log.e(ConstantVariables.ERR, ConstantVariables.DIR_ALREADY_EXISTS);\n }\n\n if (!destFile.exists()) {\n if (!destFile.createNewFile())\n Log.e(ConstantVariables.ERR, ConstantVariables.FILE_NOT_CREATED);\n } else\n Log.e(ConstantVariables.ERR, ConstantVariables.FILE_ALREADY_EXISTS);\n\n try (\n FileChannel source = new FileInputStream(sourceFile).getChannel();\n FileChannel destination = new FileOutputStream(destFile).getChannel();\n ) {\n destination.transferFrom(source, 0, source.size());\n }\n }",
"public static void Copy(File toCopy, File destination) throws IOException {\n\t\tInputStream in = new BufferedInputStream(new FileInputStream(toCopy));\n\t\tOutputStream out = new BufferedOutputStream(new FileOutputStream(destination));\n\n\t\tbyte[] buffer = new byte[1024];\n\t\tint lengthRead;\n\t\twhile ((lengthRead = in.read(buffer)) > 0) {\n\t\t\tout.write(buffer, 0, lengthRead);\n\t\t\tout.flush();\n\t\t}\n\t\tout.close();\n\t\tin.close();\n\t}",
"public static IStatus copyFile(InputStream in, String to) {\n \t\tOutputStream out = null;\n \t\n \t\ttry {\n \t\t\tout = new FileOutputStream(to);\n \t\n \t\t\tint avail = in.read(buf);\n \t\t\twhile (avail > 0) {\n \t\t\t\tout.write(buf, 0, avail);\n \t\t\t\tavail = in.read(buf);\n \t\t\t}\n \t\t\treturn Status.OK_STATUS;\n \t\t} catch (Exception e) {\n \t\t\tTrace.trace(Trace.SEVERE, \"Error copying file\", e);\n \t\t\treturn new Status(IStatus.ERROR, TomcatPlugin.PLUGIN_ID, 0, NLS.bind(Messages.errorCopyingFile, new String[] {to, e.getLocalizedMessage()}), e);\n \t\t} finally {\n \t\t\ttry {\n \t\t\t\tif (in != null)\n \t\t\t\t\tin.close();\n \t\t\t} catch (Exception ex) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t\ttry {\n \t\t\t\tif (out != null)\n \t\t\t\t\tout.close();\n \t\t\t} catch (Exception ex) {\n \t\t\t\t// ignore\n \t\t\t}\n \t\t}\n \t}",
"public File getOutput(){\n return outputDir;\n }",
"public static void writeToFile(String context, String outputFileName) throws IOException {\n KubernetesDataHolder dataHolder = KubernetesContext.getInstance().getDataHolder();\n outputFileName = dataHolder.getOutputDir() + File\n .separator + extractBalxName(dataHolder.getBalxFilePath()) + outputFileName;\n DeploymentModel deploymentModel = dataHolder.getDeploymentModel();\n JobModel jobModel = dataHolder.getJobModel();\n // Priority given for job, then deployment.\n if (jobModel != null && jobModel.isSingleYAML()) {\n outputFileName =\n dataHolder.getOutputDir() + File.separator + extractBalxName(dataHolder.getBalxFilePath()) + YAML;\n } else if (jobModel == null && deploymentModel != null && deploymentModel.isSingleYAML()) {\n outputFileName =\n dataHolder.getOutputDir() + File.separator + extractBalxName(dataHolder.getBalxFilePath()) + YAML;\n \n }\n File newFile = new File(outputFileName);\n // append if file exists\n if (newFile.exists()) {\n Files.write(Paths.get(outputFileName), context.getBytes(StandardCharsets.UTF_8), StandardOpenOption.APPEND);\n return;\n }\n //create required directories\n if (newFile.getParentFile().mkdirs()) {\n Files.write(Paths.get(outputFileName), context.getBytes(StandardCharsets.UTF_8));\n return;\n }\n Files.write(Paths.get(outputFileName), context.getBytes(StandardCharsets.UTF_8));\n }",
"private static Path copyFileFromJar(String path) {\n try {\n Path file = Files.createTempFile(\"configme-\", \"-democonfig.yml\");\n Files.copy(TestUtils.class.getResourceAsStream(path), file, REPLACE_EXISTING);\n return file;\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n }",
"void putFile(String relativePath, Codebase codebase) {\n try {\n File dest = new File(rootDirectory.getAbsolutePath(), relativePath);\n File src = codebase.getFile(relativePath);\n boolean srcExists = filesystem.exists(src);\n boolean destExists = filesystem.exists(dest);\n\n boolean srcExecutable = filesystem.isExecutable(src);\n boolean destExecutable = filesystem.isExecutable(dest);\n\n if (!srcExists && !destExists) {\n throw new MoeProblem(\n \"Neither src nor dests exists. Unreachable code:%n%s%n%s%n%s\", relativePath, src, dest);\n }\n\n if (!srcExists) {\n util.runSvnCommandWithWorkingDirectory(rootDirectory.getAbsolutePath(), \"rm\", relativePath);\n // TODO(dbentley): handle newly-empty directories\n return;\n }\n\n try {\n filesystem.makeDirsForFile(dest);\n filesystem.copyFile(src, dest);\n } catch (IOException e) {\n throw new MoeProblem(e, \"Failed to copy %s to %s\", src, dest);\n }\n\n if (!destExists) {\n util.runSvnCommandWithWorkingDirectory(\n rootDirectory.getAbsolutePath(), \"add\", \"--parents\", relativePath);\n }\n\n String mimeType = guessMimeType(relativePath);\n if (mimeType != null) {\n try {\n util.runSvnCommandWithWorkingDirectory(\n rootDirectory.getAbsolutePath(), \"propset\", \"svn:mime-type\", mimeType, relativePath);\n } catch (CommandRunner.CommandException e) {\n // If the mime type setting fails, it's not really a big deal.\n // Just log it and keep going.\n ui.message(\"Error setting mime-type for %s\", relativePath);\n }\n }\n\n if (destExecutable != srcExecutable) {\n if (srcExecutable) {\n util.runSvnCommandWithWorkingDirectory(\n rootDirectory.getAbsolutePath(), \"propset\", \"svn:executable\", \"*\", relativePath);\n } else {\n util.runSvnCommandWithWorkingDirectory(\n rootDirectory.getAbsolutePath(), \"propdel\", \"svn:executable\", relativePath);\n }\n }\n } catch (CommandRunner.CommandException e) {\n throw new MoeProblem(\"problem occurred while running svn: %s\", e.stderr);\n }\n }",
"@Override\n public void finish() {\n storeProperties();\n // retrieve the full list of files according to the selected mode\n List<org.jajuk.base.File> files = getFiles();\n if (files == null) {\n return;\n }\n // define the target directory\n final Date curDate = new Date();\n // Do not use ':' character in destination directory, it's\n // forbidden under Windows\n final SimpleDateFormat stamp = new SimpleDateFormat(\"yyyyMMdd-HHmm\", Locale.getDefault());\n final String dirName = \"Party-\" + stamp.format(curDate);\n final java.io.File destDir = new java.io.File(((String) data.get(Variable.DEST_PATH)), dirName);\n if (!destDir.mkdir()) {\n Log.warn(\"Could not create destination directory \" + destDir);\n }\n Log.debug(\"Going to copy \" + files.size() + \" files to directory {{\"\n + destDir.getAbsolutePath() + \"}}\");\n // perform the actual copying\n UtilPrepareParty.copyFiles(files, destDir, isTrue(Variable.NORMALIZE_FILENAME),\n isTrue(Variable.ONE_MEDIA_ENABLED) && isTrue(Variable.CONVERT_MEDIA),\n (String) data.get(Variable.ONE_MEDIA), (String) data.get(Variable.CONVERT_COMMAND));\n }",
"private File getFile(final String relativePathToFile, final String versionSubDirectory) {\n\n final URL urlToFile = TestBase.class.getResource(TEST_DATA_DIR + versionSubDirectory + relativePathToFile);\n File destFile = new File(WORKING_DIR + versionSubDirectory + relativePathToFile);\n\n try {\n FileUtils.copyURLToFile(urlToFile, destFile);\n } catch (IOException e) {\n System.out.println(\"File specified in URL cannot be found\"+ e.getMessage());\n }\n\n return destFile;\n }",
"public void copyFile(File src, File dst) throws IOException {\n\t\tInputStream in = new FileInputStream(src);\n\t\tOutputStream out = new FileOutputStream(dst);\n\n\t\t// Transfer bytes from in to out\n\t\tbyte[] buf = new byte[1024];\n\t\tint len;\n\t\twhile ((len = in.read(buf)) > 0) {\n\t\t\tif(logger.isDebugEnabled())\n\t\t\t\tlogger.debug(\"Copiando fichero \" + src.getAbsolutePath() + \" a \"\n\t\t\t\t\t+ dst.getAbsolutePath());\n\t\t\tout.write(buf, 0, len);\n\t\t}\n\t\tin.close();\n\t\tout.close();\n\t}",
"void sendToDestination(FileItem fileItem, String file_name){\n\n Resource res = new Resource();\n\n try {\n fileItem.write( new File(res.entry.getPathToDestination() + File.separator + file_name));\n logger.info(\"Successfully sent file to destination\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n\n }",
"public void execute(Request request, Response response, boolean do_copy) throws IOException, HTTPException {\n\t\t\n\t\tURI uri = request.getUri();\n\t\tIDirectory source_parent = getParent(uri); // Get the parent directory of the source location.\n\t\tString source_base_name = UriUtil.baseName(uri); // Get the name of the location within that directory.\n\t\tString if_header = request.getHeader(HTTP.HEADER_IF); // Get the If header.\n\t\tString lock_token = getLockTokenFromIfHeader(if_header);\n\t\t\n\t\tDiagnostic.trace(\"Source name = \" + source_base_name, Diagnostic.RUN);\n\t\t\n\t\t// Deal with the destination location.\n\t\tString destination_header = request.getHeader(HTTP.HEADER_DESTINATION);\n\t\tif (destination_header == null) throw new HTTPException(\"No destination specified\");\n\t\t\n\t\ttry {\n\t\t\tURI destination_file_path = new URI(destination_header); // Get the file path of the destination location.\n\t\t\tIDirectory destination_parent = getParent(destination_file_path); // Get the parent directory of that location.\n\t\t\tString destination_base_name = UriUtil.baseName(destination_file_path); // Get the name of the location within that directory.\n\t\t\t\n\t\t\t// Should overwrite unless flag explicitly set to false in header.\n\t\t\t// See RFC 2518 8.8.6/7.\n\t\t\tboolean overwrite = shouldOverwrite(request);\n\t\t\t\n\t\t\t// Remember whether destination is non-null, for setting result code.\n\t\t\tboolean destination_not_null = destination_parent.contains(destination_base_name);\n\t\t\t\n\t\t\t// If a lock token was specified in an If header, the file must be currently locked with the given token.\n\t\t\tif (lock_token != null) lock_manager.checkWhetherLockedWithToken(uri, lock_token);\n\t\t\t\n\t\t\t// TODO check if the destination is locked, in which case must have lock token. Ditto for source in case of move.\n\t\t\t\n\t\t\t// Either copy the object or move it.\n\t\t\tif (do_copy) {\n\t\t\t\tfile_system.copyObject(source_parent, source_base_name, destination_parent, destination_base_name, overwrite);\n\t\t\t} else {\n\t\t\t\tfile_system.moveObject(source_parent, source_base_name, destination_parent, destination_base_name, overwrite);\n\t\t\t}\n\t\t\t\n\t\t\tif (destination_not_null) response.setStatusCode(HTTP.RESPONSE_NO_CONTENT);\n\t\t\telse response.setStatusCode(HTTP.RESPONSE_CREATED);\n\t\t\t\n\t\t\tresponse.close();\n\t\t}\n\t\tcatch (LockUseException e) {\n handleLockException(lock_token, e);\n\t\t}\n\t\tcatch (BindingAbsentException e) {\n\t\t\tthrow new HTTPException(\"Source object not found\", HTTP.RESPONSE_NOT_FOUND, true);\n\t\t}\n\t\tcatch (BindingPresentException e) {\n\t\t\tthrow new HTTPException(\"Destination non-null with no-overwrite\", HTTP.RESPONSE_PRECONDITION_FAILED, true);\n\t\t}\n\t\tcatch (PersistenceException e) {\n\t\t\tthrow new HTTPException(\"Couldn't create copy\", HTTP.RESPONSE_INTERNAL_SERVER_ERROR, true);\n\t\t}\n\t\tcatch (URISyntaxException e) {\n\t\t\tthrow new HTTPException(\"Invalid destination path\", HTTP.RESPONSE_BAD_REQUEST, true);\n\t\t}\n\t}",
"public static void copyFile(File source, File destination) throws IOException {\n\tFileChannel sourceChannel = null;\n\tFileChannel destinationChannel = null;\n\ttry {\n\t if (destination.exists()) {\n\t\tdestination.delete();\n\t }\n\t sourceChannel = new FileInputStream(source).getChannel();\n\t destinationChannel = new FileOutputStream(destination).getChannel();\n\t int maxCount = (64 * 1024 * 1024) - (32 * 1024);// magic number for Windows, 64Mb - 32Kb\n\t long size = sourceChannel.size();\n\t long position = 0;\n\t while (position < size) {\n\t\tposition += sourceChannel.transferTo(position, maxCount, destinationChannel);\n\t }\n\t} catch (IOException e) {\n\t throw e;\n\t} finally {\n\t if (null != sourceChannel) {\n\t\tsourceChannel.close();\n\t }\n\t if (null != destinationChannel) {\n\t\tdestinationChannel.close();\n\t }\n\t}\n }",
"private void copyFile(InputStream ins, OutputStream outs) throws IOException {\n byte[] buffer = new byte[1024];\n int read;\n while((read = ins.read(buffer)) != -1) {\n outs.write(buffer, 0, read);\n }\n }",
"public static void copyFileToDir(File src, File dst) throws IOException {\n String dstAbsPath = dst.getAbsolutePath();\n String dstDir = dstAbsPath.substring(0, dstAbsPath.lastIndexOf(File.separator));\n File dir = new File(dstDir);\n if (!dir.exists() && !dir.mkdirs()) {\n throw new IOException(\"Fail to create the directory: \" + dir.getAbsolutePath());\n }\n\n File file = new File(dstAbsPath + File.separator + src.getName());\n copyFile(src, file);\n }",
"java.lang.String getSrcPath();",
"private void migrate (String name)\t{\n\t\ttry{\n\t\t\tFile f1 = new File( sourceDir + name);\n\t\t\t\n\t\t\tif (!f1.exists())\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tFile f2 = new File(targetDir +name);\n\t\t\t\n\t\t InputStream in = new FileInputStream(f1);\n\t\t \n\t\t OutputStream out = new FileOutputStream(f2);\n\n\t\t byte[] buf = new byte[1024];\n\t\t int len;\n\t\t while ((len = in.read(buf)) > 0){\n\t\t out.write(buf, 0, len);\n\t\t }\n\t\t in.close();\n\t\t out.close();\n\t\t System.out.println(\"File copied.\");\n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t System.out.println(ex.getMessage() + \" in the specified directory.\");\n\t\t System.exit(0);\n\t\t }\n\t\t catch(IOException e){\n\t\t System.out.println(e.getMessage()); \n\t\t }\n\t}",
"public void copyFile(String src, String dst) throws IOException {\n\n\t\tFile srcFile = new File(src);\n\t\tFile dstFile = new File(dst);\n\n\t\tcopyFile(srcFile, dstFile);\n\t}",
"public static IStatus copyFile(String from, String to) {\n \t\ttry {\n \t\t\treturn copyFile(new FileInputStream(from), to);\n \t\t} catch (Exception e) {\n \t\t\tTrace.trace(Trace.SEVERE, \"Error copying file\", e);\n \t\t\treturn new Status(IStatus.ERROR, TomcatPlugin.PLUGIN_ID, 0, NLS.bind(Messages.errorCopyingFile, new String[] {to, e.getLocalizedMessage()}), e);\n \t\t}\n \t}",
"public void copyFile(InputStream inputStream, OutputStream outputStream) throws IOException\n {\n byte[] buffer = new byte[1024];\n int length;\n while ((length = inputStream.read(buffer)) > 0)\n outputStream.write(buffer, 0, length);\n inputStream.close();\n outputStream.close();\n }",
"public void testCopyImage() {\n System.out.println(\"copyImage\");\n String from = \"\";\n String formatName = \"\";\n File output = null;\n boolean expResult = false;\n boolean result = IOUtil.copyImage(from, formatName, output);\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 }",
"public static void copyCat() throws IOException {\n byte[] bytes = Files.readAllBytes(Paths.get(RESOURCES_FOLDER + \"\\\\cat.jpeg\"));\n FileInputStream inputStream = new FileInputStream(RESOURCES_FOLDER + \"\\\\cat.jpeg\");\n FileOutputStream outputStream = new FileOutputStream(COPY_FOLDER + \"\\\\cat_copy.jpeg\");\n// outputStream.write(bytes);\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); // cand nu avem nevoie sa cream fisierul - ci doar sa mutam dintr o parte in alta bytes\n byteArrayOutputStream.write(bytes);\n byteArrayOutputStream.writeTo(outputStream);\n inputStream.close();\n byteArrayOutputStream.close();\n outputStream.close();\n }",
"public static File copyToBagDirectoryInTarget(File bag) throws Exception {\n File dirInTarget = null;\n if (bag.isDirectory()) {\n dirInTarget = new File(\"target\", bag.getName());\n FileUtils.deleteQuietly(dirInTarget);\n FileUtils.copyDirectory(bag, dirInTarget);\n } else {\n ZipFile zf = new ZipFile(bag);\n if (!zf.isValidZipFile()) {\n System.err.println(\"ERROR: The submitted bag is not a valid directory or Zipfile\");\n System.exit(1);\n } else {\n File zipInTarget = new File(\"target\", bag.getName());\n FileUtils.deleteQuietly(zipInTarget);\n dirInTarget = new File(\"target\", ZipUtil.getBaseDirName(bag.toString()));\n FileUtils.deleteQuietly(dirInTarget);\n zf.extractAll(\"target\");\n }\n }\n return dirInTarget;\n }",
"public static void copyFile(File sourceFile, File destFile)\n throws IOException {\n if (!destFile.exists()) {\n destFile.createNewFile();\n }\n FileChannel source = null;\n FileChannel destination = null;\n try {\n source = new FileInputStream(sourceFile).getChannel();\n destination = new FileOutputStream(destFile).getChannel();\n destination.transferFrom(source, 0, source.size());\n } catch (Exception e) {} finally {\n if (source != null) {\n source.close();\n }\n if (destination != null) {\n destination.close();\n }\n }\n }",
"private static Path getTargetPath() {\r\n return Paths.get(getBaseDir(), \"target\");\r\n }",
"public boolean copy(String path, InputStream is) throws SystemException;",
"private void copyFiles(String Language) {\n try {\n String filepath = mDataPath + \"/tessdata/\" + Language + \".traineddata\";\n AssetManager assetManager = getAssets();\n InputStream instream = assetManager.open(\"tessdata/\"+Language+\".traineddata\");\n OutputStream outstream = new FileOutputStream(filepath);\n byte[] buffer = new byte[1024];\n int read;\n while ((read = instream.read(buffer)) != -1) {\n outstream.write(buffer, 0, read);\n }\n outstream.flush();\n outstream.close();\n instream.close();\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected void copyJsLibraryFile(String jsLib) throws MojoExecutionException {\n try {\n outputKotlinJSDir.mkdirs();\n final InputStream inputStream = MetaInfServices.loadClasspathResource(jsLib);\n if (inputStream == null) {\n System.out.println(\"WARNING: Could not find \" + jsLib + \" on the classpath!\");\n } else {\n InputSupplier<InputStream> inputSupplier = new InputSupplier<InputStream>() {\n @Override\n public InputStream getInput() throws IOException {\n return inputStream;\n }\n };\n Files.copy(inputSupplier, new File(outputKotlinJSDir, jsLib));\n }\n } catch (IOException e) {\n throw new MojoExecutionException(e.getMessage(), e);\n }\n }",
"public void copyOne(String from, String to) {\n\t\tFile source = new File(from);\n\t\tif (sourceExists(source)) {\n\t\t\tFile target = new File(to);\n\t\t\ttry{\n\t\t\t\tif(!targetExists(target)){\n\t\t\t\t\tFiles.copy(source.toPath(), target.toPath());\n\t\t\t\t\tSystem.out.println(\"File \" + target.getName()\n\t\t\t\t\t\t\t+ \" COPIED!\");\n\t\t\t\t} else if (target.exists() && confirmReplace()) {\n\t\t\t\t\tFiles.copy(source.toPath(), target.toPath(),\n\t\t\t\t\t\t\tREPLACE_EXISTING);\n\t\t\t\t\tSystem.out.println(\"File \" + target.getName() + \" REPLACED!\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"File WASN'T copied!\");\n\t\t\t\t}\n\t\t\t}catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void execute() throws MojoExecutionException, MojoFailureException {\n\n File target = new File(getDistfolder());\n\n // only create the target directoty when it doesn't exist\n // no deletion\n if (!target.exists()) {\n target.mkdir();\n } else {\n getLog().warn(\"Using existing target directory \" + target.getAbsolutePath());\n }\n\n getLog().info(\"Target is \" + target);\n\n String excludes2 = getExcludes();\n\n if (excludes2 == null) {\n excludes2 = \"**/.svn/,**/.cvs/\";\n\n getLog().info(\"Configuration for excludes not set. Defaulting to: \\\"\" + excludes2\n + \"\\\". Excludes are ant-fileset-style.\");\n } else {\n if (excludes2.contains(\"__acl\") || excludes2.contains(\"__properties\")) {\n getLog().warn(\"Your excludes \\\"\" + excludes2\n + \"\\\" contains __acl or __properties. You do not want these to be excluded in order to have permissoins and properties work.\");\n }\n }\n\n try {\n String targetLibPath = getTargetLibPath();\n\n if ((null != targetLibPath) && !\"\".equals(targetLibPath)) {\n File targetLibDir = new File(target, targetLibPath);\n\n if (!targetLibDir.exists()) {\n targetLibDir.mkdirs();\n }\n\n if (!targetLibDir.isDirectory()) {\n throw new MojoExecutionException(\"Could not create targetLibdir: \" + targetLibDir.toString());\n }\n\n File jar = new File(jarFile);\n FileUtils.copyFileToDirectory(jar, targetLibDir);\n }\n\n for (Resource resource : srcResources) {\n File source = new File(resource.getDirectory());\n File currentTarget = null;\n\n if (resource.getTargetPath() != null) {\n currentTarget = new File(target, resource.getTargetPath());\n } else {\n currentTarget = target;\n }\n\n String normalized = source.getAbsolutePath();\n int offsetLength = normalized.length();\n\n getLog().debug(\"Normalzed sourcefolder is \" + normalized + \" (Offset is: \" + offsetLength + \")\");\n\n List<String> results = FileUtils.getFileAndDirectoryNames(source, null, excludes2, true, true, true,\n true);\n\n for (String fileName : results) {\n File file = new File(fileName);\n\n String normalizedParent = new File(file.getParent()).getAbsolutePath();\n\n if (offsetLength > normalizedParent.length()) {\n getLog().info(\"Skipping file (its the sourcefolder or a parent of it): \"\n + file.getAbsolutePath());\n getLog().debug(\"Parent: \" + normalizedParent + \" with length \" + normalizedParent.length());\n\n continue;\n }\n\n String relative = file.getParent();\n relative = relative.substring(offsetLength); // cut the target-dir away\n\n getLog().debug(\"Copy \" + file + \" to \" + currentTarget.getPath() + File.separator + relative);\n\n if (file.isFile()) {\n File parent = new File(currentTarget.getPath() + File.separator + relative);\n\n if (!parent.exists()) {\n // create dir if it does not exist\n parent.mkdirs();\n }\n\n FileUtils.copyFileToDirectory(file, parent);\n } else if (file.isDirectory()) {\n // take care about directories (so that empty dirs get created)\n\n File tocreate = new File(currentTarget.getPath() + File.separator + relative + File.separator\n + file.getName());\n getLog().debug(\"Creating dir\" + tocreate.toString());\n tocreate.mkdirs();\n }\n }\n }\n } catch (IOException ex) {\n throw new MojoExecutionException(\"Could copy file(s) to directory\", ex);\n }\n }",
"@Test\n public void shouldBeAbleToCloneFile() {\n graph.useWorkspace(\"otherWorkspace\");\n graph.create(\"/testFile\").with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.FILE).orReplace().and();\n graph.create(\"/testFile/jcr:content\")\n .with(JcrLexicon.PRIMARY_TYPE, JcrNtLexicon.RESOURCE)\n .and(JcrLexicon.DATA, TEST_CONTENT.getBytes())\n .orReplace()\n .and();\n\n File newFile = new File(otherWorkspaceRoot, \"testFile\");\n assertContents(newFile, TEST_CONTENT);\n\n graph.useWorkspace(\"test\");\n graph.clone(\"/testFile\").fromWorkspace(\"otherWorkspace\").as(\"clonedFile\").into(\"/\").failingIfAnyUuidsMatch();\n File copiedFile = new File(testWorkspaceRoot, \"clonedFile\");\n assertContents(copiedFile, TEST_CONTENT);\n }",
"private Step copyRemoteFiles() {\n return stepBuilderFactory.get(STEP_COPY_REMOTE_FILES)\n .tasklet(copyRemoteFilesTask)\n .build();\n }",
"private void createBackupFile(Path parentPath, String sourceFilename, String backupFilename) throws IOException {\n File source = new File(path.toString() + File.separator + sourceFilename);\n File backup = new File(path.toString() + File.separator + backupFilename);\n Files.copy(source.toPath(), backup.toPath(), StandardCopyOption.COPY_ATTRIBUTES, StandardCopyOption.REPLACE_EXISTING);\n }"
]
| [
"0.6739238",
"0.60265243",
"0.5975042",
"0.5879864",
"0.5800704",
"0.5749614",
"0.57472175",
"0.5730362",
"0.57059824",
"0.5569893",
"0.5538412",
"0.54854107",
"0.5485255",
"0.54716486",
"0.5424048",
"0.5393639",
"0.53897864",
"0.5389019",
"0.535634",
"0.5315142",
"0.53075033",
"0.5240645",
"0.5222504",
"0.5199768",
"0.5186177",
"0.5169835",
"0.5152223",
"0.5135817",
"0.51345146",
"0.5132936",
"0.5120406",
"0.50968224",
"0.5090663",
"0.5088151",
"0.50699866",
"0.50487524",
"0.50423414",
"0.5029032",
"0.50170255",
"0.50126237",
"0.49848318",
"0.49762684",
"0.49525255",
"0.49440396",
"0.4939294",
"0.49383017",
"0.49253806",
"0.49250135",
"0.49234873",
"0.49204898",
"0.4919165",
"0.49158365",
"0.49029323",
"0.4902361",
"0.4896366",
"0.4882404",
"0.4877629",
"0.4876296",
"0.48709524",
"0.4869029",
"0.4856542",
"0.48511517",
"0.48508075",
"0.48430738",
"0.4841428",
"0.48397875",
"0.48366493",
"0.4836547",
"0.4829086",
"0.4827233",
"0.48232022",
"0.48179287",
"0.48149633",
"0.47955966",
"0.479072",
"0.47883117",
"0.4786234",
"0.47828326",
"0.47820464",
"0.47787958",
"0.47717318",
"0.47683597",
"0.4763274",
"0.4761275",
"0.4752814",
"0.47497112",
"0.47453663",
"0.47344473",
"0.47270983",
"0.4720961",
"0.47087786",
"0.47032815",
"0.4694713",
"0.4692995",
"0.4692738",
"0.4684247",
"0.46838343",
"0.46831352",
"0.468153",
"0.4671753"
]
| 0.6551155 | 1 |
Check if a file exists in the given context. | public static boolean uriFileExists(Context targetCtx, String uri ){
if (uri.isEmpty()){ return false; }
ContentResolver resolver = targetCtx.getContentResolver();
try {
BitmapFactory.decodeStream(resolver.openInputStream(Uri.parse(uri)));
} catch (FileNotFoundException e) {
e.printStackTrace();
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean fileExists(Context context, String filename)\r\n{\r\n File file = context.getFileStreamPath(filename);\r\n if(file == null || !file.exists())\r\n {\r\n return false;\r\n }\r\nreturn true;\r\n}",
"protected abstract boolean pathExists(@NonNull String path, T context);",
"private static boolean doesPathExist(final Path path, final FileContext context) throws AccessControlException, UnsupportedFileSystemException, IOException {\n\t\ttry {\n\t\t\tFileStatus status = context.getFileStatus(path);\n\t\t\treturn status.isFile() || status.isDirectory();\n\t\t} catch (FileNotFoundException e) {\n\t\t\treturn false; \n\t\t}\t\t\n\t}",
"private boolean fileExists(Path p) {\n\t\treturn Files.exists(p);\n\t}",
"boolean fileExists(String path) throws IOException;",
"public boolean hasFile(final String file);",
"private static boolean fileExists(String filename) {\n return new File(filename).exists();\n }",
"private boolean existsFile(File testFile) {\n\t\tif (testFile.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean doesFileExist(String qualifiedFileName) throws FileNotFoundException {\n\t\t\n\t\t// First get a path object to where the file is.\n\t\t\n\t\tPath inWhichFolder = Paths.get(qualifiedFileName);\n\t\t\n\t\tboolean isFilePresent = (Files.exists(inWhichFolder) && Files.isReadable(inWhichFolder) && !Files.isDirectory(inWhichFolder));\n\t\t\n\t\tif (!isFilePresent) {\n\t\t\tthrow new FileNotFoundException(String.format(\"The file you specified '%s' does not exist or cannot be found!\", qualifiedFileName));\n\t\t\t\n\t\t}\n\t\t\n\t\t// If we're here then we should have a file that can be opened and read.\n\t\t\n\t\treturn isFilePresent;\n\t\t\n\t}",
"boolean hasFileLoc();",
"@Override\n public boolean exists(File file) {\n\treturn false;\n }",
"boolean hasFilePath();",
"public boolean exists(String path);",
"@Override\n\tpublic synchronized boolean exists(String key) {\n\t\treturn getFile(key).exists();\n\t}",
"boolean hasFileLocation();",
"boolean exists(String path) throws IOException;",
"public boolean exists(String filename) {\n return getFile(filename) != null;\n }",
"public boolean exists() {\n return _file.exists();\n }",
"public boolean fileExists(String fileName){\n\t\t\tboolean exists = false;\n\t\t\ttry{\n\t \t FileInputStream fin = openFileInput(fileName);\n\t\t\t\tif(fin == null){\n\t\t\t\t\texists = false;\n\t\t\t\t}else{\n\t\t\t\t\texists = true;\n\t\t\t\t\tfin.close();\n\t\t\t\t}\n\t\t\t}catch (Exception je) {\n\t\t //Log.i(\"ZZ\", \"AppDelegate:fileExists ERROR: \" + je.getMessage()); \n\t\t exists = false;\n\t\t\t}\n\t\t\treturn exists;\n\t\t}",
"public boolean exists() {\r\n\t\t// Try file existence: can we find the file in the file system?\r\n\t\ttry {\r\n\t\t\treturn getFile().exists();\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\t// Fall back to stream existence: can we open the stream?\r\n\t\t\ttry {\r\n\t\t\t\tInputStream is = getInputStream();\r\n\t\t\t\tis.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch (Throwable isEx) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private boolean checkFileExists(String fPath) {\n\t\tFile file = new File(fPath);\n\t\treturn file.exists();\n\t}",
"public boolean exists(File file) {\n return file.exists();\n }",
"abstract public boolean exists( String path )\r\n throws Exception;",
"public boolean list_exists(Context context) {\n File file = context.getFileStreamPath(\"ingredientes\");\n if (file == null || !file.exists()) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic boolean exists() {\n\t\treturn Files.exists(this.path);\n\t}",
"public boolean fExists(){\n \n try(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file))){\n \n }\n catch (FileNotFoundException e){\n System.out.println(\"File not found\");\n return false;\n }\n catch (IOException e){\n System.out.println(\"Another exception\");\n return false;\n }\n\n return true;\n }",
"public static boolean isFileExistsInAssets(Context context, String assetsFilePath)\n\t{\n\t\tInputStream inputStream;\n\t\ttry\n\t\t{\n\t\t\tinputStream = context.getAssets().open(assetsFilePath);\n\t\t\tinputStream.close();\n\t\t} catch (IOException e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\n\t}",
"public final boolean fileExists() {\n\t if ( m_fileStatus == FileStatus.FileExists || m_fileStatus == FileStatus.DirectoryExists)\n\t return true;\n\t return false;\n\t}",
"private boolean checkFileExists(String file) {\n boolean exist = false;\n File tmpFile = new File(\"./levels/\" + file);\n if (tmpFile.exists()) {\n // file exists\n exist = true;\n }\n return exist;\n }",
"public static boolean fileExists(String filename) {\n return new File(filename).exists();\n }",
"boolean hasFileInfo();",
"boolean hasFileInfo();",
"public boolean exists() {\n\t\t\n\t\tFile temp = new File(this.path);\n\t\treturn temp.exists();\n\t}",
"public static boolean isFileExists(SourceFile sourceFile) throws IOException {\n return isFileExists(sourceFile.getPath(), sourceFile.getSourceType());\n }",
"public boolean existFile(String fileName) {\r\n\t\treturn new File(fileName).exists();\r\n\t}",
"public static void insurePathToFileExists(String filename) {\r\n insurePathToFileExists(new File(filename));\r\n }",
"public abstract boolean doesExist();",
"public synchronized boolean fileExist(String fullPath)\n {\n File file = new File(fullPath);\n if (file != null && file.exists() && file.isFile())\n return true;\n else\n return false;\n }",
"public static boolean doesFileExist(String file, String subDir,\n \t\t\tboolean useInternal, Context c) {\n \t\tboolean exists = false;\n \t\tif (file != null) {\n \t\t\tFileInputStream in = null;\n \t\t\ttry {\n \t\t\t\tin = getFileInputStream(file, subDir, useInternal, c);\n \t\t\t\texists = true;\n \t\t\t\tin.close();\n \t\t\t} catch (FileNotFoundException e) {\n \t\t\t\texists = false;\n \t\t\t} catch (IOException e) {\n \t\t\t\t// no-op\n \t\t\t}\n \t\t}\n \t\treturn exists;\n \t}",
"public boolean exists() {\n return Files.exists(path);\n }",
"boolean hasFileName();",
"boolean hasFileName();",
"public static boolean existsFile(String file) {\n return getFile(file).exists();\n }",
"public boolean fileExistance(String fileName) {\n File file = getActivity().getFileStreamPath(fileName);\n return file.exists();\n }",
"private boolean isFileExist() {\n File check_file = getFilesDir();\n File[] file_check_array = check_file.listFiles();\n for (File current : file_check_array) {\n boolean user_file = isValidName(current.getName());\n if (user_file) {\n return true;\n }\n }\n return false;\n }",
"public static void check_if_exist(String file, Context context){\n\t\tFile listfile = context.getFilesDir();\n\t\tfor(String c: listfile.list()){\n\t\t\t\n\t\t\tif(c.equals(file)){\n\t\t\t\t\n\t\t\t\tFile dir = context.getFilesDir();\n\t\t\t\tFile file1 = new File(dir, file);\n\t\t\t\tboolean deleted = file1.delete();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private boolean sourceExists(File fileToCheck) {\n\t\tif (fileToCheck.exists()) {\n\t\t\tSystem.out.println(\"Source file \"+fileToCheck.getName()+ \" exists.\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tSystem.out.println(\"Source file \"+fileToCheck.getName()+ \" DOESN'T exist.\");\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean exists(String pathName)\n {\n if(new File(pathName).exists())\n {\n return true;\n }\n else\n {\n return false;\n }\n }",
"public static boolean file_list_exists(String filename) {\n boolean exists = true;\n\n try {\n\n FileInputStream fstream = new FileInputStream(\"textfile.txt\");\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n while ((strLine = br.readLine()) != null) {\n File f = new File(strLine);\n if (f.exists() == false) {\n exists = false;\n }\n }\n in.close();\n } catch (Exception e) {//Catch exception if any\n e.printStackTrace();\n }\n return exists;\n }",
"protected boolean resourceExists() {\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tif (workspace == null)\n\t\t\treturn false;\n\t\treturn RodinDB.getTarget(workspace.getRoot(), this.getPath()\n\t\t\t\t.makeRelative(), true) != null;\n\t}",
"boolean getWorkfileExists();",
"public boolean exists(String key) {\n\t\treturn fileData.containsKey(key);\n\t}",
"public static boolean contains(Context context, String key) {\n SharedPreferences sp = context.getSharedPreferences(FILE_NAME, Context.MODE_PRIVATE);\n return sp.contains(key);\n }",
"boolean hasSourceFile();",
"public boolean exists(String name) throws IOException;",
"private boolean touchFileExists() {\n File f = new File(touchFile);\n return f.exists();\n }",
"public boolean exist(String fileName) throws DataAccessException;",
"public static boolean fileExist(String filename) {\n\t\tif (!filename.endsWith(\".xml\")) {\n\t\t\tfilename += \".xml\";\n\t\t}\n \n File file = new File(filename);\n if (file.exists() || file.isDirectory()) {\n return true;\n }\n return false;\n }",
"public boolean isExist(String fileName){\n\t\tFile f = new File(fileName);\n\t\treturn f.exists();\n\t}",
"public boolean isFileExists(String fileName) {\n return profilesMap.containsKey(fileName);\n }",
"@Override\n public boolean doCheck() {\n logger.debug(\" check if destination file exists: \" + strDestFile);\n if (strDestFile != null) {\n if (new File(strDestFile).exists()) {\n return true;\n }\n }\n return false;\n }",
"public boolean fileExists(String name){\r\n try{\r\n new BufferedReader(new FileReader(\"../profiles/\" + name + \".profile\"));\r\n return true;\r\n }\r\n catch(FileNotFoundException e){\r\n return false;\r\n }\r\n }",
"public static boolean isFileExists(String filePath)\n\t{\n\t\tFile file = new File(filePath);\n\t\treturn file.exists();\n\t}",
"@Override\n\tpublic boolean checkExistFile(String aFilePath) {\n\t\treturn eDao.checkExistFile(aFilePath);\n\t}",
"public boolean doesFileExists(String pathToFile) {\n\n try {\n File f = new File( pathToFile );\n if( f.exists() && f.isFile() ) {\n return true;\n }\n }\n catch (Exception fe) {\n //System.err.println(\"You got problem: \" + e.getStackTrace());\n logger.debug( fe.getMessage() );\n }\n return false;\n }",
"private boolean fileNameExists(String fileName) {\n return inputOutputStream.hexists(Constants.DIR_METADATA_BYTES, fileName.getBytes());\n }",
"boolean isFile() throws IOException;",
"boolean isFile(FsPath path);",
"public static boolean isFileExist(String filePath) {\n if (filePath == null || filePath.isEmpty()) {\n return false;\n }\n\n File file = new File(filePath);\n return (file.exists() && file.isFile());\n }",
"public boolean fileExists (String id) throws ParseException {\n \n Query query = new QueryParser(Constants.INDEX_KEY_ID, analyzer).parse(id);\n \n return searchResponse(searchExec(query), query).length > 0;\n }",
"public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }",
"private boolean contains(File file, String resourceName) {\n try {\n if (!file.exists()) {\n return false;\n }\n\n if (file.isDirectory()) {\n File resource = new File(file, resourceName);\n\n if (resource.exists()) {\n return true;\n }\n }\n else {\n // is the zip file in the cache\n ZipFile zipFile = (ZipFile)zipFiles.get(file);\n if (zipFile == null) {\n zipFile = new ZipFile(file);\n zipFiles.put(file, zipFile);\n }\n ZipEntry entry = zipFile.getEntry(resourceName);\n if (entry != null) {\n return true;\n }\n }\n }\n catch (Exception e) {\n log(\"Ignoring Exception \" + e.getClass().getName() + \": \" + e.getMessage() +\n \" reading resource \" + resourceName + \" from \" + file, Project.MSG_VERBOSE);\n }\n\n return false;\n }",
"public Boolean isExist() {\n\t\tif(pfDir.exists())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"boolean safeIsFile(FsPath path);",
"public boolean searchFile(FileObject file)\n throws IllegalArgumentException;",
"public static boolean exists(final String fileName) {\n return new File(fileName).exists();\n }",
"public static boolean fileExists()\r\n\t{\r\n\t\tFile saveFile = new File(\"highscores.txt\");\r\n\t\treturn saveFile.exists();\r\n\t}",
"public boolean fileExist(String filename) throws YAPI_Exception\n {\n byte[] json = new byte[0];\n ArrayList<String> filelist = new ArrayList<>();\n if ((filename).length() == 0) {\n return false;\n }\n json = sendCommand(String.format(Locale.US, \"dir&f=%s\",filename));\n filelist = _json_get_array(json);\n if (filelist.size() > 0) {\n return true;\n }\n return false;\n }",
"boolean hasInodeFile();",
"protected abstract boolean isDirectory(@NonNull String path, T context);",
"public static boolean exists(final String fileName) {\n\n return FileSystem.getInstance(fileName).exists(fileName);\n }",
"boolean existsPath(String requestedUrl);",
"boolean hasSrcPath();",
"public static boolean pathExists(String path){\n\t\treturn( (new File(path)).exists() );\n\t}",
"public static boolean isExists(File file) {\n\t\tfile = comprobarExtension(file);\n\t\treturn file.exists();\n\t}",
"@java.lang.Deprecated boolean hasFile();",
"public static boolean isExisted(String fileName) {\n\t\tFile file = new File(fileName);\n\t\treturn file.exists();\n\t}",
"private static void searchFile(File fileDir) throws Exception {\n String fileName = getFileNameInput();\n File targetFile = new File(fileDir.toString() + \"\\\\\" + fileName);\n boolean fileExists = targetFile.exists();\n if (fileExists) {\n System.out.println(\"File is found on current directory.\");\n } else {\n throw new FileNotFoundException(\"No such file on current directory.\");\n }\n }",
"boolean hasRetrieveFile();",
"@Override\n\tpublic boolean pathExists(String path) {\n\t\treturn false;\n\t}",
"boolean exists();",
"boolean exists();",
"public static boolean alreadyExistCheck(String filePath) {\n File f = new File(filePath);\n return f.exists() && !f.isDirectory();\n }",
"public static File checkDescriptorFileExist(File descriptor) throws IllegalArgumentException {\n if (!descriptor.exists()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" does not exist\");\n }\n if (!descriptor.isFile()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" is not a file\");\n }\n if (!descriptor.canRead()) {\n throw new IllegalArgumentException(descriptor.getAbsolutePath() + \" is not readable\");\n }\n \n return descriptor;\n }",
"boolean doesFileExist(String date)\n throws FlooringMasteryPersistenceException;",
"private boolean targetExists(File fileToCheck) {\n\t\tif (!fileToCheck.exists()) {\n\t\t\tSystem.out.println(\"Target file \"+fileToCheck.getName()+ \" DOESN'T exist.\");\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"public abstract boolean exists();",
"public boolean exists(Path path) {\n try {\n return Files.exists(path);\n } catch (SecurityException e) {\n return false;\n }\n }",
"public final boolean exists()\n {\n if ( m_fileStatus == FileStatus.FileExists ||\n m_fileStatus == FileStatus.DirectoryExists)\n return true;\n return false;\n }",
"public static boolean hasExternalStoragePrivateFile(Context context, String fileType, String fileName) {\n\n\t File path = context.getExternalFilesDir(fileType);\n\t if (path != null) {\n\t File file = new File(path, fileName);\n\t return file.exists();\n\t }\n\t return false;\n\t}",
"boolean hasCompleteFile();"
]
| [
"0.7614487",
"0.74704385",
"0.684565",
"0.6729563",
"0.6715094",
"0.67110735",
"0.6675748",
"0.6651143",
"0.6537608",
"0.6475418",
"0.64658016",
"0.64195746",
"0.6417005",
"0.6402545",
"0.6367113",
"0.63652205",
"0.63498527",
"0.63335097",
"0.6329849",
"0.63262916",
"0.6309076",
"0.6307958",
"0.6266571",
"0.62571824",
"0.6252742",
"0.62324595",
"0.6230399",
"0.61506313",
"0.6147563",
"0.6112397",
"0.6104758",
"0.6104758",
"0.6098859",
"0.60713345",
"0.60685426",
"0.6049622",
"0.6035755",
"0.60337263",
"0.60307056",
"0.6011085",
"0.5994022",
"0.5994022",
"0.5983299",
"0.5967384",
"0.5936596",
"0.5925922",
"0.5887087",
"0.58816916",
"0.5849611",
"0.58481973",
"0.5847814",
"0.58330125",
"0.5831429",
"0.58314013",
"0.5830941",
"0.58271223",
"0.5814989",
"0.5812245",
"0.5803008",
"0.57832944",
"0.5779355",
"0.5772872",
"0.5758635",
"0.57543576",
"0.5753006",
"0.57521546",
"0.5716268",
"0.570272",
"0.56943005",
"0.5694238",
"0.5676381",
"0.5675834",
"0.5648178",
"0.5638051",
"0.5634556",
"0.5631505",
"0.5626515",
"0.56172615",
"0.5601739",
"0.55899787",
"0.55862087",
"0.558177",
"0.55798036",
"0.5566188",
"0.55578864",
"0.55569446",
"0.5551489",
"0.5549453",
"0.5535617",
"0.5500794",
"0.5495266",
"0.5495266",
"0.5486883",
"0.54841906",
"0.5483412",
"0.54798275",
"0.54773015",
"0.5475505",
"0.54726046",
"0.547012",
"0.545373"
]
| 0.0 | -1 |
private static List cipherL = stringToCharArray(defaultKey); | public static String encipher(String string, String key){
key = key != null ? key : defaultKey;
String newString = "";
string = Enigma.handleStringOnInput(string);
string = string.toUpperCase();
for (int i = 0; i < string.length(); i++){
int temp = alphabetL.indexOf(string.charAt(i));
newString += key.charAt(temp);
}
return newString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<Character> getPassKey() {\n\t\tList<Character> key = new LinkedList<Character>();\n\t\tList<Character> initial = new LinkedList<Character>();\n\n\t\tfor( char c : username.toCharArray() ) initial.add(c);\n\t\tfor( char c : password.toCharArray() ) initial.add(c);\n\n\t\tfor ( ; initial.size() > 0 ; ) {\n\t\t\t// Add the first\n\t\t\tkey.add(initial.remove(0));\n\t\t\t// Add the last\n\t\t\tif ( initial.size() > 0 ) key.add(initial.remove(initial.size()-1));\n\t\t\t// Add the middle one\n\t\t\tif ( initial.size() > 1 ) key.add(initial.remove((int)initial.size()/2));\n\t\t}\n\t\treturn key;\n\t}",
"default Cipher cipher() {\n return null;\n }",
"void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }",
"private void generateCipher()\n {\n for (int i = 0; i < 26; i++)\n {\n if (((i + shiftKey) < 26) && ((i + shiftKey) >= 0))\n {\n cipherAlphabet[i] = Alphabet[i + shiftKey];\n }\n else\n {\n cipherAlphabet[i] = Alphabet[(i + shiftKey) - 26];\n }\n } \n }",
"char cipher(int charToCipher);",
"public void llenarDiccionario(){\n String[] letras = {\"a\",\"b\",\"c\",\"d\",\"e\",\"f\",\"g\",\"h\",\"i\",\"j\",\"k\",\"l\",\"m\",\"n\",\n \"o\",\"p\",\"q\",\"r\",\"s\",\"t\",\"u\",\"v\",\"w\",\"x\",\"y\",\"z\",\"0\",\"1\",\"2\",\"3\",\"4\",\n \"5\",\"6\",\"7\",\"8\",\"9\",\" \"};\n String[] encriptado = {\"!\",\"]\",\"^\",\"æ\",\"ü\",\"×\",\"¢\",\"þ\",\"@\",\"§\",\"«\",\n \"A\",\"¥\",\"~\",\"c\",\"r\",\"z\",\"W\",\"8\",\"ç\",\"2\",\"L\",\"f\",\"&\",\"#\",\"[\",\",\",\n \"p\",\"Q\",\"K\",\"m\",\"s\",\"J\",\"V\",\"b\",\"U\",\"-\"};\n for (int i = 0; i < 36; i++) {\n diccionarioEncriptado.put(letras[i], encriptado[i]);\n }\n \n }",
"public String cipherText(String str, String key)\n{\n String cipher_text=\"\";\n \n for (int i = 0; i < str.length(); i++)\n {\n // converting in range 0-25\n if(str.charAt(i) == ' ' || str.charAt(i) == '\\n')\n cipher_text+= str.charAt(i);\n else{ \n int x = (str.charAt(i) + key.charAt(i)) %26;\n // convert into alphabets(ASCII)\n x += 'A';\n \n cipher_text+=(char)(x);}\n }\n return cipher_text;\n}",
"public static String randomize(char[] list) {\n for (int j = 0; j < list.length; j++) {\n int index = (int) (Math.random() * list.length);\n char temp = list[j];\n list[j] = list[index];\n list[index] = temp;\n }\n String randomKey = \"\";\n for (int x = 0; x < list.length; x++) {\n randomKey += (list[x]);\n } \n return randomKey;\n }",
"public void testCaesar(){\n String msg = \"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\";\n \n /*String encrypted = encrypt(msg, key);\n System.out.println(\"encrypted \" +encrypted);\n \n String decrypted = encrypt(encrypted, 26-key);\n System.out.println(\"decrypted \" + decrypted);*/\n \n \n String encrypted = encrypt(msg, 15);\n System.out.println(\"encrypted \" +encrypted);\n \n }",
"public char getKey(){ return key;}",
"private void changeCipher(char keyChar) {\n int index = (keyChar - 'a');\n char[] temp = Arrays.copyOfRange(ALPHABET, 0, index);\n for (int i = index; i < ALPHABET.length; i++) {\n cipher[i-index] = ALPHABET[i];\n }\n for (int j = 0; j < index; j++) {\n cipher[cipher.length - 1 - index] = temp[j];\n }\n }",
"public static String caesarCypherEncryptor(String str, int key) {\n /* StringBuilder cipher = new StringBuilder();\n for (char ch : str.toCharArray()) {\n char shiftedChar = (char) (((ch - 'a' + key) % 26) + 'a');\n cipher.append(shiftedChar);\n }\n return cipher.toString();*/\n\n return str.chars()\n .mapToObj(ch -> (char) (((ch - 'a' + key) % 26) + 'a'))\n .map(String::valueOf)\n .collect(Collectors.joining());\n }",
"public CaesarCipherOne(int key) {this.key=key;}",
"Encryption encryption();",
"char decipher(int charToDeCipher);",
"String getCiphersPassphrase();",
"public String Crypt(String s);",
"java.lang.String getCiphers(int index);",
"String newKey();",
"List<String> mo5876c();",
"StringList keys();",
"public String encrypt() {\n StringBuilder encryptedText = new StringBuilder();\n //Make sure the key is valid.\n if (key < 0 || key > 25) {\n Log.d(\"TAG\", \"encrypt: Error in Keu=y \");\n return \"Key Must be 0 : 25\";\n }\n if (plaintext.length() <= 0) {\n Log.d(\"TAG\", \"encrypt: Error in Plain\");\n return \"Error in Plaintext\";\n }\n //Eliminates any whitespace and non alpha char's.\n plaintext = plaintext.trim();\n plaintext = plaintext.replaceAll(\"\\\\W\", \"\");\n if (plaintext.contains(\" \")) {\n plaintext = plaintext.replaceAll(\" \", \"\");\n }\n //Makes sure that all the letters are uppercase.\n plaintext = plaintext.toUpperCase();\n Log.i(\"Caesar\", \"encrypt: plainis : \" + plaintext);\n for (int i = 0; i < plaintext.length(); i++) {\n char letter = plaintext.charAt(i);\n if (charMap.containsKey(letter) && charMap.get(letter) != null) {\n int lookUp = (charMap.get(letter) + key) % 26;\n encryptedText.append(encryptionArr[lookUp]);\n }\n }\n Log.d(\"Caesar.java\", \"encrypt: the Data is \" + encryptedText.toString());\n return encryptedText.toString();\n }",
"public static String breakCipher(String input) {\n int key = getKey(input);\n System.out.println(\"Found key: \"+key);\n CaesarCipherOne cc = new CaesarCipherOne(key);\n return cc.decrypt(input);\n \n }",
"public void initialize() {\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint N = alphabet.length();\n\n\t\tRandom r = new Random();\n\t\tString key = \"\";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tkey+= alphabet.charAt(r.nextInt(N));\n\t\t}\n\t\tthis.key = key;\n\t}",
"List<AlgCollation> getCollationList();",
"public String generateKey(String str, String key)\n{\n int x = str.length();\n \n for (int i = 0; ; i++)\n {\n if (x == i)\n i = 0;\n if (key.length() == str.length())\n break;\n key+=(key.charAt(i));\n }\n return key;\n}",
"List<String> mo5877c(String str);",
"public String cipher() {\n int[] r1taps = {13, 16, 17, 18};\n int[] r2taps = {20, 21};\n int[] r3taps = {7, 20, 21, 22};\n\n // Set register size and majority bits\n final int R1 = 19;\n final int R1M = 8;\n final int R2 = 22;\n final int R2M = 10;\n final int R3 = 23;\n final int R3M = 10;\n\n // Initialize variables\n String bs = \"\";\n byte[] key = HexStringToBytes(symKey);\n BitSet keySet = new BitSet();\n BitSet keyStream = new BitSet();\n BitSet messageSet = new BitSet();\n\n // Create a byte array length of sample message\n byte[] messageArray = new byte[message.length()];\n\n // Convert the sample message to a byte array\n try {\n messageArray = message.getBytes(\"ISO-8859-1\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n\n // Convert message sample byte array to string\n String as = \"\";\n for (int i = 0; i < messageArray.length; i++) {\n byte b1 = messageArray[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n as += s;\n }\n\n // Convert string of bits to a BitSet\n messageSet = BitStringToBitSet(as);\n\n // Creates string from key byte array\n for (int i = 0; i < 8; i++) {\n byte b1 = key[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n bs += s;\n }\n\n // Convert string of bits to a BitSet\n keySet = BitStringToBitSet(bs);\n\n // Initialize registers\n BitSet r1 = new BitSet();\n BitSet r2 = new BitSet();\n BitSet r3 = new BitSet();\n\n // Process key into registers\n for (int i = 0; i < 64; i++) {\n r1 = ShiftSet(r1, R1, keySet.get(i) ^ Tap(r1, r1taps));\n r2 = ShiftSet(r2, R2, keySet.get(i) ^ Tap(r2, r2taps));\n r3 = ShiftSet(r3, R3, keySet.get(i) ^ Tap(r3, r3taps));\n }\n\n // Clock additional 100 times for additional security (GSM standard)\n for (int i = 0; i < 100; i++) {\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n }\n\n // Create keystream as long as the sample message\n for (int i = 0; i < message.length() * 8; i++) {\n\n // Get keystream bit\n keyStream.set(i, r1.get(R1 - 1) ^ r2.get(R2 - 1) ^ r3.get(R3 - 1));\n\n // Shift majority registers\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n\n }\n\n // XOR the message with the created keystream and return as string\n messageSet.xor(keyStream);\n return BitStringToText(ReturnSet(messageSet, message.length() * 8));\n }",
"public static String caesarCypherEncryptor(String str, int key) {\n\n key = key % 26;\n\n char[] array = str.toCharArray();\n\n for (int i = 0; i < array.length; i++) {\n int value = array[i] + key;\n if(value <= 122)\n array[i] = (char) value;\n else\n array[i] = (char) (96 + value - 122);\n }\n\n return new String(array);\n }",
"static String caesarCipher(String s, int k) {\n char[] chars = s.toCharArray();\n for (int i = 0; i < chars.length; i++) {\n chars[i] = shift(chars[i], k);\n }\n return new String(chars);\n }",
"String key();",
"public String encrypt(String message) {\t\n\n\t\tchar [] letters = new char [message.length()];\n\t\tString newMessage = \"\";\n\n\t\t//create an array of characters from message\n\t\tfor(int i=0; i< message.length(); i++){\n\t\t\tletters[i]= message.charAt(i);\n\t\t}\n\n\t\tfor(int i=0; i<letters.length; i++){\n\t\t\tif(Character.isLetter(letters[i])){ //check to see if letter\n\t\t\t\tif(Character.isUpperCase(letters[i])){ //check to see if it is uppercase\n\t\t\t\t\tnewMessage += letters[i]; //add that character to new string\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t//this creates an array with the numbers that are keys \n\t\tint [] numberOfLetters = new int[newMessage.length()];\n\t\tString alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n\t\tfor(int i=0; i< newMessage.length(); i++){\n\t\t\tfor(int j=0; j< alphabet.length(); j++){\n\t\t\t\tif(newMessage.charAt(i) == alphabet.charAt(j)){ //if they have the same letter\n\t\t\t\t\tnumberOfLetters[i]=j+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\n\t\t//creates an array of the keys\n\t\tint [] key = new int[numberOfLetters.length];\n\t\tint keys;\n\t\tfor(int i=0; i< numberOfLetters.length; i++){\n\t\t\tkeys = getKey();\n\t\t\tkey[i] = keys;\n\t\t}\n\t\n\t\t//create an array for what we encrypted \n\t\tint [] encryptNum = new int[key.length];\n\t\tfor(int i=0; i< key.length; i++){\n\t\t\tint value = numberOfLetters[i] + key[i];\n\t\t\tif(value > 26){\n\t\t\t\tvalue = value-26;\n\t\t\t\tencryptNum[i]= value;\n\t\t\t}else{\n\t\t\t\tencryptNum[i]= value;\n\t\t\t}\n\t\t}\n\n\t\t//turn encryption into letters \n\t\tString encrypt = \"\";\n\t\tchar [] let = new char [encryptNum.length];\n\n\t\tfor(int i=0; i< encryptNum.length; i++){\n\t\t\tint x = encryptNum[i]-1;\n\t\t\tlet[i] = alphabet.charAt(x);\n\t\t}\n\n\t\tfor(int j=0; j< let.length; j++){\n\t\t\tencrypt += let[j];\n\t\t}\n\n\t\t// COMPLETE THIS METHOD\n\t\t// THE FOLLOWING LINE HAS BEEN ADDED TO MAKE THE METHOD COMPILE\n\n\t\treturn encrypt;\n\t}",
"private Object String(char[] password) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public void setKey(char key){ this.key = key;}",
"@Override\n public String decrypt(String s) throws NotInAlphabetException{\n passwordPos = 0; //initialize to 0\n return super.decrypt(s); //invoke parent\n }",
"public static void toCipher() {\n\t\tString symbols = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n\t\tint current = 0;\n\t\tString cipher = \"\";\n\t\tMap<String, Character> map = new HashMap<String, Character>();\n\t\t\n\t\tfor (String[] page : pages) {\n\t\t\tfor (String key : page) {\n\t\t\t\tCharacter val = map.get(key);\n\t\t\t\tif (val == null) {\n\t\t\t\t\tval = symbols.charAt(current++);\n\t\t\t\t\tSystem.out.println(\"KEY/VAL: \" + key + \" = \" + val);\n\t\t\t\t\tSystem.out.println(\"VAL/KEY: \" + val + \" = \" + key);\n\t\t\t\t}\n\t\t\t\tmap.put(key, val);\n\t\t\t\tcipher += val;\n\t\t\t}\n\t\t\tSystem.out.println(cipher);\n\t\t\tcipher = \"\";\n\t\t}\n\t}",
"public String originalText(String cipher_text, String key)\n{\n String orig_text=\"\";\n \n for (int i = 0 ; i < cipher_text.length() && \n i < key.length(); i++)\n {\n if(cipher_text.charAt(i) == ' ' || cipher_text.charAt(i) == '\\n')\n orig_text+=cipher_text.charAt(i);\n else{\n // converting in range 0-25\n int x = (cipher_text.charAt(i) - \n key.charAt(i) + 26) %26; \n // convert into alphabets(ASCII)\n x += 'A';\n orig_text+=(char)(x);\n }\n }\n return orig_text;\n}",
"@org.junit.Test\n public void testCipher() {\n Assert.assertEquals(\"DITISGEHEIM\", Vigenere.cipher(\"DITISGEHEIM\", \"A\", true));\n Assert.assertEquals(\"DITISGEHEIM\", Vigenere.cipher(\"DITISGEHEIM\", \"A\", false));\n\n Assert.assertEquals(\"B\", Vigenere.cipher(\"A\", \"B\", true));\n Assert.assertEquals(\"A\", Vigenere.cipher(\"B\", \"B\", false));\n\n String plain = \"DUCOFIJMA\";\n String key = \"ABC\";\n String shouldEncryptTo = \"DVEOGKJNC\";\n String actualEncrypted = Vigenere.cipher(plain, key, true);\n Assert.assertEquals(shouldEncryptTo, actualEncrypted);\n String decrypted = Vigenere.cipher(shouldEncryptTo, key, false);\n Assert.assertEquals(plain, decrypted);\n }",
"private String key() {\n return \"secret\";\n }",
"OpenSSLKey mo134201a();",
"public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }",
"public String rotationCipherCrack(String cipher, String alphabet);",
"@Test\n\tpublic void doEncrypt() {\n\t\tString src = \"18903193260\";\n\t\tString des = \"9oytDznWiJfLkOQspiKRtQ==\";\n\t\tAssert.assertEquals(Encryptor.getEncryptedString(KEY, src), des);\n\n\t\t/* Encrypt some plain texts */\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.add(\"18963144219\");\n\t\tlist.add(\"13331673185\");\n\t\tlist.add(\"18914027730\");\n\t\tlist.add(\"13353260117\");\n\t\tlist.add(\"13370052053\");\n\t\tlist.add(\"18192080531\");\n\t\tlist.add(\"18066874640\");\n\t\tlist.add(\"15357963496\");\n\t\tlist.add(\"13337179174\");\n\t\tfor (String str : list) {\n\t\t\tSystem.out.println(Encryptor.getEncryptedString(KEY, str));\n\t\t}\n\t}",
"public void makePassword() {\n String str = \"\";\r\n StringBuilder strBuilder = new StringBuilder(str);\r\n Random generator = new Random();\r\n int[] senha = new int[6];\r\n for (int i = 0; i < 6; i++) {\r\n senha[i] = generator.nextInt(10);\r\n strBuilder.append(Integer.toString(senha[i]));\r\n }\r\n str = strBuilder.toString();\r\n this.setPassword(str);\r\n //passwordList.add(l);\r\n }",
"java.util.List<com.vine.vinemars.net.pb.SocialMessage.LetterObj> \n getLettersList();",
"@Override\n public String encrypt(String s) throws NotInAlphabetException{ \n passwordPos = 0; //initialize to 0\n return super.encrypt(s); //invoke parent\n }",
"private static String encrypt(String in){\n\n\t String alphabet = \"1234567890\";\n\n\t String scramble1 = \"<;\\'_$,.?:|)\";\n\t String scramble2 = \"XYZVKJUTHM\";\n\t String scramble3 = \"tuvwxyz&*}\";\n\t String scramble4 = \"~!-+=<>%@#\";\n\t String scramble5 = \"PUDHCKSXWZ\";\n\n\t char messageIn[] = in.toCharArray();\n\t String r = \"\";\n\n\t for(int i = 0; i < in.length(); i++){\n\n\t int letterIndex = alphabet.indexOf(in.charAt(i));\n\n\t if(i % 3 == 0){\n\t r += scramble1.charAt(letterIndex);\n\t }else if (i % 3 == 1){\n\t \tr += scramble2.charAt(letterIndex);\n\t }else if(i % 3 == 2){\n\t \tr += scramble3.charAt(letterIndex);\n\t }\n\t }\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\");\n\t\t\t\tSystem.out.println(\" Encoded Message: \" + r);\n\t\t\t\tSystem.out.println(\"--------------------------------------------------------------------------------------------\\n\\n\");\n\t\treturn r;\n\t}",
"public interface Cipher {\n\n /*\n return key of the cipher\n */\n int getKey();\n\n /*\n set key of the cipher\n */\n void setKey(int key);\n\n /*\n cipher text/char based on the key\n */\n char cipher(int charToCipher);\n\n /*\n decipher text/char based on the key\n */\n char decipher(int charToDeCipher);\n}",
"public void testCaesar(){\n int key1 = 23;\n int key2 = 17;\n String encrypted = encrypt(\"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\", 15);\n System.out.println(\"key is 15\" + \"\\n\" + encrypted);\n String encrypted2 = encryptTwoKeys(\"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\", 8, 21);\n System.out.println(\"key are 8 and 21\" + \"\\n\" + encrypted2);\n }",
"private void encode(){\r\n \r\n StringBuilder sb = new StringBuilder();\r\n \r\n /*\r\n *if a character code is >126 after adding the encryption key, subtract \r\n *95 to wrap\r\n */\r\n for(int i = 0; i < message.length(); i++){\r\n if(message.charAt(i) + key > 126){\r\n int wrappedKey = message.charAt(i) + key - 95;\r\n \r\n sb.append((char) wrappedKey);\r\n \r\n /*\r\n *if a character code ins't > 126 after adding the encryption key\r\n */\r\n } else{\r\n int wrappedKey = message.charAt(i) + key;\r\n sb.append( (char) wrappedKey);\r\n }\r\n }\r\n /*\r\n *case coded message to a string\r\n */\r\n codedMessage = sb.toString();\r\n }",
"private static int[] szyfrujXOR(String str, String key) {\n int[] output = new int[str.length()];\n for(int i = 0; i < str.length(); i++) {\n int o = (Integer.valueOf(str.charAt(i)) ^ Integer.valueOf(key.charAt(i % (key.length() - 1)))) + '0';\n output[i] = o;\n }\n return output; \n }",
"@Test\n public void testAesEncryptForInputKey() throws Exception {\n byte[] key = Cryptos.generateAesKey();\n String input = \"foo message\";\n\n byte[] encryptResult = Cryptos.aesEncrypt(input.getBytes(\"UTF-8\"), key);\n String descryptResult = Cryptos.aesDecrypt(encryptResult, key);\n\n System.out.println(key);\n System.out.println(descryptResult);\n }",
"@Test\r\n\tpublic void testSimple() throws IOException, URISyntaxException, IllegalKeyException{\r\n\t\tbyte data [] = {97,98,99,100};\r\n\t\tbyte [] keys = {50};\r\n\t\tEncryptionDecryptionManager man = new AlgoritemManaging();\r\n\t\tCaesarEncryption ce = new CaesarEncryption(man);\r\n\t\tbyte[] encData = ce.Encrypt(keys,data);\r\n\t\t\r\n\t\tCaesarDecryption c = new CaesarDecryption(man);\r\n\t\tbyte[] decData = c.Decrypt(keys,encData);\r\n\t\tassert decData [0] == (byte)(97);\r\n\t\tassert decData [1] == (byte)(98);\r\n\t\tassert decData [2] == (byte)(99);\r\n\t\tassert decData [3] == (byte)(100);\r\n\t}",
"com.google.protobuf.ProtocolStringList\n getCiphersList();",
"static String[] getKey() {\n return key;\n }",
"public VigenereCipher(String password) {\n super(Alphabet.DEFAULT); //call to parent with DEFAULT Alphabet\n this.password = password;\n }",
"public String toString(){\n return String.format(\"Vigenere Cipher (password='%s')\", password);\n }",
"@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n private char encryptLetter(char keyLetter, char plaintextLetter) {\n\n //if not alpha, return unchanged\n if(!Character.isAlphabetic(plaintextLetter)){\n return plaintextLetter;\n }\n\n //convert to upper case for case-insensitivity while looking\n //up in the table\n keyLetter = Character.toUpperCase(keyLetter);\n char plaintextLetterToUpper = Character.toUpperCase(plaintextLetter);\n\n //to leave case unchanged\n if(Character.isUpperCase(plaintextLetter)) {\n return tabulaRecta[keyLetter-65][plaintextLetter-65];\n }\n\n return Character.toLowerCase(tabulaRecta[keyLetter-65][plaintextLetterToUpper-65]);\n }",
"String decrypt(String text) {\n\t\tchar letter;\n\t\tString finalString = \"\";\t\t\t\t\t// slutliga klartexten\n\t\tint start = key.getStart();\t\t\t\t\t// deklarerar nyckelns startläge\n\t\tint k ;\t\t\t\t\t\t\t\t\t\t// variabel för bokstavens startläge i vanliga alfabetet\n\t\tStringBuilder sb = new StringBuilder();\t\t\t\t\t// skapar en stringbuilder som kan modifieras, bygger upp textsträngar av olika variabler\n\t\t\t\t\t\t\n\t\t// loopen går igenom alla tecken i min krypterade text \t\t\t\n\t\tfor(int i = 0; i < text.length(); i++) {\t\t\t// for-loop för att gå igenom hela texten\t\t\t\t\n\t\t\tletter = text.charAt(i);\t\t\t\t\t\t// ger bokstaven på platsen 0,1,2,3.....\n\t\t\tif(letter == ' ') {\t\t\t\t\t\t\t\t// om det är ett blanktecken så ska det vara ett blanktecken\n\t\t\t\tsb.append(' ');\t\t\t\t\t\t\t\t// sparar blanksteg i en stringBuilder\n\t\t\t} else {\n\t\t\t\tint index=0;\n\t\t\t\tstart=start%26;\t\t\t\t\t\t\t\t// vi behöver endast 26 värden\n\t\t\t\tkey.getStart();\n\n\t\t\t\t\n\t\t\t\twhile(index<26 &&(letter!=key.getLetter(index))) {\t\t// så länge som chiffret inte motsvarar förskjutningen\n\t\t\t\t\tindex++;\t\t\t\t\t\t\t\t\t\t\t// så fortsätter den leta\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tk=index-start;\n\t\t\t\t\n\t\t\t\tif(k>=0)\n\t\t\t\t\tletter=(char)('A'+k);\n\t\t\t\telse letter=(char)('Z'-(start-1-index));\t\t\t\t// räknar från index, om index mindre än start så räknar den bakåt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// så att det inte blir tokigt mellan Z och A.\n\t\t\t\t\n\t\t\t\tsb.append(letter);\t\t\t\t\t\t\t\t\t\t//lagrar bokstav i stringBuilder\n\t\t\t\tstart++;\t\t\t\t\t\t\t\t\t\t\t\t//chiffret börjar om\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\n\t\t\t}\n\t\treturn sb.toString();\t\t\t\t\t\t\t\t\t\t// returnerar sluttexten\n\t\t}",
"public char[] getPassword();",
"private static String m5297cj() {\n try {\n KeyGenerator instance = KeyGenerator.getInstance(\"AES\");\n instance.init(128);\n return Base64.encodeToString(instance.generateKey().getEncoded(), 0);\n } catch (Throwable unused) {\n return null;\n }\n }",
"public String Decrypt(String s);",
"public CaesarCipherTwo(int key1, int key2)\n {\n alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n shiftedAlphabet1 = alphabet.substring(key1)\n + alphabet.substring(0, key1);\n shiftedAlphabet2 = alphabet.substring(key2)\n + alphabet.substring(0, key2);\n mainKey1 = key1;\n mainKey2 = key2;\n }",
"@Test\n public void defaultEncoding() throws SecureCellException {\n String passphrase = \"\\u6697\\u53F7\";\n SecureCell.Seal cellA = SecureCell.SealWithPassphrase(passphrase);\n SecureCell.Seal cellB = SecureCell.SealWithPassphrase(passphrase.getBytes(StandardCharsets.UTF_8));\n byte[] message = \"All your base are belong to us!\".getBytes(StandardCharsets.UTF_8);\n\n byte[] encrypted = cellA.encrypt(message);\n byte[] decrypted = cellB.decrypt(encrypted);\n\n assertArrayEquals(message, decrypted);\n }",
"private String cipher(String s)\n {\n char[] alphabet = \"abcdefghijklmnopqrstuvwxyz\".toCharArray();\n char[] input = s.toCharArray();\n \n int pos = 0;\n String finalString = \"\";\n for( int i = 0; i < input.length; i++ )\n {\n if((input[i] >= 'a' && input[i] <= 'z') || (input[i] >= 'A' && input[i] <= 'Z'))\n {\n for( int j = 0; j < alphabet.length; j++ )\n {\n if( alphabet[j] == input[i] )\n {\n pos = j;\n break;\n }\n }\n finalString += alphabet[(rotateValue+pos)%26];\n }\n else{ finalString += input[i]; }\n }\n return finalString;\n }",
"private KeyPair generarLlaves() \n\t{\n\t\tKeyPair llaves = null;\n\n\t\tKeyPairGenerator generador;\n\t\ttry {generador = KeyPairGenerator.getInstance(algAsimetrica);\n\t\tgenerador.initialize(1024);\n\t\tllaves = generador.generateKeyPair();\n\n\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\n\t\treturn llaves;\n\t}",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\r\n System.out.println(\"Enter The Cipher Text Here\");\r\n String cipherText= input.nextLine();\r\n //remove all spaces from input string\r\n String CTremovingSpaces = cipherText.replaceAll(\"\\\\s\", \"\");\r\n //convert the input string into UpperCase letters\r\n CTremovingSpaces = CTremovingSpaces.toUpperCase();\r\n //remove all special characters from the input String\r\n System.out.println(CTremovingSpaces.replaceAll(\"[^a-zA-Z0-9]\", \"\"));\r\n \r\n //create object of class indexOfCharacters\r\n indexOfCharacters indexOfDecryptedText = new indexOfCharacters();\r\n \r\n // loop for characters\r\n for(int i =0; i<26; i++){\r\n //variable to hold the results of PlainText\r\n String plainText=\"\";\r\n //key\r\n int key = i;\r\n //loop for final cipher text after removing spaces and special characters\r\n for(int j=0; j<CTremovingSpaces.length();j++){\r\n //display the character of CTRS then display its index in characters in class indxofchar.\r\n int index=indexOfDecryptedText.indexOf(CTremovingSpaces.charAt(j));\r\n \r\n if(index == -1){\r\n System.out.println(\"the character does not occur\");\r\n }\r\n if((index-key)>=0)\r\n {\r\n //display the character that output from index-key then store it in plainText\r\n plainText+=indexOfDecryptedText.charAt(index-key);\r\n }\r\n else\r\n {\r\n plainText+=indexOfDecryptedText.charAt((index-key)+26);\r\n }\r\n } \r\n \r\n System.out.println(\"The Plain Text using Key \" + key + \": \" + plainText);\r\n \r\n //convert the string of PlainText into character array\r\n char[] characters2= plainText.toCharArray();\r\n //store the length of the array\r\n int lengthOfArray = characters2.length;\r\n int aCount = 0;\r\n int eCount = 0;\r\n int tCount = 0;\r\n int oCount = 0;\r\n for(int x = 0; x < lengthOfArray; x++)\r\n\r\n {\r\n char characters = characters2[x];\r\n switch (characters) \r\n {\r\n case 'A': \r\n aCount++;\r\n break;\r\n case 'E': \r\n eCount++;\r\n break; \r\n case 'T': \r\n tCount++;\r\n break; \r\n case 'O': \r\n oCount++;\r\n break;}\r\n \r\n }\r\n System.out.println(\"Character of A = \" + aCount);\r\n System.out.println(\"Character of E = \" + eCount);\r\n System.out.println(\"Character of T = \" + tCount);\r\n System.out.println(\"Character of O = \" + oCount);\r\n int sum; \r\n sum = aCount + eCount + tCount + oCount;\r\n System.out.println(\"The sum of AETO = \" + sum);\r\n ///the program will display the count numbers of AETO then calculate the sum of these numbers\r\n ///the greatest number of the sum of AETO will be the plain text (based on cryptanalysis)\r\n \r\n \r\n }}",
"public String encrypt (String input) {\n // parameter checks. If input has nothing, or both keys\n // are zero, we have no work to do.\n if (!hasValue(input)) return \"\";\n if (mainKey1 == 0 && mainKey2 == 0) return input;\n\n // Start with a StringBuilder we can update below.\n StringBuilder encrypted = new StringBuilder(input);\n\n // Walk the input string and transform each letter that exists in\n // our alphabet\n for (int i = 0; i < encrypted.length(); i++) {\n char currChar = encrypted.charAt(i);\n int idx = alphabet.indexOf(currChar);\n if (idx != -1) {\n // Which alphabet do I use? even i is key1, odd i is key2\n String shiftedAlphabet = (i % 2 == 0) ? shiftedAlphabet1: shiftedAlphabet2;\n char newChar = shiftedAlphabet.charAt(idx);\n encrypted.setCharAt(i, newChar);\n }\n }\n\n return encrypted.toString();\n }",
"private void cipherGeneric( APDU apdu, Cipher cipher, short keyLength ) {\n\t}",
"byte[] encrypt(String plaintext);",
"List<C1114c> mo5886k(String str);",
"private List<String> getListForRealKey(String realKey) {\n return List.of(realKey);\n }",
"static public char[] getDefaultChars() {\n return defaultCharArray;\n }",
"private static String decrypt(String in){\n\n\t\t\tString alphabet = \"1234567890\";\n\n\t\t\tString scramble1 = \"<;\\'_$,.?:|)\";\n\t\t String scramble2 = \"XYZVKJUTHM\";\n\t\t String scramble3 = \"tuvwxyz&*}\";\n\t\t String scramble4 = \"~!-+=<>%@#\";\n\t\t String scramble5 = \"PUDHCKSXWZ\";\n\n\t\t char messageIn[] = in.toCharArray();\n\t\t String r = \"\";\n\n\t\t for(int i = 0; i < in.length(); i++){\n\t\t if(i % 3 == 0){\n\t\t int letterIndex = scramble1.indexOf(in.charAt(i));\n\t\t r += alphabet.charAt(letterIndex);\n\t\t }else if (i % 3 == 1){\n\t\t int letterIndex = scramble2.indexOf(in.charAt(i));\n\t\t r += alphabet.charAt(letterIndex);\n\t\t }else if (i % 3 == 2){\n\t\t int letterIndex = scramble3.indexOf(in.charAt(i));\n\t\t r += alphabet.charAt(letterIndex);\n\t\t }\n\t\t }\n\t\treturn r;\n\t}",
"public char crypt(char letter){\n\n char l = conns[alphabet.indexOf(letter)];\n\n return l;\n }",
"public static String caesar3encrypt(String x) {\n char y[]=x.toCharArray();\n for (int i = 0; i < x.length(); i++) {\n int asciivalue = (int) y[i];\n if ((asciivalue >= 65 && asciivalue <= 87) || (asciivalue >= 97 && asciivalue <= 119)) {\n y[i] = (char) (asciivalue + 3);\n } else if ((asciivalue > 87 && asciivalue <= 90) || (asciivalue > 119 && asciivalue <= 122)) {\n y[i] = (char) (asciivalue - 23);\n }\n }\n return (new String(y));\n }",
"public static byte[] encryptText(String plainText,SecretKey secKey) throws Exception{\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.ENCRYPT_MODE, secKey);\r\n\r\n byte[] byteCipherText = aesCipher.doFinal(plainText.getBytes());\r\n\r\n return byteCipherText;\r\n\r\n}",
"public String getCipherSuite() {\n/* 176 */ return this.delegate.getCipherSuite();\n/* */ }",
"private void initKey() {\n String del = \":\";\n byte[] key;\n if (MainGame.applicationType == Application.ApplicationType.Android) {\n key = StringUtils.rightPad(Build.SERIAL + del + Build.ID + del, 32, \"~\").getBytes();\n } else if (MainGame.applicationType == Application.ApplicationType.Desktop) {\n key = new byte[]{0x12, 0x2d, 0x2f, 0x6c, 0x1f, 0x7a, 0x4f, 0x10, 0x48, 0x56, 0x17, 0x4b, 0x4f, 0x48, 0x3c, 0x17, 0x04, 0x06, 0x4b, 0x6d, 0x1d, 0x68, 0x4b, 0x52, 0x50, 0x50, 0x1f, 0x06, 0x29, 0x68, 0x5c, 0x65};\n } else {\n key = new byte[]{0x77, 0x61, 0x6c, 0x0b, 0x04, 0x5a, 0x4f, 0x4b, 0x65, 0x48, 0x52, 0x68, 0x1f, 0x1d, 0x3c, 0x4a, 0x5c, 0x06, 0x1f, 0x2f, 0x12, 0x32, 0x50, 0x19, 0x3c, 0x52, 0x04, 0x17, 0x48, 0x4f, 0x6d, 0x4b};\n }\n for (int i = 0; i < key.length; ++i) {\n key[i] = (byte) ((key[i] << 2) ^ magic);\n }\n privateKey = key;\n }",
"public VigenereCipher(String password,Alphabet alphabet) {\n super(alphabet); //call to parent class\n this.password = password;\n }",
"static String encryption(String s) {\n\n s = s.replaceAll(\" \",\"\");\n StringBuffer sb = new StringBuffer(s);\n int len = sb.length();\n int L = (int)Math.floor(Math.sqrt(len));\n int M = (int)Math.ceil(Math.sqrt(len));\n int p = M;\n List<String> list = new ArrayList<>();\n for (int i = 0; i < sb.length();) {\n if(i+M < sb.length()){\n list.add(sb.substring(i, i+M));\n }else{\n list.add(sb.substring(i, len));\n }\n i=i+M;\n }\n\n StringBuffer[] tps = new StringBuffer[M];\n for (int i = 0; i < M ; i++) {\n StringBuffer tpsi = new StringBuffer();\n for (String str:\n list) {\n if(i < str.length())\n tpsi.append(str.charAt(i));\n }\n tps[i] = tpsi;\n }\n\n StringBuffer ans = new StringBuffer();\n for (StringBuffer str:\n tps) {\n ans.append(str.toString()+\" \");\n }\n return ans.toString();\n }",
"private static void cryptanalysis() {\n\t for (char cipherChar : cipherText.toCharArray()) {\n\t if (Character.isLetter(cipherChar)) { // only letters are encrypted, punctuation marks and whitespace are not\n\t // following line converts letters to numbers between 0 and 25\n\t int cipher = (int) cipherChar - alphaIndex;\n\t // following line increments the value at frequency[cipher] to count frequency of letters used\n\t frequency[cipher] = frequency[cipher] + 1;\n\t }\n\t } \n\t char currChar = 'A';\n \t for (int i = 0; i < 26; i++) {\n \t\t System.out.println(currChar++ + \" \" + frequency[i]);\n \t }\n }",
"private EncryptionKey() {\n }",
"static char[] getAutoactivationChars() {\n\n // To enable content proposal on deleting a char\n \n String delete = new String(new char[] { 8 });\n String allChars = LCL + UCL + NUMS + delete;\n return allChars.toCharArray();\n }",
"protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }",
"public static void main(String[] args) {\n \n byte[] cadena = null;\n byte[] cadenaEncriptada = null;\n byte[] cadenaDencriptada = null;\n String cadena2=\"Hola, bona tarda!, com estas? qqoepoepoepoepooepoepoepoepoepoe\";\n \n SecretKey key=null;\n \n cadena=cadena2.getBytes();\n key=keygenKeyGeneration(128);\n cadenaEncriptada=encryptData(key,cadena);\n System.out.println(cadena2);\n cadena2=cadenaEncriptada.toString();\n System.out.println(cadena2);\n cadenaDencriptada=dencryptData(key,cadenaEncriptada);\n String misstageDencriptat = new String(cadenaDencriptada);\n System.out.println(misstageDencriptat);\n \n }",
"protected char[] initialValue() {\n return new char[c.jk];\n }",
"public static void main(String[] args) \r\n {\n String message1 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\r\n System.out.println(encrypt (message1, 3));\r\n System.out.println(decrypt (encrypt(message1,3) ,3));\r\n System.out.println(encrypt(message1.toLowerCase(),5));\r\n \r\n System.out.println(decrypt(encrypt(message1.toLowerCase() ,5 ) ,5));\r\n }",
"CaesarCipher(int key) {\n this.key = key;\n }",
"private ArrayList<Character> characterArrayListMaker(String s) {\n ArrayList<Character> result = new ArrayList<Character>();\n for (int i = 0; i < s.length(); i++){\n result.add(s.charAt(i));\n }\n return result;\n }",
"private byte[] encStrToBytes(char[] sPlainText, long lNewCBCIV)\n\t{\n\t\tint nI, nPos, nStrLen;\n\t\tchar cActChar;\n\t\tbyte bPadVal;\n\t\tbyte[] buf;\n\t\tint nNumBytes;\n\t\tnStrLen = sPlainText.length;\n\t\tnNumBytes = ((nStrLen << 1) & ~7) + 8;\n\t\tbuf = new byte[nNumBytes];\n\t\t// System.out.println(\"CBCIV = [\" + Long.toString(lNewCBCIV) + \"] hex = [\" + Long.toHexString(lNewCBCIV) + \"]\");\n\t\t// System.out.print(\"text = [\");\n\t\t// for (int i = 0; i < sPlainText.length; i++ ) {\n\t\t// System.out.print( sPlainText[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\t// System.out.println(\"Alocated \" + nNumBytes + \" byte buffer\");\n\t\t// System.out.println(\"Buffer length = \" + buf.length + \" bytes\");\n\t\tnPos = 0;\n\t\tfor (nI = 0; nI < nStrLen; nI++)\n\t\t{\n\t\t\tcActChar = sPlainText[nI];\n\t\t\tbuf[nPos++] = (byte) ((cActChar >> 8) & 0x0ff);\n\t\t\tbuf[nPos++] = (byte) (cActChar & 0x0ff);\n\t\t}\n\t\tbPadVal = (byte) (buf.length - (nStrLen << 1));\n\t\twhile (nPos < buf.length)\n\t\t{\n\t\t\tbuf[nPos++] = bPadVal;\n\t\t}\n\t\t// int bytesPrinted = 0;\n\t\t// System.out.print(\"unencryp bytes=[\");\n\t\t// for (int i = 0; i < nNumBytes; i++){\n\t\t// System.out.print( (int)buf[i]);\n\t\t// System.out.print( \",\");\n\t\t// bytesPrinted++;\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\t// System.out.println(\"Buf length check \" + nNumBytes + \" = \" + buf.length);\n\t\t// System.out.println(\"Bytes printed = \" + bytesPrinted);\n\t\tm_bfc.setCBCIV(lNewCBCIV);\n\t\tm_bfc.encrypt(buf, 0, buf, 0, buf.length);\n\t\t// System.out.println(\"Encrypted buffer length = \" + buf.length + \" bytes\");\n\t\t// System.out.print(\" encryp bytes=[\");\n\t\t// for (int i = 0; i < nNumBytes; i++){\n\t\t// System.out.print( buf[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\tint totalNumBytes = EQBlowfishECB.BLOCKSIZE + buf.length;\n\t\tbyte[] result = new byte[totalNumBytes];\n\t\tEQBinConverter.longToByteArray(lNewCBCIV, result, 0);\n\t\tint count = 0;\n\t\tfor (int i = EQBlowfishECB.BLOCKSIZE; i < totalNumBytes; i++)\n\t\t{\n\t\t\tresult[i] = buf[count++];\n\t\t}\n\t\t// System.out.print(\" CBCIV bytes=[\");\n\t\t// for (int i = 0; i < EQBlowfishCBC.BLOCKSIZE; i++){\n\t\t// System.out.print( result[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\t// System.out.println(\"Final Buffer length = \" + result.length + \" bytes\");\n\t\t// System.out.print(\" final bytes=[\");\n\t\t// for (int i = 0; i < totalNumBytes; i++){\n\t\t// System.out.print( result[i]);\n\t\t// System.out.print( \",\");\n\t\t// }\n\t\t// System.out.println(\"]\");\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic String encriptar(String string) {\n\r\n \r\n String newName=\"\";\r\n for (int i = 0; i < string.length(); i++) {\r\n // instrucción switch con tipo de datos int\r\n switch (string.charAt(i)) \r\n {\r\n case 'a' : newName+=\"1,\";\r\n break;\r\n case 'b' : newName+=\"2,\";\r\n break;\r\n case 'c' : newName+=\"3,\";\r\n break;\r\n case 'd' : newName+=\"4,\";\r\n break;\r\n case 'e' : newName+=\"5,\";\r\n break;\r\n case 'f' : newName+=\"6,\";\r\n break;\r\n case 'g' : newName+=\"7,\";\r\n break;\r\n case 'h' : newName+=\"8,\";\r\n break;\r\n case 'i' : newName+=\"9,\";\r\n break;\r\n case 'j' : newName+=\"10,\";\r\n break;\r\n case 'k' : newName+=\"11,\";\r\n break;\r\n case 'l' : newName+=\"12,\";\r\n break;\r\n case 'm' : newName+=\"13,\";\r\n break;\r\n case 'n' : newName+=\"14,\";\r\n break;\r\n case 'ñ' : newName+=\"15,\";\r\n break;\r\n case 'o' : newName+=\"16,\";\r\n break;\r\n case 'p' : newName+=\"17,\";\r\n break;\r\n case 'q' : newName+=\"18,\";\r\n break;\r\n case 'r' : newName+=\"19,\";\r\n break;\r\n case 's' : newName+=\"20,\";\r\n break;\r\n case 't' : newName+=\"21,\";\r\n break;\r\n case 'u' : newName+=\"22,\";\r\n break;\r\n case 'v' : newName+=\"23,\";\r\n break;\r\n case 'w' : newName+=\"24,\";\r\n break;\r\n case 'x' : newName+=\"25,\";\r\n break;\r\n case 'y' : newName+=\"26,\";\r\n break;\r\n case 'z' : newName+=\"27,\";\r\n break;\r\n case ' ' : newName+=\"0,\";\r\n break;\r\n \r\n \r\n }\r\n \r\n }\r\n \r\n String palabraFinal= eliminarComaSi(newName);\r\n return palabraFinal;\r\n\t}",
"public MyHashTableCC(){\n\t\tm_arraylists = new MyArraylist[DIFF_CHARACTERS];\n\n\t\tfor (int i = 0; i < m_arraylists.length; i++){\n\t\t\tm_arraylists[i] = new MyArraylist();\n\t\t}\n\t}",
"public KeyGenerator() {\n this.publicList = new SinglyLinkedList();\n this.privateList = new PrivateKey();\n }",
"public String encryptTwoKeys(String input, int key1, int key2) {\n String stringsWithK1 = encrypt(input, key1);\n String stringsWithK2 = encrypt(input, key2);\n String empty = \"\";\n\n for(int i = 0; i < input.length; i++) {\n if(i % 2 == 0) {\n empty = empty + stringsWithK1.charAt(i);\n } else {\n empty = empty + stringsWithK2.charAt(i);\n }\n return empty;\n }\n }",
"public abstract List<String> getAllKeys();",
"private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }",
"@Override\n\tprotected String getAdjacentKeys(char key) {\n\t\tif((key >= 'a' && key <= 'z') || (key >= 'A' && key <= 'Z')) {\n\t\t\tif(Character.isLowerCase(key))\n\t\t\t\treturn adjacentKeys[key - 'a'];\n\t\t\telse\n\t\t\t\treturn adjacentKeys[Character.toLowerCase(key) - 'a'];\n\t\t}\n\t\t\n\t\treturn String.valueOf(key);\n\t}",
"public String key_fill(String K, char[][] table)\r\n {\r\n int c=0, x=0, ni=0, nj=0, z=0;\r\n K=K.toUpperCase(); //converting the whole key to uppercase\r\n int l=K.length();\r\n String key1=\"\";\r\n \r\n //checking whether any letter is present more than once or not.\r\n for(int i=0; i<l-1; i++) \r\n {\r\n for(int j=i+1; j<l; j++)\r\n {\r\n if(K.charAt(i)==K.charAt(j))\r\n {\r\n c++; //c -> count. \r\n break; //If any letter is present more than once c becomes 1 & the loops are terminated.\r\n }\r\n }\r\n }\r\n \r\n //If any letter is present more than once execute this loop.\r\n if(c==1) \r\n {\r\n int l1=key1.length();\r\n \r\n //removing the extra letters\r\n for(int i =0; i<l; i++)\r\n {\r\n l1=key1.length();\r\n for(int j=0; j<l1; j++)\r\n {\r\n if(K.charAt(i)==key1.charAt(j))\r\n x++;\r\n }\r\n if(x==0)\r\n key1=key1+K.charAt(i);\r\n x=0;\r\n }\r\n \r\n int len=key1.length();\r\n int u=0, v=0;\r\n \r\n //checking the no. of I & J\r\n for(int i=0; i<len; i++)\r\n {\r\n if(key1.charAt(i)=='I')\r\n u++;\r\n else if(key1.charAt(i)=='J')\r\n v++;\r\n }\r\n \r\n //if i & j both are present, transform it to a \"only i present key\"\r\n if(u>0 && v>0)\r\n {\r\n String str=\"\";\r\n \r\n //if j is encountered in the key, ignore it. Take only the i.\r\n for(int i=0; i<len; i++)\r\n {\r\n if(key1.charAt(i)!='J')\r\n str=str+key1.charAt(i); //creating the new key with no J in it\r\n else\r\n continue;\r\n }\r\n key1=str; //storing the new key to key1\r\n }\r\n len=key1.length();\r\n \r\n ni=len/5; //checking the no. of rows the key requires\r\n nj=len%5; //checking the no. of columns (other than the full rows) the key requires\r\n \r\n //if the key requires more than or equal to 1 row\r\n if(ni>0)\r\n {\r\n //filling the complete rows first\r\n for(int i=0;i<ni;i++)\r\n {\r\n for(int j=0; j<5; j++)\r\n {\r\n table[i][j]=key1.charAt(z);\r\n z++;\r\n }\r\n }\r\n \r\n //then filling the independent columns\r\n for(int i=0; i<nj; i++)\r\n {\r\n table[ni][nj]=key1.charAt(z);\r\n z++;\r\n }\r\n }\r\n \r\n //if the key requires less than 1 row then execute this\r\n else\r\n {\r\n for(int i=0; i<nj; i++)\r\n {\r\n table[0][i]=key1.charAt(i);\r\n }\r\n }\r\n return key1; //after the table is filled, the transformed key is sent to main\r\n }\r\n \r\n \r\n //if no letter in the key is reapeated.\r\n else \r\n {\r\n int u=0, v=0;\r\n \r\n //counting the no. of i and j\r\n for(int i=0; i<l; i++)\r\n {\r\n if(K.charAt(i)=='I')\r\n u++;\r\n else if(K.charAt(i)=='J')\r\n v++;\r\n }\r\n \r\n //if i & j both are present, transform it to a \"only i present key\"\r\n if(u>0 && v>0)\r\n {\r\n String str=\"\";\r\n \r\n //if j is encountered in the key, ignore it. Take only the i.\r\n for(int i=0; i<l; i++)\r\n {\r\n if(K.charAt(i)!='J')\r\n str=str+K.charAt(i); //creating the new key with no J in it\r\n else\r\n continue;\r\n }\r\n K=str; //storing the new key to K\r\n }\r\n l=K.length();\r\n \r\n ni=l/5; //checking the no. of rows the key requires\r\n nj=l%5; //checking the no. of columns (other than the full rows) the key requires\r\n \r\n \r\n //if the key requires more than or equal to 1 row\r\n if(ni>0)\r\n {\r\n //filling the complete rows first\r\n for(int i=0; i<ni; i++)\r\n {\r\n for(int j=0;j<5;j++)\r\n {\r\n table[i][j]=K.charAt(z);\r\n z++;\r\n }\r\n }\r\n \r\n //then filling the independent columns\r\n for(int i=0; i<nj; i++)\r\n {\r\n table[ni][i]=K.charAt(z);\r\n z++;\r\n }\r\n }\r\n \r\n \r\n //if the key requires less than 1 row then execute this\r\n else\r\n {\r\n for(int i=0; i<nj; i++)\r\n {\r\n table[0][i]=K.charAt(i);\r\n }\r\n }\r\n \r\n return K; //after the table is filled, the transformed key is sent to main \r\n }\r\n }",
"private void initKeys() { \n //add left, down, right, up\n playerKeys.add(new keyList(KeyInput.KEY_J, KeyInput.KEY_K, KeyInput.KEY_L, KeyInput.KEY_I));\n }"
]
| [
"0.64397514",
"0.6207916",
"0.6147832",
"0.6135187",
"0.60158306",
"0.59974295",
"0.59591854",
"0.59121984",
"0.589506",
"0.5870871",
"0.58691597",
"0.58631736",
"0.5846902",
"0.5817694",
"0.5799223",
"0.5792469",
"0.57484734",
"0.57470673",
"0.57431406",
"0.57205933",
"0.57130367",
"0.56541127",
"0.5636233",
"0.56287",
"0.55702823",
"0.5568168",
"0.55567193",
"0.55522734",
"0.5548009",
"0.5494592",
"0.54810154",
"0.546434",
"0.5461003",
"0.5437551",
"0.54341286",
"0.54244757",
"0.5421684",
"0.5409106",
"0.5408072",
"0.5398515",
"0.5388704",
"0.53810817",
"0.53790534",
"0.53759444",
"0.5363408",
"0.5353378",
"0.5352051",
"0.53453773",
"0.5339456",
"0.5333311",
"0.53198993",
"0.53112173",
"0.53015554",
"0.5301182",
"0.5299878",
"0.5288907",
"0.528804",
"0.5280159",
"0.52781576",
"0.5270393",
"0.5268602",
"0.52581275",
"0.5257256",
"0.525688",
"0.52519584",
"0.52514714",
"0.5246229",
"0.5245863",
"0.52358264",
"0.5233201",
"0.52207613",
"0.5220016",
"0.5217296",
"0.52128315",
"0.52059716",
"0.5204134",
"0.5204014",
"0.5200773",
"0.5198984",
"0.51980126",
"0.5197236",
"0.51936054",
"0.51933837",
"0.51917505",
"0.5188141",
"0.518492",
"0.5184259",
"0.5181458",
"0.5180189",
"0.51781666",
"0.5168178",
"0.51607645",
"0.5157861",
"0.5150132",
"0.514957",
"0.5142827",
"0.51416427",
"0.51400423",
"0.5132042",
"0.5131994"
]
| 0.57108974 | 21 |
Creates an object and store it. Returns created object with all fields filled. | int add(T objectToCreate); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Object create(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n try {\n em.persist(object);\n em.getTransaction().commit();\n LOG.debug(\"Persisted \" + object);\n } catch (Exception e) {\n LOG.error(\"Could not persist Object\", e);\n em.getTransaction().rollback();\n } finally {\n em.close();\n }\n return object;\n }",
"T create() throws PersistException;",
"public void create(){}",
"public abstract T create(T obj);",
"public DBObject createNew() {\n DBObjectImpl obj = (DBObjectImpl) getNewObject();\n obj.DELETE_STMT_STR = DELETE_STMT_STR;\n obj.INSERT_STMT_STR = INSERT_STMT_STR;\n obj.UPDATE_STMT_STR = UPDATE_STMT_STR;\n obj.QUERY_STMT_STR = QUERY_STMT_STR;\n\n return obj;\n }",
"Entity createEntity();",
"OBJECT createOBJECT();",
"public T create(T object) throws SQLException;",
"public boolean create(ModelObject obj);",
"public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }",
"public Object create() {\n executeCallbacks(CallbackType.BEFORE_CREATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnCreate();\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n if (errors.size() > 0) return this;\n\n Adapter adapter = getAdapter();\n if (getId() == null && adapter.shouldPrefetchPrimaryKey(getTableName())) {\n this.id = adapter.getNextSequenceValue(getSequenceName());\n }\n\n StringBuilder sql = new StringBuilder();\n sql.append(\"INSERT INTO \").append(getTableName()).append(\" (\");\n sql.append(quotedColumnNames(includePrimaryKey));\n sql.append(\") VALUES (\").append(quotedAttributeValues(includePrimaryKey)).append(\")\");\n\n id = adapter.insert(sql.toString(), getClass().getName() + \" Create\");\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n\n executeCallbacks(CallbackType.AFTER_CREATE);\n\n return id;\n }",
"public Long createRecord(Record object);",
"T createEntity();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic Libro create(Libro libro) {\n\t\treturn libroRepository.save(libro);\r\n\t}",
"public void create() {\n\t\t\n\t}",
"@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}",
"E create(E entity);",
"E create(E entity);",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"T create();",
"T create();",
"public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"void create(T entity);",
"public void create(final Object obj) {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().save(obj);\n }\n });\n }",
"void create(Model model) throws Exception;",
"E create(Resource data);",
"Snapshot create();",
"@BodyParser.Of(play.mvc.BodyParser.Json.class)\n public static Result create() throws JsonParseException, JsonMappingException, IOException {\n JsonNode json = request().body().asJson();\n Thing thing = mapper.treeToValue(json, Thing.class);\n thing.save();\n return ok(mapper.valueToTree(thing));\n }",
"OrderDTO create(OrderDTO orderDTO);",
"@Override\n\tpublic void create() {\n\n\t}",
"ObjectField createObjectField();",
"@Transactional\n\tpublic T create(T newInstance) {\n\t\tthis.em.persist(newInstance);\n\t\treturn newInstance;\n\t}",
"WithCreate withCreationData(CreationData creationData);",
"User create(User user);",
"private void createObject(JSONObject delivery) {\n\t\t//TODO: create the Object\n\t}",
"Article createArticle();",
"RentalObject createRentalObject();",
"T crear(T obj);",
"Account create();",
"public abstract <T> T create(Object object, Class<T> clazz);",
"public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }",
"@Override\r\n\tpublic boolean create(Jeu obj) {\n\t\treturn false;\r\n\t}",
"For createFor();",
"public abstract void create();",
"@POST( CONTROLLER )\n VersionedObjectKey createObject( @Body CreateObjectRequest request );",
"CreationData creationData();",
"void create(E entity);",
"protected abstract DBObject getNewObject();",
"void create(T entity) throws Exception;",
"Person createPerson();",
"void create(T t);",
"@Override\n\tpublic Map<String, Object> create(StoreBase entity) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic RigoDocumento create(RigoDocumentoPK rigoDocumentoPK) {\n\t\tRigoDocumento rigoDocumento = new RigoDocumentoImpl();\n\n\t\trigoDocumento.setNew(true);\n\t\trigoDocumento.setPrimaryKey(rigoDocumentoPK);\n\n\t\treturn rigoDocumento;\n\t}",
"protected abstract ENTITY createEntity();",
"public abstract String createNewObject(boolean fPromote_p, Object mode_p, OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p,\r\n OwObject parent_p, String strMimeType_p, String strMimeParameter_p, boolean fKeepCheckedOut_p) throws Exception;",
"protected Object create(Object entity, Class clazz) {\r\n\r\n try {\r\n EntityTransaction transaction = entityManager.getTransaction();\r\n transaction.begin();\r\n entityManager.persist(entity);\r\n transaction.commit();\r\n return entity;\r\n } catch (Exception e) {\r\n System.err.println(\"Erro ao criar Entidade \" + e.getMessage());\r\n }\r\n return null;\r\n }",
"public Device createObject(String brand, String model, Integer price, String photo, String date);",
"Book createBook();",
"@Override\n\tpublic Item create() {\n\t\tLOGGER.info(\"Shoe Name\");\n\t\tString item_name = util.getString();\n\t\tLOGGER.info(\"Shoe Size\");\n\t\tdouble size = util.getDouble();\n\t\tLOGGER.info(\"Set Price\");\n\t\tdouble price = util.getDouble();\n\t\tLOGGER.info(\"Number in Stock\");\n\t\tlong stock = util.getLong();\n\t\tItem newItem = itemDAO.create(new Item(item_name, size, price, stock));\n\t\tLOGGER.info(\"\\n\");\n\t\treturn newItem;\n\t}",
"void create(Order order);",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"DomainModel createDomainModel();",
"ID create(T entity);",
"@Override\n\t@Transactional\n\tpublic T create(T entity) {\n\t\tif (entity == null) {\n\t\t\treturn null;\n\t\t}\n\t\thibernateTemplate.save(entity);\n\t\treturn entity;\n\t}",
"public Position create() {\n\t\tfinal Actor actorLogged = this.actorService.findActorLogged();\n\t\tAssert.notNull(actorLogged);\n\t\tthis.actorService.checkUserLoginCompany(actorLogged);\n\n\t\tPosition result;\n\n\t\tresult = new Position();\n\t\tfinal Collection<Problem> problems = new HashSet<>();\n\t\tfinal Collection<Application> applications = new HashSet<>();\n\n\t\t// R4\n\t\tfinal String ticker = \"\"; //Será generado en el reconstruct\n\n\t\tresult.setTicker(ticker);\n\t\tresult.setProblems(problems);\n\t\tresult.setApplications(applications);\n\t\tresult.setIsFinalMode(false);\n\t\tresult.setIsCancelled(false);\n\n\t\treturn result;\n\t}",
"private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}",
"@Override\r\n\tpublic void create(T t) {\n\t\tsuper.getSessionFactory().getCurrentSession().save(t);\r\n\t\tsuper.getSessionFactory().getCurrentSession().flush();\r\n\t}",
"Object create(Object source);",
"public boolean save(New object);",
"DataModel createDataModel();",
"public abstract String createNewObject(boolean fPromote_p, Object mode_p, OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p,\r\n OwObject parent_p, String strMimeType_p, String strMimeParameter_p) throws Exception;",
"ZenModel createZenModel();",
"void create(Student entity);",
"@Override\n\tpublic void create () {\n\n\t}",
"T save(T object);",
"public M create(P model);",
"@Override\n public Order create(Order order) {\n this.orders.add(order);\n save();\n return order;\n }",
"public abstract void create(T t);",
"ObjectValue createObjectValue();",
"public abstract String createNewObject(OwResource resource_p, String strObjectClassName_p, OwPropertyCollection properties_p, OwPermissionCollection permissions_p, OwContentCollection content_p, OwObject parent_p, String strMimeType_p,\r\n String strMimeParameter_p) throws Exception;",
"public Person create() {\n\t\treturn personRepository.create();\n\t}",
"T save(T obj);",
"public <T extends RefObject> T createObject(Class<T> type) throws CreationException {\n\t\treturn this.<T>createObject(null, type, new Field[] {});\n\t}",
"public void create (Object o) \n throws NoPeerException, SQLException\n {\n PersistentPeer peer = getPeer(o);\n peer.setPersistentEngine (this);\n peer.create (o);\n }",
"@Override\n\tpublic boolean create(Etape obj) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object);\n\n\t\t// Setters\n\t\taddSetters(object);\n\n\t\t// Build!\n\t\taddBuild(object);\n\n\t\t// Done!\n\t\twrite(object);\n\t}",
"StatefulRemoteObjectB create() throws RemoteException, CreateException;",
"void create(Artist artist);",
"public App create(App obj) {\n \n JsonNode node = getClient().post(Routes.APP_CREATE, toJsonNode(obj));\n App rapp = getMapper().convertValue(node, App.class);\n \n if (!node.has(\"id\")) {\n throw new ClientException(\"Missing ID on object creation\");\n }\n \n obj.merge(rapp);\n obj.setId(rapp.getId());\n\n return obj;\n }",
"public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }",
"void create(Book book);"
]
| [
"0.6738994",
"0.64698076",
"0.6441097",
"0.6305345",
"0.6256671",
"0.62543774",
"0.6159867",
"0.61075944",
"0.6091561",
"0.60751146",
"0.59834236",
"0.5975091",
"0.59528714",
"0.59485096",
"0.5906442",
"0.5901694",
"0.58874494",
"0.5883356",
"0.5883356",
"0.58794004",
"0.58794004",
"0.58794004",
"0.58794004",
"0.58794004",
"0.58794004",
"0.58794004",
"0.58610374",
"0.58610374",
"0.58385986",
"0.5830683",
"0.5826719",
"0.5823283",
"0.5805624",
"0.5800827",
"0.5796365",
"0.5787785",
"0.5783341",
"0.5773598",
"0.5773055",
"0.57631165",
"0.5761686",
"0.57563365",
"0.5730727",
"0.57062465",
"0.5697375",
"0.5693995",
"0.56856835",
"0.5682061",
"0.565456",
"0.56481373",
"0.56477064",
"0.56434816",
"0.56406766",
"0.5639623",
"0.5630901",
"0.56274",
"0.56205016",
"0.5613124",
"0.56000143",
"0.55970675",
"0.55898875",
"0.5587326",
"0.5580108",
"0.5576295",
"0.5576226",
"0.5575702",
"0.55747813",
"0.5558453",
"0.5556095",
"0.55499387",
"0.55408984",
"0.5539394",
"0.5525085",
"0.5497188",
"0.5481571",
"0.54791564",
"0.54734814",
"0.547167",
"0.5441453",
"0.54407305",
"0.5433101",
"0.54312557",
"0.5429515",
"0.54217166",
"0.5417262",
"0.5412831",
"0.5411749",
"0.5408936",
"0.5398979",
"0.53935105",
"0.53901106",
"0.5387895",
"0.53830653",
"0.5369594",
"0.5369044",
"0.53656167",
"0.5362282",
"0.53587115",
"0.53571993",
"0.5343742",
"0.5342236"
]
| 0.0 | -1 |
Updates an object. If this object not exists will throw | void update(T objectToUpdate); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean update(Object obj) throws Exception;",
"public void update(Object obj) throws HibException;",
"public abstract Object update(String oid, Object obj)\n\t\t\tthrows OIDDoesNotExistException, ObjectNotSupportedException, LockNotAvailableException;",
"public boolean update(New object);",
"public void updateByObject()\r\n\t{\n\t}",
"void update(T obj) throws PersistException;",
"@Override\n\tpublic void update(T obj) throws Exception {\n\t\t\n\t}",
"@Override\r\n\tpublic void update(Object obj) throws DAOException {\n\r\n\t}",
"T update(T object);",
"@Override\n public void update(Object object, Object id) throws DAOException {\n\n }",
"private void updateObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n\n try {\n crudService.update((SimpleORMInterface) object);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n ConnectionPoll.releaseConnection(connection);\n\n try {\n connection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }",
"public abstract Object update(String oid, Object obj, String lockKey)\n\t\t\tthrows OIDDoesNotExistException, ObjectNotSupportedException, InvalidLockException;",
"@Override\r\n\tpublic Ngo update(Ngo obj) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}",
"@Override\n\tpublic void update(Unidade obj) {\n\n\t}",
"public boolean update(ModelObject obj);",
"public abstract void update(Object obj) ;",
"public abstract boolean update(T transientObject);",
"@Override\n\tpublic int update(Object obj) throws SQLException {\n\t\treturn 0;\n\t}",
"@Transactional(isolation=Isolation.READ_COMMITTED, \n\t\t\tpropagation=Propagation.REQUIRED,\n\t\t\trollbackFor=Exception.class)\n\tpublic void update(Object object) {\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(object);\n\t}",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }",
"void update(ObjectType object)\n throws GuacamoleException;",
"public void doUpdate(T objectToUpdate) throws SQLException;",
"public void update(T obj) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t\t\n\t}",
"public WriteResult updateObject(String id, String name) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int update(Object object) {\n\t\treturn 0;\n\t}",
"public Client update(Client object) throws DataNotFoundException {\n\t\treturn null;\r\n\t}",
"E update(E entiry);",
"public void update(T object) throws SQLException;",
"protected void update(Object object) {\n EntityManager em = getEntityManager();\n em.getTransaction().begin();\n try {\n em.merge(object);\n em.getTransaction().commit();\n } catch (Exception e) {\n LOG.error(\"Could not update Object\", e);\n em.getTransaction().rollback();\n } finally {\n em.close();\n }\n }",
"@Override\r\n\tpublic Ressource update(Ressource obj) {\n\t\treturn null;\r\n\t}",
"public void update(T obj) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tsession.update(obj);\n\t}",
"@Override\n\tpublic void update(Object o) {\n\n\t}",
"@Override\n\tpublic void update(Object o) {\n\n\t}",
"public abstract <T> T update(Object object, Class<T> clazz);",
"public void updateRecord(Record object);",
"public boolean update(Etudiant obj) {\n\t\treturn false;\n\t}",
"public static void update(Object object) {\n\n\t\tfinal Session session = HibernateUtil.getSessionFactory().openSession();\n\t\tTransaction transaction = null;\n\n\t\ttry {\n\t\t\ttransaction = session.beginTransaction();\n\n\t\t\tsession.update(object);\n\t\t\ttransaction.commit();\n\t\t} catch (HibernateException e) {\n\t\t\tif (null != transaction) {\n\t\t\t\ttransaction.rollback();\n\t\t\t}\n\t\t\te.printStackTrace(); // todo: log to file instead\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\t}",
"@Override\n\tpublic void update(Object object) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction ts = session.beginTransaction();\n\t\tsession.update(object);\n\t\tts.commit();\n\t\tsession.close();\n\t}",
"@Transactional(propagation=Propagation.REQUIRED,isolation =Isolation.REPEATABLE_READ, rollbackFor = Exception.class)\r\n public int update(Test obj) throws Exception {\r\n if(obj == null ){\r\n return 0;\r\n }\r\n List<Test> list = new ArrayList<Test>();\r\n list.add(obj);\r\n return this.update(list);\r\n }",
"void update(T transientObject);",
"@Transactional(propagation = Propagation.REQUIRED)\n\tpublic ServiceResult update(final Object obj){\n\t\tServiceResult result = new ServiceResult();\n\n\t\ttry{\n\t\t\tdao.update(obj);\n\t\t\tlog.debug(\"Updating :\"+obj);\n\t\t\tresult.setResult(true);\n\t\t\tresult.setReturnObject(obj);\n\t\t} catch (Exception e){\n\t\t\tresult.setResult(false);\n\t\t\tresult.setMessage(\"Error:\"+e);\n\t\t\tlog.error(\"Error updating the object: \", e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public void update (Object o) \n throws NoPeerException, SQLException, NotFoundException\n {\n PersistentPeer peer = getPeer(o);\n peer.setPersistentEngine (this);\n peer.update(o);\n }",
"public int update(DomainObject object) {\r\n int updateValue = -1;\r\n Session session = getSession();\r\n Transaction tx = null;\r\n try {\r\n if (object == null) {\r\n LOG.debug(MODULE + \" Null object could not update....RETURNING\");\r\n return updateValue;\r\n }\r\n tx = session.beginTransaction();\r\n session.update(object);\r\n tx.commit();\r\n updateValue = 1;\r\n } catch (RuntimeException e) {\r\n updateValue = -1;\r\n LOG.error(MODULE + \"Exception in update Method.\" + e, e);\r\n if (tx != null) {\r\n tx.rollback();\r\n }\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n return updateValue;\r\n }",
"@Override\r\n\tpublic boolean update(Moteur obj) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean update(Etape obj) {\n\t\treturn false;\n\t}",
"public void update(User obj) {\n\t\t\n\t}",
"E update(E entity);",
"E update(E entity);",
"<T> void update(T persistentObject);",
"public void update(TdiaryArticle obj) throws SQLException {\n\r\n\t}",
"void update(Serializable objectId);",
"public User update(User user)throws Exception;",
"void upsertObj(@Nonnull @jakarta.annotation.Nonnull Obj obj) throws ObjTooLargeException;",
"@Override\r\n\tpublic T update(T entity) throws Exception {\n\t\ttry {\r\n\t\t\tthis.getcurrentSession().update(entity);\r\n\t\t\treturn entity;\r\n\t\t}catch (NonUniqueObjectException e) {\r\n\t\t\tthis.getcurrentSession().merge(entity);\r\n\t\t\treturn entity;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new Exception(\"更新\" + entity.getClass().getName() + \"实例失败\", e);\r\n\t\t}\r\n\t}",
"void update(T entity) throws Exception;",
"boolean updateWorkByObject(Work work);",
"@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}",
"public void attemptToUpdate();",
"@Override\n\tpublic int updateObject(Evaluate entity) {\n\t\treturn evaluateMapper.updateObject(entity);\n\t}",
"@Override\r\n\tpublic void update(Cidade obj) {\n\r\n\t}",
"boolean update(T entity) throws Exception;",
"public void saveOrUpdate(Object obj) throws HibException;",
"@Override\n\tpublic boolean update(Document obj) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean update(Eleve o) {\n\t\tmap.replace(o.getId(), o);\n\t\treturn true;\n\t}",
"public static <T> T updateObject(T object)\n {\n return new UpdateClosure<T>(object).execute();\n }",
"E update(E entity) throws ValidationException;",
"@Override\r\n\tpublic void update(Connection con, Object obj) throws Exception {\n\t}",
"@Override\n\tpublic void saveORUpdate(T obj) throws Exception {\n\t\t\n\t}",
"public abstract Object put(String oid, Object obj) throws OIDAlreadyExistsException, ObjectNotSupportedException;",
"public void updateObject(int columnIndex, Object x) throws SQLException {\n\n try {\n if (isDebugEnabled()) {\n debugCode(\"updateObject(\" + columnIndex + \", x);\");\n }\n update(columnIndex, convertToUnknownValue(x));\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"void update(Seller obj);",
"void update(Seller obj);",
"@Override\n\tpublic boolean update(Dynamic object) {\n\t\treturn false;\n\t}",
"Item update(Item item);",
"@Test\n\t@Override\n\tpublic void testUpdateObjectNotFoundJson() throws Exception {\n\t}",
"public void updateEntity();",
"public void update(InterfaceBean object) {\n\t\t\n\t}",
"public <T> void update(final PersistableDataObject<T> obj) {\n txTemplate.execute(new TransactionCallbackWithoutResult() {\n @Override\n public void doInTransactionWithoutResult(TransactionStatus status) {\n getHibernateTemplate().update(obj);\n }\n });\n }",
"public void update(E entity);",
"T put(T obj) throws DataElementPutException, RepositoryAccessDeniedException;",
"public abstract boolean update(T entity) throws ServiceException;",
"T update(T entity);",
"T update(T entity);",
"public void update() throws NotFoundException {\n\tUserDA.update(this);\n }",
"@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}",
"public <T> T update(T entity);",
"@Override\n\tpublic JSONObject update(JSONObject obj) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic int update(OrderItem objectToUpdate) throws SQLException {\n\t\treturn 0;\n\t}",
"public void saveOrUpdate(Object aObject);",
"@Override\n public final void doPut() {\n try {\n checkPermissions(getRequest());\n if (id == null) {\n throw new APIMissingIdException(getRequestURL());\n }\n\n final String inputStream = getInputStream();\n if (inputStream.length() == 0) {\n api.runUpdate(id, new HashMap<String, String>());\n return;\n }\n\n Item.setApplyValidatorMandatoryByDefault(false);\n final IItem item = getJSonStreamAsItem();\n api.runUpdate(id, getAttributesWithDeploysAsJsonString(item));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"E update(ID id, E entity, RequestContext context);",
"public void put(ElasticObject object) throws ElasticException {\n try {\n String json = mapper.writeValueAsString(marshaller.serialize(object));\n DocumentResult result = client.execute(new Index.Builder(json)\n .index(ElasticMapping.INDEX_NAME)\n .type(ElasticMapping.TABLE_NAME)\n .id(object.getElasticId())\n .build());\n\n validateResult(true, result);\n } catch (IOException e) {\n throw ElasticException.parse(e);\n }\n }",
"@Override\n\tpublic Book update(Book dto) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Client update(Client obj) {\n\t\treturn null;\n\t}",
"@Test(expected = EntityNotFoundException.class)\n public void test_update_NotFound2() throws Exception {\n User user1 = createUser(1, true);\n\n user1.setUsername(\"new\");\n instance.update(user1);\n }",
"protected void updateRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Actualiza objeto\r\n\t\tobjectDao.update(object);\r\n\t\t// Actualiza relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.update(relco);\r\n\t\t}\r\n\t}",
"@Transactional\n\tpublic T update(T transientObject) {\n\t\treturn this.em.merge(transientObject);\n\t}",
"@Override\n public void update(Restriction object) throws Exception {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }"
]
| [
"0.81225",
"0.75004506",
"0.7430763",
"0.7420861",
"0.74185944",
"0.7403557",
"0.73186713",
"0.71040636",
"0.7080538",
"0.7027302",
"0.701972",
"0.7015781",
"0.6950519",
"0.69482356",
"0.6925524",
"0.68794644",
"0.6840303",
"0.6829617",
"0.6822131",
"0.682057",
"0.68041813",
"0.68041813",
"0.67616",
"0.6753742",
"0.6748301",
"0.6713953",
"0.67033505",
"0.6693173",
"0.6682669",
"0.6675714",
"0.6672646",
"0.6667292",
"0.66541076",
"0.66233546",
"0.66233546",
"0.6586196",
"0.6549898",
"0.65190715",
"0.6516681",
"0.6516386",
"0.6511876",
"0.6505036",
"0.65037197",
"0.6494598",
"0.64931726",
"0.64899164",
"0.6485302",
"0.64820385",
"0.64796716",
"0.64796716",
"0.64666665",
"0.6450175",
"0.6446019",
"0.6438231",
"0.64293617",
"0.6421044",
"0.6414686",
"0.63956046",
"0.63706315",
"0.6353242",
"0.63191795",
"0.631469",
"0.6292121",
"0.62697214",
"0.6251065",
"0.62482715",
"0.62464064",
"0.6242139",
"0.6237746",
"0.6231979",
"0.62315464",
"0.62191874",
"0.62108684",
"0.62108684",
"0.6206409",
"0.61992955",
"0.6193522",
"0.61784565",
"0.6173544",
"0.6173246",
"0.61705124",
"0.6150217",
"0.6146742",
"0.6144489",
"0.6144489",
"0.6137999",
"0.61344075",
"0.613255",
"0.61284524",
"0.6097566",
"0.6094791",
"0.60943604",
"0.609201",
"0.60919535",
"0.608913",
"0.60765684",
"0.6069098",
"0.60662353",
"0.6045336",
"0.6027566"
]
| 0.7127717 | 7 |
This class defines static string constants related to FIX protocol, especialy, enumerated values for some of the fix tags | public interface FixFieldConstants {
public final static String SIDE_BUY = "1";
public final static String SIDE_SELL = "2";
public final static String PUT_CALL_CALL = "1";
public final static String PUT_CALL_PUT = "0";
public final static String ORDER_TYPE_MARKET = "1";
public final static String ORDER_TYPE_LIMIT = "2";
public final static String ORDER_TYPE_STOP = "3";
public final static String ORDER_TYPE_STOPLIMIT = "4";
public final static String ORDER_TYPE_MARKETLIMIT = "K";
public final static String TIME_IN_FORCE_DAY = "0";
public final static String TIME_IN_FORCE_GTC = "1";
public final static String TIME_IN_FORCE_FAK = "3";
public final static String TIME_IN_FORCE_FOK = "4";
public final static String TIME_IN_FORCE_GTD = "6";
public final static String HANDL_INST_AUTOMATED = "1";
public final static String SECURITY_TYPE_FUTURE = "FUT";
public final static String SECURITY_TYPE_OPTION = "OPT";
public final static String SECURITY_TYPE_FX = "FOR";
public final static String CUSTOMER_OR_FIRM_CUSTOMER = "0";
public final static String CUSTOMER_OR_FIRM_FIRM = "1";
public final static String CTI_CODE_BROKER_OWN_ACCOUNT = "1";
public final static String CTI_CODE_BROKER_HOUSE_ACCOUNT = "2";
public final static String CTI_CODE_BROKER_BROKER_ACCOUNT = "3";
public final static String CTI_CODE_BROKER_CUSTOMER_ACCOUNT = "4";
public final static String FEE_BILLING_CBOE_MEMBER = "B";
public final static String FEE_BILLING_NON_MEMBER = "C";
public final static String FEE_BILLING_EQUITY_MEMBER = "E";
public final static String FEE_BILLING_106HJ_MEMBER = "H";
public final static String FEE_BILLING_LESSEE_MEMBER = "L";
public final static String CMTA_GIVEUP_CODE_GIVEUP = "GU";
public final static String CMTA_GIVEUP_CODE_SGX_OFFSET = "SX";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"interface MessageId {\n /* Using the same name of the identifier as the string saves space\n in the class file. */\n static final String MESSAGE_FORMAT = \"MESSAGE_FORMAT\";\n static final String PUBID_CHAR = \"PUBID_CHAR\";\n static final String ELEMENT_AFTER_DOCUMENT_ELEMENT = \"ELEMENT_AFTER_DOCUMENT_ELEMENT\";\n static final String BAD_INITIAL_BYTES = \"BAD_INITIAL_BYTES\";\n static final String BAD_DECL_ENCODING = \"BAD_DECL_ENCODING\";\n static final String INVALID_XML_DECLARATION = \"INVALID_XML_DECLARATION\";\n static final String IGNORE_SECT_CHAR = \"IGNORE_SECT_CHAR\";\n static final String INVALID_END_TAG = \"INVALID_END_TAG\";\n static final String EPILOG_JUNK = \"EPILOG_JUNK\";\n static final String MISMATCHED_END_TAG = \"MISMATCHED_END_TAG\";\n static final String MISPLACED_XML_DECL = \"MISPLACED_XML_DECL\";\n static final String MISSING_END_TAG = \"MISSING_END_TAG\";\n static final String NO_DOCUMENT_ELEMENT = \"NO_DOCUMENT_ELEMENT\";\n static final String NOT_WELL_FORMED = \"NOT_WELL_FORMED\";\n static final String PE_GROUP_NESTING = \"PE_GROUP_NESTING\";\n static final String PE_DECL_NESTING = \"PE_DECL_NESTING\";\n static final String INTERNAL_PEREF_ENTVAL = \"INTERNAL_PEREF_ENTVAL\";\n static final String RECURSION = \"RECURSION\";\n static final String EXTERN_REF_ATTVAL = \"EXTERN_REF_ATTVAL\";\n static final String UNDEF_REF = \"UNDEF_REF\";\n static final String UNDEF_PEREF = \"UNDEF_PEREF\";\n static final String UNPARSED_REF = \"UNPARSED_REF\";\n static final String SYNTAX_ERROR = \"SYNTAX_ERROR\";\n static final String UNCLOSED_CDATA_SECTION = \"UNCLOSED_CDATA_SECTION\";\n static final String UNCLOSED_CONDITIONAL_SECTION = \"UNCLOSED_CONDITIONAL_SECTION\";\n static final String UNCLOSED_TOKEN = \"UNCLOSED_TOKEN\";\n static final String UNSUPPORTED_ENCODING = \"UNSUPPORTED_ENCODING\";\n static final String DUPLICATE_ATTRIBUTE = \"DUPLICATE_ATTRIBUTE\";\n static final String XML_TARGET = \"XML_TARGET\";\n static final String ILLEGAL_CHAR = \"ILLEGAL_CHAR\";\n}",
"public interface IssueConstants {\n static final String VIEW_ID = \"net.refractions.udig.issues.view.issues\"; //$NON-NLS-1$\n static final String ISSUES_LIST_EXTENSION_ID = \"net.refractions.udig.issues.issuesList\"; //$NON-NLS-1$\n static final String ISSUES_EXTENSION_ID = \"net.refractions.udig.issues.issue\"; //$NON-NLS-1$\n static final String EXTENSION_CLASS_ATTR = \"class\"; //$NON-NLS-1$\n\n}",
"public interface EnumsKeyConstants {\n\n /*客户状态*/\n static final String CSTM_STATE = \"CSTM_STATE\";\n\n interface CSTMSTATE {\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*正常*/\n static final String NORMAL = \"01\";\n\n /*停用*/\n static final String BLOCKUP = \"02\";\n\n /*冻结*/\n static final String FROZEN = \"03\";\n }\n\n /*短信类型*/\n static final String SMS_TYPE = \"SMS_TYPE\";\n\n interface SMSTYPE {\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*验证码*/\n static final String VERCODE = \"01\";\n\n /*通知*/\n static final String NOTICE = \"02\";\n\n /*营销*/\n static final String MARKETING = \"03\";\n\n /*未知*/\n static final String UNKNOWN = \"04\";\n }\n\n /*模板类型*/\n static final String SMODEL_TYPE = \"SMODEL_TYPE\";\n\n interface SMODELTYPE {\n /*验证码*/\n static final String VERCODE = \"01\";\n\n /*通知&订单*/\n static final String NOTICE = \"02\";\n }\n\n /*审核状态*/\n static final String AUDIT_STATE = \"AUDIT_STATE\";\n\n interface AUDITSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*审核中*/\n static final String ING = \"01\";\n\n /*审核通过*/\n static final String ED = \"02\";\n\n /*审核驳回*/\n static final String DF = \"03\";\n\n }\n\n /*运营商类型*/\n static final String OPERATOR_TYPE = \"OPERATOR_TYPE\";\n\n interface OPERATORTYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*移动*/\n static final String MOBILE = \"01\";\n\n /*电信*/\n static final String TELECOM = \"02\";\n\n /*联通*/\n static final String UNICOM = \"03\";\n }\n\n /*通道状态*/\n static final String CHANNEL_STATE = \"CHANNEL_STATE\";\n\n interface CHANNELSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*可用*/\n static final String ENABLE = \"01\";\n\n /*禁用*/\n static final String DISABLE = \"02\";\n }\n\n /*短信发送状态*/\n static final String SMSSEND_STATE = \"SMSSEND_STATE\";\n\n interface SMSSENDSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*成功*/\n static final String SUCCESS = \"01\";\n\n /*失败*/\n static final String FAILURE = \"02\";\n\n /*未知*/\n static final String UNKNOWN = \"03\";\n\n /*无效*/\n static final String INVALID = \"04\";\n\n /*其他*/\n static final String OTHER = \"05\";\n }\n\n /*短息接收状态*/\n static final String SMSDELIV_STATE = \"SMSDELIV_STATE\";\n\n interface SMSDELIVSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*收到*/\n static final String DELIV = \"01\";\n\n /*未收到*/\n static final String UNDELIV = \"02\";\n }\n\n /*批次单状态*/\n static final String BATCH_STATE = \"BATCH_STATE\";\n\n interface BATCHSTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*等待发送*/\n static final String WAIT = \"01\";\n\n /*发送中*/\n static final String ING = \"02\";\n\n /*完成*/\n static final String FINISH = \"03\";\n\n /*已撤回*/\n static final String REVOKE = \"04\";\n\n /*已驳回*/\n static final String REJECT = \"05\";\n }\n\n /*适用范围类型*/\n static final String USEAGE_TYPE = \"USEAGE_TYPE\";\n\n interface USEAGETYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*通用*/\n static final String PUB = \"01\";\n\n /*个人*/\n static final String PRI = \"02\";\n }\n\n /*是否发送*/\n static final String SMSSEND_CODE = \"SMSSEND_CODE\";\n\n interface SMSSENDCODE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*发送*/\n static final String SEND = \"01\";\n\n /*不发送*/\n static final String DESEND = \"02\";\n }\n\n /*短信数量增减类型*/\n static final String ACCOUNT_TYPE = \"ACCOUNT_TYPE\";\n\n interface ACCNTTYPE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*充值*/\n static final String ADDITION = \"01\";\n\n /*消费*/\n static final String SUBTRACTION = \"02\";\n\n }\n\n /*充值单审核状态*/\n static final String RECHARGE_STATE = \"RECHARGE_STATE\";\n\n interface RECHARGESTATE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*成功*/\n static final String SUCCESS = \"01\";\n\n /*失败*/\n static final String FAILURE = \"02\";\n\n /*确认中*/\n static final String COMFIRM = \"03\";\n\n /*已取消*/\n static final String CANCEL = \"04\";\n\n }\n\n /*手机号是否在黑名单中*/\n static final String REPLY_BLACK = \"REPLY_BLACK\";\n\n interface REPLYBLACK{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*不在黑名单中*/\n static final String NOTINT = \"01\";\n\n /*在黑名单中*/\n static final String INT = \"02\";\n\n\n }\n /*逻辑删除enable*/\n static final String DELETE_ENABLE = \"DELETE_ENABLE\";\n\n interface DELETEENABLE{\n\n /*已删除*/\n static final Integer DELETE = 0;\n\n /*未删除*/\n static final Integer UNDELE = 1;\n\n\n }\n /*适用范围 模板 通用,个人*/\n static final String SUIT_RANGE = \"SUIT_RANGE\";\n\n interface SUITRANGE{\n\n /*初始化状态*/\n static final String INIT = \"00\";\n\n /*通用*/\n static final String COMMON = \"01\";\n\n /*个人*/\n static final String PERSONAL = \"02\";\n\n\n }\n\n /*使用場景 01 平台 , 02 接口*/\n static final String USE_TYPE = \"USE_TYPE\";\n\n interface USETYPE{\n\n /*平台*/\n static final String PLTFC = \"01\";\n\n /*接口*/\n static final String INTFC = \"02\";\n }\n\n /* 提醒类型 */\n static final String REMIND_TYPE = \"REMIND_TYPE\";\n\n interface REMINDTYPE{\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 短信数量 */\n static final String SMS_NUM = \"01\";\n /* 发送频率*/\n static final String SEND_RATE = \"02\";\n }\n\n /* 阈值类型 */\n static final String THRESHOLD_TYPE = \"THRESHOLD_TYPE\";\n\n interface THRESHOLDTYPE {\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 小于 */\n static final String LESS_THAN = \"01\";\n /* 等于*/\n static final String EQUAL = \"02\";\n /* 大于*/\n static final String GREATER_THAN = \"03\";\n }\n\n /* 客户类型 */\n static final String CSTM_TYPE = \"CSTM_TYPE\";\n\n interface CSTMTYPE{\n /* 未知 */\n static final String UNKNOWN = \"00\";\n /* 个人 */\n static final String PERSON = \"01\";\n /* 企业*/\n static final String COMPANY = \"02\";\n }\n\n /* 支付状态 */\n static final String PAY_TYPE = \"PAY_TYPE\";\n\n interface PAYTYPE{\n /* 审核中 */\n static final String UNPAY = \"01\";\n /* 通过 */\n static final String PAY = \"02\";\n /* 驳回 */\n static final String REJECT = \"03\";\n /* 已取消 */\n static final String CANCEL = \"04\";\n }\n\n /* 任务状态 */\n static final String TASK_STATE = \"TASK_STATE\";\n\n interface TASKSTATE{\n /* 待发送 */\n static final String WAIT_SEND = \"01\";\n /* 已发送 */\n static final String SEND = \"02\";\n /* 成功 */\n static final String SUCCESS = \"03\";\n /* 失败 */\n static final String FAIL = \"04\";\n }\n\n /* 收款账户 */\n static final String PAY_ACCOUNT = \"PAY_ACCOUNT\";\n\n interface PAYACCOUNT{\n /* 个人账户 */\n static final String PRIVATE = \"01\";\n /* 对公账户 */\n static final String PUBLIC = \"02\";\n }\n\n}",
"public interface NetworkConstants {\n\n String URL = \"url\";\n String UTF_8 = \"UTF-8\";\n String SETTING_REQUEST_BODY_EXCEPTION = \"Failed to set body to HTTP-connection\";\n}",
"public interface C7878U {\n /* renamed from: Lg */\n public static final int f26781Lg = 1;\n /* renamed from: Mg */\n public static final int f26782Mg = 2;\n public static final int NOERROR = 0;\n /* renamed from: Ng */\n public static final int f26783Ng = 3;\n /* renamed from: Og */\n public static final int f26784Og = 4;\n /* renamed from: Pg */\n public static final int f26785Pg = 5;\n /* renamed from: Qg */\n public static final int f26786Qg = 6;\n}",
"public interface MessageConstants {\n public static String WRONG_DATA=\"Wrong data!!!Try again:\";\n public static String INPUT_ADDRESS=\"Input address: \";\n public static String INPUT_PHONE=\"Input phone nummber:\";\n public static String INPUT_NICKNAMME=\"Input nickname:\";\n public static String Input_EMAIL=\"Input email:\";\n}",
"public interface Constants {\n String NA = \"NA\";\n String ARG_USERS=\"user\";\n String SENDER_ID =\"fro9SbG2Eic:APA91bHzUBA35xjcDP7TXu5uG3JetLMENHfJpfKnRjS02-y8W4n1ZonIn9HYNAwjV8F3uiOAV2gXparORINEEps3t0kCZHI2rutU33DaUlDeGJYrKDK_fG9HCdXAq1gNHtfmfqHGDBve\" ;\n}",
"public interface FeedParserConstants {\n\tpublic static final String TITLE = \"title\";\n\tpublic static final String DESCRIPTION = \"description\";\n\tpublic static final String CHANNEL = \"channel\";\n\tpublic static final String COPYRIGHT = \"copyright\";\n\tpublic static final String LINK = \"link\";\n\tpublic static final String AUTHOR = \"creator\";\n\tpublic static final String ITEM = \"item\";\n\tpublic static final String PUB_DATE = \"pubDate\";\n\tpublic static final String CONTENT = \"encoded\";\n}",
"public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}",
"public interface ResponseConstants {\n\n String Bad_Request = \"The request was invalid or cannot be otherwise served\";\n String Authentication_failed = \"The request failed due to invalid credentials\";\n String Not_Found = \"No information available or the requested URL was not found on the server\";\n String Internal_Server_Error = \"Something is broken\";\n String Bad_Gateway = \"Oxford Dictionaries API is down or being upgraded\";\n String Service_Unavailable = \"The Oxford Dictionaries API servers are up, but overloaded with requests. Please try again later\";\n String Gateway_timeout = \"The Oxford Dictionaries API servers are up, but the request couldn’t be serviced due to some failure within our stack. Please try again later\";\n\n}",
"public interface Constants {\r\n public static final String APPLE_PRODUCT_CODE = \"APP1456\";\r\n public static final String ORANGE_PRODUCT_CODE = \"ORG3456\";\r\n public static final Double APPLE_PRODUCT_PRICE = 0.60;\r\n public static final Double ORANGE_PRODUCT_PRICE = 0.25;\r\n public static final int MAGIC_NUMBER_ZERO = 0;\r\n public static final int MAGIC_NUMBER_TWO = 2;\r\n public static final int MAGIC_NUMBER_THREE = 3;\r\n public static final int MAGIC_NUMBER_FIVE = 5;\r\n public static final int MAGIC_NUMBER_SEVEN = 7;\r\n public static final int MAGIC_NUMBER_NINE = 9;\r\n}",
"public interface Constants {\n int STATE_AGREE = 1;\n int STATE_DISAGREE = 2;\n}",
"public interface MyConstants {\n String ISPROCTECTED =\"isProctected\";\n String SAFENUMBER = \"safenumber\";\n String SIMNUMBER = \"simnumber\";\n String SPFILE = \"config\";\n String PASSWORD = \"password\";\n String ISSETUP = \"isSetup\";\n}",
"public interface ConstString\n{\n\tString STRING_ENCODING_UTF8 = \"UTF-8\";\n\tString APPLICATION_XML = \"application/xml\";\n\tString APPLICATION_JSON = \"application/json\";\n\tString APP_JSON_UTF_8 = \"application/json;charset=UTF-8\";\n\tString APP_XML_UTF_8 = \"application/xml;charset=UTF-8\";\n}",
"public interface MessageType {\n\n /**\n * 心跳消息\n */\n byte PING = 1;\n\n /**\n * 心跳回复\n */\n byte PONG = 2;\n\n /**\n * 业务数据\n */\n byte BUSINESS = 3;\n}",
"public interface MetaData {\r\n\r\n\tpublic static final String CV_SBML = \"SBML\";\r\n\r\n\tpublic static final String ET_SBML = \"SBML_import\";\r\n\r\n\tpublic static final String AN_SBO = \"SBO\";\r\n\r\n\tpublic static final String RT_CONSUMED_BY = \"cs_by\";\r\n\r\n\tpublic static final String RT_PRODUCED_BY = \"pd_by\";\r\n\r\n\tpublic static final String RT_REGULATED_BY = \"rg_by\";\r\n\r\n\tpublic static final String RT_TRANSFORMATION_OF = \"transformation_of\";\r\n\r\n\tpublic static final String CC_REACTION = \"Reaction\";\r\n\r\n\tpublic static final String CC_COMPOUND = \"Comp\";\r\n\r\n\tpublic static final String CC_CELCOMP = \"CelComp\";\r\n\r\n}",
"public void testParsing2() throws Exception {\n String data = \"8=FIX.4.2\\0019=76\\001\";\n data += \"35=6\\001\";\n data += \"23=IDENTIFIER\\001\";\n data += \"28=N\\001\";\n data += \"55=MSFT\\001\";\n data += \"54=1\\001\";\n data += \"711=2\\001\";\n data += \"311=DELL\\001\";\n data += \"318=USD\\001\";\n data += \"311=IBM\\001\";\n data += \"318=CAD\\001\";\n data += \"10=037\\001\";\n Message message = new Message(data, DataDictionaryTest.getDictionary());\n \n assertHeaderField(message, \"FIX.4.2\", BeginString.FIELD);\n assertHeaderField(message, \"76\", BodyLength.FIELD);\n assertHeaderField(message, MsgType.INDICATION_OF_INTEREST, MsgType.FIELD);\n assertBodyField(message, \"IDENTIFIER\", IOIid.FIELD);\n assertTrailerField(message, \"037\", CheckSum.FIELD);\n IndicationOfInterest.NoUnderlyings valueMessageType = new IndicationOfInterest.NoUnderlyings();\n message.getGroup(1, valueMessageType);\n assertEquals(\"wrong value\", \"DELL\", valueMessageType.getString(UnderlyingSymbol.FIELD));\n assertEquals(\"wrong value\", \"USD\", valueMessageType.getString(UnderlyingCurrency.FIELD));\n message.getGroup(2, valueMessageType);\n assertEquals(\"wrong value\", \"IBM\", valueMessageType.getString(UnderlyingSymbol.FIELD));\n assertEquals(\"wrong value\", \"CAD\", valueMessageType.getString(UnderlyingCurrency.FIELD));\n }",
"public interface XMLConstants {\r\n /** Descriptors are placed into this special package relative to the generated source. */\r\n String DESCRIPTOR_PACKAGE = \"descriptors\";\r\n\r\n /** This suffix is added to a class name to make its descriptor. */\r\n String DESCRIPTOR_SUFFIX = \"Descriptor\";\r\n\r\n /** Whitespace preserve (keep exactly as-is). */\r\n String WHITESPACE_PRESERVE = \"preserve\";\r\n\r\n /** Whitespace replace (replace each whitespace with a blank). */\r\n String WHITESPACE_REPLACE = \"replace\";\r\n\r\n /** Whitespace collapse (replace each whitespace with a blank, remove leading\r\n * and trailing whitespace, collapse consecutive blanks into exactly one blank). */\r\n String WHITESPACE_COLLAPSE = \"collapse\";\r\n\r\n /** XML name type NCName. (non-colonized name.) */\r\n short NAME_TYPE_NCNAME = 0;\r\n\r\n /** XML name type NMTOKEN. (name token.) */\r\n short NAME_TYPE_NMTOKEN = 1;\r\n\r\n /** XML name type CDATA. (character data.)*/\r\n short NAME_TYPE_CDATA = 2;\r\n\r\n /** XML name type QNAME. (qualified name.) */\r\n short NAME_TYPE_QNAME = 3;\r\n\r\n /** name of per package mapping file. */\r\n String PKG_MAPPING_FILE = \".castor.xml\";\r\n \r\n /** name of the class descriptor resolver file. */\r\n String PKG_CDR_LIST_FILE = \".castor.cdr\";\r\n}",
"public interface Constants\n{\n\tString EMAIL = \"email\";\n\tString RECORD_ID = \"_id\";\n\tString ENTRY_DATE = \"entryDate\";\n\tString DATE_FORMAT = \"yyyy-MM-dd'T'HH:mm:ssXXX\";\n\tString LEADS = \"leads\";\n}",
"public interface CSXMLConstants {\n\n\t/**** Order fulfillment *****/\n\tpublic static final String A_SHIPMENT_CONFIRMATION_STATUS = \"ShipmentConfirmationStatus\";\n\tpublic static final String A_ORDER_NO = \"OrderNo\";\n\tpublic static final String A_ENTERPRISE_CODE = \"EnterpriseCode\";\n\tpublic static final String A_DOCUMENT_TYPE = \"DocumentType\";\n\tpublic static final String A_RELEASE_NO = \"ReleaseNo\";\n\tpublic static final String A_PRIMELINE_NO = \"PrimeLineNo\";\n\tpublic static final String A_EXTN_SHIPPING_GROUP_ID = \"ExtnShippingGroupId\";\n\tpublic static final String A_CHARGE_CATEGORY = \"ChargeCategory\";\n\tpublic static final String A_SHIP_NODE = \"ShipNode\";\n\tpublic static final String A_EXPECTED_DELIVERY_DATE = \"ExpectedDeliveryDate\";\n\tpublic static final String A_CARRIER_SERVICE_CODE = \"CarrierServiceCode\";\n\tpublic static final String A_DELIVERY_START_DATE = \"DeliveryStartDate\";\n\tpublic static final String A_QUANTITY = \"Quantity\";\n\tpublic static final String A_ORDERED_QTY = \"OrderedQty\";\n\tpublic static final String A_NOTE_TEXT = \"NoteText\";\n\tpublic static final String A_REASON_CODE = \"ReasonCode\";\n\tpublic static final String A_VISIBLE_TO_ALL = \"VisibleToAll\";\n\tpublic static final String A_CHARGE_NAME_DESCRIPTION = \"ChargeNameDescription\";\n\tpublic static final String A_CHARGE_AMOUNT = \"ChargeAmount\";\n\tpublic static final String A_INVOICED_CHARGE_AMOUNT = \"InvoicedChargeAmount\";\n\tpublic static final String A_TAX = \"Tax\";\n\tpublic static final String A_AUTO_RESOLVED_FLAG = \"AutoResolvedFlag\";\n\tpublic static final String A_ORDER_HEADER_KEY = \"OrderHeaderKey\";\n\tpublic static final String A_QUEUE_ID = \"QueueId\";\n\tpublic static final String A_EXCEPTION_TYPE = \"ExceptionType\";\n\tpublic static final String A_DESCRIPTION = \"Description\";\n\tpublic static final String A_LINE_TYPE = \"LineType\";\n\tpublic static final String A_MONITOR_CONSOLIDATION_ID = \"MonitorConsolidationId\";\n\tpublic static final String A_GC_SERIAL_NO = \"GCSerialNo\";\n\tpublic static final String A_ITEM_ID = \"ItemID\";\n\tpublic static final String A_CHARGE_NAME = \"ChargeName\";\n\tpublic static final String A_UNIT_PRICE = \"UnitPrice\";\n\tpublic static final String A_EXTN_TESS_ORDERFULFILLMENT_STORE_ID = \"ExtnTessOrderFulfillmentStoreID\";\n\tpublic static final String A_USER_ID = \"UserId\";\n\tpublic static final String A_PASSWORD = \"Password\";\n\tpublic static final String A_CARD_NUMBER = \"CardNumber\";\n\tpublic static final String A_SYSDATE = \"Sysdate\";\n\tpublic static final String A_INVOICE_NUMBER = \"InvoiceNumber\";\n\tpublic static final String A_AMOUNT = \"Amount\";\n\tpublic static final String A_MERCHANT_NAME = \"MerchantName\";\n\tpublic static final String A_MERCHANT_NUMBER = \"MerchantNumber\";\n\tpublic static final String A_STORE_NUMBER = \"StoreNumber\";\n\tpublic static final String A_DIVISION = \"Division\";\n\tpublic static final String A_ROUTING_ID = \"RoutingID\";\n\tpublic static final String A_TRANSACTION_ID = \"TransactionID\";\n\tpublic static final String A_ADJUSTMENT_AMOUNT = \"AdjustmentAmount\";\n\tpublic static final String A_SHIPMENT_KEY = \"ShipmentKey\";\n\n\tpublic static final String E_EXTN = \"Extn\";\n\tpublic static final String E_ORDER_RELEASE_DETAIL = \"OrderReleaseDetail\";\n\tpublic static final String E_SHIPMENT = \"Shipment\";\n\tpublic static final String E_SHIPMENT_LINES = \"ShipmentLines\";\n\tpublic static final String E_SHIPMENT_LINE = \"ShipmentLine\";\n\tpublic static final String E_ORDER_LINES = \"OrderLines\";\n\tpublic static final String E_ORDER_LINE = \"OrderLine\";\n\tpublic static final String E_ORDER = \"Order\";\n\tpublic static final String E_HEADER_CHARGES = \"HeaderCharges\";\n\tpublic static final String E_HEADER_CHARGE = \"HeaderCharge\";\n\tpublic static final String E_CARRIER_SERVICE_LIST = \"CarrierServiceList\";\n\tpublic static final String E_ORDER_STATUSES = \"OrderStatuses\";\n\tpublic static final String E_ORDER_STATUS = \"OrderStatus\";\n\tpublic static final String E_CARRIER_SERVICE = \"CarrierService\";\n\tpublic static final String E_HEADER_TAXES = \"HeaderTaxes\";\n\tpublic static final String E_HEADER_TAX = \"HeaderTax\";\n\tpublic static final String E_NOTES = \"Notes\";\n\tpublic static final String E_NOTE = \"Note\";\n\tpublic static final String E_UN_SCHEDULE_ORDER = \"UnScheduleOrder\";\n\tpublic static final String E_INBOX = \"Inbox\";\n\tpublic static final String E_INSTRUCTIONS = \"Instructions\";\n\tpublic static final String E_INSTRUCTION = \"Instruction\";\n\tpublic static final String E_CS_GC_SERIAL_NO_LIST = \"CSGCSerialNoList\";\n\tpublic static final String E_CS_GC_SERIAL_NO = \"CSGCSerialNo\";\n\tpublic static final String E_ISSUE_GIFT_CARD = \"IssueGiftCard\";\n\tpublic static final String E_LINEPRICE_INFO = \"LinePriceInfo\";\n\tpublic static final String E_ITEM = \"Item\";\n\t/**** Order fulfillment *****/\n\n\t/**** Inventory *****/\n\tpublic static final String A_EXTN_RECEIVED_FULL = \"ExtnReceivedFull\";\n\tpublic static final String A_STATUS_QTY = \"StatusQty\";\n\t/**** Inventory *****/\n\n\t/**Tax Adapter**/\n\tpublic static final String E_ORGANIZATION = \"Organization\";\n\tpublic static final String E_CORP_PERSON_INFO = \"CorporatePersonInfo\";\n\tpublic static final String E_SHIP_FROM_ADDRESS = \"ShipFromAddress\";\n\n\tpublic static final String A_ORGANIZATION_CODE = \"OrganizationCode\";\n\tpublic static final String A_ORGANIZATION_KEY = \"OrganizationKey\";\n\tpublic static final String A_CITY = \"City\";\n\tpublic static final String A_STATE = \"State\";\n\tpublic static final String A_COUNTRY = \"Country\";\n\tpublic static final String A_ZIPCODE = \"ZipCode\";\n\tpublic static final String A_ITEMID = \"ItemID\";\n\tpublic static final String A_PRODUCT_CODE = \"ProductCode\";\n\tpublic static final String A_LINE_NUMBER = \"LineNumber\";\n\tpublic static final String A_ORDER_LINE_KEY = \"OrderLineKey\";\n\n\tpublic static final String A_IS_DISCOUNT = \"IsDiscount\";\n\t/**Tax Adapter**/\n\n\tpublic static final String E_ORDER_LINE_KEY = \"OrderLineKey\";\n\tpublic static final String A_PRIME_LINE_NO = \"PrimeLineNo\";\n\tpublic static final String E_TAX_ADAPTOR_INPUT = \"TaxAdapterInput\";\n\tpublic static final String A_CUSTOMER_NAME = \"CustomerName\";\n\tpublic static final String A_TAX_EXEMPT_ID = \"TaxExemptId\";\n\tpublic static final String A_INVOICE_NO = \"InvoiceNo\";\n\tpublic static final String A_INVOICE_DATE = \"InvoiceDate\";\n\tpublic static final String A_INVOKE_FOR_RECORDING = \"InvokeForRecording\";\n\tpublic static final String A_TAX_POINT_DATE = \"TaxPointDate\";\n\tpublic static final String A_FISCAL_DATE = \"FiscalDate\";\n\tpublic static final String A_ORDER_LINE_NUMBER = \"LineNumber\";\n\tpublic static final String E_SHIP_TO_ADDRESS = \"ShipToAddress\";\n\tpublic static final String A_ZIP_CODE = \"ZipCode\";\n\tpublic static final String E_LINE_CHARGES = \"LineCharges\";\n\tpublic static final String E_LINE_CHARGE = \"LineCharge\";\n\tpublic static final String A_LINE_CHARGE_PER_LINE = \"ChargePerLine\";\n\tpublic static final String A_EXTN_TAX_EXEMPT_ID = \"TaxExemptId\";\n\tpublic static final String A_CHARGE_PER_LINE = \"ChargePerLine\";\n\tpublic static final String A_CHARGE_PER_UNIT = \"ChargePerUnit\";\n\tpublic static final String A_CUSTOMER_FIRST_NAME = \"CustomerFirstName\";\n\tpublic static final String A_CUSTOMER_LAST_NAME = \"CustomerLastName\";\n\tpublic static final String A_TAX_NAME = \"TaxName\";\n\tpublic static final String E_LINE_TAX = \"LineTax\";\n\tpublic static final String E_DISCOUNT_CHARGES = \"DiscountCharges\";\n\tpublic static final String E_DISCOUNT_CHARGE = \"DiscountCharge\";\n\tpublic static final String E_NON_DISCOUNT_CHARGES = \"NonDiscountCharges\";\n\tpublic static final String E_NON_DISCOUNT_CHARGE = \"NonDiscountCharge\";\n\n\tpublic static final String A_ORDER_PURPOSE = \"OrderPurpose\";\n\tpublic static final String A_ORDER_TYPE = \"OrderType\";\n\tpublic static final String A_ORDER_DATE = \"OrderDate\";\n\tpublic static final String A_BY_PASS_PRICING = \"BypassPricing\";\n\tpublic static final String A_PAYMENT_RULE_ID = \"PaymentRuleId\";\n\n\t/* Mash up attributes*/\n\tpublic static final String A_GIFT_WRAP = \"GiftWrap\";\n\tpublic static final String A_GIFT_FLAG = \"GiftFlag\";\n\tpublic static final String A_INSTRUCTION_TEXT = \"InstructionText\";\n\tpublic static final String A_INSTRUCTION_TYPE = \"InstructionType\";\n\tpublic static final String A_ACTION = \"Action\";\n\tpublic static final String REMOVE = \"REMOVE\";\n\n\t// Credit Card Changes\n\tpublic static final String A_CHARGE_TRANSACTION_KEY = \"ChargeTransactionKey\";\n\tpublic static final String E_COMMON_CODE = \"CommonCode\";\n\tpublic static final String A_CODE_TYPE = \"CodeType\";\n\tpublic static final String A_CODE_VALUE = \"CodeValue\";\n\tpublic static final String A_AUTH_EXPIRY_DAYS = \"CS_PMT_CARD_EXP_DAYS\";\n\tpublic static final String A_ORG_CODE = \"OrganizationCode\";\n\tpublic static final String A_CODE_SHORT_DESCRIPTION = \"CodeShortDescription\";\n\tpublic static final String A_CREDIT_CARD = \"CREDIT_CARD\";\n\tpublic static final String E_CREATE_ASYNC_REQUEST = \"CreateAsyncRequest\";\n\tpublic static final String A_ACTIVE_FLAG = \"ActiveFlag\";\n\tpublic static final String A_CONSOLIDATE = \"Consolidate\";\n\tpublic static final String V_YES = \"Y\";\n\tpublic static final String V_NO = \"N\";\n\tpublic static final String API_CREATE_EXCEPTION = \"createException\";\n\tpublic static final String A_CODE_LONG_DESCRIPTION = \"CodeLongDescription\";\n\n\t//Stored value card\n\tpublic static final String E_PAYMENT_METHODS = \"PaymentMethods\";\n\tpublic static final String E_PAYMENT_METHOD = \"PaymentMethod\";\n\tpublic static final String E_PAYMENT_TYPE = \"PaymentType\";\n\tpublic static final String A_PAYMENT_TYPE = \"PaymentType\";\n\tpublic static final String A_PAYMENT_TYPE_DESCRIPTION = \"PaymentTypeDescription\";\n\tpublic static final String A_DISPLAY_SVC_NO = \"DisplaySvcNo\";\n\tpublic static final String A_DETAIL_DESCRIPTION = \"DetailDescription\";\n\tpublic static final String A_PAYMENT_TYPE_GROUP = \"PaymentTypeGroup\";\n\tpublic static final String A_CREDIT_CARD_TYPE = \"CreditCardType\";\n\tpublic static final String A_ERROR_COUNT = \"ErrorCount\";\n\tpublic static final String A_MESSAGE = \"Message\";\n\n\t//Order Capture \n\tpublic static final String A_DATA_KEY = \"DataKey\";\n\tpublic static final String A_DATA_TYPE = \"DataType\";\n\tpublic static final String A_HOLD_FLAG = \"HoldFlag\";\n\tpublic static final String A_HOLD_TYPE = \"HoldType\";\n\tpublic static final String A_AVAILABLE_DATE = \"AvailableDate\";\n\tpublic static final String A_TRANSACTION_Id = \"TransactionId\";\n\tpublic static final String A_TRANSACTION_KEY = \"TransactionKey\";\n\tpublic static final String A_OVERRIDE = \"Override\";\n\tpublic static final String A_STATUS = \"Status\";\n\tpublic static final String A_CS_EMAIL_TYPE = \"CSEmailType\";\n\tpublic static final String A_DECISION = \"Decision\";\n\tpublic static final String A_RESERVATION_MANDATORY = \"ReservationMandatory\";\n\tpublic static final String A_IS_FIRM_PREDEFINED_NODE = \"IsFirmPredefinedNode\";\n\tpublic static final String A_DEPENDENCY_SHIPPING_RULE = \"DependencyShippingRule\";\n\tpublic static final String A_DEPENDENT_ON_PRIMELINE_NO = \"DependentOnPrimeLineNo\";\n\tpublic static final String A_DEPENDENT_ON_SUBLINE_NO = \"DependentOnSubLineNo\";\n\tpublic static final String A_AUTHORIZATION_EXPIRATION_DATE = \"AuthorizationExpirationDate\";\n\n\tpublic static final String E_TASKQUEUE = \"TaskQueue\";\n\tpublic static final String E_ORDER_HOLD_TYPES = \"OrderHoldTypes\";\n\tpublic static final String E_ORDER_HOLD_TYPE = \"OrderHoldType\";\n\tpublic static final String E_PAYMENT_DETAILS = \"PaymentDetails\";\n\tpublic static final String E_DEPENDENCY = \"Dependency\";\n\n\tpublic static final String XPATH_ORDERLINE = \"OrderLines/OrderLine\";\n\tpublic static final String XPATH_PAYMENT_METHOD = \"PaymentMethods/PaymentMethod\";\n\tpublic static final String XPATH_CODE_SHORT_DESC_FROM_COMMONCODE = \"CommonCode/@CodeShortDescription\";\n\tpublic static final String XPATH_COUNTRY_FROM_PERSON_INFO_SHIP_TO = \"PersonInfoShipTo/@Country\";\n\tpublic static final String XPATH_ORDERHOLDTYPE_FROM_HOLDTYPESTOPROCESS = \"HoldTypesToProcess/OrderHoldType\";\n\tpublic static final String XPATH_ORDER_HOLD_TYPE = \"OrderHoldTypes/OrderHoldType\";\n\n\t/**** Order Modification *****/\n\tpublic static final String E_SHIPPING_GROUPS = \"ShippingGroups\";\n\tpublic static final String E_SHIPPING_GROUP = \"ShippingGroup\";\n\tpublic static final String E_PERSON_INFO_SHIP_TO = \"PersonInfoShipTo\";\n\tpublic static final String E_PERSON_INFO_BILL_TO = \"PersonInfoBillTo\";\n\tpublic static final String E_OVERALL_TOTALS = \"OverallTotals\";\n\tpublic static final String E_LINE_TAXES = \"LineTaxes\";\n\tpublic static final String E_LINE_OVERALL_TOTALS = \"LineOverallTotals\";\n\tpublic static final String E_PERSON_INFO = \"PersonInfo\";\n\n\tpublic static final String A_IS_NEW_ORDER = \"IsNewOrder\";\n\tpublic static final String A_NAME = \"Name\";\n\tpublic static final String A_EXTN_PROMOTION_TYPE = \"ExtnPromotionType\";\n\tpublic static final String A_EXTN_PROMOTION_CLASS = \"ExtnPromotionClass\";\n\tpublic static final String A_EXTN_PROMOTION_THRESHOLD = \"ExtnPromotionThreshold\";\n\tpublic static final String A_GRAND_TOTAL = \"GrandTotal\";\n\tpublic static final String A_GRAND_TAX = \"GrandTax\";\n\tpublic static final String A_MIN_ORDER_STATUS = \"MinOrderStatus\";\n\tpublic static final String A_STATUS_CANCELLED = \"9000\";\n\tpublic static final String A_REPRICING_QTY = \"RepricingQty\";\n\tpublic static final String A_LINE_TOTAL = \"LineTotal\";\n\tpublic static final String A_EXTENDED_PRICE = \"ExtendedPrice\";\n\tpublic static final String A_CHARGES = \"Charges\";\n\tpublic static final String A_DISCOUNT = \"Discount\";\n\tpublic static final String A_PROCEED_WITH_SINGLE_AVS_RESULT = \"ProceedWithSingleAVSResult\";\n\tpublic static final String A_TOTAL_NUMBER_OF_RECORDS = \"TotalNumberOfRecords\";\n\tpublic static final String A_ADDRESS_LINE_1 = \"AddressLine1\";\n\t/**** Order Modification *****/\n\n\t/**** Mash up elements and attributes *****/\n\tpublic static final String E_CAPTURE_PAYMENT = \"CapturePayment\";\n\tpublic static final String E_CONTAINER = \"Container\";\n\tpublic static final String E_COMPLEX_QUERY = \"ComplexQuery\";\n\tpublic static final String E_EXP = \"Exp\";\n\tpublic static final String E_AND = \"And\";\n\tpublic static final String E_OR = \"Or\";\n\tpublic static final String E_XML_DATA = \"XMLData\";\n\tpublic static final String E_APPEASEMENT_OFFERS = \"AppeasementOffers\";\n\tpublic static final String E_PERSONINFO_BILL_TO = \"PersonInfoBillTo\";\n\tpublic static final String E_PRICE_INFO = \"PriceInfo\";\n\tpublic static final String E_TO_ADDRESS = \"ToAddress\";\n\n\tpublic static final String A_TRACKING_NO = \"TrackingNo\";\n\tpublic static final String A_VALUE = \"Value\";\n\tpublic static final String A_QRY_TYPE = \"QryType\";\n\tpublic static final String A_DISCOUNT_PERCENT = \"DiscountPercent\";\n\tpublic static final String A_OFFER_AMOUNT = \"OfferAmount\";\n\tpublic static final String A_CURRENCY = \"Currency\";\n\tpublic static final String A_CUSTOMER_EMAIL_ID = \"CustomerEMailID\";\n\tpublic static final String A_MAIL_SENT = \"MailSent\";\n\t/**** Mash up elements and attributes *****/\n\n}",
"public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }",
"public interface DublinCoreConstants {\n \n /** Creates a new instance of Class */\n public static int DC_TITLE = 0;\n public static int DC_CREATOR = 1;\n public static int DC_SUBJECT = 2;\n public static int DC_DATE = 3;\n public static int DC_TYPE= 4;\n public static int DC_FORMAT= 5;\n public static int DC_IDENTIFIER = 6;\n public static int DC_COLLECTION = 7;\n public static int DC_COVERAGE = 8;\n \n public static int SUPPORTED_NUMBER = 9;\n \n public static final String[] DC_FIELDS = {\"title\",\"creator\",\"subject\",\"date\",\"type\",\"format\",\"identifier\",\"collection\",\"coverage\"};\n public static final String DC_NAMESPACE = \"dc:\";\n \n}",
"@Test\n void shouldGenerateTheFixMessage()\n {\n assertThat(\n new String(asciiFixBody(\"FIX.4.2\", \"35=5^49=SellSide^56=BuySide^34=3^52=20190606-09:25:34.329^58=Logout acknowledgement^\")))\n .isEqualTo(\"8=FIX.4.2\\u00019=84\\u000135=5\\u000149=SellSide\\u000156=BuySide\\u000134=3\\u000152=20190606-09:25:34.329\\u000158=Logout acknowledgement\\u000110=079\\u0001\");\n }",
"public interface Constants {\n\tpublic interface Paths { \n\t\tfinal String ELASTIC_PUSH_CONTROLLER_PATH = \"/elastic\" ; \n\t\tfinal String SAVE_TRANSACTION = \"/save\"; \n\t\tfinal String SAVE_TARGETS = \"/saveTargets\";\n\t\tfinal String SAVE_FEEDBACK = \"/saveFeedback\"; \n\t\tfinal String SAVE_FEEDBACK_RESPONSE = \"/v1/saveFeedback\"; \n\t}\n\t\n\tpublic static String SUCCESS= \"success\";\n\tpublic static int UNAUTHORIZED_ID = 401;\n\tpublic static int SUCCESS_ID = 200;\n\tpublic static int FAILURE_ID = 320;\n\tpublic static String UNAUTHORIZED = \"Invalid credentials. Please try again.\";\n\tpublic static String PROCESS_FAIL = \"Process failed, Please try again.\";\n\n}",
"public interface UUCConstants {\n\t\n\n\tpublic String SERVICE_NAME = \"uuc.service.name\";\n\t\n\tpublic String SERVICE_ID = \"uuc.service.id\";\n\t\n\tpublic String SERVICE_URI = \"uuc.service.url\";\n\n\tpublic String USER_ID = \"uuc.user.id\";\n\t\n\tpublic String USER_NAME = \"uuc.user.name\";\n\t\n\tpublic String USER_EMAIL = \"uuc.user.email\";\n\t\n\tpublic String USER_GROUP=\"uuc.user.group\";\n\t\n\tpublic String USER_TITLE = \"uuc.user.title\";\n\t\n\tpublic String USER_LEVEL = \"uuc.user.level\";\n\t\n\tpublic String USER_PHOTO = \"uuc.user.photo\";\n\t\n\tpublic String USER_PHONE = \"uuc.user.phone\";\n\t\n\tpublic String USER_PASSWORD=\"uuc.user.password\";\n\t\n\tpublic String USER_EMPLOYEE_ID = \"uuc.user.employeeid\";\n}",
"public interface Constants {\n\n public static final String ACTION_BIND = \"com.avoscloud.beijing.push.demo.keepalive.ACTION_BIND\";\n\n public static final String START_SESSION = \"START_SESSION\";\n public static final int START_SESSION_CODE = 1;\n\n public static final String SEND_MESSAGE = \"SEND_MESSAGE\";\n public static final int SEND_MESSAGE_CODE = 2;\n\n public static final String CLOSE_SESSION = \"CLOSE_SESSION\";\n public static final int CLOSE_SESSION_CODE = 3;\n\n public static final String SEND_MESSAGE_MESSAGE = \"SEND_MESSAGE_message\";\n\n public static final String SEND_MESSAGE_RECEIVERS = \"SEND_MESSAGE_receivers\";\n\n public static final String SESSION_UPDATE = \"SESSION_UPDATE\";\n\n public static final String SESSION_PAUSED = \"SESSION_PAUSED\";\n\n public static final String SESSION_RESUMED = \"SESSION_RESUMED\";\n\n public static final String SESSION_UPDATE_CONTENT = \"SESSION_UPDATE_content\";\n\n public static final String SESSION_UPDATE_TYPE = \"SESSION_UPDATE_type\";\n\n public static final String SESSION_UPDATE_TYPE_NORMAL = \"SESSION_UPDATE_type_normal\";\n\n public static final String SESSION_UPDATE_TYPE_CONTROL = \"SESSION_UPDATE_type_control\";\n\n public static final String SESSION_SHOW_ONLINE = \"SESSION_SHOW_ONLINE\";\n public static final int SESSION_SHOW_ONLINE_CODE = 4;\n\n public static final String SESSION_TRIGGER_PUSH = \"SESSION_TRIGGER_PUSH\";\n public static final int SESSION_TRIGGER_PUSH_CODE = 5;\n}",
"public interface Constants {\n\n //前端显示描述类内容最长字符串长度\n int MAX_LIST_CONTEXT_LENGTH = 60;\n\n //描述内容最大长度\n int MAX_CONTEXT_LENGTH = 3000;\n\n //评论内容最大长度\n int MAX_COMMENT_LENGTH = 500;\n\n //获取更多评论记录数\n int MAX_MORE_COMMENT_NUM = 100;\n\n //上传文件名字最大长度\n int MAX_FILE_NAME_LENGTH = 30;\n\n //同一作业连续发送提醒交作业通知间隔秒数\n int MIN_SECONDS_WARNSUB = 21600;\n\n //口语作业最多支持单词数\n int MAX_VOICE_WORK_WORDS = 15;\n\n //作业发布最长延迟天数\n int MAX_PUBLISH_WORK_EXDAYS = 60;\n\n // 课外作业\n int WORK_TYPE_EXTRA_WORK = 8;\n\n //板书类型\n int WORK_TYPE_VOICE_WORK = 7;\n\n //板书类型\n int WORK_TYPE_BLACKBOARD_PUBLISH = 6;\n\n //网络课件类型\n int WORK_TYPE_COURSE_REAPPEAR = 5;\n\n //电子作业\n int WORK_TYPE_EXERCISE_WORK = 4;\n\n //同步课堂作业\n int WORK_TYPE_SYNCLASS_WORK = 3;\n\n //同步课堂作业\n int WORK_TYPE_MAGIC_WORK = 2;\n\n //同步课堂作业\n int WORK_TYPE_GUIDANCE_WORK = 1;\n\n //我的课件\n int COURSEWARE_BELONG_TYPE_MY_APPEAR = 1;\n\n //发布的课件\n int COURSEWARE_BELONG_TYPE_COURSE_APPEAR = 3;\n\n //用户类型\n String TEACHER_TYPE = \"1\";\n\n String STUDENT_TYPE = \"2\";\n\n int WORK_TYPE = 1;\n\n int BLACKBOARD_TYPE = 2;\n\n //乐观锁机制尝试次数\n int OPTIMISTIC_LOCK_TRY_TIMES = 10;\n\n //提分宝作业评分描述10\n String MAGIC_WORK_SCORE_CONTEXT10 = \"恭喜你!继续保持,清华北大在等你哦!\";\n\n //提分宝作业评分描述9\n String MAGIC_WORK_SCORE_CONTEXT9 = \"哇噢!可以挑战清华北大了!\";\n\n //提分宝作业评分描述8\n String MAGIC_WORK_SCORE_CONTEXT8 = \"你好聪明,加油冲击重点大学吧!\";\n\n //提分宝作业评分描述7\n String MAGIC_WORK_SCORE_CONTEXT7 = \"太棒了,可以挑战一本大学啦!\";\n\n //提分宝作业评分描述6\n String MAGIC_WORK_SCORE_CONTEXT6 = \"再次挑战,稍微努力下就能二本大学啦!\";\n\n //提分宝作业评分描述5\n String MAGIC_WORK_SCORE_CONTEXT5 = \"再多练练就可以上大学啦!\";\n /**提分宝数据统计前端页面分数描述*/\n //提分宝作业评分描述10\n String STATISTICS_SCORE_CONTEXT10 = \"清华北大\";\n //提分宝作业评分描述9\n String STATISTICS_SCORE_CONTEXT9 = \"重点大学\";\n //提分宝作业评分描述8\n String STATISTICS_SCORE_CONTEXT8 = \"一本大学\";\n //提分宝作业评分描述7\n String STATISTICS_SCORE_CONTEXT7 = \"二本大学\";\n //提分宝作业评分描述6\n String STATISTICS_SCORE_CONTEXT6 = \"三本大学\";\n //提分宝作业评分描述5\n String STATISTICS_SCORE_CONTEXT5 = \"挑战完成\";\n\n\n\n //提醒交作业通知标题\n String WARNSUB_TITLE = \"作业提醒\";\n\n //提醒查看教师发布的板书、网络课件通知标题\n String WARNVIEW_BLACKBOARD_TITLE = \"新板书\";\n String WARNVIEW_COURSEWARE_TITLE = \"新课件\";\n\n //提醒交作业通知内容\n String WARNSUB_CONTENT = \"赶快交作业,老师都着急啦!\";\n\n String GUIDANCE_WORK_NAME = \"预习作业\";\n String MAGIC_WORK_NAME = \"提分宝作业\";\n String SYNCLASS_WORK_NAME = \"同步课堂作业\";\n String EXERCISE_WORK_NAME = \"电子作业\";\n String VOICE_WORK_NAME = \"口语作业\";\n String BLACKBOARD_WORK_NAME = \"板书\";\n String COURSEWARE_WORK_NAME = \"网络课件\";\n String EXTRA_WORK_NAME = \"课外作业\";\n\n String WARN_SUB_WORK_BUSY = \"您太忙碌啦,请休息一会儿,稍后再试\";\n\n // 页面最初加载的评论数\n int MIN_COMMENT_NUM = 4;\n\n // 数字的正则表达式\n final String NUMBER_EXPR = \"^[-+]?(([0-9]+)([.]([0-9]+))?|([.]([0-9]+))?)$\";\n\n // indentifyId\n String IDENTIFY_SCHOOL_MANAGER = \"SCHOOL_MANAGER\";\n String IDENTIFY_TEACHER = \"TEACHER\";\n String IDENTIFY_STUDENT = \"STUDENT\";\n String IDENTIFY_PARENT=\"PARENT\";\n\n final int MAX_STUDENT_NUMBER_FOR_PUBLIC = 1000;\n\n //出题数\n int MAGIC2_WORK_QUEST_NUM = 8;\n //最大衍生题号sort\n int MAGIC2_WORK_MAX_SORT = 5;\n\n //错误率\n double MAGIC2_WORK_WRONG_QUEST_NUM = 0.2;\n\n //默认题目初始平均用时\n final long MAGIC2_WORK_QUEST_AVGTIME = 30000;\n //默认作业时间\n final long DEFAULT_WORK_TIME = 300000;\n}",
"public interface IPSBrandCodeConstants\n{\n public static final int REPOSITORY = 1;\n public static final int SERVER = 2;\n public static final int PUBLISHER = 4;\n public static final int DEVELOPMENT_TOOLS = 8;\n public static final int DATABASE_PUBLISHER = 16;\n public static final int BEA_ACCELERATOR = 32;\n public static final int MULTI_SERVER_MANANGER = 64;\n public static final int CONTENT_CONNECTOR = 128;\n public static final int WORD = 256;\n public static final int INLINE_EDITING = 512;\n public static final int SPRINTA = 1024;\n public static final int APPLICATION_SERVER = 2048;\n public static final int WEB_SERVICES_LISTENER = 4096;\n public static final int DOCUMENT_ASSEMBLER = 8192;\n public static final int WEBSPHERE_ACCELERATOR = 16384;\n public static final int CONVERA_SEARCH = 32768;\n public static final int EKTRON_WEP_XML = 65536;\n public static final int EKTRON_WEBIMAGEFX = 131072;\n\n \n /**\n * Represents types of servers for which codes can be generated.\n */\n public enum ServerTypes\n {\n /**\n * Development server\n */\n DEVELOPMENT(0, \"Development\"),\n \n /**\n * Production server\n */\n PRODUCTION(1, \"Production\"),\n \n /**\n * Test server\n */\n TEST(2, \"Test\"),\n \n /**\n * Failover server\n */\n FAIL0VER(3, \"Fail Over\"),\n \n /**\n * Disaster Recovery server\n */\n DISATER_RECOVERY(4, \"Disaster Recovery\"),\n \n /**\n * Publishing Hub\n */\n PUBLISHING_HUB(5, \"Publishing Hub\");\n \n /**\n * Constructor\n * \n * @param value The integer representation of this type. \n * \n * @param displayName The display name, assumed not <code>null</code> or \n * empty.\n */\n private ServerTypes(int value, String displayName)\n {\n mi_value = value;\n mi_name = displayName;\n }\n \n /**\n * Get the integer value of this server type\n * \n * @return The value\n */\n public int getValue()\n {\n return mi_value;\n }\n \n /**\n * Returns the display name of this type\n * \n * @return The name, never <code>null</code> or empty.\n */\n @Override\n public String toString()\n {\n return mi_name;\n }\n \n /**\n * Determine if this type is an extended server type. These are types\n * that are not available for codes that don't support extended product\n * info.\n * \n * @return <code>true</code> if it is extended, <code>false</code>\n * otherwise.\n */\n public boolean isExtendedServerType()\n {\n return mi_value > PRODUCTION.mi_value;\n }\n \n /**\n * Lookup enum value by ordinal. Ordinals should be unique. If they are\n * not unique, then the first enum value with a matching ordinal is\n * returned.\n * \n * @param s The enum value\n * \n * @return an enumerated value, never <code>null</code>.\n * \n * @throws IllegalArgumentException if the value does not match\n */\n public static ServerTypes valueOf(int s) throws IllegalArgumentException\n {\n ServerTypes types[] = values();\n for (int i = 0; i < types.length; i++)\n {\n if (types[i].getValue() == s)\n return types[i];\n }\n throw new IllegalArgumentException(\"No match for value: \" + s);\n } \n \n /**\n * Gets list of server types sorted on display name ascending \n * case-insensitive.\n * \n * @return The list, never <code>null</code> or empty.\n */\n public static List<ServerTypes> getSortedValues()\n {\n List<ServerTypes> sortedTypes = new ArrayList<ServerTypes>();\n for (ServerTypes serverTypes : values())\n sortedTypes.add(serverTypes);\n \n Collections.sort(sortedTypes, new Comparator<ServerTypes>() {\n\n public int compare(ServerTypes t1, ServerTypes t2)\n {\n return t1.mi_name.toLowerCase().compareTo(\n t2.mi_name.toLowerCase());\n }});\n \n return sortedTypes;\n }\n \n\n /**\n * The value supplied during construction, immutable.\n */\n private int mi_value;\n \n /**\n * The display name supplied during construction, immutable.\n */\n private String mi_name;\n }\n \n \n /**\n * Represents types of evals for which codes can be generated.\n */\n public enum EvalTypes\n {\n /**\n * Development server\n */\n NOT_EVAL(0, \"Non-Eval\"),\n \n /**\n * Production server\n */\n M30_DAY(1, \"30 Day Eval\"),\n \n /**\n * Test server\n */\n M60_DAY(2, \"60 Day Eval\"),\n \n /**\n * Failover server\n */\n M90_DAY(3, \"90 Day Eval\"),\n \n /**\n * Disaster Recovery server\n */\n TERM(4, \"Term License\");\n\n \n /**\n * Constructor\n * \n * @param value The integer representation of this type. \n * \n * @param displayName The display name, assumed not <code>null</code> or \n * empty.\n */\n private EvalTypes(int value, String displayName)\n {\n mi_value = value;\n mi_name = displayName;\n }\n \n /**\n * Get the integer value of this eval type\n * \n * @return The value\n */\n public int getValue()\n {\n return mi_value;\n }\n \n /**\n * Returns the display name of this type\n * \n * @return The name, never <code>null</code> or empty.\n */\n @Override\n public String toString()\n {\n return mi_name;\n }\n \n /**\n * Determine if this type is an extended server type. These are types\n * that are not available for codes that don't support extended product\n * info.\n * \n * @return <code>true</code> if it is extended, <code>false</code>\n * otherwise.\n */\n public boolean isExtendedEvalType()\n {\n return mi_value > M90_DAY.mi_value;\n }\n \n /**\n * Lookup enum value by ordinal. Ordinals should be unique. If they are\n * not unique, then the first enum value with a matching ordinal is\n * returned.\n * \n * @param s The enum value\n * \n * @return an enumerated value, never <code>null</code>.\n * \n * @throws IllegalArgumentException if the value does not match\n */\n public static EvalTypes valueOf(int s) throws IllegalArgumentException\n {\n EvalTypes types[] = values();\n for (int i = 0; i < types.length; i++)\n {\n if (types[i].getValue() == s)\n return types[i];\n }\n throw new IllegalArgumentException(\"No match for value: \" + s);\n } \n \n /**\n * The value supplied during construction, immutable.\n */\n private int mi_value;\n \n /**\n * The display name supplied during construction, immutable.\n */\n private String mi_name;\n } \n}",
"public interface UserConstants {\n String TYPE_AUTH_QQ = \"qq\";\n String TYPE_AUTH_WX = \"wx\";\n String TYPE_AUTH_WB = \"wb\";\n String REG_ILLEGAL = \"[`~!@#$^&*()=|{}':;',\\\\[\\\\].<>/?~!@#¥……&*()—|{}【】‘;:”“'。,、?]\";\n\n String NCODE = \"86\";\n\n String FROM = \"whaleyVR\";\n\n\n int THIRD_ERROR = 1097;\n\n int THIRD_CANCEL = 2889;\n int THIRD_INSTALL = 3054;\n int THIRD_WEIBO = 5650;\n //====================================event====================================//\n String EVENT_LOGIN_SUCCESS = \"login_success\";\n String EVENT_SIGN_OUT = \"sign_out\";\n String EVENT_UPATE_NAME = \"update_name\";\n String EVENT_UPATE_AVATAR = \"update_avatar\";\n String EVENT_LOGIN_CANCEL = \"login_cancel\";\n}",
"private static String m137934a(C11097i iVar) {\n try {\n return iVar.f30171d.getString(\"proto\");\n } catch (Exception unused) {\n return \"\";\n }\n }",
"public interface BasicConfig {\n\n public static final String CONFIG_RREFIX = \"atencn.netty\";\n public static final int PINGPONG_CMD = -16705;\n public static final int PINGPONG_SUB = -50761;\n}",
"public interface Constants {\r\n\r\n\tpublic final static int UP = 1000;\r\n\tpublic final static int DOWN = 1001;\r\n\tpublic final static int RIGHT = 1002;\r\n\tpublic final static int LEFT = 1003;\r\n\t\r\n\t\r\n\tpublic final static int EMPTY = 0;\r\n\tpublic final static int ROAD = 1;\r\n\tpublic final static int TOWER = 2;\r\n\tpublic final static int NPC = 3;\r\n\tpublic final static int NPC_GENERATOR = 4;\r\n\tpublic final static int CASTLE = 5;\r\n\tpublic final static int LANDSCAPE = 6;\r\n\t\r\n\tpublic final static int LANDSCAPE_TREE_1 = 61;\r\n\tpublic final static int LANDSCAPE_TREE_2 = 62;\r\n\tpublic final static int LANDSCAPE_TREE_3 = 63;\r\n\t\r\n\tpublic final static int FIELD_END = 7;\r\n\t\r\n}",
"public interface Constants {\n\n\t// /**\n\t// * Version string to identify library (e.g., in EXIficientGUI)\n\t// */\n\t// public static final String VERSION = \"1.0.0-SNAPSHOT\";\n\n\t/**\n\t * <p>\n\t * W3C EXI Namespace URI\n\t * </p>\n\t * \n\t * <p>\n\t * Defined to be \"<code>http://www.w3.org/2009/exi</code>\".\n\t */\n\tpublic static final String W3C_EXI_NS_URI = \"http://www.w3.org/2009/exi\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:base64Binary\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_BASE64BINARY = \"base64Binary\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:hexBinary\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_HEXBINARY = \"hexBinary\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:boolean\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_BOOLEAN = \"boolean\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:dateTime\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DATETIME = \"dateTime\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:time\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_TIME = \"time\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:date\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DATE = \"date\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gYearMonth\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GYEARMONTH = \"gYearMonth\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gYear\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GYEAR = \"gYear\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gMonthDay\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GMONTHDAY = \"gMonthDay\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gDay\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GDAY = \"gDay\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:gMonth\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_GMONTH = \"gMonth\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:decimal\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DECIMAL = \"decimal\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:float and xsd:double\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_DOUBLE = \"double\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:integer\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_INTEGER = \"integer\";\n\n\t/**\n\t * <p>\n\t * W3C EXI local-name for datatype xsd:string, xsd:anySimpleType and all\n\t * types derived by union\n\t * </p>\n\t */\n\tpublic static final String W3C_EXI_LN_STRING = \"string\";\n\n\t/**\n\t * XML Reader feature\n\t */\n\tpublic static final String W3C_EXI_FEATURE_BODY_ONLY = \"http://www.w3.org/exi/features/exi-body-only\";\n\n\t/**\n\t * Initial Entries in String Table Partitions\n\t */\n\t/* \"\", empty string */\n\tpublic static final String[] PREFIXES_EMPTY = { \"\" };\n\tpublic static final String[] LOCAL_NAMES_EMPTY = {};\n\t/* \"http://www.w3.org/XML/1998/namespace\" */\n\tpublic static String[] PREFIXES_XML = { \"xml\" };\n\tpublic static String[] LOCAL_NAMES_XML = { \"base\", \"id\", \"lang\", \"space\" };\n\t/* \"http://www.w3.org/2001/XMLSchema-instance\", xsi */\n\tpublic static String[] PREFIXES_XSI = { \"xsi\" };\n\tpublic static String[] LOCAL_NAMES_XSI = { \"nil\", \"type\" };\n\t/* \"http://www.w3.org/2001/XMLSchema\", xsd */\n\tpublic static String[] PREFIXES_XSD = {};\n\tpublic static String[] LOCAL_NAMES_XSD = { \"ENTITIES\", \"ENTITY\", \"ID\",\n\t\t\t\"IDREF\", \"IDREFS\", \"NCName\", \"NMTOKEN\", \"NMTOKENS\", \"NOTATION\",\n\t\t\t\"Name\", \"QName\", \"anySimpleType\", \"anyType\", \"anyURI\",\n\t\t\t\"base64Binary\", \"boolean\", \"byte\", \"date\", \"dateTime\", \"decimal\",\n\t\t\t\"double\", \"duration\", \"float\", \"gDay\", \"gMonth\", \"gMonthDay\",\n\t\t\t\"gYear\", \"gYearMonth\", \"hexBinary\", \"int\", \"integer\", \"language\",\n\t\t\t\"long\", \"negativeInteger\", \"nonNegativeInteger\",\n\t\t\t\"nonPositiveInteger\", \"normalizedString\", \"positiveInteger\",\n\t\t\t\"short\", \"string\", \"time\", \"token\", \"unsignedByte\", \"unsignedInt\",\n\t\t\t\"unsignedLong\", \"unsignedShort\" };\n\n\t/**\n\t * \n\t */\n\tpublic static final String EMPTY_STRING = \"\";\n\t// public static final StringValue EMPTY_STRING_VALUE = new\n\t// StringValue(Constants.EMPTY_STRING);\n\n\tpublic static final String XSI_SCHEMA_LOCATION = \"schemaLocation\";\n\tpublic static final String XSI_NONAMESPACE_SCHEMA_LOCATION = \"noNamespaceSchemaLocation\";\n\n\tpublic static final String XML_NS_PREFIX = XMLConstants.XML_NS_PREFIX; // \"xml\"\n\tpublic static final String XML_NULL_NS_URI = XMLConstants.NULL_NS_URI; // \"\"\n\tpublic static final String XML_DEFAULT_NS_PREFIX = XMLConstants.DEFAULT_NS_PREFIX; // \"\"\n\tpublic static final String XML_NS_ATTRIBUTE_NS_URI = XMLConstants.XMLNS_ATTRIBUTE_NS_URI; // \"http://www.w3.org/2000/xmlns/\"\n\tpublic static final String XML_NS_ATTRIBUTE = XMLConstants.XMLNS_ATTRIBUTE; // \"xmlns\"\n\tpublic static final String XML_NS_URI = XMLConstants.XML_NS_URI; // \"http://www.w3.org/XML/1998/namespace\"\n\tpublic static final String XML_SCHEMA_INSTANCE_NS_URI = XMLConstants.W3C_XML_SCHEMA_INSTANCE_NS_URI; // \"http://www.w3.org/2001/XMLSchema-instance\"\n\tpublic static final String XML_SCHEMA_NS_URI = XMLConstants.W3C_XML_SCHEMA_NS_URI; // \"http://www.w3.org/2001/XMLSchema\"\n\n\tpublic static final String XSI_PFX = \"xsi\";\n\tpublic static final String XSI_TYPE = \"type\";\n\tpublic static final String XSI_NIL = \"nil\";\n\n\tpublic static final String COLON = \":\";\n\n\tpublic static final String XSD_LIST_DELIM = \" \";\n\tpublic static final char XSD_LIST_DELIM_CHAR = ' ';\n\tpublic static final char[] XSD_LIST_DELIM_CHAR_ARRAY = { ' ' };\n\n\t// public static final String CDATA_START = \"<![CDATA[\";\n\t// public static final char[] CDATA_START_ARRAY = CDATA_START.toCharArray();\n\t// public static final String CDATA_END = \"]]>\";\n\t// public static final char[] CDATA_END_ARRAY = CDATA_END.toCharArray();\n\n\tpublic static final String XSD_ANY_TYPE = \"anyType\";\n\n\tpublic static final String XSD_BOOLEAN_TRUE = \"true\";\n\tpublic static final String XSD_BOOLEAN_1 = \"1\";\n\tpublic static final String XSD_BOOLEAN_FALSE = \"false\";\n\tpublic static final String XSD_BOOLEAN_0 = \"0\";\n\n\tpublic static final char[] XSD_BOOLEAN_TRUE_ARRAY = XSD_BOOLEAN_TRUE\n\t\t\t.toCharArray();\n\tpublic static final char[] XSD_BOOLEAN_1_ARRAY = XSD_BOOLEAN_1\n\t\t\t.toCharArray();\n\tpublic static final char[] XSD_BOOLEAN_FALSE_ARRAY = XSD_BOOLEAN_FALSE\n\t\t\t.toCharArray();\n\tpublic static final char[] XSD_BOOLEAN_0_ARRAY = XSD_BOOLEAN_0\n\t\t\t.toCharArray();\n\n\tpublic static final String DECODED_BOOLEAN_TRUE = XSD_BOOLEAN_TRUE;\n\tpublic static final String DECODED_BOOLEAN_FALSE = XSD_BOOLEAN_FALSE;\n\tpublic static final char[] DECODED_BOOLEAN_TRUE_ARRAY = DECODED_BOOLEAN_TRUE\n\t\t\t.toCharArray();\n\tpublic static final char[] DECODED_BOOLEAN_FALSE_ARRAY = DECODED_BOOLEAN_FALSE\n\t\t\t.toCharArray();\n\n\tpublic static final int NOT_FOUND = -1;\n\n\t/*\n\t * Block & Channel settings Maximal Number of Values (per Block / Channel)\n\t */\n\tpublic static final int MAX_NUMBER_OF_VALUES = 100;\n\tpublic static final int DEFAULT_BLOCK_SIZE = 1000000;\n\n\t/*\n\t * StringTable settings\n\t */\n\tpublic static final int DEFAULT_VALUE_MAX_LENGTH = -1; // unbounded\n\tpublic static final int DEFAULT_VALUE_PARTITON_CAPACITY = -1; // unbounded\n\n\t/*\n\t * Float & Double Values\n\t */\n\tpublic static final String FLOAT_INFINITY = \"INF\";\n\tpublic static final String FLOAT_MINUS_INFINITY = \"-INF\";\n\tpublic static final String FLOAT_NOT_A_NUMBER = \"NaN\";\n\n\tpublic static final char[] FLOAT_INFINITY_CHARARRAY = FLOAT_INFINITY\n\t\t\t.toCharArray();\n\tpublic static final char[] FLOAT_MINUS_INFINITY_CHARARRAY = FLOAT_MINUS_INFINITY\n\t\t\t.toCharArray();\n\tpublic static final char[] FLOAT_NOT_A_NUMBER_CHARARRAY = FLOAT_NOT_A_NUMBER\n\t\t\t.toCharArray();\n\n\t/* -(2^14) == -16384 */\n\tpublic static final int FLOAT_SPECIAL_VALUES = -16384;\n\tpublic static final int FLOAT_MANTISSA_INFINITY = 1;\n\tpublic static final int FLOAT_MANTISSA_MINUS_INFINITY = -1;\n\tpublic static final int FLOAT_MANTISSA_NOT_A_NUMBER = 0;\n\n\t/* -(2^14-1) == -16383 */\n\tpublic static final long FLOAT_EXPONENT_MIN_RANGE = -16383;\n\t/* 2^14-1 == 16383 */\n\tpublic static final long FLOAT_EXPONENT_MAX_RANGE = 16383;\n\t/* -(2^63) == -9223372036854775808L */\n\tpublic static final long FLOAT_MANTISSA_MIN_RANGE = -9223372036854775808L;\n\t/* 2^63-1 == 9223372036854775807L */\n\tpublic static final long FLOAT_MANTISSA_MAX_RANGE = 9223372036854775807L;\n\n}",
"String mo2201b() {\n return this.notificationDefaults + f497z[0] + this.notificationFlags + f497z[0] + this.statusBarDrawable + f497z[0] + this.developerArg0;\n }",
"public interface Constants {\n int SERVER_PORT = 6001;\n String LOCALHOST = \"127.0.0.1\";\n\n String DEFAULT_PHONE_NUMBER = \"+380965354234\";\n\n}",
"@SuppressWarnings(\"unused\")\npublic interface Constants {\n /**\n * Extra data key. Used with intent or some others.\n */\n class Extras {\n public static final String TAG = \"ext_tag\";\n public static final String FLAG = \"ext_flag\";\n public static final String DATA = \"ext_data0\";\n public static final String DATA_1 = \"ext_data1\";\n public static final String DATA_2 = \"ext_data2\";\n public static final String DATA_3 = \"ext_data3\";\n public static final String DATA_4 = \"ext_data4\";\n public static final String DATA_5 = \"ext_data5\";\n public static final String DATA_6 = \"ext_data6\";\n public static final String DATA_7 = \"ext_data7\";\n public static final String DATA_8 = \"ext_data8\";\n public static final String GRADE_INFO = \"ext_grade_info\";\n public static final String MEMBER_VP_INFO = \"ext_member_vp_info\";\n public static final String MEMBER_VP_POSITION = \"ext_member_vp_position\";\n }\n\n\n}",
"public interface TextConstant {\n String INPUT_INFO_DATA = \"input.string.data\";\n String INPUT_LAST_NAME=\"input.last.name.date\";\n String INPUT_FIRST_NAME = \"input.first.name.data\";\n String WRONG_INPUT_DATA = \"input.wrong.data\";\n String INPUT_LOGIN_DATA = \"input.login.data\";\n}",
"public ConstantStringInfo (DataInputStream iStream) throws IOException\n {\n tag = ConstantPoolInfo.CONSTANT_String;\n \n stringIndex = iStream.readUnsignedShort ();\n }",
"public interface Constant {\n String INDEX_URL=\"https://raw.githubusercontent.com/sujit0892/meeting/master/meeting-xml/index.xml\";\n String MEETING_TAG=\"meeting\";\n String NAME_TAG=\"name\";\n String VENUE_TAG=\"venue\";\n String START_DATE=\"start-date\";\n String XML_URL=\"url\";\n String END_DATE=\"end-date\";\n String DESCRIPTION_TAG=\"description\";\n\n}",
"public interface RetailStaffingConstants\n{\n\t// application level constants\n\tpublic static final String EMPTY_STRING = \"\";\n\n\t// Log Exception Constants\n\tpublic static final String RETURN_MESSAGE_FATAL_ERROR = \"Application has Encountered a Fatal Error.\";\n\tpublic static final String ERROR_PARSE_DATE = \"Error occurred when parsing the date.\";\n\tpublic static final String ERROR_CONVERT_BOOLEAN = \"Error occurred while converting to boolean.\";\n\tpublic static final String ERROR_PARSE_TIMESTAMP = \"Error occurred when parsing the timestamp.\";\n\n\t// Statuses\n\tpublic static final String SUCCESS_APP_STATUS = \"SUCCESS\";\n\tpublic static final String CAN_FORM = \"Candidate\";\n\tpublic static final String ITI_NBR_FORM = \"InterviewNbr\";\n\tpublic static final String REQ_FORM = \"Requisition\";\n\n\t// FormName Constants\n\tpublic static final String ERROR_APP_STATUS = \"ERROR\";\n\n\t// INSERT/Update\n\tpublic static final String INSERT = \"INSERT\";\n\tpublic static final String UPDATE = \"UPDATE\";\n\n\t// Messages\n\tpublic static final String ITI_INSERT_SUCCESS = \"Phone Screen Details inserted successfully.\";\n\tpublic static final String ITI_UPDATE_SUCCESS = \"Phone Screen Details updated successfully.\";\n\tpublic static final String ITI_CREATE_SUCCESS = \"Phone Screen Details created successfully.\";\n\tpublic static final String REVIEW_COMPLETED_PHONE_SCREENS = \"Review Completed Phone Screens updated successfully.\";\n\tpublic static final String REJECTION_DETAILS_CREATED = \"Rejection Details have been created successfully\" ;\n\tpublic static final String REJECTION_DETAILS_FOUND = \"Rejection Details have been retrieved successfully\" ;\n\n\t// summary constants\n\tpublic static final String CONDUCT_BASIC_PHONE_SCREENS = \"Perform Basic Phone Screens\";\n\tpublic static final String CONDUCT_DETAILED_PHONE_SCREENS = \"Perform Detailed Phone Screens\";\n\tpublic static final String CONDUCT_REVIEWCOMPLETED_PHONE_SCREENS = \"Review Completed Phone Screens\";\n\tpublic static final String CONDUCT_SCHEDULEINTERVIEW_PHONE_SCREENS = \"Schedule Interviews\";\n\tpublic static final String VIEW_REQUISITIONS = \"Review Active Requisitions\";\n\tpublic static final String VIEW_INACTIVE_REQUISITIONS = \"View Inactive Requisitions\";\n\tpublic static final String VIEW_SEND_INTERVIEW_MATERIALS = \"Send Interview Materials\";\n \n\tpublic static final String ORGID_STORE = \"store\";\n\tpublic static final String ORGID_DISTRICT = \"district\";\n\tpublic static final String ORGID_REGION = \"region\";\n\tpublic static final String ORGID_DIVISION = \"division\";\n\t\n\t// To fetch the Hone screen details of a requisition based on the Active flag\t\n\tpublic static final String PHN_ACTV = \"Y\";\n\tpublic static final String PHN_INACTV = \"N\";\n\tpublic static final String PHN_HOLD = \"H\";\n\n\t// flag internal external\n\tpublic static final String INTERNAL_FLAG = \"INTERNAL\";\n\tpublic static final String EXTERNAL_FLAG = \"EXTERNAL\";\n\n\t// Timestamp and date formats\n\tpublic static final String TIMESTAMP_FORMAT = \"yyyy-MM-dd-kk:mm:ss.SSS\";\n\tpublic static final String TIME_FORMAT = \"yyyy-MM-dd-kk:mm:ss.SSS\";\n\tpublic static final String DATE_FORMAT = \"yyyy-MM-dd\";\n\n\t// Interview Location Typ Code\n\tpublic static final String HIRING_STR_TYP_CD = \"1\";\n\tpublic static final String NON_HIRING_STR_TYP_CD = \"2\";\n\tpublic static final String HIRING_EVT_TYP_CD = \"3\";\n\tpublic static final String OTHR_LOC_TYP_CD = \"4\";\n\n\t// minimum requirement flag\n\tpublic static final String MINIMUM_REQUR_YES_FLG = \"Yes\";\n\tpublic static final String MINIMUM_REQUR_NO_FLG = \"No\";\n\tpublic static final String MINIMUM_REQUR_NA_FLG = \"N/A\";\n\tpublic static final String MINIMUM_REQUR_NA_FLEX_FLG = \"A\";\n\n\t// minimum requirement flag - DB Update.\n\tpublic static final String MINIMUM_REQUR_YES__DB_FLG = \"Y\";\n\tpublic static final String MINIMUM_REQUR_NO_DB_FLG = \"N\";\n\tpublic static final String MINIMUM_REQUR_NA_DB_FLG = \"A\";\n\n\t// Note Type Code\n\tpublic static final short CONTACT_HISTRY_NOTE_TYP_CD = 1;\n\tpublic static final short PHN_SCRN_RESPONSE_NOTE_TYP_CD = 4;\n\tpublic static final short QUALIFIED_POOL_NOTE_TYP_CD = 2;\n\tpublic static final short REFERRALS_NOTE_TYP_CD = 3;\n\n\t// boolean to string conversion\n\tpublic static final String TRUE = \"Y\";\n\tpublic static final String FALSE = \"N\";\n\t\n\tpublic static final String AUTO_HOLD_FLAG_TRUE = \"1\";\n\tpublic static final String AUTO_HOLD_FLAG_FALSE = \"0\";\n\n\t// ITI statuses\n\tpublic static final short BASIC_ITI_STATUS = 1;\n\tpublic static final short DETAILED_ITI_STATUS = 2;\n\tpublic static final short DO_NOT_PROCEED_STAT = 5;\n\tpublic static final short PROCEED_STAT = 12;\n\tpublic static final short SCHEDULEINTERVIEW_ITI_STATUS = 9;\n\tpublic static final String IVR_USER = \"IVR\";\n\tpublic static final String IVR_CONDUCTED_PHONE_SCREEN = \"Automated IVR Phone Screen\";\n\n\t//Interview Status Codes\n\tpublic static final short INTERVIEW_STATUS_CODE_ZERO = 0;\t\n\tpublic static final short INTERVIEW_SCHEDULED = 11;\n\tpublic static final short SCHEDULE_INTERVIEW = 9;\n\tpublic static final short STORE_SCHEDULING = 12; //NEW RSA 2.0\n\tpublic static final short UNABLE_TO_SCHEDULE = 10;\n\t//RSC Automation More IVR Changes\n\tpublic static final short PENDING_SCHEDULING = 19;\n\tpublic static final short PENDING_SCHEDULE_OFFER_INTV = 16;\n\tpublic static final short PENDING_SCHEDULE_CALENDAR = 15;\n\tpublic static final short INTERVIEW_LEFT_MESSAGE = 17;\n\tpublic static final short INTERVIEW_INVALID_NUMBER = 18;\n \n\t// Phone Screen Status Codes (RSA 2.0)\n\tpublic static final short INITIATE_BASIC_PHONE_SCREEN = 21;\n\tpublic static final short INITIATE_DETAILED_PHONE_SCREEN = 21;\n\tpublic static final short PHONE_SCREEN_COMPLETED = 4;\n\tpublic static final short STORE_ADMINISTERED = 3;\n\tpublic static final short PHONE_SCREEN_FAVORABLE = 15;\n\tpublic static final short INITIATE_SELF_SCREEN = 21;\n\n\t// Interview Material Statuses (RSA 2.0)\n\tpublic static final short INTERVIEW_MAT_STATUS_CODE_ZERO = 0;\t\n\tpublic static final short INTERVIEW_MATERIAL_SENT = 1; //NEW RSA 2.0\n\tpublic static final short SEND_CALENDAR_PACKET = 2; //NEW RSA 2.0\n\tpublic static final short SEND_EMAIL_PACKET = 3; //NEW RSA 2.0\n\n\tpublic static final List<Short> ALL_POSSIBLE_STATUSES = new ArrayList<Short>() {\n\t\tprivate static final long serialVersionUID = 1L;\n\t\t{add(Short.valueOf(\"0\"));add(Short.valueOf(\"1\"));add(Short.valueOf(\"2\"));add(Short.valueOf(\"3\"));add(Short.valueOf(\"4\"));\n\t\t add(Short.valueOf(\"5\"));add(Short.valueOf(\"6\"));add(Short.valueOf(\"7\"));add(Short.valueOf(\"8\"));add(Short.valueOf(\"9\"));\n\t\t add(Short.valueOf(\"10\"));add(Short.valueOf(\"11\"));add(Short.valueOf(\"12\"));add(Short.valueOf(\"13\"));add(Short.valueOf(\"14\"));\n\t\t add(Short.valueOf(\"15\"));add(Short.valueOf(\"16\"));add(Short.valueOf(\"17\"));add(Short.valueOf(\"18\"));add(Short.valueOf(\"19\"));\n\t\t add(Short.valueOf(\"20\"));add(Short.valueOf(\"21\"));add(Short.valueOf(\"22\"));add(Short.valueOf(\"23\"));add(Short.valueOf(\"24\"));\n\t\t add(Short.valueOf(\"25\"));}\n\t};\n\n\tpublic static final short REQ_STATUS_CD_IN_PROCESS = 1;\n\tpublic static final int CONTACT_HIS_LENGTH=2000;\n//\t\n//\t//Authorisation position count included for the review completed phone screens\n//\t\n\tpublic static final int AuthorizationPositionCount = 1;\n\n\tpublic static final String ACCEPTED_STATUS = \"AC\";\n\tpublic static final String DECLINED_STATUS = \"DE\";\n\n\t// Pagination record cache size\n\tpublic static final int CACHED_RECORD_SIZE = 100;\n\tpublic static final String SPACE_STRING = \" \";\n\n\tpublic static final String ITI_DTL_LIST = \"itiDtlList\";\n\tpublic static final String REQ_DTL_LIST = \"reqDetList\";\n\tpublic static final String PAGINATION_TOKEN = \"paginationToken\";\n\n\t// The various error codes used in the application.\n\tpublic static final int INVALID_INPUT_CODE = 100;\n\tpublic static final int APP_FATAL_ERROR_CODE = 1000;\n\tpublic static final int NO_RECORDS_FOUND_ERROR_CODE = 200;\n\tpublic static final int FETCHING_CANDIDATE_DETAILS_ERROR_CODE = 300;\n\tpublic static final int FETCHING_AVAILABLE_REGIONS_ERROR_CODE = 301;\n\tpublic static final int FETCHING_AVAILABLE_DIVS_ERROR_CODE = 302;\n\tpublic static final int FETCHING_AVAILABLE_DISTS_ERROR_CODE = 303;\n\tpublic static final int UPDATING_PHONE_DETAILS_ERROR_CODE = 400;\n\tpublic static final int FETCHING_PHONE_DETAILS_ERROR_CODE = 401;\n\tpublic static final int FETCHING_INTERVIEW_DETAILS_ERROR_CODE = 402;\n\tpublic static final int FETCHING_MINRESPONSES_DETAILS_ERROR_CODE = 404;\n\tpublic static final int FETCHING_REQUISITIONNOTE_DETAILS_ERROR_CODE = 405;\n\tpublic static final int FETCHING_STAFFING_DETAILS_ERROR_CODE = 406;\n\tpublic static final int FETCHING_INTERVIEW_RESPONSES_DETAILS_ERROR_CODE = 407;\n\tpublic static final int INSERTING_REJECTION_DETAILS_ERROR_CODE = 410 ;\n\tpublic static final int FETCHING_REQUISITION_DETAILS_ERROR_CODE = 500;\n\tpublic static final int FETCHING_INACTIVE_REQUISITION_DETAILS_ERROR_CODE = 508;\n\tpublic static final int UPDATING_REQUISITION_STAFFING_DETAILS_ERROR_CODE = 501;\n\tpublic static final int UPDATING_REVIEW_PHONE_SCREEN_ERROR_CODE = 510;\n\tpublic static final int INVALID_STORE_ERROR_CODE = 600;\n\tpublic static final int INSERTING_PHONE_DETAILS_ERROR_CODE = 700;\n\tpublic static final int NO_FURTHER_RECORDS_FOUND_ERROR_CODE = 800;\n\tpublic static final int FETCHING_POM_RSA_CROSS_REF_ERROR_CODE = 801;\n\tpublic static final int FETCHING_INTERVIEW_TIMESLOTS_ERROR_CODE = 900;\n\tpublic static final int UPDATING_INTERVIEW_TIMESLOTS_STATUS_ERROR_CODE = 901;\n\tpublic static final short REQ_STATUS_CD = 1;\n\t\n\t//The various error messages\n\tpublic static final String NO_RECORDS_FOUND_ERROR_MSG = \"The search criteria given are \";\n\tpublic static final String FETCHING_CANDIDATE_DETAILS_ERROR_MSG = \"The candidate id being fetched is \";\n\tpublic static final String UPDATING_PHONE_DETAILS_ERROR_MSG = \"The phone screen number being updated is \";\n\tpublic static final String FETCHING_PHONE_DETAILS_ERROR_MSG = \"The phone screen number being fetched is \";\n\tpublic static final String FETCHING_INTERVIEW_DETAILS_ERROR_MSG = \"The interview details fetched for \";\n\tpublic static final String FETCHING_MINRESPONSES_DETAILS_ERROR_MSG = \"The minimum response fetched for \";\n\tpublic static final String FETCHING_REQUISITIONNOTE_DETAILS_ERROR_MSG = \"The requisition note details fetched for \";\n\tpublic static final String FETCHING_STAFFING_DETAILS_ERROR_MSG = \"The staffing details fetched for \";\n\tpublic static final String FETCHING_REQUISITION_DETAILS_ERROR_MSG = \"The requistion details fetched for \";\n\tpublic static final String UPDATING_REQUISITION_STAFFING_DETAILS_ERROR_MSG = \"The requisition staffing details updated for \";\n\tpublic static final String SUBMIT_REQUISITION_REQUEST_DETAILS_ERROR_CODE_MSG = \"The submit requisition request failed...\";\n\tpublic static final String INVALID_STORE_ERROR_MSG = \"The store is provided is \";\n\tpublic static final String INSERTING_PHONE_DETAILS_ERROR_MSG = \"The phone screen details inserted for \";\n\tpublic static final String UPDATING_REVIEW_PHONE_SCREEN_DETAILS_ERROR_MSG = \"The review Phone screen updated for \";\n\tpublic static final String INSERTING_REJECTION_DETAILS_ERROR_MSG = \"Error occurred while inserting attach reason for \";\n\t\n\t// Status update message for contact history\n\tpublic static final short SCHEDULING_INTERVAL_30 = 30;\n\tpublic static final short SCHEDULING_INTERVAL_60 = 60;\n\n\t//RSA3.0\n\tpublic static final String APPLICANT_POOL_LIST = \"applicantPoolList\";\n\tpublic static final String ASSOCIATE_POOL_LIST = \"associatePoolList\";\n\t// Status codes for Interview Available Slots.\n\tpublic static final short AVALIABLE_STATUS_CODE = 1;\n\tpublic static final short RESERVED_STATUS_CODE = 2;\n\tpublic static final short SCHEDULED_STATUS_CODE = 3;\n\tpublic static final short CANCELLED_STATUS_CODE = 4;\n\tpublic static final short RECORDS_REQUESTED = 1;\n\n\tpublic static final String YES = \"Y\";\n\tpublic static final String NO = \"N\";\n\t// format string that will be used to parse String dates into date objects\n\tpublic static final String INTRVW_SVC_DATE_FORMAT = \"MM-dd-yyyy\";\t\n\t// format string that will be used to format dates into time objects\n\tpublic static final String INTRVW_SVC_TIME_FORMAT = \"HH:mm\";\t\t\n\t\n\t//RSA 5.0 Interview Results Errors\n\tpublic static final int INTVW_RESULT_SCRN_CAND_FETCH = 950;\n\tpublic static final int INTVW_RESULT_SCRN_UPDATE_ERR = 951;\n\t\n\t//ATS\n\tpublic static final String INSERTING_MARK_APPLICANT_AS_CONSIDERED_ERROR_MSG = \"Error occurred inserting considered status for applicants.\";\n\t//Start - Added as part of Flex to HTML Conversion - 13 May 2015\n\tpublic static final String USER_PROFILE_DET_NOT_FOUND =\"User Profile Details Not Found\";\n \n public static final String USER_PROFILE_SERVICE_PATH = \"/UserProfileService\";\n public static final String GET_USER_PROFILE_DETAILS_PATH = \"/getUserProfileDetails\";\n \n public static final String CONTENT_TYPE = \"Content-Type\";\n public static final String VERSION = \"version\";\n public static final int VERION_ONE = 1;\n public static final String FAILURE_APP_STATUS = \"FAILURE\";\n public static final int USER_PROFILE_DET_NOT_FOUND_CODE = 501; \n public static final int USER_PROFILE_EXCEPTION_ERROR_CODE= 502;\n public static final String COMMA = \",\";\n public static final String STATUS_FALSE = \"false\";\n public static final String APPLICATION_ERROR = \"Application Error\";\n public static final String TIMESTAMPTO_CLASS_NAME = \"TimeStampTO\";\n public static final String FORMAT_TWO_PRECISION = \"#.##\";\n public static final String UNDER_SCORE = \"-\";\n public static final String SEMI_COLON = \";\";\n public static final String DISPLAY_DATE_FORMAT = \"MM/dd/yyyy\";\n public static final String FORMAT_24_HOURS = \"hh:mm\";\n public static final String FORMAT_12_HOURS = \"hh:mm a\";\n public static final String SLASH = \"/\";\n //End - Added as part of Flex to HTML Conversion - 13 May 2015\n \n public static final String DISPLAY_TIMESTAMP_FORMAT = \"MM/dd/yyyy hh:mm a\";\n \n\t//Voltage Implementation\n\tpublic static final String LOCAL_TRUST_STORE_VOLTAGE_PROPERTY_NAME = \"javax.net.ssl.trustStore\";\n\tpublic static final String LOCAL_TRUST_STORE_VOLTAGE_PROPERTY_VALUE = \"C:\\\\LocalVoltageSecurity\\\\voltagekeystore.jks\";\n\tpublic static final String LOCAL_TRUST_STORE_VOLTAGE_PASSWORD_PROPERTY_NAME = \"javax.net.ssl.trustStorePassword\";\n\tpublic static final String LOCAL_TRUST_STORE_VOLTAGE_PASSWORD_PROPERTY_VALUE = \"changeit\";\n\t\n\tpublic static final String LOCALHOST_TRUST_STORE_PROPERTY_NAME = \"javax.net.ssl.trustStore\";\n\tpublic static final String LOCALHOST_TRUST_STORE_PROPERTY_VALUE = \"C:\\\\LocalVoltageSecurity\\\\localhost.jks\";\n\tpublic static final String LOCALHOST_TRUST_STORE_PASSWORD_PROPERTY_NAME = \"javax.net.ssl.trustStorePassword\";\n\tpublic static final String LOCALHOST_TRUST_STORE_PASSWORD_PROPERTY_VALUE = \"changeit\";\t\n\t\n\tpublic static final String LIFE_CYCLE_PROPERTY = \"host.LCP\";\n\tpublic static final String LIFE_CYCLE_AD = \"AD\";\n\tpublic static final String LIFE_CYCLE_QA = \"QA\";\n\tpublic static final String LIFE_CYCLE_QP = \"QP\";\n\tpublic static final String LIFE_CYCLE_ST = \"ST\";\n\tpublic static final String LIFE_CYCLE_PR = \"PR\";\n\tpublic static final int SSN_PROTECT = 1;\n\tpublic static final String SSN_PROTECT_URL_DEV = \"https://localhost:8443/VoltageWebService/service/VoltageClientService/protectFormattedDataSSN\";\n\tpublic static final String SSN_PROTECT_URL_QA = \"https://webapps-qa.homedepot.com/VoltageWebService/service/VoltageClientService/protectFormattedDataSSN\";\t\n\tpublic static final String SSN_PROTECT_URL_QP = \"https://webapps-qp.homedepot.com/VoltageWebService/service/VoltageClientService/protectFormattedDataSSN\";\t\n\tpublic static final String SSN_PROTECT_URL_ST = \"https://webapps-st.homedepot.com/VoltageWebService/service/VoltageClientService/protectFormattedDataSSN\";\n\tpublic static final String SSN_PROTECT_URL_PR = \"https://webapps.homedepot.com/VoltageWebService/service/VoltageClientService/protectFormattedDataSSN\";\n\tpublic static final int SSN_ACCESS = 2;\n\tpublic static final String SSN_ACCESS_URL_DEV = \"https://localhost:8443/VoltageWebService/service/VoltageClientService/accessFormattedDataSSN\";\n\tpublic static final String SSN_ACCESS_URL_QA = \"https://webapps-qa.homedepot.com/VoltageWebService/service/VoltageClientService/accessFormattedDataSSN\";\t\n\tpublic static final String SSN_ACCESS_URL_QP = \"https://webapps-qp.homedepot.com/VoltageWebService/service/VoltageClientService/accessFormattedDataSSN\";\t\n\tpublic static final String SSN_ACCESS_URL_ST = \"https://webapps-st.homedepot.com/VoltageWebService/service/VoltageClientService/accessFormattedDataSSN\";\n\tpublic static final String SSN_ACCESS_URL_PR = \"https://webapps.homedepot.com/VoltageWebService/service/VoltageClientService/accessFormattedDataSSN\";\t\t\n\tpublic static final int DL_PROTECT = 3;\n\tpublic static final String DL_PROTECT_URL_DEV = \"https://localhost:8443/VoltageWebService/service/VoltageClientService/protectFormattedDataDL\";\n\tpublic static final String DL_PROTECT_URL_QA = \"https://webapps-qa.homedepot.com/VoltageWebService/service/VoltageClientService/protectFormattedDataDL\";\t\n\tpublic static final String DL_PROTECT_URL_QP = \"https://webapps-qp.homedepot.com/VoltageWebService/service/VoltageClientService/protectFormattedDataDL\";\t\n\tpublic static final String DL_PROTECT_URL_ST = \"https://webapps-st.homedepot.com/VoltageWebService/service/VoltageClientService/protectFormattedDataDL\";\n\tpublic static final String DL_PROTECT_URL_PR = \"https://webapps.homedepot.com/VoltageWebService/service/VoltageClientService/protectFormattedDataDL\";\n\t\n\t//Added for FMS 7894 IVR Changes.\t\n\tpublic static final int POSITION_LOCATION_QUEST_TYPE_CD = 11;\n\tpublic static final int EMPLOYMENT_CATEGORY_QUEST_TYPE_CD = 12;\n\tpublic static final int HOURLY_RATE_QUEST_TYPE_CD = 13;\n\tpublic static final int WEEKDAYS_QUEST_TYPE_CD = 14;\n\tpublic static final int SATURDAY_QUEST_TYPE_CD = 15;\n\tpublic static final int SUNDAY_QUEST_TYPE_CD = 16;\n\tpublic static final int EARLY_AM_QUEST_TYPE_CD = 17;\n\tpublic static final int MORNING_QUEST_TYPE_CD = 18;\n\tpublic static final int AFTERNOON_QUEST_TYPE_CD = 19;\n\tpublic static final int NIGHT_QUEST_TYPE_CD = 20;\n\tpublic static final int LATE_NIGHT_QUEST_TYPE_CD = 21;\n\tpublic static final int OVERNIGHT_QUEST_TYPE_CD = 22;\n\tpublic static final int REASONABLE_ACCOMMODATION_QUEST_TYPE_CD = 23;\n\tpublic static final int REQUIRES_DRIVERS_LICENSE_QUEST_TYPE_CD = 24;\n\tpublic static final int RELIABLE_TRANSPORTATION_QUEST_TYPE_CD = 25;\n\t//Added for FMS 7894 IVR Changes.\t\n\t\n\tpublic static final Short PHN_SCRN_STAT_ZERO = 0;\n\tpublic static final Short STATUS_TYPE_CODE_PHN_SCRN = 1; \n\tpublic static final Short INTERVIEW_STAT_ZERO = 0;\n\tpublic static final Short STATUS_TYPE_CODE_INTERVIEW_SCHD = 2;\n\t\n\t//Review Constants\n\tpublic static final int EVAL_CAT_CODE_1 = 1;\n\tpublic static final int EVAL_CAT_CODE_2 = 2;\n\tpublic static final int EVAL_CAT_CODE_4 = 4;\n\tpublic static final String en_US = \"en_US\";\n\tpublic static final int EVAL_RTG_CODE_27 = 27;\n\tpublic static final String ACTIVE = \"A\";\n\t\n\t//Interview Summary Constants\n\tpublic static final String AVAILABILITY_MATCH_QUESTION_INDICATOR = \"AVL\";\n}",
"public interface Constants {\n\t\n\t/** The Constant SPACE_CHAR of type Character of one empty space. */\n\tstatic final char SPACE_CHAR = ' ';\n\t\n\t/** The Constant LETTER_O of type Character which holds mark X. */\n\tstatic final char LETTER_O = 'O';\n\t\n\t/** The Constant LETTER_X of type Character which holds mark O. */\n\tstatic final char LETTER_X = 'X';\n}",
"public interface Constants {\n /**\n * String representation for the name of the preferences object storing\n * the Parabank connection settings.\n */\n String PREFS_PARABANK = \"parabankConnectionSettings\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the protocol for the HTTP requests.\n */\n @Deprecated\n String PREFS_PARABANK_PROTOCOL = \"protocol\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the host for the HTTP requests.\n */\n String PREFS_PARABANK_HOST = \"host\";\n\n /**\n * String representation for the key within the Parabank preferences\n * object which stores the port for the HTTP requests.\n */\n String PREFS_PARABANK_PORT = \"port\";\n\n /**\n * String representation for key within the {@link android.content.Intent}\n * object which stores the {@link com.parabank.parasoft.app.android.adts.User}\n * object data.\n */\n String INTENT_USER = \"user\";\n String INTENT_PARABANK_URI = \"parabankConnection\";\n}",
"public interface BaseConstant {\n\n //=======数据来源=========//\n /**\n * 微信公众号\n */\n Integer SOURCE_TYPE_WECHAT=1;\n /**\n * 后台\n */\n Integer SOURCE_TYPE_WEB=2;\n /**\n * APP\n */\n Integer SOURCE_TYPE_APP=3;\n //=======数据来源end=========//\n}",
"public interface constants {\n String BREAK1=\"α\";\n String BREAK2=\"Σ\";\n String BREAK3=\"æ\";\n}",
"public interface Constants {\n\n /*TODO KEY VALUE 参数*/\n String BUNDLE = \"bundle\";\n\n /*TODO APP 渠道*/\n String APP_SHANXI = \"SHANXI\";\n}",
"public interface WebAppConstants {\n\n\t\n\tpublic static final String MSG_OK = \"I dati sono stati inseriti correttamente\";\n\tpublic static final String MSG_SI = \"SI\";\n\tpublic static final String MSG_NO = \"NO\";\n\t\n\tpublic static final String Si = \"Si\";\n\tpublic static final String No = \"No\";\n\t\n\tpublic static final String CODICE_ITALIA = \"1\";\n\t\n\t\n\tpublic static final String CAP_UG =\"CAP-UG\";\n\tpublic static final String CAP_EG =\"CAP-EG\";\n\t\n\t\n\tpublic static final String FRAZIONABILE = \"Frazionabile\";\n\tpublic static final String NON_FRAZIONABILE = \"Non frazionabile\";\n\t\n\tpublic static final String PRENOTATO = \"Prenotato\";\n\tpublic static final String PRENOTATO_LIQUIDABILE = \"Prenotato liquidabile\";\n\tpublic static final String NON_PRENOTATO = \"Non Prenotato\";\n\t\n\t//per la scelta del tipo debito siope:\n\tpublic static final String COMMERCIALE_CON_FATTURE = \"Commerciale (con fatture)\";\n\tpublic static final String COMMERCIALE = \"Commerciale\";\n\tpublic static final String NON_COMMERCIALE = \"Non commerciale\";\n\t\n\t//per la scela di quale provvedimento usare nel reintroito di un ordinativo:\n\tpublic static final String SCELTA_PROVVEDIMENTO_UNICO = \"Provvedimento Unico\";\n\tpublic static final String SCELTA_PROVVEDIMENTO_DA_MOVIMENTI = \"Provvedimento da movimenti\";\n\t\n\t//SIAC-5333: duplicate da bilapp\n\tpublic static final String CODICE_CAPITOLO_ENTRATA_GESTIONE = \"CAP-EG\";\n\tpublic static final String CODICE_CAPITOLO_USCITA_GESTIONE = \"CAP-UG\";\n\tpublic static final String TRUE_STRING = \"TRUE\"; \n\tpublic static final String GESTIONE_UEB = \"GESTIONE_UEB\";\n\tpublic static final String TITOLO_1 = \"1\"; \n\tpublic static final String TITOLO_2 = \"2\";\n\tpublic static final String TITOLO_3 = \"3\"; \n\tpublic static final String TITOLO_4 = \"4\"; \n\tpublic static final String TITOLO_5 = \"5\"; \n\tpublic static final String TITOLO_7 = \"7\";\n\tpublic static final String MACROAGGREGATO_1030000 = \"1030000\";\n\tpublic static final String MACROAGGREGATO_1040000 = \"1040000\"; \n\tpublic static final String MACROAGGREGATO_2030000 = \"2030000\";\n\tpublic static final String MACROAGGREGATO_2040000 = \"2040000\"; \n\tpublic static final String MACROAGGREGATO_2050000 = \"2050000\";\n\tpublic static final String MACROAGGREGATO_4010000 = \"4010000\";\n\tpublic static final String MACROAGGREGATO_4020000 = \"4020000\";\n\tpublic static final String MACROAGGREGATO_4030000 = \"4030000\";\n\tpublic static final String MACROAGGREGATO_4040000 = \"4040000\";\n\tpublic static final String MACROAGGREGATO_7020000 = \"7020000\";\n\tpublic static final String MACROAGGREGATO_7010000 = \"7010000\"; \n\tpublic static final String MACROAGGREGATO_1100000 = \"1100000\";\n\t\n\tpublic static final String CONDIZIONI_REGISTRAZIONE_NON_SODDISFATTE = \"Condizioni per la creazione di una registrazione sulla contabilità generale non soddisfatte\";\n\t\n\t//costante per table risultati ricerca pre doc:\n\tpublic static final String KEY_LISTA_PRE_DOC_DA_DOCUMENTI = \"LISTA_PRE_DOC_DA_DOCUMENTI\";\n}",
"public interface ProtoStreamTypeIds {\n\n // 1 byte Ids 0..127 -> Reserved for critical messages used a lot\n int WRAPPED_MESSAGE = WrappedMessage.PROTOBUF_TYPE_ID; // Id 0 is reserved for ProtoStream WrappedMessage class\n int WRAPPED_BYTE_ARRAY = 1;\n int MARSHALLABLE_USER_OBJECT = 2;\n int BYTE_STRING = 3;\n int EMBEDDED_METADATA = 4;\n int EMBEDDED_EXPIRABLE_METADATA = 5;\n int EMBEDDED_LIFESPAN_METADATA = 6;\n int EMBEDDED_MAX_IDLE_METADATA = 7;\n int NUMERIC_VERSION = 8;\n int SIMPLE_CLUSTERED_VERSION = 9;\n int JGROUPS_ADDRESS = 10;\n int PROTOBUF_VALUE_WRAPPER = 11;\n int MEDIA_TYPE = 12;\n int PRIVATE_METADATA = 13;\n int SUBJECT = 14;\n\n // Priority counter values\n int COUNTER_VALUE = 125;\n int STRONG_COUNTER_KEY = 126;\n int WEAK_COUNTER_KEY = 127;\n\n // 2 byte Ids 128..16383\n // Commons range 128 -> 999\n int COMMONS_LOWER_BOUND = 128;\n int NULL_VALUE = COMMONS_LOWER_BOUND;\n\n // Core range 1000 -> 3999\n int CORE_LOWER_BOUND = 1000;\n int EVENT_LOG_CATEGORY = CORE_LOWER_BOUND;\n int EVENT_LOG_LEVEL = CORE_LOWER_BOUND + 1;\n int MARSHALLED_VALUE_IMPL = CORE_LOWER_BOUND + 2;\n int META_PARAMS_INTERNAL_METADATA = CORE_LOWER_BOUND + 3;\n int REMOTE_METADATA = CORE_LOWER_BOUND + 4;\n int UUID = CORE_LOWER_BOUND + 5;\n int IRAC_VERSION = CORE_LOWER_BOUND + 6;\n int IRAC_SITE_VERSION = CORE_LOWER_BOUND + 7;\n int IRAC_VERSION_ENTRY = CORE_LOWER_BOUND + 8;\n int IRAC_METADATA = CORE_LOWER_BOUND + 9;\n int ROLE_SET = CORE_LOWER_BOUND + 10;\n int ROLE = CORE_LOWER_BOUND + 11;\n int AUTHORIZATION_PERMISSION = CORE_LOWER_BOUND + 12;\n\n // Counter range 4000 -> 4199\n int COUNTERS_LOWER_BOUND = 4000;\n int COUNTER_STATE = COUNTERS_LOWER_BOUND;\n int COUNTER_CONFIGURATION = COUNTERS_LOWER_BOUND + 1;\n int COUNTER_TYPE = COUNTERS_LOWER_BOUND + 2;\n int COUNTER_STORAGE = COUNTERS_LOWER_BOUND + 3;\n\n // Query range 4200 -> 4399\n int QUERY_LOWER_BOUND = 4200;\n int QUERY_METRICS = QUERY_LOWER_BOUND + 1;\n int LOCAL_QUERY_STATS = QUERY_LOWER_BOUND + 2;\n int LOCAL_INDEX_STATS = QUERY_LOWER_BOUND + 3;\n int INDEX_INFO = QUERY_LOWER_BOUND + 4;\n int INDEX_INFO_ENTRY = QUERY_LOWER_BOUND + 5;\n int SEARCH_STATISTICS = QUERY_LOWER_BOUND + 6;\n int STATS_TASK = QUERY_LOWER_BOUND + 7;\n //int KNOWN_CLASS_KEY = QUERY_LOWER_BOUND;\n\n // Remote Query range 4400 -> 4599\n int REMOTE_QUERY_LOWER_BOUND = 4400;\n int REMOTE_QUERY_REQUEST = REMOTE_QUERY_LOWER_BOUND;\n int REMOTE_QUERY_RESPONSE = REMOTE_QUERY_LOWER_BOUND + 1;\n int ICKLE_FILTER_RESULT = REMOTE_QUERY_LOWER_BOUND + 2;\n int ICKLE_CONTINUOUS_QUERY_RESULT = REMOTE_QUERY_LOWER_BOUND + 3;\n\n // Lucene Directory 4600 -> 4799\n int LUCENE_LOWER_BOUND = 4600;\n int CHUNK_CACHE_KEY = LUCENE_LOWER_BOUND;\n int FILE_CACHE_KEY = LUCENE_LOWER_BOUND + 1;\n int FILE_LIST_CACHE_KEY = LUCENE_LOWER_BOUND + 2;\n int FILE_METADATA = LUCENE_LOWER_BOUND + 3;\n int FILE_READ_LOCK_KEY = LUCENE_LOWER_BOUND + 4;\n int FILE_LIST_CACHE_VALUE = LUCENE_LOWER_BOUND + 5;\n\n // Tasks + Scripting 4800 -> 4999\n int SCRIPTING_LOWER_BOUND = 4800;\n int EXECUTION_MODE = SCRIPTING_LOWER_BOUND;\n int SCRIPT_METADATA = SCRIPTING_LOWER_BOUND + 1;\n int DISTRIBUTED_SERVER_TASK = SCRIPTING_LOWER_BOUND + 2;\n int DISTRIBUTED_SERVER_TASK_PARAMETER = SCRIPTING_LOWER_BOUND + 3;\n int DISTRIBUTED_SERVER_TASK_CONTEXT = SCRIPTING_LOWER_BOUND + 4;\n\n // Memcached 5000 -> 5099\n int MEMCACHED_LOWER_BOUND = 5000;\n int MEMCACHED_METADATA = MEMCACHED_LOWER_BOUND;\n\n // RocksDB 5100 -> 5199\n int ROCKSDB_LOWER_BOUND = 5100;\n int ROCKSDB_EXPIRY_BUCKET = ROCKSDB_LOWER_BOUND;\n int ROCKSDB_PERSISTED_METADATA = ROCKSDB_LOWER_BOUND + 1;\n\n // Event-logger 5200 -> 5299\n int EVENT_LOGGER_LOWER_BOUND = 5200;\n int SERVER_EVENT_IMPL = EVENT_LOGGER_LOWER_BOUND;\n\n // MultiMap 5300 -> 5399\n int MULTIMAP_LOWER_BOUND = 5300;\n int MULTIMAP_BUCKET = MULTIMAP_LOWER_BOUND;\n int MULTIMAP_LIST_BUCKET = MULTIMAP_LOWER_BOUND + 2;\n int MULTIMAP_HASH_MAP_BUCKET = MULTIMAP_LOWER_BOUND + 3;\n int MULTIMAP_HASH_MAP_BUCKET_ENTRY = MULTIMAP_LOWER_BOUND + 4;\n int MULTIMAP_SET_BUCKET = MULTIMAP_LOWER_BOUND + 5;\n int MULTIMAP_OBJECT_WRAPPER = MULTIMAP_LOWER_BOUND + 6;\n int MULTIMAP_SORTED_SET_BUCKET = MULTIMAP_LOWER_BOUND + 7;\n int MULTIMAP_SORTED_SET_SCORED_ENTRY = MULTIMAP_LOWER_BOUND + 8;\n\n // Server Core 5400 -> 5799\n int SERVER_CORE_LOWER_BOUND = 5400;\n int IGNORED_CACHES = SERVER_CORE_LOWER_BOUND;\n int CACHE_BACKUP_ENTRY = SERVER_CORE_LOWER_BOUND + 1;\n int COUNTER_BACKUP_ENTRY = SERVER_CORE_LOWER_BOUND + 2;\n int IP_FILTER_RULES = SERVER_CORE_LOWER_BOUND + 3;\n int IP_FILTER_RULE = SERVER_CORE_LOWER_BOUND + 4;\n\n // JDBC Store 5800 -> 5899\n int JDBC_LOWER_BOUND = 5800;\n int JDBC_PERSISTED_METADATA = JDBC_LOWER_BOUND;\n\n // Spring integration 5900 -> 5999\n int SPRING_LOWER_BOUND = 5900;\n @Deprecated\n int SPRING_NULL_VALUE = SPRING_LOWER_BOUND;\n int SPRING_SESSION = SPRING_LOWER_BOUND + 1;\n int SPRING_SESSION_ATTRIBUTE = SPRING_LOWER_BOUND + 2;\n int SPRING_SESSION_REMAP = SPRING_LOWER_BOUND + 3;\n\n // Data distribution metrics 6000 -> 6099\n int DATA_DISTRIBUTION_LOWER_BOUND = 6000;\n int CACHE_DISTRIBUTION_INFO = DATA_DISTRIBUTION_LOWER_BOUND;\n int CLUSTER_DISTRIBUTION_INFO = DATA_DISTRIBUTION_LOWER_BOUND + 1;\n int KEY_DISTRIBUTION_INFO = DATA_DISTRIBUTION_LOWER_BOUND + 2;\n}",
"public interface PushType {\n int NEWS = 0;\n int NEWS_FLASH = 1;\n int COMMENT = 2; //评论\n int PRAISE = 3;\n int LOGIN_REWARD = 4;//登陆奖励\n int TIME_REWARD = 5;//时段奖励\n\n}",
"public interface LevelConstants {\n\t// ===========================================================\n\t// Constants\n\t// ===========================================================\n\n\tString TAG_LEVEL = \"level\";\n\tString TAG_LEVEL_ATTRIBUTE_NAME = \"name\";\n\tString TAG_LEVEL_ATTRIBUTE_UID = \"uid\";\n\tString TAG_LEVEL_ATTRIBUTE_WIDTH = \"width\";\n\tString TAG_LEVEL_ATTRIBUTE_HEIGHT = \"height\";\n\n\t// ===========================================================\n\t// Methods\n\t// ===========================================================\n}",
"public interface I18nConstants {\n // Common\n String userName();\n\n String email();\n\n String confirmEmail();\n\n String password();\n\n String confirmPassword();\n\n String skip();\n\n String close();\n\n String tooltipCloseDialog();\n\n String tooltipMinimize();\n\n String tooltipMaximize();\n\n String highScore();\n\n String limitation();\n\n String houseSpace();\n\n String noMoney();\n\n String notEnoughMoney();\n\n String tooManyItems();\n\n String spaceLimitExceeded();\n\n String unregisteredUser();\n\n String unnamedUser();\n\n String yes();\n\n String no();\n\n String newBase();\n\n String startOver();\n\n String stop();\n\n String mission();\n\n String refresh();\n\n String player();\n\n String planet();\n\n String filter();\n\n String activate();\n\n String cancel();\n\n String start();\n\n String description();\n\n String abort();\n\n String date();\n\n String time();\n\n String event();\n\n String save();\n\n String dismiss();\n\n String nameToShort();\n\n String nameAlreadyUsed();\n\n String unknownErrorReceived();\n\n String name();\n\n String send();\n\n String noSuchUser(String userName);\n\n String change();\n\n String message();\n\n String featureNextRelease();\n\n String featureComingSoon();\n\n String loading();\n\n String serverError();\n\n String connectWithFacebook();\n\n String availableCrystals(String text);\n\n // Login logout\n String login();\n\n String loginFailed();\n\n String loginFailedText();\n\n String loginFailedNotVerifiedText();\n\n String logout();\n\n String logoutQuestion();\n\n String logoutTextFacebook(String name);\n\n String tooltipNotRegistered();\n\n String tooltipNotVerified(String userName);\n\n String tooltipLoggedIn(String userName);\n\n String forgotPassword();\n\n // Radar\n String tooltipRadar();\n\n String tooltipZoomIn();\n\n String tooltipZoomOut();\n\n String tooltipZoomHome();\n\n String tooltipZoomAttack();\n\n String tooltipRadarPageLeft();\n\n String tooltipRadarPageRight();\n\n String tooltipRadarPageUp();\n\n String tooltipRadarPageDown();\n\n String radarNoPower();\n\n String radarNoRadarBuilding();\n\n // Dialogs\n String messageDialog();\n\n String inventory();\n\n String inventoryNotAvailableMission();\n\n String inventoryNotAvailableBase();\n\n String startTutorialFinished();\n\n String questPassed();\n\n String boxPicked();\n\n // Connection\n String connectionFailed();\n\n String connectionLost();\n\n String connectionAnotherExits();\n\n String connectionNone();\n\n String connectionNoneLoggedOut();\n\n String wrongBase();\n\n String notYourBase();\n\n // Sell\n String sellConfirmationTitle();\n\n String sellConfirmation();\n\n String tooltipSell();\n\n // Register dialog\n String unregistered();\n\n String unnamed();\n\n String chatUnregistered();\n\n String chatUnnamed();\n\n String registerFacebookNickname();\n\n String registerThanks();\n\n String registerThanksLong();\n\n String registerConfirmationEmailSent(String email);\n\n String register();\n\n String registerDirect();\n\n String registerFacebook();\n\n String registrationFailed();\n\n String registrationFilled();\n\n String registrationMatch();\n\n String registrationEmailNotValid();\n\n String registrationEmailMatch();\n\n String registrationEmail();\n\n String registrationUser();\n\n String setName();\n\n String registrationPasswordNotValid();\n\n String setNameFailedNotVerifiedText();\n\n // Side Cockpit\n String tooltipEnergy();\n\n String tooltipMute();\n\n String tooltipHighScore();\n\n String tooltipFacebookCommunity();\n\n String tooltipFacebookInvite();\n\n String singlePlayer();\n\n String tooltipAbortMission();\n\n String multiplayer();\n\n // Quests\n String questBotBasesText(String botBases);\n\n String nextPlanet();\n\n String tooltipNextPlanet();\n\n String questDialog();\n\n String tooltipQuestDialog();\n\n String questVisualisation();\n\n String tooltipQuestVisualisation();\n\n String pressButtonWhenReady();\n\n String tooltipStartMission();\n\n String reward();\n\n String xpReward(int xp);\n\n String razarionReward(int razarion);\n\n String crystalReward(int crystals);\n\n String activeQuest();\n\n String activeQuestAbort();\n\n String questOverview(int questsDone, int totalQuests);\n\n String missionOverview(int missionsDone, int totalMissions);\n\n String youPassedQuest(String questTitle);\n\n String noMoreQuests();\n\n String noActiveQuest();\n\n String questBasesKilled();\n\n String questBoxesPicked();\n\n String questCrystalsIncreased();\n\n String questArtifactItemAdded();\n\n String questResourcesCollected();\n\n String questTimeRemaining();\n\n String questTimeNotFulfilled();\n\n String questBuilt();\n\n String questUnitStructuresBuilt();\n\n String questArtifactItemAddedActionWord();\n\n String questDestroyed();\n\n String questUnitStructuresDestroyed();\n\n String questMinutesPast();\n\n String startMission();\n\n String competeMission();\n\n String go();\n\n String questEnumPvp();\n\n String questEnumPve();\n\n String questEnumBossPve();\n\n String questEnumMission();\n\n String questEnumGather();\n\n String questEnumMoney();\n\n String questEnumBuildup();\n\n String questEnumHoldTheBase();\n\n String questType();\n\n String abortMission();\n\n String reallyAbortMission();\n\n String placeStartItemTitle();\n\n String placeStartItemDescription();\n\n // Dead-end and new base\n String reachedDeadEnd();\n\n String reachedDeadEndItem();\n\n String reachedDeadEndMoney();\n\n String startNewBase();\n\n String baseLostTitle();\n\n String baseLost();\n\n // Item cockpit\n String guildMembershipRequestItemCockpit();\n\n String tooltipLaunchMissile();\n\n String tooltipUpgrade();\n\n String tooltipBuild(String itemName);\n\n String tooltipNoBuildLevel(String itemName);\n\n String tooltipNoBuildLimit(String itemName);\n\n String tooltipNoBuildHouseSpace(String itemName);\n\n String tooltipNoBuildMoney(String itemName);\n\n String botEnemy();\n\n String botNpc();\n\n String playerEnemy();\n\n String playerFriend();\n\n String itemCockpitGuildMember();\n\n String tooltipSelect(String itemName);\n\n String notPlaceHere();\n\n String notPlaceOver();\n\n String containingNoUnits();\n\n String containing1Unit();\n\n String containingXUnits(int count);\n\n String unloadButton();\n\n String unloadButtonTooltip();\n\n // Highscore\n String findMe();\n\n String rank();\n\n String killed();\n\n String killedPve();\n\n String killedPvp();\n\n String basesKilled();\n\n String basesLost();\n\n String created();\n\n String create();\n\n // Inventory\n String useItem();\n\n String workshop();\n\n String dealer();\n\n String funds();\n\n String artifacts();\n\n String buy();\n\n String tooltipAssemble();\n\n String assemble();\n\n String tooltipArtifact(String artifactName);\n\n String youOwn(int ownCount);\n\n String useItemLimit(String itemName);\n\n String useItemHouseSpace();\n\n String useItemMoney();\n\n String enemyTooNear();\n\n String crystalAmount(int crystals);\n\n String cost(int crystalCost);\n\n String leaveBaseNextPlanet();\n\n String goNextPlanet();\n\n String getInventoryItemTitle();\n\n String getInventoryItemNotEnough(String inventoryItemName);\n\n String getArtifactItemTitle();\n\n String getInventoryArtifactNotEnough(String inventoryArtifactName);\n\n // Startup\n String startupClearGame();\n\n String startupLoadRealGameInfo();\n\n String startupDeltaStartRealGame();\n\n String startupLoadUnits();\n\n String startupInitUnits();\n\n String startupRunRealGame();\n\n String startupCheckCompatibility();\n\n String startupLoadJavaScript();\n\n String startupInitGui();\n\n String startupInitRealGame();\n\n String startupPreloadImageSpriteMaps();\n\n String startupLoadSimulationGameInfo();\n\n String startupInitSimulatedGame();\n\n String startupRunSimulatedGame();\n\n String startupDeltaStartSimulatedGame();\n\n // Unlock dialogs\n String unlockDialogTitle();\n\n String unlockDialogText();\n\n String nothingToUnlockDialogText();\n\n String unlockCrystalCost(int crystals);\n\n String unlockFailed();\n\n String unlockNotEnoughCrystals();\n\n // ???\n String createBase();\n\n String createBaseInBotFailed();\n\n String chooseYourStartPoint();\n\n // Menu\n String tooltipMenuNewBaseSimulated();\n\n String tooltipMenuNewBaseRealGame();\n\n String menuNews();\n\n String menuHistory();\n\n String menuTooltipRegisterLogin();\n\n String menuTooltipNews();\n\n String menuTooltipHistory();\n\n String menuTooltipHistoryOnlyRegistered();\n\n String menuTooltipHistoryOnlyRealGame();\n\n String menuTooltipHistoryOnlyRegisteredVerified();\n\n String menuTooltipGuildsMission();\n\n String guildsOnlyRegisteredVerified();\n\n String guildsOnlyRegistered();\n\n String menuTooltipMyGuild();\n\n String menuTooltipGuilds();\n\n String menuMyGuild();\n\n String menuGuilds();\n\n String menuSearchGuilds();\n\n String menuCreateGuild();\n\n String menuGuildInvitations();\n\n String menuInviteFriends();\n\n String menuInviteFriendsTooltip();\n\n String menuGetCrystals();\n\n String menuTooltipGetCrystals();\n\n String menuBuyPaypal();\n\n String menuBuyFacebook();\n\n String menuOverviewGetCrystals();\n\n String menuStarMap();\n\n String menuStarMapTooltip();\n\n String menuStarMapTooltipMission();\n\n // News Dialog\n String newsDialogTitle();\n\n // History Dialog\n String historyDialogTitle();\n\n // Guild dialogs\n String createGuildDialogTitle();\n\n String createGuildDialog();\n\n String myGuildDialogTitle();\n\n String searchGuildDialogTitle();\n\n String member();\n\n String guildRank();\n\n String kick();\n\n String guildKickMember();\n\n String guildKickMemberMessage(String name);\n\n String guildPresident();\n\n String guildManagement();\n\n String guildMember();\n\n String changeRank();\n\n String gildMemberInvited();\n\n String gildMemberInvitedMessage(String userName);\n\n String inviteMember();\n\n String createGuildInsufficientCrystals();\n\n String createGuildCrystalCost(int cost);\n\n String guildText();\n\n String guildMembers();\n\n String guildMembershipRequestTitle();\n\n String guildMembershipRequest();\n\n String guildMembershipRequestSent(String name);\n\n String joinGuild();\n\n String joinGuildMessage(String name);\n\n String dismissGuildMessage(String name);\n\n String guildTab();\n\n String guildMemberTab();\n\n String guildRecruitingTab();\n\n String guildInviteMessage();\n\n String guildMembershipRequestText();\n\n String leaveGuild();\n\n String closeGuild();\n\n String leaveGuildMessage();\n\n String closeGuildMessage();\n\n String guildNameFilter();\n\n String guildInvitations();\n\n String guildInvitationsMessage();\n\n String changeRankText(String name);\n\n String noGuildRequests();\n\n String noGuildInvitations();\n\n String noGuilds();\n\n String guildToSendRequest();\n\n String guildTextShort();\n\n String guildInvitationNotification();\n\n String openGuildInvitation();\n\n String guildMembershipRequestNotification();\n\n String openGuildMembershipRequest();\n\n String guildInvitationNotRegistered(String playerName);\n\n String guildInvitationBaseAbandoned(String playerName);\n\n String userIsAlreadyAGuildMember(String userName);\n\n String guildLostTitle();\n\n String guildLostMessage();\n\n // Chat\n String tooltipChatMenu();\n\n String globalChat();\n\n String guildChat();\n\n String chatMessageFilter();\n\n String chatMessageFilterNoGuild();\n\n // Invite friends\n String inviteFriends();\n\n String inviteFriendsOnlyRegisteredVerified();\n\n String inviteFriendsOnlyRegistered();\n\n String inviteFriendsDescription();\n\n String inviteFriendsViaFacebook();\n\n String inviteFriendsViaMail();\n\n String inviteFriendsViaUrl();\n\n String inviteUrlDescription();\n\n String tabInvite();\n\n String tabComplete();\n\n String sendButton();\n\n String generateButton();\n\n String invitationCrystalBonus();\n\n String crystalBonus();\n\n String fbInviteTitle();\n\n String fbInviteMessage();\n\n String inviteFriendsEmailNotValid();\n\n String invitationEmailSent(String address);\n\n String invitationFacebookSent();\n\n String noFriendInvited();\n\n // Crystal helper\n String buyDialogCost(int crystalCost);\n\n String buyDialogbalance(int crystalBalance);\n\n String invite();\n\n String howToGetCrystals();\n\n String buyCrystalsViaPayPal();\n\n String buyCrystalsViaFacebook();\n\n String invitationFriendsAndGetCrystals();\n\n String collectBoxesAndGetCrystals();\n\n // Buy crystals dialog\n String buyCrystalsPaypal();\n\n String buyCrystalsPaypal1();\n\n String buyCrystalsPaypal2();\n\n String buyCrystalsPaypa3();\n\n String buyCrystalsPaypal4();\n\n String buyCrystalsPaypal5();\n\n String buyCrystalsPaypalOnlyRegistered();\n\n String buyCrystalsPaypalOnlyRegisteredVerified();\n\n String buyCrystalsPaypalDialogTitle();\n\n String buyCrystalsFacebookDialogTitle();\n\n String buyCrystalsFacebook();\n\n String buyCrystalsFacebook1();\n\n String buyCrystalsFacebook2();\n\n String buyCrystalsFacebook3();\n\n String buyCrystalsFacebook4();\n\n String buyCrystalsFacebook5();\n\n String buyCrystalsFacebookButton(int crystals);\n\n String buyCrystalsFacebookOnlyRegisteredVerified();\n\n String buyCrystalsFacebookOnlyRegistered();\n\n String tanksCrystalBoughtDialogTitle();\n\n String tanksCrystalBoughtDialog(int delta, int value);\n\n // Star map\n String starMapDialogTitle();\n\n String minLevel();\n\n String planetSize();\n\n String allowedUnits();\n\n String bases();\n\n String bots();\n\n String units();\n\n String land();\n\n String wrongLevelForLand();\n\n String tooltipShowUnitsOnPlanet();\n\n String tooltipLandOnPlanet();\n\n String youAreAlreadyOnThisPlanet();\n\n String moveToPlanetTitle();\n\n String moveToPlanet(String name);\n\n String leaveBaseMoveToPlanet(String name);\n\n // Training\n String trainingTipScroll();\n\n String trainingTipSelectItem(String itemTypeName);\n\n String trainingTipClickItem();\n\n String trainingTipSendBuildCommand(String itemTypeName);\n\n String trainingTipSendBuildFinalizeCommand(String itemTypeName);\n\n String trainingTipFactorizeCommand(String itemTypeName);\n\n String trainingTipSendCollectCommand(String itemTypeName);\n\n String trainingTipToBeBuiltPlacer(String itemTypeName);\n\n String trainingTipWatchQuestDialog();\n\n String trainingTipClickContainerItem(String itemTypeName);\n\n String trainingTipClickMove();\n\n String trainingTipClickUnload();\n\n String trainingTipClickUnloadMode();\n\n String apply();\n\n String ok();\n\n // Level up dialog\n String levelUpDialogTitle();\n\n String youReachedLevel(int level);\n\n // User account dialog\n String userAccountDialogTitle();\n\n // System\n String serverRebootTitle();\n\n String serverRebootMissionNotSaved();\n\n String serverRebootNotRegistered();\n\n String planetRestartTitle();\n\n String planetRestartMessage();\n\n String serverRestartTitle();\n\n String serverShuttingDown();\n\n String serverStarting();\n\n String serverRunning();\n\n String unknown();\n}",
"public interface CMDConstant {\n int GAME_JOIN = 100,\n GAME_SIT = 101,\n GAME_STAND = 102,\n GAME_LEAVE = 103,\n GAME_CHANGE = 104,\n GAME_START = 105,\n GAME_STAKE = 106,\n GAME_ABANDON =107,\n GAME_SKIP = 108;\n}",
"public interface ProductTypeConstants {\n // 商品类型 1: 网课; 2: 图书\n Integer NETWORK_COURSE = 1;\n Integer BOOK = 2;\n}",
"public interface Constants {\n String PATH_SEPARATOR = \"/\";\n String ROOT_DIRECTORY_SYMBOL = \"/\";\n String COMMAND_OPTION_PREFIX = \"-\";\n String SESSION_CLEAR = \"session clear\";\n}",
"public interface GeoGebraConstants {\n\n\t// GeoGebra version\n\t// DO NOT CHANGE the format of VERSION_STRING (or add commented out version)\n\t// as it is read by the build system\n\t// and updated automatically by the \"Version Bump\" task\n\t/** last build date */\n\tpublic static final String BUILD_DATE = \"05 September 2023\";\n\t/** complete version string */\n\tpublic static final String VERSION_STRING = \"5.0.800.0\";\n\n\t/** proper noun, should NOT be translated / transliterated */\n\tpublic static final String APPLICATION_NAME = \"GeoGebra\";\n\n\t/** Download update **/\n\tpublic static final String DOWNLOAD_PACKAGE_WIN =\n\t\t\t\"https://download.geogebra.org/package/win\";\n\n\t/** App versions */\n\tenum Version {\n\t\tCAS,\n\t\tGRAPHING,\n\t\tGRAPHING_3D,\n\t\tGEOMETRY,\n\t\tSCIENTIFIC,\n\t\tSUITE,\n\t\tMIXED_REALITY,\n\t\tNOTES,\n\t\tPROBABILITY,\n\t\tCLASSIC;\n\n\t\tpublic String getTransKey() {\n\t\t\tswitch (this) {\n\t\t\tcase GRAPHING:\n\t\t\t\treturn \"GeoGebraGraphingCalculator\";\n\t\t\tcase GRAPHING_3D:\n\t\t\t\treturn \"GeoGebra3DGrapher\";\n\t\t\tcase SCIENTIFIC:\n\t\t\t\treturn \"GeoGebraScientificCalculator\";\n\t\t\tcase CAS:\n\t\t\t\treturn \"GeoGebraCASCalculator\";\n\t\t\tcase GEOMETRY:\n\t\t\t\treturn \"GeoGebraGeometry\";\n\t\t\tcase NOTES:\n\t\t\t\treturn \"GeoGebraNotes\";\n\t\t\tcase SUITE:\n\t\t\t\treturn \"GeoGebraCalculatorSuite\";\n\t\t\tdefault:\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic enum Platform {\n\n\t\tDESKTOP(\"d\"),\n\n\t\t/** GeoGebra Graphing Calculator */\n\t\tANDROID(\"a\"),\n\n\t\tWEB(\"w\"),\n\n\t\tIOS(\"i\"),\n\n\t\tIOS_WEBVIEW(\"iw\"),\n\n\t\tWEB_FOR_BROWSER_2D(\"w2d\"),\n\n\t\tOFFLINE(\"offline\"),\n\n\t\tSMART(\"smart\"),\n\n\t\tPOWERPOINT(\"p\");\n\n\t\tprivate String name;\n\n\t\tPlatform(String name) {\n\t\t\tthis.name = name;\n\t\t}\n\n\t\tpublic String getName() {\n\t\t\treturn name;\n\t\t}\n\n\t\t/**\n\t\t * @param prerelease\n\t\t * whether we run prerelease\n\t\t * @return eg X.Y.Zd-prerelease\n\t\t */\n\t\tpublic String getVersionString(boolean prerelease, String appCode) {\n\n\t\t\tStringBuilder suffix = new StringBuilder(10);\n\t\t\tsuffix.append(name);\n\t\t\tif (!\"classic\".equals(appCode)) {\n\t\t\t\tsuffix.append(appCode);\n\t\t\t}\n\t\t\tif (prerelease) {\n\t\t\t\tsuffix.append(\"-prerelease\");\n\t\t\t}\n\n\t\t\t// everything except old Java desktop version should be version\n\t\t\t// 6.0.x.x\n\t\t\tswitch (this) {\n\t\t\tdefault:\n\t\t\t\t// change 5.0.274.0 to 6.0.274.0\n\t\t\t\treturn VERSION_STRING.replace(\"5.0.\", \"6.0.\") + \"-\" + suffix;\n\t\t\tcase DESKTOP:\n\t\t\t\treturn VERSION_STRING + \"-\" + suffix;\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * \n\t\t * @return true if this is a phone version.\n\t\t */\n\t\tpublic boolean isPhone() {\n\t\t\treturn \"i\".equals(name);\n\t\t}\n\n\t}\n\n\tenum MenuType {\n\t\tDEFAULT, EXAM\n\t}\n\n\tString SUITE_APPNAME = \"GeoGebraCalculatorSuite\";\n\n\tString GRAPHING_APPCODE = \"graphing\";\n\tString GEOMETRY_APPCODE = \"geometry\";\n\tString G3D_APPCODE = \"3d\";\n\tString SCIENTIFIC_APPCODE = \"scientific\";\n\tString CAS_APPCODE = \"cas\";\n\tString SUITE_APPCODE = \"suite\";\n\tString CLASSIC_APPCODE = \"classic\";\n\tString EVALUATOR_APPCODE = \"evaluator\";\n\tString NOTES_APPCODE = \"notes\";\n\tString PROBABILITY_APPCODE = \"probability\";\n\n\tString SUITE_SHORT_NAME = \"CalculatorSuite.short\";\n\n\tString SUITE_URL_NAME = \"calculator\";\n\n\t/**\n\t * used by version checker, so that sys admins can disable version checking\n\t * for *all* ggb versions with\n\t * HKEY_LOCAL_MACHINE/Software/JavaSoft/Prefs/geogebra/version_check_allow =\n\t * false\n\t */\n\tpublic static final String PREFERENCES_ROOT_GLOBAL = \"/geogebra\";\n\n\t/** eg HKEY_CURRENT_USER/Software/JavaSoft/Prefs/geogebra42/ */\n\t/** root preferences node */\n\tpublic static final String PREFERENCES_ROOT = \"/geogebra50\";\n\t/** File format version */\n\tpublic static final String XML_FILE_FORMAT = \"5.0\";\n\n\t// This is used for checking if a minor update exists (on each run):\n\t// DON'T change to https (causes problems)\n\tpublic static final String VERSION_URL_MINOR =\n\t\t\t\"https://download.geogebra.org/installers/5.0/version.txt\";\n\n\t// This is used for checking whether a major update exists (monthly):\n\t// DON'T change to https (causes problems)\n\tpublic static final String VERSION_URL = \"https://download.geogebra.org/installers/version.txt\";\n\n\tpublic static final String INSTALLERS_URL = \"https://www.geogebra.org/download\";\n\n\t/** Splash filename -- used for online */\n\tpublic static final String SPLASH_STRING = \"splash.png\";\n\t// archive\n\t/** short version, for online archive */\n\tpublic static final String SHORT_VERSION_STRING = \"5.0\";\n\t// File format versions\n\t/** XSD for ggb files */\n\tpublic static final String GGB_XSD_FILENAME = \"ggb.xsd\";\n\t/** XSD for ggt (macro) files */\n\tpublic static final String GGT_XSD_FILENAME = \"ggt.xsd\";\n\t// URLs\n\t/** URL of GeoGebraWeb main js file (offline version) */\n\t// public static final String GEOGEBRA_HTML5_BASE_OFFLINE =\n\t// \"web/web.nocache.js\";\n\t/** URL of GeoGebra jars */\n\tpublic final static String GEOGEBRA_ONLINE_ARCHIVE_BASE = \"https://jars.geogebra.org/webstart/\"\n\t\t\t+ SHORT_VERSION_STRING + \"/\";\n\t/** URL of GeoGebra jars, zipped */\n\tpublic static final String GEOGEBRA_ONLINE_JARS_ZIP = GEOGEBRA_ONLINE_ARCHIVE_BASE\n\t\t\t+ \"geogebra-jars.zip\";\n\t/** update directory, typically on Windows */\n\tpublic static final String GEOGEBRA_JARS_UPDATE_DIR = \"\\\\GeoGebra 5.0\\\\jars\\\\update\";\n\n\t/** update directory, typically on Windows */\n\tpublic static final String GEOGEBRA_THIRD_PARTY_UPDATE_DIR = \"\\\\GeoGebra 5.0\"\n\t\t\t+ \"\\\\thirdparty\\\\update\";\n\n\t/** http prefix */\n\tpublic static final String HTTP = \"http://\";\n\t/** https prefix */\n\tpublic static final String HTTPS = \"https://\";\n\n\t/** GeoGebra URL */\n\tpublic final static String GEOGEBRA_WEBSITE = \"https://www.geogebra.org/\";\n\t/** GeoGebraTube beta URL, used when Feature.TUBE_BETA == true */\n\tpublic final static String GEOGEBRA_WEBSITE_BETA = \"https://beta.geogebra.org/\";\n\n\tpublic final static String TUBE_URL_SHORT = \"https://ggbm.at/\";\n\tpublic final static String GEOGEBRA_HELP_WEBSITE = \"https://help.geogebra.org/\";\n\n\t/** max possible heap space for applets in MB */\n\tpublic final static int MAX_HEAP_SPACE = 1024;\n\t/**\n\t * minimal precision in LocusEquation: by default rounding is at least 4\n\t * decimals (this changes dynamically when zooming in)\n\t */\n\tpublic static final long PROVER_MIN_PRECISION = 10000;\n\n\t/** CSS class name for GeoGebraWeb &article> tag */\n\tpublic static final String GGM_CLASS_NAME = \"geogebraweb\";\n\t/** mimetype of GGB files */\n\tpublic static final String GGW_MIME_TYPE = \"application/vnd.geogebra.file\";\n\n\t/** Splash timeout in miliseconds */\n\tpublic static final int SPLASH_DIALOG_DELAY = 1000;\n\n\t/** license URL */\n\tpublic static final String GGB_LICENSE_URL = \"https://www.geogebra.org/license\";\n\n\t/**\n\t * URL of the webpage to call if a file should be uploaded. If you want to\n\t * test GeoGebra Materials uploads on a test server, use a test IP URL\n\t * instead, e.g.: \"http://140.78.116.131:8082/upload\"\n\t */\n\tpublic static final String uploadURL = \"https://www.geogebra.org/upload\";\n\tpublic static final String uploadURLBeta = \"https://beta.geogebra.org/upload\";\n\n\tpublic static final String GEOGEBRA_LOADING_PNG = \"https://www.geogebra.org/images/GeoGebra_loading.png\";\n\tpublic static final String APPLET_PLAY_PNG = \"https://www.geogebra.org/images/applet_play.png\";\n\n\t// //////////////////////////////////////////////////////////////////////////\n\t// AUTHENTICATING WITH GOOGLE\n\t// ///////////////////////////////////////////////\n\t// //////////////////////////////////////////////////////////////////////////\n\n\t/**\n\t * This app's personal client ID assigned by the Google APIs Console\n\t * (http://code.google.com/apis/console).\n\t */\n\tpublic static final String GOOGLE_CLIENT_ID = \"656990710877-g0tjpnhriv39e59f5s5ubs81sv2686m6\"\n\t\t\t+ \".apps.googleusercontent.com\";\n\n\t/**\n\t * The Graphing Chrome app's client ID from the Google APIs Console\n\t * (http://code.google.com/apis/console).\n\t */\n\tpublic static final String CHROME_APP_CLIENT_ID =\n\t\t\t\"656990710877-3uu4empvnqi7co987usqk0talj3hnt2r.apps.googleusercontent.com\";\n\n\t// The auth scope being requested. This scope will allow the application to\n\t// identify who the authenticated user is.\n\tpublic static final String PLUS_ME_SCOPE = \"https://www.googleapis.com/auth/plus.me\";\n\tpublic static final String DRIVE_SCOPE = \"https://www.googleapis.com/auth/drive.file https://www.googleapis.com/auth/drive.readonly\";\n\tpublic static final String USERINFO_EMAIL_SCOPE = \"https://www.googleapis.com/auth/userinfo.email\";\n\tpublic static final String USERINFO_PROFILE_SCOPE = \"https://www.googleapis.com/auth/userinfo.profile\";\n\tpublic static final String API_USERINFO = \"https://www.googleapis.com/oauth2/v1/userinfo?alt=json&access_token=\";\n\n\tpublic static final String FORUM_URL = \"https://www.reddit.com/r/geogebra/\";\n\n\tpublic static final String EDIT_URL_BASE = \"https://www.geogebra.org/material/edit/id/\";\n\n\tpublic static final String CDN_APPS = \"https://cdn.geogebra.org/apps/\";\n\n\t/**\n\t * Get the version string for versions 6.0.*\n\t *\n\t * @return version string\n\t */\n\tstatic String getVersionString6() {\n\t\treturn VERSION_STRING.replace(\"5.0.\", \"6.0.\");\n\t}\n}",
"interface TestConstants {\n /** Address that passes the email REGEX validation. */\n String GOOD_EMAIL = \"[email protected]\";\n \n /** 10 digit phone number that meets our phone REGEX validation. */\n String GOOD_PHONE = \"5551112222\";\n \n /** There is no REGEX for real names, it just needs to not be blank. */\n String GOOD_NAME = \"Jim Bob\";\n \n /** int for testing good values in Job. */\n int GOOD_INT = 3;\n \n /** int for testing bad values in Job. */\n int BAD_INT = -5;\n \n /** String null value to test for catching cast errors */\n String BAD_STRING = null;\n \n /** String value to test for sunny day string */\n String GOOD_STRING = \"STRING\";\n \n /** Park null value to test for catching cast errors */\n Park P_NULL = null;\n}",
"public interface GI\n{\n public static final class CONNSTATUS extends Enum\n {\n\n private static final CONNSTATUS $VALUES[];\n public static final CONNSTATUS CONNECTING;\n public static final CONNSTATUS OFFLINE;\n public static final CONNSTATUS ONLINE;\n public static final CONNSTATUS PAUSING;\n public static final CONNSTATUS WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static CONNSTATUS fromInt(int i)\n {\n CONNSTATUS connstatus = (CONNSTATUS)intToTypeMap.a(i);\n if (connstatus != null)\n {\n return connstatus;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static CONNSTATUS valueOf(String s)\n {\n return (CONNSTATUS)Enum.valueOf(com/skype/GI$CONNSTATUS, s);\n }\n\n public static CONNSTATUS[] values()\n {\n return (CONNSTATUS[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n OFFLINE = new CONNSTATUS(\"OFFLINE\", 0, 0);\n CONNECTING = new CONNSTATUS(\"CONNECTING\", 1, 1);\n PAUSING = new CONNSTATUS(\"PAUSING\", 2, 2);\n ONLINE = new CONNSTATUS(\"ONLINE\", 3, 3);\n WRAPPER_UNKNOWN_VALUE = new CONNSTATUS(\"WRAPPER_UNKNOWN_VALUE\", 4, 0x7fffffff);\n $VALUES = (new CONNSTATUS[] {\n OFFLINE, CONNECTING, PAUSING, ONLINE, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n CONNSTATUS aconnstatus[] = values();\n int k = aconnstatus.length;\n for (int i = 0; i < k; i++)\n {\n CONNSTATUS connstatus = aconnstatus[i];\n intToTypeMap.a(connstatus.value, connstatus);\n }\n\n }\n\n private CONNSTATUS(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class FILEERROR extends Enum\n {\n\n private static final FILEERROR $VALUES[];\n public static final FILEERROR CREATE_ERROR;\n public static final FILEERROR DISK_FULL;\n public static final FILEERROR NO_FILEERROR;\n public static final FILEERROR OPEN_ERROR;\n public static final FILEERROR READ_ERROR;\n public static final FILEERROR WRAPPER_UNKNOWN_VALUE;\n public static final FILEERROR WRITE_ERROR;\n private static final j intToTypeMap;\n private final int value;\n\n public static FILEERROR fromInt(int i)\n {\n FILEERROR fileerror = (FILEERROR)intToTypeMap.a(i);\n if (fileerror != null)\n {\n return fileerror;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static FILEERROR valueOf(String s)\n {\n return (FILEERROR)Enum.valueOf(com/skype/GI$FILEERROR, s);\n }\n\n public static FILEERROR[] values()\n {\n return (FILEERROR[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n NO_FILEERROR = new FILEERROR(\"NO_FILEERROR\", 0, 0);\n DISK_FULL = new FILEERROR(\"DISK_FULL\", 1, 1);\n CREATE_ERROR = new FILEERROR(\"CREATE_ERROR\", 2, 2);\n OPEN_ERROR = new FILEERROR(\"OPEN_ERROR\", 3, 3);\n READ_ERROR = new FILEERROR(\"READ_ERROR\", 4, 4);\n WRITE_ERROR = new FILEERROR(\"WRITE_ERROR\", 5, 5);\n WRAPPER_UNKNOWN_VALUE = new FILEERROR(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new FILEERROR[] {\n NO_FILEERROR, DISK_FULL, CREATE_ERROR, OPEN_ERROR, READ_ERROR, WRITE_ERROR, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n FILEERROR afileerror[] = values();\n int k = afileerror.length;\n for (int i = 0; i < k; i++)\n {\n FILEERROR fileerror = afileerror[i];\n intToTypeMap.a(fileerror.value, fileerror);\n }\n\n }\n\n private FILEERROR(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static interface GIIListener\n {\n\n public abstract void onConnStatusChange(GI gi, CONNSTATUS connstatus);\n\n public abstract void onFileError(GI gi, FILEERROR fileerror);\n\n public abstract void onLibStatusChange(GI gi, LIBSTATUS libstatus);\n\n public abstract void onNodeinfoChange(GI gi, byte abyte0[]);\n\n public abstract void onProxyAuthenticationFailure(GI gi, PROXYTYPE proxytype);\n }\n\n public static class GetLastFileError_Result\n {\n\n public String m_filename;\n public int m_lowlevelCode;\n public FILEERROR m_return;\n\n public void init(int i, byte abyte0[], FILEERROR fileerror)\n {\n m_lowlevelCode = i;\n m_filename = NativeStringConvert.ConvertFromNativeBytes(abyte0);\n m_return = fileerror;\n }\n\n public GetLastFileError_Result()\n {\n }\n }\n\n public static final class LIBSTATUS extends Enum\n {\n\n private static final LIBSTATUS $VALUES[];\n public static final LIBSTATUS CONSTRUCTED;\n public static final LIBSTATUS FATAL_ERROR;\n public static final LIBSTATUS RUNNING;\n public static final LIBSTATUS STARTING;\n public static final LIBSTATUS STOPPED;\n public static final LIBSTATUS STOPPING;\n public static final LIBSTATUS WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static LIBSTATUS fromInt(int i)\n {\n LIBSTATUS libstatus = (LIBSTATUS)intToTypeMap.a(i);\n if (libstatus != null)\n {\n return libstatus;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static LIBSTATUS valueOf(String s)\n {\n return (LIBSTATUS)Enum.valueOf(com/skype/GI$LIBSTATUS, s);\n }\n\n public static LIBSTATUS[] values()\n {\n return (LIBSTATUS[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n CONSTRUCTED = new LIBSTATUS(\"CONSTRUCTED\", 0, 0);\n STARTING = new LIBSTATUS(\"STARTING\", 1, 1);\n RUNNING = new LIBSTATUS(\"RUNNING\", 2, 2);\n STOPPING = new LIBSTATUS(\"STOPPING\", 3, 3);\n STOPPED = new LIBSTATUS(\"STOPPED\", 4, 4);\n FATAL_ERROR = new LIBSTATUS(\"FATAL_ERROR\", 5, 5);\n WRAPPER_UNKNOWN_VALUE = new LIBSTATUS(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new LIBSTATUS[] {\n CONSTRUCTED, STARTING, RUNNING, STOPPING, STOPPED, FATAL_ERROR, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n LIBSTATUS alibstatus[] = values();\n int k = alibstatus.length;\n for (int i = 0; i < k; i++)\n {\n LIBSTATUS libstatus = alibstatus[i];\n intToTypeMap.a(libstatus.value, libstatus);\n }\n\n }\n\n private LIBSTATUS(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class NETWORKACTIVITYLEVEL extends Enum\n {\n\n private static final NETWORKACTIVITYLEVEL $VALUES[];\n public static final NETWORKACTIVITYLEVEL NAL_FIRST_QUIET_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_LAST_LEVEL_DONT_USE;\n public static final NETWORKACTIVITYLEVEL NAL_NORMAL_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_SUSPENDED_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_SUSPENDED_OFFLINE_LEVEL;\n public static final NETWORKACTIVITYLEVEL NAL_QUIET_WITH_NETWORK_LEVEL;\n public static final NETWORKACTIVITYLEVEL WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static NETWORKACTIVITYLEVEL fromInt(int i)\n {\n NETWORKACTIVITYLEVEL networkactivitylevel = (NETWORKACTIVITYLEVEL)intToTypeMap.a(i);\n if (networkactivitylevel != null)\n {\n return networkactivitylevel;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static NETWORKACTIVITYLEVEL valueOf(String s)\n {\n return (NETWORKACTIVITYLEVEL)Enum.valueOf(com/skype/GI$NETWORKACTIVITYLEVEL, s);\n }\n\n public static NETWORKACTIVITYLEVEL[] values()\n {\n return (NETWORKACTIVITYLEVEL[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n NAL_NORMAL_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_NORMAL_LEVEL\", 0, 3);\n NAL_FIRST_QUIET_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_FIRST_QUIET_LEVEL\", 1, 7);\n NAL_QUIET_WITH_NETWORK_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_WITH_NETWORK_LEVEL\", 2, 7);\n NAL_QUIET_SUSPENDED_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_SUSPENDED_LEVEL\", 3, 8);\n NAL_QUIET_SUSPENDED_OFFLINE_LEVEL = new NETWORKACTIVITYLEVEL(\"NAL_QUIET_SUSPENDED_OFFLINE_LEVEL\", 4, 9);\n NAL_LAST_LEVEL_DONT_USE = new NETWORKACTIVITYLEVEL(\"NAL_LAST_LEVEL_DONT_USE\", 5, 10);\n WRAPPER_UNKNOWN_VALUE = new NETWORKACTIVITYLEVEL(\"WRAPPER_UNKNOWN_VALUE\", 6, 0x7fffffff);\n $VALUES = (new NETWORKACTIVITYLEVEL[] {\n NAL_NORMAL_LEVEL, NAL_FIRST_QUIET_LEVEL, NAL_QUIET_WITH_NETWORK_LEVEL, NAL_QUIET_SUSPENDED_LEVEL, NAL_QUIET_SUSPENDED_OFFLINE_LEVEL, NAL_LAST_LEVEL_DONT_USE, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n NETWORKACTIVITYLEVEL anetworkactivitylevel[] = values();\n int k = anetworkactivitylevel.length;\n for (int i = 0; i < k; i++)\n {\n NETWORKACTIVITYLEVEL networkactivitylevel = anetworkactivitylevel[i];\n intToTypeMap.a(networkactivitylevel.value, networkactivitylevel);\n }\n\n }\n\n private NETWORKACTIVITYLEVEL(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n public static final class PROXYTYPE extends Enum\n {\n\n private static final PROXYTYPE $VALUES[];\n public static final PROXYTYPE HTTPS_PROXY;\n public static final PROXYTYPE SOCKS_PROXY;\n public static final PROXYTYPE WRAPPER_UNKNOWN_VALUE;\n private static final j intToTypeMap;\n private final int value;\n\n public static PROXYTYPE fromInt(int i)\n {\n PROXYTYPE proxytype = (PROXYTYPE)intToTypeMap.a(i);\n if (proxytype != null)\n {\n return proxytype;\n } else\n {\n return WRAPPER_UNKNOWN_VALUE;\n }\n }\n\n public static PROXYTYPE valueOf(String s)\n {\n return (PROXYTYPE)Enum.valueOf(com/skype/GI$PROXYTYPE, s);\n }\n\n public static PROXYTYPE[] values()\n {\n return (PROXYTYPE[])$VALUES.clone();\n }\n\n public final int toInt()\n {\n return value;\n }\n\n static \n {\n HTTPS_PROXY = new PROXYTYPE(\"HTTPS_PROXY\", 0, 0);\n SOCKS_PROXY = new PROXYTYPE(\"SOCKS_PROXY\", 1, 1);\n WRAPPER_UNKNOWN_VALUE = new PROXYTYPE(\"WRAPPER_UNKNOWN_VALUE\", 2, 0x7fffffff);\n $VALUES = (new PROXYTYPE[] {\n HTTPS_PROXY, SOCKS_PROXY, WRAPPER_UNKNOWN_VALUE\n });\n intToTypeMap = new j();\n PROXYTYPE aproxytype[] = values();\n int k = aproxytype.length;\n for (int i = 0; i < k; i++)\n {\n PROXYTYPE proxytype = aproxytype[i];\n intToTypeMap.a(proxytype.value, proxytype);\n }\n\n }\n\n private PROXYTYPE(String s, int i, int k)\n {\n super(s, i);\n value = k;\n }\n }\n\n\n public abstract void addListener(GIIListener giilistener);\n\n public abstract void connect();\n\n public abstract void disconnect();\n\n public abstract CONNSTATUS getConnStatus();\n\n public abstract String getDebugInfo();\n\n public abstract String getFatalErrorMessage();\n\n public abstract GetLastFileError_Result getLastFileError();\n\n public abstract LIBSTATUS getLibStatus();\n\n public abstract Setup getSetup();\n\n public abstract int getUsedPort();\n\n public abstract void log(String s, String s1);\n\n public abstract void pollEvents();\n\n public abstract void pollEvents(int i);\n\n public abstract void removeListener(GIIListener giilistener);\n\n public abstract void setDefaultPeers(String s);\n\n public abstract void setSystemID(long l);\n}",
"public interface Constants {\n\n String KEY_BOOK_INFO = \"key_book_info\";\n\n}",
"public void testParsing() throws Exception {\n Message message = new Message(\"8=FIX.4.2\\0019=40\\00135=A\\001\"\n + \"98=0\\001384=2\\001372=D\\001385=R\\001372=8\\001385=S\\00110=96\\001\",\n DataDictionaryTest.getDictionary());\n \n assertHeaderField(message, \"FIX.4.2\", BeginString.FIELD);\n assertHeaderField(message, \"40\", BodyLength.FIELD);\n assertEquals(\"wrong field value\", 40, message.getHeader().getInt(BodyLength.FIELD));\n assertHeaderField(message, \"A\", MsgType.FIELD);\n assertBodyField(message, \"0\", EncryptMethod.FIELD);\n assertTrailerField(message, \"96\", CheckSum.FIELD);\n NoMsgTypes valueMessageType = new Logon.NoMsgTypes();\n message.getGroup(1, valueMessageType);\n assertEquals(\"wrong value\", \"D\", valueMessageType.getString(RefMsgType.FIELD));\n assertEquals(\"wrong value\", \"R\", valueMessageType.getString(MsgDirection.FIELD));\n message.getGroup(2, valueMessageType);\n assertEquals(\"wrong value\", \"8\", valueMessageType.getString(RefMsgType.FIELD));\n assertEquals(\"wrong value\", \"S\", valueMessageType.getString(MsgDirection.FIELD));\n }",
"public interface InputParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int TRUE = 5;\n /** RegularExpression Id. */\n int FALSE = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int INTEGER = 8;\n /** RegularExpression Id. */\n int STRING = 9;\n /** RegularExpression Id. */\n int CHARACTER = 10;\n /** RegularExpression Id. */\n int BOOLEAN = 11;\n /** RegularExpression Id. */\n int ASTERIX = 12;\n /** RegularExpression Id. */\n int COLON = 13;\n /** RegularExpression Id. */\n int ADT = 14;\n /** RegularExpression Id. */\n int SIGNATURES = 15;\n /** RegularExpression Id. */\n int EQUATIONS = 16;\n /** RegularExpression Id. */\n int PLUS = 17;\n /** RegularExpression Id. */\n int MINUS = 18;\n /** RegularExpression Id. */\n int ARROW = 19;\n /** RegularExpression Id. */\n int LESS_THAN = 20;\n /** RegularExpression Id. */\n int EQUALS = 21;\n /** RegularExpression Id. */\n int GREATER_THAN = 22;\n /** RegularExpression Id. */\n int HEX_ESCAPE = 23;\n /** RegularExpression Id. */\n int LEFT_PAREN = 24;\n /** RegularExpression Id. */\n int RIGHT_PAREN = 25;\n /** RegularExpression Id. */\n int UINT10 = 26;\n /** RegularExpression Id. */\n int ND = 27;\n /** RegularExpression Id. */\n int MC = 28;\n /** RegularExpression Id. */\n int ME = 29;\n /** RegularExpression Id. */\n int LU = 30;\n /** RegularExpression Id. */\n int LL = 31;\n /** RegularExpression Id. */\n int LT = 32;\n /** RegularExpression Id. */\n int LM = 33;\n /** RegularExpression Id. */\n int LO = 34;\n /** RegularExpression Id. */\n int MN = 35;\n /** RegularExpression Id. */\n int NL = 36;\n /** RegularExpression Id. */\n int NO = 37;\n /** RegularExpression Id. */\n int PD = 38;\n /** RegularExpression Id. */\n int PC = 39;\n /** RegularExpression Id. */\n int PO = 40;\n /** RegularExpression Id. */\n int SC = 41;\n /** RegularExpression Id. */\n int SM = 42;\n /** RegularExpression Id. */\n int SK = 43;\n /** RegularExpression Id. */\n int SO = 44;\n /** RegularExpression Id. */\n int CO = 45;\n /** RegularExpression Id. */\n int ID = 46;\n /** RegularExpression Id. */\n int PECULIAR_ID = 47;\n /** RegularExpression Id. */\n int INITIAL = 48;\n /** RegularExpression Id. */\n int SPECIAL_INITIAL = 49;\n /** RegularExpression Id. */\n int CONSTITUENT = 50;\n /** RegularExpression Id. */\n int SUBSEQUENT = 51;\n /** RegularExpression Id. */\n int SPECIAL_SUBSEQUENT = 52;\n /** RegularExpression Id. */\n int INLINE_HEX_ESCAPE = 53;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"#t\\\"\",\n \"\\\"#f\\\"\",\n \"\\\"not\\\"\",\n \"\\\"int\\\"\",\n \"\\\"string\\\"\",\n \"\\\"character\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"*\\\"\",\n \"\\\":\\\"\",\n \"\\\"ADT:\\\"\",\n \"\\\"Signatures:\\\"\",\n \"\\\"Equations:\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"->\\\"\",\n \"\\\"<\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"\\\\\\\\x\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"<UINT10>\",\n \"<ND>\",\n \"<MC>\",\n \"<ME>\",\n \"<LU>\",\n \"<LL>\",\n \"<LT>\",\n \"<LM>\",\n \"<LO>\",\n \"<MN>\",\n \"<NL>\",\n \"<NO>\",\n \"<PD>\",\n \"<PC>\",\n \"<PO>\",\n \"<SC>\",\n \"<SM>\",\n \"<SK>\",\n \"<SO>\",\n \"<CO>\",\n \"<ID>\",\n \"<PECULIAR_ID>\",\n \"<INITIAL>\",\n \"<SPECIAL_INITIAL>\",\n \"<CONSTITUENT>\",\n \"<SUBSEQUENT>\",\n \"<SPECIAL_SUBSEQUENT>\",\n \"<INLINE_HEX_ESCAPE>\",\n };\n\n}",
"public interface IActivityConstants {\n\n public static final int ADD_UNIT_REQ_CODE = 1;\n\n public static final String METRIC_KEY = \"METRIC\";\n\n public static final String KNOT_KEY = \"KNOT\";\n\n public static final String BEUA_KEY = \"BEUAFORT\";\n\n public static final String INPUT_KEY = \"INPUT\";\n\n}",
"public OctetString getMsg1011()\n {\n\treturn this.msg1011;\n }",
"public interface EG1Constants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int INT = 6;\n /** RegularExpression Id. */\n int REAL = 7;\n /** RegularExpression Id. */\n int BOOL = 8;\n /** RegularExpression Id. */\n int LIST = 9;\n /** RegularExpression Id. */\n int STR = 10;\n /** RegularExpression Id. */\n int CARACT = 11;\n /** RegularExpression Id. */\n int SE = 12;\n /** RegularExpression Id. */\n int SENAO = 13;\n /** RegularExpression Id. */\n int SENAOSE = 14;\n /** RegularExpression Id. */\n int ENQUANTO = 15;\n /** RegularExpression Id. */\n int PARA = 16;\n /** RegularExpression Id. */\n int VERDADEIRO = 17;\n /** RegularExpression Id. */\n int FALSO = 18;\n /** RegularExpression Id. */\n int IMPRIMIR = 19;\n /** RegularExpression Id. */\n int MAIS = 20;\n /** RegularExpression Id. */\n int MENOS = 21;\n /** RegularExpression Id. */\n int MULTIPLICAR = 22;\n /** RegularExpression Id. */\n int DIVIDIR = 23;\n /** RegularExpression Id. */\n int ATRIBUICAO = 24;\n /** RegularExpression Id. */\n int MAIOR = 25;\n /** RegularExpression Id. */\n int MENOR = 26;\n /** RegularExpression Id. */\n int MAIOR_IGUAL = 27;\n /** RegularExpression Id. */\n int MENOR_IGUAL = 28;\n /** RegularExpression Id. */\n int IGUAL = 29;\n /** RegularExpression Id. */\n int DIFERENTE = 30;\n /** RegularExpression Id. */\n int ABRE_PARENTESES = 31;\n /** RegularExpression Id. */\n int FECHA_PARENTESES = 32;\n /** RegularExpression Id. */\n int ABRE_CHAVES = 33;\n /** RegularExpression Id. */\n int FECHA_CHAVES = 34;\n /** RegularExpression Id. */\n int ABRE_COLCHETE = 35;\n /** RegularExpression Id. */\n int FECHA_COLCHETE = 36;\n /** RegularExpression Id. */\n int PONTO_VIRGULA = 37;\n /** RegularExpression Id. */\n int VIRGULA = 38;\n /** RegularExpression Id. */\n int PONTO = 39;\n /** RegularExpression Id. */\n int CONSTANTE_INT = 40;\n /** RegularExpression Id. */\n int CONSTANTE_REAL = 41;\n /** RegularExpression Id. */\n int DIGITO = 42;\n /** RegularExpression Id. */\n int VARIAVEL = 43;\n /** RegularExpression Id. */\n int CARACTERE = 44;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"INT\\\"\",\n \"\\\"REAL\\\"\",\n \"\\\"BOOL\\\"\",\n \"\\\"LIST\\\"\",\n \"\\\"STR\\\"\",\n \"\\\"CARACT\\\"\",\n \"\\\"SE\\\"\",\n \"\\\"SENAO\\\"\",\n \"\\\"SENAOSE\\\"\",\n \"\\\"ENQUANTO\\\"\",\n \"\\\"PARA\\\"\",\n \"\\\"VERDADEIRO\\\"\",\n \"\\\"FALSO\\\"\",\n \"\\\"IMPRIMIR\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\" >=\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"<CONSTANTE_INT>\",\n \"<CONSTANTE_REAL>\",\n \"<DIGITO>\",\n \"<VARIAVEL>\",\n \"<CARACTERE>\",\n };\n\n}",
"public interface CommonMessage {\n /**\n * validate prefix\n */\n String VALIDATE = \"COMMON.VALIDATE.\";\n /**\n * error prefix\n */\n String ERROR = \"COMMON.ERROR.\";\n /**\n * warn prefix\n */\n String WARN = \"COMMON.WARN.\";\n /**\n * info prefix\n */\n String INFO = \"INFO.WARN.\";\n\n\n /**\n * 校验异常\n */\n interface ValidateMessage {\n /**\n * REQUIRE:必填字段\n */\n String REQUIRE = VALIDATE + \"REQUIRE\";\n /**\n * REMOTE:请修正此字段\n */\n String REMOTE = VALIDATE + \"REMOTE\";\n /**\n * EMAIL:请输入有效的电子邮件地址\n */\n String EMAIL = VALIDATE + \"EMAIL\";\n /**\n * URL:请输入有效的网址\n */\n String URL = VALIDATE + \"URL\";\n /**\n * DATE:请输入有效的日期\n */\n String DATE = VALIDATE + \"DATE\";\n /**\n * DATEISO:请输入有效的日期 (YYYY-MM-DD)\n */\n String DATEISO = VALIDATE + \"DATEISO\";\n /**\n * NUMBER:请输入有效的数字\n */\n String NUMBER = VALIDATE + \"NUMBER\";\n /**\n * DIGITS:只能输入数字\n */\n String DIGITS = VALIDATE + \"DIGITS\";\n /**\n * CREDITCARD:请输入有效的信用卡号码\n */\n String CREDITCARD = VALIDATE + \"CREDITCARD\";\n /**\n * EQUALTO:你的输入不相同\n */\n String EQUALTO = VALIDATE + \"EQUALTO\";\n /**\n * EXTENSION:请输入有效的后缀\n */\n String EXTENSION = VALIDATE + \"EXTENSION\";\n /**\n * MAXLENGTH:最多可以输入 {0} 个字符\n */\n String MAXLENGTH = VALIDATE + \"MAXLENGTH\";\n /**\n * MINLENGTH:最少要输入 {0} 个字符\n */\n String MINLENGTH = VALIDATE + \"MINLENGTH\";\n /**\n * RANGELENGTH:请输入长度在 {0} 到 {1} 之间的字符串\n */\n String RANGELENGTH = VALIDATE + \"RANGELENGTH\";\n /**\n * RANGE:请输入范围在 {0} 到 {1} 之间的数值\n */\n String RANGE = VALIDATE + \"RANGE\";\n /**\n * MAX:请输入不大于 {0} 的数值\n */\n String MAX = VALIDATE + \"MAX\";\n /**\n * MIN:请输入不小于 {0} 的数值\n */\n String MIN = VALIDATE + \"MIN\";\n }\n\n /**\n * 错误信息\n */\n interface ErrorMessage {\n /**\n * SYSTEMEXCEPTION:系统异常,请联系管理员\n */\n String SYSTEMEXCEPTION = ERROR + \"SYSTEMEXCEPTION\";\n /**\n * NOTFIND:页面找不到\n */\n String NOTFIND = ERROR + \"NOTFIND\";\n /**\n * TIMEOUT:连接超时,请重新登录\n */\n String TIMEOUT = ERROR + \"TIMEOUT\";\n /**\n * DOWNLOADEXCEPTION:{0}下载异常\n */\n String DOWNLOADEXCEPTION = ERROR + \"DOWNLOADEXCEPTION\";\n /**\n * UPLOADEXCEPTION:{0}上传异常\n */\n String UPLOADEXCEPTION = ERROR + \"UPLOADEXCEPTION\";\n }\n\n interface WarnMessage {\n /**\n * AUTHORITY:该用户没有访问权限!\n */\n String AUTHORITY = WARN + \"AUTHORITY\";\n }\n\n interface InfoMessage {\n /**\n * SAVE:保存成功!\n */\n String SAVE = INFO + \"SAVE\";\n /**\n * DELETE:删除成功!\n */\n String DELETE = INFO + \"DELETE\";\n /**\n * EDIT:修改成功!\n */\n String EDIT = INFO + \"EDIT\";\n }\n\n}",
"public interface Constants {\n\n final public static String TAG = \"[PracticalTest02Var04]\";\n\n final public static boolean DEBUG = true;\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"query\";\n\n final public static String SCRIPT_TAG = \"script\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n\n}",
"public interface NSXMLObjectStreamConstants extends java.io.ObjectStreamConstants{\n /**\n * Array element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String ARRAY_TAG=\"array\";\n\n /**\n * Boolean element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String BOOLEAN_TAG=\"boolean\";\n\n /**\n * Byte element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String BYTE_TAG=\"byte\";\n\n /**\n * Char element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String CHAR_TAG=\"ch\";\n\n /**\n * ClassId attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String CLASS_ATTR=\"classId\";\n\n /**\n * Class element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String CLASS_TAG=\"class\";\n\n /**\n * Root element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String CONTENT_TAG=\"content\";\n\n /**\n * Double element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String DOUBLE_TAG=\"double\";\n\n /**\n * Final exception element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String EXCEPTION_TAG=\"finalException\";\n\n /**\n * Field attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String FIELD_ATTR=\"field\";\n\n /**\n * Field element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String FIELD_TAG=\"field\";\n\n /**\n * Flag attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String FLAG_ATTR=\"flag\";\n\n /**\n * Float element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String FLOAT_TAG=\"float\";\n\n /**\n * ID attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String ID_ATTR=\"id\";\n\n /**\n * IDREF attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String IDREF_ATTR=\"idRef\";\n\n /**\n * Special meta-data tag used only by the system.\n * See Also:Constant Field Values\n */\n static final java.lang.String IGNORE_ATTR=\"ignoreEDB\";\n\n /**\n * Integer element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String INT_TAG=\"int\";\n\n /**\n * Interface element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String INTERFACE_TAG=\"interface\";\n\n /**\n * Key attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String KEY_ATTR=\"key\";\n\n /**\n * Length of array attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String LENGTH_ATTR=\"length\";\n\n /**\n * Long element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String LONG_TAG=\"long\";\n\n /**\n * Name attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String NAME_ATTR=\"name\";\n\n /**\n * Official namespace of the XML serialization.\n * See Also:Constant Field Values\n */\n static final java.lang.String NAMESPACE=\"http://www.apple.com/webobjects/XMLSerialization\";\n\n /**\n * Object element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String OBJECT_TAG=\"object\";\n\n /**\n * Proxy element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String PROXY_TAG=\"proxy\";\n\n /**\n * Short element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String SHORT_TAG=\"short\";\n\n /**\n * String element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String STRING_TAG=\"string\";\n\n /**\n * SUID attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String SUID_ATTR=\"suid\";\n\n /**\n * Super element tag name.\n * See Also:Constant Field Values\n */\n static final java.lang.String SUPER_TAG=\"super\";\n\n /**\n * Type attribute name.\n * See Also:Constant Field Values\n */\n static final java.lang.String TYPE_ATTR=\"type\";\n\n}",
"public interface PaperDbConstants {\n String UNIVERSAL_TYPE = \"universal_flavor_type\";\n String PAPER_ACCESS_TOKEN = \"paper_access_token\";\n\n\n String LIVE = \"LIVE\";\n String DEV = \"DEV\";\n\n String LOGIN_CREDENTIALS = \"logininfo\";\n\n}",
"private static String getPacketBeanName(String tranCode) {\n\t\treturn \"FIXSTRINGPacket\" + tranCode + \"Helper\";\n\t}",
"public OctetString getMsg1006()\n {\n\treturn this.msg1006;\n }",
"public interface nndmMessage_Out\n{\n\n /**\n * Status flag to indicate that a message is ready for retreival from message\n * out queue and to be transformed into a disease-specific message\n * format - value is <code> A </code> .\n */\n public static final String READY_FOR_TRANSFORM_STATUS = \"RDY_FOR_TRNSFRM\";\n\n /**\n * Status flag to indicate that a message is in the process of being transformed\n * into a disease-specific message format - value is <code> TRNSFRM_IN_PROG </code> .\n */\n public static final String TRANSFORM_IN_PROGRESS_STATUS = \"TRNSFRM_IN_PROG\";\n\n\n /**\n * Status flag to indicate that a message has been successfully transformed\n * into a disease-specific message format - value is <code> TRNSFRM_COMP </code> .\n */\n public static final String TRANSFORM_COMPLETE_STATUS = \"TRNSFRM_COMP\";\n\n\n /**\n * Status flag to indicate that an error has occurred while transforming a\n * message into a disease-specific message format, (transformation unsuccessful)\n * - value is <code> TRNSFRM_ERR </code> .\n */\n public static final String TRANSFORM_ERROR_STATUS = \"TRNSFRM_ERR\";\n\n\n /**\n * Status flag to indicate that an error has occurred while <i> transporting </i> a\n * a disease-specific message to the transport out queue, (write to queue failed),\n * or, the ebXML application errored while processing the message.\n * - value is <code> TRNSPRT_ERR </code> .\n */\n public static final String TRANSPORT_ERROR_STATUS = \"TRNSPRT_ERR\";\n\n\n /**\n * Status flag to indicate that a disease-specific message is ready to be processed\n * by <i> PHINMS </i> data interchange application\n * - value is <code> RDY_FOR_PHINMS </code> .\n */\n public static final String READY_FOR_PHINMS_STATUS = \"RDY_FOR_PHINMS\";\n\n\n /**\n * Status flag to indicate that a message has been successfully transformed\n * into a disease-specific message format - value is <code> PHINMS_COMP </code> .\n */\n public static final String PHINMS_COMPLETE_STATUS = \"PHINMS_COMP\";\n\n /**\n * Status flag to indicate that a message has been failed while processing in\n * PHINMS stage - value is <code> PHINMS_ERR </code>\n */\n public static final String PHINMS_ERROR_STATUS = \"PHINMS_ERR\";\n\n\n /**\n * Represents the Disease Message, <i> before </i> disease_specific transformation.\n */\n public static final String MESSAGE_OUT_ATTACHEMNT = \"attachment_txt\";\n\n\n /** This method returns a collection of message id keys with the given status.\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.ACTIVE_STATUS, or\n * nndmMessage_Out.TRANSFORM_IN_PROGRESS_STATUS, etc.\n * @return list containing the collection of keys\n * @see #ACTIVE_STATUS\n * @see #TRANSFORM_IN_PROGRESS_STATUS\n * @see #TRANSFORM_COMPLETE_STATUS\n * @see #TRANSFORM_ERROR_STATUS\n * @see #READY_FOR_PHINMS_STATUS\n * @see #TRANSPORT_ERROR_STATUS\n * @see #PHINMS_COMPLETE_STATUS\n */\n public List<MessageKey> listMessages(String status);\n\n\n /** This method retrieves the message record from the message_out database.\n * The SELECT sql is formatted to support specific database implementations\n * (currently MSSQL 2000 and Oracle 8i).\n * Only records with a status_cd of <code> nndmMessage_Out.ACTIVE_STATUS </code> can be retrieved.\n * @param key String that contains the record identifier for the message that failed.\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.ACTIVE_STATUS, or\n * nndmMessage_Out.TRANSFORM_IN_PROGRESS_STATUS, etc.\n * @return Map containing the mapping of column name to its value fetched from the database.\n * @see #ACTIVE_STATUS\n */\n\tpublic Map<String,String> getMessage(Long messageUid, String status);\n\n\n /** This method updates the message record indicated by the key argument as\n * indicated by the second argument.\n * @param key String that contains the record identifier to set status for\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.ACTIVE_STATUS, or\n * nndmMessage_Out.TRANSFORM_IN_PROGRESS_STATUS, etc.\n * @see #ACTIVE_STATUS\n * @see #TRANSFORM_IN_PROGRESS_STATUS\n * @see #TRANSFORM_COMPLETE_STATUS\n * @see #TRANSFORM_ERROR_STATUS\n * @see #READY_FOR_PHINMS_STATUS\n * @see #TRANSPORT_ERROR_STATUS\n * @see #PHINMS_COMPLETE_STATUS\n */\n public void setStatus(Long messageUid, String status);\n\n\n /** This method adds an error log record to the Message_Out database and\n * sets the status appropriately.\n * @param key String that contains the record identifier for the message that failed.\n * @param errorMessage String the contains the short description of the error.\n * @param status String that indicates the status of the message record; use one\n * of the acceptable values of nndmMessage_Out.TRANSFORM_ERROR_STATUS, or\n * nndmMessage_Out.TRANSPORT_ERROR_STATUS.\n */\n public void setError(Long messageUid, String notificationLocalId, String errorMessage, String status);\n\n}",
"public interface Constants {\n final public static String TAG = \"[PracticalTest02Var03]\";\n\n final public static boolean DEBUG = true;\n\n final public static String WEB_SERVICE_ADDRESS = \"http://services.aonaware.com/DictService/DictService.asmx/Define\";\n\n final public static String EMPTY_STRING = \"\";\n\n final public static String QUERY_ATTRIBUTE = \"word\";\n\n final public static String SCRIPT_TAG = \"WordDefinition\";\n final public static String SEARCH_KEY = \"wui.api_data =\\n\";\n\n final public static String CURRENT_OBSERVATION = \"current_observation\";\n}",
"public interface IGretingsMessages {\n\t\n\t/* add hello as a greeting message */\n\tpublic static final String HELLO = \"Hello \";\n\t\n\t/* add welcome as a greeting message */\n\tpublic static final String WELCOME = \"Welcome \";\n\n}",
"public interface ExtraConstant {\n\n String SERVER_CONFIG = \"server_config\"; // 需要服务器配置的数据\n /********************* 图片预览 ********************/\n String PREVIEW_IMAGE_DATA = \"preview_image_data\";//图片预览\n String PREVIEW_IMAGE_POSITION = \"preview_image_position\";//图片预览默认的显示位置\n String IS_ACTIVITY_INIT = \"is_activity_init\"; // 是否初始化\n String ACTIVITY_CONFIG = \"activity_config\";\n String TOKEN_ENTITY = \"token_entity\"; // 登录标识\n String USER_INFO = \"user_bean\"; // 用户信息\n String WEB_URL = \"web_url\"; // 网页地址\n String WEB_IS_ANALYSIS = \"web_is_analysis\"; // 是否统计\n String RIGHT_CUSTOM_TYPE = \"right_custom_type\"; // 右上角显示在线客服类型\n String CUSTOMDIALOG_TYPE = \"customdialog_type\"; // 自定义弹窗类型\n String EXTRA_VERSION = \"extra_version\";//版本\n String NEED_UPDATE = \"need_update\"; // 是否需要更新\n\n String REPAYMENT_TYPE = \"repayment_type\"; // 代偿模式\n\n}",
"public interface ErrorCodes {\n\tpublic static final String INPUT_DIRECTORY_MISSING = \"INPUT_DIRECTORY_MISSING\";\n\tpublic static final String STATEMENT_READ_FAILED = \"STATEMENT_READ_FAILED\";\n\tpublic static final String INPUT_FILE_NULL = \"INPUT_FILE_NULL\";\n\tpublic static final String DUP_TRANS_REFERENCE = \"DUP_TRANSACTION_REFERENCE\";\n\tpublic static final String WRONG_END_BALANCE = \"WRONG_END_BALANCE\";\n}",
"public interface GameMsg {\n\n int MSG_WHAT_START = 0;\n\n int MSG_WHAT_REFRESH = 1;\n\n int MSG_WHAT_GAP = 2;\n\n int MSG_WHAT_END = 3;\n\n int MSG_ANIM_STOP = 4;\n\n int MODEL_RAT = 0;\n\n int MODEL_MUSHROOM = 1;\n}",
"public interface RTSPConstants\n{\n // 1xx: Informational - Request received, continuing process\n public static final int RTSP_CONTINUE =100;\n \n // 2xx: Success - The action was successfully received, understood, and accepted\n public static final int RTSP_OK =200;\n public static final int RTSP_CREATED =201;\n public static final int RTSP_LOW_ON_STORAGE_SPACE =250;\n \n // 3xx: Redirection - Further action must be taken in order to complete the request\n public static final int RTSP_MULTIPLE_CHOICES =300;\n public static final int RTSP_MOVED_PERMANENTLY =301;\n public static final int RTSP_MOVED_TEMPORARILY =302;\n public static final int RTSP_SEE_OTHER =303;\n public static final int RTSP_NOT_MODIFIED =304;\n public static final int RTSP_USE_PROXY =305;\n \n // 4xx: Client Error - The request contains bad syntax or cannot be fulfilled\n public static final int RTSP_BAD_REQUEST =400;\n public static final int RTSP_UNAUTHORIZED =401;\n public static final int RTSP_PAYMENT_REQUIRED =402;\n public static final int RTSP_FORBIDDEN =403;\n public static final int RTSP_NOT_FOUND =404;\n public static final int RTSP_METHOD_NOT_ALLOWED =405;\n public static final int RTSP_NOT_ACCEPTABLE =406;\n public static final int RTSP_PROXY_AUTHENTICATION_REQUIRED =407;\n public static final int RTSP_REQUEST_TIME_OUT =408;\n public static final int RTSP_GONE =410;\n public static final int RTSP_LENGTH_REQUIRED =411;\n public static final int RTSP_PRECONDITION_FAILED =412;\n public static final int RTSP_REQUEST_ENTITY_TOO_LARGE =413;\n public static final int RTSP_REQUEST_URI_TOO_LARGE =414;\n public static final int RTSP_UNSUPPORTED_MEDIA_TYPE =415;\n public static final int RTSP_PARAMETER_NOT_UNDERSTOOD =451;\n public static final int RTSP_CONFERENCE_NOT_FOUND =452;\n public static final int RTSP_NOT_ENOUGH_BANDWIDTH =453;\n public static final int RTSP_SESSION_NOT_FOUND =454;\n public static final int RTSP_METHOD_NOT_VALID_IN_THIS_STATE =455;\n public static final int RTSP_HEADER_FIELD_NOT_VALID_FOR_RESOURCE =456;\n public static final int RTSP_INVALID_RANGE =457;\n public static final int RTSP_PARAMETER_IS_READ_ONLY =458;\n public static final int RTSP_AGGREGATE_OPERATION_NOT_ALLOWED =459;\n public static final int RTSP_ONLY_AGGREGATE_OPERATION_ALLOWED =460;\n public static final int RTSP_UNSUPPORTED_TRANSPORT =461;\n public static final int RTSP_DESTINATION_UNREACHABLE =462;\n \n // 5xx: Server Error - The server failed to fulfill an apparently valid request\n public static final int RTSP_INTERNAL_SERVER_ERROR =500;\n public static final int RTSP_NOT_IMPLEMENTED =501;\n public static final int RTSP_BAD_GATEWAY =502;\n public static final int RTSP_SERVICE_UNAVAILABLE =503;\n public static final int RTSP_GATEWAY_TIME_OUT =504;\n public static final int RTSP_RTSP_VERSION_NOT_SUPPORTED =505;\n public static final int RTSP_OPTION_NOT_SUPPORTED =551;\n\n\n\n public static final String tantau_sccsid = \"@(#)$Id: RTSPConstants.java,v 1.1 2009/02/06 14:24:14 rsoder Exp $\";\n}",
"public interface MclnStatePalette {\n\n String CORE_NOTHING_COLOR = \"0xC0C0C0\";\n String CORE_CONTRADICT_COLOR = \"0xAAAAAA\";\n String CORE_UNKNOWN_COLOR = \"0xC0C0C0\";\n String CORE_POSITIVE_COLOR = \"0xFFFFFF\";\n String CORE_NEGATIVE_COLOR = \"0xFFFFFF\";\n\n String CREATION = \"0xC0C0C0\";\n String NOT_CREATION = \"0x0B0B0B\";\n String WHITE = \"0xFFFFFF\";\n String BLACK = \"0x000000\";\n\n String GRAY = \"0xCCCCCC\";\n String NOT_GRAY = \"0x333333\";\n String MID_GRAY = \"0xBBBBBB\";\n String DARK_GRAY = \"0xAAAAAA\";\n\n String RED = \"0xFF0000\";\n String NOT_RED = \"0x00FFFF\";\n String MID_RED = \"0xCC0033\";\n String DARK_RED = \"0x800040\";\n\n String GREEN = \"0x00FF00\";\n String NOT_GREEN = \"0xFF00FF\";\n String MID_GREEN = \"0x94D352\";\n String DARK_GREEN = \"0x008040\";\n\n String BLUE = \"0x0000FF\";\n String NOT_BLUE = \"0xFFFF00\";\n String MID_BLUE = \"0x0040FF\";\n String DARK_BLUE = \"0x0020BB\";\n\n String PURPLE = \"0xFF00FF\";\n String NOT_PURPLE = GREEN;\n String MID_PURPLE = \"0x9900FF\";\n String DARK_PURPLE = \"0x4000DD\";\n\n String CYAN = \"0x00FFFF\";\n String NOT_CYAN = RED;\n String MID_CYAN = \"0x31A4B1\";\n String DARK_CYAN = \"0x2C5463\";\n\n String YELLOW = \"0xFFFF00\";\n String NOT_YELLOW = BLUE;\n String MID_YELLOW = \"0x9900FF\";\n String DARK_YELLOW = \"0x4000DD\";\n\n String BROWN = \"0xdec79f\";\n String MID_BROWN = \"0xce9b4e\";\n String DARK_BROWN = \"0xc27101\";\n\n String SWAMP = \"0xc8c8aa\";\n String MID_SWAMP = \"0x999966\";\n String DARK_SWAMP = \"0xe4e640\";\n\n String PINK = \"0xFF7FBF\";\n String NOT_PINK = \"0x005555\";\n String ORANGE = \"0xFF9900\";\n String CANARY = \"0xBFFF00\";\n\n int MCLN_MIN_STATE = MclnAlgebra.MCL_CORE_MAX + 1;\n\n MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE,\n NOT_CREATION);\n//\n// MclnState MCLN_CREATION_STATE = MclnState.createState(\"Creation\", MCLN_MIN_STATE, CREATION);\n// MclnState MCLN_NOT_CREATION_STATE = MclnState.createState(MCLN_CREATION_STATE, \"Not Creation\", -MCLN_MIN_STATE, NOT_CREATION);\n//\n// MclnState MCLN_STATE_GRAY = MclnState.createState(\"Gray\", (MCLN_MIN_STATE + 1) , GRAY);\n// MclnState MCLN_STATE_NOT_GRAY = MclnState.createState(MCLN_STATE_GRAY, \"Not Gray\", -(MCLN_MIN_STATE + 1), NOT_GRAY);\n//\n// MclnState MCLN_STATE_RED = MclnState.createState(\"Red\", (MCLN_MIN_STATE + 2), RED);\n// MclnState MCLN_STATE_NOT_RED = MclnState.createState(MCLN_STATE_RED, \"Not Red\", -(MCLN_MIN_STATE + 2), NOT_RED);\n//\n// MclnState MCLN_STATE_GREEN = MclnState.createState(\"Green\", (MCLN_MIN_STATE + 3), GREEN);\n// MclnState MCLN_STATE_NOT_GREEN = MclnState.createState(MCLN_STATE_GREEN, \"Not Green\", -(MCLN_MIN_STATE + 3), NOT_GREEN);\n//\n// MclnState MCLN_STATE_BLUE = MclnState.createState(\"Blue\", (MCLN_MIN_STATE + 4), BLUE);\n// MclnState MCLN_STATE_NOT_BLUE = MclnState.createState(MCLN_STATE_BLUE, \"Not Blue\", -(MCLN_MIN_STATE + 4), NOT_BLUE);\n//\n// MclnState MCLN_STATE_DARK_BLUE = MclnState.createState(\"Dark blue\", (MCLN_MIN_STATE + 5), DARK_BLUE);\n// MclnState MCLN_STATE_NOT_DARK_BLUE = MclnState.createState(MCLN_STATE_DARK_BLUE, \"Not Dark blue\", -(MCLN_MIN_STATE + 5), NOT_DARK_BLUE);\n//\n// MclnState MCLN_STATE_PINK = MclnState.createState(\"Pink\", (MCLN_MIN_STATE + 6), PINK);\n// MclnState MCLN_STATE_NOT_PINK = MclnState.createState(MCLN_STATE_PINK, \"Not Pink\", -(MCLN_MIN_STATE + 6), NOT_PINK);\n//\n// MclnState MCLN_STATE_DARK_GREEN = MclnState.createState(\"Dark Brown\", (MCLN_MIN_STATE + 7), DARK_GREEN);\n\n public List<MclnState> getAvailableStates();\n\n /**\n * @param color\n * @return\n */\n public MclnState getState(String color);\n\n// String CREATION_COLOR = \"0xC0C0C0\";\n// MclnState CREATION_MCLN_STATE = MclnState.createState(\"Creation State\", 0, CREATION_COLOR);\n\n// int mclnPaletteMax = 10 * 2;\n// int RED = 0xFF0000;\n// int NOT_RED = 0x00FFFF;\n// int GREEN = 0x00FF00;\n// int NOT_GREEN = 0xFF00FF;\n// int BLUE = 0x0000FF;\n// int NOT_BLUE = 0xFFFF00;\n// int YELLOW = NOT_BLUE;\n// int NOT_YELLOW = BLUE;\n// int MAGENTA = NOT_GREEN;\n// int NOT_MAGENTA = GREEN;\n// int CYAN = NOT_RED;\n// int NOT_CYAN = RED;\n// int PINK = 0xFFAAAA;\n// int NOT_PINK = 0x005555;\n//\n// int WHITE = 0xFFFFFF;\n// int VERY_LIGHT_CIAN = 0xCCFFFF;\n// int VERY_LIGHT_BLUE = 0xCCCCFF;\n// int VERY_LIGHT_MAGENTA = 0xCCFFCC;\n// int VERY_LIGHT_RED = 0xFFCCCC;\n// int VERY_LIGHT_YELLOW = 0xFFFFCC;\n//\n//\n// int DARK_RED = 0xCC0000;\n// int DARK_CIAN = 0x00CCCC;\n// int DARK_GREEN = 0x00CC00;\n// int DARK_MAGENTA = 0xCC00CC;\n// int DARK_BLUE = 0x0000CC;\n// int DARK_YELLOW = 0xCCCC00;\n//\n// int VERY_DARK_CIAN = 0x006666;\n// int VERY_DARK_BLUE1 = 0x003366;\n// int VERY_DARK_BLUE2 = 0x000066;\n// int VERY_DARK_BLUE3 = 0x330066;\n// int VERY_DARK_MAGENTA = 0x660066;\n// int VERY_DARK_RED1 = 0x660033;\n// int VERY_DARK_RED2 = 0x660000;\n// int VERY_DARK_RED3 = 0x663300;\n// int VERY_DARK_YELLOW = 0x666600;\n// int VERY_DARK_GREEN1 = 0x336600;\n// int VERY_DARK_GREEN2 = 0x006600;\n// int VERY_DARK_GREEN3 = 0x006633;\n//\n//\n//\n// MclnState getState(Integer color);\n//\n//// Integer getActiveState(Color color) {\n//// return activeColorPalette.get(color);\n//// }\n////\n//// Color getActiveColor(Integer state) {\n//// return activeStatePalette.get(state);\n//// }\n\n}",
"public interface ClientType {\n String RED = \"红方\";\n String BLUE = \"蓝方\";\n String AUDIENCE = \"观战者\";\n}",
"public interface Constant {\n\n String ACCESSIBILITY_SERVICE = \"github.hellocsl.smartmonitor/github.hellocsl.smartmonitor.VideoAccessibilityService\";\n\n String QQ_PKG = \"com.tencent.mobileqq\";\n\n String QQ_NUMBER = \"929371293\";\n\n String DIALER = \"com.google.android.dialer\";\n\n String MONITOR_CMD_VIDEO = \"monitor_cmd_video\";\n\n String MONITOR_TAG = \"WaterMonitor\";\n\n String MONITOR_CMD_RESET = \"110\";\n\n String MEIZU_IN_CALL_PKG = \"com.android.incallui\";\n\n //NEXUS 5\n String N5_MODEL = \"Nexus 5\";\n\n //MEIZU\n String MX_MODEL = \"mx\";\n\n\n}",
"public interface Constants {\n \n public static String LOG_TAG = \"iyokan_parts\";\n}",
"public interface IDs {\n\n static final String SERIES_STANDARD_ID = \"c7fb8441-d5db-4113-8af0-e4ba0c3f51fd\";\n static final String EPISODE_STANDARD_ID = \"a99a8588-93df-4811-8403-fe22c70fa00a\";\n static final String FILE_STANDARD_ID = \"c5919cbf-fbf3-4250-96e6-3fefae51ffc5\";\n static final String RECORDING_STANDARD_ID = \"4a40811d-c067-467f-8ff6-89f37eddb933\";\n static final String ZAP2IT_STANDARD_ID = \"545c4b00-5409-4d92-9cda-59a44f0ec7a9\";\n}",
"public interface IntConstant {\n /***\n * 调用系统相机\n */\n int CAMERA = 10001;\n /***\n * 调用系统相册\n */\n int PICTURE = 10006;\n /***\n * 跳转 视频选择\n */\n int VIDEO = 10007;\n /**\n *跳转到裁剪界面的 裁剪类型 0: 头像 1:个人背景图\n */\n int CLIPIMAGETYPE_ICON = 0 ;\n int CLIPIMAGETYPE_USERMSGBG = 1 ;\n /**\n * 跳转到 commonWebView 界面 链接类型 0:直接展示 1:订单详情界面 2:显示标题带返回按钮,如果不手动设置title默认读取网页中title\n */\n int WEBVIEWURL_TYPE_NORMAL = 0;\n int WEBVIEWURL_TYPE_SHOWTITLE = 1;\n /**\n * 跳转到任务列表界面 展示的页面\n */\n int TO_TASKLIS_SHOW_JOIN = 0;\n int TO_TASKLIS_SHOW_COLLECTION = 1;\n /**\n * 修改个人信息的请求类型\n */\n int MODIFYUSERINFO_ALL = 2;\n int MODIFYUSERINFO_BASEINFO = 0;\n int MODIFYUSERINFO_IMAGEINFO = 1;\n\n /**您的性别不符合要求*/\n int ERROR_SEX = 29191164;\n /**您尚未绑定社交媒体,是否立刻绑定?*/\n int ERROR_UNBIND = 29191165;\n /**您尚未完善资料,是否立刻填写?*/\n int ERROR_UNCOMPLETED = 29191166;\n /**您的微博粉丝数量与商家的要求不符,是否继续报名?*/\n int ERROR_FANS = 29191167;\n\n}",
"public interface Constant {\r\n\r\n String BASE_NAME = \"com.sslyxhz.entropy\";\r\n\r\n // Girl Photo\r\n String EXTRA_URL = BASE_NAME + \".EXTRA_URL\";\r\n String EXTRA_DESC = BASE_NAME + \".EXTRA_DESC\";\r\n\r\n // TypeDataFragment\r\n String EXTRA_TAG_NAME = BASE_NAME + \".EXTRA_TAG_NAME\";\r\n int TYPE_ITEM_GANK = 21; // 一般类型\r\n int TYPE_ITEM_WELFARE = 22; // 福利\r\n}",
"public OctetString getMsg1017()\n {\n\treturn this.msg1017;\n }",
"static zzcp m26831c() {\n return new zzcp(\"Protocol message tag had invalid wire type.\");\n }",
"public interface CHANGED_TYPE {\r\n public static final int FEE = 1;\r\n public static final int GRACE_PERIOD = 2;\r\n }",
"public interface PocketWordConstants {\n /** File extension for Pocket Word files. */\n public static final String FILE_EXTENSION = \".psw\";\n \n /** Name of the default style. */\n public static final String DEFAULT_STYLE = \"Standard\";\n \n /** Family name for Paragraph styles. */\n public static final String PARAGRAPH_STYLE_FAMILY = \"paragraph\";\n \n /** Family name for Text styles. */\n public static final String TEXT_STYLE_FAMILY = \"text\";\n \n \n /** \n * Generic Pocket Word formatting code. \n *\n * Formatting codes are 0xEz, where z indicates the specific format code.\n */\n public static final byte FORMATTING_TAG = (byte)0xE0;\n \n /** Font specification tag. The two bytes following inidicate which font. */\n public static final byte FONT_TAG = (byte)0xE5;\n \n /** Font size tag. The two bytes following specify font size in points. */\n public static final byte FONT_SIZE_TAG = (byte)0xE6;\n \n /** Colour tag. Two bytes following index a 4-bit colour table. */\n public static final byte COLOUR_TAG = (byte)0xE7;\n \n /** Font weight tag. Two bytes following indicate weighting of font. */\n public static final byte FONT_WEIGHT_TAG = (byte)0xE8;\n \n /** Normal font weight value. */\n public static final byte FONT_WEIGHT_NORMAL = (byte)0x04;\n \n /** Fine font weight value. */\n public static final byte FONT_WEIGHT_FINE = (byte)0x01;\n \n /** Bold font weight value. */\n public static final byte FONT_WEIGHT_BOLD = (byte)0x07;\n \n /** Thick font weight value. */\n public static final byte FONT_WEIGHT_THICK = (byte)0x09;\n\n /** Italic tag. Single byte following indicates whether italic is on. */\n public static final byte ITALIC_TAG = (byte)0xE9;\n \n /** Underline tag. Single byte following indicates whether underline is on. */\n public static final byte UNDERLINE_TAG = (byte)0xEA;\n \n /** Strikethrough tag. Single byte following indicates whether strikethrough is on. */\n public static final byte STRIKETHROUGH_TAG = (byte)0XEB;\n \n /** Highlighting tag. Single byte following indicates whether highlighting is on. */\n public static final byte HIGHLIGHT_TAG = (byte)0xEC;\n \n}",
"public interface ActivityConstants {\n public static final int SCAN_ACTIVITY = 1001;\n public static final int PREVIOUS_ORDERS_ACTIVITY = 1002;\n public static final String PREFS_NAME = \"LoginData\";\n public static final String PREFS_LOGGED = \"LoggedIn\";\n}",
"String getDefectType() {\n return \"Hash Mismatch\";\n }",
"public interface Connection {\r\n\r\n static final String APP_SERVER_URL = \"http://www.softwaresunleashed.com/iots/sending-push-notifications.php?shareRegId=1\";\r\n static final String GOOGLE_PROJECT_ID = \"769537366212\";\r\n\r\n static final String MESSAGE_KEY = \"m\";\r\n\r\n}",
"public interface StatusCodes\n{\n\n// ----------------------------------------------------------------------------\n// Reserved status codes: [E0-00 through FF-FF]\n// Groups:\n// 0xF0.. - Generic\n// 0xF1.. - Motion\n// 0xF2.. - Geofence\n// 0xF4.. - Digital input/output\n// 0xF6.. - Sensor input\n// 0xF7.. - Temperature input\n// 0xF9.. - J1708\n// 0xFD.. - Device status\n// ----------------------------------------------------------------------------\n\n// ----------------------------------------------------------------------------\n// No status code: 0x0000\n\n public static final int STATUS_NONE = 0x0000;\n\n// ----------------------------------------------------------------------------\n// Generic codes: 0xF000 to 0xF0FF\n\n public static final int STATUS_INITIALIZED = 0xF010;\n // Description:\n // General Status/Location information (event generated by some\n // initialization function performed by the device).\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp (and latitude and longitude if available).\n\n public static final int STATUS_LOCATION = 0xF020;\n // Description:\n // General Status/Location information. This status code indicates\n // no more than just the location of the device at a particular time.\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp, latitude, and longitude.\n\n public static final int STATUS_WAYMARK = 0xF030;\n // Description:\n // General Status/Location information (event generated by manual user\n // intervention at the device. ie. By pressing a 'Waymark' button).\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp, latitude, and longitude.\n\n public static final int STATUS_QUERY = 0xF040;\n // Description:\n // General Status/Location information (event generated by 'query'\n // from the server).\n // Notes:\n // - This contents of the payload must at least contain the current\n // timestamp, latitude, and longitude.\n\n// ----------------------------------------------------------------------------\n// Motion codes: 0xF100 to 0xF1FF\n\n public static final int STATUS_MOTION_START = 0xF111;\n // Description:\n // Device start of motion\n // Notes:\n // The definition of motion-start is provided by property PROP_MOTION_START\n\n public static final int STATUS_MOTION_IN_MOTION = 0xF112;\n // Description:\n // Device in-motion interval\n // Notes:\n // The in-motion interval is provided by property PROP_MOTION_IN_MOTION.\n // This status is typically used for providing in-motion events between\n // STATUS_MOTION_START and STATUS_MOTION_STOP events.\n\n public static final int STATUS_MOTION_STOP = 0xF113;\n // Description:\n // Device stopped motion\n // Notes:\n // The definition of motion-stop is provided by property PROP_MOTION_STOP\n\n public static final int STATUS_MOTION_DORMANT = 0xF114;\n // Description:\n // Device dormant interval (ie. not moving)\n // Notes:\n // The dormant interval is provided by property PROP_MOTION_DORMANT\n\n public static final int STATUS_MOTION_EXCESS_SPEED = 0xF11A;\n // Description:\n // Device exceeded preset speed limit\n // Notes:\n // The excess-speed threshold is provided by property PROP_MOTION_EXCESS_SPEED\n\n public static final int STATUS_MOTION_MOVING = 0xF11C;\n // Description:\n // Device is moving\n // Notes:\n // This status code may be used to indicating that the device was moving\n // at the time the event was generated. It is not typically associated\n // with the status codes STATUS_MOTION_START, STATUS_MOTION_STOP, and \n // STATUS_MOTION_IN_MOTION, and may be used independently of these codes.\n\n public static final int STATUS_ODOM_0 = 0xF130;\n public static final int STATUS_ODOM_1 = 0xF131;\n public static final int STATUS_ODOM_2 = 0xF132;\n public static final int STATUS_ODOM_3 = 0xF133;\n public static final int STATUS_ODOM_4 = 0xF134;\n public static final int STATUS_ODOM_5 = 0xF135;\n public static final int STATUS_ODOM_6 = 0xF136;\n public static final int STATUS_ODOM_7 = 0xF137;\n // Description:\n // Odometer value\n // Notes:\n // The odometer limit is provided by property PROP_ODOMETER_#_LIMIT\n\n public static final int STATUS_ODOM_LIMIT_0 = 0xF140;\n public static final int STATUS_ODOM_LIMIT_1 = 0xF141;\n public static final int STATUS_ODOM_LIMIT_2 = 0xF142;\n public static final int STATUS_ODOM_LIMIT_3 = 0xF143;\n public static final int STATUS_ODOM_LIMIT_4 = 0xF144;\n public static final int STATUS_ODOM_LIMIT_5 = 0xF145;\n public static final int STATUS_ODOM_LIMIT_6 = 0xF146;\n public static final int STATUS_ODOM_LIMIT_7 = 0xF147;\n // Description:\n // Odometer has exceeded a set limit\n // Notes:\n // The odometer limit is provided by property PROP_ODOMETER_#_LIMIT\n\n// ----------------------------------------------------------------------------\n// Geofence: 0xF200 to 0xF2FF\n\n public static final int STATUS_GEOFENCE_ARRIVE = 0xF210;\n // Description:\n // Device arrived at geofence\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_DEPART = 0xF230;\n // Description:\n // Device departed geofence\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_VIOLATION = 0xF250;\n // Description:\n // Geofence violation\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_ACTIVE = 0xF270;\n // Description:\n // Geofence now active\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n public static final int STATUS_GEOFENCE_INACTIVE = 0xF280;\n // Description:\n // Geofence now inactive\n // Notes:\n // - Client may wish to include FIELD_GEOFENCE_ID in the event packet.\n\n// ----------------------------------------------------------------------------\n// Digital input/output (state change): 0xF400 to 0xF4FF\n\n public static final int STATUS_INPUT_STATE = 0xF400;\n // Description:\n // Current input ON state (bitmask)\n // Notes:\n // - Client should include FIELD_INPUT_STATE in the event packet,\n // otherwise this status code would have no meaning.\n\n public static final int STATUS_INPUT_ON = 0xF402;\n // Description:\n // Input turned ON\n // Notes:\n // - Client should include FIELD_INPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary input\n // 'thing' turned ON, and the 'thing' can be identified by the 'Input ID'.\n // This 'ID' can also represent the index of a digital input.\n\n public static final int STATUS_INPUT_OFF = 0xF404;\n // Description:\n // Input turned OFF\n // Notes:\n // - Client should include FIELD_INPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary input\n // 'thing' turned OFF, and the 'thing' can be identified by the 'Input ID'.\n // This 'ID' can also represent the index of a digital input.\n\n public static final int STATUS_OUTPUT_STATE = 0xF406;\n // Description:\n // Current output ON state (bitmask)\n // Notes:\n // - Client should include FIELD_OUTPUT_STATE in the event packet,\n // otherwise this status code would have no meaning.\n\n public static final int STATUS_OUTPUT_ON = 0xF408;\n // Description:\n // Output turned ON\n // Notes:\n // - Client should include FIELD_OUTPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary output\n // 'thing' turned ON, and the 'thing' can be identified by the 'Output ID'.\n // This 'ID' can also represent the index of a digital output.\n\n public static final int STATUS_OUTPUT_OFF = 0xF40A;\n // Description:\n // Output turned OFF\n // Notes:\n // - Client should include FIELD_OUTPUT_ID in the event packet,\n // otherwise this status code would have no meaning.\n // - This status code may be used to indicate that an arbitrary output\n // 'thing' turned OFF, and the 'thing' can be identified by the 'Output ID'.\n // This 'ID' can also represent the index of a digital output.\n\n public static final int STATUS_INPUT_ON_00 = 0xF420;\n public static final int STATUS_INPUT_ON_01 = 0xF421;\n public static final int STATUS_INPUT_ON_02 = 0xF422;\n public static final int STATUS_INPUT_ON_03 = 0xF423;\n public static final int STATUS_INPUT_ON_04 = 0xF424;\n public static final int STATUS_INPUT_ON_05 = 0xF425;\n public static final int STATUS_INPUT_ON_06 = 0xF426;\n public static final int STATUS_INPUT_ON_07 = 0xF427;\n // Description:\n // Digital input state changed to ON\n\n public static final int STATUS_INPUT_OFF_00 = 0xF440;\n public static final int STATUS_INPUT_OFF_01 = 0xF441;\n public static final int STATUS_INPUT_OFF_02 = 0xF442;\n public static final int STATUS_INPUT_OFF_03 = 0xF443;\n public static final int STATUS_INPUT_OFF_04 = 0xF444;\n public static final int STATUS_INPUT_OFF_05 = 0xF445;\n public static final int STATUS_INPUT_OFF_06 = 0xF446;\n public static final int STATUS_INPUT_OFF_07 = 0xF447;\n // Description:\n // Digital input state changed to OFF\n\n public static final int STATUS_OUTPUT_ON_00 = 0xF460;\n public static final int STATUS_OUTPUT_ON_01 = 0xF461;\n public static final int STATUS_OUTPUT_ON_02 = 0xF462;\n public static final int STATUS_OUTPUT_ON_03 = 0xF463;\n public static final int STATUS_OUTPUT_ON_04 = 0xF464;\n public static final int STATUS_OUTPUT_ON_05 = 0xF465;\n public static final int STATUS_OUTPUT_ON_06 = 0xF466;\n public static final int STATUS_OUTPUT_ON_07 = 0xF467;\n // Description:\n // Digital output state set to ON\n\n public static final int STATUS_OUTPUT_OFF_00 = 0xF480;\n public static final int STATUS_OUTPUT_OFF_01 = 0xF481;\n public static final int STATUS_OUTPUT_OFF_02 = 0xF482;\n public static final int STATUS_OUTPUT_OFF_03 = 0xF483;\n public static final int STATUS_OUTPUT_OFF_04 = 0xF484;\n public static final int STATUS_OUTPUT_OFF_05 = 0xF485;\n public static final int STATUS_OUTPUT_OFF_06 = 0xF486;\n public static final int STATUS_OUTPUT_OFF_07 = 0xF487;\n // Description:\n // Digital output state set to OFF\n\n public static final int STATUS_ELAPSED_00 = 0xF4A0;\n public static final int STATUS_ELAPSED_01 = 0xF4A1;\n public static final int STATUS_ELAPSED_02 = 0xF4A2;\n public static final int STATUS_ELAPSED_03 = 0xF4A3;\n public static final int STATUS_ELAPSED_04 = 0xF4A4;\n public static final int STATUS_ELAPSED_05 = 0xF4A5;\n public static final int STATUS_ELAPSED_06 = 0xF4A6;\n public static final int STATUS_ELAPSED_07 = 0xF4A7;\n // Description:\n // Elapsed time\n // Notes:\n // - Client should include FIELD_ELAPSED_TIME in the event packet,\n // otherwise this status code would have no meaning.\n\n public static final int STATUS_ELAPSED_LIMIT_00 = 0xF4B0;\n public static final int STATUS_ELAPSED_LIMIT_01 = 0xF4B1;\n public static final int STATUS_ELAPSED_LIMIT_02 = 0xF4B2;\n public static final int STATUS_ELAPSED_LIMIT_03 = 0xF4B3;\n public static final int STATUS_ELAPSED_LIMIT_04 = 0xF4B4;\n public static final int STATUS_ELAPSED_LIMIT_05 = 0xF4B5;\n public static final int STATUS_ELAPSED_LIMIT_06 = 0xF4B6;\n public static final int STATUS_ELAPSED_LIMIT_07 = 0xF4B7;\n // Description:\n // Elapsed timer has exceeded a set limit\n // Notes:\n // - Client should include FIELD_ELAPSED_TIME in the event packet,\n // otherwise this status code would have no meaning.\n\n// ----------------------------------------------------------------------------\n// Analog/etc sensor values (extra data): 0xF600 to 0xF6FF\n\n public static final int STATUS_SENSOR32_0 = 0xF600;\n public static final int STATUS_SENSOR32_1 = 0xF601;\n public static final int STATUS_SENSOR32_2 = 0xF602;\n public static final int STATUS_SENSOR32_3 = 0xF603;\n public static final int STATUS_SENSOR32_4 = 0xF604;\n public static final int STATUS_SENSOR32_5 = 0xF605;\n public static final int STATUS_SENSOR32_6 = 0xF606;\n public static final int STATUS_SENSOR32_7 = 0xF607;\n // Description:\n // 32-bit unsigned sensor value\n // Notes:\n // - Client should include FIELD_SENSOR32 in the event packet,\n // otherwise this status code would have no meaning.\n // - The server must be able to convert this 32-bit value to something\n // meaningful to the user. This can be done using the following formula:\n // Actual_Value = ((double)Sensor32_Value * <Gain>) + <Offset>;\n // Where <Gain> & <Offset> are user configurable values provided at setup.\n // For instance: Assume Sensor32-0 contains a temperature value that can\n // have a range of -40.0C to +125.0C. The client would encode -14.7C\n // by adding 40.0 and multiplying by 10.0. The resulting value would be\n // 253. The server would then be configured to know how to convert this\n // value back into the proper temperature using the above formula by\n // substituting 0.1 for <Gain>, and -40.0 for <Offset>: eg.\n // -14.7 = ((double)253 * 0.1) + (-40.0);\n\n public static final int STATUS_SENSOR32_RANGE_0 = 0xF620;\n public static final int STATUS_SENSOR32_RANGE_1 = 0xF621;\n public static final int STATUS_SENSOR32_RANGE_2 = 0xF622;\n public static final int STATUS_SENSOR32_RANGE_3 = 0xF623;\n public static final int STATUS_SENSOR32_RANGE_4 = 0xF624;\n public static final int STATUS_SENSOR32_RANGE_5 = 0xF625;\n public static final int STATUS_SENSOR32_RANGE_6 = 0xF626;\n public static final int STATUS_SENSOR32_RANGE_7 = 0xF627;\n // Description:\n // 32-bit unsigned sensor value out-of-range violation\n // Notes:\n // - Client should include FIELD_SENSOR32 in the event packet,\n // otherwise this status code would have no meaning.\n\n// ----------------------------------------------------------------------------\n// Temperature sensor values (extra data): 0xF700 to 0xF7FF\n\n public static final int STATUS_TEMPERATURE_0 = 0xF710;\n public static final int STATUS_TEMPERATURE_1 = 0xF711;\n public static final int STATUS_TEMPERATURE_2 = 0xF712;\n public static final int STATUS_TEMPERATURE_3 = 0xF713;\n public static final int STATUS_TEMPERATURE_4 = 0xF714;\n public static final int STATUS_TEMPERATURE_5 = 0xF715;\n public static final int STATUS_TEMPERATURE_6 = 0xF716;\n public static final int STATUS_TEMPERATURE_7 = 0xF717;\n // Description:\n // Temperature value\n // Notes:\n // - Client should include at least the field FIELD_TEMP_AVER in the \n // event packet, and may also wish to include FIELD_TEMP_LOW and\n // FIELD_TEMP_HIGH.\n\n public static final int STATUS_TEMPERATURE_RANGE_0 = 0xF730;\n public static final int STATUS_TEMPERATURE_RANGE_1 = 0xF731;\n public static final int STATUS_TEMPERATURE_RANGE_2 = 0xF732;\n public static final int STATUS_TEMPERATURE_RANGE_3 = 0xF733;\n public static final int STATUS_TEMPERATURE_RANGE_4 = 0xF734;\n public static final int STATUS_TEMPERATURE_RANGE_5 = 0xF735;\n public static final int STATUS_TEMPERATURE_RANGE_6 = 0xF736;\n public static final int STATUS_TEMPERATURE_RANGE_7 = 0xF737;\n // Description:\n // Temperature value out-of-range [low/high/average]\n // Notes:\n // - Client should include at least one of the fields FIELD_TEMP_AVER,\n // FIELD_TEMP_LOW, or FIELD_TEMP_HIGH.\n\n public static final int STATUS_TEMPERATURE = 0xF7F1;\n // Description:\n // All temperature averages [aver/aver/aver/...]\n\n// ----------------------------------------------------------------------------\n// Miscellaneous\n\n public static final int STATUS_LOGIN = 0xF811;\n // Description:\n // Generic 'login'\n\n public static final int STATUS_LOGOUT = 0xF812;\n // Description:\n // Generic 'logout'\n\n public static final int STATUS_CONNECT = 0xF821;\n // Description:\n // Connect/Hook/On\n\n public static final int STATUS_DISCONNECT = 0xF822;\n // Description:\n // Disconnect/Drop/Off\n\n public static final int STATUS_ACK = 0xF831;\n // Description:\n // Acknowledge\n\n public static final int STATUS_NAK = 0xF832;\n // Description:\n // Negative Acknowledge\n\n// ----------------------------------------------------------------------------\n// Internal device status\n\n public static final int STATUS_LOW_BATTERY = 0xFD10;\n // Description:\n // Low battery indicator\n\n public static final int STATUS_POWER_FAILURE = 0xFD13;\n // Description:\n // Power failure indicator\n\n// ----------------------------------------------------------------------------\n \n}",
"public interface LibraryConstant {\n\n public interface LanguageConstant {\n\n public static String JAVA=\"JAVA\";\n public static String C=\"C\";\n public static String CPP=\"C++\";\n }\n\n public interface StyleConstant {\n\n //pre-defined Styles\n\n public static final String NORMAL=\"NORMAL\";\n public static final String BOLD=\"BOLD\";\n public static final String ITALIC=\"ITALIC\";\n public static final String UNDERLINE=\"UNDERLINE\";\n public static final String SUPERSCRIPT=\"SUPERSCRIPT\";\n public static final String SUBSCRIPT=\"SUBSCRIPT\";\n\n\n }\n}",
"public interface Bundle {\n\n /**\n * @msg.message msg=\"XML definition type {0} is unkown. Validation of request cannot be done.\"\n */\n static final String XML_DEFINITION_TYPE_UNKOWN = \"xml_definition_type_unkown\";\n\n /**\n * @msg.message msg=\"Unable to create parser for validating. Reason: {0}\"\n */\n static final String PARSER_CREATION_FAILED_FOR_VALIDATION = \"parser_creation_failed_for_validation\";\n\n /**\n * @msg.message msg=\"Invalid input received.\"\n */\n static final String INVALID_REQUEST = \"invalid_request\";\n\n /**\n * @msg.message msg=\"Unable to validate. Reason: {0}\"\n */\n static final String UNABLE_TO_VALIDATE = \"unable_to_validate\";\n}",
"public interface TAGS\n{\n String TAG_LOGGED = \"LogStatus\",\n TAG_USER_ID_TASK = \"UserID\",\n TAG_ID=\"ID\",\n TAG_LON=\"Lon\",\n TAG_LAT=\"Lat\",\n TAG_NAME = \"Name\",\n TAG_PWORD = \"Password\",\n TAG_START = \"Start\",\n TAG_STOP = \"Stop\",\n TAG_EXPLANATION = \"Explanation\",\n TAG_DESCRIPTION = \"Description\",\n TAG_PLACE = \"Place\",\n REQUESTING_LOCATION_UPDATES_KEY = \"requesting-location-updates\",\n LOCATION_KEY =\"location-key\",\n LAST_UPDATED_TIME_STRING_KEY = \"last-updated-time-string-key\";\n int MY_PERMISSIONS_REQUEST_LOCATION = 99;\n int MY_PERMISSIONS_REQUEST_VIBRATION = 100;\n\n}",
"public interface UnicodeConstants {\n\n /** Refers to unnormalized Unicode: */\n static final byte NORM_UNNORMALIZED = 0;\n /** Refers to Normalization Form C: */\n static final byte NORM_NFC = 1;\n /** Refers to Normalization Form KC: */\n static final byte NORM_NFKC = 2;\n /** Refers to Normalization Form D: */\n static final byte NORM_NFD = 3;\n /** Refers to Normalization Form KD: */\n static final byte NORM_NFKD = 4;\n /** Refers to Normalization Form THDL, which is NFD except for\n <code>U+0F77</code> and <code>U+0F79</code>, which are\n normalized according to NFKD. This is the One True\n Normalization Form, as it leaves no precomposed codepoints and\n does not normalize <code>U+0F0C</code>. */\n static final byte NORM_NFTHDL = 5;\n\n\n /** for those times when you need a char to represent a\n non-existent codepoint */\n static final char EW_ABSENT = '\\u0000';\n\n\n //\n // the thirty consonants, in alphabetical order:\n //\n\n /** first letter of the alphabet: */\n static final char EWC_ka = '\\u0F40';\n\n static final char EWC_kha = '\\u0F41';\n static final char EWC_ga = '\\u0F42';\n static final char EWC_nga = '\\u0F44';\n static final char EWC_ca = '\\u0F45';\n static final char EWC_cha = '\\u0F46';\n static final char EWC_ja = '\\u0F47';\n static final char EWC_nya = '\\u0F49';\n static final char EWC_ta = '\\u0F4F';\n static final char EWC_tha = '\\u0F50';\n static final char EWC_da = '\\u0F51';\n static final char EWC_na = '\\u0F53';\n static final char EWC_pa = '\\u0F54';\n static final char EWC_pha = '\\u0F55';\n static final char EWC_ba = '\\u0F56';\n static final char EWC_ma = '\\u0F58';\n static final char EWC_tsa = '\\u0F59';\n static final char EWC_tsha = '\\u0F5A';\n static final char EWC_dza = '\\u0F5B';\n static final char EWC_wa = '\\u0F5D';\n static final char EWC_zha = '\\u0F5E';\n static final char EWC_za = '\\u0F5F';\n /** Note the irregular name. The Extended Wylie representation is\n <code>'a</code>. */\n static final char EWC_achung = '\\u0F60';\n static final char EWC_ya = '\\u0F61';\n static final char EWC_ra = '\\u0F62';\n static final char EWC_la = '\\u0F63';\n static final char EWC_sha = '\\u0F64';\n static final char EWC_sa = '\\u0F66';\n static final char EWC_ha = '\\u0F67';\n /** achen, the 30th consonant (and, some say, the fifth vowel) DLC NOW FIXME: rename to EWC_achen */\n static final char EWC_a = '\\u0F68';\n\n\n /** In the word for father, \"pA lags\", there is an a-chung (i.e.,\n <code>\\u0F71</code>). This is the constant for that little\n guy. */\n static final char EW_achung_vowel = '\\u0F71';\n\n\n /* Four of the five vowels, some say, or, others say, \"the four\n vowels\": */\n /** \"gi gu\", the 'i' sound in the English word keep: */\n static final char EWV_i = '\\u0F72';\n /** \"zhabs kyu\", the 'u' sound in the English word tune: */\n static final char EWV_u = '\\u0F74';\n /** \"'greng bu\" (also known as \"'greng po\", and pronounced <i>dang-bo</i>), the 'a' sound in the English word gate: */\n static final char EWV_e = '\\u0F7A';\n /** \"na ro\", the 'o' sound in the English word bone: */\n static final char EWV_o = '\\u0F7C';\n\n\n /** subscribed form of EWC_wa, also known as wa-btags */\n static final char EWSUB_wa_zur = '\\u0FAD';\n /** subscribed form of EWC_ya */\n static final char EWSUB_ya_btags = '\\u0FB1';\n /** subscribed form of EWC_ra */\n static final char EWSUB_ra_btags = '\\u0FB2';\n /** subscribed form of EWC_la */\n static final char EWSUB_la_btags = '\\u0FB3';\n}",
"public String toString() {\n return super.toString() + \" (\" + constants.size() + \" constants)\";\n }",
"public interface WebConstants {\n\n String REQUEST_ATTR_ORIGIN_IP = \"ORIGIN_IP\";\n\n String USER_LOGIN_STATUS = \"USER_LOGIN_STATUS\";\n}",
"private interface Tags {\n String SESSION_ID = \"id\";\n String SESSION_ROOM = \"room\";\n String SESSION_TRACK = \"type\";\n String SESSION_TITLE = \"name\";\n String SESSION_ABSTRACT = \"abstract\";\n String SESSION_SPEAKERS = \"speaker\";\n String SESSION_IS_BREAK = \"isBreak\";\n String SESSION_URL = \"link\";\n String SESSION_MODERATOR_URL = \"question\";\n String SESSION_YOUTUBE_URL = \"video\";\n String SESSION_PDF_URL = \"pdf\";\n }",
"public interface TAG_JAVA_CODEBASE\n{\n\n /**\n * Class downloading is supported for stubs, ties, values, and \n * value helpers. The specification allows transmission of codebase \n * information on the wire for stubs and ties, and enables usage of \n * pre-existing ClassLoaders when relevant. \n * <p>\n * For values and value helpers, the codebase is transmitted after the \n * value tag. For stubs and ties, the codebase is transmitted as \n * the TaggedComponent <code>TAG_JAVA_CODEBASE</code> in the IOR \n * profile, where the <code>component_data</code> is a CDR encapsulation \n * of the codebase written as an IDL string. The codebase is a \n * space-separated list of one or more URLs.\n */\n public static final int value = (int)(25L);\n}",
"public interface Constants {\n String NA = \"NA\";\n}",
"public interface Constants {\n String LIEPIN_HOST =\"https://h.liepin.com\";\n String SEARCH_URL =\"https://h.liepin.com/cvsearch/soResume/\";\n //String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showresumeworkexps/\";\n String WORK_EXPERIENCE_URL =\"https://h.liepin.com/resume/showresumedetail/showworkexps/\";\n String ANCHOR_TAG =\"<div class=\\\"resume-work\\\" id=\\\"workexp_anchor\\\">\";\n String GET_METHOD =\"GET\";\n String POST_METHOD =\"POST\";\n}"
]
| [
"0.6137257",
"0.61180687",
"0.6079186",
"0.60748225",
"0.5987046",
"0.58795017",
"0.5813557",
"0.57690614",
"0.5725371",
"0.56660706",
"0.5607733",
"0.5591482",
"0.557045",
"0.5548598",
"0.55403733",
"0.54948354",
"0.54806954",
"0.54567486",
"0.54560107",
"0.5455976",
"0.545264",
"0.5443191",
"0.5440968",
"0.54393095",
"0.5415335",
"0.5403933",
"0.53894705",
"0.5389353",
"0.5374685",
"0.53663695",
"0.5360032",
"0.53458565",
"0.5333002",
"0.53204304",
"0.53151864",
"0.5291914",
"0.52818835",
"0.52664006",
"0.52593654",
"0.5254287",
"0.5253262",
"0.52445394",
"0.523539",
"0.52327543",
"0.5231767",
"0.52044404",
"0.519812",
"0.51977795",
"0.5196818",
"0.5178439",
"0.5177916",
"0.517654",
"0.5173635",
"0.51671356",
"0.5162409",
"0.51584387",
"0.51513726",
"0.5145024",
"0.51419276",
"0.51308113",
"0.5120328",
"0.51184464",
"0.5115119",
"0.51145875",
"0.5113963",
"0.50989515",
"0.5098011",
"0.5097878",
"0.5097194",
"0.5090358",
"0.50837994",
"0.5077469",
"0.50732625",
"0.5069933",
"0.50571823",
"0.50537187",
"0.5049654",
"0.50493413",
"0.5031651",
"0.5030693",
"0.5017285",
"0.5010431",
"0.50068116",
"0.5004828",
"0.5002302",
"0.49939048",
"0.4991955",
"0.4990014",
"0.49847195",
"0.49805024",
"0.4973979",
"0.4971247",
"0.4969719",
"0.49605376",
"0.49599314",
"0.4958132",
"0.49577603",
"0.49571654",
"0.49554858",
"0.49541107"
]
| 0.62190795 | 0 |
adding uniforms to shaderProgram | public void init () {
shaderProgram.addUniform(TEXTURE_UNIFORM_KEY);
shaderProgram.addUniform(SCALING_UNIFORM_KEY);
shaderProgram.addUniform(TRANSLATION_UNIFORM_KEY);
shaderProgram.addUniform(POSITION_UNIFORM_KEY);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void glAttachShader(int program, int shader);",
"protected void updateUniforms()\n\t{\n\t\tsuper.updateUniforms();\n\t\tfor (int i = 0; i < getTexCoordCount(); i++)\n\t\t{\n\t\t\tint loc = shader.getUniformLocation(U_TEXTURE + i);\n\t\t\tif (loc != -1)\n\t\t\t\tshader.setUniformi(loc, i);\n\t\t}\n\t}",
"int glGetUniformLocation(int program, String name);",
"protected void applyTextureUniforms () {\n final boolean wasPendantic = ShaderProgram.pedantic;\n ShaderProgram.pedantic = false; // Allow shaders that don't use all the textures.\n for (int i = 0; i < textureUnitUniforms.length; i++)\n getShader().setUniformi(textureUnitUniforms[i], i);\n ShaderProgram.pedantic = wasPendantic;\n }",
"@Override\n public void initShaderProgram(util.ShaderProgram shaderProgram, Map<String, String> shaderVarsToVertexAttribs) {\n Objects.requireNonNull(glContext);\n GL3 gl = glContext.getGL().getGL3();\n\n shaderLocations = shaderProgram.getAllShaderVariables(gl);\n this.shaderVarsToVertexAttribs = new HashMap<String, String>(shaderVarsToVertexAttribs);\n shaderLocationsSet = true;\n }",
"public void addFragmentShader(String fileName);",
"@Override\n public int glGetUniformLocation(final int program, final String name) {\n return GL20.glGetUniformLocation(program, name + \"\\0\");\n }",
"void glShaderSource(int shader, String string);",
"protected abstract void initializeUniforms();",
"void glUniform1i(int location, int x);",
"int glGetAttribLocation(int program, String name);",
"private static int createProgram(int[] shaderIds){\n int shaderProgramId = glCreateProgram();\n\n for(int shader: shaderIds){\n if(shader != -1){\n glAttachShader(shaderProgramId, shader);\n }\n }\n glLinkProgram(shaderProgramId);\n\n int[] linkResult = {0};\n glGetProgramiv(shaderProgramId, GL_LINK_STATUS, linkResult);\n if(linkResult[0] == GL_FALSE){\n System.err.println(\"Failed to link shader program.\");\n String log = glGetProgramInfoLog(shaderProgramId);\n System.err.println(\"Log: \");\n System.err.println(log);\n }\n\n glValidateProgram(shaderProgramId);\n\n int[] validationResult = {0};\n glGetProgramiv(shaderProgramId, GL_VALIDATE_STATUS, validationResult);\n if(validationResult[0] == GL_FALSE){\n System.err.println(\"Failed to validate shader program.\");\n String log = glGetProgramInfoLog(shaderProgramId);\n System.err.println(\"Log: \");\n System.err.println(log);\n }\n\n return shaderProgramId;\n }",
"ShaderProgram(Context context, int vertexShaderResourceId, int fragmentShaderResourceId, ShaderType type) {\n\t\t// Compile the shaders and link the program.\n\t\tmProgram = ShaderHelper.getInstance().buildProgram(TextResourceReader.readTextFileFromResource(context, vertexShaderResourceId),\n\t\t\tTextResourceReader.readTextFileFromResource(context, fragmentShaderResourceId));\n\t}",
"protected void begin()\t{\n\t\t glUseProgram(programID);\n\t\t shadUniLoc.put(UNIFORM_TRANS, \n\t\t\t\t glGetUniformLocation(programID, UNIFORM_TRANS));\n\t}",
"public void addUniform(String uniformName, String parameterName)\r\n {\r\n Objects.requireNonNull(\r\n uniformName, \"The uniformName may not be null\");\r\n Objects.requireNonNull(\r\n parameterName, \"The parameterName may not be null\");\r\n uniforms.put(uniformName, parameterName);\r\n }",
"public void init() {\n createVertexShader(vertexShader(true));\n createFragmentShader(fragShader.SHADER_STRING);\n\n /* Binds the code and checks that everything has been done correctly. */\n link();\n\n createUniform(\"worldMatrix\");\n createUniform(\"modelMatrix\");\n createUniform(\"normalMatrix\");\n\n /* Initialization of the shadow map matrix uniform. */\n createUniform(\"directionalShadowMatrix\");\n\n /* Create uniform for material. */\n createMaterialUniform(\"material\");\n createUniform(\"texture_sampler\");\n /* Initialization of the light's uniform. */\n createUniform(\"camera_pos\");\n createUniform(\"specularPower\");\n createUniform(\"ambientLight\");\n createPointLightListUniform(\"pointLights\", LightModel.MAX_POINTLIGHT);\n createSpotLightUniformList(\"spotLights\", LightModel.MAX_SPOTLIGHT);\n createDirectionalLightUniform(\"directionalLight\");\n createUniform(\"shadowMapSampler\");\n createUniform(\"bias\");\n }",
"@Override\n\tprotected void init() {\n\t\tShaderProgram shaderProgram = new ShaderProgram(\"aufgabe2\");\n\t\tglUseProgram(shaderProgram.getId());\n\t\tfloat [] vertex_data = {\n\t\t\t\t-0.5f,-0.5f,\n\t\t\t\t0.5f,-0.5f,\n\t\t\t\t0.0f,0.5f,\n\t\t};\n\t\tfloat[] frag_data = { 1f, 0f, 0f, 0f, 1f, 0f, 0f, 0f, 1f };\n\t\t// Koordinaten, VAO, VBO, ... hier anlegen und im Grafikspeicher ablegen\n\t\tint vaoId = glGenVertexArrays();\n\t\tglBindVertexArray(vaoId);\n\t\tint vboId = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId);\n\t\tglBufferData(GL_ARRAY_BUFFER,vertex_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(0, 2, GL_FLOAT,false, 0, 0);\n\t\tglEnableVertexAttribArray(0);\n\t\tint vboId2 = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboId2);\n\t\tglBufferData(GL_ARRAY_BUFFER,frag_data, GL_STATIC_DRAW);\n\t\tglVertexAttribPointer(1, 3, GL_FLOAT, false, 0, 0);\n\t\tglEnableVertexAttribArray(1);\n\t}",
"void glUseProgram(int program);",
"@Override\n public int glGetAttribLocation(final int program, final String name) {\n return GL20.glGetAttribLocation(program, name + \"\\0\");\n }",
"@Override\n public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n glClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n \n String vertexShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_vertex_shader);\n String fragmentShaderSource = TextResourceReader.readTextFileFromResource(context, R.raw.simple_fragment_shader);\n \n int vertexShaderId = ShaderHelper.compileVertexShader(vertexShaderSource);\n int fragmentShaderId = ShaderHelper.compileFragmentShader(fragmentShaderSource);\n \n program = ShaderHelper.linkProgram(vertexShaderId, fragmentShaderId);\n \n if(LoggerConfig.ON){\n \tShaderHelper.validateProgram(program);\n }\n glUseProgram(program);\n uColorLocation = glGetUniformLocation(program, U_COLOR);\n aPositionLocation = glGetAttribLocation(program, A_POSITION);\n \n vertexData.position(0);\n glVertexAttribPointer(aPositionLocation, POSITION_COMPONENT_COUNT, GL_FLOAT, false, 0, vertexData);\n glEnableVertexAttribArray(aPositionLocation); \n }",
"public void createMaterialUniform(String uniformName) {\n createUniform(uniformName + \".color\");\n createUniform(uniformName + \".hasTexture\");\n createUniform(uniformName + \".reflectance\");\n }",
"public ShaderProgram loadShader(String vsProcess, String fsProcess);",
"protected int getUniformLocation(String name){\r\n\t\treturn GL20.glGetUniformLocation(program_ID, name);\r\n\t\t\r\n\t}",
"public void addVertexShader(String fileName);",
"private void initialize() {\n ShaderProgram.pedantic = false;\r\n\r\n shader = CustomShaderLoader.createShader();\r\n if (!shader.isCompiled()) {\r\n System.err.println(shader.getLog());\r\n System.exit(0);\r\n }\r\n if (shader.getLog().length() != 0)\r\n System.out.println(shader.getLog());\r\n }",
"private static void setupProperties(ShaderProgram shader, Map<String, Object> properties, SpriteComponent spriteComponent){\n /*for (Map.Entry<String, Object> shaderProperty : shaderComponent.shaderProperties.entrySet()) {\n shader.setUniformf(shaderProperty.getKey(), shaderProperty.getValue());\n }*/\n shader.setUniformf(\"u_viewportInverse\", new Vector2(1f / spriteComponent.sprite.getTexture().getWidth(),\n 1f / spriteComponent.sprite.getTexture().getHeight()));\n shader.setUniformf(\"u_offset\", 1f);\n shader.setUniformf(\"u_step\", Math.min(1f, spriteComponent.sprite.getTexture().getWidth() / 70f));\n if(properties.containsKey(ShaderComponent.COLOR)) {\n shader.setUniformf(\"u_color\", ((Color)properties.get(ShaderComponent.COLOR)));\n //shader.setUniformf(\"u_color\", new Vector3(1f, 0, 0));\n } else {\n Logger.warning(\"Shader's color is not defined!\");\n shader.setUniformf(\"u_color\", new Vector3(1f, 1f, 1f));\n }\n }",
"@Override\r\n\tpublic void add(ShaderVar var) {\n\t\t\r\n\t}",
"protected static void setLightUniform(@NotNull Shape shape) {\n\t\tshape.shaderProgram.setUniform2f(\"resolution\", Display.getSizeF());\n\t\tshape.shaderProgram.setUniform3f(\"ambient\", Lights.ambient);\n\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tif (i >= Lights.lights.size()) break;\n\n\t\t\tLight l = Lights.lights.get(i);\n\t\t\tshape.shaderProgram.setUniform2f(\"lights[\"+i+\"].position\", l.getPosition());\n\t\t\tshape.shaderProgram.setUniform3f(\"lights[\"+i+\"].color\", l.getColor());\n\t\t\tshape.shaderProgram.setUniform1f(\"lights[\"+i+\"].intensity\", l.getIntensity());\n\t\t}\n\t}",
"void glLinkProgram(int program);",
"public ShaderProgram getShader () {\n return shader;\n }",
"@Test\n public void testConstMutations() throws Exception {\n final String program = \"#version 310 es\\n\"\n + \"precision highp float;\\n\"\n + \"uniform vec2 injectionSwitch;\\n\"\n + \"const int a = 1;\\n\"\n + \"const int b = 2;\\n\"\n + \"const float c = 3.0;\\n\"\n + \"const float d = 4.0;\\n\"\n + \"void main() {\"\n + \" const int x = 2;\\n\"\n + \" const int y = 3;\\n\"\n + \" const float f = 4.0;\\n\"\n + \" const float g = 5.0;\\n\"\n + \"}\";\n final ShaderJobFileOperations fileOperations = new ShaderJobFileOperations();\n for (int i = 0; i < 20; i++) {\n final TranslationUnit tu = ParseHelper.parse(program);\n new IdentityMutationFinder(tu,\n new RandomWrapper(i), GenerationParams.normal(ShaderKind.FRAGMENT, false, true))\n .findMutations()\n .forEach(Expr2ExprMutation::apply);\n final File shaderJobFile = temporaryFolder.newFile(\"shader\" + i + \".json\");\n final ShaderJob shaderJob = new GlslShaderJob(Optional.empty(), new PipelineInfo(),\n tu);\n fileOperations.writeShaderJobFile(shaderJob, shaderJobFile);\n // Check that there is no invalidity due to mis-use of constants (in which case an exception\n // will be thrown, but we assert the result of 'areShadersValid' is true just to be sure.\n assertTrue(fileOperations.areShadersValid(shaderJobFile, true));\n }\n }",
"void glUniform4fv(int location, int count, float[] v, int offset);",
"private static int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n\n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n\n return shader;\n }",
"public abstract void setUniforms(GameObject gameObject);",
"void glTexParameteri(int target, int pname, int param);",
"@Override\n\tprotected void getAllUniformLocations() {\n\t\tlocation_transformationMatrix = super.getUniformLocation(\"transformationMatrix\");\n\t\tlocation_projectionMatrix = super.getUniformLocation(\"projectionMatrix\");\n\t\tlocation_viewMatrix = super.getUniformLocation(\"viewMatrix\");\n\t\tlocation_outputR = super.getUniformLocation(\"outputR\");\n\t\tlocation_outputG = super.getUniformLocation(\"outputG\");\n\t\tlocation_outputB = super.getUniformLocation(\"outputB\");\n\t\t\n\t}",
"public static int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n \n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n \n return shader;\n }",
"public void setUniform(String uniformName, Material material) {\n setUniform(uniformName + \".color\", material.getColor());\n setUniform(uniformName + \".hasTexture\", material.isTextured() ? 1 : 0);\n setUniform(uniformName + \".reflectance\", material.getReflectance());\n }",
"@Override\n\tpublic void glSetup(Context cx) {\n\t\tmShader = ShaderHelper.glGenerateShader(cx, \"vertex_shader\",\n\t\t\t\t\"scene_enhance_fragment_shader\", \"aPosition\", \"uMVPMatrix\",\n\t\t\t\t\"uTexture\", \"uTextureCurve\");\n\n\t}",
"public void drawTriangles(float[] mvpMatrix)\n\t{\n // Add program to OpenGL ES environment\n //GLES20.glUseProgram(mTriProgram);\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Use Tri Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, triVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,color[0],color[1],color[2],color[3]);\n }\n\n if (StigChopper.textures)\n {\n mTextureUniformHandle = GLES20.glGetUniformLocation(chopperProgram, \"u_texture\");\n if (mTextureUniformHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture uniform\");\n }\n\n mTextureCoordinateHandle = GLES20.glGetAttribLocation(chopperProgram, \"a_texCoordinate\");\n if (mTextureCoordinateHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture coordinates.\");\n }\n GLES20.glEnableVertexAttribArray(mTextureCoordinateHandle);\n\n // Prepare the uv coordinate data.\n GLES20.glVertexAttribPointer(mTextureCoordinateHandle, 2,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, 8, triUvBuffer);\n\n // Set the active texture unit to texture unit 0.\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\n // Bind the texture to this unit.\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, -1);\n\n\t\t\t// Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n\t\t\tGLES20.glUniform1i(mTextureUniformHandle, 0);\n }\n\n GLES20.glDrawElements(GLES20.GL_TRIANGLES, triDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, triDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper:Triangle Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n if (StigChopper.textures)\n {\n // Disable texture array\n GLES20.glDisableVertexAttribArray(mTextureCoordinateHandle);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}",
"public ShaderProgram requireShader () {\n if (shader == null)\n throw new IllegalStateException(\"The ShaderProgram has not been assigned.\");\n return shader;\n }",
"public void d() {\n super.d();\n int glGetUniformLocation = GLES20.glGetUniformLocation(this.x, \"target\");\n GLES20.glActiveTexture(33984);\n GLES20.glBindTexture(3553, this.f1221a);\n GLES20.glUniform1i(glGetUniformLocation, 0);\n int glGetUniformLocation2 = GLES20.glGetUniformLocation(this.x, \"source\");\n GLES20.glActiveTexture(33985);\n GLES20.glBindTexture(3553, this.f1222b);\n GLES20.glUniform1i(glGetUniformLocation2, 1);\n int glGetUniformLocation3 = GLES20.glGetUniformLocation(this.x, \"field\");\n GLES20.glActiveTexture(33986);\n GLES20.glBindTexture(3553, this.c);\n GLES20.glUniform1i(glGetUniformLocation3, 2);\n int glGetUniformLocation4 = GLES20.glGetUniformLocation(this.x, \"source_size\");\n float[] fArr = this.d;\n GLES20.glUniform2f(glGetUniformLocation4, fArr[0], fArr[1]);\n int glGetUniformLocation5 = GLES20.glGetUniformLocation(this.x, \"target_size\");\n float[] fArr2 = this.e;\n GLES20.glUniform2f(glGetUniformLocation5, fArr2[0], fArr2[1]);\n int glGetUniformLocation6 = GLES20.glGetUniformLocation(this.x, \"field_size\");\n float[] fArr3 = this.f;\n GLES20.glUniform2f(glGetUniformLocation6, fArr3[0], fArr3[1]);\n int glGetUniformLocation7 = GLES20.glGetUniformLocation(this.x, \"full_size\");\n float[] fArr4 = this.g;\n GLES20.glUniform2f(glGetUniformLocation7, fArr4[0], fArr4[1]);\n GLES20.glUniform1f(GLES20.glGetUniformLocation(this.x, \"jump\"), this.h);\n GLES20.glUniformMatrix4fv(GLES20.glGetUniformLocation(this.x, \"region\"), 1, false, this.i, 0);\n }",
"@Override\r\n\tpublic vec3 plus(ShaderVar var) {\n\t\treturn null;\r\n\t}",
"int glCreateProgram();",
"static public ShaderProgram createDefaultShader() {\n String vertexShader = \"attribute vec4 \" + ShaderProgram.POSITION_ATTRIBUTE + \";\\n\" //\n + \"attribute vec2 \" + ShaderProgram.TEXCOORD_ATTRIBUTE + \"0;\\n\" //\n + \"uniform mat4 u_projTrans;\\n\" //\n + \"varying vec2 v_texCoords;\\n\" //\n + \"\\n\" //\n + \"void main()\\n\" //\n + \"{\\n\" //\n + \" v_texCoords = \" + ShaderProgram.TEXCOORD_ATTRIBUTE + \"0;\\n\" //\n + \" gl_Position = u_projTrans * \" + ShaderProgram.POSITION_ATTRIBUTE + \";\\n\" //\n + \"}\\n\";\n String fragmentShader = \"#ifdef GL_ES\\n\" //\n + \"#define LOWP lowp\\n\" //\n + \"precision mediump float;\\n\" //\n + \"#else\\n\" //\n + \"#define LOWP \\n\" //\n + \"#endif\\n\" //\n + \"varying vec2 v_texCoords;\\n\" //\n + \"uniform sampler2D u_texture;\\n\" //\n + \"void main()\\n\"//\n + \"{\\n\" //\n + \" gl_FragColor = texture2D(u_texture, v_texCoords);\\n\" //\n + \"}\";\n\n ShaderProgram shader = new ShaderProgram(vertexShader, fragmentShader);\n if (shader.isCompiled() == false)\n throw new IllegalArgumentException(\"couldn't compile shader: \" + shader.getLog());\n return shader;\n }",
"public int getUniformId(GL2 gl2, String name) {\r\n int id = gl2.glGetUniformLocation(programID, name ); \r\n if (id < 0) {\r\n System.err.println(\"Unable to find : \" + name);\r\n //System.exit(0);\r\n }\r\n return id;\r\n }",
"public void setUniformf(GL2 gl2, String name, float ...val){\r\n // Sanity\r\n if (val.length > 4 || val.length < 1) {\r\n System.out.println(\"Only support vals between 1 and 4\");\r\n System.exit(0);\r\n }\r\n \r\n int id = getUniformId(gl2, name);\r\n switch (val.length) {\r\n case 1: { gl2.glUniform1f(id, val[0]); break; }\r\n case 2: { gl2.glUniform2f(id, val[0], val[1]); break; }\r\n case 3: { gl2.glUniform3f(id, val[0], val[1], val[2]); break; }\r\n case 4: { gl2.glUniform4f(id, val[0], val[1], val[2], val[3]); break; }\r\n }\r\n }",
"private static int createGlProgram(String vertexCode, String fragmentCode) {\n int vertex = loadShader(GLES20.GL_VERTEX_SHADER, vertexCode);\n if (vertex == 0) {\n return 0;\n }\n int fragment = loadShader(GLES20.GL_FRAGMENT_SHADER, fragmentCode);\n if (fragment == 0) {\n return 0;\n }\n int program = GLES20.glCreateProgram();\n if (program != 0) {\n GLES20.glAttachShader(program, vertex);\n GLES20.glAttachShader(program, fragment);\n GLES20.glLinkProgram(program);\n int[] linkStatus = new int[1];\n GLES20.glGetProgramiv(program, GLES20.GL_LINK_STATUS, linkStatus, 0);\n if (linkStatus[0] != GLES20.GL_TRUE) {\n LogUtil.error(TAG, \"Could not link program \" + GLES20.glGetProgramInfoLog(program));\n GLES20.glDeleteProgram(program);\n program = 0;\n }\n }\n return program;\n }",
"@Override\n\t\t\tpublic ShaderProgram get() {\n\t\t\t\tvar source = sources.values().stream().findFirst().orElseThrow();\n\t\t\t\tvar newShader = new ShaderProgram().attachSources(source);\n\t\t\t\tnewShader.upload();\n\t\t\t\tshaders.put(name, newShader);\n\t\t\t\treturn newShader;\n\t\t\t}",
"private boolean compileShader(GL gl, int shader, String source)\r\n {\r\n boolean result = gl.compileShader(shader, source);\r\n \r\n ///#if defined(DEBUG)\r\n // _nativeGL->printShaderInfoLog(shader);\r\n ///#endif\r\n \r\n if (result)\r\n {\r\n gl.attachShader(_programID, shader);\r\n }\r\n else\r\n {\r\n ILogger.instance().logError(\"GPUProgram: Problem encountered while compiling shader.\");\r\n }\r\n \r\n return result;\r\n }",
"public int createProgram(GL2 gl2) {\r\n programID = gl2.glCreateProgram();\r\n\r\n for (int i = 0; i < vertexShaderList.size(); i++) {\r\n gl2.glAttachShader(programID, vertexShaderList.elementAt(i));\r\n }\r\n for (int i=0; i < geometryShaderList.size(); i++) {\r\n gl2.glAttachShader(programID, geometryShaderList.elementAt(i));\r\n }\r\n for (int i = 0; i < fragmentShaderList.size(); i++) {\r\n gl2.glAttachShader(programID, fragmentShaderList.elementAt(i));\r\n }\r\n //gl2.glLinkProgram(programID); \r\n /*\r\n if (! linkStatus(gl2, programID)) {\r\n System.exit(0); \r\n }\r\n */\r\n return programID;\r\n }",
"@Test\n public void testMutationsWithCommaOperator() throws Exception {\n final String program = \"#version 310 es\\n\"\n + \"precision highp float;\\n\"\n + \"void main() {\"\n + \" int a, b, c, d, e;\\n\"\n + \" a, b, c, d, e, a, b, c, d, e;\\n\"\n + \"}\";\n final ShaderJobFileOperations fileOperations = new ShaderJobFileOperations();\n for (int i = 0; i < 20; i++) {\n final TranslationUnit tu = ParseHelper.parse(program);\n new IdentityMutationFinder(tu,\n new RandomWrapper(i), GenerationParams.normal(ShaderKind.FRAGMENT, false, false))\n .findMutations()\n .forEach(Expr2ExprMutation::apply);\n final File shaderJobFile = temporaryFolder.newFile(\"shader\" + i + \".json\");\n final ShaderJob shaderJob = new GlslShaderJob(Optional.empty(), new PipelineInfo(),\n tu);\n fileOperations.writeShaderJobFile(shaderJob, shaderJobFile);\n // Check that there is no invalidity due to mis-use of constants (in which case an exception\n // will be thrown, but we assert the result of 'areShadersValid' is true just to be sure.\n assertTrue(fileOperations.areShadersValid(shaderJobFile, true));\n }\n }",
"public static int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n\n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n\n return shader;\n }",
"public void changeFragmentShader(String fragmentShader) {\n mTextureRender.changeFragmentShader(fragmentShader);\n }",
"public static Shader applyShader( Shader shader, Color baseColor,\n int nsample ) {\n return new AppliedLutShader( shader, baseColor, nsample );\n }",
"private int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n GLUtils.checkGLError(\"glCreateShader\");\n \n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLUtils.checkGLError(\"glShaderSource\");\n GLES20.glCompileShader(shader);\n GLUtils.checkGLError(\"glCompileShader\");\n\n return shader;\n }",
"public void addShader(AbstractShader shader) {\n\t\tif (! shaderStack.contains(shader)) {\n\t\t\tshaderStack.add(shader);\n\t\t}\n\t}",
"BasicShader( String name ) {\n this( name, null );\n }",
"BasicShader( String name, Color baseColor ) {\n name_ = name;\n baseColor_ = baseColor;\n }",
"public void sendUniformMat4f(Matrix4f mat)\n {\n setMatFloatBuffer(mat.getMatrix());\n GL4 gl = (GL4) GLContext.getCurrentGL();\n gl.glUniformMatrix4fv(uniformID,1,true,matBuffer);\n }",
"public void onSurfaceCreated(GL10 glUnused, EGLConfig config) {\n\t\tGLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\t\tmVertexShader = RawResourceReader.readTextFileFromRawResource(mContext,\n\t\t\t\tde.moliso.shelxle.R.raw.atoms_vetrex_shader);\n\t\tmFragmentShader = RawResourceReader.readTextFileFromRawResource(\n\t\t\t\tmContext, de.moliso.shelxle.R.raw.atoms_fragment_shader);\n\n\t\tmProgram = createProgram(mVertexShader, mFragmentShader);\n\t\tif (mProgram == 0) {\n\t\t\treturn;\n\t\t}\n\t\ttry{\n\t\t\tversionName = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n\t\t}catch (NameNotFoundException e){\n\t\t\t//wurst\n\t\t}\n\t\ttexturH = GLES20.glGetUniformLocation(mProgram, \"text\");\n\t\tellipsoidH = GLES20.glGetUniformLocation(mProgram, \"eli\");\n\t\tlichtH = GLES20.glGetUniformLocation(mProgram, \"lighting\");\n\n\t\tvertexAttr1 = GLES20.glGetAttribLocation(mProgram, \"vertex\");\n\n\t\tnormalAttr1 = GLES20.glGetAttribLocation(mProgram, \"normal\");\n\t\tmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"matrix\");\n\t\tinvmatrixUniform1 = GLES20.glGetUniformLocation(mProgram, \"invmatrix\");\n\t\tcolorUniform1 = GLES20.glGetUniformLocation(mProgram, \"col\");\n\n\t\tmTextureLoc = GLES20.glGetUniformLocation(mProgram, \"textureSampler\");\n\t\tMatrix.setIdentityM(mv, 0);\n\t\tMatrix.scaleM(mv, 0, 9.0f, 9.0f, 9.0f);\n\n\t\t// Matrix.setLookAtM(mVMatrix, 0, 0, 0, -5, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n\t}",
"private static int compileShader(int type, String shaderCode){\n final int shaderObjectId = glCreateShader(type);\n if(shaderObjectId == 0){\n System.out.print(\"Can't create a shader\\n\");\n return 0;\n }\n //传递glsl代码\n glShaderSource(shaderObjectId,shaderCode);\n glCompileShader(shaderObjectId);\n\n final int [] compileStatus = new int [1];\n glGetShaderiv(shaderObjectId,GL_COMPILE_STATUS,compileStatus,0);;\n if(compileStatus[0]==0){\n glDeleteShader(shaderObjectId);\n System.out.print(\"Compiliation of shader failed\");\n return 0;\n }\n return shaderObjectId;\n }",
"public void addBinding(int binding, ZEPipelineBindType bindType, int arrayCount, String[] shaderStages);",
"public int createShader(GL2 gl2, String name, int shaderType) {\r\n int shader = gl2.glCreateShader(shaderType);\r\n \r\n if ( !(shaderType == GL2.GL_VERTEX_SHADER || shaderType == GL2.GL_FRAGMENT_SHADER || shaderType == GL3.GL_GEOMETRY_SHADER) ) {\r\n System.out.println(\"Incorrection shader type : \" + shaderType);\r\n System.exit(0);\r\n }\r\n \r\n try {\r\n //System.out.println(\"Creating : \" + name );\r\n \r\n String fsrc = \"\";\r\n String line = \"\";\r\n String buffer[];\r\n BufferedReader reader = new BufferedReader(new FileReader(name));\r\n while ((line=reader.readLine()) != null) {\r\n fsrc += line + \"\\n\";\r\n }\r\n reader.close();\r\n buffer = new String[] { fsrc };\r\n gl2.glShaderSource(shader, 1, buffer, (int[])null, 0);\r\n gl2.glCompileShader(shader);\r\n if (compileStatus(gl2, shader)) {\r\n switch (shaderType) {\r\n case GL2.GL_FRAGMENT_SHADER: { fragmentShaderList.add(shader); break; }\r\n case GL2.GL_VERTEX_SHADER: { vertexShaderList.add(shader); break; }\r\n case GL3.GL_GEOMETRY_SHADER: { geometryShaderList.add(shader); break; }\r\n default: System.exit(0);\r\n }\r\n } else {\r\n System.exit(0);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return shader;\r\n }",
"public Shader(String fileNames){\n\n this.files = new ArrayList<>();\n this.uniformLocationCache = new HashMap<>();\n\n ArrayList<Integer> compiledShaders = new ArrayList<>();\n\n // Get the root directory of the file\n File baseFile = new File(fileNames);\n String rootDirectory = baseFile.getParent();\n if(rootDirectory == null){\n rootDirectory = \"./\";\n }\n\n // Loop through all files in directory\n File f = new File(rootDirectory);\n File[] files = f.listFiles();\n if(files != null){\n for(File file: files) {\n // Get file extension\n String fileName = file.getName();\n // If the file matches the nave we gave\n if (fileName.startsWith(baseFile.getName())) {\n int indexOfDot = fileName.lastIndexOf('.');\n String extension = \"\";\n if (indexOfDot > 0) {\n extension = fileName.substring(indexOfDot + 1);\n }\n\n String fileContent;\n\n String absoluteFilePath;\n\n int shaderType = -1;\n\n switch (extension) {\n case \"vert\":\n shaderType = GL_VERTEX_SHADER;\n break;\n case \"frag\":\n shaderType = GL_FRAGMENT_SHADER;\n break;\n case \"geom\":\n shaderType = GL_GEOMETRY_SHADER;\n break;\n case \"comp\":\n shaderType = GL_COMPUTE_SHADER;\n break;\n }\n\n if (shaderType != -1) {\n absoluteFilePath = Paths.get(rootDirectory, fileName).toString();\n fileContent = loadFile(absoluteFilePath);\n int currentShader = compileShader(fileContent, shaderType);\n compiledShaders.add(currentShader);\n this.files.add(absoluteFilePath);\n }\n }\n }\n }\n\n this.shaderId = createProgram(compiledShaders.stream().mapToInt(i -> i).toArray());\n\n if(this.shaderId == -1){\n throw new RuntimeException(\"Failed to compile shader: \" + fileNames);\n }\n }",
"public void linkToRenderer(Renderer renderer, int id) {\n renderer.addUniform(new UniformMatrix4(renderer.getShader(),\"shadowMatrix[\" + id + \"]\",biasShadowBoxMatrix));\n\n }",
"public static int loadShader(int type, String shaderCode) {\n int shader = GLES20.glCreateShader(type);\n\n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n\n return shader;\n }",
"public void onSurfaceCreated(int vertexShader, int gridShader, int passthroughShader) {\r\n \tstuff();\r\n program = GLES20.glCreateProgram();\r\n GLES20.glAttachShader(program, vertexShader);\r\n if (this instanceof GLSelectableObject) {\r\n GLES20.glAttachShader(program, passthroughShader);\r\n } else {\r\n GLES20.glAttachShader(program, gridShader);\r\n }\r\n GLES20.glLinkProgram(program);\r\n GLES20.glUseProgram(program);\r\n\r\n checkGLError(\"Floor program\");\r\n\r\n modelParam = GLES20.glGetUniformLocation(program, \"u_Model\");\r\n modelViewParam = GLES20.glGetUniformLocation(program, \"u_MVMatrix\");\r\n modelViewProjectionParam = GLES20.glGetUniformLocation(program, \"u_MVP\");\r\n lightPosParam = GLES20.glGetUniformLocation(program, \"u_LightPos\");\r\n\r\n positionParam = GLES20.glGetAttribLocation(program, \"a_Position\");\r\n normalParam = GLES20.glGetAttribLocation(program, \"a_Normal\");\r\n colorParam = GLES20.glGetAttribLocation(program, \"a_Color\");\r\n\r\n GLES20.glEnableVertexAttribArray(positionParam);\r\n GLES20.glEnableVertexAttribArray(normalParam);\r\n GLES20.glEnableVertexAttribArray(colorParam);\r\n\r\n checkGLError(\"Floor program params\");\r\n Matrix.setIdentityM(model, 0);\r\n Matrix.translateM(model, 0, -xPos, -yPos, -zPos); // Floor appears\r\n // below user.\r\n\r\n }",
"protected void initParams(){\n super.initParams();\n muMoiveFilterTextureLoc = GLES20.glGetUniformLocation(mProgramHandle, \"movieFilterTexture\");\n GlUtil.checkLocation(muMoiveFilterTextureLoc, \"movieFilterTexture\");\n }",
"void glEnableVertexAttribArray(int index);",
"private FontRenderer prepareShader() {\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"width\", .46f * (1 + size / 100f));\n\t\tFontShaderProgram.INSTANCE.sendFloat(\"edge\", .2f * (1f / (size * 2)));\n\t\tFontShaderProgram.INSTANCE.sendVec4(\"fontColor\", color);\n\t\t\n\t\treturn this;\n\t}",
"@Override\n public void applyEffect(int inputTextureId, long timeProgress, float[] transformMatrix) {\n GLES20.glUseProgram(shaderProgram.getProgramHandle());\n checkGlError();\n\n // Set the vertex attributes\n GLES20.glVertexAttribPointer(textureCoordinateHandle, 2, GLES20.GL_FLOAT, false, 0, textureVertices);\n GLES20.glEnableVertexAttribArray(textureCoordinateHandle);\n GLES20.glVertexAttribPointer(posCoordinateHandle, 2, GLES20.GL_FLOAT, false, 0, posVertices);\n GLES20.glEnableVertexAttribArray(posCoordinateHandle);\n checkGlError();\n\n // Set the input texture\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n checkGlError();\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textures[0]);\n checkGlError();\n\n // Draw\n GLES20.glClearColor(0.0f, 0.0f, 0.5f, 1.0f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, 4);\n }",
"public void apply() {\n\t\tif (! defaultFragmentShader.exists() || ! defaultVertexShader.exists()) {\n\t\t\tthrow new IllegalArgumentException(\"No default shader exists.\");\n\t\t}\n\t\t\n\t}",
"private int loadGLShader(int type, String code) {\n int shader = GLES20.glCreateShader(type);\n GLES20.glShaderSource(shader, code);\n GLES20.glCompileShader(shader);\n\n // Get the compilation status.\n final int[] compileStatus = new int[1];\n GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compileStatus, 0);\n\n // If the compilation failed, delete the shader.\n if (compileStatus[0] == 0) {\n Log.e(TAG, \"Error compiling shader: \" + GLES20.glGetShaderInfoLog(shader));\n GLES20.glDeleteShader(shader);\n shader = 0;\n }\n\n if (shader == 0) {\n throw new RuntimeException(\"Error creating shader.\");\n }\n\n return shader;\n }",
"public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }",
"public final void onUnused(GL gl)\r\n {\r\n //ILogger::instance()->logInfo(\"GPUProgram %s unused\", _name.c_str());\r\n \r\n for (int i = 0; i < _nUniforms; i++)\r\n {\r\n if (_createdUniforms[i] != null) //Texture Samplers return null\r\n {\r\n _createdUniforms[i].unset();\r\n }\r\n }\r\n \r\n for (int i = 0; i < _nAttributes; i++)\r\n {\r\n if (_createdAttributes[i] != null)\r\n {\r\n _createdAttributes[i].unset(gl);\r\n }\r\n }\r\n }",
"protected void sendVector(Vector3f vector, String uniformName) {\n \n //Create the uniformLocation\n int uniformLocation = glGetUniformLocation(programID, uniformName);\n\n //Create the buffer and buffer the data to it\n FloatBuffer buffer = BufferUtils.createFloatBuffer(3);\n vector.get(buffer);\n glUniform3fv(uniformLocation, buffer);\n }",
"public void setvColor(float red, float green, float blue)\n {\n GLES20.glUniform4f(uColor, red, green, blue, 1.0f);\n }",
"public void drawMainRotor(float[] mvpMatrix)\n\t{\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper -- drawMainRotor: Use Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper -- rotors: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, mainRotorVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,1.0f,1.0f,0.0f,0.7f);\n }\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n\t\tGLES20.glLineWidth(lineWidth);\n GLES20.glDrawElements(GLES20.GL_LINES, mainRotorDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, mainRotorDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Rotor Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}",
"public final void applyChanges(GL gl)\r\n {\r\n \r\n for (int i = 0; i < _nUniforms; i++)\r\n {\r\n GPUUniform uniform = _createdUniforms[i];\r\n if (uniform != null) //Texture Samplers return null\r\n {\r\n uniform.applyChanges(gl);\r\n }\r\n }\r\n \r\n for (int i = 0; i < _nAttributes; i++)\r\n {\r\n GPUAttribute attribute = _createdAttributes[i];\r\n if (attribute != null)\r\n {\r\n attribute.applyChanges(gl);\r\n }\r\n }\r\n }",
"@Override\n public void drawMesh(String name, util.Material material, String textureName, final Matrix4f transformation) {\n if (meshRenderers.containsKey(name)) {\n GL3 gl = glContext.getGL().getGL3();\n //get the color\n\n FloatBuffer fb4 = Buffers.newDirectFloatBuffer(4);\n FloatBuffer fb16 = Buffers.newDirectFloatBuffer(16);\n\n int loc = -1;\n\n loc = shaderLocations.getLocation(\"material.ambient\");\n if (loc >= 0) {\n gl.glUniform3fv(loc, 1, material.getAmbient().get(fb4));\n } else {\n throw new IllegalArgumentException(\"No shader variable for \\\" material.ambient \\\"\");\n }\n\n loc = shaderLocations.getLocation(\"material.diffuse\");\n if (loc >= 0) {\n gl.glUniform3fv(loc, 1, material.getDiffuse().get(fb4));\n } else {\n throw new IllegalArgumentException(\"No shader variable for \\\" material.diffuse \\\"\");\n }\n\n if (loc >= 0) {\n loc = shaderLocations.getLocation(\"material.specular\");\n gl.glUniform3fv(loc, 1, material.getSpecular().get(fb4));\n } else {\n throw new IllegalArgumentException(\"No shader variable for \\\" material.specular \\\"\");\n }\n\n loc = shaderLocations.getLocation(\"material.shininess\");\n if (loc >= 0) {\n gl.glUniform1f(loc, material.getShininess());\n } else {\n throw new IllegalArgumentException(\"No shader variable for \\\" material.shininess \\\"\");\n }\n\n loc = shaderLocations.getLocation(\"modelview\");\n if (loc >= 0) {\n gl.glUniformMatrix4fv(loc, 1, false, transformation.get(fb16));\n }\n else {\n throw new IllegalArgumentException(\"No shader variable for \\\" modelview \\\"\");\n }\n\n loc = shaderLocations.getLocation(\"normalmatrix\");\n if (loc>=0) {\n Matrix4f normalmatrix = new Matrix4f(transformation).invert().transpose();\n gl.glUniformMatrix4fv(loc,1,false,normalmatrix.get(fb16));\n }\n else {\n throw new IllegalArgumentException(\"No shader variable for \\\" normalmatrix \\\"\");\n }\n\n\n\n if (textures.containsKey(textureName))\n textures.get(textureName).getTexture().bind(gl);\n else if (textures.containsKey(\"white\"))\n textures.get(\"white\").getTexture().bind(gl);\n\n meshRenderers.get(name).draw(glContext);\n }\n }",
"@Override\n public void cleanup(final Program program) {\n int positionHandle = GLES20.glGetAttribLocation(program.handle, A_POSITION);\n GLES20.glDisableVertexAttribArray(positionHandle);\n }",
"@Override\n public void onSurfaceCreated(GL10 gl, EGLConfig config) {\n GLES20.glClearColor(0.15f, 0.15f, 0.15f, 0.15f);\n\n // Position the eye behind the origin.\n final float eyeX = 0.0f;\n final float eyeY = 0.0f;\n final float eyeZ = 1.5f;\n\n // We are looking toward the distance\n final float lookX = 0.0f;\n final float lookY = 0.0f;\n final float lookZ = -5.0f;\n\n // Set our up vector. This is where our head would be pointing were we holding the camera.\n final float upX = 0.0f;\n final float upY = 1.0f;\n final float upZ = 0.0f;\n\n Matrix.setLookAtM(mViewMatrix, 0, eyeX, eyeY, eyeZ, lookX,\n lookY, lookZ, upX, upY, upZ);\n\n String fragmentShader = \"precision mediump float; \\n\"\n // This is the color from the vertex shader interpolated across the\n + \"varying vec4 v_Color; \\n\"\n // triangle per fragment.\n + \"void main() \\n\"\n + \"{ \\n\"\n + \" gl_FragColor = v_Color; \\n\"\n + \"} \\n\";\n String vertexShader = \"uniform mat4 u_MVPMatrix; \\n\"\n // Per-vertex position information we will pass in.\n + \"attribute vec4 a_Position; \\n\"\n\n // Per-vertex color information we will pass in.\n + \"attribute vec4 a_Color; \\n\"\n\n // This will be passed into the fragment shader.\n + \"varying vec4 v_Color; \\n\"\n\n + \"void main() \\n\"\n + \"{ \\n\"\n\n // Pass the color through to the fragment shader.\n + \" v_Color = a_Color; \\n\"\n\n // gl_Position is a special variable used to store the final position.\n // Multiply the vertex by the matrix to get the final point in\n // normalized screen coordinates.\n + \" gl_Position = u_MVPMatrix \\n\"\n + \" * a_Position; \\n\"\n + \"} \\n\";\n\n program = new GLProgram(vertexShader, fragmentShader);\n\n String positionVariableName = \"a_Position\";\n program.declareAttribute(positionVariableName);\n\n String colorVariableName = \"a_Color\";\n program.declareAttribute(colorVariableName);\n\n program.declareUniform(U_MVP_MATRIX);\n\n // Tell OpenGL to use this program when rendering.\n program.activate();\n\n // This triangle is red, green, and blue.\n final float[] triangle1VerticesData = {\n // X, Y, Z,\n // R, G, B, A\n -0.5f, -0.25f, 0.0f,\n 0.5f, -0.25f, 0.0f,\n 0.0f, 0.559016994f, 0.0f,\n };\n\n final float[] triangleColorData = {\n 1.0f, 0.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n };\n\n VertexArray mTriangleVertices = new VertexArray(triangle1VerticesData,\n program.getVariableHandle(positionVariableName), true);\n /*\n Store our model data in a float buffer.\n */\n ColorArray mTriangleColors = new ColorArray(triangleColorData,\n program.getVariableHandle(colorVariableName), true);\n\n positionVbo = new VertexBufferObject(mTriangleVertices);\n colorVbo = new VertexBufferObject(mTriangleColors);\n }",
"public void drawTailRotor(float[] mvpMatrix)\n\t{\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper -- rotors: Use Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper -- rotors: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, tailRotorVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,1.0f,1.0f,0.0f,0.6f);\n }\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n\t\tGLES20.glLineWidth(lineWidth);\n GLES20.glDrawElements(GLES20.GL_LINES, tailRotorDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, tailRotorDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Rotor Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}",
"private void printShaderLogInfo(int id) \r\n {\r\n IntBuffer infoLogLength = ByteBuffer.allocateDirect(4)\r\n .order(ByteOrder.nativeOrder()).asIntBuffer();\r\n glGetShader(id, GL_INFO_LOG_LENGTH, infoLogLength);\r\n if (infoLogLength.get(0) > 0) \r\n {\r\n infoLogLength.put(0, infoLogLength.get(0)-1);\r\n }\r\n\r\n ByteBuffer infoLog = ByteBuffer.allocateDirect(infoLogLength.get(0))\r\n .order(ByteOrder.nativeOrder());\r\n glGetShaderInfoLog(id, infoLogLength, infoLog);\r\n\r\n String infoLogString =\r\n Charset.forName(\"US-ASCII\").decode(infoLog).toString();\r\n if (infoLogString.trim().length() > 0)\r\n {\r\n ErrorHandler.handle(\"shader log:\\n\"+infoLogString);\r\n }\r\n }",
"public void setUpTextures(int program, GL2 gl2) {\n\t\t// sets the parameters for texture\n\t\tgl2.glGenTextures(1, buffer);\n\t\tgl2.glActiveTexture(gl2.GL_TEXTURE0);\n\t\tgl2.glBindTexture(gl2.GL_TEXTURE_2D,\n\t\t\t\tgl2.glGetUniformLocation(program, \"abc\"));\n\t\tgl2.glTexParameteri(gl2.GL_TEXTURE_2D, gl2.GL_TEXTURE_MIN_FILTER,\n\t\t\t\tgl2.GL_LINEAR);\n\t\tgl2.glTexParameteri(gl2.GL_TEXTURE_2D, gl2.GL_TEXTURE_MAG_FILTER,\n\t\t\t\tgl2.GL_LINEAR);\n\t\tgl2.glTexImage2D(gl2.GL_TEXTURE_2D, 0, gl2.GL_RGBA,\n\t\t\t\tbufferimage.getWidth(), bufferimage.getHeight(), 0,\n\t\t\t\tgl2.GL_BGRA, gl2.GL_UNSIGNED_BYTE, buffer);\n\t}",
"@NativeType(\"bgfx_shader_handle_t\")\n public static short bgfx_create_shader(@NativeType(\"bgfx_memory_t const *\") BGFXMemory _mem) {\n return nbgfx_create_shader(_mem.address());\n }",
"public void draw() {\n // añadimos el programa al entorno de opengl\n GLES20.glUseProgram(mProgram);\n\n // obtenemos el identificador de los sombreados del los vertices a vPosition\n positionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // habilitamos el manejo de los vertices del triangulo\n GLES20.glEnableVertexAttribArray(positionHandle);\n\n // Preparamos los datos de las coordenadas del triangulo\n GLES20.glVertexAttribPointer(positionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // Obtenemos el identificador del color del sombreado de los fragmentos\n colorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Establecemos el color para el dibujo del triangulo\n GLES20.glUniform4fv(colorHandle, 1, color, 0);\n\n // SE dibuja el triangulo\n GLES20.glDrawArrays(GLES20.GL_LINE_LOOP, 0, vertexCount);\n\n // Deshabilitamos el arreglo de los vertices (que dibuje una sola vez)\n GLES20.glDisableVertexAttribArray(positionHandle);\n }",
"public void testShaderWithoutExcludesShouldRemoveReferencesOfOriginalPattern() throws Exception {\n shaderWithPattern(\"org/shaded/plexus/util\", new File(\"target/foo-custom-without-excludes.jar\"), new String[]{});\n }",
"public void setColor(float[] color){\n GLES20.glUniform4fv(mColorHandle, 1, color, 0);\n }",
"public void render(int i, Shader shader){\n\t\ttex[i].bind();\n\t\tshader.enable();\n\t\tshader.setUniformMat4f(\"ml_matrix\", Matrix4f.translate(position));\n\t\tVAO.render();\n\t\tshader.disable();\n\t\ttex[i].unbind();\n\t}",
"public void build_buffers(float[] color /*RGBA*/) {\n int i;\n int offset = 0;\n final float[] vertexData = new float[\n mVertices.size() / 3\n * STRIDE_IN_FLOATS];\n\n float vx, vy, vz;\n\n /*\n * loop to generate vertices.\n */\n for (i = 0; i < mVertices.size(); i += 3) {\n\n vertexData[offset++] = mVertices.get(i + 0);\n vertexData[offset++] = mVertices.get(i + 1);\n vertexData[offset++] = mVertices.get(i + 2);\n\n vertexData[offset++] = 0.0f; // set normal to zero for now\n vertexData[offset++] = 0.0f;\n vertexData[offset++] = 0.0f;\n\n if (mHaveMaterialColor) {\n vertexData[offset++] = mColors.get(i + 0);\n vertexData[offset++] = mColors.get(i + 1);\n vertexData[offset++] = mColors.get(i + 2);\n vertexData[offset++] = 1.0f; // TODO: unwire the alpha?\n } else {\n // color value\n vertexData[offset++] = color[0];\n vertexData[offset++] = color[1];\n vertexData[offset++] = color[2];\n vertexData[offset++] = color[3];\n }\n }\n\n // calculate the normal,\n // set it in the packed VBO.\n // If current normal is non-zero, average it with previous value.\n\n int v1i, v2i, v3i;\n for (i = 0; i < mIndices.size(); i += 3) {\n v1i = mIndices.get(i + 0) - 1;\n v2i = mIndices.get(i + 1) - 1;\n v3i = mIndices.get(i + 2) - 1;\n\n v1[0] = mVertices.get(v1i * 3 + 0);\n v1[1] = mVertices.get(v1i * 3 + 1);\n v1[2] = mVertices.get(v1i * 3 + 2);\n\n v2[0] = mVertices.get(v2i * 3 + 0);\n v2[1] = mVertices.get(v2i * 3 + 1);\n v2[2] = mVertices.get(v2i * 3 + 2);\n\n v3[0] = mVertices.get(v3i * 3 + 0);\n v3[1] = mVertices.get(v3i * 3 + 1);\n v3[2] = mVertices.get(v3i * 3 + 2);\n\n n = XYZ.getNormal(v1, v2, v3);\n\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n }\n\n /*\n * debug - print out list of formated vertex data\n */\n// for (i = 0; i < vertexData.length; i+= STRIDE_IN_FLOATS) {\n// vx = vertexData[i + 0];\n// vy = vertexData[i + 1];\n// vz = vertexData[i + 2];\n// String svx = String.format(\"%6.2f\", vx);\n// String svy = String.format(\"%6.2f\", vy);\n// String svz = String.format(\"%6.2f\", vz);\n//\n// Log.w(\"data \", i + \" x y z \"\n// + svx + \" \" + svy + \" \" + svz + \" and color = \"\n// + vertexData[i + 6] + \" \" + vertexData[i + 7] + \" \" + vertexData[i + 8]);\n// }\n\n final FloatBuffer vertexDataBuffer = ByteBuffer\n .allocateDirect(vertexData.length * BYTES_PER_FLOAT)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n vertexDataBuffer.put(vertexData).position(0);\n\n if (vbo[0] > 0) {\n GLES20.glDeleteBuffers(1, vbo, 0);\n }\n GLES20.glGenBuffers(1, vbo, 0);\n\n if (vbo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo[0]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexDataBuffer.capacity() * BYTES_PER_FLOAT,\n vertexDataBuffer, GLES20.GL_STATIC_DRAW);\n\n // GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n\n /*\n * create the buffer for the indices\n */\n offset = 0;\n int x;\n final short[] indexData = new short[mIndices.size()];\n for (x = 0; x < mIndices.size(); x++) {\n\n short index = mIndices.get(x).shortValue();\n indexData[offset++] = --index;\n }\n mTriangleIndexCount = indexData.length;\n\n /*\n * debug - print out list of formated vertex data\n */\n// short ix, iy, iz;\n// for (i = 0; i < indexData.length; i += 3) {\n// ix = indexData[i + 0];\n// iy = indexData[i + 1];\n// iz = indexData[i + 2];\n//\n// Log.w(\"data \", i + \" i1 i2 i3 \"\n// + ix + \" \" + iy + \" \" + iz );\n// }\n\n final ShortBuffer indexDataBuffer = ByteBuffer\n .allocateDirect(indexData.length * BYTES_PER_SHORT).order(ByteOrder.nativeOrder())\n .asShortBuffer();\n indexDataBuffer.put(indexData).position(0);\n\n if (ibo[0] > 0) {\n GLES20.glDeleteBuffers(1, ibo, 0);\n }\n GLES20.glGenBuffers(1, ibo, 0);\n if (ibo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, ibo[0]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER,\n indexDataBuffer.capacity()\n * BYTES_PER_SHORT, indexDataBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n }",
"protected void sendFloat(float f, String uniformName) {\n int uniformLocation = glGetUniformLocation(programID, uniformName);\n glUniform1f(uniformLocation, f);\n }",
"void SetUpMeshArrays(int PosHandle, int TexHandle, int NormalHandle)\n\t{\n\t\tm_VertexBuffer.position(m_MeshVerticesDataPosOffset);\n\t GLES20.glVertexAttribPointer(PosHandle, \n\t \t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\tm_VertexBuffer);\n\t \n\t GLES20.glEnableVertexAttribArray(PosHandle);\n\t \n\t \n\t if (m_MeshHasUV)\n\t {\n\t \t// Set up Vertex Texture Data stream to shader \n\t \tm_VertexBuffer.position(m_MeshVerticesDataUVOffset);\n\t \tGLES20.glVertexAttribPointer(TexHandle, \n\t \t\t\t\t\t\t\t\t2, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(TexHandle);\n\t }\n\t \n\t if (m_MeshHasNormals)\n\t {\n\t \t\n\t \t// Set up Vertex Texture Data stream to shader\n\t \tm_VertexBuffer.position(m_MeshVerticesDataNormalOffset);\n\t \tGLES20.glVertexAttribPointer(NormalHandle, \n\t \t\t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(NormalHandle);\n\t } \n\t \n\t \n\t \n\t}",
"private static int loadShader(String file,\r\n\t\t\tint type) {\r\n\t\tStringBuilder source = new StringBuilder();\r\n\t\t\r\n\t\t/* read in the entire file */\r\n\t\ttry{\r\n\t\t\t@SuppressWarnings(\"resource\")\r\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\r\n\t\t\tString line;\r\n\t\t\t\r\n\t\t\twhile((line = reader.readLine()) != null){\r\n\t\t\t\tsource.append(line).append(\"\\n\");\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\tSystem.err.println(\"Error reading shader file: \" + file);\r\n\t\t}\r\n\t\t\r\n\t\t/* creates the shader */\r\n\t\tint shaderID = GL20.glCreateShader(type);\r\n\t\tGL20.glShaderSource(shaderID, source);\r\n\t\tGL20.glCompileShader(shaderID);\r\n\t\t\r\n\t\t/* checks if shader complied successfully*/\r\n\t\tif(GL20.glGetShaderi(shaderID, GL20.GL_COMPILE_STATUS )\r\n\t\t\t\t== GL11.GL_FALSE){\r\n\t\t\t/* Shader compile error */\r\n\t\t\tSystem.out.println(GL20.glGetShaderInfoLog(shaderID, 500));\r\n\t\t\tSystem.err.println(\"Could not compile shader: \" + file);\r\n\t\t\tSystem.exit(-1);\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn shaderID;\r\n\t}",
"public static int loadShader(int type, String shaderCode){\n int shader = GLES20.glCreateShader(type);\n\n int[] isCompiled = new int[1];\n\n\n // add the source code to the shader and compile it\n GLES20.glShaderSource(shader, shaderCode);\n GLES20.glCompileShader(shader);\n\n GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, isCompiled, 0);\n if(isCompiled[0] == 0)\n\t\t{\n\t\t\tSystem.out.println(\"Shader did not compile\");\n }\n \n return shader;\n }",
"protected void addMaterialStats(MaterialId location, IMaterialStats... stats) {\n allMaterialStats.computeIfAbsent(location, materialId -> new ArrayList<>())\n .addAll(Arrays.asList(stats));\n }",
"public final void entryRuleUniform() throws RecognitionException {\n\n \tHiddenTokens myHiddenTokenState = ((XtextTokenStream)input).setHiddenTokens(\"RULE_ML_COMMENT\", \"RULE_SL_COMMENT\", \"RULE_WS\");\n\n try {\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1252:1: ( ruleUniform EOF )\n // ../eu.quanticol.caspa.ui/src-gen/eu/quanticol/ui/contentassist/antlr/internal/InternalCASPA.g:1253:1: ruleUniform EOF\n {\n before(grammarAccess.getUniformRule()); \n pushFollow(FOLLOW_ruleUniform_in_entryRuleUniform2339);\n ruleUniform();\n\n state._fsp--;\n\n after(grammarAccess.getUniformRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleUniform2346); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \tmyHiddenTokenState.restore();\n\n }\n return ;\n }",
"@Override\r\n\tpublic void multLocal(ShaderVar var) {\n\t}",
"void ldraw_addVertexWithUV(double x, double y, double z, double u, double v) {\n lDraw.a(x, y, z, u, v);\n }"
]
| [
"0.6925926",
"0.6744783",
"0.6733185",
"0.65601325",
"0.653885",
"0.64687586",
"0.64244246",
"0.63245296",
"0.6297717",
"0.62246543",
"0.60522574",
"0.6013392",
"0.60101885",
"0.5992449",
"0.5952959",
"0.5795191",
"0.5666517",
"0.5619924",
"0.56194276",
"0.5618452",
"0.56085324",
"0.5582497",
"0.5552173",
"0.5548952",
"0.55314106",
"0.5511607",
"0.55107313",
"0.5509217",
"0.54385793",
"0.5436173",
"0.538947",
"0.5377886",
"0.532506",
"0.5322737",
"0.5283601",
"0.52814347",
"0.5267825",
"0.52622926",
"0.52431405",
"0.5240026",
"0.5230968",
"0.519367",
"0.5192245",
"0.5189553",
"0.5178372",
"0.5166055",
"0.51527256",
"0.5127219",
"0.5104796",
"0.51005226",
"0.50957525",
"0.5090331",
"0.5049224",
"0.5043316",
"0.50332355",
"0.5022493",
"0.49969402",
"0.4964031",
"0.49600115",
"0.49481937",
"0.4929025",
"0.4916481",
"0.49091572",
"0.49086198",
"0.49035752",
"0.49033764",
"0.4902063",
"0.48986602",
"0.48982364",
"0.4895259",
"0.4886294",
"0.48464337",
"0.4840147",
"0.48376963",
"0.48358193",
"0.48329934",
"0.48295748",
"0.48155046",
"0.4805556",
"0.4805422",
"0.47805876",
"0.47465813",
"0.47380033",
"0.47313637",
"0.4713865",
"0.47109365",
"0.47100323",
"0.4700693",
"0.46946537",
"0.4687995",
"0.46774167",
"0.4664883",
"0.46607652",
"0.4656594",
"0.4641856",
"0.46372542",
"0.46337134",
"0.45980456",
"0.45791483",
"0.45760795"
]
| 0.68244374 | 1 |
IMPORTANT for some reason | public void endRender () {
glFlush();
glfwSwapBuffers(window.window);
//System.out.println("Swapped buffers");
glfwPollEvents();
//shaderProgram.bind();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"protected boolean func_70041_e_() { return false; }",
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"private void m50366E() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"public boolean method_4088() {\n return false;\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public boolean method_218() {\r\n return false;\r\n }",
"public boolean method_2453() {\r\n return false;\r\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public boolean method_216() {\r\n return false;\r\n }",
"public boolean method_194() {\r\n return false;\r\n }",
"public boolean method_2434() {\r\n return false;\r\n }",
"public void smell() {\n\t\t\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public boolean method_4093() {\n return false;\n }",
"public boolean method_208() {\r\n return false;\r\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public void method_4270() {}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"public void m23075a() {\n }",
"public boolean method_4132() {\n return false;\n }",
"public boolean method_196() {\r\n return false;\r\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public final void mo91715d() {\n }",
"@Override\n public int getPriority() {\n return 75;\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public boolean method_210() {\r\n return false;\r\n }",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic boolean paie() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public boolean isSoft() {\n return true;\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"private void kk12() {\n\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"void berechneFlaeche() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void just() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public boolean method_214() {\r\n return false;\r\n }",
"public boolean method_108() {\r\n return false;\r\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"@Override\r\n\tpublic void freeze() {\n\t\t\r\n\t}",
"public boolean method_3897() {\r\n return false;\r\n }",
"public void mo12628c() {\n }",
"public abstract void mo56925d();",
"public boolean method_4102() {\n return false;\n }",
"public void m9741j() throws cf {\r\n }",
"protected void mo6255a() {\n }",
"private void m50367F() {\n }",
"@Override\n\tpublic boolean livre() {\n\t\treturn true;\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public boolean method_198() {\r\n return false;\r\n }",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo4359a() {\n }",
"public abstract void mo70713b();",
"@Override\n public boolean c() {\n return false;\n }",
"boolean shouldRescore() {\n return false;\n }",
"public final void mo8775b() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public boolean d() {\n return false;\n }",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n\tprotected void prepare() {\n\t\t\n\t}",
"void m1864a() {\r\n }",
"public void mo6081a() {\n }",
"@Override\n public Object preProcess() {\n return null;\n }",
"public void baocun() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }"
]
| [
"0.66112584",
"0.6597891",
"0.6442217",
"0.6412629",
"0.63337755",
"0.6329795",
"0.622874",
"0.6214119",
"0.61945415",
"0.61945415",
"0.6187203",
"0.6162916",
"0.6159513",
"0.6159378",
"0.6120738",
"0.610574",
"0.60965925",
"0.6075013",
"0.6054755",
"0.60010594",
"0.59972775",
"0.5987116",
"0.5980519",
"0.5980519",
"0.5968644",
"0.5898904",
"0.589682",
"0.5889844",
"0.5882365",
"0.58823496",
"0.58750063",
"0.587235",
"0.58554626",
"0.58543813",
"0.5847654",
"0.5826459",
"0.581835",
"0.58164364",
"0.58086866",
"0.5801017",
"0.5798673",
"0.5797655",
"0.5789648",
"0.57820624",
"0.57743007",
"0.5751557",
"0.5751182",
"0.5745123",
"0.57396",
"0.5731504",
"0.5700355",
"0.5698586",
"0.5692695",
"0.5692248",
"0.5692069",
"0.56896126",
"0.5688132",
"0.56859857",
"0.5685786",
"0.5674811",
"0.5673501",
"0.5668374",
"0.5667633",
"0.5666562",
"0.5665916",
"0.5646465",
"0.5642695",
"0.56354195",
"0.5632347",
"0.5628981",
"0.56239927",
"0.56232667",
"0.56228346",
"0.5622131",
"0.5618524",
"0.5618289",
"0.5617592",
"0.5602696",
"0.5600108",
"0.55970746",
"0.55935025",
"0.55920154",
"0.5591797",
"0.5590325",
"0.5590128",
"0.55845135",
"0.5564572",
"0.55600214",
"0.5559839",
"0.55483985",
"0.554707",
"0.5546744",
"0.55348",
"0.5531275",
"0.55302805",
"0.5529705",
"0.5529485",
"0.5529485",
"0.5529485",
"0.5529485",
"0.5529485"
]
| 0.0 | -1 |
loads textures into the map so they can be called | public void addTexture (String path, String key) throws IOException {
Texture texture = new Texture();
texture.load(path);
textures.put(key, texture);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadTextures() {\n textureIdMap.keySet().forEach((i) -> {\n //for (int i = 0; i < textureFileNames.length; i++) {\n try {\n URL textureURL;\n textureURL = getClass().getClassLoader().getResource(textureIdMap.get(i));\n if (textureURL != null) {\n BufferedImage img = ImageIO.read(textureURL);\n ImageUtil.flipImageVertically(img);\n Texture temp = AWTTextureIO.newTexture(GLProfile.getDefault(), img, true);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);\n textures.put(i, temp);\n }\n } catch (IOException | GLException e) {\n e.printStackTrace();\n }\n });\n textures.get(0).enable(gl);\n }",
"public static void load(){\n for(TextureHandler t : textures){\n if(t.texture!=null)t.texture.dispose();\n }\n textures.clear();\n \n //if the textures are corrupt or just arent there then the error TextureHandler will\n //be a placeholder which is generated programatically so it is always there\n int size = 64;\n Pixmap pixmap = new Pixmap(size,size, Format.RGBA8888 );\n pixmap.setColor(1f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,size/2);\n pixmap.setColor(0f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,(size/2)-2);\n pixmap.setColor(1f,0f,0f,1f);\n int offset = size/6;\n int length = (size+size)/3;\n pixmap.drawLine(offset,offset,offset+length,offset+length);\n pixmap.drawLine(offset+length,offset,offset,offset+length);\n error = new Texture(pixmap);\n pixmap.dispose();\n //things that get rendered the most get put at the top so theyre the first in the list\n textures.add(new TextureHandler(\"Block\" ,\"Block.png\",true));\n textures.add(new TextureHandler(\"Block1\",\"Block1.png\",true));\n textures.add(new TextureHandler(\"Block2\",\"Block2.png\",true));\n textures.add(new TextureHandler(\"Block3\",\"Block3.png\",true));\n textures.add(new TextureHandler(\"Block4\",\"Block4.png\",true));\n textures.add(new TextureHandler(\"GameBackground\",\"GameBackground.png\",true));\n \n textures.add(new TextureHandler(\"Hints\",\"Hints.png\",false));\n textures.add(new TextureHandler(\"Left\" ,\"ButtonLeft.png\",true));\n textures.add(new TextureHandler(\"Right\" ,\"ButtonRight.png\",true));\n textures.add(new TextureHandler(\"Rotate\",\"ButtonRotate.png\",true));\n textures.add(new TextureHandler(\"Pause\" ,\"ButtonPause.png\",true));\n textures.add(new TextureHandler(\"Label\" ,\"TextBox.png\",true));\n \n textures.add(new TextureHandler(\"Locked\",\"levels/Locked.png\",false));\n textures.add(new TextureHandler(\"Timer\",\"levels/Clock.png\",false));\n \n textures.add(new TextureHandler(\"PauseSelected\",\"SelectedPause.png\",true));\n textures.add(new TextureHandler(\"LeftSelected\",\"SelectedLeft.png\",true));\n textures.add(new TextureHandler(\"RightSelected\",\"SelectedRight.png\",true));\n textures.add(new TextureHandler(\"RotateSelected\",\"SelectedRotate.png\",true));\n \n textures.add(new TextureHandler(\"Background\",\"Background.png\",false));\n textures.add(new TextureHandler(\"Title\",\"MainMenuTitle.png\",false));\n\n }",
"public static void loadTextures() {\n loadFontTextures();\n loadAlternatePaletteTextures(); // Load alternate tiles.\n findAllTextures(); // Should be run last.\n System.out.println(\"Textures have been successfully loaded.\");\n }",
"@Override\n public void loadTexture() {\n\n }",
"public void loadAllTextures() {\n loadEntityTextures();\n loadDynamicEntityTextures();\n loadTileTextures();\n loadLiveTileTextures();\n }",
"private void initTextures() {\n\n\t\ttextureManager.loadTexture(\"PNG\", \"menu_bg\", \"res/menu_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"mountain_bg\", \"res/mountain_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"ball\", \"res/ball_sm.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"inner_bg1\", \"res/inner_bg1.png\");\r\n\t\ttextureManager.loadSheet(\"stand_still\", \"res/stand_still.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"testAnim\", \"res/testAnim.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"tileSet\", \"res/tileset_small.png\", 32, 32);\n\t\ttextureManager.loadSheet(\"walking\", \"res/walking.png\", 32, 64);\r\n\t\ttextureManager.loadSheet(\"jumping\", \"res/jumping.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"slime_still\", \"res/slime_still_small.png\", 32, 32);\n\t}",
"private void loadTextures() {\r\n int[] imgData;\r\n int width;\r\n int height;\r\n\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n //圖片質量,數字越大越差\r\n options.inSampleSize = 1;\r\n Bitmap bitmap = BitmapFactory.decodeByteArray(path, 0, path.length, options);\r\n width = bitmap.getWidth();\r\n height = bitmap.getHeight();\r\n imgData = new int[width * height * 4];\r\n bitmap.getPixels(imgData, 0, width, 0, 0, width, height);\r\n bitmap.recycle();\r\n System.gc();\r\n\r\n mTextures.add(Texture.loadTextureFromIntBuffer(imgData, width, height));\r\n }",
"private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void loadTextures(){\n switch (playerCarColor){\n case \"Black\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlack.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlackFaded.png\"));\n break;\n case \"White\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhite.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhiteFaded.png\"));\n break;\n }\n\n enemyPistolTexture = new Texture(Gdx.files.internal(\"images/enemyPistol.png\"));\n enemyAWPTexture = new Texture(Gdx.files.internal(\"images/enemyAWP.png\"));\n enemyStalkerTexture = new Texture(Gdx.files.internal(\"images/enemyStalker.png\"));\n bulletTexture = new Texture(Gdx.files.internal(\"images/bullet.png\"));\n enemyBossTexture = new Texture(Gdx.files.internal(\"images/enemyBoss.png\"));\n }",
"@Override\n\tpublic void onLoadResources() {\n\t\tBitmapTextureAtlasTextureRegionFactory.setAssetBasePath(\"gfx/\");\t\t\n\t\tmBitmapParralaxTextureAtlas=new BitmapTextureAtlas(1024,1024);\n\t\tmBitmapTextureAtlas=new BitmapTextureAtlas(512, 512);\n\t\tmTextureRegion=BitmapTextureAtlasTextureRegionFactory.createFromAsset(mBitmapParralaxTextureAtlas, this, \"parallax_background_layer_back.png\", 0, 0);\n\t\tbananaRegion=BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(mBitmapTextureAtlas, this, \"banana_tiled.png\", 0, 0, 4,2);\n\t\tmEngine.getTextureManager().loadTextures(mBitmapParralaxTextureAtlas,mBitmapTextureAtlas);\n\t}",
"public static void loadBlockTextures() {\n\t\tspriteTopOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOn.png\");\n\t\tspriteTopOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOff.png\");\n\t\tspriteROn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t\tspriteROff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOff.png\");\n\t\tspriteTOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteTOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOff.png\");\n\t}",
"private boolean load() {\r\n \t\r\n int[] textureIds = new int[1];\r\n GLES10.glGenTextures(1, textureIds, 0);\r\n this.textureId = textureIds[0];\r\n \r\n InputStream in = null;\r\n // try loading from assets\r\n try {\r\n \t\r\n in = FileIO.getInstance().readAsset(\"textures\" + File.separator + this.fileName);\r\n Bitmap bitmap = BitmapFactory.decodeStream(in);\r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, this.textureId);\r\n GLUtils.texImage2D(GLES10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n this.setFilters(GLES10.GL_NEAREST, GLES10.GL_NEAREST); \r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, 0);\r\n this.width = bitmap.getWidth();\r\n this.height = bitmap.getHeight();\r\n bitmap.recycle();\r\n \r\n } catch (IOException e) {\r\n \t\r\n \t// if not found in assets try loading from sd-card\r\n try {\r\n \t\r\n \tin = FileIO.getInstance().readFile(APP_FOLDER + File.separator + \"textures\" + File.separator + this.fileName);\r\n Bitmap bitmap = BitmapFactory.decodeStream(in);\r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, this.textureId);\r\n GLUtils.texImage2D(GLES10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n this.setFilters(GLES10.GL_NEAREST, GLES10.GL_NEAREST); \r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, 0);\r\n this.width = bitmap.getWidth();\r\n this.height = bitmap.getHeight();\r\n bitmap.recycle();\r\n \r\n } catch (IOException e2) {\r\n \t\r\n \treturn false;\r\n \t\r\n } finally {\r\n \t\r\n if (in != null) {\r\n \r\n \ttry { in.close(); } catch (IOException e2) {}\r\n }\r\n }\r\n \r\n } finally {\r\n \t\r\n if (in != null) {\r\n \r\n \ttry { in.close(); } catch (IOException e) {}\r\n }\r\n }\r\n \r\n return true;\r\n }",
"private void bindTextures() {\n\t\ttry {\n//\t\t\tif (textureLoadIndex < maxNumTextures) {\n\t\t\tboundAll = true;\n\t\t\tfor (int n=0; n<sortedPanImageList.length; n++) {\n\t\t\t\tPanImageEntry panImageEntry = sortedPanImageList[n];\n\t\t\t\tif (panImageEntry.imageListEntry.enabled && (!panImageEntry.loaded)) {\n\t\t\t\t\tboundAll = false;\n\t\t\t\t}\n\t\t\t\tif (panImageEntry.loadImageBuffer != null) {\n\t\t\t\t\tif (panImageEntry.textureNumber < 0) {\n\t\t\t\t\t\t// find new texture number\n\t\t\t\t\t\tif (textureLoadIndex < maxNumTextures) {\n\t\t\t\t\t\t\tpanImageEntry.textureNumber = textures.get(textureLoadIndex);\n\t\t\t\t\t textureLoadIndex++;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// no more textures available\n\t\t\t\t\t\t\tSystem.out.println(\"out of available textures\");\n\t\t\t\t\t\t\tpanImageEntry.loadImageBuffer = null;\n\t\t\t\t\t\t\timageLoader.suspend();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n//\t\t\t\t System.out.println(\"*** binding texture \"+panImageEntry.textureNumber);\n//\t\t\t\t long startTime = System.currentTimeMillis();\n\t\t\t GL11.glBindTexture(GL11.GL_TEXTURE_2D, panImageEntry.textureNumber);\n/*\t\t\t \n\t\t\t if (mipmap) {\n\t\t\t GLU.gluBuild2DMipmaps(GL11.GL_TEXTURE_2D, GL11.GL_RGB8, panImageEntry.loadImageWidth, panImageEntry.loadImageHeight, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, panImageEntry.loadImageBuffer);\n\t\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR_MIPMAP_LINEAR);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);\n\t\t\t }\n\t\t\t else {\n\t\t\t GL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGB8, panImageEntry.loadImageWidth, panImageEntry.loadImageHeight, 0, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, panImageEntry.loadImageBuffer);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);\n\t\t\t }\n*/\n\t\t\t int numLevels = panImageEntry.loadImageBuffer.size();\n\t\t\t if (numLevels == 1) {\n\t\t\t \tint width = ((Integer) panImageEntry.loadImageWidth.get(0)).intValue();\n\t\t\t \tint height = ((Integer) panImageEntry.loadImageHeight.get(0)).intValue();\n\t\t\t \tByteBuffer buffer = (ByteBuffer) panImageEntry.loadImageBuffer.get(0);\n\t\t\t GL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGB8, width, height, 0, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, buffer);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR_MIPMAP_LINEAR);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR/*GL11.GL_NEAREST*/);\n\t\t\t \tfor (int level=0; level<numLevels; level++) {\n\t\t\t\t \tint width = ((Integer) panImageEntry.loadImageWidth.get(level)).intValue();\n\t\t\t\t \tint height = ((Integer) panImageEntry.loadImageHeight.get(level)).intValue();\n\t\t\t\t \tByteBuffer buffer = (ByteBuffer) panImageEntry.loadImageBuffer.get(level);\n\t\t\t\t GL11.glTexImage2D(GL11.GL_TEXTURE_2D, level, GL11.GL_RGB8, width, height, 0, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, buffer);\n\t\t\t \t}\n\t\t\t }\n\t\t\t panImageEntry.loadImageBuffer = null;\n\t\t\t panImageEntry.loadImageHeight = null;\n\t\t\t panImageEntry.loadImageWidth = null;\n\t\t\t panImageEntry.loaded = true;\n//\t\t\t\t System.out.println(\"done\");\n//\t\t\t long time = System.currentTimeMillis() - startTime;\n//\t\t\t System.out.println(\"took \"+time+\" millis\");\n\t\t\t break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\tUnknownExceptionDialog.openDialog(this.getShell(), \"Error loading image\", e);\n\t\t\te.printStackTrace(); \n\t\t}\n\t\t\n\t}",
"private void chargerTextures() {\n String messageErreur = \"\";\n try {\n JETON_2 = new Texture(Gdx.files.internal(\"textures/jeton_2.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_2.png\"+\"\\n\";\n }\n try {\n JETON_3 = new Texture(Gdx.files.internal(\"textures/jeton_3.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_3.png\"+\"\\n\";\n }\n try {\n JETON_4 = new Texture(Gdx.files.internal(\"textures/jeton_4.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_4.png\"+\"\\n\";\n }\n try {\n JETON_5 = new Texture(Gdx.files.internal(\"textures/jeton_5.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_5.png\"+\"\\n\";\n }\n try {\n JETON_6 = new Texture(Gdx.files.internal(\"textures/jeton_6.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_6.png\"+\"\\n\";\n }\n try {\n JETON_8 = new Texture(Gdx.files.internal(\"textures/jeton_8.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_8.png\"+\"\\n\";\n }\n try {\n JETON_9 = new Texture(Gdx.files.internal(\"textures/jeton_9.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_9.png\"+\"\\n\";\n }\n try {\n JETON_10 = new Texture(Gdx.files.internal(\"textures/jeton_10.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_10.png\"+\"\\n\";\n }\n try {\n JETON_11 = new Texture(Gdx.files.internal(\"textures/jeton_11.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_11.png\"+\"\\n\";\n }\n try {\n JETON_12 = new Texture(Gdx.files.internal(\"textures/jeton_12.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_12.png\"+\"\\n\";\n }\n try {\n FORET = new Texture(Gdx.files.internal(\"textures/texture_foret.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_foret.png\"+\"\\n\";\n }\n try {\n PRE = new Texture(Gdx.files.internal(\"textures/texture_pre.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_pre.png\"+\"\\n\";\n }\n try {\n CHAMP = new Texture(Gdx.files.internal(\"textures/texture_champ.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_champ.png\"+\"\\n\";\n }\n try {\n COLLINE = new Texture(Gdx.files.internal(\"textures/texture_colline.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_colline.png\"+\"\\n\";\n }\n try {\n MONTAGNE = new Texture(Gdx.files.internal(\"textures/texture_montagne.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_montagne.png\"+\"\\n\";\n }\n try {\n DESERT = new Texture(Gdx.files.internal(\"textures/texture_desert.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_desert.png\"+\"\\n\";\n }\n try {\n MER = new Texture(Gdx.files.internal(\"textures/texture_mer.jpg\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_mer.jpg\"+\"\\n\";\n }\n try {\n PORT = new Texture(Gdx.files.internal(\"textures/texture_port2.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_port2.png\"+\"\\n\";\n }\n System.err.println(messageErreur);\n }",
"public void reload() {\n/* 487 */ Iterator<TextureImpl> texs = this.texturesLinear.values().iterator();\n/* 488 */ while (texs.hasNext()) {\n/* 489 */ ((TextureImpl)texs.next()).reload();\n/* */ }\n/* 491 */ texs = this.texturesNearest.values().iterator();\n/* 492 */ while (texs.hasNext()) {\n/* 493 */ ((TextureImpl)texs.next()).reload();\n/* */ }\n/* */ }",
"public void loadAllTextures()\n {\n int numChildren = androidRobot3DObject.numChildren();\n for(int i = 0;i<numChildren;i++)\n {\n String name = androidRobot3DObject.getChildAt(i).name();\n\n Log.d(\"min3d\", \"Texture name: \" + name);\n\n // The name is either extracted from the _mtl file\n // or directly from the *.3ds file\n // The name can be given directly into Blender\n if(name.indexOf(\"body\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_body\");\n }\n\n if(name.indexOf(\"head\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_head\");\n }\n\n if(name.indexOf(\"foot\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_foot\");\n }\n\n\n if(name.indexOf(\"arm\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_arm\");\n }\n\n if(name.indexOf(\"antenna\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_antenna\");\n }\n }\n\n }",
"public static void loadItemTextures() {\n\t\tspriteTItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteRItem = ModLoader.addOverride(\"/gui/items.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t}",
"private void graphicsLoader() {\n\t\tff2Logo = new Texture(Gdx.files.internal(uiName + \"/ff2logo.png\"));\n\t\tff2LogoHit = new Texture(Gdx.files.internal(uiName + \"/ff2logohit.png\"));\n\t\tplayerword = new Texture(Gdx.files.internal(uiName + \"/playerword.png\"));\n\t\tplayerwordHit = new Texture(Gdx.files.internal(uiName + \"/playerwordhit.png\"));\n\t\tturretword = new Texture(Gdx.files.internal(uiName + \"/turretword.png\"));\n\t\tturretwordHit = new Texture(Gdx.files.internal(uiName + \"/turretwordhit.png\"));\n\t\tfenceword = new Texture(Gdx.files.internal(uiName + \"/fenceword.png\"));\n\t\tfencewordHit = new Texture(Gdx.files.internal(uiName + \"/fencewordhit.png\"));\n\t\tbarrierword = new Texture(Gdx.files.internal(uiName + \"/barrierword.png\"));\n\t\tbarrierwordHit = new Texture(Gdx.files.internal(uiName + \"/barrierwordhit.png\"));\n\t\tgatewayword = new Texture(Gdx.files.internal(uiName + \"/gatewayword.png\"));\n\t\tgatewaywordHit = new Texture(Gdx.files.internal(uiName + \"/gatewaywordhit.png\"));\n\t\tpowerupword = new Texture(Gdx.files.internal(uiName + \"/powerupword.png\"));\n\t\tpowerupwordHit = new Texture(Gdx.files.internal(uiName + \"/powerupwordhit.png\"));\n\t\tswitchword = new Texture(Gdx.files.internal(uiName + \"/switchword.png\"));\n\t\tswitchwordHit = new Texture(Gdx.files.internal(uiName + \"/switchwordhit.png\"));\n\t\tenemyfighterword = new Texture(Gdx.files.internal(uiName + \"/enemyfighterword.png\"));\n\t\tenemyfighterwordHit = new Texture(Gdx.files.internal(uiName + \"/enemyfighterwordhit.png\"));\n\t\tmineword = new Texture(Gdx.files.internal(uiName + \"/mineword.png\"));\n\t\tminewordHit = new Texture(Gdx.files.internal(uiName + \"/minewordhit.png\"));\n\t\tpushblockword = new Texture(Gdx.files.internal(uiName + \"/pushblockword.png\"));\n\t\tpushblockwordHit = new Texture(Gdx.files.internal(uiName + \"/pushblockwordhit.png\"));\n\t\tbombupword = new Texture(Gdx.files.internal(uiName + \"/bombupword.png\"));\n\t\tbombupwordHit = new Texture(Gdx.files.internal(uiName + \"/bombupwordhit.png\"));\n\t\t\n\t\t// ui\n\t\tsoundonbutton = new Texture(Gdx.files.internal(uiName + \"/soundon.png\"));\n\t\tsoundoffbutton = new Texture(Gdx.files.internal(uiName + \"/soundoff.png\"));\n\t\tcreatebutton = new Texture(Gdx.files.internal(uiName + \"/createbutton.png\"));\n\t\tnocreatebutton = new Texture(Gdx.files.internal(uiName + \"/nocreatebutton.png\"));\n\t\tloaderTexture = new Texture(Gdx.files.internal(uiName + \"/ff2loader.png\"));\n\t\tgameOverTexture = new Texture(Gdx.files.internal(uiName + \"/gameover.png\"));\n\t\tnextFieldTexture = new Texture(Gdx.files.internal(uiName + \"/nextfield.png\"));\n\t\t\n\t\tmenubutton = new Texture(Gdx.files.internal(uiName + \"/menubutton.png\"));\n\t\tnomenubutton = new Texture(Gdx.files.internal(uiName + \"/nomenubutton.png\"));\n\t\tdiffEasyButton = new Texture(Gdx.files.internal(uiName + \"/diffeasybutton.png\"));\n\t\tdiffNormButton = new Texture(Gdx.files.internal(uiName + \"/diffnormbutton.png\"));\n\t\tdiffHardButton = new Texture(Gdx.files.internal(uiName + \"/diffhardbutton.png\"));\n\t\tosdButton = new Texture(Gdx.files.internal(uiName + \"/osdbutton.png\"));\n\t\t\n\t\texoFFfont = new BitmapFont(Gdx.files.internal(uiName + \"/font/exo-ff.fnt\"), true);\n\t\t\n\t\t// creator\n\t\texitbutton = new Texture(Gdx.files.internal(creatorName + \"/exitbutton.png\"));\n\t\tfilebutton = new Texture(Gdx.files.internal(creatorName + \"/filebutton.png\"));\n\t\ttoolsbutton = new Texture(Gdx.files.internal(creatorName + \"/toolsbutton.png\"));\n\t\tnextbutton = new Texture(Gdx.files.internal(creatorName + \"/nextbutton.png\"));\n\t\tprevbutton = new Texture(Gdx.files.internal(creatorName + \"/prevbutton.png\"));\n\t\tdeletebutton = new Texture(Gdx.files.internal(creatorName + \"/deletebutton.png\"));\n\t\tyesbutton = new Texture(Gdx.files.internal(creatorName + \"/yesbutton.png\"));\n\t\tnobutton = new Texture(Gdx.files.internal(creatorName + \"/nobutton.png\"));\n\t\tbuildbutton = new Texture(Gdx.files.internal(creatorName + \"/buildbutton.png\"));\n\t\tprocbutton = new Texture(Gdx.files.internal(creatorName + \"/procbutton.png\"));\n\t\trandbutton = new Texture(Gdx.files.internal(creatorName + \"/randbutton.png\"));\n\t\tgroupsbutton = new Texture(Gdx.files.internal(creatorName + \"/groupsbutton.png\"));\n\t\tarenabutton = new Texture(Gdx.files.internal(creatorName + \"/arenabutton.png\"));\n\t\tfileExitButton = new Texture(Gdx.files.internal(creatorName + \"/fileexitbutton.png\"));\n\t\tfileLoadButton = new Texture(Gdx.files.internal(creatorName + \"/loadbutton.png\"));\n\t\tfileSaveButton = new Texture(Gdx.files.internal(creatorName + \"/savebutton.png\"));\n\t\tfilePlayButton = new Texture(Gdx.files.internal(creatorName + \"/playbutton.png\"));\n\t\tfileNoPlayButton = new Texture(Gdx.files.internal(creatorName + \"/noplaybutton.png\"));\n\t\tfileSendButton = new Texture(Gdx.files.internal(creatorName + \"/sendbutton.png\"));\n\t\ttoasterBack = new Texture(Gdx.files.internal(creatorName + \"/toasterback.png\"));\n\t\twindowBack = new Texture(Gdx.files.internal(creatorName + \"/windowback.png\"));\n\t\temptyCellTexture = new Texture(Gdx.files.internal(creatorName + \"/emptycell.png\"));\n\t\tcreateSplashTexture = new Texture(Gdx.files.internal(creatorName + \"/createsplash.png\"));\n\t\t\n\t\tplayerDef = new Texture(Gdx.files.internal(creatorName + \"/player_def.png\"));\n\t\tgatewayDef = new Texture(Gdx.files.internal(creatorName + \"/gateway_def.png\"));\n\t\tpowerupDef = new Texture(Gdx.files.internal(creatorName + \"/powerup_def.png\"));\n\t\tbombupDef = new Texture(Gdx.files.internal(creatorName + \"/bombup_def.png\"));\n\t\tswitchDef = new Texture(Gdx.files.internal(creatorName + \"/switch_def.png\"));\n\t\tscaffoldDef = new Texture(Gdx.files.internal(creatorName + \"/scaffold_def.png\"));\n\t\tbarrierDef = new Texture(Gdx.files.internal(creatorName + \"/barrier_def.png\"));\n\t\tfenceDef = new Texture(Gdx.files.internal(creatorName + \"/fence_def.png\"));\n\t\tturretDef = new Texture(Gdx.files.internal(creatorName + \"/turret_def.png\"));\n\t\tenemyDef = new Texture(Gdx.files.internal(creatorName + \"/enemy_def.png\"));\n\t\tmineDef = new Texture(Gdx.files.internal(creatorName + \"/mine_def.png\"));\n\t\tpushblockDef = new Texture(Gdx.files.internal(creatorName + \"/pushblock_def.png\"));\n\t\thangerDef = new Texture(Gdx.files.internal(creatorName + \"/hanger_def.png\"));\n\t\t\n\t\tdeleteDef = new Texture(Gdx.files.internal(creatorName + \"/delete_def.png\"));\n\t\tdeleteSel = new Texture(Gdx.files.internal(creatorName + \"/delete_sel.png\"));\n\t\tlockUnlock = new Texture(Gdx.files.internal(creatorName + \"/lock_unlock.png\"));\n\t\tlockLock = new Texture(Gdx.files.internal(creatorName + \"/lock_lock.png\"));\n\t\ttoolSelect = new Texture(Gdx.files.internal(creatorName + \"/toolselect.png\"));\n\t\t\n\t\t// game stuff\n\t\tplayerShipTexture = new Texture(Gdx.files.internal(gameName + \"/player2ship.png\"));\n\t\tplayerShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shippowerup.png\"));\n\t\tplayerShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shipbombup.png\"));\n\t\tenemyShipTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2ship.png\"));\n\t\tenemyShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shippowerup.png\"));\n\t\tenemyShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipbombup.png\"));\n\t\tenemyShipOrderedTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipordered.png\"));\n\t\tplayerBulletTexture = new Texture(Gdx.files.internal(gameName + \"/playerlaser.png\"));\n\t\tplayerCableTexture = new Texture(Gdx.files.internal(gameName + \"/playercable.png\"));\n\t\tenemyBulletTexture = new Texture(Gdx.files.internal(gameName + \"/enemylaser.png\"));\n\t\tenemyCableTexture = new Texture(Gdx.files.internal(gameName + \"/enemycable.png\"));\n\t\tbombCableTexture = new Texture(Gdx.files.internal(gameName + \"/bombcable.png\"));\n\t\tturretTexture = new Texture(Gdx.files.internal(gameName + \"/turret.png\"));\n\t\tturrethitTexture = new Texture(Gdx.files.internal(gameName + \"/turrethit.png\"));\t\n\t\tfenceTexture = new Texture(Gdx.files.internal(gameName + \"/fence.png\"));\n\t\tfencehitTexture = new Texture(Gdx.files.internal(gameName + \"/fencehit.png\"));\n\t\tbarrierTexture = new Texture(Gdx.files.internal(gameName + \"/barrier.png\"));\n\t\tbarrierhitTexture = new Texture(Gdx.files.internal(gameName + \"/barrierhit.png\"));\n\t\tgatewayonTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayon.png\"));\n\t\tgatewayoffTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayoff.png\"));\n\t\tpowerupTexture = new Texture(Gdx.files.internal(gameName + \"/powerup.png\"));\n\t\tbombupTexture = new Texture(Gdx.files.internal(gameName + \"/bombup.png\"));\n\t\tbombupCharge = new Texture(Gdx.files.internal(gameName + \"/bombupcharge.png\"));\n\t\texplosion = new Texture(Gdx.files.internal(gameName + \"/explosion.png\"));\n\t\tdeath = new Texture(Gdx.files.internal(gameName + \"/death.png\"));\n\t\tpowerupCharge = new Texture(Gdx.files.internal(gameName + \"/powerupcharge.png\"));\n\t\tswitchonTexture = new Texture(Gdx.files.internal(gameName + \"/switchon.png\"));\n\t\tswitchoffTexture = new Texture(Gdx.files.internal(gameName + \"/switchoff.png\"));\n\t\tscaffoldTexture = new Texture(Gdx.files.internal(gameName + \"/scaffold.png\"));\n\t\tmineTexture = new Texture(Gdx.files.internal(gameName + \"/mine.png\"));\n\t\tminehitTexture = new Texture(Gdx.files.internal(gameName + \"/minehit.png\"));\n\t\tmineDebrisTexture = new Texture(Gdx.files.internal(gameName + \"/minedebris.png\"));\n\t\tpushblockTexture = new Texture(Gdx.files.internal(gameName + \"/pushblock.png\"));\n\t\thangerTexture = new Texture(Gdx.files.internal(gameName + \"/hanger.png\"));\n\t\thangerhitTexture = new Texture(Gdx.files.internal(gameName + \"/hangerhit.png\"));\n\t\t// have a catch here for the loaded=true?\n\t\tloaded = true;\n\t}",
"public static void loadImages(){\n\t\tsetPath(main.getShop().inventory.getEquipID());\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"res/world/bg.png\"));\n\t\t\tterrain = ImageIO.read(new File(\"res/world/solids.png\"));\n\t\t\t// Character and Armour\n\t\t\tcharacters = ImageIO.read(new File(\"res/world/char3.png\"));\n\t\t\tcharactersHead =ImageIO.read(new File(\"res/world/charhead\"+path[0]+\".png\"));\n\t\t\tcharactersTop = ImageIO.read(new File(\"res/world/chartop\"+path[2]+\".png\"));\n\t\t\tcharactersShoulder = ImageIO.read(new File(\"res/world/charshoulders\"+path[3]+\".png\"));\n\t\t\tcharactersHand = ImageIO.read(new File(\"res/world/charhands\"+path[5]+\".png\"));\n\t\t\tcharactersBottom = ImageIO.read(new File(\"res/world/charbottom\"+path[8]+\".png\"));\n\t\t\tcharactersShoes = ImageIO.read(new File(\"res/world/charshoes\"+path[9]+\".png\"));\n\t\t\tcharactersBelt = ImageIO.read(new File(\"res/world/charBelt\"+path[4]+\".png\"));\n\n\t\t\tweaponBow = ImageIO.read(new File(\"res/world/bow.png\"));\n\t\t\tweaponArrow = ImageIO.read(new File(\"res/world/arrow.png\"));\n\t\t\tweaponSword = ImageIO.read(new File(\"res/world/sword.png\"));\n\t\t\titems = ImageIO.read(new File(\"res/world/items.png\"));\n\t\t\tnpc = ImageIO.read(new File(\"res/world/npc.png\"));\n\t\t\thealth = ImageIO.read(new File(\"res/world/health.png\"));\n\t\t\tenemies = ImageIO.read(new File(\"res/world/enemies.png\"));\n\t\t\tcoin = ImageIO.read(new File(\"res/world/coin.png\"));\n\t\t\tmana = ImageIO.read(new File(\"res/world/mana.gif\"));\n\t\t\tarrowP = ImageIO.read(new File(\"res/world/arrowP.png\"));\n\t\t\tbutton = ImageIO.read(new File(\"res/world/button.png\"));\n\t\t\tblood = ImageIO.read(new File(\"res/world/blood.png\"));\n\t\t\tarrowDisp = ImageIO.read(new File(\"res/world/arrowDisp.png\"));\n\t\t\tboss1 = ImageIO.read(new File(\"res/world/boss1.png\"));\n\t\t\tmagic = ImageIO.read(new File(\"res/world/magic.png\"));\n\t\t\tmainMenu = ImageIO.read(new File(\"res/world/MainMenu.png\"));\n\t\t\tinstructions = ImageIO.read(new File(\"res/world/instructions.png\"));\n\t\t\trespawn = ImageIO.read(new File(\"res/world/respawn.png\"));\n\t\t\tinventory = ImageIO.read(new File(\"res/world/inventory.png\"));\n shop = ImageIO.read(new File(\"res/world/shop.png\"));\n dizzy = ImageIO.read(new File(\"res/world/dizzy.png\"));\n pet = ImageIO.read(new File(\"res/world/pet.png\"));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error Loading Images\");\n\t\t}\n\t}",
"private void loadGLTextures(GL10 gl) throws IOException\t\t\t// Load Bitmaps And Convert To Textures\r\n {\r\n texture[0] = new Texture();\r\n texture[1] = new Texture();\r\n // Load The Bitmap, Check For Errors.\r\n TGALoader.loadTGA(texture[0], \"tga/uncompressed.tga\");\r\n TGALoader.loadTGA(texture[1], \"tga/compressed.tga\");\r\n for (int loop = 0; loop < 2; loop++)\t\t\t\t\t\t// Loop Through Both Textures\r\n {\r\n // Typical Texture Generation Using Data From The TGA ( CHANGE )\r\n gl.glGenTextures(1, texture[loop].texID, 0);\t\t\t\t// Create The Texture ( CHANGE )\r\n gl.glBindTexture(GL10.GL_TEXTURE_2D, texture[loop].texID[0]);\r\n gl.glTexImage2D(GL10.GL_TEXTURE_2D, 0, texture[loop].type, texture[loop].width, texture[loop].height, 0, texture[loop].type, GL10.GL_UNSIGNED_BYTE, texture[loop].imageData);\r\n gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);\r\n gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\r\n \r\n Log.i(\"40\", \"bpp = \" + texture[loop].bpp + \" type = \" + texture[loop].type);\r\n }\r\n }",
"public void reload() {\n mHandle = new Texture(mBitmap, mMinMode, mMagMode, mWrapS, mWrapT).getHandle();\n }",
"private void attachTextures(GameTerrain gameTerrain){\r\n\t\t//Get the texture collection from gameTerrain\r\n\t\tGameTerrainTexture_Collection gameTerrainTexture_Collection = gameTerrain.getGameTerrainTexture_Collection();\r\n\t\t//Activate and attach the background texture to the 1st unit\r\n\t\tGL13.glActiveTexture(GL13.GL_TEXTURE0);\r\n\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, gameTerrainTexture_Collection.getBackgroundTexture().getTextureReferenceID());\r\n\t\t//Activate and attach the red texture to the 2nd unit\r\n\t\tGL13.glActiveTexture(GL13.GL_TEXTURE1);\r\n\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, gameTerrainTexture_Collection.getRedTexture().getTextureReferenceID());\r\n\t\t//Activate and attach the blue texture to the 3rd unit\r\n\t\tGL13.glActiveTexture(GL13.GL_TEXTURE2);\r\n\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, gameTerrainTexture_Collection.getBlueTexture().getTextureReferenceID());\r\n\t\t//Activate and attach the green texture to the 4th unit\r\n\t\tGL13.glActiveTexture(GL13.GL_TEXTURE3);\r\n\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, gameTerrainTexture_Collection.getGreenTexture().getTextureReferenceID());\r\n\t\t//Activate and attach the blendmap to the 5th unit\r\n\t\tGL13.glActiveTexture(GL13.GL_TEXTURE4);\r\n\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, gameTerrain.getBlendMap().getTextureReferenceID());\r\n\t\t\r\n\t}",
"FixedTextureCache()\n {\n textureMap = new HashMap();\n componentMap = new HashMap();\n }",
"@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }",
"public static void reloadAll(){\n for(TextureHandler t : textures){\n if(t.themed){\n if(!t.theme.equals(preference.theme)){\n Gdx.app.debug(\"Blocktoidz\",\"reloading textures\");\n unloadAll();\n load();\n break;\n }\n }\n }\n }",
"public void load(String path) {\n try {\n texId = new TextureId(path);\n BufferedImage image = ImageIO.read(new FileInputStream(\"resources\" + texId.getPath()));\n createImage(image);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }",
"public void loadFromSavedBitmap() {\n if (bitmap != null) {\n // genera un nuovo puntatore ad una texture\n GLES20.glGenTextures(1, texture, 0);\n // lega questo puntatore ad una variabile disponibile all'app\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture[0]);\n\n // setta alcuni parametri che diranno a OpenGL come trattare la texture\n GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n // caricamento della texture\n GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);\n // libera memoria\n bitmap.recycle();\n }\n resourcesLoaded++;\n\n MyGLRenderer.checkGlError(\"loadFromSavedBitmap\");\n }",
"public void loadGLTexture(GL10 gl, Location location)\n\t{\n\t\tgl.glGenTextures(2, textures, 0);\n\n\t\t// loading texture\n\t\tBitmap bitmap;\n\t\tfloat width;\n\t\tfloat height;\n\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble longitude = location.getLongitude();\n\t\t\tif (longitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" E\" + df.format(Math.abs(longitude)) );\n\t\t\telse if (longitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" W\" + df.format(Math.abs(longitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_long[0] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[3] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_long[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle();\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[1]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble latitude = location.getLatitude();\n\t\t\tif (latitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" N\" + df.format(Math.abs(latitude)) );\n\t\t\telse if (latitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" S\" + df.format(Math.abs(latitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_lat[6] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[9] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_lat[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle(); \n\t}",
"public void preLoadContent(AssetManager manager) {\n\t\tif (worldAssetState != AssetState.EMPTY) {\n\t\t\treturn;\n\t\t}\n\n\t\tworldAssetState = AssetState.LOADING;\n\n\t\tmanager.load(KOI_TEXTURE, Texture.class);\n\t\tassets.add(KOI_TEXTURE);\n\n\t\tmanager.load(ENEMY_TEXTURE, Texture.class);\n\t\tassets.add(ENEMY_TEXTURE);\n\n\t\tmanager.load(LILY_TEXTURE, Texture.class);\n\t\tassets.add(LILY_TEXTURE);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_N, Texture.class);\n\t\tassets.add(LILY_TEXTURE_N);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_S, Texture.class);\n\t\tassets.add(LILY_TEXTURE_S);\n\n\t\tmanager.load(LANTERN_TEXTURE, Texture.class);\n\t\tassets.add(LANTERN_TEXTURE);\n\n\t\tmanager.load(LIGHTING_TEXTURE, Texture.class);\n\t\tassets.add(LIGHTING_TEXTURE);\n\n\t\tmanager.load(SHADOW_TEXTURE, Texture.class);\n\t\tassets.add(SHADOW_TEXTURE);\n\n\t\tmanager.load(GOAL_TEXTURE, Texture.class);\n\t\tassets.add(GOAL_TEXTURE);\n\n\t\tmanager.load(EARTH_FILE,Texture.class);\n\t\tassets.add(EARTH_FILE);\n\n\t\tmanager.load(EARTH_FILE_D,Texture.class);\n\t\tassets.add(EARTH_FILE_D);\n\t\tmanager.load(EARTH_FILE_N,Texture.class);\n\t\tassets.add(EARTH_FILE_N);\n\t\tmanager.load(EARTH_FILE_S,Texture.class);\n\t\tassets.add(EARTH_FILE_S);\n\t\tmanager.load(SHORE_FILE,Texture.class);\n\t\tassets.add(SHORE_FILE);\n\n\t\tmanager.load(ROCK_FILE_D,Texture.class);\n\t\tassets.add(ROCK_FILE_D);\n\t\tmanager.load(ROCK_FILE_N,Texture.class);\n\t\tassets.add(ROCK_FILE_N);\n\t\tmanager.load(ROCK_FILE_S,Texture.class);\n\t\tassets.add(ROCK_FILE_S);\n\n\t\tmanager.load(WHIRLPOOL_TEXTURE, Texture.class);\n\t\tassets.add(WHIRLPOOL_TEXTURE);\n\t\t\n\t\tmanager.load(ENERGYBAR_TEXTURE, Texture.class);\n\t\tassets.add(ENERGYBAR_TEXTURE);\n\n\t\tmanager.load(UI_FLOWER, Texture.class);\n\t\tassets.add(UI_FLOWER);\n\n\t\tmanager.load(OVERLAY, Texture.class);\n\t\tassets.add(OVERLAY);\n\n\t\tmanager.load(BACKGROUND_FILE_N, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_N);\n\n\t\tmanager.load(BACKGROUND_FILE_D, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_D);\n\n\t\tmanager.load(BACKGROUND_FILE_S, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_S);\n\t\t\n\t\t\n\n\t\tmanager.load(OVERLAY_FILE, Texture.class);\n\t\tassets.add(OVERLAY_FILE);\n\n\t\tmanager.load(KOI_ARROW, Texture.class);\n\t\tassets.add(KOI_ARROW);\n\t\tmanager.load(WHIRL_ARROW, Texture.class);\n\t\tassets.add(WHIRL_ARROW);\n\t\t\n\t\tmanager.load(TUTORIAL_TEXTURE1, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE1);\n\t\tmanager.load(TUTORIAL_TEXTURE2, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE2);\n\t\tmanager.load(TUTORIAL_TEXTURE3, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE3);\n\t\tmanager.load(TUTORIAL_TEXTURE4, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE4);\n\t\tmanager.load(TUTORIAL_TEXTURE5, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE5);\n\t\tmanager.load(TUTORIAL_TEXTURE6, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE6);\n\t\t\n\t\tmanager.load(HELP_TEXTURE, Texture.class);\n\t\tassets.add(HELP_TEXTURE);\n\t\t\n\n\t\treferenceC.a = 0f;\n\n\t\t// Load the font\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size2Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize2Params.fontFileName = FONT_FILE;\n\t\tsize2Params.fontParameters.size = FONT_SIZE;\n\t\tmanager.load(FONT_FILE, BitmapFont.class, size2Params);\n\t\tassets.add(FONT_FILE);\n\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size3Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize3Params.fontFileName = FONT_FILE2;\n\t\tsize3Params.fontParameters.size = FONT_SIZE2;\n\t\tmanager.load(FONT_FILE2, BitmapFont.class, size3Params);\n\t\tassets.add(FONT_FILE2);\n\t\t\n\t\t\n\t}",
"private void heroStandingTextureLoad() {\n standLeft = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n standBack = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_back.png\", Texture.class), 1, 1, 16, 21);\n standFront = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_front.png\", Texture.class), 1, 1, 17, 22);\n standRight = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n }",
"public Texture loadTexture(String file, Format format, boolean useMipMap);",
"public void unloadGameTextures()\r\n {\n }",
"public void loadTexture(int imageNum, Texture atex)\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tgl.glTexImage2D(GL_TEXTURE_2D, imageNum, 3, atex.gTexW, atex.gTexH, 0,\r\n\t\t GL_BGRA_EXT, GL_UNSIGNED_BYTE, atex.pixels);\r\n\t}",
"private void loadTextures() {\n\t\tspriteSheet01 = new Texture(\"data/buttonsspritesheet02.png\");\n\n\t\tnew TextureRegion(spriteSheet01, BROKEN_COLUMN * SQUARE_SIZE,\n\t\t\t\tBROKEN_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, EMPTY_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tEMPTY_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, ACTIVATED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, DEPRESSED_BUTTON * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, HIGHLIGHTED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, CAROUSEL_COLUMN * SQUARE_SIZE,\n\t\t\t\t(CAROUSEL_ROW * SQUARE_SIZE) + CAROUSEL_PIXELS, SQUARE_SIZE,\n\t\t\t\tCAROUSEL_PIXELS);\n\n\t\tnew TextureRegion(spriteSheet01, FIX_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tFIX_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, WILD_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tWILD_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tcarousel = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tcarousel[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(CAROUSEL_COLUMN * SQUARE_SIZE) + (i * CAROUSEL_PIXELS),\n\t\t\t\t\tCAROUSEL_ROW * SQUARE_SIZE, CAROUSEL_PIXELS,\n\t\t\t\t\tCAROUSEL_PIXELS);\n\t\t}\n\n\t\trings = new TextureRegion[RING_AMOUNT];\n\t\tfor (int i = 0; i < RING_AMOUNT; i++) {\n\t\t\trings[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tRING_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tmainColour = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tmainColour[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + MAIN_COLOUR_COLUMN) * SQUARE_SIZE, MAIN_COLOUR_ROW,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tspecials = new TextureRegion[SPECIALS_AMOUNT];\n\t\tfor (int i = 0; i < SPECIALS_ROW_ONE_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\t\tfor (int i = SPECIALS_ROW_ONE_AMOUNT; i < SPECIALS_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i - SPECIALS_ROW_ONE_AMOUNT) * SQUARE_SIZE,\n\t\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tenemyBaseColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyBaseColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_BASE_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyHalfColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyHalfColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_HALF_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyThirdColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyThirdColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_THIRD_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyRimColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyRimColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_RIM_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyConnectors = new TextureRegion[ENEMY_CONNECTORS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_CONNECTORS_AMOUNT; i++) {\n\t\t\tenemyConnectors[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + ENEMY_CONNECTORS_COLUMN) * SQUARE_SIZE,\n\t\t\t\t\tENEMY_CONNECTORS_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\t}",
"private void loadMap(BufferedImage[][] heroImages,\n\t\t\tBufferedImage[][] bossImages, BufferedImage[][] enemyImages) {\n\t\t// read in map graphics\n\t\tBufferedImage[] tiles = new BufferedImage[3];\n\t\tfor (int i = 0; i < tiles.length; i++)\n\t\t\ttiles[i] = Game.loadImage(\"ssTile\" + (i + 1) + \".png\");\n\n\t\t// create scanner\n\t\tScanner in = new Scanner(Game.loadStream(\"map2.txt\"));\n\n\t\t// read in map\n\t\tint width = in.nextInt(), height = in.nextInt();\n\t\tin.nextLine();\n\t\tin.nextLine();\n\t\tint[][] grid = new int[height][width];\n\t\tfor (int i = 0; i < height; i++)\n\t\t\tprocessMapLine(grid, in.nextLine(), width, i);\n\n\t\t// read in entities\n\t\thero = loadEntity(in, 200, heroImages, 32);\n\t\tboss = loadEntity(in, 1000, bossImages, 32);\n\t\tenemies = new ArrayList<SideScrollerEntity>();\n\t\tint numEnemies = in.nextInt();\n\t\tfor (int i = 0; i < numEnemies; i++)\n\t\t\tenemies.add(loadEntity(in, 1000, enemyImages, 32));\n\n\t\t// load shop graphics\n\t\tBufferedImage shopTile = Game.loadImage(\"shop2.png\");\n\n\t\tmap = new SideScrollerMap(this, this, hero, boss, enemies, 0,\n\t\t\t\t-32 * 32 + 600, sighting);\n\t\tmap.loadResources(tiles, grid, shopTile, 29, 5);\n\t}",
"public void loadTexture(GL10 gl, Context context) {\n\t gl.glGenTextures(1, textureIDs, 0); // Generate texture-ID array\n\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, textureIDs[0]); // Bind to texture ID\n\t // Set up texture filters\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\t \n\t // Construct an input stream to texture image \"res\\drawable\\gadiworks.png\"\n\t InputStream istream = context.getResources().openRawResource(R.drawable.gadiworks);\n\t Bitmap bitmap = null;\n\t try {\n\t // Read and decode input as bitmap\n\t bitmap = BitmapFactory.decodeStream(istream);\n\t } finally {\n\t try {\n\t istream.close();\n\t } catch(IOException e) { }\n\t }\n\t // Build Texture from loaded bitmap for the currently-bind texture ID\n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t bitmap.recycle();\n\t}",
"@Override\n public void onAdd() {\n onRemove();\n \n // Generate a list of renderable images\n MapChunk[] chunks = generateChunks(generate());\n \n // Ensure the list is valid\n if(chunks == null) {\n return;\n }\n \n // Move the textures onto Rectangle shapes\n int chunkWidth = getChunkWidth();\n int chunkHeight = getChunkHeight();\n \n int rows = getHeightInChunks();\n int cols = getWidthInChunks();\n \n // Init our storage\n mTextures = new Texture[ rows * cols ];\n mShapes = new RectangleShape[ rows * cols ];\n \n // Iterate the whole map in chunks\n for(int x = 0; x < cols; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Get the chunk for this position\n MapChunk thisChunk = chunks[ (y * cols) + x ];\n \n if(thisChunk == null) {\n // Something went wrong. Undo.\n onRemove();\n return;\n }\n \n // Convert our image into a texture\n Texture t = new Texture();\n if(t == null || !t.loadFromImage(thisChunk.image)) {\n onRemove();\n return;\n }\n \n // Store the texture for removal later on\n mTextures[ (y * cols) + x ] = t;\n \n // Create a rectangle shape\n RectangleShape r = new RectangleShape( chunkWidth, chunkHeight );\n \n // Apply some settings\n r.setTexture(t);\n r.setPosition( x * chunkWidth, y * chunkHeight );\n \n // Add this shape to the renderer\n if(mRenderer.add(r) < 0) {\n onRemove();\n return;\n }\n \n // Store the shape\n mShapes[ (y * cols) + x ] = r;\n \n }\n }\n \n }",
"private void ini_Sprites()\r\n\t{\r\n\t\tLogger.DEBUG(\"ini_Sprites\");\r\n\t\tResourceCache.LoadSprites(false);\r\n\t}",
"public void preload() {\n\t\ttry {\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\",\n\t\t\t\t\tResourceLoader.getResourceAsStream(file));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tloaded = true;\n\t}",
"private void loadMapData(Context context, int pixelsPerMeter,int px,int py){\n\n char c;\n\n //keep track of where we load our game objects\n int currentIndex = -1;\n\n //calculate the map's dimensions\n mapHeight = levelData.tiles.size();\n mapWidth = levelData.tiles.get(0).length();\n\n //iterate over the map to see if the object is empty space or a grass\n //if it's other than '.' - a switch is used to create the object at this location\n //if it's '1'- a new Grass object it's added to the arraylist\n //if it's 'p' the player it's initialized at the location\n\n for (int i = 0; i < levelData.tiles.size(); i++) {\n for (int j = 0; j < levelData.tiles.get(i).length(); j++) {\n\n c = levelData.tiles.get(i).charAt(j);\n //for empty spaces nothing to load\n if(c != '.'){\n currentIndex ++;\n switch (c){\n case '1' :\n //add grass object\n gameObjects.add(new Grass(j,i,c));\n break;\n\n case 'p':\n //add the player object\n gameObjects.add(new Player(context,px,py,pixelsPerMeter));\n playerIndex = currentIndex;\n //create a reference to the player\n player = (Player)gameObjects.get(playerIndex);\n break;\n }\n\n //check if a bitmap is prepared for the object that we just added in the gameobjects list\n //if not (the bitmap is still null) - it's have to be prepared\n if(bitmapsArray[getBitmapIndex(c)] == null){\n //prepare it and put in the bitmap array\n bitmapsArray[getBitmapIndex(c)] =\n gameObjects.get(currentIndex).prepareBitmap(context,\n gameObjects.get(currentIndex).getBitmapName(),\n pixelsPerMeter);\n }\n\n }\n\n }\n\n }\n }",
"public static void load(){\r\n\t \ttry {\r\n\t \t\t// load and set all sprites\r\n\t\t\t\tsetBlueGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/blueGarbage.png\")));\r\n\t\t\t\tsetRank(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/rank.png\")));\r\n\t\t\t\tsetRedGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/redGarbage.png\")));\r\n\t\t\t\tsetYellowGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowGarbage.png\")));\r\n\t\t\t\tsetGreenGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/greenGarbage.png\")));\r\n\t\t\t\tsetBlueSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/blueSnakeBodyPart.png\")));\r\n\t\t\t\tsetRedSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/redSnakeBodyPart.png\")));\r\n\t\t\t\tsetYellowSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowSnakeBodyPart.png\")));\r\n\t\t\t\tsetGreenSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/greenSnakeBodyPart.png\")));\r\n\t\t\t\tsetHeart(ImageIO.read(classPath.getResourceAsStream(\"/images/heart.png\")));\r\n\t\t\t\tsetGameScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenBackground.png\")));\r\n\t\t\t\tsetGameScreenHeader(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenHeader.png\")));\r\n\t\t\t\tsetGameOver(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameOver.png\")));\r\n\t\t\t\tsetHitsOwnBody(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsOwnBody.png\")));\r\n\t\t\t\tsetHitsWall(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsWall.png\")));\r\n\t\t\t\tsetWrongColor(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/wrongColor.png\")));\r\n\t\t\t\tsetHelpScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpScreenBackground.png\")));\r\n\t\t\t \tsetWarningScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/warningScreenBackground.png\")));\r\n\t\t\t \tsetOkButton(ImageIO.read(classPath.getClass().getResource(\"/images/okButton.png\")));\r\n\t\t\t \tsetMenuScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/menuScreenBackground.png\")));\r\n\t\t\t\tsetStartButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/startButton.png\")));\r\n\t\t\t\tsetExitButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/exitButton.png\")));\r\n\t\t\t\tsetHelpButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpButton.png\")));\r\n\t\t\t\t\r\n\t \t} \r\n\t \tcatch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getStackTrace(), \"Erro ao carregar imagens\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\r\n\t\t\t}\t\r\n \t\r\n \t}",
"public Sprite loadBitmap(Context context, GL10 gl, int resourceId)\r\n\t{\r\n\t if(context != null && gl != null)\r\n\t {\r\n\t \t//Generate one texture pointer...\r\n\t gl.glGenTextures(1, mTexture, 0);\r\n\t \r\n\t //grab location index\r\n\t int textureID = mTexture[0];\r\n\t \r\n\t\t\t//...and bind it to our array\r\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID);\r\n\t \r\n\t\t\t//Create Nearest Filtered Texture //GL_NEAREST\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\r\n\t\r\n\t\t\t//Different possible texture parameters, e.g. GL10.GL_CLAMP_TO_EDGE\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT);\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT);\r\n\t\t\t\r\n\t // select modulate to mix texture with color for shading\r\n\t gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, /*GL10.GL_REPLACE*/ GL10.GL_MODULATE);\r\n\t\r\n\t InputStream is = context.getResources().openRawResource(resourceId);\r\n\t Bitmap bitmap;\r\n\t try\r\n\t {\r\n\t bitmap = BitmapFactory.decodeStream(is, null, sBitmapOptions);\r\n\t }\r\n\t finally\r\n\t {\r\n\t try\r\n\t {\r\n\t is.close();\r\n\t }\r\n\t catch(IOException e)\r\n\t {\r\n\t //Log.e(\"ImageLoaderIO\", \"DecodeStreamError: \" + e);\r\n\t }\r\n\t }\r\n\t\r\n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n\t int width = bitmap.getWidth();\r\n\t int height = bitmap.getHeight();\r\n\t \r\n\t // clean up\r\n\t bitmap.recycle();\r\n\t\r\n\t return new Sprite(textureID,width,height);\r\n\t }\r\n\t return null;\r\n\t}",
"@Override\n\tpublic void loadUnits() {\n\t\tsprites.put(\"axeman\", RES.getSprite(\"axeman\"));\n\t\tsprites.put(\"warg\", RES.getSprite(\"warg_right\"));\n\t}",
"private void bindTextures(Terrain terrain){\n TerrainTexPack texturePack = terrain.getTexturePack();\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, texturePack.getBackgroundTexture().getTextureID());\n glActiveTexture(GL_TEXTURE1);\n glBindTexture(GL_TEXTURE_2D, texturePack.getrTexture().getTextureID());\n glActiveTexture(GL_TEXTURE2);\n glBindTexture(GL_TEXTURE_2D, texturePack.getgTexture().getTextureID());\n glActiveTexture(GL_TEXTURE3);\n glBindTexture(GL_TEXTURE_2D, texturePack.getbTexture().getTextureID());\n glActiveTexture(GL_TEXTURE4);\n glBindTexture(GL_TEXTURE_2D, terrain.getBlendMap().getTextureID());\n\n }",
"private void loadAssets()\n {\n assetManager.setErrorListener(this);\n // load texture atlas\n assetManager.load(Constants.TEXTURE_ATLAS_OBJECTS, TextureAtlas.class);\n // start loading assets and wait until finished\n assetManager.finishLoading();\n\n // load texture atlas\n assetManager.load(Constants.TEXTURE_ATLAS_OBJECTS_02, TextureAtlas.class);\n // start loading assets and wait until finished\n assetManager.finishLoading();\n\n // Load strings resource file\n assetManager.load(Constants.I18N_BUNDLE, I18NBundle.class);\n // start loading assets and wait until finished\n assetManager.finishLoading();\n\n Gdx.app.debug(TAG, \"# of assets loaded: \" + assetManager.getAssetNames().size);\n }",
"private static void loadSprites(){\n \t\tshipSprites.put(\"SCOUT_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_BLUE\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/blue/colonizer.png\"), 0.5f, 0.5f));\n \t\t\n \t\t/*\n \t\t * Ships Red Player\n \t\t */\n \t\tshipSprites.put(\"SCOUT_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/scout.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"HUNTER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/hunter.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"DESTROYER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/destroyer.png\"), 0, 0.5f));\n \t\tshipSprites.put(\"COLONIZER_RED\", new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/red/colonizer.png\"), 0.5f, 0.5f));\n \n \t\t/*\n \t\t * Path Arrows\n \t\t */\n\t\tpathTextures.put(\"HEAD\", Toolkit.getDefaultToolkit().getImage(\"res/path/head.png\"));\n\t\tpathTextures.put(\"START\", Toolkit.getDefaultToolkit().getImage(\"res/path/start.png\"));\n\t\tpathTextures.put(\"STRAIGHT\", Toolkit.getDefaultToolkit().getImage(\"res/path/straight.png\"));\n\t\tpathTextures.put(\"TURN\", Toolkit.getDefaultToolkit().getImage(\"res/path/turn.png\"));\n \t\t\n \t\t/*\n \t\t * Planets\n \t\t */\n \t\tmetalplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_0.png\"), 0.5f, 0));\n \t\tmetalplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_1.png\"), 0.5f, 0));\n \t\tmetalplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_2.png\"), 0.5f, 0));\n \t\tmetalplanets.put(3, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/metalplanet_3.png\"), 0.5f, 0));\n \t\tgasplanets.put(0, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_0.png\"), 0.5f, 0));\n \t\tgasplanets.put(1, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_1.png\"), 0.5f, 0));\n \t\tgasplanets.put(2, new Sprite(Toolkit.getDefaultToolkit().getImage(\"res/icons/planets/gasplanet_2.png\"), 0.5f, 0));\n \t\t\n \t\t/*\n \t\t * Colony Sprite\n \t\t */\n \t\tloadColonySprites(Color.RED, \"RED\");\n \t\tloadColonySprites(Color.BLUE, \"BLUE\");\n \t}",
"public void freeTextures(){\n\t\t//android.util.Log.d(TAG,\"freeTextures()\");\n\t\tthis.textures.free();\n\t}",
"private static void initResources() {\n\t\tString[] res = new String[4];\r\n\t\tres[0] = \"res/entity/spaceshipv1.png\";\r\n\t\tres[1] = \"res/entity/prob.png\";\r\n\t\tres[2] = \"res/dot.png\";\r\n\t\tres[3] = \"res/entity/spaceshipv2.png\";\r\n\t\tSResLoader.addSpriteArray(res);\r\n\t}",
"public static void load() {\n\t\tspritesheet = new Spritesheet(\"src/de/kaffeeliebhaber/assets/pyxel/voland_spritesheet_new.png\", 32, 32);\n\t\tspritesheet.load();\n\t\t\n\t\t// load player\n\t\tAssetsLoader.loadPlayerAssets();\n\t\t\n\t\t// load crate\n\t\tAssetsLoader.loadCrates();\n\t\t\n\t\t// load item spritesheet \n\t\tspritesheetInventory = new Spritesheet(Config.ITEM_SPRITESHEET, Config.ITEM_SIZE, Config.ITEM_SIZE);\n\t\tspritesheetInventory.load();\n\t\t\n\t\t// load font \n\t\tloadFonts();\n\t\t\n\t\t// ui\n\t\timageUI = ImageLoader.loadImage(\"src/de/kaffeeliebhaber/assets/ui/ui.png\");\n\t\t\n\t\tAssetsLoader.loadInfoPaneAssets();\n\t\t\n\t\t// npc\n\t\tspritesheetNPC = new Spritesheet(\"src/de/kaffeeliebhaber/assets/AH_SpriteSheet_People1.png\", 16, 16);\n\t\tspritesheetNPC.load();\n\t\t\n\t\t// fox\n\t\tspritesheetNPCFox = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/72c68863962b7a6b5a9f5f5bcc5afb16.png\", 32, 32);\n\t\tspritesheetNPCFox.load();\n\n\t\t// *** LOAD NPCs\n\t\tAssetsLoader.loadFoxAssets();\n\t\t\n\t\tAssetsLoader.loadNPCs();\n\t\t\n\t\tspritesheetFemale = new Spritesheet(\"src/de/kaffeeliebhaber/assets/imgs/Female 01-1.png\", 32, 32);\n\t\tspritesheetFemale.load();\n\t}",
"public void loadTexture(String s) {\n\t\tFile file = new File(s);\n\t\ttry {\n\t\t\tbufferimage = ImageIO.read(file);\n\t\t\tint pixels[] = bufferimage.getRGB(0, 0, bufferimage.getWidth(),\n\t\t\t\t\tbufferimage.getHeight(), null, 0, bufferimage.getWidth());\n\t\t\tbuffer = IntBuffer.wrap(pixels);\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void loadGraphics() {\n\t\ttopAtlas = new BitmapTextureAtlas(this.activity.getTextureManager(), 1024, 1024);\r\n\t\ttopRegion = BitmapTextureAtlasTextureRegionFactory.createFromAsset(topAtlas, activity, \"pizza_top.png\", 0, 0);\r\n\t\ttopAtlas.load();\r\n\t\t\r\n\t\t\r\n\t\tbottomAtlas = new BitmapTextureAtlas(this.activity.getTextureManager(), 1024, 1024);\r\n\t\tbottomRegion = BitmapTextureAtlasTextureRegionFactory.createFromAsset(bottomAtlas, activity, \"pizza_bottom.png\", 0, 0);\r\n\t\tbottomAtlas.load();\t\r\n\t\t\t\t\t\t\r\n\t\t\r\n\t\tbalanceAtlas = new BuildableBitmapTextureAtlas(engine.getTextureManager(), 1024, 512);\r\n\t\trod = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"baserod.png\");\r\n\t\tbase = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"balancebase.png\");\r\n\t\tbalanceRod = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"balancerod.png\");\r\n\t\tchain = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"chain.png\");\r\n\t\tpan = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"pan.png\");\r\n\t\tok = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"OK.png\");\r\n\t\twinner = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"winner.png\");\r\n\t\ticon = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"icon.png\");\r\n\t\t\r\n\t\tweight = BitmapTextureAtlasTextureRegionFactory.createFromAsset(balanceAtlas, activity, \"w.png\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tbalanceAtlas.build(new BlackPawnTextureAtlasBuilder<IBitmapTextureAtlasSource, BitmapTextureAtlas>(0, 1, 1));\r\n\t\t} catch (TextureAtlasBuilderException e) {\r\n\t\t\tLog.e(\"PLAYSCENE\", \"ERROR BUILDING BALANCEATLAS\");\r\n\t\t}\r\n\t\tbalanceAtlas.load();\r\n\t\t\r\n\t}",
"@Override\n\tpublic void unloadResources() {\n\t\ttextureManager.unLoadTextures();\n\t}",
"public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }",
"public void loadTileImages() {\n // keep looking for tile A,B,C, etc. this makes it\n // easy to drop new tiles in the images/ directory\n tiles = new ArrayList();\n char ch = 'A';\n while (true) {\n String name = \"tile_\" + ch + \".png\";\n File file = new File(\"images/\" + name);\n if (!file.exists()) {\n break;\n }\n tiles.add(loadImage(name));\n ch++;\n }\n }",
"@Override\n\tpublic void load(String fileName) throws IOException\n\t{\n\t\tBufferedImage i;\n\t\t\n\t\tFile f = new File(fileName);\n\t\ti = ImageIO.read(f);\n\t\t\n\t\ttry {\n\t\t\tmethodRGBA(f,fileName);\n//\t\t\tmethodRGB(f,fileName);\n\t\t} catch (Exception e) {}\n\t\t\n\t\tgl.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, 1);\n\t\tgl.glGenTextures(1, id);\n\t\tgl.glBindTexture(GL.GL_TEXTURE_2D, id.get(0));\n\n\t\tw = i.getWidth();\n\t\th = i.getHeight();\n\t\tIntBuffer buf = getData(i);\n\t\tgl.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, w, h, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, buf);\t\t\t\n\t}",
"@Override\n\t\tpublic TextureAtlas<String> load(JSONObject root) throws IOException {\n\t\t\tfinal JSONArray array = root.getJSONArray(\"atlas\");\n\n\t\t\t// Load texture atlas\n\t\t\treturn StreamSupport\n\t\t\t\t\t.stream(array.spliterator(), false)\n\t\t\t\t\t.map(JSONObject.class::cast)\n\t\t\t\t\t.map(Loader::entry)\n\t\t\t\t\t.collect(collectingAndThen(toMap(Entry::getKey, Entry::getValue), TextureAtlas::of));\n\t\t}",
"public void findImages() {\n URL imgURL = ImageLoader.class.getResource(\"/BackgroundMenu.jpg\");\n this.backgroundImages.put(MenuP.TITLE, loadImage(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/backgroundGame.png\");\n this.backgroundImages.put(ArenaView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/gameOver.jpg\");\n this.backgroundImages.put(GameOverView.TITLE, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Player.png\");\n this.entityImages.put(ID.PLAYER, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Enemy1.png\");\n this.entityImages.put(ID.BASIC_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/boss.png\");\n this.entityImages.put(ID.BOSS_ENEMY, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/meteorBrown_big1.png\");\n this.entityImages.put(ID.METEOR, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/BlueBullet.png\");\n this.bulletImages.put(new Pair<>(ID.PLAYER_BULLET, ID.PLAYER), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/redBullet.png\");\n this.entityImages.put(ID.ENEMY_BULLET, loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_FireBoost.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Freeze.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL)); \n \n imgURL = ImageLoader.class.getResource(\"/powerup_Health.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.HEALTH), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/powerup_Shield.png\");\n this.powerUpImages.put(new Pair<>(ID.POWER_UP, PowerUpT.SHIELD), loadImage(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/bulletSpeedUp.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FIRE_BOOST), loadEffect(imgURL));\n \n imgURL = ImageLoader.class.getResource(\"/Explosion.png\");\n this.AnimationsEffect.put(new Pair<>(ID.EFFECT, SpecialEffectT.EXPLOSION), loadEffect(imgURL));\n\n imgURL = ImageLoader.class.getResource(\"/freeze.png\");\n this.AnimationsPowerUp.put(new Pair<>(ID.POWER_UP, PowerUpT.FREEZE), loadImage(imgURL));\n }",
"TiledMap loadMap(String path);",
"public static void loadImages() {\n PonySprite.loadImages(imgKey, \"graphics/ponies/GrannySmith.png\");\n }",
"TextureAtlas.AtlasRegion getTexture(FileHandle textureFile);",
"public interface TextureAtlas<T> {\n\t/**\n\t *\n\t * @param key\n\t * @return\n\t */\n\tRectangle quad(T key);\n\n\t/**\n\t *\n\t * @param <T>\n\t * @param atlas\n\t * @return\n\t */\n\tstatic <T> TextureAtlas<T> of(Map<T, Rectangle> atlas) {\n\t\treturn atlas::get;\n\t}\n\n\t/**\n\t * Loader for a texture atlas.\n\t * <p>\n\t * A texture atlas is specified as a JSON document illustrated by the following example:\n\t * <p>\n\t * <pre>\n\t * {\n\t * atlas: [\n\t * {\n\t * name: rectangle,\n\t * rect: [1, 2, 3, 4]\n\t * }\n\t * ]\n\t * }\n\t * </pre>\n\t */\n\tpublic static class Loader implements ResourceLoader<JSONObject, TextureAtlas<String>> {\n\t\t@Override\n\t\tpublic JSONObject map(InputStream in) throws IOException {\n\t\t\treturn new JSONObject(new JSONTokener(in));\n\t\t}\n\n\t\t@Override\n\t\tpublic TextureAtlas<String> load(JSONObject root) throws IOException {\n\t\t\t// Extract array of entries\n\t\t\tfinal JSONArray array = root.getJSONArray(\"atlas\");\n\n\t\t\t// Load texture atlas\n\t\t\treturn StreamSupport\n\t\t\t\t\t.stream(array.spliterator(), false)\n\t\t\t\t\t.map(JSONObject.class::cast)\n\t\t\t\t\t.map(Loader::entry)\n\t\t\t\t\t.collect(collectingAndThen(toMap(Entry::getKey, Entry::getValue), TextureAtlas::of));\n\t\t}\n\n\t\t/**\n\t\t * Loads a texture atlas entry.\n\t\t */\n\t\tprivate static Entry<String, Rectangle> entry(JSONObject entry) {\n\t\t\tfinal String name = entry.getString(\"name\").trim();\n\t\t\tfinal JSONArray array = entry.getJSONArray(\"rect\");\n\t\t\tfinal Rectangle rect = new Rectangle(\n\t\t\t\t\tarray.getInt(0),\n\t\t\t\t\tarray.getInt(1),\n\t\t\t\t\tarray.getInt(2),\n\t\t\t\t\tarray.getInt(3)\n\t\t\t);\n\t\t\treturn Map.entry(name, rect);\n\t\t}\n\t}\n}",
"private static void loadAlternateTextures(GameTexture texture, int xTile, int yTile) {\n texture.addImage(TextureTheme.TILE_ALTERNATE_PALETTE1, TILE_SHEET.getSubimage(275 + (17 * xTile), 194 + (17 * yTile), 16, 16));\n texture.addImage(TextureTheme.TILE_ALTERNATE_PALETTE2, TILE_SHEET.getSubimage(275 + (17 * xTile), 271 + (17 * yTile), 16, 16));\n }",
"public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}",
"static Texture loadCubeMap(String name) {\n\n GL4 gl = (GL4) GLContext.getCurrentGL(); // this gl context not appropriate?\n GLProfile glp = gl.getGLProfile();\n Texture cubeMap = TextureIO.newTexture(GL4.GL_TEXTURE_CUBE_MAP);\n\n // System.out.println(\"estimated memory \" + cubeMap.getEstimatedMemorySize());\n\n try {\n TextureData top = TextureIO.newTextureData(glp, new File(name + \"/top.png\"), false, \"png\");\n TextureData bot = TextureIO.newTextureData(glp, new File(name + \"/bot.png\"), false, \"png\");\n TextureData left = TextureIO.newTextureData(glp, new File(name + \"/left.png\"), false, \"png\");\n TextureData right = TextureIO.newTextureData(glp, new File(name + \"/right.png\"), false, \"png\");\n TextureData front = TextureIO.newTextureData(glp, new File(name + \"/front.png\"), false, \"png\");\n TextureData back = TextureIO.newTextureData(glp, new File(name + \"/back.png\"), false, \"png\");\n\n // System.out.println(\"front is null \" + (top == null));\n\n cubeMap.updateImage(gl, right, GL4.GL_TEXTURE_CUBE_MAP_POSITIVE_X);\n cubeMap.updateImage(gl, left, GL4.GL_TEXTURE_CUBE_MAP_NEGATIVE_X);\n cubeMap.updateImage(gl, top, GL4.GL_TEXTURE_CUBE_MAP_POSITIVE_Z);\n cubeMap.updateImage(gl, bot, GL4.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z);\n cubeMap.updateImage(gl, front, GL4.GL_TEXTURE_CUBE_MAP_POSITIVE_Y);\n cubeMap.updateImage(gl, back, GL4.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y);\n\n } catch (Exception e) {\n System.out.println(\"failed load \" + name + \" cubemap\");\n }\n\n // System.out.println(\"estimated memory \" + cubeMap.getEstimatedMemorySize());\n\n // gl.glTexParameteri(GL4.GL_TEXTURE_CUBE_MAP, GL4.GL_TEXTURE_WRAP_S, GL4.GL_CLAMP_TO_EDGE);\n // gl.glTexParameteri(GL4.GL_TEXTURE_CUBE_MAP, GL4.GL_TEXTURE_WRAP_T, GL4.GL_CLAMP_TO_EDGE);\n // gl.glTexParameteri(GL4.GL_TEXTURE_CUBE_MAP, GL4.GL_TEXTURE_WRAP_R, GL4.GL_CLAMP_TO_EDGE);\n\n return cubeMap;\n }",
"abstract public void loadSprite();",
"private void init() {\n\t\trunning = true;\n\t\timage = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);\n\t\tg = (Graphics2D) image.getGraphics();\n\t\ttheMap.loadTiles(\"resizedTiles2.png\");\n\t}",
"public static void loadTiles() {\n\t\tTILE_SETS.put(\"grass\", TileSet.loadTileSet(\"plains\"));\n\t}",
"private void loadSprites() throws IOException {\n \t\tsprites.put(\"fullBin\", ImageIO.read(new File(\"user-trash-full64.png\")));\n \t\tsprites.put(\"emptyBin\", ImageIO.read(new File(\"user-trash64.png\")));\n \t\tsprites.put(\"sysfileLarge\", ImageIO.read(new File(\"sysfile1-48.png\")));\n \t\tsprites.put(\"sysfileMedium\", ImageIO.read(new File(\"sysfile2-32.png\")));\n \t\tsprites.put(\"sysfileSmall\", ImageIO.read(new File(\"sysfile3-16.png\")));\n \t\tsprites.put(\"junk\", ImageIO.read(new File(\"junk.png\")));\n \t\tsprites.put(\"grass\", ImageIO.read(new File(\"grass.jpg\")));\n \t}",
"public static void LoadSpritesIntoArray() {\r\n\t\t// Get all nodes for the settings\r\n\t\t// Node main = document.getElementById(\"main\");\r\n\t\t// Node textures = document.getElementById(\"textures\");\r\n\t\t// NodeList nList = document.getElementsByTagName(\"TexturePath\");\r\n\r\n\t\t// for (Element texPath : texturePathElements) {\r\n\t\t// System.out.println(texPath.getAttribute(\"name\") + \" \" +\r\n\t\t// texPath.getAttribute(\"name\"));\r\n\t\t// sprites.add(new Sprite(texPath.getAttribute(\"name\"),\r\n\t\t// texPath.getAttribute(\"path\")));\r\n\t\t// }\r\n\r\n\t\tsprites = ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game\");\r\n\r\n\t\t/*\r\n\t\t * This method i got from a stack overflow question\r\n\t\t * https://stackoverflow.com/questions/22610526/how-to-append-elements-\r\n\t\t * at-the-end-of-arraylist-in-java\r\n\t\t */\r\n\t\tint endOfList = sprites.size();\r\n\t\tsprites.addAll(endOfList, ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game_HUD\"));\r\n\t\tendOfList = sprites.size();\r\n\t\tsprites.addAll(endOfList, ImageTools.LoadAllSpriteTexturesFromSpriteSheet(\"In_Game_Custom\"));\r\n\t\tSystem.out.println(endOfList);\r\n\r\n\t\tfor (Element el : texturePathElements) {\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsprites.add(new Sprite(el.getAttribute(\"name\"), el.getAttribute(\"path\")));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tisTexturesDone = true;\r\n\t}",
"public static Render loadBitmap(String location) {\n try {\n BufferedImage texture = ImageIO.read(new File(location));\n int width = texture.getWidth();\n int height = texture.getHeight();\n Render result = new Render(width, height);\n texture.getRGB(0, 0, width, height, result.pixels, 0, width);\n return result;\n } catch (Exception e) {\n System.out.println(\"Cannot load texture \" + location);\n throw new RuntimeException(e);\n }\n }",
"public static void load(){\n\t\trobot=new BufferedImage[5];\n\t\ttry {\n\t\t\tfor(int i=0;i<5;i++)\n\t\t\t\trobot[i]=ImageIO.read(new File(\"robot\" + i +\".png\"));\n\t\t\t\n\t\t\tminiRobot=ImageIO.read(new File(\"miniRobot.png\"));\n\t\t\toil=ImageIO.read(new File(\"oil.png\"));\n\t\t\tslime=ImageIO.read(new File(\"slime.png\"));\n\t\t\tmap=ImageIO.read(new File(\"map.png\"));\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e + \"Failed to load images\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public Map(SpriteLoader sprites) {\n\n this.sprites = sprites;\n\n }",
"public TextureRegion loadTextureRegion(Texture texture, Rectangle rec);",
"public void bind() {\n if (isTextureLoaded()) {\n glBindTexture(GL_TEXTURE_2D, texId.getId());\n } else {\n System.err.println(\"[Error] texture::bind() Binding a unloaded texture.\");\n }\n }",
"public void loadImage() {\n\t\tif (images.containsKey(name)) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tString fullPath = BASE_PATH + this.sprite_sheet;\n\t\t\tFile imageFile = new File(fullPath);\n\t\t\tImage initialImage = ImageIO.read(imageFile);\n\t\t\tImage scaledImage = initialImage.getScaledInstance(\n\t\t\t\t\tMainPanel.TILE_SIZE, MainPanel.TILE_SIZE, 0);\n\n\t\t\tBufferedImage image = new BufferedImage(scaledImage.getWidth(null),\n\t\t\t\t\tscaledImage.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D imageGraphicsContext = image.createGraphics();\n\t\t\timageGraphicsContext.drawImage(scaledImage, 0, 0, null);\n\t\t\timageGraphicsContext.dispose();\n\t\t\timages.put(name, image);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Could not load image for\" + this.name);\n\t\t}\n\t}",
"public static void loadBg() {\n bg = new Texture (Gdx.files.internal(\"data/bbb.png\"));\n textureBg =new TextureRegion(bg);\n player = new Texture (Gdx.files.internal(\"data/nave2.png\"));\n texturePlayer =new TextureRegion(player);\n gameOver = new Texture (Gdx.files.internal(\"data/gameOver.png\"));\n textureGameOver =new TextureRegion(gameOver);\n textureGameOver.flip(false, true);\n laser= new Texture (Gdx.files.internal(\"data/disparo_sprite.png\"));\n textureLaser = new TextureRegion(laser);\n obstacle= new Texture (Gdx.files.internal(\"data/square.gif\"));\n textureObstacle = new TextureRegion(obstacle);\n title= new Texture (Gdx.files.internal(\"data/invadpt2.png\"));\n textureTitle = new TextureRegion(title);\n win = new Texture (Gdx.files.internal(\"data/win.png\"));\n textureWin =new TextureRegion(win);\n textureWin.flip(false, true);\n ranking = new Texture (Gdx.files.internal(\"data/ranking.png\"));\n textureRanking =new TextureRegion(ranking);\n textureRanking.flip(false, true);\n ranking1 = new Texture (Gdx.files.internal(\"data/ranking1.png\"));\n textureRanking1 =new TextureRegion(ranking1);\n textureRanking1.flip(false, true);\n ranking2 = new Texture (Gdx.files.internal(\"data/ranking2.png\"));\n textureRanking2 =new TextureRegion(ranking2);\n textureRanking2.flip(false, true);\n superEnemy= new Texture (Gdx.files.internal(\"data/superEnemy.png\"));\n textureSuperEnemy = new TextureRegion(superEnemy);\n textureSuperEnemy.flip(false, true);\n\n text1=new Texture(Gdx.files.internal(\"data/bg.jpg\"));\n text2 = new TextureRegion(text1);\n text= new TextureAtlas();\n text.addRegion(\"text\",text2);\n text.addRegion(\"text\",text1,0,0,20,30);\n loadColorInvaders();\n\n\n }",
"public void cargarHashMap() throws IOException {\r\n\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.BUTTERFLY,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/butterfly.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.AMOEBA,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/amoeba.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.DIAMOND,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/diamond.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.FALLINGDIAMOND,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/diamond.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.WALL,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/wall.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.DIRT,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/dirt.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.EMPTY,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/empty.jpg\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.PLAYER,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/rockford.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.ROCK,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/boulder.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.FALLINGROCK,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/boulder.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.FIREFLY,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/firefly.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.TITANIUM,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/steel.gif\")));\r\n\t\timagenes.put(\r\n\t\t\t\tBDTile.EXIT,\r\n\t\t\t\ttoolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t\t.getResource(\"resources/exit.gif\")));\r\n\t\t//imagenes.put(\r\n\t\t\t//\tBDTile.EXPLOSION,\r\n\t\t\t\t//toolkit.getImage(this.getClass().getClassLoader()\r\n\t\t\t\t\t//\t.getResource(\"resources/explosion.gif\")));\r\n\r\n\t}",
"public Texture fetchTexture(String filename)\n throws IOException\n {\n Texture texture = (Texture)textureMap.get(filename);\n \n if(texture == null)\n {\n ImageComponent img = (ImageComponent)componentMap.get(filename);\n \n if(img == null)\n {\n img = load2DImage(filename);\n componentMap.put(filename, img);\n }\n \n int format = getTextureFormat(img);\n \n if(img instanceof ImageComponent2D)\n {\n texture = new Texture2D(Texture.BASE_LEVEL,\n format,\n img.getWidth(),\n img.getHeight());\n }\n else\n {\n texture = new Texture3D(Texture.BASE_LEVEL,\n format,\n img.getWidth(),\n img.getHeight(),\n ((ImageComponent3D)img).getDepth());\n }\n \n texture.setImage(0, img);\n \n textureMap.put(filename, texture);\n }\n \n return texture;\n }",
"public MapTexture getTexture(String path) {\n MapTexture result = textureCache.get(path);\n if (result == null) {\n InputStream inputStream = openFileStream(ResourceType.TEXTURES, path);\n if (inputStream != null) {\n result = MapTexture.fromStream(inputStream);\n }\n if (result == null) {\n if (!path.startsWith(\"#\")) {\n Logging.LOGGER_MAPDISPLAY.once(Level.WARNING, \"Failed to load texture: \" + path);\n }\n result = this.createPlaceholderTexture();\n }\n\n // Animated textures: when height is a multiple of width\n // Find the mcmeta. If one does not exist, fail.\n // Otherwise, load the first frame (wxw) area.\n int num_frames = result.getHeight() / result.getWidth();\n if (num_frames > 1 && ((num_frames * result.getWidth()) == result.getHeight())) {\n InputStream metaStream = openFileStream(ResourceType.TEXTURES_META, path);\n if (metaStream == null) {\n Logging.LOGGER_MAPDISPLAY.once(Level.WARNING, \"Failed to load animated texture (missing mcmeta): \" + path);\n result = this.createPlaceholderTexture();\n } else {\n result = result.getView(0, 0, result.getWidth(), result.getWidth()).clone();\n try {\n metaStream.close();\n } catch (IOException e) {}\n }\n }\n\n textureCache.put(path, result);\n }\n return result;\n }",
"void glGenTextures(int n, int[] textures, int offset);",
"public void create() {\r\n\t\t\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tGdx.input.setInputProcessor(new MyInputProcessor());\r\n\t\t\r\n\t\t\r\n\t\ttextures = Tex.getTex();\r\n\t\t// load images\r\n\t\ttextures.loadTexture(\"res/images/guyDown.png\", \"guyDown\");\r\n\t\ttextures.loadTexture(\"res/images/guyUp.png\", \"guyUp\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Down.png\", \"guyDown2\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Up.png\", \"guyUp2\");\r\n\t\ttextures.loadTexture(\"res/images/enemyDown.png\", \"enemyDown\");\r\n\t\ttextures.loadTexture(\"res/images/enemyUp.png\", \"enemyUp\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/skyline.png\", \"skyline\");\r\n\t\ttextures.loadTexture(\"res/images/skyline2.jpg\", \"skyline2\");\r\n\t\ttextures.loadTexture(\"res/images/skyline3.png\", \"skyline3\");\t\t\r\n\t\ttextures.loadTexture(\"res/images/circuit board.jpg\", \"fundo2\");\r\n\t\ttextures.loadTexture(\"res/images/grav3.jpg\", \"menu\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/singleplayer.png\", \"single\");\r\n\t\ttextures.loadTexture(\"res/images/multiplayer.png\", \"multi\");\r\n\t\ttextures.loadTexture(\"res/images/exit.png\", \"exit\");\r\n\t\ttextures.loadTexture(\"res/images/level1B.png\", \"B1\");\r\n\t\ttextures.loadTexture(\"res/images/level2B.png\", \"B2\");\r\n\t\ttextures.loadTexture(\"res/images/level3B.png\", \"B3\");\r\n\t\ttextures.loadTexture(\"res/images/mainMenuB.png\", \"mainB\");\r\n\t\ttextures.loadTexture(\"res/images/win1.png\", \"win1\");\r\n\t\ttextures.loadTexture(\"res/images/win2.png\", \"win2\");\r\n\t\ttextures.loadTexture(\"res/images/tryagain.png\", \"retry\");\r\n\t\ttextures.loadTexture(\"res/images/easy.png\", \"easy\");\r\n\t\ttextures.loadTexture(\"res/images/medium.png\", \"medium\");\r\n\t\ttextures.loadTexture(\"res/images/hard.png\", \"hard\");\r\n\t\ttextures.loadTexture(\"res/images/difficulty.png\", \"difficulty\");\r\n\t\ttextures.loadTexture(\"res/images/thunder2.png\", \"thunder\");\r\n\t\r\n\t\ttextures.loadTexture(\"res/images/levelcleared.png\", \"cleared\");\r\n\t\ttextures.loadTexture(\"res/images/you lost.png\", \"lost\");\r\n\t\ttextures.loadTexture(\"res/images/playerpress.png\", \"playerp\");\r\n\t\ttextures.loadTexture(\"res/images/player1press.png\", \"player1p\");\r\n\t\ttextures.loadTexture(\"res/images/player2press.png\", \"player2p\");\r\n\t\ttextures.loadTexture(\"res/images/selectthelevel.png\", \"select\");\r\n\t\t\r\n\t\t\r\n\t\tsb = new SpriteBatch();\r\n\t\tcam = new OrthographicCamera();\r\n\t\tcam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\thudCam = new OrthographicCamera();\r\n\t\thudCam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\tgsm = new GameStateManager(this);\r\n\t\t\t\t\r\n\t}",
"public void cargarGameScreenTiled() {\n\n musicaTiled = get(rutaMusica, Music.class);\n musicaTiled.setLooping(true);\n platMusicInGame();\n\n TextureAtlas atlas = get(atlasTiledStuff, TextureAtlas.class);\n tiledMap = get(rutaTiled, TiledMap.class);\n\n SkeletonJson json = new SkeletonJson(atlas);\n json.setScale(.01f);\n ponySkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/personajes.json\"));\n // ponySkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/characters.json\"));\n json.setScale(.004f);\n skeletonBombData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bombs.json\"));\n bombAnim = skeletonBombData.findAnimation(\"b1\");\n bombExAnim = skeletonBombData.findAnimation(\"b2x\");\n\n json.setScale(.005f);\n skeletonMonedaData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/coin.json\"));\n monedaAnim = skeletonMonedaData.findAnimation(\"normal\");\n monedaTomadaAnim = skeletonMonedaData.findAnimation(\"plus1\");\n\n json.setScale(.009f);\n chileSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/chile.json\"));\n chileAnim = chileSkeletonData.findAnimation(\"normal\");\n chileTomadaAnim = chileSkeletonData.findAnimation(\"toospicy\");\n\n json.setScale(.009f);\n globoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/ballons.json\"));\n globoAnim = globoSkeletonData.findAnimation(\"normal\");\n globoTomadaAnim = globoSkeletonData.findAnimation(\"plus5\");\n\n json.setScale(.009f);\n dulceSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/chocolate.json\"));\n dulceAnim = dulceSkeletonData.findAnimation(\"normal\");\n dulceTomadaAnim = dulceSkeletonData.findAnimation(\"speedup\");\n\n medallaPrimerLugar = atlas.findRegion(\"imagenes/podio/1stplacetrophy\");\n medallaSegundoLugar = atlas.findRegion(\"imagenes/podio/2ndplace\");\n medallaTercerLugar = atlas.findRegion(\"imagenes/podio/3rdplace\");\n congratulations = atlas.findRegion(\"imagenes/podio/congratulations\");\n youLose = atlas.findRegion(\"imagenes/podio/youlose\");\n timeUp = atlas.findRegion(\"imagenes/podio/timeup\");\n\n // json.setScale(.003f);\n // SkeletonData fuegoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bombs.json\"));\n // fuegoAnim = fuegoSkeletonData.findAnimation(\"firedancing\");\n // fuegoSkeleton = new Skeleton(fuegoSkeletonData);\n\n json.setScale(.01f);\n SkeletonData fondoSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/background.json\"));\n fondoAnim = fondoSkeletonData.findAnimation(\"animation\");\n fondoSkeleton = new Skeleton(fondoSkeletonData);\n\n //\n // json.setScale(.011f);\n // SkeletonData fogataSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/fogata.json\"));\n // fogataAnim = fogataSkeletonData.findAnimation(\"fogata\");\n // fogataSkeleton = new Skeleton(fogataSkeletonData);\n //\n // json.setScale(.005f);\n // SkeletonData plumaSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/feather.json\"));\n // plumaAnim = plumaSkeletonData.findAnimation(\"pluma\");\n // plumaSkeleton = new Skeleton(plumaSkeletonData);\n //\n // json.setScale(.011f);\n // SkeletonData bloodStoneSkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bloodstone.json\"));\n // bloodStoneAnim = bloodStoneSkeletonData.findAnimation(\"animation\");\n // bloodStoneSkeleton = new Skeleton(bloodStoneSkeletonData);\n //\n // SkeletonData bloodStone2SkeletonData = json.readSkeletonData(Gdx.files.internal(\"data/animaciones/bloodstones.json\"));\n // bloodStone2Anim = bloodStone2SkeletonData.findAnimation(\"glow1\");\n // bloodStone2Skeleton = new Skeleton(bloodStone2SkeletonData);\n\n fondo = atlas.findRegion(\"imagenes/fondo\");\n\n padIzq = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pad_izq\")));\n padDer = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pad_derecha\")));\n btBombaDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/bombasalpresionar\")));\n btBombaUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/bombasinpresionar\")));\n\n btJumpDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/saltoalpresionar\")));\n btJumpUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/saltosinpresionar\")));\n // btTroncoUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/botontroncosinpresionar\")));\n // btTroncoDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/botontroncopresionado\")));\n\n btTroncoUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/btPlatanoTachuelas\")));\n btTroncoDown = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/btPlatanoTachuelasPresionado\")));\n\n btPauseUp = new NinePatchDrawable(new NinePatch(atlas.findRegion(\"Interfaz/pause\")));\n\n indicador = atlas.findRegion(\"Interfaz/indicador\");\n indicadorCloud = atlas.findRegion(\"Interfaz/icono000\");\n indicadorCientifico = atlas.findRegion(\"Interfaz/icono001\");\n indicadorMinion = atlas.findRegion(\"Interfaz/icono002\");\n indicadorNatylol = atlas.findRegion(\"Interfaz/icono003\");\n indicadorLighthingAlba = atlas.findRegion(\"Interfaz/icono004\");\n indicadorIgnis = atlas.findRegion(\"Interfaz/icono005\");\n\n perfilRegionCloud = atlas.findRegion(\"perfiles/cloud\");\n perfilRegionNatylol = atlas.findRegion(\"perfiles/natylol\");\n perfilRegionIgnis = atlas.findRegion(\"perfiles/ignis\");\n perfilRegionCientifico = atlas.findRegion(\"perfiles/scientist\");\n perfilRegionLAlba = atlas.findRegion(\"perfiles/lightingalba\");\n perfilRegionEnemigo = atlas.findRegion(\"perfiles/enemy\");\n\n lugaresMarco = atlas.findRegion(\"Interfaz/lugares\");\n\n moneda = atlas.findRegion(\"moneda\");\n\n tronco = atlas.findRegion(\"tachuelas\");\n tachuelas = atlas.findRegion(\"tachuelas\");\n platano = atlas.findRegion(\"platano\");\n\n pickCoin = get(\"data/musica/coin.mp3\");\n jump = get(\"data/musica/salto.mp3\");\n }",
"public Level()\n {\n //Initialise Tile Types\n try \n {\n //Dynamically assign texture paints\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/surface.jpg\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rover.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/rock.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/mineral.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/target.png\")), tile));\n texturePaints.add(new TexturePaint(ImageIO.read(new File(\"Images/warning.png\")), tile));\n } catch(FileNotFoundException fnfe) {\n System.out.println(\"ERROR: Invalid texture paint, file not found\" + fnfe);\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }",
"private int load(String path)\n {\n int pixels[] = null;\n int width = 0;\n int height = 0;\n\n try\n {\n BufferedImage image = ImageIO.read(new FileInputStream(\"res/\" + path));\n width = image.getWidth();\n height = image.getHeight();\n pixels = new int[width * height];\n image.getRGB(0, 0, width, height, pixels, 0, width);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n\n int[] data = new int[width * height];\n\n for (int i = 0; i < width * height; i++)\n {\n int a = (pixels[i] & 0xff000000) >> 24;\n int r = (pixels[i] & 0xff0000) >> 16;\n int g = (pixels[i] & 0xff00) >> 8;\n int b = (pixels[i] & 0xff);\n\n data[i] = a << 24 | b << 16 | g << 8 | r;\n }\n\n int result = glGenTextures();\n allTextures.add(result);\n\n glBindTexture(GL_TEXTURE_2D, result);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, BufferUtils.createIntBuffer(data));\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, 0);\n return result;\n }",
"private void loadSpritesheet() {\n\t\tobjects = new SpriteSheet(\"res\\\\pong.png\");\n\t\tobjects_hires = new SpriteSheet(\"res\\\\ponghires.png\",\n\t\t\t\tSpriteSheet.LINEAR);\n\t}",
"public void disposeAllTextures() {\n\t\tspriteSheet01.dispose();\n\t}",
"public void loadMap() {\n\t\tchests.clear();\r\n\t\t// Load the chests for the map\r\n\t\tchestsLoaded = false;\r\n\t\t// Load data asynchronously\r\n\t\tg.p.getServer().getScheduler().runTaskAsynchronously(g.p, new AsyncLoad());\r\n\t}",
"private void loadGameFiles(){\n\t}",
"public void loadLevel(String tileMapPath)\r\n\t{\r\n\t\tTiledMap map= new TmxMapLoader().load(tileMapPath);\r\n\t\tcreateLights(map);\r\n\t}",
"public abstract TextureObject getTexture();",
"@Override\n\tpublic void loadImages() {\n\t\tsuper.setImage((new ImageIcon(\"pacpix/QuestionCandy.png\")).getImage());\t\n\t}",
"public static void addGroundTextures(Player player, Set<Integer> groundTextureIds) {\n\t\tSet<GroundTextureDto> selectedGroundTextures = GroundTextureDao.getGroundTextures().stream()\n\t\t\t.filter(e -> groundTextureIds.contains(e.getId()))\n\t\t\t.collect(Collectors.toSet());\n\t\t\n//\t\tfinal Set<Integer> spriteMapIds = selectedGroundTextures.stream().map(GroundTextureDto::getSpriteMapId).collect(Collectors.toSet());\n\t\t\n\t\t// pull all the other ground textures that use these sprite maps and add them to our selected list\n\t\t// e.g. if the client loads one part of the water texture map, pull the rest of the textures in the water map and send them too.\n//\t\tselectedGroundTextures.addAll(GroundTextureDao.getGroundTextures().stream()\n//\t\t\t\t.filter(e -> spriteMapIds.contains(e.getSpriteMapId()))\n//\t\t\t\t.collect(Collectors.toSet()));\n\t\t\n\t\tSet<Integer> selectedGroundTextureIds = extractUnloadedGroundTextureIds(player, selectedGroundTextures.stream().map(GroundTextureDto::getId).collect(Collectors.toSet()));\n\t\tif (selectedGroundTextureIds.isEmpty())\n\t\t\treturn;\n\t\t\n\t\tgroundTextures.putIfAbsent(player, new HashSet<>());\t\t\n\t\tgroundTextures.get(player).addAll(selectedGroundTextures);\n\t\taddLoadedGroundTextureIds(player, selectedGroundTextureIds);\n\t\t\n//\t\tSet<Integer> selectedSpriteMapIds = extractUnloadedSpriteMapIds(player, spriteMapIds);\n//\t\tif (selectedSpriteMapIds.isEmpty())\n//\t\t\treturn;\n\t\t\n//\t\taddLoadedSpriteMapIds(player, selectedSpriteMapIds);\n\t\t\n//\t\tif (!spriteMaps.containsKey(player))\n//\t\t\tspriteMaps.put(player, new HashSet<>());\n\t\t\n//\t\tif (!groundTextureSpriteMapIds.containsKey(player))\n//\t\t\tgroundTextureSpriteMapIds.put(player, new HashSet<>());\n\t\t\n//\t\tfor (Integer spriteMapId : selectedSpriteMapIds) {\n//\t\t\tspriteMaps.get(player).add(SpriteMapDao.getSpriteMap(spriteMapId));\n//\t\t\tgroundTextureSpriteMapIds.get(player).add(spriteMapId);\n//\t\t}\n\t}",
"public void loadMap() {\n\n try {\n new File(this.mapName).mkdir();\n FileUtils.copyDirectory(\n new File(this.plugin.getDataFolder() + \"/maps/\" + this.mapName), new File(this.mapName));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n WorldCreator wc = new WorldCreator(this.mapName);\n World world = wc.createWorld();\n world.setAutoSave(false);\n world.setPVP(false);\n world.setDifficulty(Difficulty.PEACEFUL);\n world.setGameRuleValue(\"doDaylightCycle\", \"false\");\n world.setGameRuleValue(\"mobGriefing\", \"false\");\n world.setGameRuleValue(\"doMobSpawning\", \"false\");\n world.setGameRuleValue(\"doFireTick\", \"false\");\n world.setGameRuleValue(\"keepInventory\", \"true\");\n world.setGameRuleValue(\"commandBlockOutput\", \"false\");\n world.setSpawnFlags(false, false);\n\n try {\n final JsonParser parser = new JsonParser();\n final FileReader reader =\n new FileReader(this.plugin.getDataFolder() + \"/maps/\" + this.mapName + \"/config.json\");\n final JsonElement element = parser.parse(reader);\n this.map = JumpyJumpMap.fromJson(element.getAsJsonObject());\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"@Override\n\tpublic void initialize(int textMapWidth, int textMapHeight,\n\t\t\tint textureBlockPixWidth, int textureBlockPixHeight,\n\t\t\tint textureWidth, int textureHeight, final MapScroller ms) {\n\t\tthis.gl = ms.getGl();\n\t\tint mx = textMapWidth/textureBlockPixWidth;\n\t\tint my = textMapHeight/(textureBlockPixHeight);\n\t\t\n\t\tfinal float distance = ms.getDistance();\n\t\tblockWidth = ms.getBlockWidth();\n\t\tblockHeight = ms.getBlockHeight();\n\n\t\tfloat pctx = (float)textureBlockPixWidth/(float) textureWidth;\n\t\tfloat pcty = (float)textureBlockPixHeight/(float) textureHeight;\n\t\t\n\t\t// initialisation des coordonnées des textures\n\t\tint nbMap = mx*my;\n\t\ttextCoords = new float[nbMap-1][];\n\t\tfloat px, py, px2, py2;\n\t\tfor(int i=1;i<nbMap;i++) {\n\t\t\tint cx = (i%mx)*(textureBlockPixWidth) ;\n\t\t\tint cy = (i/mx)*(textureBlockPixHeight);\n\t\t\tpx = (float)cx/(float)textureWidth;\n\t\t\tpy = (float)cy/(float)textureHeight;\n\t\t\tpx2 = px+pctx; // -pctx/100f;\n\t\t\tpy2 = py+pcty; // -pcty/100f;\n\t\t\tSystem.out.format(\"(%d, %d) ->[(%f, %f), (%f,%f), (%f, %f)]\\n\", cx, cy, px, py,px2,py2,(px2-px),(py2-py) );\n\t\t\ttextCoords[i-1] = new float[] {px, py, px2, py2};\n\t\t}\n\t\t\n\t\t// preparation du cache des buffer VBO\n\t\tint[][] mapIndexBands = new int[ms.getNbBlocksWidth()+2][];\n\t\tfinal int empty[] = {0}; // vbo vide \n\t\tfor(int i=0; i<mapIndexBands.length;i++) mapIndexBands[i] = empty;\n\t\t\n\t\tcacheBands = new CacheIndex<int[]>(new CacheIndexManager<int[]>() {\n\t\t\t@Override\n\t\t\tpublic void setUpData(int index, int[][] data, int dataSetupIndex) {\n\t\t\t\t// preparation d'une nouvelle bande\n\t\t\t\tint[] vboIds = data[dataSetupIndex];\n\t\t\t\tif(vboIds[0]!=0) { // le nombre de point\n\t\t\t\t\t// suppression des buffer inutilisés\n\t\t\t\t\tgl.glDeleteBuffers(vboIds.length-1, vboIds,1);\n\t\t\t\t}\n\t\t\t\t// création de deux nouveaux buffer\n\t\t\t\tvboIds = new int[] {0,0,0,0}; // nbPoints, vertex + texture\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\tgl.glGenBuffers(3, vboIds, 1);\n\t\t\t\tdata[dataSetupIndex] = vboIds;\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// les points\n\t\t\t\tFloatBuffer vertices = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\tFloatBuffer text = Buffers.newDirectFloatBuffer(nbHeight*4*2);\n\t\t\t\tFloatBuffer normals = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\t\n\t\t\t\tfloat positiony=0;\n\t\t\t\tfor(int j = 0;j<nbHeight; j++) {\n\t\t\t\t\tint val = ms.getTheMap()[j][index]; \n\t\t\t\t\tif(val>0){\n\t\t\t\t\t\t// points BL, BR, UR, RL\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// texture\n\t\t\t\t\t\tfloat[] coords = textCoords[val-1];\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[1]);\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[1]);\n\t\t\t\t\t}\n\t\t\t\t\tpositiony-=blockHeight;\n\t\t\t\t}\n\t\t\t\tvertices.flip();\n\t\t\t\ttext.flip();\n\t\t\t\tnormals.flip();\n\t\t\t\tvboIds[0] = vertices.limit() / 3; // nb points\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\n\t\t\t\t// les points\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, vertices.limit() * Buffers.SIZEOF_FLOAT, vertices, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t\t\t\n\t\t // les textures\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL2.GL_ARRAY_BUFFER, text.limit() * Buffers.SIZEOF_FLOAT, text, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t // normals\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, normals.limit() * Buffers.SIZEOF_FLOAT, normals, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t\t}\n\t\t} , mapIndexBands);\n\t}",
"private void loadAnimations() {\n loadImages(imagesFront, \"F\");\n loadImages(imagesLeft, \"L\");\n loadImages(imagesRight, \"R\");\n loadImages(imagesBack, \"B\");\n }",
"@Override\n\tpublic void loadEnemies() {\n\t\t\n\t}",
"protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCowTextures((EntityCow)par1Entity);\n }",
"private void importImages() {\n\n\t\t// Create array of the images. Each image pixel map contains\n\t\t// multiple images of the animate at different time steps\n\n\t\t// Eclipse will look for <path/to/project>/bin/<relative path specified>\n\t\tString img_file_base = \"Game_Sprites/\";\n\t\tString ext = \".png\";\n\n\t\t// Load background\n\t\tbackground = createImage(img_file_base + \"Underwater\" + ext);\n\t}",
"public void loadContent(AssetManager manager) {\n\t\tif (ragdollAssetState != AssetState.LOADING) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tcrosshairTexture = createTexture(manager,CROSS_FILE,false);\n\t\tbackgroundTexture = createTexture(manager,BACKG_FILE,false);\n\t\tforegroundTexture = createTexture(manager,FOREG_FILE,false);\n\t\t\n\t\tbubbleTexture = createTexture(manager,BUBBLE_FILE,false);\n\t\tbodyTextures = new TextureRegion[RAGDOLL_FILES.length];\n\t\tfor(int ii = 0; ii < RAGDOLL_FILES.length; ii++) {\n\t\t\tbodyTextures[ii] = createTexture(manager,RAGDOLL_FILES[ii],false);\n\t\t}\n\t\tfor(int ii = 0; ii < BUBBLE_SOUNDS.length; ii++) {\n\t\t\tSoundController.getInstance().allocate(manager, BUBBLE_SOUNDS[ii]);\n\t\t}\n\n\t\tsuper.loadContent(manager);\n\t\tragdollAssetState = AssetState.COMPLETE;\n\t}",
"public void setUpTextures(int program, GL2 gl2) {\n\t\t// sets the parameters for texture\n\t\tgl2.glGenTextures(1, buffer);\n\t\tgl2.glActiveTexture(gl2.GL_TEXTURE0);\n\t\tgl2.glBindTexture(gl2.GL_TEXTURE_2D,\n\t\t\t\tgl2.glGetUniformLocation(program, \"abc\"));\n\t\tgl2.glTexParameteri(gl2.GL_TEXTURE_2D, gl2.GL_TEXTURE_MIN_FILTER,\n\t\t\t\tgl2.GL_LINEAR);\n\t\tgl2.glTexParameteri(gl2.GL_TEXTURE_2D, gl2.GL_TEXTURE_MAG_FILTER,\n\t\t\t\tgl2.GL_LINEAR);\n\t\tgl2.glTexImage2D(gl2.GL_TEXTURE_2D, 0, gl2.GL_RGBA,\n\t\t\t\tbufferimage.getWidth(), bufferimage.getHeight(), 0,\n\t\t\t\tgl2.GL_BGRA, gl2.GL_UNSIGNED_BYTE, buffer);\n\t}"
]
| [
"0.8172064",
"0.79017717",
"0.7777077",
"0.7776676",
"0.7749244",
"0.76420194",
"0.75729275",
"0.7517063",
"0.7441131",
"0.7383604",
"0.7226507",
"0.7077897",
"0.7018838",
"0.69346434",
"0.692809",
"0.68820506",
"0.68261164",
"0.6803201",
"0.6801171",
"0.6791789",
"0.6753465",
"0.6748475",
"0.67309755",
"0.6665716",
"0.6662785",
"0.6639903",
"0.663462",
"0.66210586",
"0.6610988",
"0.66087157",
"0.66076195",
"0.6554437",
"0.654925",
"0.65150565",
"0.6503366",
"0.6502619",
"0.6494317",
"0.6489748",
"0.6474411",
"0.64709604",
"0.6469175",
"0.6455345",
"0.64550877",
"0.6451117",
"0.6433072",
"0.64033633",
"0.6366696",
"0.6349325",
"0.6341766",
"0.6340322",
"0.6315076",
"0.62954956",
"0.6222729",
"0.6219981",
"0.62117666",
"0.62107587",
"0.6208272",
"0.6207245",
"0.61924666",
"0.6167787",
"0.61676264",
"0.61644757",
"0.6155485",
"0.6145613",
"0.61400557",
"0.613602",
"0.6123814",
"0.6114546",
"0.61102545",
"0.6109844",
"0.60898364",
"0.60877216",
"0.6083062",
"0.60800266",
"0.60709566",
"0.60665256",
"0.605774",
"0.60527426",
"0.60519433",
"0.6045588",
"0.6044745",
"0.60418457",
"0.6040635",
"0.602483",
"0.6008102",
"0.6007365",
"0.59964925",
"0.59856045",
"0.59667665",
"0.5956328",
"0.5951202",
"0.59379596",
"0.59279674",
"0.59247124",
"0.59205866",
"0.5915394",
"0.59115076",
"0.59087026",
"0.59055245",
"0.5901778"
]
| 0.623315 | 52 |
The size of the simulation population | public static void main(String[] argv) {
if (argv.length !=7){
System.out.println("USAGE: executable <input_filename> <num_points_in_file> <dimension> <distribution[1..100]> <num_unique_query> <num_query> <slot>\n");
return ;
}
int type,num_mbr, extra,dim,DIMENSION,distribution,num_unique_query,POINTS;
String filenm;
int q,r,times,slot;
filenm = argv[0];
POINTS = Integer.parseInt(argv[1]);
DIMENSION = Integer.parseInt(argv[2]);
distribution = Integer.parseInt(argv[3]);
num_unique_query = Integer.parseInt(argv[4]);
q= Integer.parseInt(argv[5]);
slot= Integer.parseInt(argv[6]);
double[][][] pt =new double[POINTS+10][2][10];
try {
BufferedReader in = new BufferedReader(new FileReader(filenm));
String str;
// str = in.readLine();
int i=0;
while ((str = in.readLine()) != null && i != POINTS) {
//System.out.println(str);
str = in.readLine();
String[] arr = str.split("\t");
for(int j=0;j<10;j++){
pt[i][0][j] = Double.parseDouble(arr[j]);
}
str = in.readLine();
arr = str.split("\t");
for(int j=0;j<10;j++){
pt[i][1][j] = Double.parseDouble(arr[j]);
}
i++;
}
in.close();
} catch (IOException e) {
System.out.println("File Read Error Resource.in");
}
Random rand = new Random();
for(int i2=0;i2 < slot; i2++){
int rr= rand.nextInt(17);
for(int i1=0;i1 < q;){
//while(q>0){
if(rand.nextInt(100) < distribution){
// Initialize random number generator.
r = rand.nextInt(num_unique_query)* (int)((POINTS-10000)/(num_unique_query + rr));
//cout <<"random value "<< r<< endl;
// srand(pow(q,r));
// srand(pow(q,r));
// times=1;
times =rand.nextInt(29) + 5 ;
// file>>dim;
// file>>num_mbr;
for(int k =0; k<times; k++){
System.out.println("2");
i1++;
double r_1= 0.005 + (double)rand.nextInt(500)/10000.0;
System.out.println(r_1);
for(int j=0;j<DIMENSION;j++){
// cout<< pt[0][j];
System.out.print(pt[r][0][j] + "\t");
}
System.out.println("");
}
}
else{ // nonpopular data
for(int idx =0 ; idx < 20 ; idx++){
r = rand.nextInt(POINTS);
System.out.println("2");
i1++;
double r_1= 0.005 + (double)rand.nextInt(500)/10000.0;
System.out.println(r_1);
// cout<<r<<"\n";
for(int j=0;j<DIMENSION;j++){
System.out.print(pt[r][0][j] + "\t");
}
System.out.println("");
}
}
}
}
System.out.println("-1");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getPopulationSize(){\n\t\treturn populationSize;\n\t}",
"public int getPopulationSize()\n\t{\n\t\treturn individuals.length;\n\t}",
"@Override public long getSimulatedSize() {\n return 1;\n }",
"public int size( )\r\n {\r\n int size = (int) manyNodes;// Student will replace this return statement with their own code:\r\n return size;\r\n }",
"public int initSize() {\n return initEnemiesSpawned;\n }",
"public int getSize() {\n\t\treturn WORLD_SIZE;\n\t}",
"public int size(){\n\t\treturn howMany; \n\t}",
"public double getSize()\n\t{\n\t\treturn size;\n\t}",
"public int getSize() {\r\n return dice.size();\r\n }",
"public int Size(){\n \treturn size;\n\t}",
"public static int getSIZE() {\n return SIZE;\n }",
"public int size ()\n {\n return size;\n }",
"public static int GetSize() {\n\t\t\treturn gridSize.getValue();\n\t\t}",
"public int size (){\n return N;\n }",
"public int size() {\r\n return N;\r\n }",
"public int size() {\n\treturn slices*rows*columns;\n}",
"public int getSize() {\n\t\treturn grid.length;\n\t}",
"public int size () {\n\t\treturn size;\n\t}",
"public int size () {\n\t\treturn size;\n\t}",
"public int size() {\n return size;\r\n }",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n\t\treturn N;\n\t}",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n return N;\n }",
"public int size() {\n // TODO: Implement this method\n return size;\n }",
"public int getCellsUniverseSize(){\r\n return cellsUniverse.size();\r\n }",
"public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}",
"public int size(){\n\t\treturn size; \n\t}",
"public double getSize() \n {\n return size;\n }",
"public int size() {\n // DO NOT MODIFY THIS METHOD!\n return size;\n }",
"public int size() {\n \t\treturn size;\n \t}",
"public int size(){\r\n\t\treturn N;\r\n\t}",
"public int size() {\r\n return size;\r\n }",
"public int size() {\r\n return size;\r\n }",
"public int size() {\r\n return size;\r\n }",
"public int size() {\r\n return size;\r\n }",
"public int size() {\n \n return size;\n \n }",
"public double getSize() {\n return size_;\n }",
"public int size() {\n return size;\n }",
"public int size(){\n\t\t\r\n\t\treturn N;\r\n\t}",
"public int size() {\r\n return size;\r\n }",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\r\n\t\treturn size;\r\n\t}",
"public int size() {\n return basePileup.size();\n }",
"public int size() {\r\n \r\n return size;\r\n }",
"public static int getSize() {\n\n\t\treturn strategyChain.size();\n\t}",
"public int size() {\n\t return N;\n\t }",
"@Override\r\n\tpublic int getSize() {\n\t\treturn gridSize;\r\n\t}",
"public double getSize() {\n return size_;\n }",
"public static int getRandomSize() {\n return RandomNumberGenerator.getRandomInt(200, 100000);\n }",
"public int size(){\n\t\treturn size;\n\t}",
"public int size(){\n return sizeCounter;\n }",
"public int size() {\n\t\treturn size;\r\n\t}",
"public int size() {\n\t\treturn size;\r\n\t}",
"public int size() {\r\n \treturn size;\r\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size()\r\n {\r\n return size;\r\n }",
"public int size()\r\n {\r\n return size;\r\n }",
"public int size()\r\n {\r\n return size;\r\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }",
"public int size() {\n return size;\n }"
]
| [
"0.80925035",
"0.8060168",
"0.7157824",
"0.71413875",
"0.7133439",
"0.705836",
"0.697883",
"0.696162",
"0.69509476",
"0.69377536",
"0.69195974",
"0.69144434",
"0.6905118",
"0.68821293",
"0.6873875",
"0.6872818",
"0.6869268",
"0.68661326",
"0.68661326",
"0.68653655",
"0.68445337",
"0.68445337",
"0.68445337",
"0.68445337",
"0.68445337",
"0.68361837",
"0.68361837",
"0.68361837",
"0.68361837",
"0.68361837",
"0.68361837",
"0.68361837",
"0.6832435",
"0.68319845",
"0.682669",
"0.6822985",
"0.6818753",
"0.68155974",
"0.6814821",
"0.6813197",
"0.680777",
"0.680777",
"0.680777",
"0.680777",
"0.6806438",
"0.68017554",
"0.67954135",
"0.6793915",
"0.6792245",
"0.67918414",
"0.67918414",
"0.67918414",
"0.67918414",
"0.67918414",
"0.67918414",
"0.67875046",
"0.678686",
"0.6784313",
"0.6782117",
"0.6781642",
"0.67802334",
"0.6779889",
"0.67777056",
"0.6777171",
"0.67771304",
"0.67771304",
"0.67698807",
"0.67693144",
"0.67693144",
"0.67693144",
"0.67693144",
"0.67693144",
"0.67693144",
"0.67693144",
"0.6768517",
"0.6768517",
"0.6768517",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502",
"0.6765502"
]
| 0.0 | -1 |
Enrolls each student within each section | @Test
public void TestStudentGPA() throws PersonException{
ArrayList<Enrollment> EnrolledStudents = new ArrayList<Enrollment>();
for (int i = 0; i < Students.size(); i++){
Student student = Students.get(i);
for (int j = 0; j < Sections.size(); j++){
Section section = Sections.get(j);
Enrollment enrolled = new Enrollment(student.getStudentID(),section.getSectionID());
enrolled.setGrade((i*10)); // Assumes each student gets a consistent grade in every section! (Otherwise average GPAs would be a bit tougher)
EnrolledStudents.add(enrolled);
}
}
ArrayList<Double> StudentsGPA = new ArrayList<Double>();
for (int i = 0; i < EnrolledStudents.size(); i+=6) {
if (EnrolledStudents.get(i).getGrade() >= 90)
StudentsGPA.add(4.0);
else if (EnrolledStudents.get(i).getGrade() >= 80)
StudentsGPA.add(3.66);
else if (EnrolledStudents.get(i).getGrade() >= 70)
StudentsGPA.add(3.33);
else if (EnrolledStudents.get(i).getGrade() >= 60)
StudentsGPA.add(3.0);
else if (EnrolledStudents.get(i).getGrade() >= 50)
StudentsGPA.add(2.66);
else if (EnrolledStudents.get(i).getGrade() >= 40)
StudentsGPA.add(2.33);
else if (EnrolledStudents.get(i).getGrade() >= 30)
StudentsGPA.add(2.0);
else if (EnrolledStudents.get(i).getGrade() >= 20)
StudentsGPA.add(1.66);
else if (EnrolledStudents.get(i).getGrade() >= 10)
StudentsGPA.add(1.33);
else
StudentsGPA.add(1.0);
}
assertTrue(StudentsGPA.get(0) == 1.0);
assertTrue(StudentsGPA.get(1) == 1.33);
assertTrue(StudentsGPA.get(2) == 1.66);
assertTrue(StudentsGPA.get(3) == 2.0);
assertTrue(StudentsGPA.get(4) == 2.33);
assertTrue(StudentsGPA.get(5) == 2.66);
assertTrue(StudentsGPA.get(6) == 3.0);
assertTrue(StudentsGPA.get(7) == 3.33);
assertTrue(StudentsGPA.get(8) == 3.66);
assertTrue(StudentsGPA.get(9) == 4.0);
ArrayList<Double> CoursesGPA = new ArrayList<Double>();
double count = 0;
for (int i = 0; i < EnrolledStudents.size(); i+=6){
count += EnrolledStudents.get(i).getGrade();
}
if (count == 450){ // Again, assumes a simple case (average grade = 45 -> average GPA = 2.497)
CoursesGPA.add(2.497);
}
assertTrue(CoursesGPA.get(0) == 2.497);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void enroll_Student(CourseOffering course, String studentID){\n\n StudentModel student = findStudent(course, studentID);\n if(student == null){\n System.out.println(\"\\n>>Enrollment denied: \" + studentID + \"<<\");\n\n return;\n }\n\n\n for(StudentModel stuList : course.getStudentsAllowedToEnroll()){\n if(stuList.getID().equals(studentID)){\n //there is no enrollment list\n if(course.getStudentsEnrolled().isEmpty()){\n\n this.enrollStuList = new ArrayList<>();\n this.enrollCourseList = new ArrayList<>();\n\n this.enrollStuList.add(course);\n stuList.setCoursesEnrolled(enrollStuList);\n\n this.enrollCourseList.add(stuList);\n course.setStudentsEnrolled(enrollCourseList);\n\n System.out.println(\"\\nEnrolling \" + stuList.getID() + \" in \" + course.getCourseID());\n }\n //there already is an enrollment list\n else{\n\n this.enrollStuList.add(course);\n stuList.setCoursesEnrolled(this.enrollStuList);\n\n this.enrollCourseList.add(stuList);\n course.setStudentsEnrolled(this.enrollCourseList);\n\n System.out.println(\"\\nEnrolling \" + stuList.getID() + \" in \" + course.getCourseID());\n }\n }\n }\n\n\n\n }",
"public void enrollStudent(Student student) {\n\n\t}",
"public void enroll(String studentId, String courseId)\r\n throws RemoteException;",
"@Override\r\n public void enroll(Student student, String courseId) throws SQLException {\n\r\n courseDAO.insert(student.getId(), courseId);\r\n\r\n }",
"public void enrollLab(Lab lab) {\n labs[countnum] = lab;\n // labs[countnum].getStudents();\n countnum++;\n }",
"Student findWithSectionsBy(int studentNumber);",
"boolean enrolStudent(Student student){\n\t\tif(daysUntilStarts.equals(0) || enrolled.size() == 3 || student.getCertificates().contains(subject.getID())){\n\t\t\treturn false;\n\t\t}\n\t\tenrolled.add(student);\n\t\tstudent.enrol();\n\t\treturn true;\n\t}",
"@Override\n\t@Transactional\n\tpublic void updateSectionsByCourseFromDW(Course course) {\n\t\tString ipaSubjectCode = course.getSubjectCode();\n\t\tString ipaCourseNumber = course.getCourseNumber();\n\n\t\tList<SectionGroup> sectionGroups = this.sectionGroupService.findByCourse(course);\n\n\t\tfor (SectionGroup sectionGroup : sectionGroups) {\n\t\t\tString ipaTermCode = sectionGroup.getTermCode();\n\n\t\t\tfor (Section section : sectionGroup.getSections()) {\n\t\t\t\tString ipaSequenceNumber = section.getSequenceNumber();\n\n\t\t\t\tString uniqueKey = ipaSubjectCode + \"-\" + ipaCourseNumber + \"-\" + ipaSequenceNumber;\n\n\t\t\t\tList<DwSection> _allDwSections = this.dwRepository.getSectionsByTermCodeAndUniqueKeys(ipaTermCode, Arrays.asList(uniqueKey));\n\n\t\t\t\tDwSection dwSection = _allDwSections.stream().filter(s ->\n\t\t\t\t\t\tipaTermCode.equals(s.getTermCode())\n\t\t\t\t\t\t\t\t&& ipaSequenceNumber.equals(s.getSequenceNumber())\n\t\t\t\t\t\t\t\t&& ipaSubjectCode.equals(s.getSubjectCode())\n\t\t\t\t\t\t\t\t&& ipaCourseNumber.equals(s.getCourseNumber())\n\t\t\t\t\t\t\t\t&& (s.getCrn() != null)\n\t\t\t\t).findFirst().orElse(null);\n\n\t\t\t\tif(dwSection != null) {\n\t\t\t\t\t// Set CRN if necessary\n\t\t\t\t\tif (dwSection.getCrn().equals(section.getCrn()) == false) {\n\t\t\t\t\t\tsection.setCrn(dwSection.getCrn());\n\t\t\t\t\t\tsection = this.sectionService.save(section);\n\t\t\t\t\t}\n\n\t\t\t\t\tactivityService.syncActivityLocations(dwSection, section.getActivities());\n\t\t\t\t\tactivityService.syncActivityLocations(dwSection, sectionGroup.getActivities());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void handleStudents() {\n students.forEach(System.out::println);\n producer.saveAttendance(students, course);\n }",
"private void retrieveStudentsEnrolledForACourse() {\n Scanner sc = new Scanner(System.in);\n Course c;\n while (true) {//Der Kursname sollte existieren\n System.out.print(\"Course ID: \");\n Long id = Long.parseLong(sc.next());\n c = ctrl.getCourse(id);\n if (c == null)\n System.out.println(\"Course with this ID doesn't exist! Please try again!\");\n else\n break;\n }\n\n //Wir rufen die eingeschriebenen Studenten Funktion von dem Controller\n System.out.println(\"Students enrolled for the course: \");\n ctrl.retrieveStudentsEnrolledForACourse(c);\n }",
"public void enroll(String courseName, World world) {\n\t\tCourse course = world.dbCourses().get(courseName);\n\t\tif (course == null) {\n\t\t\tSystem.out.println(\"No course named: \" + courseName);\n\t\t\treturn;\n\t\t}\n\n\t\tList<Course> unfinishedCourses = super.getUnfinishedCourses();\n\t\tList<Course> finishedCourses = super.getFinishedCourses();\n\t\tif (unfinishedCourses.contains(course)) {\n\t\t\tSystem.out.println(\"You are already enrolled in \" + course + \".\");\n\t\t\treturn;\n\t\t}\n\t\tif (finishedCourses.contains(course)) {\n\t\t\tSystem.out.println(\"You have already completed \" + course + \"!\");\n\t\t\treturn;\n\t\t}\n\n\t\tRoom room = super.getRoom();\n\t\tList<Creature> roomCreatures = room.getCreatures();\n\t\tCreature creature;\n\t\tfor (int i = 0; i < roomCreatures.size(); i++) {\n \tcreature = roomCreatures.get(i);\n \tif (creature.isTeacher()) {\n \t\tTeacher teacher = (Teacher) creature;\n \t\tif (teacher.getCourse().equals(course)) { // Check that teacher for course is in room\n \t\t\tunfinishedCourses.add(course);\n \t\t\tSystem.out.println(\"You have enrolled in '\" + course + \"'.\");\n \t\t\treturn;\n \t\t}\n \t}\n\t\t}\n\t\tSystem.out.println(\"No teacher who teaches '\" + course + \"' in the room.\");\n\t}",
"public void enrolStudent(Student student) throws IllegalArgumentException, IllegalStateException;",
"@POST\r\n\t@Path(\"/student\")\r\n\tpublic void enrollStudentToCourse(@FormParam(\"studentID\") String studentID,\r\n\t\t\t@FormParam(\"courseID\") String courseID) {\r\n\r\n\t\tStudent student = InMemoryDataStore.getStudent(studentID);\r\n\t\tCourse course = InMemoryDataStore.getCourse(courseID);\r\n\r\n\t\tif (student == null || course == null) {\r\n\t\t\tthrow new WebApplicationException(Response.Status.BAD_REQUEST);\r\n\t\t}\r\n\r\n\t\tstudent.addCourse(courseID);\r\n\t\tcourse.addStudent(studentID);\r\n\t}",
"public void StudentEntered() {\n\t\tnumStudentInRoom ++;\n\t}",
"public String addStudent() {\r\n\t\tint rollnumber, no_of_courses = 0;\r\n\t\tString studname, coursename, courseid;\r\n\t\tSystem.out.println(\"Enter the Student rollnumber: \");\r\n\t\trollnumber=sc.nextInt();\r\n\t\tfor(int i=0;i<count;i++)\r\n\t\t{\r\n\t\tif(rollnumber==students[i].getRollNumber()) {\r\n\t\t\treturn (\"Sorry the Roll number is already taken!!\");\r\n\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter the Student name: \");\r\n\t\tstudname=sc.next();\r\n\t\tSystem.out.println(\"Enter the Number of courses student want to enroll: \");\r\n\t\tno_of_courses=sc.nextInt();\r\n\t\tCourses [] courses=new Courses[no_of_courses];\r\n\t\tfor(int i=0;i<no_of_courses;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Enter the course id: \");\r\n\t\t\tcourseid=sc.next();\r\n\t\t\tSystem.out.println(\"Enter the course name:\");\r\n\t\t\tcoursename=sc.next();\r\n\t\t\tCourses object=new Courses(courseid, coursename);\r\n\t\t\tcourses[i]=object;\r\n\t\t}\t\t\r\n\t\tstudents[count++]=new Student(rollnumber, studname, courses);\r\n\t\treturn \"Student added successfully\";\t\r\n\t}",
"@Override\n\tpublic EnrollmentStatus isSatisfiedBy(Section section) {\n\t\tfor(Course c : palnOfStudy.getCourses()){\n\t\t\tSystem.out.println(\"section:\"+section.getRepresentedCourse().getCourseNo());\n\t\t\tSystem.out.println(\"courseNo:\"+c.getCourseNo());\n\t\t\tif(section.getRepresentedCourse().getCourseNo().equals(c.getCourseNo())){\n\t\t\t\treturn EnrollmentStatus.success;\n\t\t\t}\n\t\t}\n\t\treturn EnrollmentStatus.notInPlan;\n\t}",
"public void admitStudent(){\n\t\tthis.getCourse().addStudent(this.getStudent());\n\t\tthis.getStudent().addCourse(this.getCourse());\n\t\tthis.course.removeApplication(this);\n\t}",
"@Override\r\n\tpublic void save() {\n\t\tif (section != null && !section.isEmpty()) {\r\n\t\t\tif (gradeLevel == null || gradeLevel.isEmpty()) {\r\n\t\t\t\tSection sec = (Section) Section.extractObject(Section.class.getSimpleName(), section);\r\n\t\t\t\tgradeLevel = sec.gradeLevel;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (course == null && gradeLevel != null && !gradeLevel.isEmpty()) {\r\n\t\t\tGradeLevel lvl = (GradeLevel) GradeLevel.extractObject(GradeLevel.class.getSimpleName(), gradeLevel);\r\n\t\t\tcollege = lvl.college;\r\n\t\t\tcourse = lvl.course;\r\n\t\t}\r\n\t\tif (course!=null && course.startsWith(\"B\")) {\r\n\t\t\tcollege = true;\r\n\t\t}\r\n\t\tif (!isEmptyKey()) {\r\n//\t\t\twe can get the latest enrollment schoolyear\r\n\t\t\ttry {\r\n\t\t\t\tif (\"ENROLLED\".equals(status)) {\r\n\t\t\t\t\tString sc = DBClient.getSingleColumn(BeanUtil.concat(\"SELECT a.schoolYear FROM Enrollment a WHERE a.studentId=\",personId,\" ORDER BY a.schoolYear DESC\")).toString();\r\n\t\t\t\t\tlatestSchoolYear = sc;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (schoolYear==null || schoolYear.isEmpty()) {\r\n\t\t\tschoolYear = AppConfig.getSchoolYear();\r\n\t\t}\r\n\t\tpersonType = \"STUDENT\";\r\n\t\tif (isEmptyKey()) {\r\n\t\t\tsuper.save();\r\n new springbean.SchoolDefaultProcess().createAllSubjects(this);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuper.save();\r\n\t\t}\r\n\t}",
"private void setStudentScroll() {\n\t\t\t\tVector<User> studentList = client.getStudentList();\n\t\t\t\tcourseGUI.getModel().removeAllElements();\n\t\t\t\tif(studentList == null)return;\n\t\t\t\tfor(int i = 0; i < studentList.size(); i++)\n\t\t\t\t{\n\t\t\t\t\tString info = studentList.get(i).getID() + \" \" + studentList.get(i).getFirstName() \n\t\t\t\t\t\t\t+ \" \" + studentList.get(i).getLastName() + \" \";;\n\t\t\t\t\t\t\tif(client.isEnrolled(studentList.get(i), courseGUI.getCourse().getName()))\n\t\t\t\t\t\t\t\tinfo += (\"\t\t(enrolled)\");\n\t\t\t\t\t\t\tcourseGUI.getModel().addElement(info);\n\t\t\t\t}\n\t\t\t\t//courseGUI.list.setModel(courseGUI.model);\n\t\t\t}",
"@Override\n public void addStudent(String firstName, String lastName, int age, Set<Course> courses) {}",
"public void enroll() {\n\tdo {\n\t\tSystem.out.print(\"Enter Courses to enroll (Q for Quit Enrollment): \");\n\t\tScanner in = new Scanner(System.in);\n\t\tString course = in.nextLine();\n\t\t\n\t\tif(!course.equals(\"Q\")){\n\t\tcountCourses++;\n\t\tcourses = courses + \"\\n \" +course;\n\t\ttuitionBalance = tuitionBalance + costOfCourse;\n\t\t}else {System.out.println(\"You have decided to quit Enrolment\");\n\t\t break;}\t\t\n\t}while (1 != 0); \n\tint ccount = countCourses++;\n\t\tSystem.out.println(\"You have registered for \" + ccount + \" Courses: \" + courses + \"\\nYour tuition balance is \" + tuitionBalance);\n\t}",
"public void enrolStudent(Estudante newStudent) {\n if(estudantes.size() == capacidade) {\n System.out.println(\"A disciplina está lotada, infelizmente o estudante não pode ser matriculado.\");\n }\n else {\n estudantes.add(newStudent);\n }\n }",
"static void initializeStudentSystem() {\r\n\r\n Course math = new Course(\"1000\", \"Mathematics\", \"College of Science\");\r\n Course computing = new Course(\"1001\", \"Computing\", \"College of Engineering\");\r\n Course english = new Course(\"1002\", \"English\", \"College of Liberal Arts\");\r\n Course history = new Course(\"1003\", \"History\", \"College of Liberal Arts\");\r\n Course biology = new Course(\"1004\", \"Biology\", \"College of Science\");\r\n courses.put(math.getCRN(), math);\r\n courses.put(computing.getCRN(), computing);\r\n courses.put(english.getCRN(), english);\r\n courses.put(history.getCRN(), history);\r\n courses.put(biology.getCRN(), biology);\r\n //\r\n User admin = new User();\r\n admin.setUsername(\"admin\");\r\n admin.setPassword(\"admin\");\r\n admin.setAccountType(4);\r\n accounts.put(admin.getUsername(), admin);\r\n //\r\n Student defaultStudent = new Student();\r\n defaultStudent.setName(\"Jose Cabrera\");\r\n defaultStudent.setUsername(\"John1\");\r\n defaultStudent.setPassword(\"123\");\r\n defaultStudent.setId(\"80539934\");\r\n defaultStudent.setMajor(\"CS\");\r\n defaultStudent.setAccountType(1);\r\n defaultStudent.setGraduationStatus(21);\r\n accounts.put(\"John1\", defaultStudent);\r\n //\r\n Student defaultStudent2 = new Student();\r\n defaultStudent2.setName(\"Raul Hinostroza\");\r\n defaultStudent2.setUsername(\"John2\");\r\n defaultStudent2.setPassword(\"123\");\r\n defaultStudent2.setId(\"805393\");\r\n defaultStudent2.setMajor(\"CS\");\r\n defaultStudent2.setAccountType(1);\r\n accounts.put(\"John2\", defaultStudent2);\r\n //\r\n Student defaultStudent3 = new Student();\r\n defaultStudent3.setName(\"Max Morales\");\r\n defaultStudent3.setUsername(\"John3\");\r\n defaultStudent3.setPassword(\"123\");\r\n defaultStudent3.setId(\"8053923\");\r\n defaultStudent3.setMajor(\"CS\");\r\n defaultStudent3.setAccountType(1);\r\n accounts.put(\"John3\", defaultStudent3);\r\n defaultStudent.addCourses(\"1000\");\r\n defaultStudent2.addCourses(\"1000\");\r\n defaultStudent3.addCourses(\"1000\");\r\n //\r\n Faculty defaultFaculty = new Faculty();\r\n defaultFaculty.setAccountType(2);\r\n defaultFaculty.setName(\"Smith\");\r\n defaultFaculty.setUsername(\"Smith1\");\r\n defaultFaculty.setPassword(\"123\");\r\n accounts.put(defaultFaculty.getUsername(), defaultFaculty);\r\n //\r\n Staff defaultStaff = new Staff();\r\n defaultStaff.setAccountType(3);\r\n defaultStaff.setName(\"Smith\");\r\n defaultStaff.setUsername(\"Smith2\");\r\n defaultStaff.setPassword(\"123\");\r\n accounts.put(defaultStaff.getUsername(), defaultStaff);\r\n }",
"@Override\r\n\tpublic void addStudentInCourse(Course course, User user) {\n\t\t\r\n\t}",
"public void addStudent(Student InStudent)\n\t{\n\t\tclassRoll.add (InStudent);\n\t\tthis.saveNeed = true;\n\n\t\t\n\t}",
"public void setStudents() {\n\t}",
"private void assignCourses() throws StudentEnrollmentException {\n\t\tCourse newCourse;\n\t\tfor (int id : courseID) {\n\t\t\tnewCourse = courseDao.getCourse(id);\n\t\t\tstudent.assignNewCourse(newCourse);\n\t\t}\n\t}",
"public void registerIncourse(String cname, int sec, String fname, String lname) {\n\t\tString user, pass, first, last;\n\t\tfor (int i = 0; i < CourseManager.courses.size(); i++) {\n\t\t\tif (CourseManager.courses.get(i).getName().equals(cname) && CourseManager.courses.get(i).getSection() == sec) {\n\t\t\t\tfor (int j = 0; j < CourseManager.students.size(); j++) {\n\t\t\t\t\tif (CourseManager.students.get(j).getFirstname().equals(fname) && CourseManager.students.get(j).getLastname().equals(lname)) {\n\t\t\t\t\t\tuser = CourseManager.students.get(j).getUsername();\n\t\t\t\t\t\tpass = CourseManager.students.get(j).getPassword();\n\t\t\t\t\t\tfirst = CourseManager.students.get(j).getFirstname();\n\t\t\t\t\t\tlast = CourseManager.students.get(j).getLastname();\n\t\t\t\t\t\tStudent newstud = new Student(user, pass, first, last);\n\t\t\t\t\t\tCourseManager.courses.get(i).addStudent(newstud);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void addStudent(Student student) {\n\t\t\r\n\t}",
"public static void editStudentInfo(){\n System.out.println(\"Enter the students ID\");\r\n System.out.println(\"=============================\");\r\n Scanner studentNameSearch = new Scanner(System.in);\r\n String idToSearch = studentNameSearch.nextLine();\r\n for (Student searchStudent : studentList){ //basic loop to search through the list of student by the ID\r\n if (searchStudent.getStudentID().equals(idToSearch)){\r\n searchStudent.printStudentInfo();\r\n System.out.println(\"What would you like to do?\");\r\n System.out.println(\"===========================\");\r\n System.out.println(\"1: Change a students name\");\r\n System.out.println(\"2: Add a course\");\r\n System.out.println(\"3: Remove a course\");\r\n System.out.println(\"4: Set course as completed\");\r\n System.out.println(\" \");\r\n Scanner editChoice = new Scanner(System.in);\r\n\r\n switch (editChoice.nextInt()){\r\n case 1 -> {\r\n //Edit first and last name\r\n Scanner newNameInput = new Scanner(System.in);\r\n System.out.println(\"Enter the students Last name\");\r\n String newName = newNameInput.nextLine();\r\n searchStudent.setLastName(newName);\r\n System.out.println(\"Enter the students First name\");\r\n String newName1 = newNameInput.nextLine();\r\n searchStudent.setFirstName(newName1);\r\n searchStudent.getFullName();\r\n mainMenu();\r\n }\r\n case 2 -> {\r\n //search for a course and add a course to the students schedule\r\n System.out.println(\"Enter the course ID\");\r\n Scanner courseToAdd = new Scanner(System.in);\r\n String courseIdToSearch = courseToAdd.nextLine();\r\n for (Course searchCourse : courseList){\r\n if (searchCourse.getCourseID().equals(courseIdToSearch)){\r\n searchStudent.addClasstoSchedule(searchCourse);\r\n }\r\n }\r\n mainMenu();\r\n }\r\n case 3 -> {\r\n //remove a course from the students schedule\r\n System.out.println(\"Enter the course ID\");\r\n Scanner courseToAdd = new Scanner(System.in);\r\n String courseIdToSearch = courseToAdd.nextLine();\r\n for (Course searchCourse : courseList){\r\n if (searchCourse.getCourseID().equals(courseIdToSearch)){\r\n searchStudent.removeClassFromSchedule(searchCourse);\r\n }\r\n }\r\n mainMenu();\r\n }\r\n case 4 ->{\r\n //Set a course as completed\r\n System.out.println(\"Enter the course ID\");\r\n Scanner courseToAdd = new Scanner(System.in);\r\n String courseIdToSearch = courseToAdd.nextLine();\r\n for (Course searchCourse : courseList){\r\n if (searchCourse.getCourseID().equals(courseIdToSearch)){\r\n searchStudent.setCourseComplete(courseIdToSearch);\r\n }\r\n }\r\n mainMenu();\r\n }\r\n default -> {\r\n //does nothing\r\n }\r\n\r\n }\r\n\r\n }\r\n else{\r\n System.err.println(\"Could not find student based on that ID\");\r\n mainMenu();\r\n }\r\n }\r\n }",
"public void addStudent(Student student) {\t\r\n\t\t//Adds student to list of students taking module\r\n\t\tStudentList.add(student);\r\n\t\t\r\n\t\t// adds module to students list of modules\r\n\t\tstudent.AddModuleList(ModuleName);\r\n}",
"public static void main (String [] args) {\n Address school = new Address(\"800 Lancaster Ave.\", \"Villanova\",\n \"PA\", 19085);\n //create home address objects for a number of students\n Address home1 = new Address(\"21 Jump Street\", \"Blacksburg\",\n \"VA\", 24551);\n Address home2 = new Address(\"123 Main Street\", \"Euclid\", \"OH\", \n 44132);\n Address home3 = new Address(\"5248 Fortress Circle\", \"Valdosta\",\n \"GA\", 31605);\n Address home4 = new Address(\"505 Cedar Drive\", \"Nashville\",\n \"GA\", 31639);\n //create students\n Student student1 = new Student(\"Rick\",\"Sanchez\",home1,school,99,100,97,94);\n Student student2 = new Student(\"Morty\",\"Smith\" ,home2,school,14,28,37,55); \n Student student3 = new Student(\"Zach\",\"Spencer\",home3,school,98,89,86,95);\n Student student4 = new Student(\"Arron\",\"Croft\" ,home4,school,84,99,90,75);\n //create a CS1301 A course\n Course cs1301A = new Course(\"CS1301 A\");\n //create a CS1301 B course\n Course cs1301B = new Course(\"CS1301 B\"); \n //assign some students to CS1301 A\n cs1301A.addStudent(student1);\n cs1301A.addStudent(student2);\n //assign some students to CS1301 B\n cs1301B.addStudent(student3); \n cs1301B.addStudent(student4);\n //get the averages of the 2 courses\n System.out.println(\"*** Averages of CS1301 Courses ***\");\n System.out.println(\"CS1301 A: \"+cs1301A.average());\n System.out.println(\"CS1301 B: \"+cs1301B.average());\n //display the roll for the 2 courses\n System.out.println(\"\\n*** Roll Call ***\");\n cs1301A.roll();\n cs1301B.roll(); \n }",
"public void updateCourse(Course curs) throws SQLException, ClassNotFoundException {\r\n Iterable<Student> allStuds = students.findAll();\r\n List<Student> toUpdate = new ArrayList<>();\r\n Course before = courses.findOne(curs.getId());\r\n\r\n for(Student stud : allStuds){\r\n if(stud.getEnrolledCourses().contains(before)){\r\n //if the student was enrolled to the course in the first place\r\n if(stud.getTotalCredits() - before.getCredits() + curs.getCredits() > 30){\r\n //new course exceeds student max credits therefore must be removed\r\n //delete student from courses enrolled students list\r\n\r\n List<Student> newStudents = curs.getStudentsEnrolled();\r\n newStudents.remove(stud);\r\n curs.setStudentsEnrolled(newStudents);\r\n\r\n //delete course from student list + decrease credits\r\n\r\n List<Course> newCourses = stud.getEnrolledCourses();\r\n newCourses.remove(before);\r\n int newCredits = stud.getTotalCredits() - before.getCredits();\r\n\r\n stud.setTotalCredits(newCredits);\r\n stud.setEnrolledCourses(newCourses);\r\n toUpdate.add(stud);\r\n\r\n //remove the data from the enrolled table\r\n removeEnrolled(curs, stud);\r\n }\r\n else{\r\n //new course does not exceed max credits\r\n //modify student credits\r\n int newCredits = stud.getTotalCredits() - before.getCredits() + curs.getCredits();\r\n stud.setTotalCredits(newCredits);\r\n toUpdate.add(stud);\r\n }\r\n courses.update(curs);\r\n\r\n }\r\n }\r\n for(Student stud2: toUpdate){\r\n students.update(stud2);\r\n }\r\n }",
"public void init() {\n\t\texternallyManaged = getCourse().isExternallyManaged();\n\n\t\t// Get the default search text\n\t\tif(StringUtils.trimToNull(searchText) == null) {\n\t\t\tsearchText = JsfUtil.getLocalizedMessage(\"roster_search_text\");\n\t\t}\n\n\t\t// Get the site enrollments\n\t\tList siteStudents;\n\t\tif(searchText.equals(JsfUtil.getLocalizedMessage(\"roster_search_text\"))) {\n\t\t\tsiteStudents = getSectionManager().getSiteEnrollments(getSiteContext());\n\t\t} else {\n\t\t\tsiteStudents = getSectionManager().findSiteEnrollments(getSiteContext(), searchText);\n\t\t}\n\t\t\n\t\t// Get the section enrollments\n\t\tSet studentUids = new HashSet();\n\t\tfor(Iterator iter = siteStudents.iterator(); iter.hasNext();) {\n\t\t\tParticipationRecord record = (ParticipationRecord)iter.next();\n\t\t\tstudentUids.add(record.getUser().getUserUid());\n\t\t}\n\t\tSectionEnrollments sectionEnrollments = getSectionManager().getSectionEnrollmentsForStudents(getSiteContext(), studentUids);\n\t\t\n\t\t// Construct the decorated enrollments for the UI\n\t\tList unpagedEnrollments = new ArrayList();\n\t\tcategories = getSectionManager().getSectionCategories(getSiteContext());\n\t\t\n\t\tfor(Iterator iter = siteStudents.iterator(); iter.hasNext();) {\n\t\t\tEnrollmentRecord enrollment = (EnrollmentRecord)iter.next();\n\t\t\t\n\t\t\t// Build a map of categories to sections in which the student is enrolled\n\t\t\tMap map = new HashMap();\n\t\t\tfor(Iterator catIter = categories.iterator(); catIter.hasNext();) {\n\t\t\t\tString cat = (String)catIter.next();\n\t\t\t\tCourseSection section = sectionEnrollments.getSection(enrollment.getUser().getUserUid(), cat);\n\t\t\t\tmap.put(cat, section);\n\t\t\t}\n\t\t\tEnrollmentDecorator decorator = new EnrollmentDecorator(enrollment, map);\n\t\t\tunpagedEnrollments.add(decorator);\n\t\t}\n\n\t\t// Sort the list\n\t\tCollections.sort(unpagedEnrollments, getComparator());\n\t\t\n\t\t// Filter the list\n\t\tenrollments = new ArrayList();\n\t\tint lastRow;\n\t\tint maxDisplayedRows = getPrefs().getRosterMaxDisplayedRows();\n\t\tif(maxDisplayedRows < 1 || firstRow + maxDisplayedRows > unpagedEnrollments.size()) {\n\t\t\tlastRow = unpagedEnrollments.size();\n\t\t} else {\n\t\t\tlastRow = firstRow + maxDisplayedRows;\n\t\t}\n\t\tenrollments.addAll(unpagedEnrollments.subList(firstRow, lastRow));\n\t\tenrollmentsSize = unpagedEnrollments.size();\n\t}",
"private static void displayEnrolledCourses(Student currentStudent,ArrayList<Course> courses){\n\t\tCollections.sort(courses, new courseCompare());\n\t\tArrayList<CourseOffering> offeringNum = new ArrayList<CourseOffering>();\n\t\tint i = 0;\n\n\t\t// Loop through the enrolled courses\n\t\tfor(Course course : courses) {\n\t\t\tfor(CourseOffering offering : course.getCourseOfferings()) {\n\t\t\t\tif(offering.isStudentEnrolled(currentStudent) || offering.isStudentWaitlisted(currentStudent)){\n\t\t\t\t\tSystem.out.println(course.toString());\n\t\t\t\t\tSystem.out.print(\"\\t\" + (i+1) + \": \");\n\t\t\t\t\t// Display if they are dropping vs. removing from waitlist\n\t\t\t\t\tif(offering.isStudentEnrolled(currentStudent))\n\t\t\t\t\t\tSystem.out.print(\"Drop->\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\"Remove from waitlist->\");\n\t\t\t\t\tSystem.out.println(offering.toString());\n\t\t\t\t\tofferingNum.add(i, offering);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check to see if the list of courses is empty\n\t\tif(offeringNum.size() == 0){\n\t\t\tSystem.out.println(\"No enrolled or waitlisted courses.\");\n\t\t\treturn;\n\t\t}\n\n\t\t// Prompt the user for their selection\n\t\tSystem.out.println(\"Enter the number of the course offering you would like to drop\");\n\t\tSystem.out.print(\"or enter zero to return to main menu: \");\n\t\tString selection = input.nextLine();\n\t\ttry {\n\t\t\tint optionNum = Integer.parseInt(selection);\n\t\t\tif(optionNum > 0 && optionNum <= i){\n\t\t\t\tofferingNum.get(optionNum-1).dropStudent(currentStudent);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"Invalid selection. Returning to main menu.\");\n\t\t}\n\n\t}",
"private void setStudentId() {\n\t id++;\n\t this.studentId=gradeYear+\"\"+id;\n }",
"synchronized public boolean addToEveningRoster(Student student){\n if(getWaitlist().contains(student)) {\n getWaitlist().remove(student);\n }\n if(getTotalEnrolledEvening() < MAXROSTER) {\n getEveningRoster().add(student);\n return true;\n }\n else if(getTotalEnrolledMorning() <MAXROSTER) {\n getMorningRoster().add(student);\n return true;\n }\n else {\n getWaitlist().add(student);\n }\n return false;\n }",
"private static void addFinedStudentsToTable(StudentDetails student) {\n\t\tif(student.getTotalFine() > 0)\n\t\t\tFINED_STUDENTS.put(student.getId(), student.toString());\n\t}",
"public static JSONObject enroll(Context context, String studentId, String enrollmentCode) {\n\t\ttry {\n\t\t\tenrollmentCode = URLEncoder.encode(enrollmentCode, \"UTF-8\");\n\t\t\tString response = makeAPICall(context, \"enroll.php?student_id=\" + studentId + \"&enrollment_code=\" + enrollmentCode);\n\t\t\treturn new JSONObject(response);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public void accountantSection() throws NumberFormatException, IOException, ClassNotFoundException, SQLException, DocumentException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStudentDetailsDao std = new StudentDetailsDao();\n\t\tFeeDetailsDao fdd = new FeeDetailsDao();\n\t\tValidation val = new Validation();\n\t\tStudentPojo st = new StudentPojo();\n\t\t\n\t\twhile(true) {\n\t\t\tSystem.out.println(\"------ACCOUNTANT SECTION------\");\n\t\t\tSystem.out.println(\" 1: Add Student \");\n\t\t\tSystem.out.println(\" 2: view Student \");\n\t\t\tSystem.out.println(\" 3: Delete Student \");\n\t\t\tSystem.out.println(\" 4: Update Student \");\n\t\t\tSystem.out.println(\" 5: Export Student Fee Report pdf\");\n\t\t\tSystem.out.println(\" 6: Logout \");\n\t\t\tint opt = 0;\n\t\t\ttry {\n\t\t\t\topt = Integer.parseInt(br.readLine());\n\t\t\t}\n\t\t\tcatch(Exception e) {\n\t\t\t\tSystem.out.println(\" \\nSelect from above given respective inputs.\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t//------------------ADD STUDENT-----------------------------------------------------\n\t\t\tif(opt == 1) {\n\t\t\t\tSystem.out.println(\"------ADD STUDENT-------\");\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student Roll NO. : \");\n\t\t\t\t\tint id = 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t id = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\"You have entered wrong input only numbers will allow.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\tst.setId(id);\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student Name : \");\n\t\t\t\t\tString name = br.readLine();\n\t\t\t\t\tboolean check = val.name(name);\n\t\t\t\t\tif(check == true) {\n\t\t\t\t\t\tst.setName(name);\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(\"You have entered wrong input only Alphabets will allow.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student DOB(ex:25-10-1990) : \");\n\t\t\t\t\tString dob = br.readLine();\n\t\t\t\t\tboolean check = val.dob(dob);\n\t\t\t\t\tif(check == true) {\n\t\t\t\t\t\tst.setDob(dob);\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(\" Not a valid DOB see example\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" Enter Student Address : \");\n\t\t\t\tString address = br.readLine();\n\t\t\t\tst.setAddress(address);\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student Branch : \");\n\t\t\t\t\tString branch = br.readLine();\n\t\t\t\t\tboolean check = val.name(branch);\n\t\t\t\t\tif(check == true) {\n\t\t\t\t\t\tst.setBranch(branch);\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(\" Invalid input \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" Enter Student Batch year(ex:1990) : \");\n\t\t\t\tint year = 0;\n\t\t\t\twhile(true) {\n\t\t\t\t\ttry {\n\t\t\t\t\tyear = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Not a valid input only numbers will allow.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tString reg = \"^\\\\d{4}$\";\n\t\t\t\t\tboolean e = Pattern.compile(reg).matcher(Integer.toString(year)).matches();\n\t\t\t\t\tif(e == true) {\n\t\t\t\t\t\tst.setYear(year);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\" Please Enter valid input, see example.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\" Enter Student Gender : \");\n\t\t\t\t\tString gender = br.readLine();\n\t\t\t\t\tboolean check = val.gender(gender);\n\t\t\t\t\tif(check == true) {\n\t\t\t\t\t\tst.setGender(gender);\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(\" Invalid input \");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\tSystem.out.println(\" Enter Student contact(ex: +91 (789){1} (947982384){9}) : \");\n\t\t\t\tString contact = br.readLine();\n\t\t\t\tboolean check = val.contact(contact);\n\t\t\t\tif(check == true) {\n\t\t\t\t\tst.setContact(contact);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\" Invalid input,see example \");\n\t\t\t\t\tcontinue;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t\tstd.addStudent(st);\n\t\t\t\t\n\t\t\t\t//-----------------ADD STUDENT FEE DETAILS--------------------------\n\t\t\t\t\n\t\t\t\tSystem.out.println(\" ---ADD STUDENT FEE DETAILS---\");\n\t\t\t\tSystem.out.println(\" Total fees is : 40,000 .\");\n\t\t\t\twhile(true) {\n\t\t\t\t\tint paidfees =0;\n\t\t\t\t\tSystem.out.println(\" Enter Student paid fees : \");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpaidfees = Integer.parseInt(br.readLine());\n\t\t\t\t\t\tif(paidfees>40000) {\n\t\t\t\t\t\t\tSystem.out.println(\" You just have to pay 40,000.\");\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Not a valid input only numbers will allow.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tst.setPaidfees(paidfees);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfdd.addStudentFeeDetails(st);\n\t\t\t}\n\t\t\telse if(opt ==2) {\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\"\\n---------View Student Details----------\\n \");\n\t\t\t\t\tSystem.out.println(\" 1. : View Student personal Details \");\n\t\t\t\t\tSystem.out.println(\" 2. : View Student Fee Details \");\n\t\t\t\t\tSystem.out.println(\" 3. : Exit\");\n\t\t\t\t\t\n\t\t\t\t\tint ch=0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tch= Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\tSystem.out.println(\" Select from above given respective inputs.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif(ch == 1) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tstd.viewStudent();\n\t\t\t\t\t}\n\t\t\t\t\telse if(ch ==2) {\n\t\t\t\t\t\tfdd.viewFeeDetails();\n\t\t\t\t\t}\n\t\t\t\t\telse if(ch ==3) {\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(\"\\n please enter above listed valid inputs\\n\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t//------------------DELETE STUDENT-----------------------------------------------------\n\t\t\telse if(opt ==3) {\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\"\\n---------Delete Student Details----------\\n \");\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\" Enter Student ID : \");\n\t\t\t\t\tint id = 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tid = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Please enter a valid input..\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tstd.deleteStudent(id);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//------------------UPDATE STUDENT-----------------------------------------------------\n\t\t\telse if(opt ==4) {\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\"\\n---------Update Student Details----------\\n \");\n\t\t\t\t\tSystem.out.println(\" ==Update Student Fee Details== \");\n\t\t\t\t\tSystem.out.println(\" Enter Student Roll NO. : \");\n\t\t\t\t\tint id = 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tid = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Please enter a valid input..\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tfdd.updateFeeDetails(id);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//------------------Export STUDENT Fee Details-----------------------------------------------------\n\t\t\telse if(opt ==5) {\n\t\t\t\t\n\t\t\t\twhile(true) {\n\t\t\t\t\tSystem.out.println(\"\\n---------Export STUDENT Fee Details----------\\n \");\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\" Enter Student Roll NO. : \");\n\t\t\t\t\tint id = 0;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tid = Integer.parseInt(br.readLine());\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e) {\n\t\t\t\t\t\tSystem.out.println(\" Please enter a valid input..\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tExportPdf epd = new ExportPdf();\n\t\t\t\t\tepd.ExportPdf(id);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(opt ==6) {\n\t\t\t\tSystem.out.println(\"\\n\\t.....Successfully Accountant Logging Out......\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\n....You have entered a wrong input...\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\t\n\t}",
"public void addStudentWithId(int id) {\n\t\tfor(Team team : this.schoolClass.getTeams()) {\n\t\t\tif(team.containsStudentWithId(id)) {\n\t\t\t\tSystem.out.println(\"Adding a Student From Team \" + team.getName());\n\t\t\t\tif(activeTurnTeamIndex < 0) {\n\t\t\t\t\tactiveTurnTeamIndex = 0;\n\t\t\t\t}\n\t\t\t\tclearUpToDateStatus();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void addStudent(Student student) {}",
"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 }",
"public void enrolStudent(String id) {\r\n System.out.println(\"conectado con model ---> metodo enrolStudent\");\r\n //TODO\r\n }",
"@Override\r\npublic void addUserToCourse(User user, Course course) {\n\tSystem.out.println(\"Student \"+user.getName()+ \" has joined the \"+course.getCourseName()+\".\");\r\n\t\t\r\n}",
"private static void init() {\n\n students = new HashMap<String, Student>(); //redundant but there for my reference\n\n //new Student objects, from the Student class, that are in our new HashMap called students\n Student annette = new Student(\"Annette\");\n annette.addGrade(90); // addGrade method from the Student class\n annette.addGrade(85);\n annette.addGrade(40);\n\n annette.recordAttendance( \"2019-10-01\", \"A\");\n annette.recordAttendance( \"2019-10-02\", \"P\");\n annette.recordAttendance( \"2019-10-03\", \"A\");\n annette.recordAttendance( \"2019-10-04\", \"P\");\n\n\n Student bridget = new Student(\"Bridget\");\n bridget.addGrade(90);\n bridget.addGrade(70);\n bridget.addGrade(60);\n\n bridget.recordAttendance( \"2019-10-01\", \"A\");\n bridget.recordAttendance( \"2019-10-02\", \"P\");\n bridget.recordAttendance( \"2019-10-03\", \"A\");\n bridget.recordAttendance( \"2019-10-04\", \"P\");\n\n\n Student bev = new Student(\"Bev\");\n bev.addGrade(97);\n bev.addGrade(96);\n bev.addGrade(95);\n\n bev.recordAttendance( \"2019-10-01\", \"A\");\n bev.recordAttendance( \"2019-10-02\", \"P\");\n bev.recordAttendance( \"2019-10-03\", \"A\");\n bev.recordAttendance( \"2019-10-04\", \"P\");\n\n\n Student glo = new Student(\"Glo\");\n glo.addGrade(94);\n glo.addGrade(93);\n glo.addGrade(92);\n\n glo.recordAttendance( \"2019-10-01\", \"A\");\n glo.recordAttendance( \"2019-10-02\", \"P\");\n glo.recordAttendance( \"2019-10-03\", \"A\");\n glo.recordAttendance( \"2019-10-04\", \"P\");\n\n\n // sets the usernames as keys\n // and values that are student objects\n students.put(\"bmills\", bridget);\n students.put(\"annette1\", annette);\n students.put(\"bevvybev\", bev);\n students.put(\"thegloUp\", glo);\n\n }",
"private void setStudentID() {\n\t\tid++;\n\t\tthis.studentId = gradeYear + \"\" + id;\n\t\tSystem.out.println(this.studentId);\n\t}",
"public String roll() {\n String roll = courseName;\n for (Student student : studentList) {\n roll += \"\\n\\n\" + student.toString();\n }\n return roll;\n }",
"private void showStudentCourses()\r\n {\r\n \tString courseResponse = \"\";\r\n \tfor(Course course : this.getDBManager().getStudentCourses(this.studentId))\r\n \t{\r\n \t\tcourseResponse += \"Course Faculty: \" + course.getCourseName() + \", Course Number: \" + String.valueOf(course.getCourseNum()) + \"\\n\";\r\n \t}\r\n \tthis.getClientOut().printf(\"SUCCESS\\n%s\\n\", courseResponse);\r\n \tthis.getClientOut().flush();\r\n }",
"private void enterStudentPersonalities() throws IOException {\n boolean foundStudent = false, validPersonality = false;\n String studID;\n char studPersonality = 0;\n\n do {\n System.out.println(\"\\nEnter assigned student ID:\");\n studID = Global.scan.nextLine();\n\n for (Student stud: Student.allStudents) {\n if (stud.getId().compareTo(studID) == 0) {\n foundStudent = true;\n System.out.println(\"\\nPlease enter personality of \" + studID + \" :\");\n studPersonality = Global.scan.nextLine().toUpperCase().charAt(0);\n char[] validPersonalities = {'A', 'B', 'C', 'D', 'E', 'F'};\n for (int i = 0; i < 6; i++) {\n if (studPersonality == validPersonalities[i]) {\n validPersonality = true;\n stud.setStudentPersonality(studPersonality);\n System.out.println(stud.getStudentPersonality());\n }\n }\n if (!validPersonality) {\n System.out.println(\"Invalid personality type!\");\n }\n }\n }\n if (!foundStudent) {\n System.out.println(\"Student not found!\");\n }\n } while (foundStudent == false || studID.isEmpty() || studPersonality == '0');\n FileReadWrite.saveStudentDetails(Main.studentsFileName, Student.allStudents);\n }",
"public void update(){\n\t\tif ( crm.addedNewStudent()){\n\t\t\tList<Student> students = crm.getStudents();\n\t\t\tStudent newest = students.get(students.size()-1);\n\t\t\tint ID = newest.ID();\n\t\t\tString name = newest.name();\n\t\t\tint GradYear = newest.GradYear();\n\t\t\tsv.addStudent(ID, name, GradYear);\n\t\t}\n\t}",
"@Override\n public void onSuccess(List<Student> students) {\n for (int i = 0; i < students.size(); i++) {\n // continue == lewati\n // berarti lewati student dengan status alumni\n\n if (students.get(i).getStatus().equals(\"alumni\")) continue;\n //hanya berisi student dengan status selain alumni\n System.out.println(\"NIM : \" + students.get(i).getNim());\n System.out.println(\"Name : \" + students.get(i).getName());\n System.out.println(\"Class : \" + students.get(i).getKlas());\n System.out.println(\"Status : \" + students.get(i).getStatus());\n System.out.println();\n }\n }",
"public void getstudentInformation(int house) throws IOException {\r\n\t\tBoolean studentYearValidity = true, studentNameValidity = true;\r\n\t\tString studentName = \"\";\r\n\t\tString studentYear = \"\";\r\n\t\tstudentYearValidity = isNumber(this.enrollStudentYear.getText());\r\n\t\tstudentNameValidity = isValidInput(this.enrollStudentName.getText());\r\n\t\tif (studentYearValidity == false) {\r\n\t\t\tthis.enrolledMessage.setFill(Color.RED);\r\n\t\t\tthis.studentYearLabel.setStyle(\"-fx-text-fill: red\");\r\n\t\t\tthis.enrolledMessage.setText(\"Invalid student information, please try again.\");\r\n\t\t}\r\n\t\tif (studentNameValidity == false) {\r\n\t\t\tthis.enrolledMessage.setFill(Color.RED);\r\n\t\t\tthis.studentNameLabel.setStyle(\"-fx-text-fill: red\");\r\n\t\t\tthis.enrolledMessage.setText(\"Invalid student information, please try again.\");\r\n\t\t} else if (studentNameValidity == true && studentYearValidity == true) {\r\n\t\t\tsetValid();\r\n\t\t\tthis.enrolledMessage.setFill(Color.web(\"rgb(8, 122, 46)\"));\r\n\t\t\tstudentName = this.enrollStudentName.getText();\r\n\t\t\tstudentYear = this.enrollStudentYear.getText();\r\n\t\t\tswitch (house) {\r\n\t\t\tcase 0:\r\n\t\t\t\twriteTofile(\"Gryffindor.csv\", studentName, studentYear);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\twriteTofile(\"Slytherin.csv\", studentName, studentYear);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\twriteTofile(\"Hufflepuff.csv\", studentName, studentYear);\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\twriteTofile(\"Ravenclaw.csv\", studentName, studentYear);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tthis.enrolledMessage.setText(\"Student successfully enrolled: \" + this.enrollStudentName.getText()\r\n\t\t\t\t\t+ \", year \" + this.enrollStudentYear.getText());\r\n\t\t\tthis.enrollStudentName.clear();\r\n\t\t\tthis.enrollStudentYear.clear();\r\n\t\t}\r\n\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 void registerCourse()\n {\n \t\n\t\t// a loop over the requestedCourseList until there is no course or the student can graduate\n\t\twhile(requestedCourses.size()>0 || waitedListCourses.size()>0 )\n\t\t{\n\n\t\t if(isGraduate() == true)\n\t\t {\n\t\t \tbreak;\n\t\t }\n\t\t // check the number of courses can be taken by the student in the current semester\n\t\t /*\n\t\t System.out.println(\"####################################################################################\");\n\t\t System.out.println(\"In student registerCourse function\");\n\t\t System.out.println(\"The semseter number is: \" + semesterNum);\n\t\t */\n\n\t\t if(currentSemesterCourses.size() < 3)\n\t\t \tstate.registerCourse();\n\t\t else\n\t\t {\n\t\t \tsemesterNum++;\n\t\t \tcurrentSemesterCourses.clear();\n\t\t \tstate.registerCourse();\n\t\t }\n\t\t}\n\t\tif(isGraduate() == true)\n\t\t{\n\n\t\t\tSystem.out.println(\"The student can graduate\");\n\t\t\tSystem.out.println(\"The number of courses the student took was: \" + registeredCourses.size());\n\t\t\tSystem.out.println(\"The semester is : \" + semesterNum);\n\t\t\tSystem.out.println(\"The state number is: \"+ state.getStateNumber());\n\t\t\t// preparing the text to print in the out put file\n\t\t\tString resultText = Integer.toString(stdID);\n\t\t\tresultText += \": \";\n\t\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t\t{\n\t\t\t\tresultText += registeredCourses.get(i);\n\t\t\t\tresultText += \" \";\n\n\t\t\t}\n\t\t\tresultText += \"--\";\n\t\t\tresultText += \" \";\n\t\t\tresultText += Integer.toString(semesterNum);\n\t\t\tresultText += \" \";\n\t\t\tresultText += Integer.toString(state.getStateNumber());\n\t\t\tprintResults.writeResult(resultText);\n \n\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString resultText = Integer.toString(stdID);\n\t\t\tresultText += \": \";\n\t\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t\t{\n\t\t\t\tresultText += registeredCourses.get(i);\n\t\t\t\tresultText += \" \";\n\n\t\t\t}\n\t\t\tresultText += \"--\";\n\t\t\tresultText += \" \";\n\t\t\tresultText += Integer.toString(semesterNum);\n\t\t\tresultText += \" \";\n\t\t\tresultText += Integer.toString(0);\n\t\t\tprintResults.writeResult(resultText);\n\n\t\t}\n\n\n \t\n return ;\n \t\n\n\n }",
"public void showstudents(){\n for (int i=0; i<slist.size(); i++){\n System.out.println(slist.get(i).getStudent());\n }\n }",
"public static void main(String[] args) {\n Student s1 = new Student(\"Azat\");\n Student s2 = new Student(\"Saida\");\n Student s3 = new Student(\"Adil\");\n Student s4 = new Student(\"Sabira\");\n Student s5 = new Student(\"Saniya\");\n\n\n List<Student> cybertekStudents = new ArrayList<>(Arrays.asList(s1, s2, s3, s4, s5));\n\n School cybertek = new School(\"Cybertek\", cybertekStudents);\n\n cybertekStudents.add(new Student(\"Denis\"));\n cybertekStudents.add(new Student(\"Irina\"));\n\n System.out.println(cybertek);\n System.out.println(cybertek.schoolName);\n System.out.println(cybertek.allStudentsList);\n\n Student[] students = {new Student(\"Gulnaz\"),\n new Student(\"Sardar\")};\n cybertek.addNewStudent(students);\n System.out.println(cybertek.allStudentsList);\n\n for (Student each : cybertekStudents) {\n System.out.println(each.studentName);\n //347-785-9417 munavvar\n //donna fro Wic, how she is share info 718 616 4338\n\n\n }\n }",
"private static void displayAvailableCourses(Student currentStudent,ArrayList<Course> courses){\n\t\tCollections.sort(courses, new courseCompare());\n\t\tArrayList<CourseOffering> offeringNum = new ArrayList<CourseOffering>();\n\t\tint i = 0;\n\n\t\t// Loop through all the courses and print them\n\t\tfor(Course course : courses) {\n\t\t\tSystem.out.println(course.toString());\n\n\t\t\t// If a course has available offerings display them\n\t\t\tfor(CourseOffering offering : course.getCourseOfferings()) {\n\t\t\t\t// if the current student is not enrolled, then display the offering\n\t\t\t\tif(!offering.isStudentEnrolled(currentStudent) && !offering.isStudentWaitlisted(currentStudent)) {\n\t\t\t\t\tSystem.out.print(\"\\t\"+(i+1) + \": \");\n\t\t\t\t\t// Display if they are enrolling vs. adding to waitlist\n\t\t\t\t\tif(offering.getEnrolledStudents().size() < offering.getMaxStudents())\n\t\t\t\t\t\tSystem.out.print(\"Add->\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\"Waitlist->\");\n\t\t\t\t\tSystem.out.println(offering.toString());\n\t\t\t\t\tofferingNum.add(i, offering);\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Check to see if there are no available courses\n\t\tif(offeringNum.size() == 0) {\n\t\t\tSystem.out.println(\"No available courses.\");\n\t\t\treturn; \n\t\t}\n\n\t\t// Prompt the user for their selection\n\t\tSystem.out.println(\"Enter the number of the course offering you would like to add\");\n\t\tSystem.out.print(\"or enter zero to return to main menu: \");\n\t\tString selection = input.nextLine();\n\t\ttry{\n\t\t\tint optionNum = Integer.parseInt(selection);\n\t\t\tif(optionNum > 0 && optionNum <= i){\n\t\t\t\tofferingNum.get(optionNum-1).enrollStudent(currentStudent);\n\t\t\t} \n\t\t}\n\t\tcatch (NumberFormatException e) {\n\t\t\tSystem.out.println(\"Invalid selection. Returning to main menu.\");\n\t\t}\n\t}",
"public void setStudent(String students) {\n\t\tthis.students = students;\n\t}",
"public String addCourse(String courseName, int section) {\r\n String result = \"\";\r\n try {\r\n System.out.println(courseName);\r\n String query = \"SELECT * FROM courses WHERE coursename=?\";\r\n PreparedStatement pstmt = conn.prepareStatement(query);\r\n pstmt.setString(1, courseName);\r\n ResultSet rs = pstmt.executeQuery();\r\n if (!rs.next()) {\r\n result = \"Course not found\";\r\n return result;\r\n }\r\n int courseid = rs.getInt(\"courseid\");\r\n if (checkDuplicate(courseid)) {\r\n result = \"Already registered in this course\";\r\n return result;\r\n }\r\n if (studentRegList.size() >= 6) {\r\n result = \"Maximum registration reached\";\r\n return result;\r\n }\r\n if (!checkPre(courseid)) {\r\n result = \"Prerequisite not met\";\r\n return result;\r\n }\r\n if (rs.getInt(\"numofsecs\") < section || section <= 0) {\r\n result = \"No such section\";\r\n return result;\r\n }\r\n if (!checkSectionAvailability(courseid, section)) {\r\n result = \"Section is full\";\r\n return result;\r\n }\r\n Registration reg = new Registration(id, courseid, section, \"TBA\", conn);\r\n System.out.print(id);\r\n studentRegList.add(reg);\r\n reg.ongoingRegistration();\r\n\r\n query = \"SELECT * FROM sections WHERE courseid=? AND secnum=?\";\r\n pstmt = conn.prepareStatement(query);\r\n pstmt.setInt(1, courseid);\r\n pstmt.setInt(2, section);\r\n\r\n rs = pstmt.executeQuery();\r\n rs.next();\r\n\r\n if (rs.getInt(\"numofstudents\") >= 8) {\r\n result = \"Minimum student fulfilled, section is run\";\r\n } else {\r\n result = \"Minimum student unfulfilled, waiting for more student before adding to offering list\";\r\n }\r\n\r\n pstmt.close();\r\n rs.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return result;\r\n }",
"private void printStudListByCourse() throws Exception {\n String courseID = null;\n ArrayList<Student> studentList = new ArrayList<Student>();\n\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"\\nPlease enter course ID\");\n courseID = sc.nextLine();\n while(!courseID.matches(\"^[a-zA-Z]{2}[0-9]{4}$\")){\n System.out.println(\"Invalid input! Please enter a valid index number!\");\n courseID = sc.nextLine();\n }\n\n studentList= this.adminManager.getStudentByCourse(courseID);\n if(studentList == null){\n System.out.println(\"\\nThere is no such a course index\\n\\n\");\n System.exit(1);\n }\n if (studentList.isEmpty()){\n System.out.println(\"\\nThere is no student registered for this course ID\\n\\n\");\n return;\n }\n else{\n System.out.println(\"Hang on a moment while we load database.\\n\\n\");\n System.out.println(\"------------------------------------------------------\");\n System.out.println(\" STUDENT NAME GENDER NATIONALITY\");\n System.out.println(\"------------------------------------------------------\");\n //\n for(Student student:studentList){\n System.out.println(String.format(\"%20s %6s %s\",student.getName(),student.getGender(),student.getNationality()));\n }\n\n System.out.println(\"------------------------------------------------------\\n\");\n }\n }",
"public void printStudents()\n {\n for(Student s : students)\n System.out.println(s);\n }",
"public void calculate()\n {\n \tVector<Instructor> instructors = instructorDB.getAllInstructors();\n \tSchedule schedule = AdminGenerating.getSchedule();\n \tsections = schedule.getAllSections();\n \n for (Instructor instructor : instructors) {\n calculateIndividual(instructor);\n }\n \n calculateOverall();\n }",
"public void addStudent(Student student) {\n students.add(student);\n }",
"public void add(Student s)\r\n {\r\n students.add(s);\r\n }",
"public String DisplayStudents()\n\t{\t\n\t\tString studentList= \"\";\n\t\tint i=1; //the leading number that is interated for each student\n\t\tfor(Student b : classRoll)\n\t\t{\n\t\t\tstudentList += i + \". \" + b.getStrNameFirst ( ) + \" \" + b.getStrNameLast () +\"\\n\";\n\t\t\ti++;\n\t\t}\n\t\treturn studentList= getCourseName() +\"\\n\" + getCourseNumber()+\"\\n\" + getInstructor()+ \"\\n\" + studentList;\n\t}",
"public void addStudent(User user) {\n\t\t\r\n\t}",
"public String getStudentsInCourse() {\n String output = \"\"; \n for (Student student : students) { // enhanced for\n output += student.toString() + \"\\n\";\n } // end for\n return output;\n }",
"@Override\r\n\tpublic void seCourse() {\n\t\tString coursename = \"\";\r\n int teacherid = 0;\r\n String inputStr = \"\";\r\n System.out.println(\"是否需要输入教师编号关键词(y/n):\");\r\n inputStr = input.next();\r\n if(inputStr.equals(\"y\")) {\r\n System.out.println(\"请输入教师编号关键词:\");\r\n teacherid = input.nextInt();\r\n }\r\n System.out.println(\"是否需要输入课程名称关键词(y/n):\");\r\n inputStr = input.next();\r\n if(inputStr.equalsIgnoreCase(\"y\")) {\r\n System.out.println(\"请输入课程名称关键词:\");\r\n coursename = input.next();\r\n }\r\n StudentDAO dao = new StudentDAOimpl();\r\n List<Course> list = dao.seCourse(coursename, teacherid);\r\n System.out.println(\"课程编号\\t课程名称\\t教师编号\\t课程课时\");\r\n for(Course c : list) {\r\n System.out.println(c.getCourseid()+\"\\t\"+c.getCoursename()+\"\\t\"+c.getTeacherid()+\"\\t\"+c.getCoursetime());\r\n }\r\n\t}",
"public void registerStudents(List<E> listStudents, int courseCode){}",
"private void _generateAnUndergraduateStudent(int index) {\n int n;\n ArrayList list;\n String id = _getId(CS_C_UNDERSTUD, index);\n writer_.startSection(CS_C_UNDERSTUD, id);\n _generateAStudent_a(CS_C_UNDERSTUD, index, id);\n n = _getRandomFromRange(UNDERSTUD_COURSE_MIN, UNDERSTUD_COURSE_MAX);\n list = _getRandomList(n, 0, underCourses_.size() - 1);\n for (int i = 0; i < list.size(); i++) {\n CourseInfo info = (CourseInfo) underCourses_.get( ( (Integer) list.get(i)).\n intValue());\n writer_.addProperty(CS_P_TAKECOURSE, _getId(CS_C_COURSE, info.globalIndex), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#takesCourse\", _getId(CS_C_COURSE, info.globalIndex), true);\t \t \t \t \n }\n }\n if (0 == random_.nextInt(R_UNDERSTUD_ADVISOR)) {\n \tString ad = _selectAdvisor();\n writer_.addProperty(CS_P_ADVISOR, ad, true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#advisor\", ad, true);\t \t \t \t \n }\n }\n writer_.endSection(CS_C_UNDERSTUD);\n }",
"public void addStudent(String theStudent) {\n\t\tstudents[numberOfStudents] = theStudent;\n\t\tnumberOfStudents++; // Upadate the total number of students\n\t}",
"public void addStudents(Student student) {\r\n System.out.println(\"conectado con model ---> metodo addStudents\");\r\n //TODO\r\n }",
"public void relevantInstructor(ArrayList<Instructor> listINS){\n\t\t//CODE HERE\n\t\tboolean check = true;\n\t\tfor(Instructor instructor:listINS){\n\t\t\tfor (RegCourse course:registeredCourses){\n\t\t\t\tif(instructor.checkTeaching(course.getCourseCode())){\n\t\t\t\t\tif(check){\n\t\t\t\t\t\tSystem.out.println(\"[Relevant Instructor]\");\n\t\t\t\t\t\tcheck=false;\n\t\t\t\t\t}\n\t\t\t\t\tinstructor.printInfo();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void addOrUpdateAssessment() {\n if (thisAssessmentId < 0) {\n addNewAssessment();\n } else {\n updateAssessment();\n }\n }",
"public boolean enter (Student me)\r\n {\r\n boolean studentHasBook = false;\r\n \r\n if ((me.myLocker) == null)\r\n {\r\n me.sentToOffice (\"does not have a locker.\");\r\n me.myLocker = new Locker (me);\r\n me.myLocker.putJacket (new Jacket (me));\r\n return false;\r\n }\r\n else if (me.myJacket != null)\r\n {\r\n me.myLocker.putJacket (me.myJacket);\r\n return false;\r\n }\r\n for (int i = 0; i < me.books.length; i++)\r\n {\r\n if (me.books[i] != null)\r\n { \r\n if (me.books[i].course.equals (\"ICS4U0\"))\r\n return true;\r\n }\r\n }\r\n me.sentToOffice (\"does not have the correct book.\");\r\n for (int i = 0; i < me.books.length; i++)\r\n {\r\n if (me.books[i] == null)\r\n me.books[i] = me.myLocker.getABook (\"ICS4U0\");\r\n }\r\n for (int i = 0; i < me.books.length; i++)\r\n {\r\n if (me.books[i] != null)\r\n {\r\n if (me.books[i].course.equals (\"ICS4U0\"))\r\n studentHasBook = true;\r\n }\r\n }\r\n if (!studentHasBook)\r\n {\r\n me.books [0] = new Book ();\r\n me.books [0].course = \"ICS4U0\";\r\n me.books[0].title = \"AP Prep - Computer Science A\";\r\n }\r\n return false;\r\n }",
"public void disEnrollStudent(Student student) {\n\t}",
"private void enroll() {\n final EnrollFragment enrollmentFragment = FaceManager.getInstance().getEnrollmentFragment(10, 1);\n enrollmentFragment.setEnrollmentCallback(new EnrollmentCallback() {\n @Override\n public void onEnrollmentSuccess() {\n CMain.sharedInstance().updateGemaltoFaceIdStatus();\n }\n\n @Override\n public void onCancel() {\n getMainActivity().hideLastStackFragment();\n }\n\n @Override\n public void onEnrollmentFailed(final FaceAuthStatus status) {\n getMainActivity().showErrorIfExists(status.toString());\n\n }\n\n @Override\n public void onEnrollmentRetry(final FaceAuthStatus status, final int remainingRetries) {\n // Unused\n }\n\n @Override\n public void onError(final IdpException exception) {\n getMainActivity().showErrorIfExists(exception.getLocalizedMessage());\n }\n });\n\n getActivity().getSupportFragmentManager().beginTransaction()\n .setCustomAnimations(R.anim.fade_in, R.anim.fade_out)\n .replace(R.id.fragment_container, enrollmentFragment, null)\n .addToBackStack(null)\n .commit();\n }",
"@Test\n public void test2() {\n MPCS_52011.setStudentCount(60); // Set the course as full for testing purposes.\n CourseAdd Course_Adder = new CourseAdd(MPCS_52011,Sophia,con);\n int updates = Course_Adder.getState().addStudent(Course_Adder,MPCS_52011,Sophia);\n assertEquals(1,updates); // Assert that an update was made\n assertTrue(MPCS_52011.getWaitingList().contains(Sophia)); // Check if Sophia present in waitlist\n List<Integer> StudentIDs = new ArrayList<Integer>();\n try{ // Check Database\n Statement stmt=con.createStatement();\n ResultSet rs=stmt.executeQuery(\"select StudentID from Waitlisted_Students where course_code = '\" + MPCS_52011.getcode() + \"';\");\n while(rs.next()){\n StudentIDs.add(rs.getInt(1)); // Add each student ID from database\n }\n }catch (Exception e){\n System.out.println(e);\n }\n assertTrue(StudentIDs.contains(Sophia.getID())); // Check is Sophia present in waitlist\n }",
"public static void main(String[] args) {\n System.out.println(\"Enter number of new students to enroll: \");\n Scanner scan = new Scanner(System.in);\n int numOfStudents = scan.nextInt();\n Student[] students = new Student[numOfStudents];\n\n // create n number of new students\n for (int n = 0; n < numOfStudents; n++) {\n students[n] = new Student();\n students[n].enroll();\n students[n].payTuition();\n // System.out.println(students[n].showInfo());\n }\n for(int n = 0; n< numOfStudents; n++){\n System.out.println(students[n].showInfo());\n }\n\n scan.close();\n \n }",
"public String getStudentList()\n\t{\n\t\tString courseOutput = \"\";\n\t\tint studentNum = 1;\n\t\t\n\t\tfor(Student student: classRoll)\n\t\t{\n\t\t\tcourseOutput += studentNum + \". \" + student + \"\\n\";\t\n\t\t\t\t//adds a Student to the already created string one student at a time\n\t\t\tstudentNum++;\n\t\t}\n\t\t\n\t\tcourseOutput = getCourseName() + getCourseNumber() + getInstructor() + courseOutput;\n\t\treturn courseOutput;\n\t}",
"public void graduate(Subject subject) {\r\n certificates.add(subject.getID());\r\n for (Course course : getCourse()) { //checks every course if it matches the subject\r\n if (course.getSubject() == subject) {\r\n resetCourse(course); //the student leaves the course with the subject they they graduated\r\n }\r\n }\r\n }",
"public static void readData(ArrayList<Student> students, ArrayList<Course> courses)\r\n {\r\n //emfanizie mnm ston xrhsth,dexetai apanthsh apo ton xrhsth\r\n //kai thn apanthsh thn epistrefei ws alfarithmitiko\r\n\r\n //String answer= JOptionPane.showInputDialog(\"Enter your name:\");\r\n\r\n boolean more= true;\r\n\r\n while(more)\r\n {\r\n\r\n String selection= JOptionPane.showInputDialog(\"1:Student 2:Graduate\");\r\n int choice =Integer.parseInt(selection);\r\n\r\n String name= JOptionPane.showInputDialog(\"Name: \");\r\n String id= JOptionPane.showInputDialog(\"Id: \");\r\n\r\n //to arxikopoiw ws null gia na mhn vgazei error\r\n //ayto symvanei dioti an mpei mesa sto if pernei mai timh an omws den mpei den tha parei timh kai tha vgazei error\r\n String supervisor=null;\r\n\r\n if(choice == 2)\r\n {\r\n supervisor= JOptionPane.showInputDialog(\"Supervisor: \");\r\n }\r\n\r\n Student student;\r\n if(choice==1)\r\n {\r\n student= new Student(name,id);\r\n }\r\n else\r\n {\r\n student= new Graduate(name,id,supervisor);\r\n }\r\n\r\n String coursename =JOptionPane.showInputDialog(\"Enter course name: \");\r\n\r\n //ftiaxnoume ena for wste na diatreksw ola ta mathimata poy exie mesa h lista\r\n //sthn synexeia tha sygkrinw to mathima me thn epilogh tou xrhsth\r\n for (Course course:courses)\r\n {\r\n if(course.getName().equals(coursename))\r\n {\r\n student.addCourses(course);\r\n }\r\n\r\n }\r\n\r\n //ton foithth ton topothetoume sthn lista poy yparxeis thn main kai thn pernei ws orisma h synarthsh\r\n students.add(student);\r\n\r\n String answer= JOptionPane.showInputDialog(\"More Students (Y/N)\");\r\n //gia string tha mporousa na kanw==\"n\"\r\n if(answer.equals(\"N\"))\r\n {\r\n more= false;\r\n }\r\n\r\n }\r\n\r\n\r\n }",
"public void addStudent(String student, int rotation) {\n if (isFull(rotation)) {\n throw new ArrayIndexOutOfBoundsException(\"Table is already full.\");\n }\n students.get(rotation).add(student);\n }",
"public static void main(String[] args) {\n ArrayList<Course> courses = new ArrayList<>();\n courses.add(new Course(\"Math\", \"12030\"));\n courses.add(new Course(\"English\", \"46537\"));\n courses.add(new Course(\"Programming\", \"64537\"));\n\n ArrayList<Teacher> teachers = new ArrayList<>();\n teachers.add(new Teacher(\"Albert\", \"Einstein\", \"[email protected]\", \"1\"));\n teachers.add(new Teacher(\"Nikola\", \"Tesla\", \"[email protected]\", \"2\"));\n teachers.add(new Teacher(\"Ada\", \"Lovelace\", \"[email protected]\", \"3\"));\n teachers.add(new Teacher(\"Charles\", \"Babbage\", \"[email protected]\", \"4\"));\n\n courses.get(0).getTaughtBy().add(teachers.get(1));\n courses.get(0).getTaughtBy().add(teachers.get(2));\n courses.get(1).getTaughtBy().add(teachers.get(0));\n courses.get(1).getTaughtBy().add(teachers.get(1));\n courses.get(2).getTaughtBy().add(teachers.get(2));\n\n\n\n ArrayList<Student> students = new ArrayList<>();\n students.add(new Student(\"Irina\", \"Smirnova\", \"[email protected]\", \"245\"));\n students.add(new Student(\"Andrey\", \"Smirnov\", \"[email protected]\", \"249\"));\n students.add(new Student(\"Galina\", \"Kutarina\", \"[email protected]\", \"246\"));\n\n courses.get(0).getTakenBy().add(students.get(1));\n courses.get(0).getTakenBy().add(students.get(2));\n courses.get(1).getTakenBy().add(students.get(1));\n courses.get(2).getTakenBy().add(students.get(0));\n\n\n listCourses(courses);\n // listTeachers(teachers);\n// listStudents(students);\n\n\n\n }",
"public Student getStudents() {\n\t\treturn this.student;\n\t}",
"public void setStudents(Set<Student> students) {\n this.students = students;\n }",
"private void ADDStudents(Student s) {\n\t\t\tint exist = 0;\n\n\t\t\tif(data.size() > 0) {\n\t\t\t\tfor(Student st: data) {\n\t\t\t\t\tif(s.id == st.id) {\n\t\t\t\t\t\texist = 1;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tthrow new Exception(\"This student already in the table.\");\n\t\t\t\t\t\t\t}catch(Exception ex){\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"This student already in the table.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tIDField.setText(\"\");\n\t\t\t\t\t\tfirstNameField.setText(\"\");\n\t\t\t\t\t\tlastNameField.setText(\"\");\n\t\t\t\t\t\tgenderField.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\t}\n\t\t\t\tdata.add(s);\n\t\t\t\tObject[] row = new Object[4];\n\t\t\t\trow[0] = \"\" + s.id;\n\t\t\t\trow[1] = s.firstName;\n\t\t\t\trow[2] = s.lastName;\n\t\t\t\trow[3] = s.gender;\n\t\t\t\tmodel.addRow(row);\n\t\t\t if(exist ==1) {\n\t\t\t\t data.remove(s);\n\t\t\t\t model.removeRow(data.size());\n\t\t\t }\n\t\t\t\t\n\t\t\t}",
"@PutMapping(\"/assignInstructor/{instructorId}\")\n public Instructor assignStudentsToInstructor(@PathVariable Integer instructorId, @RequestBody Student student){\n return instructorService.assignCreatedStudent(instructorId,student);\n }",
"@Test\n public void test1() {\n CourseAdd Course_Adder = new CourseAdd(MPCS_52011,Amanda,con);\n int updates = Course_Adder.getState().addStudent(Course_Adder,MPCS_52011,Amanda);\n assertEquals(1,updates); // Assert that an update was made\n List<Integer> StudentIDs = new ArrayList<Integer>();\n assertTrue(MPCS_52011.getStudents().contains(Amanda)); // Check if Amanda Present in course\n try{ // Check Database\n Statement stmt=con.createStatement();\n ResultSet rs=stmt.executeQuery(\"select StudentID from Course_Student where course_code = '\" + MPCS_52011.getcode() + \"';\");\n while(rs.next()){\n StudentIDs.add(rs.getInt(1)); // Add each student ID from database\n }\n }catch (Exception e){\n System.out.println(e);\n }\n assertTrue(StudentIDs.contains(Amanda.getID())); // Check if Amanda present in course\n }",
"public void addStudentInCourse(Course course, Student student){\n \n String statement = ADD_STUDENT_IN_COURSE;\n data.makeUpdateStatement(statement,new Object[]{(Object)course.getId(),(Object)student.getId()});\n data.closeConnections(data.ps, data.conn);\n }",
"public void FindBySection(String depName, String section) {\n\t\tdNode searchNode = FindByName(depName);\n\t\tif (searchNode != null) {\n\t\t\tsearchNode.data.students.FindBySection(section);\n\t\t}\n\t}",
"@Test\n void register() {\n assertTrue(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 1), registrationSystem.getCourseController().findOne((long) 1)));\n assertEquals(6, registrationSystem.getStudentController().findOne((long) 1).getTotalCredits()); // Student should have now a total of 6 credits\n assertTrue(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 1), registrationSystem.getCourseController().findOne((long) 2)));\n assertEquals(11, registrationSystem.getStudentController().findOne((long) 1).getTotalCredits()); // Student should have now a total of 6 credits\n\n // Enrolling the student with ID 2 to the course with ID 1 and course with ID 2\n assertTrue(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 2), registrationSystem.getCourseController().findOne((long) 1)));\n assertEquals(6, registrationSystem.getStudentController().findOne((long) 2).getTotalCredits()); // Student should have now a total of 6 credits\n assertTrue(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 2), registrationSystem.getCourseController().findOne((long) 2)));\n assertEquals(11, registrationSystem.getStudentController().findOne((long) 2).getTotalCredits()); // Student should have now a total of 6 credits\n\n // Trying to enroll the students for the same courses\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 1), registrationSystem.getCourseController().findOne((long) 1)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 1), registrationSystem.getCourseController().findOne((long) 2)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 2), registrationSystem.getCourseController().findOne((long) 1)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 2), registrationSystem.getCourseController().findOne((long) 2)));\n\n // Trying to enroll the students, that already have 30 credits\n student1.setTotalCredits(30);\n student2.setTotalCredits(30);\n registrationSystem.getStudentController().update(student1);\n registrationSystem.getStudentController().update(student2);\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 1), registrationSystem.getCourseController().findOne((long) 1)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 1), registrationSystem.getCourseController().findOne((long) 2)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 2), registrationSystem.getCourseController().findOne((long) 1)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 2), registrationSystem.getCourseController().findOne((long) 2)));\n\n // Trying to enroll the students for a course, that has no more free places left\n course1.setMaxEnrollment(2);\n course2.setMaxEnrollment(2);\n registrationSystem.getCourseController().update(course1);\n registrationSystem.getCourseController().update(course2);\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 1), registrationSystem.getCourseController().findOne((long) 1)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 1), registrationSystem.getCourseController().findOne((long) 2)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 2), registrationSystem.getCourseController().findOne((long) 1)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 2), registrationSystem.getCourseController().findOne((long) 2)));\n\n // Trying to enroll the students to a non existing course\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 1), new Course(\"newCourse\", teacher1, 50, 6, 20)));\n assertFalse(registrationSystem.register(registrationSystem.getStudentController().findOne((long) 2), new Course(\"newCourse\", teacher1, 50, 6, 21)));\n\n // Trying to enroll non existing students\n assertFalse(registrationSystem.register(new Student(\"new\", \"student\", 10), registrationSystem.getCourseController().findOne((long) 1)));\n assertFalse(registrationSystem.register(new Student(\"new\", \"student\", 11), registrationSystem.getCourseController().findOne((long) 2)));\n }",
"public static void changeGrade(Student[] student,int studentID,ExamGrade examGrade){\n int count=0; //there is count int because of finding given student id have or not\n for(int i=0;i<student.length;i++){\n if(student[i].getStudentID()==studentID){\n student[i].setExamGrade(examGrade);\n ++count;\n }\n }\n\n if(count==0){//if caunt do not equal 0,it says that the given student id is in the array\n System.out.println(\"No such student\");\n }\n }",
"public String printStudentCourses() {\r\n String s = \"Completed courses: \\n\";\r\n for (Registration r : completeCourses) {\r\n s += r.toString();\r\n }\r\n s += \"Current courses: \\n\";\r\n for (Registration r : studentRegList) {\r\n s += r.toString();\r\n }\r\n s += \"\\0\";\r\n return s;\r\n }",
"private void Add() {\n\t\t\tString names2 = StudentNum.getText();\n\t\t\tString names1 = Studentname.getText();\n\t\t\tStudentname.setText(\"\");\n\t\t\tStudentNum.setText(\"\");\n\t\t\tif (!names2.equals(\"Student Number\")) {\n\t\t\t\tFile directory = new File(\"Schools\\\\\" + names2 + \".hi\");\n\t\t\t\tif (!directory.exists()) {\n\t\t\t\t\tif (directory.mkdir()) {\n\t\t\t\t\t\tworklabel.setText(\"Student has been added\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tPrintWriter out;\n\t\t\t\t\t\t\tPrintWriter out2;\n\t\t\t\t\t\t\tout = new PrintWriter(new FileWriter(\"Schools\\\\\"\n\t\t\t\t\t\t\t\t\t+ names2 + \".hi\" + \"\\\\\"\n\t\t\t\t\t\t\t\t\t+ \"Student Information.txt\", true));\n\t\t\t\t\t\t\tout.println(\"Student Name: \" + names1);\n\t\t\t\t\t\t\tout.println(\"Student Number: \" + names2);\n\t\t\t\t\t\t\tout.println(\"Address:\");\n\t\t\t\t\t\t\tout.println(\"Postal Code:\");\n\t\t\t\t\t\t\tout.println(\"Phone Number:\");\n\t\t\t\t\t\t\tout.println(\"Contact #1 Name:\");\n\t\t\t\t\t\t\tout.println(\"Contact #1 Number:\");\n\t\t\t\t\t\t\tout.println(\"Contact #1 Email:\");\n\t\t\t\t\t\t\tout.println(\"Contact #2 Name:\");\n\t\t\t\t\t\t\tout.println(\"Contact #2 Number:\");\n\t\t\t\t\t\t\tout.println(\"Contact #2 Email:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #1:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #2:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #3:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #4:\");\n\t\t\t\t\t\t\tout.println(\"Medical Alert #5:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #1:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #2:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #3:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #4:\");\n\t\t\t\t\t\t\tout.println(\"Accomodation #5:\");\n\t\t\t\t\t\t\tout.println(\"Volunteer Hours:\");\n\t\t\t\t\t\t\tout2 = new PrintWriter(new FileWriter(\"Schools\\\\\"+ names2+\".hi\" + \"\\\\\" + \"Transcript.txt\",true));\n\t\t\t\t\t\t\tout2.println(\"Course Code\t\tMark\tPassed\tAbsences\tLate\");\n\t\t\t\t\t\t\tout.close();\n\t\t\t\t\t\t\tout2.close();\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tworklabel.setText(\"Invalid\");\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void addStudent(Student student);",
"private void addStudent(Student student) {\n\t\tSystem.out.println(\"Add Student\");\n\t\tsmb.saveStudent(student);\n\t}",
"public void hireInstructor(Instructor instructor, Course course) {\n\n\t}",
"public void assignCourses() {\n\n\t\t// Check for Third Year Student queue and if its not empty assign course\n\t\twhile (!tyStudents.isEmpty()) {\n\t\t\tStudent student = tyStudents.poll();\n\t\t\tassign(student);\n\n\t\t}\n\t\t// Check for Second Year Student queue and if its not empty assign course\n\t\twhile (!syStudents.isEmpty()) {\n\t\t\tStudent student = syStudents.poll();\n\t\t\tassign(student);\n\n\t\t}\n\t\t// Check for First Year Student queue and if its not empty assign course\n\t\twhile (!fyStudents.isEmpty()) {\n\t\t\tStudent student = fyStudents.poll();\n\t\t\tassign(student);\n\n\t\t}\n\n\t\tfinalAverage = sumOfStudents / numberofStudents;\n\t\tsb.append(\"\\n\");\n\t\tsb.append(\"AverageSatisfactionRating = \" + finalAverage);\n\t\tresults.writeOutput(sb, outputFilePath);\n\t}"
]
| [
"0.7675179",
"0.69121414",
"0.6754516",
"0.6318938",
"0.6218686",
"0.6067659",
"0.602036",
"0.60162747",
"0.60020685",
"0.59704614",
"0.595262",
"0.5944865",
"0.5943969",
"0.5934446",
"0.5889284",
"0.5860414",
"0.58346087",
"0.581631",
"0.5771743",
"0.57621646",
"0.57512045",
"0.5746966",
"0.5680307",
"0.56732476",
"0.5632151",
"0.5612854",
"0.55870354",
"0.55847406",
"0.5571685",
"0.5560675",
"0.5542455",
"0.5510493",
"0.5475176",
"0.5463772",
"0.5454271",
"0.5450714",
"0.5444058",
"0.54234093",
"0.54217136",
"0.5418639",
"0.540946",
"0.5399746",
"0.53916836",
"0.53704834",
"0.53703636",
"0.5367781",
"0.53658605",
"0.5364968",
"0.5355609",
"0.5347533",
"0.53452706",
"0.53142726",
"0.5305243",
"0.5302211",
"0.5301846",
"0.5300103",
"0.52966017",
"0.52896166",
"0.52621",
"0.52618194",
"0.52425313",
"0.5241184",
"0.52362835",
"0.5222035",
"0.52110976",
"0.5207647",
"0.5206238",
"0.52039194",
"0.5198576",
"0.51984215",
"0.51970595",
"0.5193938",
"0.51872164",
"0.5178314",
"0.51724315",
"0.5168663",
"0.5167188",
"0.5155322",
"0.51532716",
"0.5151547",
"0.51502705",
"0.51425093",
"0.5139541",
"0.51293796",
"0.51252407",
"0.5124226",
"0.5122643",
"0.5096676",
"0.50730026",
"0.50704175",
"0.5068552",
"0.50594836",
"0.505742",
"0.50566214",
"0.50397193",
"0.502536",
"0.5018567",
"0.5006858",
"0.5002177",
"0.49999693"
]
| 0.5058508 | 92 |
Constructor with custom config | protected StreamsApp(StreamsConfig streamsConfig) {
this.streamsConfig = streamsConfig;
this.rocksDbReporter = new RocksDbMetricsReporter(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Config() {\n }",
"public ConfigExample() {\n }",
"public Config() {\n this(System.getProperties());\n\n }",
"public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}",
"public MecBasicsConfig()\n {\n\n }",
"private OptimoveConfig() {\n }",
"void init(Config config);",
"public PanoramaConfig() {\n }",
"public PipelineConfig() {\n super();\n }",
"private ConfigReader() {\r\n\t\tsuper();\r\n\t}",
"private ConfigProperties() {\n\n }",
"private Conf() {\n // empty hidden constructor\n }",
"public SimulationConfig() {\r\n\t}",
"public OlcDistProcConfig()\n {\n super();\n }",
"protected Configuration() {\r\n }",
"public OServerConfiguration() {}",
"private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }",
"private GameConfig() {}",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public ConfigManager() {\n // Nobody here.\n }",
"public ExamMagicDataModule(Configuration config){\r\n\t\tthis.config = config;\r\n\t}",
"public PushPluginConfigurationImpl() {\n }",
"private OspfConfigUtil() {\n\n }",
"public ConfigMetadataProcessor() {\n }",
"public ExcelImportConfig() {\n super();\n }",
"private RelayConfig () {}",
"public KafkaConfig() { }",
"private ApiConfig() {\n }",
"public Adsconfig() {\n this(\"AdsConfig\", null);\n }",
"public class_config(){\n\t\t\n\t\tformat_date=\"dd/MM/yyyy\";\n\t\tcurrency='€';\n\t\tdecimals=2;\n\t\tlanguage=\"eng\";\n\t\ttheme=\"Metal\";\n\t\tfile_format=\"json\";\n\t\t\n\t}",
"private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"public SourceTypeConfiguration() {\n\n\t}",
"private AppConfigContent() {}",
"public MicroConfiguration() {\n this(\n System.getProperty(\"piranha.version\", MicroConfiguration.class.getPackage().getImplementationVersion()),\n System.getProperty(\"piranha.extensions\", \"micro-core,micro\"),\n System.getProperty(\"piranha.dependencies\", \"\"),\n System.getProperty(\"piranha.repositories\", \"https://repo1.maven.org/maven2\"),\n Boolean.valueOf(System.getProperty(\"piranha.offline\", \"false\")),\n Integer.valueOf(System.getProperty(\"piranha.port\", \"8080\")),\n System.getProperty(\"piranha.root\"),\n System.getProperty(\"piranha.http.server\", \"impl\"),\n\n\n null,\n null,\n null);\n }",
"private CommonConfigBean(){\n\t\tsuper();\n\t\t\n\t\t\n\t\ttry {\n\n\t\t\tFile fXmlFile = new File(PathTool.getAbsolute(RELATIVE_FILE_PATH));\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n\t\t\tDocument doc = dBuilder.parse(fXmlFile);\n\t\t\t\t\t\n\t\t\t//optional, but recommended\n\t\t\t//read this - http://stackoverflow.com/questions/13786607/normalization-in-dom-parsing-with-java-how-does-it-work\n\t\t\tdoc.getDocumentElement().normalize();\n\n\t\t\tSystem.out.println(\"Root element :\" + doc.getDocumentElement().getNodeName());\n\t NodeList nList = doc.getElementsByTagName(\"param\");\n\t params = new HashMap<>();\n\t for (int temp = 0; temp < nList.getLength(); temp++) {\n\t Node nodo = nList.item(temp);\n\t System.out.println(\"Elemento:\" + nodo.getNodeName());\n\t if (nodo.getNodeType() == Node.ELEMENT_NODE) {\n\t Element element = (Element) nodo;\n\t params.put(element.getAttribute(\"name\"), element.getAttribute(\"value\"));\n\t }\n\t }\n\t\t\t\n\t\t\t\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t}",
"public StorageConfig() {\n }",
"protected DiscoveryVOSConfig() {\n\t\tsuper(BRANCH_ROOT + \".DiscoveryVOS.com.discoveryVOS.\".replace('.', File.separatorChar));\n\t}",
"protected abstract void _init(DynMap config);",
"public CustomEntitiesTaskParameters() {}",
"public Config(String filename) {\n this.filename = filename;\n }",
"public RepositoryPerformanceWorkbenchConfig()\n {\n super();\n }",
"public void init(JSONObject config) throws Exception {\n\n }",
"public BaseConfig() {\n\t\tlong current = System.currentTimeMillis();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTimeInMillis(current);\n\t\tthis.start_hours = cal.get(Calendar.HOUR_OF_DAY);\n\t\tthis.start_minutes = cal.get(Calendar.MINUTE);\n\t\tthis.stop_hours = this.start_hours;\n\t\tthis.stop_minutes = this.start_minutes;\n\t\tthis.force_on = false;\n\t\tthis.force_off = false;\n\t\tthis.sensor_type = SensorType.LIGHT;\n\t\tthis.sensing_threshold = .5f;\n\t\tthis.sensorInterval = 3000;\n\t\t/*String address;\n\t\ttry {\n\t\t\taddress = InetAddress.getLocalHost().toString();\n\t\t\taddress = address.substring(address.indexOf('/') + 1);\n\t\t\tserverIP = address;\n\t\t\tserverPort = 9999;\n\t\t} catch (UnknownHostException e) {\n\t\t\t// Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t}",
"public AbstractRepositoryImplConfig() {\n\t}",
"public void init(Map<String, String> configuration);",
"private ConfigHelper() {\n //does nothing\n }",
"void initialize(C config);",
"public BaseClass() {\n\t\t \n\t try {\n\t\t\t \n\t\t\t prop=new Properties();\n\t\t\t \n\t\t\tString path=System.getProperty(\"user.dir\");\n\t\t\t \n\t\t\t // FileInputStream is the pre-defined class\n\t\t\tFileInputStream ip=new FileInputStream(path+\"\\\\src\\\\main\\\\java\\\\com\\\\demoQA\\\\config\\\\Config.Properties\");\n\t\t\t prop.load(ip);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }",
"protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }",
"public CatalogSettings() {\n init();\n }",
"public NetworkFunctionUserConfiguration() {\n }",
"private Configuration(String location) {\n this.location = location;\n }",
"public GenAmazonS3Config() {\n }",
"public ConfigParserHandler() {\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public SeleniumServerConfiguration() {\n }",
"public TestBase() {\n try {\n properties = new Properties();\n FileInputStream fileInputStream = new FileInputStream(\"F:/LearningStuff/PracticalWork\" +\n \"/Frameworks/DataDrivenFrameworkSelenium/src/main/resources/config/config.properties\");\n properties.load(fileInputStream);\n } catch (FileNotFoundException f) {\n f.printStackTrace();\n } catch (IOException i) {\n i.printStackTrace();\n }\n }",
"@Override\n public void init() throws Exception {\n config = new Config();\n }",
"public Configuration(Config config){\n String error = fromConfig(config);\n if(errors){\n throw new RuntimeException(error);\n }\n }",
"public ConfigurationMaintainer() {\n\t}",
"public BaseParameters(){\r\n\t}",
"public ConfigAction()\n {\n this(null, null, true);\n }",
"public Configuration(String config, int score)\r\n\t{\r\n\t\tthis.config = config;\r\n\t\tthis.score = score;\r\n\t}",
"public Client(Configuration config) {\n if (config == null)\n throw new IllegalArgumentException(\"Null argument supplied\");\n this.config = config;\n connectivityStatus = ConnectivityStatus.Initial;\n lastInteraction = new Date(0l);\n recentPeers = new PeerList();\n refreshInterval = 30000l;\n randomizedRefreshInterval = (int)(refreshInterval * (1 - 0.25 * new Random ().nextDouble()));\n myLinkLocalAdress = Inet6Address.getByAddress(,, LINKLOCAL)\n }",
"public GenLogServerConfig() {\n }",
"public AntConfig(Config config) {\n\t\tthis.messageUtil = new MessageUtil(config.getColor());\n\t\tthis.service = config.getService();\n\t}",
"public config() {\n initComponents();\n }",
"protected BaseAHCBasedNetworkClient(CONFIG config)\n {\n this(config, (AsyncHttpClientConfig) null);\n }",
"public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}",
"@DataBoundConstructor\n public PluginTest(String servername, String address, String username, String password, String shareduser ,String sharedpasswd, String sharedpath, String mxpath, Boolean scenario) {\n this.servername = servername;\n this.address = address;\n this.username = username;\n this.password = password;\n this.sharedpasswd = sharedpasswd;\n this.shareduser = shareduser;\n this.mxpath = mxpath;\n this.sharedpath = sharedpath;\n this.scenario=scenario;\n }",
"public BwaOptions() {\n\t}",
"public BlobParserConfig() {\n\t\tthis.libraryPath = null;\n\t\tthis.parserClass = null;\n\t}",
"public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}",
"public FlightGearModel(Config config) {\n\t\tsuper();\n\t\tthis.config = config;\n\t}",
"public KedaConfiguration() {\n }",
"public ServiceConfig(ServiceConfig source) {\n if (source.Product != null) {\n this.Product = new String(source.Product);\n }\n if (source.UniqVpcId != null) {\n this.UniqVpcId = new String(source.UniqVpcId);\n }\n if (source.Url != null) {\n this.Url = new String(source.Url);\n }\n if (source.Path != null) {\n this.Path = new String(source.Path);\n }\n if (source.Method != null) {\n this.Method = new String(source.Method);\n }\n if (source.UpstreamId != null) {\n this.UpstreamId = new String(source.UpstreamId);\n }\n if (source.CosConfig != null) {\n this.CosConfig = new CosConfig(source.CosConfig);\n }\n }",
"private ConfigurationKeys() {\n // empty constructor.\n }",
"public IheConfiguration() {\n }",
"public Settings(){}",
"@JsonCreator\n public JsonExperimentConfig(\n @JsonProperty(\"fernservers\") List<String> fernServers,\n @JsonProperty(\"wilburservers\") List<String> wilburServers,\n @JsonProperty(\"blocksperexperiment\") int blocksPerExperiment,\n @JsonProperty(\"wilburthreshold\") int wilburThreshold,\n @JsonProperty(\"privatekey\") String privatekey,\n @JsonProperty(\"me\") String me,\n @JsonProperty(\"contacts\") Map<String, JsonContact> contacts,\n @JsonProperty(\"blocksize\") int blocksize\n ) {\n super(privatekey, me, contacts);\n this.fernServers = fernServers;\n this.blocksPerExperiment = blocksPerExperiment;\n this.wilburServers = wilburServers;\n this.wilburThreshold = wilburThreshold;\n this.blocksize = blocksize;\n }",
"public BaseComponent(String baseUrl, int timeout, HashMap<String, String> config) {\n super(baseUrl, timeout, config);\n }",
"private PluginConfig(String configType) {\n\t\tthis.configType = configType;\n\t}",
"private ProjectConfigurationFactory()\n {}",
"public Configuration(Properties props) {\n test = Boolean.valueOf(props.getProperty(\"test\", \"false\"));\n name = props.getProperty(\"name\", \"OpenCraft Server\");\n message = props.getProperty(\"message\", \"http://opencraft.sf.net/\");\n maximumPlayers = Integer.valueOf(props.getProperty(\"max_players\", \"16\"));\n publicServer = Boolean.valueOf(props.getProperty(\"public\", \"false\"));\n verifyNames = Boolean.valueOf(props.getProperty(\"verify_names\", \"false\"));\n spongeRadius = Integer.valueOf(props.getProperty(\"sponge_radius\", \"2\"));\n gameMode = props.getProperty(\"game_mode\", CTFGameMode.class.getName());\n statsPostURL = props.getProperty(\"statsPostURL\");\n discordURL = props.getProperty(\"discordURL\");\n discordToken = props.getProperty(\"discordToken\");\n welcomeMessage = props.getProperty(\"welcomeMessage\");\n Constants.PORT = Integer.valueOf(props.getProperty(\"port\"));\n Constants.WEB_PORT = Integer.valueOf(props.getProperty(\"webPort\"));\n }",
"private FTConfigConstants() {\n }",
"private CustomClassBuilder(Configuration configuration) {\n\t\tsuper(configuration);\n\t}",
"public FileBasedConfigSource() {\n // Intentionally empty.\n }",
"public TdiPlatformBase(Map<String, Object> config) {\n this.config = config;\n }",
"public ValidateConfiguration() {\n super();\n }",
"public GeneralConfig() {\n super(CyclopsCore._instance, true, \"general\", null, GeneralConfig.class);\n }",
"protected AmqpTransportConfig() {\n\t\tsuper();\n\t}",
"void init (Map<String, String> conf) throws ConfigException;",
"public BaseTest() {\n\t\t\n\t\tprop= new Properties();\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fle= new FileInputStream(\"C:\\\\Users\\\\19175\\\\eclipse-workspace\\\\com.toyota\\\\src\\\\test\\\\java\\\\Config\\\\config.properties\"); // Path of the Properties file\n\t\t\tprop.load(fle);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private PSConfigDeNormalizer()\n {\n\n }",
"public ConfigCuenta() {\n initComponents();\n }",
"public CrawlerConfiguration() {\n\t\tinitConfiguration();\n\t}",
"public SpiritFurnaceConfig() {\n super(\n \ttrue,\n \"spiritFurnace\",\n null,\n SpiritFurnace.class\n );\n }",
"public SmtpConfiguration() {\n }",
"@Override\n public void setupConfiguration(Configuration config)\n {\n\n }",
"@Override\n\t\t\tprotected void configure() {\n\t\t\t}",
"private Settings() { }"
]
| [
"0.74938416",
"0.7309233",
"0.72750497",
"0.72556525",
"0.7205039",
"0.7039311",
"0.6938106",
"0.69263124",
"0.6859843",
"0.6831294",
"0.6811283",
"0.6786518",
"0.67570573",
"0.67260647",
"0.6623761",
"0.65954375",
"0.6582403",
"0.65437984",
"0.6514592",
"0.64705825",
"0.64359593",
"0.64336145",
"0.64284694",
"0.6409211",
"0.64054847",
"0.63945633",
"0.63926154",
"0.63892853",
"0.63858384",
"0.6376216",
"0.63669467",
"0.63575083",
"0.63268846",
"0.6285096",
"0.62755346",
"0.6270106",
"0.61942977",
"0.61934674",
"0.61870515",
"0.6183932",
"0.618274",
"0.61650354",
"0.61526227",
"0.6147461",
"0.61463964",
"0.6142073",
"0.6136989",
"0.6132252",
"0.6113783",
"0.6102022",
"0.60995173",
"0.6093316",
"0.6087749",
"0.6076736",
"0.6074286",
"0.60665387",
"0.6062512",
"0.6062158",
"0.60620373",
"0.60374177",
"0.6030694",
"0.60296726",
"0.60176736",
"0.60175765",
"0.5999331",
"0.59940946",
"0.5993089",
"0.5990899",
"0.5989058",
"0.59852225",
"0.5972436",
"0.59602386",
"0.5957165",
"0.594766",
"0.5946117",
"0.5939132",
"0.5935427",
"0.59317714",
"0.592254",
"0.5908627",
"0.5905447",
"0.59021527",
"0.5895393",
"0.58866227",
"0.5883639",
"0.5880919",
"0.5879271",
"0.5864334",
"0.58554304",
"0.5854846",
"0.5851243",
"0.5845435",
"0.5844401",
"0.58425224",
"0.5840131",
"0.5837084",
"0.5836332",
"0.5821076",
"0.5819393",
"0.58180267",
"0.5817598"
]
| 0.0 | -1 |
Constructor with default config | protected StreamsApp() {
this.streamsConfig = new KafkaStreamsConfig().fromConfig(config);
this.rocksDbReporter = new RocksDbMetricsReporter(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConfigExample() {\n }",
"private Config() {\n }",
"public Config() {\n this(System.getProperties());\n\n }",
"public MecBasicsConfig()\n {\n\n }",
"public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}",
"protected Configuration() {\r\n }",
"private OptimoveConfig() {\n }",
"public SimulationConfig() {\r\n\t}",
"public PipelineConfig() {\n super();\n }",
"private Conf() {\n // empty hidden constructor\n }",
"public OServerConfiguration() {}",
"public PanoramaConfig() {\n }",
"private ConfigReader() {\r\n\t\tsuper();\r\n\t}",
"void init(Config config);",
"defaultConstructor(){}",
"private GameConfig() {}",
"public ConfigManager() {\n // Nobody here.\n }",
"public E4KTunerConfiguration()\n\t{\n\t\tthis( \"Default\" );\n\t}",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public OlcDistProcConfig()\n {\n super();\n }",
"public Adsconfig() {\n this(\"AdsConfig\", null);\n }",
"private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }",
"public KafkaConfig() { }",
"private RelayConfig () {}",
"private ConfigProperties() {\n\n }",
"private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"public ConfigAction()\n {\n this(null, null, true);\n }",
"public PushPluginConfigurationImpl() {\n }",
"public ClientConfiguration() {\n serverIp = DEFAULT_SERVER_IP;\n serverPort = DEFAULT_SERVER_PORT;\n }",
"private Default()\n {}",
"private ConfigHelper() {\n //does nothing\n }",
"private OspfConfigUtil() {\n\n }",
"private ApiConfig() {\n }",
"public RepositoryPerformanceWorkbenchConfig()\n {\n super();\n }",
"public CatalogSettings() {\n init();\n }",
"public ExcelImportConfig() {\n super();\n }",
"public ConfigParserHandler() {\n\t}",
"public AbstractRepositoryImplConfig() {\n\t}",
"public SeleniumServerConfiguration() {\n }",
"public GeneralConfig() {\n super(CyclopsCore._instance, true, \"general\", null, GeneralConfig.class);\n }",
"public ConfigurationMaintainer() {\n\t}",
"protected CommonSettings() {\r\n port = 1099;\r\n objectName = \"library\";\r\n }",
"public StorageConfig() {\n }",
"public SourceTypeConfiguration() {\n\n\t}",
"private AppConfigContent() {}",
"public NetworkFunctionUserConfiguration() {\n }",
"public IheConfiguration() {\n }",
"public KedaConfiguration() {\n }",
"public DefaultDigitalTransferOptions() {\n }",
"void DefaultConstructor(){}",
"public Settings(){}",
"public MicroConfiguration() {\n this(\n System.getProperty(\"piranha.version\", MicroConfiguration.class.getPackage().getImplementationVersion()),\n System.getProperty(\"piranha.extensions\", \"micro-core,micro\"),\n System.getProperty(\"piranha.dependencies\", \"\"),\n System.getProperty(\"piranha.repositories\", \"https://repo1.maven.org/maven2\"),\n Boolean.valueOf(System.getProperty(\"piranha.offline\", \"false\")),\n Integer.valueOf(System.getProperty(\"piranha.port\", \"8080\")),\n System.getProperty(\"piranha.root\"),\n System.getProperty(\"piranha.http.server\", \"impl\"),\n\n\n null,\n null,\n null);\n }",
"public ConfigMetadataProcessor() {\n }",
"public CrawlerConfiguration() {\n\t\tinitConfiguration();\n\t}",
"private ConfigurationKeys() {\n // empty constructor.\n }",
"public Options() {\n init();\n }",
"public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}",
"public BaseClass() {\n\t\t \n\t try {\n\t\t\t \n\t\t\t prop=new Properties();\n\t\t\t \n\t\t\tString path=System.getProperty(\"user.dir\");\n\t\t\t \n\t\t\t // FileInputStream is the pre-defined class\n\t\t\tFileInputStream ip=new FileInputStream(path+\"\\\\src\\\\main\\\\java\\\\com\\\\demoQA\\\\config\\\\Config.Properties\");\n\t\t\t prop.load(ip);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t \n\t\t \n\t }",
"public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }",
"public BwaOptions() {\n\t}",
"public DefaultLoaderDefinition() {\n\t\t// nothing to do\n\t}",
"public OreAPI() {\n\t\tthis(DEFAULT_URL, null);\n\t}",
"private Settings() { }",
"public DefaultConnectionProvider() {\n loadProperties();\n }",
"public GenLogServerConfig() {\n }",
"public Config(String filename, String defaultConfig) {\n this.filename = filename;\n this.defaultConfig = defaultConfig;\n }",
"public BaseParameters(){\r\n\t}",
"public TestBase() {\n try {\n properties = new Properties();\n FileInputStream fileInputStream = new FileInputStream(\"F:/LearningStuff/PracticalWork\" +\n \"/Frameworks/DataDrivenFrameworkSelenium/src/main/resources/config/config.properties\");\n properties.load(fileInputStream);\n } catch (FileNotFoundException f) {\n f.printStackTrace();\n } catch (IOException i) {\n i.printStackTrace();\n }\n }",
"public BaseConfig() {\n\t\tlong current = System.currentTimeMillis();\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTimeInMillis(current);\n\t\tthis.start_hours = cal.get(Calendar.HOUR_OF_DAY);\n\t\tthis.start_minutes = cal.get(Calendar.MINUTE);\n\t\tthis.stop_hours = this.start_hours;\n\t\tthis.stop_minutes = this.start_minutes;\n\t\tthis.force_on = false;\n\t\tthis.force_off = false;\n\t\tthis.sensor_type = SensorType.LIGHT;\n\t\tthis.sensing_threshold = .5f;\n\t\tthis.sensorInterval = 3000;\n\t\t/*String address;\n\t\ttry {\n\t\t\taddress = InetAddress.getLocalHost().toString();\n\t\t\taddress = address.substring(address.indexOf('/') + 1);\n\t\t\tserverIP = address;\n\t\t\tserverPort = 9999;\n\t\t} catch (UnknownHostException e) {\n\t\t\t// Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t}",
"public Curso() {\r\n }",
"public FileBasedConfigSource() {\n // Intentionally empty.\n }",
"public Configuration(Properties props) {\n test = Boolean.valueOf(props.getProperty(\"test\", \"false\"));\n name = props.getProperty(\"name\", \"OpenCraft Server\");\n message = props.getProperty(\"message\", \"http://opencraft.sf.net/\");\n maximumPlayers = Integer.valueOf(props.getProperty(\"max_players\", \"16\"));\n publicServer = Boolean.valueOf(props.getProperty(\"public\", \"false\"));\n verifyNames = Boolean.valueOf(props.getProperty(\"verify_names\", \"false\"));\n spongeRadius = Integer.valueOf(props.getProperty(\"sponge_radius\", \"2\"));\n gameMode = props.getProperty(\"game_mode\", CTFGameMode.class.getName());\n statsPostURL = props.getProperty(\"statsPostURL\");\n discordURL = props.getProperty(\"discordURL\");\n discordToken = props.getProperty(\"discordToken\");\n welcomeMessage = props.getProperty(\"welcomeMessage\");\n Constants.PORT = Integer.valueOf(props.getProperty(\"port\"));\n Constants.WEB_PORT = Integer.valueOf(props.getProperty(\"webPort\"));\n }",
"public DefaultObjectModel ()\n {\n this (new Schema ());\n }",
"public DefaultImpl() {\n this(DEFAULT_DATE_FORMAT);\n }",
"public AutoEvaluationSettingsImpl() {}",
"private Settings() {}",
"public Server() {\n\t\tinit(new Config());\n\t}",
"private void initializeWithDefaultValues() {\n setProjectFolder(\"projectFolder\");\n setContext(\"context\");\n setGroupId(\"com.company.project\");\n setArtifactId(\"project\");\n setModulePrefix(\"project-\");\n setVersion(\"0.0.1-SNAPSHOT\");\n setName(\"Project Name\");\n setDescription(\"Project Description\");\n setUrl(\"https://www.company-project.com\");\n setInceptionYear(String.valueOf(LocalDateTime.now().getYear()));\n setOrganizationName(\"Your Company Name\");\n setOrganizationUrl(\"https://www.company.com\");\n setLicenseName(\"apache_v2\");\n setLicenseUrl(\"https://www.license-url.com\");\n setScmConnection(\"\");\n setScmDeveloperConnection(\"\");\n setScmUrl(\"\");\n setDistributionProfile(\"\");\n setExtraModules(new LinkedHashSet<>());\n setContextDescriptions(new LinkedHashSet<>());\n setAppConfigLocationType(AppConfigLocationType.INSIDE);\n }",
"public void init(Map<String, String> configuration);",
"public Properties() \r\n\t{\r\n\t\tsuper();\r\n\t\tthis.port = 1234;\r\n\t\tthis.ip = \"127.0.0.1\";\r\n\t}",
"public FabricConfigurator() {\n\n }",
"void initialize(C config);",
"@Override\n\tpublic DataConfig createDefaultConfig() {\n\t\treturn new DataConfig();\n\t}",
"public GenAmazonS3Config() {\n }",
"private void initialiseByHand() {\n Configuration production = new Configuration(\"api.example.com\", false, 2000);\n Configuration staging = new Configuration(\"api-staging.example.com\", false, 2000);\n Configuration debug = new Configuration(\"api-dev.example.com\", true, 1000);\n Map<String, Configuration> baseVariants = new HashMap<>();\n baseVariants.put(PRODUCTION, production);\n baseVariants.put(STAGING, staging);\n baseVariants.put(DEBUG, debug);\n Neanderthal.initialise(this, baseVariants, PRODUCTION);\n }",
"@Override\n public void init() throws Exception {\n config = new Config();\n }",
"public BlobParserConfig() {\n\t\tthis.libraryPath = null;\n\t\tthis.parserClass = null;\n\t}",
"public JsonFactory() { this(null); }",
"public class_config(){\n\t\t\n\t\tformat_date=\"dd/MM/yyyy\";\n\t\tcurrency='€';\n\t\tdecimals=2;\n\t\tlanguage=\"eng\";\n\t\ttheme=\"Metal\";\n\t\tfile_format=\"json\";\n\t\t\n\t}",
"protected abstract void _init(DynMap config);",
"private ProjectConfigurationFactory()\n {}",
"@Override public void init()\n\t\t{\n\t\t}",
"protected DiscoveryVOSConfig() {\n\t\tsuper(BRANCH_ROOT + \".DiscoveryVOS.com.discoveryVOS.\".replace('.', File.separatorChar));\n\t}",
"public BaseTest() {\n\t\t\n\t\tprop= new Properties();\n\t\t\n\t\ttry {\n\t\t\tFileInputStream fle= new FileInputStream(\"C:\\\\Users\\\\19175\\\\eclipse-workspace\\\\com.toyota\\\\src\\\\test\\\\java\\\\Config\\\\config.properties\"); // Path of the Properties file\n\t\t\tprop.load(fle);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"default void init() {\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public void initializeDefault() {\n\t\tthis.numAuthorsAtStart = 5;\n\t\tthis.numPublicationsAtStart = 20;\n\t\tthis.numCreationAuthors = 0;\n\t\tthis.numCreationYears = 10;\n\n\t\tyearInformation = new DefaultYearInformation();\n\t\tyearInformation.initializeDefault();\n\t\tpublicationParameters = new DefaultPublicationParameters();\n\t\tpublicationParameters.initializeDefault();\n\t\tpublicationParameters.setYearInformation(yearInformation);\n\t\tauthorParameters = new DefaultAuthorParameters();\n\t\tauthorParameters.initializeDefault();\n\t\ttopicParameters = new DefaultTopicParameters();\n\t\ttopicParameters.initializeDefault();\n\t}",
"public SimpleXMLPipelineConfiguration() {\n configurations = new HashMap();\n }",
"private Settings()\n {}",
"public DefaultApplication() {\n\t}"
]
| [
"0.75721025",
"0.7559098",
"0.7438623",
"0.73796725",
"0.723741",
"0.71165705",
"0.70973897",
"0.70811886",
"0.70733505",
"0.7041823",
"0.695884",
"0.69546825",
"0.6937884",
"0.68922395",
"0.68874604",
"0.6864523",
"0.68638647",
"0.68539375",
"0.683577",
"0.6792333",
"0.67594236",
"0.6716929",
"0.668823",
"0.6687042",
"0.6672746",
"0.66679174",
"0.6633224",
"0.66199",
"0.66179216",
"0.65967",
"0.65639377",
"0.65486956",
"0.65403503",
"0.6532129",
"0.65162003",
"0.65034324",
"0.65014696",
"0.64840406",
"0.64813215",
"0.6477569",
"0.64646083",
"0.64414287",
"0.6438397",
"0.6422454",
"0.64138794",
"0.6412429",
"0.64011514",
"0.6393737",
"0.63933027",
"0.63873",
"0.63850164",
"0.6384854",
"0.6378156",
"0.6359484",
"0.63579977",
"0.6339125",
"0.6313611",
"0.6297326",
"0.629702",
"0.6279532",
"0.6278427",
"0.6275441",
"0.6273577",
"0.62671053",
"0.62669986",
"0.6256095",
"0.62529606",
"0.62474823",
"0.6246981",
"0.6241055",
"0.6237066",
"0.62295043",
"0.62243223",
"0.6219398",
"0.6214871",
"0.6210624",
"0.6194219",
"0.6190069",
"0.61861277",
"0.61786604",
"0.6176226",
"0.61741585",
"0.6172728",
"0.61711746",
"0.6169103",
"0.61568046",
"0.6152432",
"0.61490726",
"0.61434954",
"0.6138871",
"0.61377865",
"0.61357516",
"0.613502",
"0.61256146",
"0.6124924",
"0.6113945",
"0.6113296",
"0.6109018",
"0.6104542",
"0.6104288",
"0.6094892"
]
| 0.0 | -1 |
Add Kafka metrics to the metric registry | private void addMetrics(Map<MetricName, KafkaMetric> kafkaMetrics) {
Set<MetricName> metricKeys = kafkaMetrics.keySet();
for (MetricName key : metricKeys) {
KafkaMetric metric = kafkaMetrics.get(key);
String metricName = getMetricName(metric.metricName());
if (metrics.getNames().contains(metricName)) {
metrics.remove(metricName);
}
metrics.register(metricName, new Gauge<Double>() {
@Override
public Double getValue() {
return metric.value();
}
});
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addMetric(M wm){\r\n\t\tmetrics.add(wm);\r\n\t}",
"void registerDynamicMetricsProvider(DynamicMetricsProvider metricsProvider);",
"@Test\n @SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public void testPutMetrics() throws Exception {\n MetricsRecord record = mock(MetricsRecord.class);\n when(record.tags()).thenReturn(Lists\n .newArrayList(new MetricsTag(KafkaMetricsInfo.KafkaTag, \"test_tag\")));\n when(record.timestamp()).thenReturn(System.currentTimeMillis());\n\n // Create a metric using AbstractMetric class.\n AbstractMetric metric = new AbstractMetric(KafkaMetricsInfo.KafkaCounter) {\n @Override\n public Number value() {\n return new Integer(123);\n }\n\n @Override\n public MetricType type() {\n return null;\n }\n\n @Override\n public void visit(MetricsVisitor visitor) {\n\n }\n };\n\n // Create a list of metrics.\n Iterable<AbstractMetric> metrics = Lists.newArrayList(metric);\n when(record.name()).thenReturn(\"Kafka record name\");\n when(record.metrics()).thenReturn(metrics);\n SubsetConfiguration conf = mock(SubsetConfiguration.class);\n when(conf.getString(KafkaSink.BROKER_LIST)).thenReturn(\"localhost:9092\");\n String topic = \"myTestKafkaTopic\";\n when(conf.getString(KafkaSink.TOPIC)).thenReturn(topic);\n\n // Create the KafkaSink object and initialize it.\n kafkaSink = new KafkaSink();\n kafkaSink.init(conf);\n\n // Create a mock KafkaProducer as a producer for KafkaSink.\n Producer<Integer, byte[]> mockProducer = mock(KafkaProducer.class);\n kafkaSink.setProducer(mockProducer);\n\n // Create the json object from the record.\n StringBuilder jsonLines = recordToJson(record);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"kafka message: \" + jsonLines.toString());\n }\n\n // Send the record and store the result in a mock Future.\n Future<RecordMetadata> f = mock(Future.class);\n when(mockProducer.send(any())).thenReturn(f);\n kafkaSink.putMetrics(record);\n\n // Get the argument and verity it.\n ArgumentCaptor<ProducerRecord> argument =\n ArgumentCaptor.forClass(ProducerRecord.class);\n verify(mockProducer).send(argument.capture());\n\n // Compare the received data with the original one.\n ProducerRecord<Integer, byte[]> data = (argument.getValue());\n String jsonResult = new String(data.value());\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"kafka result: \" + jsonResult);\n }\n assertThat(jsonLines.toString()).isEqualTo(jsonResult);\n }",
"public void addMetrics(String value) {\n value.getClass();\n ensureMetricsIsMutable();\n this.metrics_.add(value);\n }",
"private void metricRegistered (ServiceReference srefMetric) {\n // Retrieve the service ID\n Long serviceId =\n (Long) srefMetric.getProperty(Constants.SERVICE_ID);\n logInfo(\"A metric service was registered with ID \" + serviceId);\n \n // Dispose from the list of available metric any old metric, that\n // uses the same ID. Should not be required, as long as metric\n // services got properly unregistered.\n if (registeredMetrics.containsKey(serviceId)) {\n registeredMetrics.remove(serviceId);\n }\n \n // Retrieve information about this metric and add this metric to the\n // list of registered/available metrics\n MetricInfo metricInfo = getMetricInfo(srefMetric);\n registeredMetrics.put(serviceId, metricInfo);\n \n // Search for an applicable configuration set and apply it\n Iterator<String> configSets =\n metricConfigurations.keySet().iterator();\n while (configSets.hasNext()) {\n // Match is performed against the metric's class name(s)\n String className = configSets.next();\n // TODO: It could happen that a service get registered with more\n // than one class. In this case a situation can arise where\n // two or more matching configuration sets exists.\n if (metricInfo.usesClassName(className)) {\n // Apply the current configuration set to this metric\n logInfo(\n \"A configuration set was found for metric with\"\n + \" object class name \" + className\n + \" and service ID \" + serviceId);\n MetricConfig configSet =\n metricConfigurations.get(className);\n \n // Execute the necessary post-registration actions\n if (configSet != null) {\n // Checks if this metric has to be automatically\n // installed upon registration\n if ((configSet.containsKey(MetricConfig.KEY_AUTOINSTALL)\n && (configSet.getString(MetricConfig.KEY_AUTOINSTALL)\n .equalsIgnoreCase(\"true\")))) {\n if (installMetric(serviceId)) {\n logInfo (\n \"The install method of metric with\"\n + \" service ID \" + serviceId\n + \" was successfully executed.\");\n }\n else {\n logError (\n \"The install method of metric with\"\n + \" service ID \" + serviceId\n + \" failed.\");\n }\n }\n }\n }\n }\n }",
"public void addMetric(Set<M> m){\r\n\t\tmetrics.addAll(m);\r\n\t}",
"public MetricRegistry getMetricRegistry();",
"@RefreshScope\n @Bean\n public MetricRegistry metrics() {\n final MetricRegistry metrics = new MetricRegistry();\n metrics.register(\"jvm.gc\", new GarbageCollectorMetricSet());\n metrics.register(\"jvm.memory\", new MemoryUsageGaugeSet());\n metrics.register(\"thread-states\", new ThreadStatesGaugeSet());\n metrics.register(\"jvm.fd.usage\", new FileDescriptorRatioGauge());\n return metrics;\n }",
"public Builder metrics(Collection<Metric> metrics) {\n this.metrics = metrics;\n return this;\n }",
"public void doUpdates(MetricsContext unused) {\n synchronized (this) {\n this.cluster_requests.pushMetric(metricsRecord);\n }\n this.metricsRecord.update();\n }",
"@Path(\"/metrics\")\n @POST\n @Consumes({ MediaType.APPLICATION_JSON })\n public Boolean postMetrics(\n @Context HttpServletRequest req,\n @Context HttpServletResponse res,\n TimelineMetrics metrics) {\n\n if (metrics == null) {\n\n }\n\n try {\n\n metricsStore.putMetrics(metrics);\n return null;\n\n } catch (Exception e) {\n\n }\n return null;\n }",
"public void addMetricsBytes(ByteString value) {\n checkByteStringIsUtf8(value);\n ensureMetricsIsMutable();\n this.metrics_.add(value.toStringUtf8());\n }",
"void collect(MetricsCollector collector);",
"void insert(Metric metric) throws MetricException;",
"private void collectMetricsInfo() {\n // Retrieve a list of all references to registered metric services\n ServiceReference[] metricsList = null;\n try {\n metricsList = bc.getServiceReferences(null, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Retrieve information about all registered metrics found\n if ((metricsList != null) && (metricsList.length > 0)) {\n \n for (int nextMetric = 0;\n nextMetric < metricsList.length;\n nextMetric++) {\n \n ServiceReference sref_metric = metricsList[nextMetric];\n MetricInfo metric_info = getMetricInfo(sref_metric);\n \n // Add this metric's info to the list\n if (metric_info != null) {\n registeredMetrics.put(\n metric_info.getServiceID(),\n metric_info);\n }\n }\n }\n else {\n logInfo(\"No pre-existing metrics were found!\");\n }\n }",
"public void register(MetricRegistry registry) {\n timer = registry.timer(\"life.catalogue.parser.name\");\n }",
"boolean registerMetric(Class<? extends Metric> metricType);",
"public interface MetricRegistry {\n\n /**\n * An enumeration representing the scopes of the MetricRegistry\n */\n enum Type {\n /**\n * The Application (default) scoped MetricRegistry. Any metric registered/accessed via CDI will use this\n * MetricRegistry.\n */\n APPLICATION(\"application\"),\n\n /**\n * The Base scoped MetricRegistry. This MetricRegistry will contain required metrics specified in the\n * MicroProfile Metrics specification.\n */\n BASE(\"base\"),\n\n /**\n * The Vendor scoped MetricRegistry. This MetricRegistry will contain vendor provided metrics which may vary\n * between different vendors.\n */\n VENDOR(\"vendor\");\n\n private final String name;\n\n Type(String name) {\n this.name = name;\n }\n\n /**\n * Returns the name of the MetricRegistry scope.\n *\n * @return the scope\n */\n public String getName() {\n return name;\n }\n }\n\n /**\n * Concatenates elements to form a dotted name, eliding any null values or empty strings.\n *\n * @param name\n * the first element of the name\n * @param names\n * the remaining elements of the name\n * @return {@code name} and {@code names} concatenated by periods\n */\n static String name(String name, String... names) {\n List<String> ns = new ArrayList<>();\n ns.add(name);\n ns.addAll(asList(names));\n return ns.stream().filter(part -> part != null && !part.isEmpty()).collect(joining(\".\"));\n }\n\n /**\n * Concatenates a class name and elements to form a dotted name, eliding any null values or empty strings.\n *\n * @param klass\n * the first element of the name\n * @param names\n * the remaining elements of the name\n * @return {@code klass} and {@code names} concatenated by periods\n */\n static String name(Class<?> klass, String... names) {\n return name(klass.getCanonicalName(), names);\n }\n\n /**\n * Given a {@link Metric}, registers it under a {@link MetricID} with the given name and with no tags. A\n * {@link Metadata} object will be registered with the name and type. However, if a {@link Metadata} object is\n * already registered with this metric name and is not equal to the created {@link Metadata} object then an\n * exception will be thrown.\n *\n * @param name\n * the name of the metric\n * @param metric\n * the metric\n * @param <T>\n * the type of the metric\n * @return {@code metric}\n * @throws IllegalArgumentException\n * if the name is already registered or if Metadata with different values has already been registered\n * with the name\n */\n <T extends Metric> T register(String name, T metric) throws IllegalArgumentException;\n\n /**\n * Given a {@link Metric} and {@link Metadata}, registers the metric with a {@link MetricID} with the name provided\n * by the {@link Metadata} and with no tags.\n * <p>\n * Note: If a {@link Metadata} object is already registered under this metric name and is not equal to the provided\n * {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the metadata\n * @param metric\n * the metric\n * @param <T>\n * the type of the metric\n * @return {@code metric}\n * @throws IllegalArgumentException\n * if the name is already registered or if Metadata with different values has already been registered\n * with the name\n *\n * @since 1.1\n */\n <T extends Metric> T register(Metadata metadata, T metric) throws IllegalArgumentException;\n\n /**\n * Given a {@link Metric} and {@link Metadata}, registers both under a {@link MetricID} with the name provided by\n * the {@link Metadata} and with the provided {@link Tag}s.\n * <p>\n * Note: If a {@link Metadata} object is already registered under this metric name and is not equal to the provided\n * {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the metadata\n * @param metric\n * the metric\n * @param <T>\n * the type of the metric\n * @param tags\n * the tags of the metric\n * @return {@code metric}\n * @throws IllegalArgumentException\n * if the name is already registered or if Metadata with different values has already been registered\n * with the name\n *\n * @since 2.0\n */\n <T extends Metric> T register(Metadata metadata, T metric, Tag... tags) throws IllegalArgumentException;\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Counter} if none is registered.\n *\n * If a {@link Counter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Counter}\n */\n Counter counter(String name);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link Counter} if none is registered.\n *\n * If a {@link Counter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Counter}\n *\n * @since 2.0\n */\n Counter counter(String name, Tag... tags);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID}; or create and register a new {@link Counter} if\n * none is registered.\n *\n * If a {@link Counter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Counter}\n *\n * @since 3.0\n */\n Counter counter(MetricID metricID);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with the {@link Metadata}'s name and with no\n * tags; or create and register a new {@link Counter} if none is registered. If a {@link Counter} was created, the\n * provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Counter}\n */\n Counter counter(Metadata metadata);\n\n /**\n * Return the {@link Counter} registered under the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Counter} if none is registered. If a {@link Counter}\n * was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Counter}\n *\n * @since 2.0\n */\n Counter counter(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with this name; or create and register a\n * new {@link ConcurrentGauge} if none is registered. If a {@link ConcurrentGauge} was created, a {@link Metadata}\n * object will be registered with the name and type.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(String name);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link ConcurrentGauge} if none is registered. If a\n * {@link ConcurrentGauge} was created, a {@link Metadata} object will be registered with the name and type.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(String name, Tag... tags);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID}; or create and register a new\n * {@link ConcurrentGauge} if none is registered. If a {@link ConcurrentGauge} was created, a {@link Metadata}\n * object will be registered with the name and type.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n *\n * @since 3.0\n */\n ConcurrentGauge concurrentGauge(MetricID metricID);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with the {@link Metadata}'s name; or\n * create and register a new {@link ConcurrentGauge} if none is registered. If a {@link ConcurrentGauge} was\n * created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(Metadata metadata);\n\n /**\n * Return the {@link ConcurrentGauge} registered under the {@link MetricID} with the {@link Metadata}'s name and\n * with the provided {@link Tag}s; or create and register a new {@link ConcurrentGauge} if none is registered. If a\n * {@link ConcurrentGauge} was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link ConcurrentGauge}\n */\n ConcurrentGauge concurrentGauge(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Gauge} of type {@link java.lang.Number Number} registered under the {@link MetricID} with this\n * name and with the provided {@link Tag}s; or create and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will apply a {@link java.util.function.Function Function} to the provided object to\n * resolve a {@link java.lang.Number Number} value.\n *\n * @param <T>\n * The Type of the Object of which the function <code>func</code> is applied to\n * @param <R>\n * A {@link java.lang.Number Number}\n * @param name\n * The name of the Gauge metric\n * @param object\n * The object that the {@link java.util.function.Function Function} <code>func</code> will be applied to\n * @param func\n * The {@link java.util.function.Function Function} that will be applied to <code>object</code>\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T, R extends Number> Gauge<R> gauge(String name, T object, Function<T, R> func, Tag... tags);\n\n /**\n * Return the {@link Gauge} of type {@link java.lang.Number Number} registered under the {@link MetricID}; or create\n * and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will apply a {@link java.util.function.Function Function} to the provided object to\n * resolve a {@link java.lang.Number Number} value.\n *\n * @param <T>\n * The Type of the Object of which the function <code>func</code> is applied to\n * @param <R>\n * A {@link java.lang.Number Number}\n * @param metricID\n * The MetricID of the Gauge metric\n * @param object\n * The object that the {@link java.util.function.Function Function} <code>func</code> will be applied to\n * @param func\n * The {@link java.util.function.Function Function} that will be applied to <code>object</code>\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T, R extends Number> Gauge<R> gauge(MetricID metricID, T object, Function<T, R> func);\n\n /**\n * Return the {@link Gauge} of type {@link java.lang.Number Number} registered under the {@link MetricID} with\n * the @{link Metadata}'s name and with the provided {@link Tag}s; or create and register this gauge if none is\n * registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will apply a {@link java.util.function.Function Function} to the provided object to\n * resolve a {@link java.lang.Number Number} value.\n *\n * @param <T>\n * The Type of the Object of which the function <code>func</code> is applied to\n * @param <R>\n * A {@link java.lang.Number Number}\n * @param metadata\n * The Metadata of the Gauge\n * @param object\n * The object that the {@link java.util.function.Function Function} <code>func</code> will be applied to\n * @param func\n * The {@link java.util.function.Function Function} that will be applied to <code>object</code>\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T, R extends Number> Gauge<R> gauge(Metadata metadata, T object, Function<T, R> func, Tag... tags);\n\n /**\n * Return the {@link Gauge} registered under the {@link MetricID} with this name and with the provided {@link Tag}s;\n * or create and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will return the value that the {@link java.util.function.Supplier Supplier} will\n * provide.\n *\n * @param <T>\n * A {@link java.lang.Number Number}\n * @param name\n * The name of the Gauge\n * @param supplier\n * The {@link java.util.function.Supplier Supplier} function that will return the value for the Gauge\n * metric\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T extends Number> Gauge<T> gauge(String name, Supplier<T> supplier, Tag... tags);\n\n /**\n * Return the {@link Gauge} registered under the {@link MetricID}; or create and register this gauge if none is\n * registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will return the value that the {@link java.util.function.Supplier Supplier} will\n * provide.\n *\n * @param <T>\n * A {@link java.lang.Number Number}\n * @param metricID\n * The {@link MetricID}\n * @param supplier\n * The {@link java.util.function.Supplier Supplier} function that will return the value for the Gauge\n * metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T extends Number> Gauge<T> gauge(MetricID metricID, Supplier<T> supplier);\n\n /**\n * Return the {@link Gauge} registered under the {@link MetricID} with the @{link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register this gauge if none is registered.\n *\n * If a {@link Gauge} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * The created {@link Gauge} will return the value that the {@link java.util.function.Supplier Supplier} will\n * provide.\n *\n * @param <T>\n * A {@link java.lang.Number Number}\n * @param metadata\n * The metadata of the gauge\n * @param supplier\n * The {@link java.util.function.Supplier Supplier} function that will return the value for the Gauge\n * metric\n * @param tags\n * The tags of the metric\n * @return a new or pre-existing {@link Gauge}\n *\n * @since 3.0\n */\n <T extends Number> Gauge<T> gauge(Metadata metadata, Supplier<T> supplier, Tag... tags);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Histogram} if none is registered.\n *\n * If a {@link Histogram} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Histogram}\n */\n Histogram histogram(String name);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link Histogram} if none is registered.\n *\n * If a {@link Histogram} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Histogram}\n *\n * @since 2.0\n */\n Histogram histogram(String name, Tag... tags);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID}; or create and register a new\n * {@link Histogram} if none is registered.\n *\n * If a {@link Histogram} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Histogram}\n *\n * @since 3.0\n */\n Histogram histogram(MetricID metricID);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with the {@link Metadata}'s name and with no\n * tags; or create and register a new {@link Histogram} if none is registered. If a {@link Histogram} was created,\n * the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Histogram}\n */\n Histogram histogram(Metadata metadata);\n\n /**\n * Return the {@link Histogram} registered under the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Histogram} if none is registered. If a\n * {@link Histogram} was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Histogram}\n *\n * @since 2.0\n */\n Histogram histogram(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Meter} if none is registered.\n *\n * If a {@link Meter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Meter}\n */\n Meter meter(String name);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with this name and with the provided {@link Tag}s;\n * or create and register a new {@link Meter} if none is registered.\n *\n * If a {@link Meter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Meter}\n *\n * @since 2.0\n */\n Meter meter(String name, Tag... tags);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID}; or create and register a new {@link Meter} if\n * none is registered.\n *\n * If a {@link Meter} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Meter}\n *\n * @since 3.0\n */\n Meter meter(MetricID metricID);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with the {@link Metadata}'s name and with no tags;\n * or create and register a new {@link Meter} if none is registered. If a {@link Meter} was created, the provided\n * {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Meter}\n */\n Meter meter(Metadata metadata);\n\n /**\n * Return the {@link Meter} registered under the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Meter} if none is registered. If a {@link Meter} was\n * created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Meter}\n *\n * @since 2.0\n */\n Meter meter(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Timer} registered under the {@link MetricID} with this name and with no tags; or create and\n * register a new {@link Timer} if none is registered.\n *\n * If a {@link Timer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link Timer}\n */\n Timer timer(String name);\n\n /**\n * Return the {@link Timer} registered under the {@link MetricID} with this name and with the provided {@link Tag}s;\n * or create and register a new {@link Timer} if none is registered.\n *\n * If a {@link Timer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Timer}\n *\n * @since 2.0\n */\n Timer timer(String name, Tag... tags);\n\n /**\n * Return the {@link Timer} registered under the {@link MetricID}; or create and register a new {@link Timer} if\n * none is registered.\n *\n * If a {@link Timer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link Timer}\n *\n * @since 3.0\n */\n Timer timer(MetricID metricID);\n\n /**\n * Return the {@link Timer} registered under the the {@link MetricID} with the {@link Metadata}'s name and with no\n * tags; or create and register a new {@link Timer} if none is registered. If a {@link Timer} was created, the\n * provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link Timer}\n */\n Timer timer(Metadata metadata);\n\n /**\n * Return the {@link Timer} registered under the the {@link MetricID} with the {@link Metadata}'s name and with the\n * provided {@link Tag}s; or create and register a new {@link Timer} if none is registered. If a {@link Timer} was\n * created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link Timer}\n *\n * @since 2.0\n */\n Timer timer(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link SimpleTimer} registered under the {@link MetricID} with this name and with no tags; or create\n * and register a new {@link SimpleTimer} if none is registered.\n *\n * If a {@link SimpleTimer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param name\n * the name of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(String name);\n\n /**\n * Return the {@link SimpleTimer} registered under the {@link MetricID} with this name and with the provided\n * {@link Tag}s; or create and register a new {@link SimpleTimer} if none is registered.\n *\n * If a {@link SimpleTimer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n *\n * @param name\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(String name, Tag... tags);\n\n /**\n * Return the {@link SimpleTimer} registered under the {@link MetricID}; or create and register a new\n * {@link SimpleTimer} if none is registered.\n *\n * If a {@link SimpleTimer} was created, a {@link Metadata} object will be registered with the name and type. If a\n * {@link Metadata} object is already registered with this metric name then that {@link Metadata} will be used.\n *\n * @param metricID\n * the ID of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 3.0\n */\n SimpleTimer simpleTimer(MetricID metricID);\n\n /**\n * Return the {@link SimpleTimer} registered under the the {@link MetricID} with the {@link Metadata}'s name and\n * with no tags; or create and register a new {@link SimpleTimer} if none is registered. If a {@link SimpleTimer}\n * was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(Metadata metadata);\n\n /**\n * Return the {@link SimpleTimer} registered under the the {@link MetricID} with the {@link Metadata}'s name and\n * with the provided {@link Tag}s; or create and register a new {@link SimpleTimer} if none is registered. If a\n * {@link SimpleTimer} was created, the provided {@link Metadata} object will be registered.\n * <p>\n * Note: During retrieval or creation, if a {@link Metadata} object is already registered under this metric name and\n * is not equal to the provided {@link Metadata} object then an exception will be thrown.\n * </p>\n *\n * @param metadata\n * the name of the metric\n * @param tags\n * the tags of the metric\n * @return a new or pre-existing {@link SimpleTimer}\n *\n * @since 2.3\n */\n SimpleTimer simpleTimer(Metadata metadata, Tag... tags);\n\n /**\n * Return the {@link Metric} registered for a provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Metric} registered for the provided {@link MetricID} or {@code null} if none has been\n * registered so far\n *\n * @since 3.0\n */\n Metric getMetric(MetricID metricID);\n\n /**\n * Return the {@link Metric} registered for the provided {@link MetricID} as the provided type.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @param asType\n * the return type which is expected to be compatible with the actual type of the registered metric\n * @return the {@link Metric} registered for the provided {@link MetricID} or {@code null} if none has been\n * registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to the provided type\n *\n * @since 3.0\n */\n <T extends Metric> T getMetric(MetricID metricID, Class<T> asType);\n\n /**\n * Return the {@link Counter} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Counter} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Counter}\n *\n * @since 3.0\n */\n Counter getCounter(MetricID metricID);\n\n /**\n * Return the {@link ConcurrentGauge} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link ConcurrentGauge} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link ConcurrentGauge}\n *\n * @since 3.0\n */\n ConcurrentGauge getConcurrentGauge(MetricID metricID);\n\n /**\n * Return the {@link Gauge} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Gauge} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Gauge}\n *\n * @since 3.0\n */\n Gauge<?> getGauge(MetricID metricID);\n\n /**\n * Return the {@link Histogram} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Histogram} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Histogram}\n *\n * @since 3.0\n */\n Histogram getHistogram(MetricID metricID);\n\n /**\n * Return the {@link Meter} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Meter} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Meter}\n *\n * @since 3.0\n */\n Meter getMeter(MetricID metricID);\n\n /**\n * Return the {@link Timer} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link Timer} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link Timer}\n *\n * @since 3.0\n */\n Timer getTimer(MetricID metricID);\n\n /**\n * Return the {@link SimpleTimer} registered for the provided {@link MetricID}.\n *\n * @param metricID\n * lookup key, not {@code null}\n * @return the {@link SimpleTimer} registered for the key or {@code null} if none has been registered so far\n * @throws IllegalArgumentException\n * If the registered metric was not assignable to {@link SimpleTimer}\n *\n * @since 3.0\n */\n SimpleTimer getSimpleTimer(MetricID metricID);\n\n /**\n * Return the {@link Metadata} for the provided name.\n *\n * @param name\n * the name of the metric\n * @return the {@link Metadata} for the provided name of {@code null} if none has been registered for that name\n *\n * @since 3.0\n */\n Metadata getMetadata(String name);\n\n /**\n * Removes all metrics with the given name.\n *\n * @param name\n * the name of the metric\n * @return whether or not the metric was removed\n */\n boolean remove(String name);\n\n /**\n * Removes the metric with the given MetricID\n *\n * @param metricID\n * the MetricID of the metric\n * @return whether or not the metric was removed\n *\n * @since 2.0\n */\n boolean remove(MetricID metricID);\n\n /**\n * Removes all metrics which match the given filter.\n *\n * @param filter\n * a filter\n */\n void removeMatching(MetricFilter filter);\n\n /**\n * Returns a set of the names of all the metrics in the registry.\n *\n * @return the names of all the metrics\n */\n SortedSet<String> getNames();\n\n /**\n * Returns a set of the {@link MetricID}s of all the metrics in the registry.\n *\n * @return the MetricIDs of all the metrics\n */\n SortedSet<MetricID> getMetricIDs();\n\n /**\n * Returns a map of all the gauges in the registry and their {@link MetricID}s.\n *\n * @return all the gauges in the registry\n */\n SortedMap<MetricID, Gauge> getGauges();\n\n /**\n * Returns a map of all the gauges in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the gauges in the registry\n */\n SortedMap<MetricID, Gauge> getGauges(MetricFilter filter);\n\n /**\n * Returns a map of all the counters in the registry and their {@link MetricID}s.\n *\n * @return all the counters in the registry\n */\n SortedMap<MetricID, Counter> getCounters();\n\n /**\n * Returns a map of all the counters in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the counters in the registry\n */\n SortedMap<MetricID, Counter> getCounters(MetricFilter filter);\n\n /**\n * Returns a map of all the concurrent gauges in the registry and their {@link MetricID}s.\n *\n * @return all the concurrent gauges in the registry\n */\n SortedMap<MetricID, ConcurrentGauge> getConcurrentGauges();\n\n /**\n * Returns a map of all the concurrent gauges in the registry and their {@link MetricID}s which match the given\n * filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the concurrent gauges in the registry\n */\n SortedMap<MetricID, ConcurrentGauge> getConcurrentGauges(MetricFilter filter);\n\n /**\n * Returns a map of all the histograms in the registry and their {@link MetricID}s.\n *\n * @return all the histograms in the registry\n */\n SortedMap<MetricID, Histogram> getHistograms();\n\n /**\n * Returns a map of all the histograms in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the histograms in the registry\n */\n SortedMap<MetricID, Histogram> getHistograms(MetricFilter filter);\n\n /**\n * Returns a map of all the meters in the registry and their {@link MetricID}s.\n *\n * @return all the meters in the registry\n */\n SortedMap<MetricID, Meter> getMeters();\n\n /**\n * Returns a map of all the meters in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the meters in the registry\n */\n SortedMap<MetricID, Meter> getMeters(MetricFilter filter);\n\n /**\n * Returns a map of all the timers in the registry and their {@link MetricID}s.\n *\n * @return all the timers in the registry\n */\n SortedMap<MetricID, Timer> getTimers();\n\n /**\n * Returns a map of all the timers in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the timers in the registry\n */\n SortedMap<MetricID, Timer> getTimers(MetricFilter filter);\n\n /**\n * Returns a map of all the simple timers in the registry and their {@link MetricID}s.\n *\n * @return all the timers in the registry\n */\n SortedMap<MetricID, SimpleTimer> getSimpleTimers();\n\n /**\n * Returns a map of all the simple timers in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the timers in the registry\n */\n SortedMap<MetricID, SimpleTimer> getSimpleTimers(MetricFilter filter);\n\n /**\n * Returns a map of all the metrics in the registry and their {@link MetricID}s which match the given filter.\n *\n * @param filter\n * the metric filter to match\n * @return all the metrics in the registry\n *\n * @since 3.0\n */\n SortedMap<MetricID, Metric> getMetrics(MetricFilter filter);\n\n /**\n * Returns a map of all the metrics in the registry and their {@link MetricID}s which match the given filter and\n * which are assignable to the provided type.\n * \n * @param ofType\n * the type to which all returned metrics should be assignable\n * @param filter\n * the metric filter to match\n *\n * @return all the metrics in the registry\n *\n * @since 3.0\n */\n @SuppressWarnings(\"unchecked\")\n <T extends Metric> SortedMap<MetricID, T> getMetrics(Class<T> ofType, MetricFilter filter);\n\n /**\n * Returns a map of all the metrics in the registry and their {@link MetricID}s at query time. The only guarantee\n * about this method is that any key has a value (compared to using {@link #getMetric(MetricID)} and\n * {@link #getMetricIDs()} together).\n *\n * It is <b>only</b> intended for bulk querying, if you need a single or a few entries, always prefer\n * {@link #getMetric(MetricID)} or {@link #getMetrics(MetricFilter)}.\n *\n * @return all the metrics in the registry\n */\n Map<MetricID, Metric> getMetrics();\n\n /**\n * Returns a map of all the metadata in the registry and their names. The only guarantee about this method is that\n * any key has a value (compared to using {@link #getMetadata(String)}.\n *\n * It is <b>only</b> intended for bulk querying, if you need a single or a few metadata, always prefer\n * {@link #getMetadata(String)}}.\n *\n * @return all the metadata in the registry\n */\n Map<String, Metadata> getMetadata();\n\n /**\n * Returns the type of this metric registry.\n *\n * @return Type of this registry (VENDOR, BASE, APPLICATION)\n */\n Type getType();\n\n}",
"public void addAllMetrics(Iterable<String> values) {\n ensureMetricsIsMutable();\n AbstractMessageLite.addAll(values, this.metrics_);\n }",
"MetricsRegistry getMetrics2Registry() {\n return metrics2Registry;\n }",
"private void writeMetrics() {\n if (metrics.size() > 0) {\n try {\n String payload = pickleMetrics(metrics);\n int length = payload.length();\n byte[] header = ByteBuffer.allocate(4).putInt(length).array();\n socket.getOutputStream().write(header);\n writer.write(payload);\n writer.flush();\n } catch (Exception e) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Error writing to Graphite\", e);\n } else {\n LOGGER.warn(\"Error writing to Graphite: {}\", e.getMessage());\n }\n }\n\n // if there was an error, we might miss some data. for now, drop those on the floor and\n // try to keep going.\n LOGGER.debug(\"Wrote {} metrics\", metrics.size());\n\n metrics.clear();\n }\n }",
"@Override\n public void configureReporters(MetricRegistry metricRegistry) {\n\n\n registerReporter(ConsoleReporter\n .forRegistry(metricRegistry)\n .outputTo(System.out)\n .filter(MetricFilter.ALL)\n .build())\n .start(300, TimeUnit.SECONDS);\n\n }",
"public void setMetricRegistry(MetricRegistry metricRegistry) {\n this.metricRegistry = metricRegistry;\n }",
"private void addMetrics(List<MetricDatum> list,\n MetricValues metricValues,\n StandardUnit unit) {\n List<MachineMetric> machineMetrics = metricValues.getMetrics();\n List<Long> values = metricValues.getValues();\n for (int i=0; i < machineMetrics.size(); i++) {\n MachineMetric metric = machineMetrics.get(i);\n long val = values.get(i).longValue();\n // skip zero values in some cases\n if (val != 0 || metric.includeZeroValue()) {\n MetricDatum datum = new MetricDatum()\n .withMetricName(metric.getMetricName())\n .withDimensions(\n new Dimension()\n .withName(metric.getDimensionName())\n .withValue(metric.name()))\n .withUnit(unit)\n .withValue((double) val)\n ;\n list.add(datum);\n }\n }\n }",
"KafkaMetricMeterType() {\n }",
"public interface MetricRegistry {\n\n /**\n * Returns or creates a sub-scope of this metric registry.\n *\n * @param name Name for the sub-scope.\n * @return A possibly-new metric registry, whose metrics will be 'children' of this scope.\n */\n MetricRegistry scope(String name);\n\n /**\n * Registers a new gauge.\n *\n * @deprecated Please use registerGauge instead.\n * @param gauge Gauge to register.\n * @param <T> Number type of the gauge's values.\n */\n @Deprecated\n <T extends Number> void register(Gauge<T> gauge);\n\n /**\n * Registers a new gauge.\n *\n * @param gauge Gauge to register.\n * @param <T> Number type of the gauge's values.\n * @return the Gauge created.\n */\n <T extends Number> Gauge<T> registerGauge(Gauge<T> gauge);\n\n /**\n * Unregisters a gauge from the registry.\n *\n * @param gauge Gauge to unregister.\n * @return true if the gauge was successfully unregistered, false otherwise.\n */\n boolean unregister(Gauge<?> gauge);\n\n /**\n * Creates and returns a {@link Counter} that can be incremented.\n *\n * @param name Name to associate with the counter.\n * @return Counter (initialized to zero) to increment the value.\n */\n Counter createCounter(String name);\n\n /**\n * Creates a counter and returns an {@link Counter} that can be incremented.\n * @deprecated Please use createCounter instead.\n * @param name Name to associate with the gauge.\n * @return Counter (initialized to zero) to increment the value.\n */\n @Deprecated\n Counter registerCounter(String name);\n\n /**\n * Unregisters a counter from the registry.\n * @param counter Counter to unregister.\n * @return true if the counter was successfully unregistered, false otherwise.\n */\n boolean unregister(Counter counter);\n\n /**\n * Create a HistogramInterface (with default parameters).\n * @return the newly created histogram.\n */\n HistogramInterface createHistogram(String name);\n\n /**\n * Register an HistogramInterface into the Metrics registry.\n * Useful when you want to create custom histogram (e.g. with better precision).\n * @return the Histogram you registered for chaining purposes.\n */\n HistogramInterface registerHistogram(HistogramInterface histogram);\n\n /**\n * Unregisters an histogram from the registry.\n * @param histogram Histogram to unregister.\n * @return true if the histogram was successfully unregistered, false otherwise.\n */\n boolean unregister(HistogramInterface histogram);\n\n /**\n * Convenient method that unregister any metric (identified by its name) from the registry.\n * @param name Name of metric to unregister.\n * @return true if the metric was successfully unregistered, false otherwise.\n */\n boolean unregister(String name);\n}",
"@Delegate\n MetricApi getMetricApi();",
"public HazelcastMetricsExports(final HazelcastInstance hazelcastInstance) {\n// new HazelcastInfoExports(hazelcastInstance).register();\n// new HazelcastClusterInfoExports(hazelcastInstance).register();\n// hazelcastStateExporters = new HazelcastStateExporters(hazelcastInstance);\n //new HazelcastInternalsExporters(hazelcastInstance);\n }",
"private <T> void addCustomMetricsToHitBuilder(T builder) {\n\t\ttry {\n\t\t\tMethod builderMethod = builder.getClass().getMethod(\"setCustomMetric\", Integer.TYPE, String.class);\n\n\t\t\tfor (Entry<Integer, Long> entry : customMetrics.entrySet()) {\n\t\t\t\tInteger key = entry.getKey();\n\t\t\t\tLong value = entry.getValue();\n\t\t\t\ttry {\n\t\t\t\t\tbuilderMethod.invoke(builder, (key), value);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SecurityException e) {\n\t\t} catch (NoSuchMethodException e) {\n\t\t}\n\t}",
"public synchronized static void addTraceMetricsSource() {\n try {\n QueryServicesOptions options = QueryServicesOptions.withDefaults();\n if (!initialized && options.isTracingEnabled()) {\n traceSpanReceiver = new TraceSpanReceiver();\n Trace.addReceiver(traceSpanReceiver);\n TraceWriter traceWriter = new TraceWriter(options.getTableName(), options.getTracingThreadPoolSize(), options.getTracingBatchSize());\n traceWriter.start();\n }\n } catch (RuntimeException e) {\n LOGGER.warn(\"Tracing will outputs will not be written to any metrics sink! No \"\n + \"TraceMetricsSink found on the classpath\", e);\n } catch (IllegalAccessError e) {\n // This is an issue when we have a class incompatibility error, such as when running\n // within SquirrelSQL which uses an older incompatible version of commons-collections.\n // Seeing as this only results in disabling tracing, we swallow this exception and just\n // continue on without tracing.\n LOGGER.warn(\"Class incompatibility while initializing metrics, metrics will be disabled\", e);\n }\n initialized = true;\n }",
"void registerMetricsServlet(final ServletContext servletContext) {\n final ServletRegistration.Dynamic metricsServlet = servletContext.addServlet(\"metricsServlet\", new MetricsServlet());\n metricsServlet.setLoadOnStartup(1);\n metricsServlet.addMapping(\"/metrics/*\");\n }",
"void metric(String controllerName, String policyName, Metric metric);",
"public static void registerMeters(StormMetricsRegistry registry) {\n \n registry.registerMeter(NUM_FILE_OPEN_EXCEPTIONS);\n registry.registerMeter(NUM_FILE_READ_EXCEPTIONS);\n registry.registerMeter(NUM_FILE_REMOVAL_EXCEPTIONS);\n registry.registerMeter(NUM_FILE_DOWNLOAD_EXCEPTIONS);\n registry.registerMeter(NUM_SET_PERMISSION_EXCEPTIONS);\n registry.registerMeter(NUM_CLEANUP_EXCEPTIONS);\n registry.registerMeter(NUM_READ_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_READ_DAEMON_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_LIST_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_LIST_DUMP_EXCEPTIONS);\n registry.registerMeter(NUM_DOWNLOAD_DUMP_EXCEPTIONS);\n registry.registerMeter(NUM_DOWNLOAD_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_DOWNLOAD_DAEMON_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_SEARCH_EXCEPTIONS);\n }",
"public void counter(MetricCounter<Integer> metric, int value);",
"public synchronized void addGauge(T key, String name) {\n if(gauges.containsKey(key)) {\n return;\n }\n RequestExecutionTimeGauge gauge = new RequestExecutionTimeGaugeImpl(name, this.name);\n gauges.put(key,gauge);\n }",
"MetricRegistry scope(String name);",
"private static interface NewMetric<T> {\n T newMetric(Class<?> clazz, String name, String scope);\n }",
"public MetricRegistry getMetricRegistry() {\n return metricRegistry;\n }",
"MetricsFactory getMetricsFactory();",
"public void createMBeanProxies() {\n createMBeanProxy(EngineMetricMBean.class, getObjectName(EngineMetric.class));\n createMBeanProxy(StatementMetricMBean.class, getObjectName(StatementMetric.class));\n }",
"public Builder metrics(ReporterMetrics metrics) {\n if (metrics == null) throw new NullPointerException(\"metrics == null\");\n this.metrics = metrics;\n return this;\n }",
"@Override\n public DataStoreMetricsReporter getMetrics()\n {\n return metrics;\n }",
"@Test\n public void testMemoryMetric() {\n MetricValue mv = new MetricValue.Builder().load(40).add();\n\n MEMORY_METRICS.forEach(cmt -> testUpdateMetricWithoutId(cmt, mv));\n MEMORY_METRICS.forEach(cmt -> testLoadMetric(nodeId, cmt, mv));\n }",
"void reportCustomMetrics(final List<DynatraceCustomMetric> dynatraceCustomMetrics) throws Exception;",
"com.google.dataflow.v1beta3.MetricUpdate getMetrics(int index);",
"@Override\n public void onStart() {\n if (SystemMetricsService.getProvider() == null)\n throw new IllegalStateException(\"SystemMetricsRecorderJob will not start as no SystemMetricsServiceProvider is registered for this platform\");\n\n DataSourceModel dataSourceModel = DataSourceModelService.getDefaultDataSourceModel();\n // Starting a periodic timer to capture metrics every seconds and record it in the database\n metricsCapturePeriodicTimer = Scheduler.schedulePeriodic(1000, () -> {\n // Creating an update store for metrics entity\n UpdateStore store = UpdateStore.create(dataSourceModel);\n // Instantiating a new system metrics entity and asking the system metrics service to fill that entity\n SystemMetricsService.takeSystemMetricsSnapshot(store.insertEntity(SystemMetricsEntity.class));\n // Submitting this new record into the database\n store.submitChanges().setHandler(asyncResult -> {\n if (asyncResult.failed())\n Logger.log(\"Inserting metrics in database failed!\", asyncResult.cause());\n });\n });\n\n // Deleting old metrics records (older than 1 day) regularly (every 12h)\n metricsCleaningPeriodicTimer = Scheduler.schedulePeriodic(12 * 3600 * 1000, () ->\n SubmitService.executeSubmit(SubmitArgument.builder()\n .setLanguage(\"DQL\")\n .setStatement(\"delete Metrics where LtTestSet is null and date < ?\")\n .setParameters(Instant.now().minus(1, ChronoUnit.DAYS))\n .setDataSourceId(dataSourceModel.getDataSourceId())\n .build()\n ).setHandler(ar -> {\n if (ar.failed())\n Logger.log(\"Deleting metrics in database failed!\", ar.cause());\n else\n Logger.log(\"\" + ar.result().getRowCount() + \" metrics records have been deleted from the database\");\n }));\n }",
"ClientMetrics getOrCreateMetricsClient(String hostName);",
"public abstract List<Metric> getMetrics();",
"protected void addedServer(final BasicServerMetrics metrics) {\n // Nothing - Extension point.\n }",
"public void addGauge(T key) {\n String gaugeName;\n if(key instanceof Class) {\n Class ckey = (Class)key;\n gaugeName = ckey.getSimpleName();\n } else if(key instanceof Method){\n Method mkey = (Method)key;\n // use '|' as delimiter to keep JMX happy\n gaugeName = toStringSignature(mkey, '|');\n } else {\n gaugeName = key.toString();\n }\n addGauge(key,gaugeName);\n }",
"private void registerDevice(MeasurementDevice inDevice) {\r\n\r\n\t\tfor (String lCurrMeasureId : inDevice.getSupportedMeasureIds()) {\r\n\r\n\t\t\tList<Measure> lDeviceMeasures = measures.get(inDevice.getId());\r\n\t\t\tif (lDeviceMeasures == null) {\r\n\t\t\t\tlDeviceMeasures = new ArrayList<>();\r\n\t\t\t\tmeasures.put(inDevice.getId(), lDeviceMeasures);\r\n\t\t\t} // if\r\n\t\t\tlDeviceMeasures.add(MeasureFactory.createMeasure(inDevice, lCurrMeasureId));\r\n\t\t} // for\r\n\r\n\t\tMeasureCacheAdapter lCacheAdapter = new MeasureCacheAdapterImpl(measures.get(inDevice.getId()));\r\n\t\tmeasureListeners.forEach(l -> lCacheAdapter.addMeasureListener(l));\r\n\t\tinDevice.setMeasureCacheAdapter(lCacheAdapter);\r\n\t}",
"@Override\n public Metrics getMetrics() {\n return metrics;\n }",
"java.util.List<com.google.dataflow.v1beta3.MetricUpdate> getMetricsList();",
"public Collection<MetricInfo> listMetrics() {\n if (!registeredMetrics.isEmpty()) {\n return registeredMetrics.values();\n }\n return null;\n }",
"public synchronized void addMetricSet(IMetricSet metricSet) {\n if (!metricSets.contains(metricSet)) {\n metricSet.bindTo(this);\n metricSets.add(metricSet);\n }\n }",
"void putMBean(MBean mbean) {\n\n\t\tList<MBean> mBeans = mbeanMap.get(mbean.getType());\n\n\t\tif (mBeans == null) {\n\t\t\tmBeans = new ArrayList<MBean>();\n\t\t\tthis.mbeanMap.put(mbean.getType(), mBeans);\n\t\t}\n\n\t\tmBeans.add(mbean);\n\n\t\tthis.mbeanCount++;\n\t}",
"public void registerJMX() {\n Hashtable<String, String> tb = new Hashtable<String, String>();\n tb.put(\"type\", \"statistics\");\n tb.put(\"sessionFactory\", \"HibernateSessionFactory\");\n try {\n ObjectName on = new ObjectName(\"hibernate\", tb);\n MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();\n if (!mbs.isRegistered(on)) {\n StatisticsService stats = new StatisticsService();\n stats.setSessionFactory(getSessionFactory());\n mbs.registerMBean(stats, on);\n ManagementService.registerMBeans(CacheManager.getInstance(),\n mbs, true, true, true, true);\n }\n } catch (Exception e) {\n logger.warn(\"Unable to register Hibernate and EHCache with JMX\");\n }\n\n }",
"private void reportMetrics(String metricsName, ITestInvocationListener listener,\n Map<String, String> metrics) {\n // Create an empty testRun to report the parsed runMetrics\n CLog.d(\"About to report metrics to %s: %s\", metricsName, metrics);\n listener.testRunStarted(metricsName, 0);\n listener.testRunEnded(0, metrics);\n }",
"public void addConsumerDestinations(MonitoringDestination value) {\n value.getClass();\n ensureConsumerDestinationsIsMutable();\n this.consumerDestinations_.add(value);\n }",
"public static MetricParameterBuilder metrics()\n {\n return new MetricParameterBuilder();\n }",
"private void addMeter(MetricsRecordBuilder builder, String name, String desc, long count,\n double meanRate, double oneMinuteRate, double fiveMinuteRate, double fifteenMinuteRate) {\n builder.addGauge(Interns.info(name + \"_count\", EMPTY_STRING), count);\n builder.addGauge(Interns.info(name + \"_mean_rate\", EMPTY_STRING), convertRate(meanRate));\n builder.addGauge(Interns.info(name + \"_1min_rate\", EMPTY_STRING), convertRate(oneMinuteRate));\n builder.addGauge(Interns.info(name + \"_5min_rate\", EMPTY_STRING), convertRate(fiveMinuteRate));\n builder.addGauge(Interns.info(name + \"_15min_rate\", EMPTY_STRING),\n convertRate(fifteenMinuteRate));\n }",
"public static void recordMetricEvent(String arg0) {\n seTimeStamps();\n String serviceName = MDC.get(MDC_SERVICE_NAME);\n metricsLogger.info(MessageCodes.RULE_METRICS_INFO, serviceName, arg0);\n }",
"public BasicServerMetricsListener() {\n myServerMetrics = new ConcurrentHashMap<String, BasicServerMetrics>();\n }",
"public void counter(MetricCounter<Long> metric, long value);",
"public synchronized boolean add(final MetricName metricName, final MeasurableStat stat, final MetricConfig config) {\n if (hasExpired()) {\n return false;\n } else if (metrics.containsKey(metricName)) {\n return true;\n } else {\n final MetricConfig statConfig = config == null ? this.config : config;\n final KafkaMetric metric = new KafkaMetric(\n metricLock(),\n Objects.requireNonNull(metricName),\n Objects.requireNonNull(stat),\n statConfig,\n time\n );\n KafkaMetric existingMetric = registry.registerMetric(metric);\n if (existingMetric != null) {\n throw new IllegalArgumentException(\"A metric named '\" + metricName + \"' already exists, can't register another one.\");\n }\n metrics.put(metric.metricName(), metric);\n stats.add(new StatAndConfig(Objects.requireNonNull(stat), metric::config));\n return true;\n }\n }",
"public static void metrics(String arg0) {\n seTimeStamps();\n MDC.put(INVOCATION_ID, MDC.get(MDC_KEY_REQUEST_ID));\n MDC.put(RESPONSE_CODE, \"0\");\n String serviceName = MDC.get(MDC_SERVICE_NAME);\n metricsLogger.info(MessageCodes.RULE_METRICS_INFO, serviceName, arg0);\n }",
"<W extends V> void addMeasurement(DataCache<K, W> cache, K key, W value);",
"private void fillMonitorsMetricsMap() {\n\t\tmonitorsMetricsMap=new HashMap<>();\n\t\tmonitorsMetricsMap.put(\"RR<sub>TOT</sub>\", new String[] {rosetta.MDC_RESP_RATE.VALUE, \"MDC_DIM_RESP_PER_MIN\"});\n\t\tmonitorsMetricsMap.put(\"EtCO<sub>2</sub>\", new String[] {rosetta.MDC_AWAY_CO2_ET.VALUE, rosetta.MDC_DIM_MMHG.VALUE});\n\t\tmonitorsMetricsMap.put(\"P<sub>PEAK</sub>\", new String[] {rosetta.MDC_PRESS_AWAY_INSP_PEAK.VALUE, rosetta.MDC_DIM_CM_H2O.VALUE});\n\t\tmonitorsMetricsMap.put(\"P<sub>PLAT</sub>\", new String[] {rosetta.MDC_PRESS_RESP_PLAT.VALUE, rosetta.MDC_DIM_CM_H2O.VALUE});\n\t\tmonitorsMetricsMap.put(\"PEEP\", new String[] {\"ICE_PEEP\", rosetta.MDC_DIM_CM_H2O.VALUE});\t//TODO: Confirm there is no MDC_ for PEEP\n\t\tmonitorsMetricsMap.put(\"FiO<sub>2</sub>%\", new String[] {\"ICE_FIO2\", rosetta.MDC_DIM_PERCENT.VALUE});\t//TODO: Confirm there is no MDC_ for FiO2\n\t\tmonitorsMetricsMap.put(\"Leak %\", new String[] {rosetta.MDC_VENT_VOL_LEAK.VALUE, rosetta.MDC_DIM_PERCENT.VALUE});\t//TODO: Confirm there is no MDC_ for FiO2\n\t\t\n\t\t//Leak %\n\t}",
"void prepare(Map<String, Object> config, StormMetricsRegistry metricsRegistry) throws MetricException;",
"public static void collectMetric(String key)\n {\n if (ourToolbox != null && QuantifyToolboxUtils.getQuantifyToolbox(ourToolbox) != null)\n {\n QuantifyToolboxUtils.getQuantifyToolbox(ourToolbox).getQuantifyService().collectMetric(key);\n }\n }",
"private void addNodeMeanResponseTime(Map<String, Map<String, Long>> nodeMeanResponseTimes,\n String nodeName, String key, long value) {\n // TODO: this whole method can probably go away\n if (!nodeMeanResponseTimes.containsKey(nodeName)) {\n nodeMeanResponseTimes.put(nodeName, new HashMap<String, Long>());\n }\n\n nodeMeanResponseTimes.get(nodeName).put(key, value);\n }",
"void deregisterDynamicMetricsProvider(DynamicMetricsProvider metricsProvider);",
"@Override\r\n public void increment(String metricId, int incrementValue) {\r\n route(metricId, metricAggregator -> metricAggregator.increment(resolve(metricId), incrementValue));\r\n }",
"private void startMonitoring() {\n executors.startMetrics(monitoring);\n reporter = JmxReporter.forRegistry(monitoring).inDomain(getJmxDomain()).build();\n reporter.start();\n }",
"Metrics getMetrics();",
"@Override\n public void dump(BiConsumer<String, Object> sink) {\n sampleGauges();\n Enumeration<Collector.MetricFamilySamples> samplesFamilies = collectorRegistry.metricFamilySamples();\n while (samplesFamilies.hasMoreElements()) {\n Collector.MetricFamilySamples samples = samplesFamilies.nextElement();\n samples.samples.forEach(sample -> {\n String key = buildKeyForDump(sample);\n sink.accept(key, sample.value);\n });\n }\n }",
"public void addConsumer(UserSessionConsumer consumer, ChannelKey key) {}",
"@Override\n public void configure(Map<String, ?> config) {\n KafkaSpanDecorator customDecorator = \n (KafkaSpanDecorator)config.get(\"kafka.producer.decorator\");\n \n if (customDecorator != null) {\n decorators.add(customDecorator);\n }\n }",
"public void setMetric(String metric) {\n this.metric = metric;\n }",
"public void setMetric(String metric) {\n this.metric = metric;\n }",
"@Override\n public Metrics getMetrics() {\n throw new UnsupportedOperationException(\"Metrics are not not supported in Spark yet\");\n }",
"public static synchronized void writeMetricsToFile(String request) { \n\n Metric metric = getMetricByThread();\n BufferedWriter outputMetrics = null;\n try {\n FileWriter fstream = new FileWriter(cnvProject + \"/\" + metricsOutputFile, true); //true tells to append data.\n outputMetrics = new BufferedWriter(fstream);\n outputMetrics.write(metric.toString());\n outputMetrics.close();\n metric.resetMetrics();\n System.out.println(\"> [BIT]: Stored metrics in: \" + cnvProject + \"/\" + metricsOutputFile);\n return;\n }\n catch (Exception e) {\n System.out.println(\"> [BIT]: \" + e.getMessage());\n }\n }",
"public interface MetricsService {\n\n /**\n * Get metrics data\n * @param request\n * @return\n */\n GetMetricsResponse getMetrics(GetMetricsRequest request);\n\n /**\n * Create metrics\n * @param request\n * @return\n */\n CreateMetricsResponse createMetrics(CreateMetricsRequest request);\n}",
"com.google.dataflow.v1beta3.MetricUpdateOrBuilder getMetricsOrBuilder(int index);",
"void addLogToBatch(TelemetryData log) throws IOException;",
"public void initMetrics(MeterRegistry meterRegistry) {\n String metricName = String.join(\".\", \"pap\", \"policy\", \"deployments\");\n String description = \"Timer for HTTP request to deploy/undeploy a policy\";\n undeploySuccessTimer = Timer.builder(metricName).description(description)\n .tags(PrometheusUtils.OPERATION_METRIC_LABEL, PrometheusUtils.UNDEPLOY_OPERATION,\n PrometheusUtils.STATUS_METRIC_LABEL, PdpPolicyStatus.State.SUCCESS.name())\n .register(meterRegistry);\n undeployFailureTimer = Timer.builder(metricName).description(description)\n .tags(PrometheusUtils.OPERATION_METRIC_LABEL, PrometheusUtils.UNDEPLOY_OPERATION,\n PrometheusUtils.STATUS_METRIC_LABEL, PdpPolicyStatus.State.FAILURE.name())\n .register(meterRegistry);\n }",
"private void addTopic(TopicMapIF tm, TMObjectMatcherIF matcher,\n Collection topics) {\n if (matcher instanceof TypeSpecification) {\n TypeSpecification m = (TypeSpecification) matcher;\n TopicIF type = getTopic(tm, m.getClassMatcher());\n if (type != null) {\n ClassInstanceIndexIF typeIndex = (ClassInstanceIndexIF)\n tm.getIndex(\"net.ontopia.topicmaps.core.index.ClassInstanceIndexIF\");\n topics.addAll(typeIndex.getTopics(type));\n }\n \n } else {\n TopicIF topic = getTopic(tm, matcher);\n if (topic != null)\n topics.add(topic);\n }\n }",
"@Override\n void record(StatsContext tags, MeasureMap measurementValues) {\n statsManager.record((StatsContextImpl) tags, measurementValues);\n }",
"protected final void registerMeasure(String inId) {\r\n\t\tmeasureIds.add(inId);\r\n\t}",
"public abstract CustomMetric[] getCustomMetrics();",
"private void addSnapshot(MetricsRecordBuilder builder, String name, String desc,\n Snapshot snapshot, long count) {\n builder.addGauge(Interns.info(name + \"_count\", desc), count);\n addSnapshot(builder, name, desc, snapshot);\n }",
"java.util.Map<java.lang.String, java.lang.Long> getYarnMetricsMap();",
"public static void metrics(Object arg0) {\n seTimeStamps();\n MDC.put(INVOCATION_ID, MDC.get(MDC_KEY_REQUEST_ID));\n MDC.put(RESPONSE_CODE, \"0\");\n MDC.put(classNameProp, \"\");\n String serviceName = MDC.get(MDC_SERVICE_NAME);\n metricsLogger.info(MessageCodes.RULE_METRICS_INFO, serviceName, \"\" + arg0);\n }",
"public MetricBatch build() {\n Attributes attributes = commonAttributesBuilder.build();\n return new MetricBatch(metrics, attributes);\n }",
"public void setMetrics(boolean metrics) {\n\tthis.metrics = metrics;\n\tlog(\"Metrics mode is \" + metrics);\n }",
"@CrossOrigin(origins=\"http://localhost:8080\")\n @KafkaListener(topics = \"sensor_data\")\n public void listen(ConsumerRecord<?, ?> cr){\n log.info(\"Message received from {}: {} .\", cr.key(), cr.value());\n \n JSONParser parser = new JSONParser();\n try {\n JSONObject jsonMessage = (JSONObject) parser.parse(cr.value().toString());\n\n // create response with sensor id, timestamp and readed value\n JSONObject jsonResponse = new JSONObject();\n jsonResponse.put(\"id\", cr.key());\n jsonResponse.put(\"timestamp\", (String) jsonMessage.get(\"timestamp\"));\n jsonResponse.put(\"value\", (String) jsonMessage.get(\"value\")); \n \n this.simpTemplate.convertAndSend(\"/topic/sensors\", jsonResponse.toString());\n log.info(\"Message sent to the websockets.\");\n } catch (ParseException ex) {\n log.error(\"Could not parse the message received from the sensor \" + cr.key()+\": \"+cr.value());\n }\n }",
"public JavaRDD<MetricDto> readMetrics() {\n Date windowStartTime = DateUtil.getWindowStartTime();\n Date windowEndTime = DateUtil.getWindowEndTime();\n return CassandraJavaUtil.javaFunctions(sparkContext)\n .cassandraTable(\"hw2\", \"metric\", CassandraJavaUtil.mapRowTo(MetricDto.class))\n //Select only log message time and priority\n .select(\"id\", \"time\", \"value\")\n .where(\"time >= ? and time <= ?\", windowStartTime, windowEndTime);\n }",
"void before(@Observes BeforeBeanDiscovery discovery) {\n // Register beans manually\n discovery.addAnnotatedType(JsonWebTokenProducer.class, \"TokenProducer\");\n }",
"public void setMetricsListener(MetricsListener metricsListener) {\n mMetricsListener = metricsListener;\n }",
"public void setMetrics(int index, String value) {\n value.getClass();\n ensureMetricsIsMutable();\n this.metrics_.set(index, value);\n }"
]
| [
"0.64697886",
"0.63651186",
"0.61719173",
"0.5976327",
"0.5872696",
"0.586909",
"0.5807331",
"0.5770428",
"0.5680989",
"0.5592942",
"0.5505907",
"0.54955304",
"0.5490527",
"0.54706836",
"0.5365714",
"0.531026",
"0.5306391",
"0.5236348",
"0.523099",
"0.522813",
"0.51941144",
"0.51795083",
"0.5170558",
"0.5147489",
"0.5092466",
"0.509005",
"0.50813025",
"0.5032439",
"0.50217336",
"0.49796674",
"0.49420652",
"0.49338818",
"0.49079433",
"0.4896379",
"0.4874786",
"0.48666787",
"0.4866134",
"0.48553416",
"0.48432976",
"0.4840987",
"0.483921",
"0.48174083",
"0.48001438",
"0.47952446",
"0.4789042",
"0.47756946",
"0.47729945",
"0.4767548",
"0.4757488",
"0.47569305",
"0.4754089",
"0.47169366",
"0.47112826",
"0.4711094",
"0.4710224",
"0.4709447",
"0.46954313",
"0.4694153",
"0.46811298",
"0.4659812",
"0.464634",
"0.4628062",
"0.4609575",
"0.4608839",
"0.4598357",
"0.45981732",
"0.45947742",
"0.45942366",
"0.45882997",
"0.4577032",
"0.4576069",
"0.4573576",
"0.45661157",
"0.45585427",
"0.45512092",
"0.4522328",
"0.45206434",
"0.45020518",
"0.44993675",
"0.44993675",
"0.4495566",
"0.44907025",
"0.4482657",
"0.44667503",
"0.445406",
"0.44282517",
"0.44228974",
"0.44149762",
"0.441476",
"0.43994653",
"0.43971157",
"0.4391919",
"0.43824732",
"0.4377172",
"0.43763354",
"0.43614715",
"0.43605167",
"0.43581426",
"0.43522638",
"0.4345004"
]
| 0.7727195 | 0 |
Note: this consumer is used to consume internal topics | @Override
public Consumer<byte[], byte[]> getRestoreConsumer(Map<String, Object> config) {
consumersRestored.inc();
return new KafkaConsumer<>(config, new ByteArrayDeserializer(), new ByteArrayDeserializer());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public synchronized Future<RpcResult<Void>> readTopic(ReadTopicInput input) {\n String topicId = input.getTopicId().getValue();\n // if requested TopicId has not been requested before then it is added into to register\n if (registeredTopic.contains(topicId) == false) {\n registeredTopic.add(topicId);\n LOG.info(\"UserAgent start read notification with TopicId {}\", topicId);\n }\n return immediateFuture(RpcResultBuilder.success((Void) null).build());\n }",
"@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }",
"private void startConsumeMsg() {\n try {\n ConsumerRecords<byte[], byte[]> records;\n while (true) {\n records = kafkaConsumer.poll(Long.MAX_VALUE);\n for (ConsumerRecord<byte[], byte[]> record : records) {\n processMsg(record);\n kafkaConsumer.commitSync();\n LOG.info(\"Single consumer consume the message {}th\", counter.incrementAndGet());\n }\n\n }\n } catch (Exception ex) {\n LOG.error(\"Consumer get message error {}\", ex);\n } finally {\n LOG.info(\"Shutting down consumer ...\");\n shutdown();\n }\n }",
"public synchronized void consume() {\n\t\t// We only want one consumer thread running...\n\t\tif (consumerThread == null) {\n\t\t\tconsumerThread = new ConsumerThread();\n\t\t\t(new Thread(consumerThread)).start();\n\t\t}\n\t}",
"Consumer getConsumer();",
"@Override\n\t\t\t\tpublic void onPublish(UTF8Buffer topicmsg, Buffer msg, Runnable ack) {\n\t\t\t\t\tString topic = topicmsg.utf8().toString();\n\t\t\t\t\tString payload = msg.utf8().toString();\n\t\t\t\t\tSystem.out.println(topic);\n\t\t\t\t\tSystem.out.println(payload);\n\t\t\t\t\t// 表示监听成功\n\t\t\t\t\tack.run();\n\t\t\t\t}",
"private void requestSubscribe(LinkedHashMap<String, RequestedQoS> topics) {\n if (topics.isEmpty() || this.client == null || !this.client.isConnected()) {\n // nothing to do\n return;\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Request Subscribe to: \" + topics);\n }\n\n this.client\n .subscribe(topics.entrySet()\n .stream().collect(Collectors.toMap(\n Map.Entry::getKey,\n e -> e.getValue().toInteger())))\n .onComplete(result -> subscribeSent(result, topics));\n }",
"public void startPolling() {\n\t\tThread poller = new Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tif (consumerTopics.isEmpty()) {\n\t\t\t\t\t\tthrow new Exception(DomainLocalizer.instance().getErrorString(\"kafka.no.consumer.topics\"));\n\t\t\t\t\t}\n\n\t\t\t\t\t// subscribe to topics\n\t\t\t\t\tconsumer.subscribe(consumerTopics);\n\n\t\t\t\t\t// print the topic name\n\t\t\t\t\tconsumerTopics.forEach(topic -> logger\n\t\t\t\t\t\t\t.info(\"Subscribed to topic \" + topic + \", polling at \" + pollingInterval + \" msec\"));\n\n\t\t\t\t\t// polling loop\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t// collection of records\n\t\t\t\t\t\tConsumerRecords<String, String> records = consumer.poll(Duration.ofMillis(pollingInterval));\n\n\t\t\t\t\t\trecords.forEach(consumerRecord -> {\n\t\t\t\t\t\t\tif (listener != null) {\n\t\t\t\t\t\t\t\t// serialize to ApplicationMessage\n\t\t\t\t\t\t\t\tString json = consumerRecord.value();\n\n\t\t\t\t\t\t\t\tif (logger.isInfoEnabled()) {\n\t\t\t\t\t\t\t\t\tlogger.info(\"Received message: \\n\" + json);\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tApplicationMessage appMessage = null;\n\n\t\t\t\t\t\t\t\tif (json.contains(MessageType.EQUIPMENT_EVENT.name())) {\n\t\t\t\t\t\t\t\t\t// equipment event\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.EQUIPMENT_EVENT, json);\n\t\t\t\t\t\t\t\t} else if (json.contains(MessageType.COMMAND.name())) {\n\t\t\t\t\t\t\t\t\t// command\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.COMMAND, json);\n\t\t\t\t\t\t\t\t} else if (json.contains(MessageType.STATUS.name())) {\n\t\t\t\t\t\t\t\t\t// command\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.STATUS, json);\n\t\t\t\t\t\t\t\t} else if (json.contains(MessageType.NOTIFICATION.name())) {\n\t\t\t\t\t\t\t\t\t// command\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.NOTIFICATION, json);\n\t\t\t\t\t\t\t\t} else if (json.contains(MessageType.RESOLVED_EVENT.name())) {\n\t\t\t\t\t\t\t\t\t// command\n\t\t\t\t\t\t\t\t\tappMessage = deserialize(MessageType.RESOLVED_EVENT, json);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlogger.error(\"Unable to handle message!\");\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tlistener.onKafkaMessage(appMessage);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t\t// commits the records assuming that the listeners are\n\t\t\t\t\t\t// successful in handling the messages\n\t\t\t\t\t\tconsumer.commitAsync();\n\t\t\t\t\t}\n\t\t\t\t} catch (WakeupException e) {\n\t\t\t\t\t// expected\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"Unexpected error\", e);\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (consumer != null) {\n\t\t\t\t\t\t\tconsumer.commitSync();\n\t\t\t\t\t\t}\n\t\t\t\t\t} finally {\n\t\t\t\t\t\tif (logger.isInfoEnabled()) {\n\t\t\t\t\t\t\tlogger.info(\"Stopped polling\");\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\tpoller.start();\n\t}",
"@Override\n\tpublic void handleConsumeOk(String consumerTag) {\n\t\t\n\t}",
"public void consumeNotifications() {\n\t\tif (!consumerTopics.contains(NOTIFICATION_TOPIC)) {\n\t\t\tconsumerTopics.add(NOTIFICATION_TOPIC);\n\t\t}\n\n\t\tif (logger.isInfoEnabled()) {\n\t\t\tlogger.info(\"Consuming notification messages\");\n\t\t}\n\n\t\tstartPolling();\n\t}",
"private static void startConsumer() throws Exception {\n\t\tProperties jndiProps = new Properties();\n\t\tjndiProps.put(\"java.naming.factory.initial\", \"com.sun.jndi.fscontext.RefFSContextFactory\");\n\t\tjndiProps.put(\"java.naming.provider.url\", \"file:///C:/Temp\");\n\t\t\n\t\tInitialContext ctx = null;\n\t\n\t\tctx = new InitialContext(jndiProps);\n\t\tcom.sun.messaging.ConnectionFactory tcf = (com.sun.messaging.ConnectionFactory) ctx.lookup(\"Factory\");\n\t Topic topic = (com.sun.messaging.Topic) ctx.lookup(\"uav topic\");\n\t TopicConnection conn = (TopicConnection) tcf.createTopicConnection();\n\t Session session = (Session) conn.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t \n\t MessageConsumer consumer = session.createConsumer(topic);\n\t conn.start();\n\n Message msg = consumer.receive();\n\n if (msg instanceof TextMessageImpl) {\n TextMessage txtMsg = (TextMessage) msg;\n System.out.println(\"\\n===Read Message:===\" + txtMsg.toString());\n }\n \n //Close the session and connection resources.\n session.close();\n conn.close();\n\t \n\t}",
"@Override\n public Subscription addConsumer(ConnectionContext context,\n final ConsumerInfo info) throws Exception {\n if (++consumerCount == maxConsumers + (watchTopicAdvisories ? 1:0)) {\n context.setDontSendReponse(true);\n Executors.newSingleThreadExecutor().execute(new Runnable() {\n public void run() {\n LOG.info(\"Stopping broker on consumer: \" + info.getConsumerId());\n try {\n broker.stop();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n }\n return super.addConsumer(context, info);\n }",
"public void run() {\n\t\tLOG.info(\"consumer thread started for topic: \" + topic + \" partition: \" + partition);\n\t\tSimpleConsumer consumer = getConsumer(leadBroker);\n\t\tlong readOffset = getLastOffset(consumer, topic, partition, kafka.api.OffsetRequest.EarliestTime(),\n\t\t\t\tclientName);\n\n\t\tint numErrors = 0;\n\t\twhile (!shutdown) {\n\t\t\tif (consumer == null) {\n\t\t\t\tconsumer = getConsumer(leadBroker);\n\t\t\t}\n\t\t\tFetchRequest req = new FetchRequestBuilder().clientId(clientName)\n\t\t\t\t\t.addFetch(topic, partition, readOffset, timeOut).build();\n\t\t\tFetchResponse fetchResponse = consumer.fetch(req);\n\n\t\t\tif (fetchResponse.hasError()) {\n\t\t\t\tnumErrors++;\n\t\t\t\t// Something went wrong!\n\t\t\t\tshort code = fetchResponse.errorCode(topic, partition);\n\t\t\t\tLOG.warn(\"Error fetching data from the Broker:\" + leadBroker + \" Reason: \" + code);\n\t\t\t\tif (numErrors > 5) //TODO: do i want this?? maybe throw up\n\t\t\t\t\tbreak;\n\t\t\t\tif (code == ErrorMapping.OffsetOutOfRangeCode()) {\n\t\t\t\t\t// We asked for an invalid offset. For simple case ask for\n\t\t\t\t\t// the last element to reset\n\t\t\t\t\treadOffset = getLastOffset(consumer, topic, partition, kafka.api.OffsetRequest.LatestTime(),\n\t\t\t\t\t\t\tclientName);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tconsumer.close();\n\t\t\t\tconsumer = null;\n\t\t\t\tleadBroker = findNewLeader(leadBroker, topic, partition);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tnumErrors = 0;\n\n\t\t\tlong numRead = 0;\n\t\t\tfor (MessageAndOffset messageAndOffset : fetchResponse.messageSet(topic,partition)) {\n\t\t\t\tlong currentOffset = messageAndOffset.offset();\n\t\t\t\tif (currentOffset < readOffset) {\n\t\t\t\t\tLOG.info(\"Found an old offset: \" + currentOffset + \" Expecting: \" + readOffset);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\treadOffset = messageAndOffset.nextOffset();\n\t\t\t\ttry {\n\t\t\t\t\tLOG.debug(\"##################### received a message! on topic: \" + topic + \" partition \" + partition);\n\t\t\t\t\tmessages.put(new Message<String, String>(\n\t\t\t\t\t\t\tconvertBytesToString(messageAndOffset.message().key()),\n\t\t\t\t\t\t\tconvertBytesToString(messageAndOffset.message().payload())));\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\tLOG.error(\"message failure to decode bytes into UTF-8 format.\",e);\n\t\t\t\t\tthrow new RuntimeException(\"Cannot decode the messages into UTF-8 format\",e);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tLOG.error(\"interupted waiting to add to the queue\",e);\n\t\t\t\t\tthrow new RuntimeException(\"Cannot add to my own queue\");\n\t\t\t\t}\n\t\t\t\tnumRead++;\n\t\t\t}\n\n\t\t\tif (numRead == 0) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t} catch (InterruptedException ie) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (consumer != null)\n\t\t\tconsumer.close();\n\t\tLOG.info(\"shutdown complete\");\n\t}",
"public void onPublish(UTF8Buffer topic, Buffer payload, Runnable ack) {\n\t\t ack.run();\r\n\t\t System.out.println(\"topic\"+topic.toString()+\"=\"+new String(payload.getData()));\r\n\t\t }",
"@Override\r\n\tpublic void updateConsumer(Consumer con) {\n\r\n\t}",
"private void subscribeMqttTopic(String t){\n\n String topic = \"secureIoT\" + t;\n\n int qos = 1;\n try {\n IMqttToken subToken = mqttClient.subscribe(topic, qos);\n subToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n // subscription successful\n\n mqttClient.setCallback(new MqttCallback() {\n @Override\n public void connectionLost(Throwable cause) {\n Log.d(LOG_TAG, \"Connection Lost\");\n }\n\n @Override\n public void messageArrived(String topic, MqttMessage message) throws Exception {\n\n Log.d(LOG_TAG, message.toString());\n handleMessage(message);\n }\n\n @Override\n public void deliveryComplete(IMqttDeliveryToken token) {\n Log.d(LOG_TAG, \"Delivery Complete\");\n }\n });\n\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken,\n Throwable exception) {\n // The subscription could not be performed, maybe the user was not\n // authorized to subscribe on the specified topic e.g. using wildcards\n }\n\n\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n\n }",
"public interface Consumer {\n\n public void createKafkaConsumer() throws Exception;\n\n public void subscribe(String... topic) throws Exception;\n\n\n public Object poll(long timeout);\n\n public void commitSync();\n\n public void close();\n\n}",
"public void listSubscribedTopics() {\r\n for (Topic topic : subscriberTopics){\r\n System.out.print(topic);\r\n }\r\n }",
"public void init() {\n initiateConfig();\n initiateKafkaStuffs();\n log.info(\"Kafka consumer and producer for topic [{}] started.\", topic);\n\n service.submit(() -> {\n while (true) {\n try {\n ConsumerRecords<String, byte[]> records = consumer.poll(3000);\n for (ConsumerRecord<String, byte[]> record : records) {\n log.info(\"Reveive kafka message from topic [{}] with key [{}]\", topic, record.key());\n repository.get(record.key()).offer(record.value());\n accounter.incrementAndGet();\n }\n while (accounter.get() != 0) {\n Thread.sleep(5);\n }\n consumer.commitSync();\n } catch (Exception e) {\n log.warn(\"Something wrong happened during message pulling process\", e);\n consumer.close();\n consumer = null;\n initiateConsumer();\n }\n }\n });\n }",
"private void consumeImpl(Consumer<String, String> messageReader) {\n int pollTimeout = environment.getProperty(\"app.kafka.pull.timeout\", Integer.class);\n long timeoutNoMessages = environment.getProperty(\"app.kafka.timeout.no.messages\", Long.class);\n\n long timeoutNoMessagesMark = System.currentTimeMillis();\n while (true) {\n ConsumerRecords<String, String> records = messageReader.poll(pollTimeout);\n\n if (records.count() == 0) {\n if ((timeoutNoMessagesMark + timeoutNoMessages) < System.currentTimeMillis()) {\n LOG.debug(\"Timeout after \" + timeoutNoMessages + \" milliseconds, terminating.\");\n break;\n }\n\n continue;\n }\n\n timeoutNoMessagesMark = System.currentTimeMillis();\n\n for (ConsumerRecord<String, String> record : records) {\n ++totalConsumed;\n\n consumeRecord(record);\n }\n }\n }",
"public GeneralConsumer() {\n // Kafka consumer configuration settings\n Properties props = new Properties();\n\n// props.put(ConsumerConfig.BOOTSTRAP_SERVERS_CONFIG, IKafkaConstants.KAFKA_BROKERS);\n// props.put(ConsumerConfig.GROUP_ID_CONFIG, IKafkaConstants.GROUP_ID_CONFIG);\n// props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG, LongDeserializer.class.getName());\n// props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG, StringDeserializer.class.getName());\n props.put(ConsumerConfig.MAX_POLL_RECORDS_CONFIG, 1000);\n props.put(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, \"false\");\n props.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, \"earliest\");\n// Consumer<Long, String> consumer = new KafkaConsumer<>(props);\n// consumer.subscribe(Collections.singletonList(IKafkaConstants.TOPIC_NAME));\n\n// props.put(AdminClientConfig.BOOTSTRAP_SERVERS_CONFIG, \"localhost:9092\");\n\n props.put(\"bootstrap.servers\", BOOTSTRAP_SERVERS);\n// props.put(\"acks\", \"all\");\n// props.put(\"retries\", 1);\n props.put(\"group.id\", \"dd\");\n// props.put(\"enable.auto.commit\", \"true\");\n// props.put(\"auto.commit.interval.ms\", \"1000\");\n// props.put(\"session.timeout.ms\", \"30000\");\n\n props.put(\"key.deserializer\",\n \"org.apache.kafka.common.serialization.StringDeserializer\");\n// props.put(\"value.deserializer\",\n// \"org.apache.kafka.common.serialization.StringDeserializer\");\n// consumer = new KafkaConsumer\n// <String, String>(props);\n\n props.put(\"value.deserializer\",\n \"org.apache.kafka.common.serialization.ByteArrayDeserializer\");\n consumer = new KafkaConsumer<String, byte[]>(props);\n\n// adminClient = AdminClient.create(props);\n }",
"public String getTopic() {\n return this.topic;\n }",
"@Bean\n Exchange topicExchange() {\n return new TopicExchange(CUSTOMER_TOPIC_EXCHANGE,\n true,\n false,\n Collections.emptyMap());\n }",
"public void subscribeTo(String topicName) {\n consumer.subscribe(Arrays.asList(topicName));\n System.out.println(\"Subscribed to topic \" + topicName);\n }",
"private static Consumer<String, JsonNode> createConsumer() {\n final Properties props = new Properties();\n props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG,\n BOOTSTRAP_SERVERS);\n props.put(ConsumerConfig.CLIENT_ID_CONFIG, \"EventsMultiplexer\");\n props.put(ConsumerConfig.KEY_DESERIALIZER_CLASS_CONFIG,\n StringDeserializer.class.getName());\n props.put(ConsumerConfig.VALUE_DESERIALIZER_CLASS_CONFIG,\n JsonDeserializer.class.getName());\n props.put(ConsumerConfig.GROUP_ID_CONFIG, \"MainGroup\");\n return new KafkaConsumer<>(props);\n }",
"public void subscribe(List<String> topics, String groupId) {\n final KafkaConsumer<String, String> consumer = this.fetchConsumer(groupId);\n // Subscribe to the topic.\n //logger.info(\"creating topic\");\n //createTopic(props, topics, consumer);\n createTopic(topics, groupId);\n logger.info(\"start sub\");\n consumerSubscribe(consumer, topics);\n }",
"private void consume()\r\n\t{\r\n\t\twhile (true)\r\n\t\t{\r\n\t\t\tSubscriberMessage sifMsg = queue.blockingPull();\t\t\t\t\r\n\t\t\tif (sifMsg != null)\r\n\t\t\t{\r\n\t\t\t\tlogger.debug(consumerID+\" has receive a message from its SubscriberQueue.\");\r\n\t\t\t\tif (sifMsg.isEvent())\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFEvent sifEvent = new SIFEvent(sifMsg.getSIFObject(), sifMsg.getEventAction());\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processEvent(sifEvent, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Event for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nEvent Data:\\n\"+sifEvent, ex);\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSIFDataObject sifObj = sifMsg.getSIFObject();\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tsubscriber.processResponse(sifObj, sifMsg.getZone(), sifMsg.getMappingInfo(), consumerID);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception ex)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tlogger.error(\"Failed processing SIF Object for subscriber \"+subscriber.getId()+\": \"+ex.getMessage()+\"\\nSIF Object Data:\\n\"+((sifObj == null) ? \"null\" : sifObj.toXML()), ex);\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\telse\r\n\t\t\t{\r\n\t\t\t\tlogger.error(consumerID+\" has encountered a problem receiving a message from its SubscriberQueue.\");\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"@Override\r\n public void update() {\n String msg = (String) topic.getUpdate(this);\r\n\t\tif(msg == null){\r\n\t\t\tSystem.out.println(name+\":: No new message\");\r\n\t\t}else{\r\n card.show(this.getContentPane(), msg);\r\n }\r\n System.out.println(name+\":: Consuming message::\"+msg);\r\n \r\n }",
"public FlinkConsumerFromKafkaUtil(){\n env = StreamExecutionEnvironment.getExecutionEnvironment();\n }",
"ConsumerGroups consumerGroups();",
"private Subscriber subscribeMessages(String username, String topic) {\n Subscriber subscriber = new Subscriber(topic, username)\n .setNewMessageListener(new SubscribedTopicListener() {\n @Override\n public void onReceive(DataTransfer message) {\n onReceiveNewMessage(topic, message);\n }\n });\n subscriber.listen();\n return subscriber;\n }",
"@Override\n public ConsumerNode getConsumer(){\n return super.getConsumer();\n }",
"PartnerTopicReadinessState partnerTopicReadinessState();",
"@Override\n\t\t\tpublic void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\t\t\tSystem.out.println(\"接收消息主题 : \" + topic);\n\t\t\t\tSystem.out.println(\"接收消息Qos : \" + message.getQos());\n\t\t\t\tSystem.out.println(\"接收消息内容 : \" + message.toString());\n\t\t\t\tjas.decry(message.toString());\n\t\t\t}",
"public void setTopic( String topic ) {\n this.topic = topic;\n }",
"public Subscriber(){\n\t\tString topic;\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tSystem.out.println(\"Enter the message topic u want to search\");\n\t\t\ttopic=br.readLine();\n\t\t\tMsgRepository repo=new MsgRepository();\n\t\t\trepo.search(topic);\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void start(MessageConsumer<K, S> consumer, String... inputTopics) {\n logger.info(\"Subscribing to {}\", Arrays.asList(inputTopics).toString());\n\n Executors.newSingleThreadExecutor().submit(new Runnable() {\n @Override\n public void run() {\n consumer.subscribe(inputTopics);\n }\n });\n }",
"@PostConstruct\n\tprivate void init() throws Exception {\n\t\tamazonSNSClient.listTopics();\n\t}",
"@Override\n\tpublic List<TopicSummary> getSubTopics(String topic) {\n\t\treturn null;\n\t}",
"public Topic getTopic() {\n return topic;\n }",
"public AbstractReceiverRest(String subscribeEndpoint, String topicsEndpoint) {\n \t\tclient = ClientBuilder.newClient();\n \t\tsubscriptionsTarget = client.target(subscribeEndpoint);\n \t\ttopicsTarget = client.target(topicsEndpoint);\n \t}",
"public Topic readTopic(int topicId);",
"private void subscribeTopics(String token) throws IOException {\n GcmPubSub pubSub = GcmPubSub.getInstance(this);\n for (String topic : TOPICS) {\n pubSub.subscribe(token, \"/topics/\" + topic, null);\n }\n }",
"protected void onTopic(String channel, String topic, String setBy, long date, boolean changed) {}",
"private void subscribeToTopic(String topic) {\n try {\n mqttAndroidClient.subscribe(topic, 0, null, new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n Log.w(\"MQTT\",\"Subscribed!\");\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n Log.w(\"MQTT\", \"Subscribe fail!\");\n }\n });\n } catch (MqttException ex) {\n System.err.println(\"Exception whilst subscribing\");\n ex.printStackTrace();\n }\n }",
"public String getTopic() {\n return topic;\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tconsume();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void messageArrived(String topic, MqttMessage message)\n\t throws Exception {\n\t\t\n\t}",
"private Consumer<Queue> getConsumerPostStart(SolaceConsumerDestination destination,\n\t\t\t\t\t\t\t\t\t\t\t\t ExtendedConsumerProperties<SolaceConsumerProperties> properties) {\n\t\treturn (queue) -> {\n\t\t\tprovisioningProvider.addSubscriptionToQueue(queue, destination.getBindingDestinationName(), properties.getExtension(), true);\n\n\t\t\t//Process additional subscriptions\n\t\t\tfor (String subscription : destination.getAdditionalSubscriptions()) {\n\t\t\t\tprovisioningProvider.addSubscriptionToQueue(queue, subscription, properties.getExtension(), false);\n\t\t\t}\n\t\t};\n\t}",
"@Override\n\tpublic List<TopicSummary> discoverTopics(String query) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\tSystem.out.println(\"-------------------------------------------------\");\r\n\t\tSystem.out.println(\"| Topic:\" + topic);\r\n\t\tSystem.out.println(\"| Message: \" + new String(message.getPayload()));\r\n\t\tSystem.out.println(\"-------------------------------------------------\");\r\n\t}",
"public void setTopic(String topic) {\n this.topic = topic;\n }",
"public MessageConsumer getMessageConsumer() {\n return messageConsumer;\n }",
"@Override\n\t\tpublic void messageArrived(String topic, MqttMessage mqttMessage)\n\t\t\t\tthrows Exception {\n\t\t\tsuper.messageArrived(topic, mqttMessage);\n\n\t\t\tMatcher matcher = pattern.matcher(topic);\n\t\t\tif (matcher.matches()) {\n\t\t\t\tString deviceid = matcher.group(1);\n\t\t\t\tString payload = new String(mqttMessage.getPayload());\n\t\t\t\t\n\t\t\t\t//Parse the payload in Json Format\n\t\t\t\tJSONObject jsonObject = new JSONObject(payload);\n\t\t\t\tJSONObject contObj = jsonObject.getJSONObject(\"d\");\n\t\t\t\tint count = contObj.getInt(\"count\");\n\t\t\t\tSystem.out.println(\"Receive count \" + count + \" from device \"\n\t\t\t\t\t\t+ deviceid);\n\n\t\t\t\t//If count >=4, start a new thread to reset the count\n\t\t\t\tif (count >= 4) {\n\t\t\t\t\tnew ResetCountThread(deviceid, 0).start();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public SubscribingThread(String endpoint, String topic){\n\t\t\tcontext = ZMQ.context(1);\n\t\t\tsubscribeSocket = context.socket(ZMQ.SUB);\n\t\t\tsubscribeSocket.setReceiveTimeOut(2500);//times out after 2.5 seconds of no activity\n\t\t\tif(endpoint.contains(\"*\")){\n\t\t\t\tsubscribeSocket.bind(endpoint);\n\t\t\t}else{\n\t\t\t\tsubscribeSocket.connect(endpoint);\t\n\t\t\t}\n\t\t\tsubscribeSocket.subscribe(topic.getBytes(ZMQ.CHARSET));//subscribe to everything\n\t\t}",
"public void setTopic(Topic topic) {\n this.topic = topic;\n }",
"private void AsyncPush(String topic){\n\t\t\t\t \t\n\t \t/**\n\t \t * output a map, delete existed items\n\t \t */\n\t \t//Map<Key, Integer> deduplicatedBuff = mergeDuplicatedItemsAndDelte(buff);\n\t \t\n\t \t//not in, create, delay\n\t \tif(!producerMap.containsKey(topic)){\n\t \t\ttry {\n\t\t\t\t\t\t\tCreateProducer(topic,LogicController.batchMessagesMaxMessagesPerBatch);\n\t\t\t\t\t\t} catch (InterruptedException 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} catch (ExecutionException 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}\t \t\t \n\t \t}\n\t \tlog.info(\"#publish\"+topic+\", \"+buffMap.size());\n\t \tProducer<byte[]> producer = producerMap.get(topic);\n\t \t/**\n\t \t * init set, copy to hash set\n\t \t */\n\t \t//Set<Key> Keys = Sets.newConcurrentHashSet(buffMap.keySet());\n\t \t\n\t \t \n\t \tfor (Key key : buffMap.keySet()){\n\t \t\t \n\t \t\t //if(buffMap.containsKey(key)){\n\t \t\t \n\t \t\t \n\t \t\t if(buffMap.containsKey(key)){\n\t \t\t\t Integer val = buffMap.get(key);\n\t \t\t\t //clear,skip\n\t \t\t\t if(val<=0){buffMap.remove(key);continue;}\n\t \t\t\t //concenate\n\t \t\t\t byte[] out = createKVByte(key,val);\n\t \t\t\t \n\t \t\t\t//get producer\n\t\t\t \t\t\t \n\t\t\t \t\t\t //byte[] tempTable = new byte[](buffMap);\n\t\t producer.sendAsync(out).thenRun(() -> {\n\t\t\t messagesSent.increment();\n\t\t\t bytesSent.add(out.length);\n\t\t\t //update\n\t\t\t TopicMap.replace(topic, TopicMap.get(topic)+out.length);\t\n\t\t\t \n\t\t\t //delete\n\t\t\t rescaleBufferMap(buffMap,key,val);\n\t\t\t \n\t\t\t //CheckNumberPacketsEnoughEndMessageAndSend(topic);\n\t\t\t //buffMap.remove(key);\n\t\t\t //remove from the set\n\t\t\t //ier.remove();\n\t\t\t \t\t \t\t \n\t\t\t }).exceptionally(ex -> {\n\t\t\t log.warn(\"Write error on message\", ex);\n\t\t\t //System.exit(-1);\n\t\t\t return null;\n\t\t\t });\n\t \t\t }\n\t \t\t }\n\t \t\t \n\t \t }",
"@Override\n\tpublic Response topics() {\n\t\tList<Topic> topics = null;\n\t\ttry {\n\t\t\ttopics = userResourceAccess.getTopicsForUser(getUser());\n\t\t} catch (GovernanceExeption e) {\n\t\t\te.printStackTrace();\n\t\t\treturn error(Status.INTERNAL_SERVER_ERROR, \"Can not get topics\");\n\n\t\t}\n\n\t\tCollection<org.ow2.play.governance.platform.user.api.rest.bean.Topic> out = Collections2\n\t\t\t\t.transform(\n\t\t\t\t\t\ttopics,\n\t\t\t\t\t\tnew Function<Topic, org.ow2.play.governance.platform.user.api.rest.bean.Topic>() {\n\t\t\t\t\t\t\tpublic org.ow2.play.governance.platform.user.api.rest.bean.Topic apply(\n\t\t\t\t\t\t\t\t\tTopic input) {\n\t\t\t\t\t\t\t\torg.ow2.play.governance.platform.user.api.rest.bean.Topic topic = new org.ow2.play.governance.platform.user.api.rest.bean.Topic();\n\t\t\t\t\t\t\t\ttopic.name = input.getName();\n\t\t\t\t\t\t\t\ttopic.ns = input.getNs();\n\t\t\t\t\t\t\t\ttopic.prefix = input.getPrefix();\n\t\t\t\t\t\t\t\ttopic.resourceUrl = getResourceURI(input);\n\t\t\t\t\t\t\t\treturn topic;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\n\t\treturn ok(out\n\t\t\t\t.toArray(new org.ow2.play.governance.platform.user.api.rest.bean.Topic[out\n\t\t\t\t\t\t.size()]));\n\t}",
"public void subscribe(final Topic topic) {\r\n new Thread(new Runnable() {\r\n public void run() {\r\n int attempts = 0;\r\n while(++attempts < 20){\r\n try {\r\n if(server.addSubscriber((PubSubAgent.this.agentID), topic)){\r\n subscriberTopics.add(topic);\r\n System.out.print(\"Subscribed.\");\r\n return;\r\n }\r\n } catch (RemoteException e) {\r\n System.err.println(\"Could not connect to server. Retrying...\");\r\n try {\r\n Thread.sleep(1200);\r\n } catch (InterruptedException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }\r\n System.err.println(\"Couldn't subscribe to \" + topic.getTopicID() + \" - \" + topic.getTopicName());\r\n }\r\n }).start();\r\n }",
"public Consumer getConsumer() {\n return consumer;\n }",
"@Override\r\n\tpublic int countTopics() {\n\t\treturn 0;\r\n\t}",
"public interface MessageBroker {\n\n /**\n * Polls for the next message available in the topic of given name.\n * If there are no messages available, the method will block until\n * message becomes available or until timeout is reached, whichever\n * comes first. If timeout is zero, the method returns without\n * blocking.\n *\n * The consumed messages should be acknowledged once they were\n * successfully processed.\n *\n * @param topicName Name of topic to poll.\n * @param timeout Time to wait for next message in case it is not\n * immediately available.\n *\n * @return Message or null, if there was no message available and\n * timeout expired.\n *\n * @throws IOException When it wasn't possible to communicate with\n * the broker.\n */\n Message poll(String topicName, Duration timeout) throws IOException;\n\n\n /**\n * Marks message with given ID as processed, so that it won't be\n * made visible to other topic consumers ore reprocessed. If message won't be\n * marked as processed before timeout expires, the message will become\n * available for consumption for other consumers.\n *\n * @param topicName The topic of the message.\n * @param partition The partition the message was read from.\n * @param offset The offset of the message within the partition.\n * @throws IOException When it wasn't possible to communicate with\n * * the broker.\n *\n * @see Message#getPartition()\n * @see Message#getOffset()\n */\n void acknowledge(String topicName, int partition, long offset) throws IOException;\n\n /**\n * Publishes the message to another topic.\n *\n * @param topicName The name of the other topic.\n * @param message The message to publish.\n * @throws IOException If there were any problems. The message might not have been published.\n */\n void publish(String topicName, Message message) throws IOException;\n}",
"SourceMessage onNewMessageReceived(PubsubMessage pubsubMessage, AckReplyConsumer ackReplyConsumer);",
"public String[] getTopics() {\n\n try {\n ZooKeeper zk = new ZooKeeper(\"localhost:2181\", 10000, null);\n List<String> topics = zk.getChildren(\"/brokers/topics\", false);\n// for (String topic : topics) {\n// System.out.println(topic);\n// }\n return topics.toArray(new String[0]);\n\n } catch (InterruptedException | KeeperException | IOException e) {\n e.printStackTrace();\n }\n return null;\n\n // Prints the topics to stdout\n // Iterator it = topics.entrySet().iterator();\n // System.out.println(\"Available topics:\");\n // while (it.hasNext()) {\n // Map.Entry entry = (Map.Entry)it.next();\n // System.out.println(\"> \" + entry.getKey());\n // }\n }",
"protected void beforeConsume() {\n // Do nothing\n }",
"@Override\n public void onSuccess(IMqttToken asyncActionToken) {\n String topic = uniqueId+\"/\"+chipid+\"/addCommand\";\n int qos = 1;\n try {\n IMqttToken subToken = client.subscribe(topic, qos);\n subToken.setActionCallback(new IMqttActionListener() {\n @Override\n public void onSuccess(IMqttToken asyncActionToken) {\n MqttCallback mqttCallback = new MqttCallback() {\n\n @Override\n public void connectionLost(Throwable cause) {\n //COMMAND FAIL\n imgCommandPopup.setVisibility(View.INVISIBLE);\n textWaiting.setVisibility(View.INVISIBLE);\n // failed.setVisibility(View.VISIBLE);\n // commandStatus(textCommandPopup,getResources().getString(R.string.command_add_failed),fadePopup,CommandPopup);\n }\n\n @Override\n public void messageArrived(String topic, MqttMessage message) throws Exception {\n espResponse = message.toString();\n // Toast.makeText(TempCom.this, espResponse, Toast.LENGTH_SHORT).show();\n client.disconnect();\n }\n\n @Override\n public void deliveryComplete(IMqttDeliveryToken token) {}\n };\n client.setCallback(mqttCallback);\n }\n\n @Override\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n //COMMAND FAIL\n imgCommandPopup.setVisibility(View.INVISIBLE);\n textWaiting.setVisibility(View.INVISIBLE);\n failed.setVisibility(View.VISIBLE);\n commandStatus(textCommandPopup,getResources().getString(R.string.command_add_failed),fadePopup,CommandPopup);\n }\n });\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }",
"public void run(String topic, int partition) {\n PartitionMetadata metadata = findLeader(seedBrokers, port, topic, partition);\n if (metadata == null) {\n LOGGER.error(\"Can't find metadata for Topic and Partition\");\n return;\n }\n if (metadata.leader() == null) {\n LOGGER.error(\"Can't find Leader for Topic and Partition\");\n return;\n }\n String leadBroker = metadata.leader().host();\n String clientName = \"Client_\" + topic + \"_\" + partition;\n\n SimpleConsumer consumer = new SimpleConsumer(leadBroker, port, 100000, 64 * 1024, clientName);\n\n long readOffset = getLastOffset(consumer, topic, partition, kafka.api.OffsetRequest.EarliestTime(), clientName);\n\n int numErrors = 0;\n while (true) {\n if (consumer == null) {\n consumer = new SimpleConsumer(leadBroker, port, 100000, 64 * 1024, clientName);\n }\n FetchRequest req = new FetchRequestBuilder()\n .clientId(clientName)\n .addFetch(topic, partition, readOffset, 100000) // Note: this fetchSize of 100000 might need to be increased if large batches are written to Kafka\n .build();\n FetchResponse fetchResponse = consumer.fetch(req);\n\n if (fetchResponse.hasError()) {\n numErrors++;\n short code = fetchResponse.errorCode(topic, partition);\n\n LOGGER.error(\"Error fetching data from the Broker:\" + leadBroker + \" Reason: \" + code);\n if (numErrors > 5) break;\n if (code == ErrorMapping.OffsetOutOfRangeCode()) {\n // We asked for an invalid offset. For simple case ask for the last element to reset\n readOffset = getLastOffset(consumer, topic, partition, kafka.api.OffsetRequest.LatestTime(), clientName);\n continue;\n }\n consumer.close();\n consumer = null;\n leadBroker = findNewLeader(leadBroker, topic, partition, port);\n continue;\n }\n numErrors = 0;\n\n long numRead = 0;\n for (MessageAndOffset messageAndOffset : fetchResponse.messageSet(topic, partition)) {\n long currentOffset = messageAndOffset.offset();\n if (currentOffset < readOffset) {\n LOGGER.error(\"Found an old offset: \" + currentOffset + \" Expecting: \" + readOffset);\n continue;\n }\n readOffset = messageAndOffset.nextOffset();\n ByteBuffer payload = messageAndOffset.message().payload();\n\n byte[] bytes = new byte[payload.limit()];\n payload.get(bytes);\n\n handleMessage(messageAndOffset.offset(), bytes);\n numRead++;\n }\n\n if (numRead == 0) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n LOGGER.error(\"Unable to sleep\", e);\n }\n }\n }\n consumer.close();\n }",
"@GetMapping(value = \"/topics\")\n public String getKafkaTopics() {\n return ksqlService.retrieveTopics();\n }",
"Topic getTopic();",
"public String getTopic() {\n return topic;\n }",
"public void subscribe(String[] topics, String inboundPortURI) {\n\n\t}",
"public ByteBufferMessageSet fetchMessages(PartitionMetadata partitionMetadata, String topic, long startOffset) {\n SimpleConsumer consumer = consumerMap.get(partitionMetadata.leader().id());\n ByteBufferMessageSet messageSet = fetchMessages(consumer, topic, partitionMetadata.partitionId(), startOffset);\n// simpleConsumer.close();\n return messageSet;\n }",
"@Override\n public void messageArrived(String topic, MqttMessage msg) throws Exception {\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"| Topic:\" + topic);\n System.out.println(\"| Message: \" + new String(msg.getPayload()));\n System.out.println(\"-------------------------------------------------\");\n\n Integer status = Integer.valueOf(msg.toString());\n\n if(topic.equals(poolController.STATUS_TOPIC))\n {\n /*\n ** Status bits for remote device\n ** Bit Pos.| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |\n ** Device. |Filter|Cleaner|Solar|Spare|Spare|Spare|Spare|Auto/Man|Zone1|Zone2|Zone3|Spare|Spare|Spare|Spare|Auto/Man|\n ** Group. |<====================== Pool =======================>|<================== Irrigation ==================>|\n */\n for(int i=0;i<16;i++)\n {\n switch(i)\n {\n case 7:\n poolCtrl.nAutoMode = getBit(status, i);\n break;\n case 1:\n poolCtrl.nCleaning = getBit(status, i);\n break;\n case 2:\n poolCtrl.nSolar = getBit(status, i);\n break;\n case 0:\n poolCtrl.nFilter = getBit(status, i);\n break;\n case 8:\n poolCtrl.nIrrZone_1 = getBit(status, i);\n break;\n case 9:\n poolCtrl.nIrrZone_2 = getBit(status, i);\n break;\n case 10:\n poolCtrl.nIrrZone_3 = getBit(status, i);\n break;\n case 15:\n poolCtrl.nIrrAutoMode = getBit(status, i);\n break;\n default:\n break; \n }\n }\n }\n\n }",
"public void consume(Connector connector) {\n\n\t}",
"public void run()\r\n {\r\n\t\tconsume();\r\n }",
"private void subscribeHandler(MqttSubscribeMessage subscribe) {\n\n final int messageId = subscribe.messageId();\n LOG.info(\"SUBSCRIBE [{}] from MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n\n // sending AMQP_SUBSCRIBE\n\n List<AmqpTopicSubscription> topicSubscriptions =\n subscribe.topicSubscriptions().stream().map(topicSubscription -> {\n return new AmqpTopicSubscription(topicSubscription.topicName(), topicSubscription.qualityOfService());\n }).collect(Collectors.toList());\n\n AmqpSubscribeMessage amqpSubscribeMessage =\n new AmqpSubscribeMessage(this.mqttEndpoint.clientIdentifier(),\n topicSubscriptions);\n\n this.ssEndpoint.sendSubscribe(amqpSubscribeMessage, done -> {\n\n if (done.succeeded()) {\n\n ProtonDelivery delivery = done.result();\n\n List<MqttQoS> grantedQoSLevels = null;\n if (delivery.getRemoteState() == Accepted.getInstance()) {\n\n // QoS levels requested are granted\n grantedQoSLevels = amqpSubscribeMessage.topicSubscriptions().stream().map(topicSubscription -> {\n return topicSubscription.qos();\n }).collect(Collectors.toList());\n\n // add accepted topic subscriptions to the local collection\n amqpSubscribeMessage.topicSubscriptions().stream().forEach(amqpTopicSubscription -> {\n this.grantedQoSLevels.put(amqpTopicSubscription.topic(), amqpTopicSubscription.qos());\n });\n\n } else {\n\n // failure for all QoS levels requested\n grantedQoSLevels = new ArrayList<>(Collections.nCopies(amqpSubscribeMessage.topicSubscriptions().size(), MqttQoS.FAILURE));\n }\n\n this.mqttEndpoint.subscribeAcknowledge(messageId, grantedQoSLevels);\n\n LOG.info(\"SUBACK [{}] to MQTT client {}\", messageId, this.mqttEndpoint.clientIdentifier());\n }\n });\n }",
"long getTopic();",
"@Override\n\t\t\tpublic void onPartitionsAssigned(Collection<TopicPartition> partitions) {\n\t\t\t\tconsumer.seek(tp0, 123L); //for partition 0, we want to consume starting from offset 123\n\t\t\t\tconsumer.seek(tp1, 54L); //the offset number must be in Long format\n\t\t\t\tconsumer.seek(tp2, 10000L);\n\t\t\t}",
"@Override\n public void configureMessageBroker(MessageBrokerRegistry registry) {\n registry.enableSimpleBroker(\"/topic/\");\n }",
"@Override\n public void updateTopicAccess(String userId, String topicId) {\n\n\t}",
"void acknowledge(String topicName, int partition, long offset) throws IOException;",
"@Override\n\tpublic void publishTopic(Node node) {\n\t\t\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"topic 消息类型开始产生消息 \" + \"生产者: \" + Thread.currentThread().getName());\n\t\t\t\ttry {\n\t\t\t\t\t\t/**第一步 创建连接工厂*/\n\t\t\t\t\t\tfactory = new ActiveMQConnectionFactory(MqConfigConstants.USERNAME, MqConfigConstants.PASSWORD, MqConfigConstants.BROKEURL_ALI);\n\t\t\t\t\t\t/**第二步 创建JMS 连接*/\n\t\t\t\t\t\tConnection connection = factory.createConnection();\n\t\t\t\t\t\tconnection.start();\n\t\t\t\t\t\t/** 第三步 创建Session,开启事务 */\n\t\t\t\t\t\tSession session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n\t\t\t\t\t\t/** 第四步: 创建topic,Topic是 Destination接口的子接口*/\n\t\t\t\t\t\tTopic topic = session.createTopic(MqConfigConstants.TopicName);\n\t\t\t\t\t\t/** 第五步 创建生产者producer */\n\t\t\t\t\t\tMessageProducer producer = session.createProducer(topic);\n\n\t\t\t\t\t\t/** 设置消息不需要持久化 */\n\t\t\t\t\t\tproducer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);\n\t\t\t\t\t\t//发送文本消息\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t/** 第六步 发送消息 */\n\t\t\t\t\t\t\t\tMessage message = createMessage(session,\"vincent\",27,\"江西省赣州市\");\n\t\t\t\t\t\t\t\tproducer.send(message);\n\t\t\t\t\t\t\t\tsession.commit();//开启事务必须需要提交,消费者才能获取到\n\t\t\t\t\t\t\t\tSystem.out.println(\"发送消息: \" +message.toString() );\n\t\t\t\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\t\t}\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}",
"public void topicsAdvertisedByPub() {\r\n int index = 1;\r\n System.out.println(\"Topics advertised by this publisher: \");\r\n for(Topic topic: pubTopics){\r\n System.out.println(index + \"->\" + topic + \"\\n\");\r\n index++;\r\n }\r\n }",
"private void convertTopics() throws Exception {\r\n final File file = new File(TOPICS);\r\n if(!file.exists()) {\r\n Main.outln(\"Could not read \\\"\" + file.getAbsolutePath() + \"\\\"\");\r\n return;\r\n }\r\n \r\n // scan all queries\r\n final FileInputStream fis = new FileInputStream(file);\r\n final InputStreamReader isr = new InputStreamReader(fis, \"UTF8\");\r\n final BufferedReader br = new BufferedReader(isr);\r\n String line = null;\r\n String t = \"\";\r\n String ty = \"\";\r\n \r\n final PrintOutput out = new PrintOutput(QUERIES);\r\n while((line = br.readLine()) != null) {\r\n if(line.indexOf(\"topic ct_no\") > -1) {\r\n // extract topic id\r\n int s0 = line.indexOf('\"');\r\n int s1 = line.indexOf('\"', s0 + 1);\r\n t = line.substring(s0 + 1, s1);\r\n // extract content id\r\n s0 = line.indexOf('\"', s1 + 1);\r\n s1 = line.indexOf('\"', s0 + 1);\r\n //ca = line.substring(s0 + 1, s1);\r\n // extract type\r\n s0 = line.indexOf('\"', s1 + 1);\r\n s1 = line.indexOf('\"', s0 + 1);\r\n ty = line.substring(s0 + 1, s1);\r\n } else if(line.indexOf(\"xpath_title\") > -1) {\r\n // extract query\r\n final int s0 = line.indexOf('/');\r\n final String q = line.substring(s0, line.lastIndexOf('<'));\r\n out.println(t + \";\" + c + \";\" + ty + \";\" + q);\r\n }\r\n }\r\n br.close();\r\n }",
"@Override\n public void messageArrived(String topic, MqttMessage message)\n throws Exception {\n\n String time = new Timestamp(System.currentTimeMillis()).toString();\n\n Log.d(TAG,\"MQTT messageArrived\");\n Log.d(TAG,\"MQTT Time:\\t\" +time +\n \" Topic:\\t\" + topic +\n \" Message:\\t\" + new String(message.getPayload()) +\n \" QoS:\\t\" + message.getQos());\n }",
"public long getTopic() {\n return topic_;\n }",
"public MessageConsumerResources(MessageConsumer messageConsumer) {\n super();\n this.session = null;\n this.messageConsumer = messageConsumer;\n }",
"@Override\n public void messageArrived(String topic, MqttMessage message) {\n if(topic.equals(UserData.topicIn)) {\n String msg = message.toString();\n GuiUpdater.updateConsoleWithResponse(msg);\n }\n }",
"public TopicObject() {\n super();\n }",
"@Override\n public void configureMessageBroker(MessageBrokerRegistry registry) {\n registry.enableSimpleBroker(TOPIC);\n }",
"RequestSender onInform(Consumer<Message> consumer);",
"@RequestMapping(\"/topics\")\r\n\t\r\n\t// Returns all topics created from'TopicService' class\r\n\tpublic List<Topic> getAllTopics() {\r\n\t\treturn topicService.getAllTopics();\r\n\t}",
"@Override\r\n public void initialize() {\n Properties props = new Properties();\r\n props.put(\"bootstrap.servers\", bootstrapServers);\r\n props.put(\"group.id\", groupId);\r\n props.put(\"enable.auto.commit\", \"false\");\r\n props.put(\"key.deserializer\", keyDeserializer);\r\n props.put(\"value.deserializer\", valueDeserializer);\r\n consumer = new KafkaConsumer<>(props);\r\n consumer.subscribe(topics);\r\n while (isCrawling) {\r\n ConsumerRecords<String, String> records = consumer.poll(pollInterval);\r\n for (ConsumerRecord<String, String> record : records) {\r\n Document d = new Document(record.key());\r\n d.setField(\"data\", record.value());\r\n d.setField(\"topic\", record.topic());\r\n d.setField(\"offset\",record.offset());\r\n d.setField(\"partition\",record.partition());\r\n d.setField(\"timestamp\",record.timestamp());\r\n feed(d);\r\n }\r\n }\r\n }",
"@Test\n public void shouldReceiveAMessageFromTheServer() throws Exception {\n final String expectedSessionId = \"MYSESSIONID\";\n final String topicName = \"TestTopic\" + System.currentTimeMillis();\n\n try {\n // Sanity test, no active consumers\n Assert.assertEquals(\"Should have no active consumers\", 0, webSocketConsumersManager.countActiveConsumers());\n\n // Create a topic\n sharedKafkaTestResource\n .getKafkaTestUtils()\n .createTopic(topicName, 2, (short) 1);\n\n // Create cluster\n final Cluster cluster = clusterTestTools\n .createCluster(\"TestCluster\", sharedKafkaTestResource.getKafkaConnectString());\n\n // Create view\n final View view = viewTestTools\n .createViewWithCluster(\"TestView-\" + System.currentTimeMillis(), cluster);\n\n // Sanity test, no enforced partitions\n assertEquals(\"Partitions Property should be empty string\", \"\", view.getPartitions());\n\n final ConsumeRequest consumeRequest = new ConsumeRequest();\n consumeRequest.setAction(\"head\");\n consumeRequest.setPartitions(\"0,1\");\n consumeRequest.setFilters(new ArrayList<>());\n consumeRequest.setResultsPerPartition(10);\n\n final SimpMessageHeaderAccessor mockHeaderAccessor = mock(SimpMessageHeaderAccessor.class);\n final Authentication mockPrincipal = mock(Authentication.class);\n when(mockHeaderAccessor.getUser())\n .thenReturn(mockPrincipal);\n when(mockPrincipal.getPrincipal())\n .thenReturn(nonAdminUserDetails);\n when(mockHeaderAccessor.getSessionId())\n .thenReturn(expectedSessionId);\n\n final String result = streamController.newConsumer(\n view.getId(),\n consumeRequest,\n mockHeaderAccessor\n );\n assertEquals(\"Should return success response\", \"{success: true}\", result);\n\n // Verify consumer stood up\n assertEquals(\"Should have one active consumer\", 1, webSocketConsumersManager.countActiveConsumers());\n\n // Lets refresh the view entity and verify the partitions field is still empty.\n // Validates ISSUE-212\n final View updatedView = viewRepository.findById(view.getId()).get();\n assertEquals(\"Partitions Property should be empty string\", \"\", updatedView.getPartitions());\n } finally {\n // Cleanup, disconnect websocket consumers\n webSocketConsumersManager.removeConsumersForSessionId(expectedSessionId);\n\n // Remove created data.\n viewTestTools.deleteAllViews();\n clusterTestTools.deleteAllClusters();\n }\n }",
"String getNewTopic();",
"public void run() throws InterruptedException {\n\t\tBlockingQueue<String> msgQueue = new LinkedBlockingQueue<String>(1000);\n\t\t\n\t\t//create twitter client\n\t\tfinal Client client = twitterClient.getTwitterClient(msgQueue, Arrays.asList(\"covid\"));\n\t\tclient.connect();\n\t\t\n\t\t//create kafka producer\n\t\tKafkaProducer<String, String> kafkaProducer = producer.getKafkaProducer();\n\t\t\n\t\t//loop through tweets and send to kafka\n\t\tint tweetsProcessed = 0;\n\t\twhile (!client.isDone()) {\n\t\t String msg = msgQueue.take();\n\t\t if(msg != null) {\n\t\t\t tweetsProcessed += 1;\n\t\t\t String key = ExtractIdFromTweets(msg);\n\t\t\t logger.info(\"key::\"+key);\n\t\t\t if(tweetsProcessed <= tweetsToRead) {\n\t\t\t\t\t\t ProducerRecord<String, String> record = new ProducerRecord<String, String>(topic, key, msg);\n\t\t\t\t\t\t kafkaProducer.send(record, new Callback() {\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 onCompletion(RecordMetadata metadata, Exception exception) {\n\t\t\t\t\t\t\t\tif(exception != null) {\n\t\t\t\t\t\t\t\t\tlogger.error(exception.getMessage());\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\t logger.info(msg);\n\t\t\t\t\t}\n\t\t else {\n\t\t\t \n\t\t\t logger.info(\"Stopping application after {} tweets\",tweetsProcessed);\t\n\t\t\t client.stop();\n\t\t\t \n\t\t\t kafkaProducer.flush();\n\t\t\t\tkafkaProducer.close();\n\t\t\t \n\t\t }\n\t\t }\t \n\t\t}\n\t \n\t}",
"private MQTTopicManager() {\n for(Integer counter=1;counter!=Short.MAX_VALUE;counter++){\n messageIdList.add(counter);\n }\n }",
"@Override\n public void messageArrived(final String pTopic, final MqttMessage pMqttMessage) {\n if (DEBUG) {\n Log.d(LOG_TAG, \" Topic:\\t\" + pTopic + \" Message:\\t\" + new String(pMqttMessage.getPayload()) + \" QoS:\\t\"\n + pMqttMessage.getQos());\n }\n\n for (final RaspberryPiMessageListener listener : mListeners) {\n parentHandler.post(new Runnable() {\n\t@Override\n\tpublic void run() {\n\t String payloadLiteral = new String(pMqttMessage.getPayload());\n\t listener.MqttMessageReceived(pTopic, payloadLiteral);\n\t}\n });\n }\n\n }",
"@Override\n public void publish(String data, String topicName,String topicType) {\n Map<Integer, List<KafkaTopic>> kafkaTopicsByPartitionMap = getPerPartitionKafkaTopicList(0, 1,\"0\");\n for (Map.Entry<Integer, List<KafkaTopic>> entry : kafkaTopicsByPartitionMap.entrySet()) {\n List<KafkaTopic> kafkaTopicList= entry.getValue();\n for (KafkaTopic kafkaTopic : kafkaTopicList){\n if(kafkaTopic.getTopicName().equalsIgnoreCase(topicName)){\n new KafkaProducerClient(data, topicName,topicType, kafkaTopic.getPartitionId()).publishToKafkaTopic();\n return;\n }\n }\n }\n }",
"public void setConsumer(Consumer consumer) {\n this.consumer = consumer;\n }"
]
| [
"0.6810801",
"0.6715941",
"0.63893676",
"0.6340113",
"0.63290125",
"0.63163084",
"0.62609047",
"0.62465906",
"0.6164918",
"0.61592567",
"0.61562234",
"0.61302054",
"0.61251754",
"0.6117841",
"0.6100405",
"0.6089309",
"0.6082638",
"0.60776263",
"0.60550326",
"0.60312104",
"0.602593",
"0.60236853",
"0.5987236",
"0.5964835",
"0.5961839",
"0.59557307",
"0.5950006",
"0.5935855",
"0.593411",
"0.5922561",
"0.59161013",
"0.5913843",
"0.5890093",
"0.58795106",
"0.58725727",
"0.58724254",
"0.5854383",
"0.58406305",
"0.58282703",
"0.58099014",
"0.5809293",
"0.58077997",
"0.58074427",
"0.5794893",
"0.57910794",
"0.57882226",
"0.57681125",
"0.57639396",
"0.57511055",
"0.574923",
"0.5743845",
"0.57397926",
"0.5739367",
"0.5730298",
"0.5718211",
"0.57089496",
"0.5699358",
"0.56901175",
"0.56870234",
"0.5682051",
"0.567922",
"0.5677119",
"0.56654966",
"0.56506383",
"0.5641816",
"0.5630495",
"0.5625534",
"0.5622722",
"0.56169635",
"0.56162614",
"0.561625",
"0.5612861",
"0.5611649",
"0.5595304",
"0.5573483",
"0.55681133",
"0.5555024",
"0.55480754",
"0.55459386",
"0.55382323",
"0.5537934",
"0.55284065",
"0.5525765",
"0.55237186",
"0.5519214",
"0.55161583",
"0.55088115",
"0.55081505",
"0.55068094",
"0.55055225",
"0.5502271",
"0.54952395",
"0.5494565",
"0.5494385",
"0.549079",
"0.5488744",
"0.54871714",
"0.54841834",
"0.5477365",
"0.54763556",
"0.54742134"
]
| 0.0 | -1 |
Get the topology that contains the logic for our streams app | TopologyBuilder getTopology() {
return topology;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Topology getTopology() {\n StreamsBuilder builder = new StreamsBuilder();\n\n KafkaStreamsRunnerDSL uot = new KafkaStreamsRunnerDSL();\n uot.buildPipeline(builder);\n\n // build the topology and start streaming\n Topology topology = builder.build();\n return topology;\n }",
"private static Topology getTopology(){\n final Serde<String> stringSerde = Serdes.String();\n final Serde<VehiclePosition> vpSerde = getJsonSerde();\n StreamsBuilder builder = new StreamsBuilder();\n KStream<String,VehiclePosition> positions = builder\n .stream(\"vehicle-positions\", Consumed.with(stringSerde, vpSerde));\n KStream<String,VehiclePosition> operator47Only =\n positions.filter((key,value) -> value.VP.oper == 47); \n operator47Only.to(\"vehicle-positions-oper-47\",\n Produced.with(stringSerde, vpSerde));\n Topology topology = builder.build();\n return topology;\n }",
"public Topology getTopology() {\n return new Topology(Lists.newCopyOnWriteArrayList(topology.getRuntimes()));\n }",
"public String topologyName() {\n return this.innerProperties() == null ? null : this.innerProperties().topologyName();\n }",
"public void logicalToBoltGraph() {\n\t\tDefaultDirectedGraph<FStream, IndexedEdge<FStream>> G = (DefaultDirectedGraph<FStream, IndexedEdge<FStream>>) _graph.clone();\n\t\tint bolt_counter = 0;\n\n\t\tremoveMerges(G);\n\t\t\n\t\tArrayDeque<FStream> stack = new ArrayDeque<FStream>();\n\t\t\t\t\n\t\t// Look for the actual spouts in the graph.\n\t\tfor (FStream n : G.vertexSet()) {\n\t\t\tif (n.getType() == FStream.NodeType.SPOUT) {\n\t\t\t\tstack.add(n);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// State for building the topology.\n\t\tboltMap = new HashMap<FStream, FlexyBolt>();\n\t\t// The edges link specific internal nodes between the bolts -- yes, it hurts my head too.\n\t\tboltG =\tnew DefaultDirectedGraph<FlexyBolt, IndexedEdge<FStream>>(new ErrorEdgeFactory());\n\t\tint edge_counter = 0;\n\n\t\t// Track through the stack and build up subgraphs.\n\t\twhile (stack.size() > 0) {\n\t\t\tFStream n = stack.pollFirst();\n\t\t\t\n\t\t\tFlexyBolt b = null;\n\t\t\tswitch (n.getType()) {\n\t\t\tcase SPOUT:\n\t\t\t\t// Create a bolt and link it into the map.\n\t\t\t\tb = new FlexyBolt(bolt_counter++, n);\n\t\t\t\tboltG.addVertex(b);\n\t\t\t\tbreak;\n\t\t\tcase FUNCTION: \n\t\t\tcase PROJECTION:\n\t\t\t\t// Pull the previous node.\n\t\t\t\tFStream prev_n = \n\t\t\t\t\t\t(new ArrayList<IndexedEdge<FStream>>(G.incomingEdgesOf(n)))\n\t\t\t\t\t\t\t\t.get(0).source; // Yuck.\n\t\t\t\t\n\t\t\t\t// Pull the bolt.\n\t\t\t\tb = boltMap.get(prev_n);\n\t\t\t\t// Link this node into the bolt.\n\t\t\t\tb.link(prev_n, n);\n\t\t\t\tbreak;\n\t\t\tcase SHUFFLE:\n\t\t\t\t// Create a bolt and link it into the map.\n\t\t\t\tb = new FlexyBolt(bolt_counter++, n);\n\t\t\t\tboltG.addVertex(b);\n\t\t\t\t\n\t\t\t\t// Add edges for all previous nodes\n\t\t\t\tfor (IndexedEdge<FStream> edge : G.incomingEdgesOf(n)) {\n\t\t\t\t\tFlexyBolt prev_b = boltMap.get(edge.source);\n\t\t\t\t\tprev_b.expose(edge.source);\n\t\t\t\t\t\n\t\t\t\t\tedge_counter += 1;\n\t\t\t\t\tIndexedEdge<FStream> e = new IndexedEdge<FStream>(edge.source, n, edge_counter);\n\t\t\t\t\t\n\t\t\t\t\tboltG.addEdge(prev_b, b, e);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GROUPBY:\n\t\t\t\t// Create a new bolt for the Stage1/Store portion.\n\t\t\t\tb = new FlexyBolt(bolt_counter++, n);\n\t\t\t\tboltG.addVertex(b);\n\t\t\t\t\n\t\t\t\t// Link it to the preceding bolts.\n\t\t\t\tfor (IndexedEdge<FStream> edge : G.incomingEdgesOf(n)) {\n\t\t\t\t\tFlexyBolt prev_b = boltMap.get(edge.source);\n\n\t\t\t\t\t// Link this node into the bolt for Stage0 Aggregation.\n\t\t\t\t\tFStream s0_agg = n.copy();\n\t\t\t\t\ts0_agg.setStage0Agg(true);\n\t\t\t\t\tprev_b.link(edge.source, s0_agg);\n\t\t\t\t\tprev_b.expose(s0_agg);\n\t\t\t\t\tboltMap.put(s0_agg, prev_b);\n\t\t\t\t\t\n\t\t\t\t\tedge_counter += 1;\n\t\t\t\t\tIndexedEdge<FStream> e = new IndexedEdge<FStream>(s0_agg, n, edge_counter);\n\t\t\t\t\t\n\t\t\t\t\tboltG.addEdge(prev_b, b, e);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthrow new RuntimeException(\"Unexpected node type: \" + n + \" \" + n.getType());\n\t\t\t}\n\t\t\t\n\t\t\t// Map the bolt.\n\t\t\tboltMap.put(n, b);\n\t\t\t\n\t\t\t// For all the adjacent nodes, add them to the stack.\n\t\t\tfor (IndexedEdge<FStream> edge : G.outgoingEdgesOf(n)) {\n\t\t\t\tif (!boltMap.containsKey(edge.target)) {\n\t\t\t\t\tstack.addLast(edge.target);\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}",
"public NetworkTopology getNetworkTopology() throws NotExistingEntityException, MethodNotImplementedException;",
"public int getCoarseRootTopologyType() {return coarseRootTopologyType;}",
"String targetServiceTopologyId();",
"protected void createTopologyGraph() {\n graph = new TopologyGraph(roots, boundaries);\n\n // check and resolve conflicts about input priorities\n AbstractExecNodeExactlyOnceVisitor inputPriorityVisitor =\n new AbstractExecNodeExactlyOnceVisitor() {\n @Override\n protected void visitNode(ExecNode<?> node) {\n if (!boundaries.contains(node)) {\n visitInputs(node);\n }\n updateTopologyGraph(node);\n }\n };\n roots.forEach(n -> n.accept(inputPriorityVisitor));\n }",
"public Topology convertTopology(FloodlightTopology floodlightTopology)\n\t{\n\t\tArrayList<IDevice> devices = floodlightTopology.getDevices();\n\t\tArrayList<Link> links = floodlightTopology.getLinks();\n\t\tMap<DatapathId, IOFSwitch> switchMap = floodlightTopology.getSwitchMap();\n\t\tHashMap<IOFSwitch, ArrayList<OFPortDesc>> switchPortMap = floodlightTopology.getSwitchPortMap();\n\n\t\tArrayList<Node> topoNodes = new ArrayList<Node>();\n\t\tArrayList<FlowLink> topoLinks = new ArrayList<FlowLink>();\n\t\t//Create Switch Nodes\n\t\tfor(DatapathId dpID : switchMap.keySet()){\n\t\t\tString name = dpID.toString();\n\t\t\tint numPorts = switchPortMap.get(switchMap.get(dpID)).size();\n\t\t\ttopoNodes.add(new Switch(name, numPorts));\n\t\t}\n\t\t//Create Host Nodes\n\t\t//Create (Host, Switch) Links\n\t\tfor(IDevice device : devices){\n\t\t\tString name = device.getMACAddressString();\n\t\t\tSwitchPort[] attachmentPoints = device.getAttachmentPoints();\n\t\t\tfor (SwitchPort ap : attachmentPoints){\n\t\t\t\tif(ap.getPort().getPortNumber() > 0){\n\t\t\t\t\tHost newHost = new Host(name, 1);\n\t\t\t\t\ttopoNodes.add(newHost);\n\t\t\t\t\tArrayList<FlowLink> hostSwitchLinks = makeHostSwitchLinkPair(topoNodes, device, ap, switchMap, switchPortMap);\n\t\t\t\t\ttopoLinks.add(hostSwitchLinks.get(0));\n\t\t\t\t\ttopoLinks.add(hostSwitchLinks.get(1));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Create (Switch, Switch) Links\n\t\tfor(Link link : links){\n\t\t\tFlowLink switchSwitchLink = makeSwitchSwitchLink(topoNodes, link, switchMap, switchPortMap);\n\t\t\ttopoLinks.add(switchSwitchLink);\n\t\t}\n\t\t\n\t\treturn new Topology(topoNodes, topoLinks);\n\t}",
"private void createTopology() {\n deviceService = createMock(DeviceService.class);\n linkService = createMock(LinkService.class);\n\n deviceService.addListener(anyObject(DeviceListener.class));\n linkService.addListener(anyObject(LinkListener.class));\n\n createDevices(NUM_DEVICES, NUM_PORTS_PER_DEVICE);\n createLinks(NUM_DEVICES);\n addIntfConfig();\n popluateEdgePortService();\n }",
"public String toString() {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"\\nApplication Graph for \" + this.getClass().getCanonicalName() + \"\\n\");\n Map<PEMaker, Collection<StreamMaker>> pe2streamMap = pe2stream.asMap();\n for (Map.Entry<PEMaker, Collection<StreamMaker>> entry : pe2streamMap.entrySet()) {\n sb.append(toString(entry.getKey()) + \"=> \");\n for (StreamMaker sm : entry.getValue()) {\n sb.append(toString(sm));\n }\n sb.append(\"\\n\");\n }\n\n Map<StreamMaker, Collection<PEMaker>> stream2peMap = stream2pe.asMap();\n for (Map.Entry<StreamMaker, Collection<PEMaker>> entry : stream2peMap.entrySet()) {\n sb.append(toString(entry.getKey()) + \"=> \");\n for (PEMaker pm : entry.getValue()) {\n sb.append(toString(pm));\n }\n sb.append(\"\\n\");\n }\n\n return sb.toString();\n\n }",
"public static void main(String[] args) throws Exception \n {\n\n\t//log.info(\"topologyhell\");\n TopologyBuilder builder = new TopologyBuilder();\n\n //builder.setSpout( \"spout\", new PrimeNumberSpout() );\n\t\n\tQueueDeclaration qd = new SharedQueueWithBinding(\"stormqueue\", \"stormexchange\", \"errorkey\");\n\t//next calls are in SetupAMQP method of AMQPSpout class\n\t//ConnectionFactory factory = new ConnectionFactory();\n\t//factory.setHost(\"localhost\");\n\t//Connection connection = factory.newConnection();\n\t//Channel channel = connection.createChannel();\n\tScheme scheme = new SimpleJSONScheme();\n\n builder.setSpout( \"spout\", new AMQPSpout( \"127.0.0.1\", 5672, \"guest\", \"guest\", \"/\", qd, scheme),1);\n\t//builder.setSpout(\"ipspout\", new AMQPSpout(\"127.0.0.1\", 5672, \"guest\", \"guest\", \"/\", qd, scheme));\n\n /*builder.setBolt( \"prime\", new PrimeNumberBolt(),1 )\n .shuffleGrouping(\"spout\");*/\n\n\tbuilder.setBolt( \"prime\", new PrimeNumberBolt(\"127.0.0.1\", 5672, \"guest\", \"guest\", \"/\"),1 )\n .shuffleGrouping(\"spout\");\n\n\n //Config conf = new Config();\n \n //LocalCluster cluster = new LocalCluster();\n //cluster.submitTopology(\"test\", conf, builder.createTopology());\n //Utils.sleep(10000);\n //cluster.killTopology(\"test\");\n //cluster.shutdown();\n\tConfig conf = new Config();\n\tconf.setDebug(true);\n\tconf.setNumWorkers(2);\n\tconf.setMaxSpoutPending(5000);\n\n\t//kryo serialization\n\tconf.registerSerialization(JSONObject.class, KryoJSONSerializer.class);\n\tconf.registerSerialization(BasicProperties.class);\n\tconf.setFallBackOnJavaSerialization(false);//avoid using java serializatioavoid using java serialization\n\n\ttry{\n\t\tStormSubmitter.submitTopology( args[0], conf, builder.createTopology() );\n\t}\n\tcatch(AlreadyAliveException e){\n\t\t\n\t}\n }",
"public interface Topology {\r\n\r\n /**\r\n * Returns list of links\r\n * @return list of links\r\n */\r\n List<Link> getLinks();\r\n \r\n /**\r\n * Returns list of nodes\r\n * @return list of nodes\r\n */\r\n List<Node> getNodes();\r\n \r\n /**\r\n * Returns list od domains\r\n * @return list of domains\r\n */\r\n List<AdminDomain> getDomains();\r\n \r\n /**\r\n * Inserts link in the topology\r\n * @param link link to insert\r\n * @return if insertion of link was successful returns true, otherwise false \r\n */\r\n boolean insertLink(Link link);\r\n \r\n /**\r\n * Removes link from topology\r\n * @param link link to delete\r\n * @return if deletion of link was successful returns true, otherwise false\r\n */\r\n boolean removeLink(Link link);\r\n \r\n}",
"public interface SPLInput extends TopologyElement {\n SPLStream getStream();\n}",
"public AffinityTopologyVersion topologyVersion(AffinityTopologyVersion topVer);",
"public TopologyLib() {\n }",
"public T caseTopology(Topology object) {\r\n\t\treturn null;\r\n\t}",
"public static void main(String[] args) throws Exception {\n //Used to build the topology\n TopologyBuilder builder = new TopologyBuilder();\n\n MongoClient mongo = new MongoClient(new ServerAddress(\"localhost\", 27017));\n final CreateCollectionOptions options = new CreateCollectionOptions();\n options.capped(true);\n options.sizeInBytes(10000);\n\n final MongoCollection coll = mongo.getDatabase(\"test\").getCollection(\"xdrs_crudos_reducida\");\n\n\n FrankestainAdapterSpout spout = new FrankestainAdapterSpout(\"localhost\", 27017, \"test\", \"xdrs_crudos_reducida\", new Document()) {\n\n private static final long serialVersionUID = 1L;\n\n @Override\n public void declareOutputFields(OutputFieldsDeclarer declarer) {\n\n declarer.declare(new Fields(\"id\"));\n }\n\n @Override\n public List<Object> dbObjectToStormTuple(Document document) {\n\n return tuple(document);\n }\n\n };\n // mongo.getDatabase(\"test\").createCollection(\"xdrs_crudos_reducida\", options);\n //mongo.dropDatabase(\"mongo_storm_tailable_cursor\");\n //Add the spout, with a name of 'spout'\n //and parallelism hint of 5 executors\n\n builder.setSpout(\"frank_spout\", spout);\n //builder.setSpout(\"frank_spout\", spout, 1);\n //Add the SplitSentence bolt, with a name of 'split'\n //and parallelism hint of 8 executors\n //shufflegrouping subscribes to the spout, and equally distributes\n //tuples (sentences) across instances of the SplitSentence bolt\n builder.setBolt(\"franktree_bolt_1\", new FrankestainTree()).shuffleGrouping(\"frank_spout\");\n // builder.setBolt(\"franktree_bolt_1\", new FrankestainTree(), 4).fieldsGrouping(\"frank_spout\", \"xdrs\", new Fields(\"fieldline\"));\n //builder.setBolt(\"franktree_bolt_1\", new FrankestainTree(), 1).shuffleGrouping(\"frank_spout\").shuffleGrouping(\"frankSpSons_bolt_7\");\n //Add the counter, with a name of 'count'\n //and parallelism hint of 12 executors\n //fieldsgrouping subscribes to the split bolt, and\n //ensures that the same word is sent to the same instance (group by field 'word')\n builder.setBolt(\"franksetint_bolt_2\", new FrankestainSetInterval()).shuffleGrouping(\"franktree_bolt_1\");\n/*\n builder.setBolt(\"franksearPM_bolt_3\", new FrankestainSearchPM(), 1).shuffleGrouping(\"franksetint_bolt_2\");\n\n builder.setBolt(\"frankIM_bolt_4\", new FrankestainIM(), 1).shuffleGrouping(\"franksearPM_bolt_3\");\n\n builder.setBolt(\"frankSwit_bolt_5\", new FrankestainSwitch(), 1).shuffleGrouping(\"frankIM_bolt_4\");\n\n builder.setBolt(\"frankSaGr_bolt_6\", new FrankestainSaveGroup(), 1).shuffleGrouping(\"frankSwit_bolt_5\");\n\n builder.setBolt(\"frankSpSons_bolt_7\", new FrankestainSplitSons(), 1).shuffleGrouping(\"frankSwit_bolt_5\").shuffleGrouping(\"franksearPM_bolt_3\");\n*/\n //new configuration\n Config conf = new Config();\n conf.setDebug(true);\n\n //If there are arguments, we are running on a cluster\n if (args != null && args.length > 0) {\n //parallelism hint to set the number of workers\n conf.setNumWorkers(3);\n //submit the topology\n StormSubmitter.submitTopology(args[0], conf, builder.createTopology());\n\n /*\n Manera de ejecutarlo modo remoto con StormSubmitter\n storm jar target/WordCount-1.0-SNAPSHOT.jar com.ayscom.example.WordCountTopology Mytopology_name\n */\n\n }\n //Otherwise, we are running locally\n else {\n //Cap the maximum number of executors that can be spawned\n //for a component to 3\n conf.setMaxTaskParallelism(3);\n //LocalCluster is used to run locally\n LocalCluster cluster = new LocalCluster();\n //submit the topology\n cluster.submitTopology(\"frankLocalTest\", conf, builder.createTopology());\n /*\n Manera de ejecutarlo manera local con LocalCluster, no se envia parametros.\n storm jar target/WordCount-1.0-SNAPSHOT.jar com.ayscom.example.WordCountTopology\n */\n //sleep\n Thread.sleep(5000);\n //shut down the cluster\n cluster.shutdown();\n }\n }",
"private String determineStream() {\r\n\t\tif (stream == null) {\r\n\t\t\tCcLsstream lsstream = new CcLsstream();\r\n\t\t\tlsstream.setProject(getProject());\r\n\t\t\tlsstream.setFormat(FMT_EXTENED_NAME);\r\n\t\t\tlsstream.setViewTag(determineViewTag());\r\n\t\t\tlsstream.execute();\r\n\t\t\tstream = lsstream.getCommandOutput();\r\n\t\t\tlog(\"Using derived stream [\" + stream + \"]\", Project.MSG_VERBOSE);\r\n\t\t}\r\n\t\treturn stream;\r\n\t}",
"public String getStreamId() {\n return this.streamId;\n }",
"public CoordinateSystem getCoordinateSystem() {\n System.out.println(\"BaseCatalog: getCoordinateSystem() \");\n CoordinateSystem cs = null;\n if (_layout.getMapElementCount() >0 ) {\n MapElement mapEle = (MapElement)_layout.getMapElements().next();\n cs = mapEle.getMap().getCoordinateSystem();\n }\n System.out.println(\"BaseCatalog: getCoordinateSystem() \" + cs);\n return cs;\n }",
"public String getStreamId() {\n return streamId;\n }",
"public int getStreamId() {\n return streamId;\n }",
"@Override\n public TopologyResponse startParserTopology(String name) throws RestException {\n TopologyResponse topologyResponse = new TopologyResponse();\n if (globalConfigService.get() == null) {\n topologyResponse.setErrorMessage(TopologyStatusCode.GLOBAL_CONFIG_MISSING.toString());\n return topologyResponse;\n }\n\n List<String> sensorTypes = Collections.singletonList(name);\n // If name is a group then look up sensors to build the actual topology name\n SensorParserGroup sensorParserGroup = sensorParserGroupService.findOne(name);\n if (sensorParserGroup != null) {\n sensorTypes = new ArrayList<>(sensorParserGroup.getSensors());\n }\n for (String sensorType : sensorTypes) {\n if (sensorParserConfigService.findOne(sensorType.trim()) == null) {\n topologyResponse\n .setErrorMessage(TopologyStatusCode.SENSOR_PARSER_CONFIG_MISSING.toString());\n return topologyResponse;\n }\n }\n\n // sort the sensor types so the topology name is consistent\n Collections.sort(sensorTypes);\n return createResponse(\n stormCLIClientWrapper.startParserTopology(String.join(ParserTopologyCLI.TOPOLOGY_OPTION_SEPARATOR, sensorTypes)),\n TopologyStatusCode.STARTED,\n TopologyStatusCode.START_ERROR\n );\n }",
"@Override\n protected void doAfterTopologyStartup(ClusteredTopology topology) {\n }",
"public StreamsConfigData getStreamsConfigData() {\n\t\treturn streamsConfigData;\n\t}",
"public Map<String, Object> getStreamsConfig() {\n // returns a copy of the original properties\n return streamsConfig.originals();\n }",
"@Override\n protected void configure(final Map stormConf,\n final TopologyContext context) {\n\n }",
"List<Topo> getMesTopos(String user);",
"public org.davic.net.Locator getStreamLocator()\n\t{return null;\n\t}",
"public static Properties configStream() {\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, KafkaConstants.getBootstrapServers());\r\n\t\tprops.put(ConsumerConfig.GROUP_ID_CONFIG, KafkaConstants.getGroupId());\r\n\t\tprops.put(StreamsConfig.APPLICATION_ID_CONFIG, KafkaConstants.getApplicationId());\r\n\t\tprops.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.String().getClass());\r\n\t\tprops.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, RentalCarEventDetailsSerde.class);\r\n\r\n\t\treturn props;\r\n\t}",
"protected void initialize() {\n // Get the topology builder\n KStreamBuilder builder = getBuilder();\n // Build the app\n kafkaStreams = new KafkaStreams(builder, streamsConfig, new ClientSupplier());\n // Shutdown the entire app if an uncaught exception is encountered\n kafkaStreams.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {\n @Override\n public void uncaughtException(Thread t, Throwable e) {\n log.error(\"Stream terminated because of uncaught exception: {}. Shutting down app\", e.getMessage());\n String s = stackTraceAsString((Exception) e);\n log.error(\"Stacktrace: {}\", s);\n System.out.println(e);\n shutdownApp();\n }\n });\n topology = builder;\n addMetrics(PipelineMetricsReporter.metrics());\n }",
"@Override\n public final SortedSet<Node<N>> getSinks() {\n return new Sinks(this);\n }",
"public Map getProtocols();",
"public boolean addTopology(Topology top);",
"Map getConnectionManagerMap();",
"org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketProtocol getSocketProtocol();",
"@Override\n\tpublic Map<String, Map<Integer, List<String>>> getOverlayNetwork() throws TimeSeriesException {\n\t\tIConfig configurationService = ServiceFactory.getConfigurationService();\n\t\tMap<String, Map<Integer, List<String>>> overlayNetwork = configurationService.getOverlayNetwork(this.clusterName);\n\t\t//configurationService.close();\n\t\treturn overlayNetwork;\n\t}",
"public String getToStation();",
"@Override\n\tpublic void run() {\n \tTopologyKiller killer = new TopologyKiller();\n \tkiller.start();\n\t\t\n \t// create the joiner bolt\n\t\tBoltDeclarer declarer = builder.setBolt(\"join\", new JoinerBolt(), joinerParallelism);\n\t\t\n\t\t// connect all the spouts to the joiner bolt using fieldGrouping\n\t\tfor (String spout: spouts)\n\t\t\tdeclarer = declarer.fieldsGrouping(spout, new Fields(\"key\"));\n\t\t\n\t\t// create the output bolt with globalGrouping\n\t\tbuilder.setBolt(\"output\", new ZmqBolt(spouts.size(), replySocketString, killerSocketString), 1)\n\t\t\t.globalGrouping(\"join\");\n\t\t\n\t\tConfig conf = new Config();\n\t conf.setNumWorkers(numWorkers);\n\t conf.put(Config.STORM_LOCAL_MODE_ZMQ, false);\n\t conf.put(Config.TOPOLOGY_MAX_SPOUT_PENDING, 100);\n\t conf.put(Config.TOPOLOGY_MAX_TASK_PARALLELISM, 20);\n\t \n\t try {\n\t \tlogger.info(\"Starting topology\");\n\t cluster.submitTopology(topologyName, conf, builder.createTopology());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tkill();\n\t\t}\n\t}",
"@Override\n void writeToTopology(final InternalTopologyBuilder topologyBuilder) {\n }",
"public static void createTopology()\r\n\t{\r\n\t\tSystem.out.println(\"==============STARTING TO CREATE TOPOLOGY=================\");\r\n\t\tint row = 0, col = 0;\r\n\t\ttry {\r\n\t\t\tscan = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"\\nPlease enter the file name <name.txt>\");\r\n\t\t\tString s_t_r = scan.nextLine();\r\n\t\t\tFile inFile = new File(s_t_r); // Connecting to the input file\r\n\t\t\t\r\n\t\t\tScanner in = new Scanner(inFile);\r\n\t\t\tString lines[] = in.nextLine().trim().split(\"\\\\s+\"); // line count estimation\r\n\t\t\tin.close(); // Closing the input file\r\n\t\t\t\r\n\t\t\trouters = lines.length;\r\n\t\t\tgraph = new int[routers][routers]; // declaring the adjacency matrix\r\n\t\t\t\r\n\t\t\tin = new Scanner(inFile); // scanner for each line in the input file\r\n\t\t\tint lineCount = 0;\r\n\t\t\twhile (in.hasNextLine()) // Checking the size of the matrix input\r\n\t\t\t{\r\n\t\t\t\tString currentLine[] = in.nextLine().trim().split(\"\\\\s+\"); // read each line\r\n\t\t\t\tfor (int i = 0; i < currentLine.length; i++) {\r\n\t\t\t\t\tgraph[lineCount][i] = Integer.parseInt(currentLine[i]);\r\n\t\t\t\t}\r\n\t\t\t\tlineCount++;\r\n\t\t\t}\r\n\t\t} catch (Exception e) { // Catching exception for error in reading the file\r\n\t\t\tSystem.out.println(\"Error in reading the file\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nReview the original topology \");\r\n\t\tfor (row = 0; row < routers; row++) {\r\n\t\t\tfor (col = 0; col < routers; col++)\r\n\t\t\t\tSystem.out.print(graph[row][col] + \"\\t\"); // Printing the topology that is created\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"protected StreamsApp() {\n this.streamsConfig = new KafkaStreamsConfig().fromConfig(config);\n this.rocksDbReporter = new RocksDbMetricsReporter(this);\n }",
"TopicConnection getJMSTopicConnection();",
"public StreamInfo getStreamInformation(SrvSession sess, TreeConnection tree, StreamInfo streamInfo)\n throws IOException {\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"### getStreamInformation() called ###\");\n \n // TODO Auto-generated method stub\n return null;\n }",
"@Override\n public ExecutionPlan build(Config cfg, DataFlowTaskGraph taskGraph,\n TaskSchedulePlan taskSchedule) {\n TaskPlan taskPlan =\n TaskPlanBuilder.build(workerId, workerInfoList, taskSchedule, taskIdGenerator);\n ParallelOperationFactory opFactory = new ParallelOperationFactory(\n cfg, network, taskPlan, edgeGenerator);\n\n Map<Integer, ContainerPlan> containersMap = taskSchedule.getContainersMap();\n ContainerPlan conPlan = containersMap.get(workerId);\n if (conPlan == null) {\n LOG.log(Level.INFO, \"Cannot find worker in the task plan: \" + workerId);\n return null;\n }\n\n ExecutionPlan execution = new ExecutionPlan();\n\n Set<TaskInstancePlan> instancePlan = conPlan.getTaskInstances();\n // for each task we are going to create the communications\n for (TaskInstancePlan ip : instancePlan) {\n Vertex v = taskGraph.vertex(ip.getTaskName());\n Map<String, String> inEdges = new HashMap<>();\n Map<String, String> outEdges = new HashMap<>();\n if (v == null) {\n throw new RuntimeException(\"Non-existing task scheduled: \" + ip.getTaskName());\n }\n\n INode node = v.getTask();\n if (node instanceof ICompute || node instanceof ISource) {\n // lets get the communication\n Set<Edge> edges = taskGraph.outEdges(v);\n // now lets create the communication object\n for (Edge e : edges) {\n Vertex child = taskGraph.childOfTask(v, e.getName());\n // lets figure out the parents task id\n Set<Integer> srcTasks = taskIdGenerator.getTaskIds(v.getName(),\n ip.getTaskId(), taskGraph);\n Set<Integer> tarTasks = taskIdGenerator.getTaskIds(child.getName(),\n getTaskIdOfTask(child.getName(), taskSchedule), taskGraph);\n\n if (!parOpTable.contains(v.getName(), e.getName())) {\n parOpTable.put(v.getName(), e.getName(),\n new Communication(e, v.getName(), child.getName(), srcTasks, tarTasks));\n }\n outEdges.put(e.getName(), child.getName());\n }\n }\n\n if (node instanceof ICompute || node instanceof ISink) {\n // lets get the parent tasks\n Set<Edge> parentEdges = taskGraph.inEdges(v);\n for (Edge e : parentEdges) {\n Vertex parent = taskGraph.getParentOfTask(v, e.getName());\n // lets figure out the parents task id\n Set<Integer> srcTasks = taskIdGenerator.getTaskIds(parent.getName(),\n getTaskIdOfTask(parent.getName(), taskSchedule), taskGraph);\n Set<Integer> tarTasks = taskIdGenerator.getTaskIds(v.getName(),\n ip.getTaskId(), taskGraph);\n\n if (!parOpTable.contains(parent.getName(), e.getName())) {\n parOpTable.put(parent.getName(), e.getName(),\n new Communication(e, parent.getName(), v.getName(), srcTasks, tarTasks));\n }\n inEdges.put(e.getName(), parent.getName());\n }\n }\n\n // lets create the instance\n INodeInstance iNodeInstance = createInstances(cfg, ip, v, taskGraph.getOperationMode(),\n inEdges, outEdges, taskSchedule);\n // add to execution\n execution.addNodes(v.getName(), taskIdGenerator.generateGlobalTaskId(\n v.getName(), ip.getTaskId(), ip.getTaskIndex()), iNodeInstance);\n }\n\n // now lets create the queues and start the execution\n for (Table.Cell<String, String, Communication> cell : parOpTable.cellSet()) {\n Communication c = cell.getValue();\n\n // lets create the communication\n OperationMode operationMode = taskGraph.getOperationMode();\n IParallelOperation op = opFactory.build(c.getEdge(), c.getSourceTasks(), c.getTargetTasks(),\n operationMode);\n // now lets check the sources and targets that are in this executor\n Set<Integer> sourcesOfThisWorker = intersectionOfTasks(conPlan, c.getSourceTasks());\n Set<Integer> targetsOfThisWorker = intersectionOfTasks(conPlan, c.getTargetTasks());\n\n // set the parallel operation to the instance\n //let's separate the execution instance generation based on the Operation Mode\n if (operationMode == OperationMode.STREAMING) {\n for (Integer i : sourcesOfThisWorker) {\n if (streamingTaskInstances.contains(c.getSourceTask(), i)) {\n TaskStreamingInstance taskStreamingInstance\n = streamingTaskInstances.get(c.getSourceTask(), i);\n taskStreamingInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else if (streamingSourceInstances.contains(c.getSourceTask(), i)) {\n SourceStreamingInstance sourceStreamingInstance\n = streamingSourceInstances.get(c.getSourceTask(), i);\n sourceStreamingInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else {\n throw new RuntimeException(\"Not found: \" + c.getSourceTask());\n }\n }\n\n for (Integer i : targetsOfThisWorker) {\n if (streamingTaskInstances.contains(c.getTargetTask(), i)) {\n TaskStreamingInstance taskStreamingInstance\n = streamingTaskInstances.get(c.getTargetTask(), i);\n op.register(i, taskStreamingInstance.getInQueue());\n taskStreamingInstance.registerInParallelOperation(c.getEdge().getName(), op);\n } else if (streamingSinkInstances.contains(c.getTargetTask(), i)) {\n SinkStreamingInstance streamingSinkInstance\n = streamingSinkInstances.get(c.getTargetTask(), i);\n streamingSinkInstance.registerInParallelOperation(c.getEdge().getName(), op);\n op.register(i, streamingSinkInstance.getstreamingInQueue());\n } else {\n throw new RuntimeException(\"Not found: \" + c.getTargetTask());\n }\n }\n execution.addOps(op);\n }\n\n if (operationMode == OperationMode.BATCH) {\n for (Integer i : sourcesOfThisWorker) {\n if (batchTaskInstances.contains(c.getSourceTask(), i)) {\n TaskBatchInstance taskBatchInstance = batchTaskInstances.get(c.getSourceTask(), i);\n taskBatchInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else if (batchSourceInstances.contains(c.getSourceTask(), i)) {\n SourceBatchInstance sourceBatchInstance\n = batchSourceInstances.get(c.getSourceTask(), i);\n sourceBatchInstance.registerOutParallelOperation(c.getEdge().getName(), op);\n } else {\n throw new RuntimeException(\"Not found: \" + c.getSourceTask());\n }\n }\n\n for (Integer i : targetsOfThisWorker) {\n if (batchTaskInstances.contains(c.getTargetTask(), i)) {\n TaskBatchInstance taskBatchInstance = batchTaskInstances.get(c.getTargetTask(), i);\n op.register(i, taskBatchInstance.getInQueue());\n taskBatchInstance.registerInParallelOperation(c.getEdge().getName(), op);\n } else if (batchSinkInstances.contains(c.getTargetTask(), i)) {\n SinkBatchInstance sinkBatchInstance = batchSinkInstances.get(c.getTargetTask(), i);\n sinkBatchInstance.registerInParallelOperation(c.getEdge().getName(), op);\n op.register(i, sinkBatchInstance.getBatchInQueue());\n } else {\n throw new RuntimeException(\"Not found: \" + c.getTargetTask());\n }\n }\n execution.addOps(op);\n }\n }\n return execution;\n }",
"protected Strategy getStrategy(){\n return Strategy.P2P_STAR;\n }",
"private static void setupServerStreams(ProjectType project) throws IOException{\r\n serverObjectOutputStream = new ObjectOutputStream(socket.getOutputStream());\r\n serverObjectOutputStream.flush();\r\n serverObjectInputStream = new ObjectInputStream(socket.getInputStream());\r\n System.out.println(\"Server: Streams were configured properly!\");\r\n prepareInstructionPacket(project);\r\n }",
"public String getOdlOpenflowNode2() throws SnmpStatusException;",
"@OAMany(displayName = \"Silo Configs\", toClass = SiloConfig.class, reverseName = SiloConfig.P_ApplicationType, createMethod = false)\n\tprivate Hub<SiloConfig> getSiloConfigs() {\n\t\treturn null;\n\t}",
"public Object getAlgorithm() {\n return graphConfig.getAlgorithm();\n }",
"public RoutingProtocol getProtocol() {\n\t\tif (this.isBgpProcess()) {\n\t\t\treturn RoutingProtocol.BGP;\n\t\t}\n\t\telse if (this.isOspfProcess()) {\n\t\t\treturn RoutingProtocol.OSPF;\n\t\t}\n\t\telse if (this.isStaticProcess()) {\n\t\t\treturn RoutingProtocol.STATIC;\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"AtomosLayer getAtomosLayer();",
"@DISPID(1611006068) //= 0x60060074. The runtime will prefer the VTID if present\n @VTID(144)\n void publishTopologicalElements(\n boolean oTopologyAllowed);",
"Set<ConnectPoint> sinksFor(McastRoute route, HostId hostId);",
"@StreamKind\n int getStreamKind();",
"public static OrderingSystem getInstance() {\r\n return os;\r\n }",
"public FlowPane simulationGraphs() {\r\n\t\t// Create FlowPane Of Graphs\r\n\t\tFlowPane graphs = new FlowPane(queueLengthGraph, queueTimeGraph, carparkUtilisationGraph);\r\n\t \r\n\t\t// Setup Pane\r\n\t\tgraphs.setMinSize(1000, 200);\r\n\t\t\r\n\t\treturn graphs;\r\n\t}",
"public static <T> TStream<T> getJavaTStream(TopologyElement te,\n BOperatorInvocation bop, BOutputPort bstream, Type tupleType,\n Optional<TupleSerializer> serializer) {\n if (tupleType != null)\n bstream.setNativeType(tupleType);\n addDependency(te, bop, tupleType);\n if (serializer.isPresent())\n addDependency(te, bop, serializer.get());\n \n // If the stream is just a Java object as a blob\n // then don't allow them to be viewed.\n if (!VIEWABLE_TYPES.contains(tupleType)) {\n bop.addConfig(\"streamViewability\", false);\n }\n return new StreamImpl<T>(te, bstream, tupleType, serializer);\n }",
"private void setupGraph() {\n // we use subcomponent, this is a parent dependance\n mSpotifyStreamerComponent = DaggerSpotifyStreamerComponent\n .builder()\n .spotifyStreamerModule(new SpotifyStreamerModule(this))\n .build();\n }",
"Flows createFlows();",
"@GetMapping(path=\"/\", produces = \"application/json\")\n public String getAppDynamicsStream() \n {\n \tSystem.out.println(\"Retrieving KPI's from yml \"+\"KPI's are\" +config);\n \treturn config+\"Read performance metrics, weights from yml\";\n }",
"public Router getRouter();",
"public void testConvertTopo (Topology tp)\n {\n Node root = tp.getNodes().get(0);\n //root.setColor(Color.green);\n parcours(root, visitedlist, compo1);\n set.addAll(composante);\n ArrayList distinctList = new ArrayList(set);\n System.out.println(distinctList.size());\n for ( int i = 0; i < distinctList.size(); i++ )\n System.out.println(distinctList.get(i));\n ArrayList<Link> liste = connectedL(tp);\n /*for (int i = 0; i < liste.size(); i++)\n System.out.println(liste.get(i));*/\n Convert(liste);\n /*for ( int i = 0; i < listConvert.size(); i++ )\n System.out.println(listConvert.get(i));*/\n ConvertMinimiz(listConvert);\n minimisationConvCompo(distinctList);\n minimisationAllNeighbor(listConvert,tp);\n //minimisation4(listConvert,tp);\n }",
"private void fourNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pB(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\"), pO(\"n1:5\")));\n n(tx, true, \"n2\", Stream.of(pB(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\"), pI(\"n2:5\")));\n n(tx, true, \"n3\", Stream.of(pB(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pO(\"n3:4\"), pI(\"n3:5\")));\n n(tx, true, \"n4\", Stream.of(pB(\"n4:1\"), pB(\"n4:2\"), pI(\"n4:3\"), pI(\"n4:4\"), pO(\"n4:5\")));\n l(tx, \"n1\", \"n1:5\", \"n2\", \"n2:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n4\", \"n4:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n2\", \"n2:3\", \"n4\", \"n4:3\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n3\", \"n3:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n l(tx, \"n4\", \"n4:5\", \"n3\", \"n3:5\", OperationalState.ENABLED, ForwardingDirection.UNIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tprotected void createExtraStreams() {\n\n\t\t// Crea un store global para procesar los datos de todas las instancias de\n\t\t// vessels agregados por vesselType\n\t\t/*-aggByVesselType = builder.globalTable(vesselsAggByVesselTypeTopic,\n\t\t\t\tConsumed.with(Serdes.String(), hashMapSerdeAggregationVesselTypeInVessel));-*/\n\n\t\tvesselType = builder.globalTable(vesselTypeTopic);\n\n\t\t// vesselTypeEvents = builder.stream(vesselTypeUpdatedTopic);\n\n\t\trealtimeVessel = builder.stream(realtimeVesselsTopic);\n\t}",
"@OAMany(\n displayName = \"App Servers\", \n toClass = AppServer.class, \n reverseName = AppServer.P_AppUserLogin, \n isProcessed = true, \n createMethod = false\n )\n private Hub<AppServer> getAppServers() {\n return null;\n }",
"@Test\r\n public void testGetSupportedConnectorTopologies() throws Exception {\r\n TDataPrepDBInputDefinition fixture = new TDataPrepDBInputDefinition();\r\n\r\n Set<ConnectorTopology> result = fixture.getSupportedConnectorTopologies();\r\n\r\n assertNotNull(result);\r\n assertEquals(1, result.size());\r\n }",
"public PortRouter getPortRouter( int operatingPort ) {\n \n PortRouter thePR;\n synchronized( thePortRouterMap ){\n thePR = thePortRouterMap.get( operatingPort );\n }\n return thePR;\n }",
"public String getStunServer();",
"public interface FlowManager extends FlowProgrammer {\n\n void saveFlowToSwitch(Flow flow);\n\n void sendPacket(RawPacket rawPacket, Ethernet packet, Flow flow);\n\n Map<String, Integer> getFlowPerConnectorFromSolution();\n\n Map<String, Integer> getFlowPerConnector();\n\n Map<String, Integer> getFlowPerTunnelConnector();\n\n Map<String, Integer> getFlowPerGatewayConnector();\n\n\n}",
"public TaskStack getTopStackInWindowingMode(int windowingMode) {\n return getStack(windowingMode, 0);\n }",
"public List<Stream> getStreams() {\n return streams;\n }",
"public String getTransport() {\n\t\treturn messageProcessor.getTransport();\n\t}",
"public org.iplant.pipeline.client.json.autobeans.Pipeline getPipeline() {\n org.iplant.pipeline.client.json.autobeans.Pipeline ret = factory.pipeline().as();\n ret.setName(workspace.getPipeline().getName());\n ret.setDescription(workspace.getPipeline().getDescription());\n \n List<PipelineApp> apps = new ArrayList<PipelineApp>();\n Vector<PipeComponent> steps = workspace.getPipeline().getSteps();\n for (PipeComponent step : steps) {\n App app = ((PipeApp)step).getApp();\n \n PipelineApp jsonApp = factory.app().as();\n jsonApp.setId(app.getID());\n jsonApp.setName(app.getName());\n jsonApp.setDescription(app.getDescription());\n jsonApp.setStep(step.getPosition());\n \n HashMap<PipeComponent, ArrayList<Input>> mappings = new HashMap<PipeComponent, ArrayList<Input>>();\n for (Input input : step.getInputs()) {\n if (input.getMapped() != null) {\n PipeComponent parent = input.getMapped().getParent();\n ArrayList<Input> maps = mappings.get(parent);\n if (maps == null)\n maps = new ArrayList<Input>();\n maps.add(input);\n mappings.put(parent, maps);\n }\n }\n \n List<PipelineAppMapping> jsonMappings = new ArrayList<PipelineAppMapping>();\n jsonApp.setMappings(jsonMappings);\n \n for (PipeComponent mappedTo : mappings.keySet()) {\n App mappedApp = ((PipeApp)mappedTo).getApp();\n PipelineAppMapping jsonMap = factory.appMapping().as();\n jsonMap.setStep(mappedTo.getPosition());\n jsonMap.setId(mappedApp.getID());\n ArrayList<Input> inputs = mappings.get(mappedTo);\n Map<String, String> map = new HashMap<String, String>();\n for (Input input : inputs) {\n map.put(input.getID(), input.getMapped().getID());\n }\n jsonMap.setMap(map);\n jsonMappings.add(jsonMap);\n }\n \n jsonApp.setInputs(app.getAppDataInputs());\n jsonApp.setOutputs(app.getAppDataOutputs());\n \n apps.add(jsonApp);\n }\n \n ret.setApps(apps);\n \n return ret;\n }",
"abstract AbstractStreamingAnalyticsConnection createStreamsConnection()\n throws IOException;",
"public String getPortMappingProtocol() {\n\t\treturn portMappingProtocol;\n\t}",
"public String[] getOutputConnectorNames();",
"public List<String> streams() {\n return this.streams;\n }",
"Set<ConnectPoint> sinksFor(McastRoute route);",
"public String getSinkType() {\n return this.sinkType;\n }",
"@SuppressWarnings(\"rawtypes\")\n @Override\n public void open(Map conf, TopologyContext context, SpoutOutputCollector collector) {\n this.collector = collector;\n this.context = context; \n \n // log.debug(getExecutorId() + \" Starting URL Spout\");\t\t\t\t\t\n }",
"public static org.davic.net.Locator[] listTransportStreams()\n {\n // TODO(Todd): This implementation currently assumes a single CABLE\n // transport.\n\n OcapLocator[] locators = null;\n try\n {\n // Get the transport\n TransportExt transport = (TransportExt) SIManager.createInstance().getTransports()[0];\n\n // Get all transport streams on the transport\n javax.tv.service.transport.TransportStream[] streams = transport.getTransportStreams();\n\n // Get the locator for each transport stream\n locators = new OcapLocator[streams.length];\n for (int i = 0; i < streams.length; i++)\n {\n int frequency = ((TransportStreamExt) streams[i]).getFrequency();\n int modFormat = ((TransportStreamExt) streams[i]).getModulationFormat();\n locators[i] = new OcapLocator(frequency, modFormat);\n }\n }\n catch (Exception e)\n {\n SystemEventUtil.logRecoverableError(e);\n }\n\n return locators;\n }",
"public String getSchedulingStrategy() {\n return this.schedulingStrategy;\n }",
"private void downloadStormCode(Map conf, String topologyId,\n\t\t\tString masterCodeDir) throws IOException, TException {\n\t\tString clusterMode = StormConfig.cluster_mode(conf);\n\n\t\tif (clusterMode.endsWith(\"distributed\")) {\n\t\t\tdownloadDistributeStormCode(conf, topologyId, masterCodeDir);\n\t\t} else if (clusterMode.endsWith(\"local\")) {\n\t\t\tdownloadLocalStormCode(conf, topologyId, masterCodeDir);\n\n\t\t}\n\t}",
"public Protocol getProtocol()\n \t{\n \t\treturn protocol;\n \t}",
"SyncTree getServerSyncTree() {\n return serverSyncTree;\n }",
"private void fiveNodesTopo() {\n ReadWriteTransaction tx = dataBroker.newReadWriteTransaction();\n n(tx, true, \"n1\", Stream.of(pI(\"n1:1\"), pB(\"n1:2\"), pI(\"n1:3\"), pO(\"n1:4\")));\n n(tx, true, \"n2\", Stream.of(pI(\"n2:1\"), pB(\"n2:2\"), pO(\"n2:3\"), pI(\"n2:4\")));\n n(tx, true, \"n3\", Stream.of(pO(\"n3:1\"), pB(\"n3:2\"), pO(\"n3:3\"), pI(\"n3:4\")));\n n(tx, true, \"n4\", Stream.of(pO(\"n4:1\"), pI(\"n4:2\"), pB(\"n4:3\"), pB(\"n4:4\")));\n n(tx, true, \"n5\", Stream.of(pI(\"n5:1\"), pB(\"n5:2\"), pB(\"n5:3\"), pO(\"n5:4\")));\n l(tx, \"n2\", \"n2:3\", \"n3\", \"n3:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:1\", \"n1\", \"n1:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n3\", \"n3:3\", \"n5\", \"n5:1\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n4\", \"n4:1\", \"n1\", \"n1:3\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n1\", \"n1:4\", \"n2\", \"n2:4\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n l(tx, \"n5\", \"n5:4\", \"n4\", \"n4:2\", OperationalState.ENABLED, ForwardingDirection.BIDIRECTIONAL);\n try {\n tx.submit().checkedGet();\n } catch (TransactionCommitFailedException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public int getServerBroadcastPort() {\n return 10081;\n }",
"@RequestMapping(value=\"/async/graph\", method=RequestMethod.GET)\n\tpublic @ResponseBody GraphPojo getGraph() {\n\t\tList<Collection> collections = collectionService.findAllCurrent();\n\t\tList<Agent> agents = agentService.findAllCurrent();\n\t\tList<NodePojo> nodes = new ArrayList<NodePojo>();\n\t\tList<EdgePojo> edges = new ArrayList<EdgePojo>();\n\t\tList<String> nodeIds = new ArrayList<String>();\n\t\t\n\t\tNodePojo node;\n\t\tEdgePojo edge;\n\t\t\n\t\t// Nodes\n\t\tfor (Collection c : collections) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(c.getEntityId());\n\t\t\tnode.setLabel(c.getLocalizedDescriptions().get(0).getTitle());\n\t\t\tnode.setType(\"collection\");\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(agent.getEntityId());\n\t\t\t\n\t\t\tif (agent.getForeName()==null) {\n\t\t\t\tnode.setType(\"organization\");\n\t\t\t} else {\n\t\t\t\tnode.setType(\"person\");\n\t\t\t}\n\t\t\t\n\t\t\tString name = (agent.getForeName()==null? \"\": (agent.getForeName() + \" \")) + agent.getName() ;\n\t\t\tnode.setLabel(name);\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\t\n\t\t// Edges\n\t\tfor (Collection c : collections) {\n\t\t\tif (c.getRelations()!=null) {\n\t\t\t\tfor (CollectionRelation cr : c.getRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(cr.getSourceEntityId());\n\t\t\t\t\tedge.setTarget(cr.getTargetEntityId());\n\t\t\t\t\t\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (c.getAgentRelations()!=null && c.getAgentRelations().size()!=0) {\n\t\t\t\tfor (CollectionAgentRelation car : c.getAgentRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(c.getEntityId());\n\t\t\t\t\tedge.setTarget(car.getAgentId());\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tif (agent.getParentAgentId()!=null && !agent.getParentAgentId().isEmpty()) {\n\t\t\t\tedge = new EdgePojo();\n\t\t\t\tedge.setSource(agent.getEntityId());\n\t\t\t\tedge.setTarget(agent.getParentAgentId());\n\t\t\t\t\n\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\tedges.add(edge);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tGraphPojo graph = new GraphPojo();\n\t\tgraph.setNodes(nodes);\n\t\tgraph.setEdges(edges);\n\t\t\n\t\treturn graph;\t\t\n\t}",
"@Override\n public Class<? extends Task> taskClass() {\n return AmpoolSourceTask.class;\n }",
"public AppSink getSinkElement() {\n return sink;\n }",
"@Override\n\tpublic ComposerStatus compose(SystemConfig config, SystemContext systemContext) throws ComposerException {\n\t\tComposerStatus status = ComposerStatus.done;\t\n\t\tSet<String> datasinkExpectedQueues = new HashSet<String>(6);\n\n\t\ttry{\n\t\t\t\n\t\t\tif(config.getDataSinks() != null){\n\t\t\t\tfor(DataSink dataSink : config.getDataSinks()){\n\n\t\t\t\t\t//if user datasink is in the ingestapi list, continue\n\t\t\t\t\tJSONObject datasinkJson = this.getDatasink(dataSink.getFqn());\n\t\t\t\t\tif (datasinkJson != null) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Generate configuration filenames\n\t\t\t\t\t\tString datasinkname = SystemBuilderUtil.getSystemParameterValue(datasinkJson, \"shortname\");\n\t\t\t\t\t\tif (datasinkname == null) {\n\t\t\t\t\t\t\tdatasinkname = StringUtils.deleteWhitespace(SystemBuilderUtil.getSystemParameterValue(datasinkJson, \"name\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (datasinkname == null) \n\t\t\t\t\t\t\tthrow new ComposerException(String.format(\"%s is missing either the name or shortname overridden parameters in the plugin.\",dataSink.getFqn()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tString pipelineFilename = String.format(\"%s.%s.xml\", PIPELINE_FILENAME, datasinkname);\n\t\t\t\t\t\tString pipelineDefaultFilename = String.format(\"%s.%s.default.xml\", PIPELINE_FILENAME, datasinkname);\n\t\t\t\t\t\tString servicesFilename = String.format(\"%s.%s.xml\", SERVICES_FILENAME, datasinkname);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * output pipeline file, common for all datasinks\n\t\t\t\t\t\t */\n\t\t\t\t\t\t((XMLInstantiationProxy<?>) (factoryDefinition.getDefaultEntry())).setDefinitionFile(pipelineDefaultFilename);\n\t\t\t\t\t\t\n\t\t\t\t\t\tFile file = new File(outDir + pipelineFilename);\n\t\t\t\t\t\tserializer.createDefinitionFile(factoryDefinition, file); //output pipeline config file\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * output pipeline file that is specific for this datasink\n\t\t\t\t\t\t */\n\t\t\t\t\t\tXMLParser tmpParser = new XMLParser(true); //create parser\n\n\t\t\t\t\t\t// dynamically build template\n\t\t\t\t\t\tString pipelineTemplate = buildDatasinkXmlTemplate(dataSink.getFqn(), datasinkJson);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//recursively replace properties in data sink template\n\t\t\t\t\t\tInputStream is = new ByteArrayInputStream(properties.filterProperty(pipelineTemplate).getBytes());\n\t\t\t\t\t\ttmpParser.readXmlFileFromStream(is); //parse template to document\n\t\t\t\t\t\tis.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//recursively search elements and attributes to replace user configured parameters\n\t\t\t\t\t\ttmpParser = replaceTemplateParameters(dataSink,tmpParser, tmpParser.getDocumentElement(), tmpParser.getDocumentElement().getNodeName());\n\t\t\t\t\t\t\n\t\t\t\t\t\ttmpParser.writeXmlFile(outDir + pipelineDefaultFilename); //output pipeline default xml file\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*\n\t\t\t\t\t\t * read services xml filefrom template, filter to resolve properties, then output\n\t\t\t\t\t\t */\n\t\t\t\t\t\ttmpParser = new XMLParser(true); //reset parser\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Dynamically generate the datasink's services.X.xml vs reading static configs from jar\n\n\t\t\t\t\t\tint numThreads = 0;\n\t\t\t\t\t\tString dataSinkProcessGroupDependencies = \"\";\n\t\t\t\t\t\tboolean usesBlockStorage = false;\n\t\t\t\t\t\tfor (DataSinkConfig sysContextDsinkConfig : systemContext.getDataSinkConfigs()) {\n\t\t\t\t\t\t\tif (sysContextDsinkConfig.getFqn().equals(dataSink.getFqn())) {\n\t\t\t\t\t\t\t\tnumThreads = sysContextDsinkConfig.getNumThreads();\n\t\t\t\t\t\t\t\tdataSinkProcessGroupDependencies = sysContextDsinkConfig.getProcessGroupDependencies();\t\n\t\t\t\t\t\t\t\tusesBlockStorage = sysContextDsinkConfig.isUsesBlockStorage();\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\tif (numThreads < 1)\n\t\t\t\t\t\t\tthrow new ComposerException(String.format(\"Unable to determine the number of threads to configure for %s\",dataSink.getFqn()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tString servicesXmlTemplate = DatasinkProcessingServicesBuilder.build(numThreads, templateDir, usesBlockStorage, dataSinkProcessGroupDependencies);\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//set queue name for processor for each data sink\n\t\t\t\t\t\tproperties.setProperty(\"generated.datasink.queue.name\", SystemBuilderUtil.generateDataModelQueueName(dataSink.getFqn()));\n\t\t\t\t\t\tdatasinkExpectedQueues.add(properties.getProperty(\"generated.datasink.queue.name\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// set the shortname for this datasink which is used for the pipeline definition reference\n\t\t\t\t\t\tproperties.setProperty(\"shortname\", datasinkname);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//recursively replace properties in data sink template\n\t\t\t\t\t\tis = new ByteArrayInputStream(properties.filterProperty(servicesXmlTemplate).getBytes());\n\t\t\t\t\t\ttmpParser.readXmlFileFromStream(is); //parse template to document\n\t\t\t\t\t\tis.close();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttmpParser.writeXmlFile(outDir + servicesFilename); //output services xml file\n\t\t\t\t\t\t\n\t\t\t\t\t\t//temporary fix, correct after v1.0 release, outputs alerting datasink topic name to property file\n\t\t\t\t\t\tif(\"com.deleidos.rtws.ext.datasink.AlertingDataSink\".equals(dataSink.getFqn())){\n\t\t\t\t\t\t\tifTopicExistsSetProperty(dataSink);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}//end if data sink exists\n\t\t\t\t}//end for\n\t\t\t}//end if data sink config from user\n\t\t}\n\t\tcatch(ComposerException ce){\n\t\t\tstatus = ComposerStatus.error;\n\t\t\tthrow ce;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tlogger.error(e.toString(), e);\n\t\t\te.printStackTrace();\n\t\t\tstatus = ComposerStatus.error;\n\t\t\tthrow new ComposerException(e.toString(), e);\n\t\t}\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (String expectedQueue : datasinkExpectedQueues) {\n\t\t\tsb.append(expectedQueue);\n\t\t\tsb.append(\",\");\t\t\t\n\t\t}\n\t\t// save off all expected internal jms queue names\n\t\tlogger.info(String.format(\"datasink.internal.queues: {%s}\",sb.toString()));\n\t\tproperties.setProperty(\"datasink.internal.queues\", sb.toString());\n\t\t\n\t\treturn status;\n\t}",
"public abstract IOpipeConfiguration config();",
"public static String getLatestProtocol() {\n return SORTED_PROTOCOLS.get(SORTED_PROTOCOLS.lastKey());\n }",
"public AppcActorServiceProvider() {\n super(NAME, BidirectionalTopicActorParams.class);\n\n addOperator(new BidirectionalTopicOperator(NAME, ModifyConfigOperation.NAME, this, AppcOperation.SELECTOR_KEYS,\n ModifyConfigOperation::new));\n }",
"public void testTransportsTransportStreamsAndNetworks()\n {\n log(\"******************************************************************\");\n log(\"* Transport and Transport Stream information *\");\n log(\"******************************************************************\");\n log(\"\");\n try\n {\n TransportHandle[] transports = sidb.getAllTransports();\n for (int i = 0; i < transports.length; i++)\n {\n TransportImpl transport = (TransportImpl) sidb.createTransport(transports[i]);\n log(\"******************************************************************\");\n\n dumpTransport(transport);\n\n // try to dump the transport streams\n TransportStreamHandle[] tsHandles = sidb.getTransportStreamsByTransport(transports[i]);\n for (int j = 0; j < tsHandles.length; j++)\n {\n TransportStreamExt ts = sidb.createTransportStream(tsHandles[j]);\n dumpTransportStream(ts);\n assertTrue(\"TransportStream's Transport does not match expected value\",\n transport.equals(ts.getTransport()));\n }\n\n // try to dump the networks\n NetworkHandle[] netHandles = sidb.getNetworksByTransport(transports[i]);\n for (int j = 0; j < netHandles.length; j++)\n {\n NetworkExt net = sidb.createNetwork(netHandles[j]);\n dumpNetwork(net);\n assertTrue(\"Networks's Transport does not match expected value\",\n transport.equals(net.getTransport()));\n }\n log(\"******************************************************************\");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"public Protocol getProtocol();",
"public KafkaStreams getKafkaStreamsInstance() {\n return kafkaStreams;\n }"
]
| [
"0.7649979",
"0.6971413",
"0.6654028",
"0.6168259",
"0.5847802",
"0.53850794",
"0.53749716",
"0.53379905",
"0.53280497",
"0.5327351",
"0.5272868",
"0.5258441",
"0.5203489",
"0.51746196",
"0.51054454",
"0.49715066",
"0.49547705",
"0.49542856",
"0.49004954",
"0.4867045",
"0.48575282",
"0.48497948",
"0.48297787",
"0.47525486",
"0.47475067",
"0.47383928",
"0.47154447",
"0.47027946",
"0.46981904",
"0.46812803",
"0.4620335",
"0.46073762",
"0.4607321",
"0.4574242",
"0.45328805",
"0.45285437",
"0.44952062",
"0.44936076",
"0.44836342",
"0.4482228",
"0.4477754",
"0.44753897",
"0.44613284",
"0.44605482",
"0.444966",
"0.44475564",
"0.44428238",
"0.44373158",
"0.44367954",
"0.44277015",
"0.44207507",
"0.44178432",
"0.4408551",
"0.4404638",
"0.44033217",
"0.4393031",
"0.43874493",
"0.4378264",
"0.43714705",
"0.43713906",
"0.4360133",
"0.43495482",
"0.43419653",
"0.43348214",
"0.4334677",
"0.43203074",
"0.43201825",
"0.4315852",
"0.43143275",
"0.43137425",
"0.43087777",
"0.4305695",
"0.4301029",
"0.43003356",
"0.4299635",
"0.42888972",
"0.42813298",
"0.42762494",
"0.42717555",
"0.42644212",
"0.42635342",
"0.42626208",
"0.42572668",
"0.42562315",
"0.4250038",
"0.42497298",
"0.42457315",
"0.42421037",
"0.4240486",
"0.42367586",
"0.42230886",
"0.422204",
"0.42197672",
"0.42181572",
"0.42178124",
"0.42083567",
"0.4206851",
"0.4202923",
"0.4200693",
"0.41939065"
]
| 0.6325736 | 3 |
Creates meters for the custom metrics, and defines the topology for the KafkaStreams app | protected void initialize() {
// Get the topology builder
KStreamBuilder builder = getBuilder();
// Build the app
kafkaStreams = new KafkaStreams(builder, streamsConfig, new ClientSupplier());
// Shutdown the entire app if an uncaught exception is encountered
kafkaStreams.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread t, Throwable e) {
log.error("Stream terminated because of uncaught exception: {}. Shutting down app", e.getMessage());
String s = stackTraceAsString((Exception) e);
log.error("Stacktrace: {}", s);
System.out.println(e);
shutdownApp();
}
});
topology = builder;
addMetrics(PipelineMetricsReporter.metrics());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected StreamsApp() {\n this.streamsConfig = new KafkaStreamsConfig().fromConfig(config);\n this.rocksDbReporter = new RocksDbMetricsReporter(this);\n }",
"@Override\n public void construct() {\n Metric metric =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom earthSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n @Override\n public String name() {\n return EARTH_KEY;\n }\n };\n Symptom moonSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return MOON_KEY;\n }\n };\n\n Metric skyLabCpu =\n new CPU_Utilization(1) {\n @Override\n public MetricFlowUnit gather(Queryable queryable) {\n return MetricFlowUnit.generic();\n }\n };\n Symptom skyLabsSymptom =\n new Symptom(1) {\n @Override\n public SymptomFlowUnit operate() {\n return SymptomFlowUnit.generic();\n }\n\n public String name() {\n return SKY_LABS_KEY;\n }\n };\n\n addLeaf(metric);\n addLeaf(skyLabCpu);\n earthSymptom.addAllUpstreams(Collections.singletonList(metric));\n moonSymptom.addAllUpstreams(Collections.singletonList(earthSymptom));\n skyLabsSymptom.addAllUpstreams(\n new ArrayList<Node<?>>() {\n {\n add(earthSymptom);\n add(moonSymptom);\n add(skyLabCpu);\n }\n });\n\n metric.addTag(LOCUS_KEY, EARTH_KEY);\n earthSymptom.addTag(LOCUS_KEY, EARTH_KEY);\n moonSymptom.addTag(LOCUS_KEY, MOON_KEY);\n skyLabCpu.addTag(LOCUS_KEY, SKY_LABS_KEY);\n skyLabsSymptom.addTag(LOCUS_KEY, SKY_LABS_KEY);\n }",
"private void createTopology() {\n deviceService = createMock(DeviceService.class);\n linkService = createMock(LinkService.class);\n\n deviceService.addListener(anyObject(DeviceListener.class));\n linkService.addListener(anyObject(LinkListener.class));\n\n createDevices(NUM_DEVICES, NUM_PORTS_PER_DEVICE);\n createLinks(NUM_DEVICES);\n addIntfConfig();\n popluateEdgePortService();\n }",
"void prepare(Map<String, Object> config, StormMetricsRegistry metricsRegistry) throws MetricException;",
"public HazelcastMetricsExports(final HazelcastInstance hazelcastInstance) {\n// new HazelcastInfoExports(hazelcastInstance).register();\n// new HazelcastClusterInfoExports(hazelcastInstance).register();\n// hazelcastStateExporters = new HazelcastStateExporters(hazelcastInstance);\n //new HazelcastInternalsExporters(hazelcastInstance);\n }",
"private void fillMonitorsMetricsMap() {\n\t\tmonitorsMetricsMap=new HashMap<>();\n\t\tmonitorsMetricsMap.put(\"RR<sub>TOT</sub>\", new String[] {rosetta.MDC_RESP_RATE.VALUE, \"MDC_DIM_RESP_PER_MIN\"});\n\t\tmonitorsMetricsMap.put(\"EtCO<sub>2</sub>\", new String[] {rosetta.MDC_AWAY_CO2_ET.VALUE, rosetta.MDC_DIM_MMHG.VALUE});\n\t\tmonitorsMetricsMap.put(\"P<sub>PEAK</sub>\", new String[] {rosetta.MDC_PRESS_AWAY_INSP_PEAK.VALUE, rosetta.MDC_DIM_CM_H2O.VALUE});\n\t\tmonitorsMetricsMap.put(\"P<sub>PLAT</sub>\", new String[] {rosetta.MDC_PRESS_RESP_PLAT.VALUE, rosetta.MDC_DIM_CM_H2O.VALUE});\n\t\tmonitorsMetricsMap.put(\"PEEP\", new String[] {\"ICE_PEEP\", rosetta.MDC_DIM_CM_H2O.VALUE});\t//TODO: Confirm there is no MDC_ for PEEP\n\t\tmonitorsMetricsMap.put(\"FiO<sub>2</sub>%\", new String[] {\"ICE_FIO2\", rosetta.MDC_DIM_PERCENT.VALUE});\t//TODO: Confirm there is no MDC_ for FiO2\n\t\tmonitorsMetricsMap.put(\"Leak %\", new String[] {rosetta.MDC_VENT_VOL_LEAK.VALUE, rosetta.MDC_DIM_PERCENT.VALUE});\t//TODO: Confirm there is no MDC_ for FiO2\n\t\t\n\t\t//Leak %\n\t}",
"KafkaMetricMeterType() {\n }",
"@Override\n public void flatMap(MetricTrends t, Collector<Tuple8<String, String, String, String, String, Integer, Integer,String>> out) throws Exception {\n // if(t.getGroup().equals(\"Group_1\") && t.getService().equals(\"Service_1B\") && t.getEndpoint().equals(\"Hostname_4\") && t.getMetric().equals(\"Metric_B\")){\n int criticalstatus = this.opsMgr.getIntStatus(\"CRITICAL\");\n int warningstatus = this.opsMgr.getIntStatus(\"WARNING\");\n int unknownstatus = this.opsMgr.getIntStatus(\"UNKNOWN\");\n\n Timeline timeline = t.getTimeline();\n TimelineIntegrator timelineIntegrator = new TimelineIntegrator();\n int[] criticalstatusInfo = timelineIntegrator.countStatusAppearances(timeline.getSamples(), criticalstatus);\n int[] warningstatusInfo = timelineIntegrator.countStatusAppearances(timeline.getSamples(), warningstatus);\n int[] unknownstatusInfo = timelineIntegrator.countStatusAppearances(timeline.getSamples(), unknownstatus);\n\n ArrayList<String> tags = (ArrayList)this.mtagsMgr.getTags(t.getMetric()).clone();\n String tagInfo = \"\";\n for (String tag : tags) {\n if (tags.indexOf(tag) == 0) {\n tagInfo = tagInfo + tag;\n } else {\n tagInfo = tagInfo + \",\" + tag;\n }\n }\n \n Tuple8<String, String, String, String, String, Integer, Integer, String> tupleCritical = new Tuple8< String, String, String, String, String, Integer, Integer, String>(\n t.getGroup(), t.getService(), t.getEndpoint(), t.getMetric(), \"CRITICAL\", criticalstatusInfo[0], criticalstatusInfo[1], tagInfo);\n out.collect(tupleCritical);\n\n Tuple8<String, String, String, String, String, Integer, Integer, String> tupleWarning = new Tuple8< String, String, String, String, String, Integer, Integer, String>(\n t.getGroup(), t.getService(), t.getEndpoint(), t.getMetric(), \"WARNING\", warningstatusInfo[0], warningstatusInfo[1], tagInfo);\n out.collect(tupleWarning);\n\n Tuple8<String, String, String, String, String, Integer, Integer, String> tupleUnknown = new Tuple8< String, String, String, String, String, Integer, Integer, String>(\n t.getGroup(), t.getService(), t.getEndpoint(), t.getMetric(), \"UNKNOWN\", unknownstatusInfo[0], unknownstatusInfo[1], tagInfo);\n\n out.collect(tupleUnknown);\n }",
"public static void main(String[] args) {\n String master = args[0];\n String topic = args[1];\n String partitionCount = args[2];\n String zkServers = args[3];\n String duration = args[4];\n String maxRate = args[5];\n String maxCores = args[6];\n\n System.out.println(\"Master: \" + master);\n System.out.println(\"Topic: \" + topic);\n System.out.println(\"Partitions: \" + partitionCount);\n System.out.println(\"Zookeeper: \" + zkServers);\n System.out.println(\"Duration: \" + duration);\n System.out.println(\"Max Rate: \" + maxRate);\n System.out.println(\"Max Cores: \" + maxCores); \n\n Map<String, Integer> topicMap = new HashMap<String, Integer>();\n topicMap.put(topic, Integer.parseInt(partitionCount));\n\n // Create the context with a 1 second batch size\n SparkConf sparkConf = new SparkConf();\n sparkConf.setMaster(master);\n sparkConf.setAppName(\"EventMonitor\");\n sparkConf.setSparkHome(System.getenv(\"SPARK_HOME\"));\n sparkConf.setJars(JavaStreamingContext.jarOfClass(EventMonitor.class));\n sparkConf.set(\"spark.streaming.receiver.maxRate\", maxRate);\n sparkConf.set(\"spark.cores.max\", maxCores);\n\n JavaStreamingContext ssc = new JavaStreamingContext(sparkConf, new Duration(Integer.parseInt(duration)));\n\n JavaPairReceiverInputDStream<String, String> messages = KafkaUtils.createStream(ssc, zkServers, GROUP_ID, topicMap);\n messages.print();\n ssc.start();\n ssc.awaitTermination();\n }",
"@Override\n\tprotected void createExtraStreams() {\n\n\t\t// Crea un store global para procesar los datos de todas las instancias de\n\t\t// vessels agregados por vesselType\n\t\t/*-aggByVesselType = builder.globalTable(vesselsAggByVesselTypeTopic,\n\t\t\t\tConsumed.with(Serdes.String(), hashMapSerdeAggregationVesselTypeInVessel));-*/\n\n\t\tvesselType = builder.globalTable(vesselTypeTopic);\n\n\t\t// vesselTypeEvents = builder.stream(vesselTypeUpdatedTopic);\n\n\t\trealtimeVessel = builder.stream(realtimeVesselsTopic);\n\t}",
"Map<Long, Double> getTopologyLevelMetrics(String topologyName, String metricName, AggregateFunction aggrFunction, long from, long to);",
"private MessageProducer<Long, Long> createProducerWithConfig() {\n return kafka.registerProducer(\n ProducerRegistration.builder()\n .forTopic(kafka.getTopicConfiguration(\"example1\"))\n .withDefaultProducer()\n .withKeySerializer(new LongSerializer())\n .withValueSerializer(new LongSerializer())\n .build());\n }",
"public JavaRDD<MetricDto> readMetrics() {\n Date windowStartTime = DateUtil.getWindowStartTime();\n Date windowEndTime = DateUtil.getWindowEndTime();\n return CassandraJavaUtil.javaFunctions(sparkContext)\n .cassandraTable(\"hw2\", \"metric\", CassandraJavaUtil.mapRowTo(MetricDto.class))\n //Select only log message time and priority\n .select(\"id\", \"time\", \"value\")\n .where(\"time >= ? and time <= ?\", windowStartTime, windowEndTime);\n }",
"private void initializeProducers() {\r\n\t\tlogger.info(\"--> initializeProducers\");\r\n\t\t// actual Kafka producer used by all generic producers\r\n\t\ttry {\r\n\t\t\tsharedAvroProducer = new KafkaProducer<EDXLDistribution, IndexedRecord>(ProducerProperties.getInstance(connectModeSec));\r\n\t\t} catch (Exception cEx) {\r\n\t\t\tlogger.info(\"CISAdapter failed to create a KafkaProducer!\");\r\n\t\t\tcEx.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tlogger.info(\"Check Adpter DEV Mode\");\r\n\t\t\theartbeatProducer = new HeartbeatProducer(sharedAvroProducer, TopicConstants.HEARTBEAT_TOPIC);\t\r\n\t\t\theartbeatProducer.sendInitialHeartbeat();\r\n\t\t\taddAvroReceiver(TopicConstants.ADMIN_HEARTBEAT_TOPIC, new AdminHeartbeatConsumer(null));\r\n\t\t\tadpterMode = AdapterMode.DEV_MODE;\r\n\t\t} catch (Exception cEx) {\r\n\t\t\tlogger.info(\"CISAdapter initialized failed with non secure connection!\");\r\n\t\t\tlogger.info(\"Check Adpter SEC DEV Mode\");\r\n\t\t\tconnectModeSec = true;\r\n\t\t\tsharedAvroProducer = new KafkaProducer<EDXLDistribution, IndexedRecord>(ProducerProperties.getInstance(connectModeSec));\r\n\t\t\ttry {\r\n\t\t\t\theartbeatProducer = new HeartbeatProducer(sharedAvroProducer, TopicConstants.HEARTBEAT_TOPIC);\t\r\n\t\t\t\theartbeatProducer.sendInitialHeartbeat();\r\n\t\t\t\taddAvroReceiver(TopicConstants.ADMIN_HEARTBEAT_TOPIC, new AdminHeartbeatConsumer(null));\r\n\t\t\t\tadpterMode = AdapterMode.SEC_DEV_MODE;\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.info(\"Adapter running in TRIAL Mode, wait for AdminTool heartbeat for futur initalization!\");\r\n\t\t\t\taddAvroReceiver(TopicConstants.ADMIN_HEARTBEAT_TOPIC, new AdminHeartbeatConsumer(CISAdapter.aMe));\r\n\t\t\t\tadpterMode = AdapterMode.TRIAL_MODE;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (adpterMode != AdapterMode.TRIAL_MODE) {\r\n\t\t\tinitCoreTopics();\r\n\t\t\tadapterInitDone = true;\t\r\n\t\t} \r\n\t\tlogger.info(\"initializeProducers -->\");\r\n\t}",
"MetricModel createMetricModel();",
"MeterProvider create();",
"public static void main(String[] args) {\n\n final StreamsBuilder builder = new StreamsBuilder();\n\n // get and set properties\n RtdStreamProperties rtdStreamProperties = new RtdStreamProperties();\n Properties props = rtdStreamProperties.getProperties();\n\n props.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.String().getClass());\n props.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, SpecificAvroSerde.class);\n\n // BusPosition serializer/deserializer\n final Serde<BusPositionFeed> serdeBusPosition = new SpecificAvroSerde<>();\n serdeBusPosition.configure((Map) props, false);\n\n // create key/value store for bus positions\n final StoreBuilder<KeyValueStore<String, BusPositionFeed>> busPositionStore = Stores.keyValueStoreBuilder(\n Stores.persistentKeyValueStore(\"busPositionStore\"),\n Serdes.String(),\n Serdes.serdeFrom(serdeBusPosition.serializer(), serdeBusPosition.deserializer()));\n\n builder.addStateStore(busPositionStore);\n\n // stream positions from the rtd-bus-position topic\n final KStream<String, BusPositionFeed> rtdBusPositionStream = builder.stream(\"rtd-bus-position\");\n\n // calculate the speed using the Haversine transform\n final KStream<String, BusPositionSpeed> rtdBusPositionStreamEnriched =\n rtdBusPositionStream.transform(new HaversineTransformerSupplier(\"busPositionStore\"), \"busPositionStore\");\n\n // remove any enriched records with impossible speeds (i.e. > 140 mph), add the Uber H3 hexagon, and write\n // those records to the rtd-bus-position-enriched topic.\n rtdBusPositionStreamEnriched\n .filter((key, busPositionSpeed) -> busPositionSpeed.getMilesPerHour() < 140)\n .mapValues(busPositionSpeed -> {\n\n H3Core h3 = null;\n String hexAddr = \"\";\n try {\n // a resolution of 12 divides the land into hexagons that are about 307 square meters\n // See https://github.com/uber/h3/blob/master/docs/core-library/restable.md and plug the hexagon\n // area into https://www.wolframalpha.com/ to translate\n\n h3 = H3Core.newInstance();\n hexAddr = h3.geoToH3Address(busPositionSpeed.getLocation().getLat(),\n busPositionSpeed.getLocation().getLon(),\n 12);\n\n } catch (IOException e) {\n LOG.error(\"Error creating H3 address for location: \" + busPositionSpeed.getLocation());\n LOG.error(e.getMessage());\n }\n\n busPositionSpeed.setH3(hexAddr);\n return busPositionSpeed;\n })\n .to(\"rtd-bus-position-enriched\");\n\n // run it\n final Topology topology = builder.build();\n LOG.info(topology.describe().toString()); // write out the topology so it can be visualized in https://zz85.github.io/kafka-streams-viz/\n final KafkaStreams streams = new KafkaStreams(topology, props);\n streams.cleanUp();\n streams.start();\n\n // Add shutdown hook to respond to SIGTERM and gracefully close Kafka Streams\n Runtime.getRuntime().addShutdownHook(new Thread(streams::close));\n\n }",
"@Before\n public void setUp() {\n meter = new Meter<Events>(Events.values());\n //// set up some metrics that you want to track\n // sum of all puts to the read counter (total bytes read)\n meter.addCountMetric(Events.bytes_read, \"totalBytesReceived\");\n // max read size\n meter.addMaxMetric(Events.bytes_read, \"maxReadSize\");\n // average read size\n meter.addAverageMetric(Events.bytes_read, \"avgReadSize\");\n // rate metric = count / time since last reset (bytes read per second)\n meter.addRateMetric(Events.bytes_read, \"inBPS\");\n }",
"@Override\n\t\tpublic void prepare(Map conf, TopologyContext context, OutputCollector collector) {\n\t\t\ttry {\n\t\t\t\tcluster = Cluster.builder().addContactPoint(\"192.168.2.10\").build(); //vagrant cassandra cluster\n\t\t\t\tsession = cluster.connect(); \n\t\t\t}catch(NoHostAvailableException et){\n\t\t\t\ttry{\n\t\t\t\t\tcluster = Cluster.builder().addContactPoint(\"127.0.0.1\").build(); //localhost\n\t\t\t\t\tsession = cluster.connect();\n\t\t\t\t}catch(NoHostAvailableException et1){\n\t\t\t\t\t//can't get to a cassandra cluster bug out\n\t\t\t\t\treturn;\n\n\t\t\t\t}\n\t\t\t} \n\t\t\tKeyspaces kp = new Keyspaces();\n\t\t\tkp.SetUpKeySpaces(cluster);\n\t\t\tInsertStatement = session.prepare(\"insert into mzMLKeyspace.mzml (name,scan,mzarray,intensityarray)\" +\n\t\t\t\t\t\" VALUES (?, ?, ?,?);\");\n\t\t\t_collector = collector;\n\t\t\tComponentId=context.getThisComponentId();\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public void initialize() throws Exception {\n sampleVertex = null;\n sampleMap = null;\n\n // Reset static variables cleared for avoiding OOM.\n new JVMReuseImpl().cleanupStaticData();\n\n // Set an empty reporter for now. Once we go to Tez 0.8\n // which adds support for mapreduce like progress (TEZ-808),\n // we need to call progress on Tez API\n PhysicalOperator.setReporter(new ProgressableReporter());\n\n UserPayload payload = getContext().getUserPayload();\n conf = TezUtils.createConfFromUserPayload(payload);\n SpillableMemoryManager.getInstance().configure(conf);\n PigContext.setPackageImportList((ArrayList<String>) ObjectSerializer\n .deserialize(conf.get(\"udf.import.list\")));\n Properties log4jProperties = (Properties) ObjectSerializer\n .deserialize(conf.get(PigImplConstants.PIG_LOG4J_PROPERTIES));\n if (log4jProperties != null) {\n PropertyConfigurator.configure(log4jProperties);\n }\n\n // To determine front-end in UDFContext\n conf.set(MRConfiguration.JOB_APPLICATION_ATTEMPT_ID, getContext().getUniqueIdentifier());\n\n // For compatibility with mapreduce. Some users use these configs in their UDF\n // Copied logic from the tez class - org.apache.tez.mapreduce.output.MROutput\n // Currently isMapperOutput is always false. Setting it to true produces empty output with MROutput\n boolean isMapperOutput = conf.getBoolean(MRConfig.IS_MAP_PROCESSOR, false);\n TaskAttemptID taskAttemptId = org.apache.tez.mapreduce.hadoop.mapreduce.TaskAttemptContextImpl\n .createMockTaskAttemptID(getContext().getApplicationId().getClusterTimestamp(),\n getContext().getTaskVertexIndex(), getContext().getApplicationId().getId(),\n getContext().getTaskIndex(), getContext().getTaskAttemptNumber(), isMapperOutput);\n conf.set(JobContext.TASK_ATTEMPT_ID, taskAttemptId.toString());\n conf.set(JobContext.TASK_ID, taskAttemptId.getTaskID().toString());\n conf.setBoolean(JobContext.TASK_ISMAP, isMapperOutput);\n conf.setInt(JobContext.TASK_PARTITION,\n taskAttemptId.getTaskID().getId());\n conf.set(JobContext.ID, taskAttemptId.getJobID().toString());\n if (conf.get(PigInputFormat.PIG_INPUT_LIMITS) != null) {\n // Has Load and is a root vertex\n conf.setInt(JobContext.NUM_MAPS, getContext().getVertexParallelism());\n } else {\n conf.setInt(JobContext.NUM_REDUCES, getContext().getVertexParallelism());\n }\n\n conf.set(PigConstants.TASK_INDEX, Integer.toString(getContext().getTaskIndex()));\n UDFContext.getUDFContext().addJobConf(conf);\n UDFContext.getUDFContext().deserialize();\n\n String execPlanString = conf.get(PLAN);\n execPlan = (PhysicalPlan) ObjectSerializer.deserialize(execPlanString);\n SchemaTupleBackend.initialize(conf);\n PigMapReduce.sJobContext = HadoopShims.createJobContext(conf, new org.apache.hadoop.mapreduce.JobID());\n\n // Set the job conf as a thread-local member of PigMapReduce\n // for backwards compatibility with the existing code base.\n PigMapReduce.sJobConfInternal.set(conf);\n\n Utils.setDefaultTimeZone(conf);\n\n boolean aggregateWarning = \"true\".equalsIgnoreCase(conf.get(\"aggregate.warning\"));\n PigStatusReporter pigStatusReporter = PigStatusReporter.getInstance();\n pigStatusReporter.setContext(new TezTaskContext(getContext()));\n pigHadoopLogger = PigHadoopLogger.getInstance();\n pigHadoopLogger.setReporter(pigStatusReporter);\n pigHadoopLogger.setAggregate(aggregateWarning);\n PhysicalOperator.setPigLogger(pigHadoopLogger);\n\n LinkedList<TezTaskConfigurable> tezTCs = PlanHelper.getPhysicalOperators(execPlan, TezTaskConfigurable.class);\n for (TezTaskConfigurable tezTC : tezTCs){\n tezTC.initialize(getContext());\n }\n }",
"private static Topology getTopology(){\n final Serde<String> stringSerde = Serdes.String();\n final Serde<VehiclePosition> vpSerde = getJsonSerde();\n StreamsBuilder builder = new StreamsBuilder();\n KStream<String,VehiclePosition> positions = builder\n .stream(\"vehicle-positions\", Consumed.with(stringSerde, vpSerde));\n KStream<String,VehiclePosition> operator47Only =\n positions.filter((key,value) -> value.VP.oper == 47); \n operator47Only.to(\"vehicle-positions-oper-47\",\n Produced.with(stringSerde, vpSerde));\n Topology topology = builder.build();\n return topology;\n }",
"private TelemetryMessageHandler(){\n super();\n messageList = new TelemetryMessageList();\n telemetryArrivalMap = new TelemetryArrivalMap();\n }",
"protected StreamsApp(StreamsConfig streamsConfig) {\n this.streamsConfig = streamsConfig;\n this.rocksDbReporter = new RocksDbMetricsReporter(this);\n }",
"@Test\n public void testOpen_useDefaults() {\n // Create empty config\n final Map<String, Object> config = new HashMap<>();\n\n // Create mock TopologyContet\n final TopologyContext mockTopologyContext = mock(TopologyContext.class);\n\n // Create recorder and call open.\n final StormRecorder recorder = new StormRecorder();\n recorder.open(config, mockTopologyContext);\n\n // Validate we got called as expected.\n\n // Shouldn't have interacted with the taskId\n verify(mockTopologyContext, never()).getThisTaskIndex();\n\n // Should have registered 4 metrics.\n verify(mockTopologyContext, times(1)).registerMetric(eq(\"GAUGES\"), any(MultiAssignableMetric.class), eq(defaultTimeWindow));\n verify(mockTopologyContext, times(1)).registerMetric(eq(\"TIMERS\"), any(MultiReducedMetric.class), eq(defaultTimeWindow));\n verify(mockTopologyContext, times(1)).registerMetric(eq(\"COUNTERS\"), any(MultiCountMetric.class), eq(defaultTimeWindow));\n\n assertEquals(\"\", recorder.getMetricPrefix(), \"Should have empty prefix\");\n assertTrue(recorder.getMetricPrefix().isEmpty(), \"Should have empty prefix\");\n }",
"void composeTelemetry() {\n telemetry.addAction(new Runnable() {\n @Override\n public void run() {\n // Acquiring the angles is relatively expensive; we don't want\n // to do that in each of the three items that need that info, as that's\n // three times the necessary expense.\n angles = imu.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX);\n gravity = imu.getGravity();\n }\n });\n\n telemetry.addLine()\n .addData(\"status\", new Func<String>() {\n @Override public String value() {\n return imu.getSystemStatus().toShortString();\n }\n })\n .addData(\"calib\", new Func<String>() {\n @Override\n public String value() {\n return imu.getCalibrationStatus().toString();\n }\n });\n\n telemetry.addLine()\n .addData(\"headingCorrectorLeft \", new Func<String>() {\n @Override public String value() {\n return formatDouble(headingCorrectorLeft);\n }\n })\n .addData(\"headingCorrectorRight \", new Func<String>() {\n @Override\n public String value() {\n return formatDouble(headingCorrectorRight);\n }\n });\n telemetry.addLine()\n .addData(\"currentHeading \", new Func<String>() {\n @Override public String value() {\n return formatDouble(currentHeading);\n }\n })\n .addData(\"diffFromStartHeading \", new Func<String>() {\n @Override\n public String value() {\n return formatDouble(diffFromStartHeading);\n }\n });\n telemetry.addLine()\n .addData(\"heading\", new Func<String>() {\n @Override\n public String value() {\n return formatAngle(angles.angleUnit, angles.firstAngle);\n }\n })\n .addData(\"roll\", new Func<String>() {\n @Override public String value() {\n return formatAngle(angles.angleUnit, angles.secondAngle);\n }\n })\n .addData(\"pitch\", new Func<String>() {\n @Override public String value() {\n return formatAngle(angles.angleUnit, angles.thirdAngle);\n }\n });\n telemetry.addLine()\n .addData(\"Light1 Raw\", new Func<String>() {\n @Override public String value() {\n return formatDouble(lightSensor1.getRawLightDetected());\n }\n })\n .addData(\"Normal\", new Func<String>() {\n @Override public String value() {\n return formatDouble(lightSensor1.getLightDetected());\n }\n });\n telemetry.addLine()\n .addData(\"Motor Power Left1\", new Func<String>() {\n @Override public String value() {\n return formatDegrees(motorLeft1Power);\n }\n })\n .addData(\"Left2\", new Func<String>() {\n @Override\n public String value() {\n return formatDouble(motorLeft2Power);\n }\n })\n .addData(\"Right1\", new Func<String>() {\n @Override\n public String value() {\n return formatDouble(motorRight1Power);\n }\n })\n .addData(\"Right2\", new Func<String>() {\n @Override\n public String value() {\n return formatDouble(motorRight2Power);\n }\n });\n telemetry.addLine()\n .addData(\"Position Left\", new Func<String>() {\n @Override\n public String value() {\n return formatDouble(positionLeft);\n }\n })\n .addData(\"Right\", new Func<String>() {\n @Override public String value() {\n return formatDouble(positionRight);\n }\n });\n telemetry.addLine()\n .addData(\"Control Count\", new Func<String>() {\n @Override public String value() {\n return formatDouble(count);\n }\n });\n telemetry.addLine()\n .addData(\"currentState\", new Func<String>() {\n @Override\n public String value() {\n return currentState.name();\n }\n });\n telemetry.addLine()\n .addData(\"nextState\", new Func<String>() {\n @Override\n public String value() {\n return nextState.name();\n }\n });\n }",
"MetricsFactory getMetricsFactory();",
"protected void createTelemetryMetadata(SpaceSystemType spaceSystem)\n {\n spaceSystem.setTelemetryMetaData(factory.createTelemetryMetaDataType());\n }",
"@Override\n \t\tprotected void setup(Context context){\n \t\t\tint port = 5701 + context.getTaskAttemptID().getId()%numInstances;\n \t\t\t//System.out.println(\"Connecting to port \" + port);\n \t\t\tClientConfig clientConfig = new ClientConfig();\n \t\t\tclientConfig.addAddress(\"127.0.0.1:\" + port);\n \t\t\tthis.client = HazelcastClient.newHazelcastClient(clientConfig);\n \t\t\tthis.map = client.getMap(\"kmer\");\n \t\t}",
"Map<Long, Double> getMetrics(String topologyName, String componentId, String metricName, AggregateFunction aggrFunction, long from, long to);",
"private void addMetrics(Map<MetricName, KafkaMetric> kafkaMetrics) {\n Set<MetricName> metricKeys = kafkaMetrics.keySet();\n for (MetricName key : metricKeys) {\n KafkaMetric metric = kafkaMetrics.get(key);\n String metricName = getMetricName(metric.metricName());\n if (metrics.getNames().contains(metricName)) {\n metrics.remove(metricName);\n }\n metrics.register(metricName, new Gauge<Double>() {\n @Override\n public Double getValue() {\n return metric.value();\n }\n });\n }\n }",
"public interface PropertyKeys {\n\n String PRO_FILE_NAME = \"MyPerf4JPropFile\";\n\n interface Basic {\n\n ConfigKey APP_NAME = ConfigKey.of(\"app_name\", \"AppName\");\n\n ConfigKey DEBUG = ConfigKey.of(\"debug\", \"Debug.PrintDebugLog\");\n\n ConfigKey PROPERTIES_FILE_DIR = ConfigKey.of(\"properties.dir\", \"MyPerf4JPropDIR\");\n }\n\n interface HttpServer {\n\n ConfigKey PORT = ConfigKey.of(\"http.server.port\", \"http.server.port\");\n\n ConfigKey MIN_WORKERS = ConfigKey.of(\"http.server.min_workers\", \"http.server.min_workers\");\n\n ConfigKey MAX_WORKERS = ConfigKey.of(\"http.server.max_workers\", \"http.server.max_workers\");\n\n ConfigKey ACCEPT_COUNT = ConfigKey.of(\"http.server.accept_count\", \"http.server.accept_count\");\n }\n\n interface Metrics {\n\n ConfigKey EXPORTER = ConfigKey.of(\"metrics.exporter\", \"MetricsProcessorType\");\n\n ConfigKey TIME_SLICE_METHOD = ConfigKey.of(\"metrics.time_slice.method\", \"MethodMilliTimeSlice\");\n\n ConfigKey TIME_SLICE_JVM = ConfigKey.of(\"metrics.time_slice.jvm\", \"JvmMilliTimeSlice\");\n\n ConfigKey METHOD_SHOW_PARAMS = ConfigKey.of(\"metrics.method.show_params\", \"ShowMethodParams\");\n\n ConfigKey CLASS_LEVEL_MAPPINGS = ConfigKey.of(\"metrics.method.class_level_mappings\", \"ClassLevelMapping\");\n\n ConfigKey LOG_METHOD = ConfigKey.of(\"metrics.log.method\", \"MethodMetricsFile\");\n\n ConfigKey LOG_CLASS_LOADING = ConfigKey.of(\"metrics.log.class_loading\", \"ClassMetricsFile\");\n\n ConfigKey LOG_GC = ConfigKey.of(\"metrics.log.gc\", \"GCMetricsFile\");\n\n ConfigKey LOG_MEMORY = ConfigKey.of(\"metrics.log.memory\", \"MemMetricsFile\");\n\n ConfigKey LOG_BUFF_POOL = ConfigKey.of(\"metrics.log.buff_pool\", \"BufPoolMetricsFile\");\n\n ConfigKey LOG_THREAD = ConfigKey.of(\"metrics.log.thread\", \"ThreadMetricsFile\");\n\n ConfigKey LOG_FILE_DESC = ConfigKey.of(\"metrics.log.file_desc\", \"FileDescMetricsFile\");\n\n ConfigKey LOG_COMPILATION = ConfigKey.of(\"metrics.log.compilation\", \"CompilationMetricsFile\");\n\n ConfigKey LOG_ROLLING_TIME_UNIT = ConfigKey.of(\"metrics.log.rolling.time_unit\", \"LogRollingTimeUnit\");\n\n ConfigKey LOG_RESERVE_COUNT = ConfigKey.of(\"metrics.log.reserve.count\", \"LogReserveCount\");\n }\n\n interface InfluxDB {\n\n ConfigKey VERSION = ConfigKey.of(\"influxdb.version\", \"influxdb.version\");\n\n ConfigKey HOST = ConfigKey.of(\"influxdb.host\", \"influxdb.host\");\n\n ConfigKey PORT = ConfigKey.of(\"influxdb.port\", \"influxdb.port\");\n\n ConfigKey ORG_NAME = ConfigKey.of(\"influxdb.orgName\", \"influxdb.orgName\");\n\n ConfigKey DATABASE = ConfigKey.of(\"influxdb.database\", \"influxdb.database\");\n\n ConfigKey USERNAME = ConfigKey.of(\"influxdb.username\", \"influxdb.username\");\n\n ConfigKey PASSWORD = ConfigKey.of(\"influxdb.password\", \"influxdb.password\");\n\n ConfigKey CONN_TIMEOUT = ConfigKey.of(\"influxdb.conn_timeout\", \"influxdb.conn_timeout\");\n\n ConfigKey READ_TIMEOUT = ConfigKey.of(\"influxdb.read_timeout\", \"influxdb.read_timeout\");\n }\n\n interface Filter {\n\n ConfigKey PACKAGES_INCLUDE = ConfigKey.of(\"filter.packages.include\", \"IncludePackages\");\n\n ConfigKey PACKAGES_EXCLUDE = ConfigKey.of(\"filter.packages.exclude\", \"ExcludePackages\");\n\n ConfigKey METHODS_EXCLUDE = ConfigKey.of(\"filter.methods.exclude\", \"ExcludeMethods\");\n\n ConfigKey METHODS_EXCLUDE_PRIVATE = ConfigKey.of(\"filter.methods.exclude_private\", \"ExcludePrivateMethod\");\n\n ConfigKey CLASS_LOADERS_EXCLUDE = ConfigKey.of(\"filter.class_loaders.exclude\", \"ExcludeClassLoaders\");\n }\n\n interface Recorder {\n\n ConfigKey BACKUP_COUNT = ConfigKey.of(\"recorders.backup_count\", \"BackupRecordersCount\");\n\n ConfigKey MODE = ConfigKey.of(\"recorder.mode\", \"RecorderMode\");\n\n ConfigKey SIZE_TIMING_ARR = ConfigKey.of(\"recorder.size.timing_arr\", \"ProfilingTimeThreshold\");\n\n ConfigKey SIZE_TIMING_MAP = ConfigKey.of(\"recorder.size.timing_map\", \"ProfilingOutThresholdCount\");\n }\n}",
"public static Topology getTopology() {\n StreamsBuilder builder = new StreamsBuilder();\n\n KafkaStreamsRunnerDSL uot = new KafkaStreamsRunnerDSL();\n uot.buildPipeline(builder);\n\n // build the topology and start streaming\n Topology topology = builder.build();\n return topology;\n }",
"private void writeMetrics() {\n if (metrics.size() > 0) {\n try {\n String payload = pickleMetrics(metrics);\n int length = payload.length();\n byte[] header = ByteBuffer.allocate(4).putInt(length).array();\n socket.getOutputStream().write(header);\n writer.write(payload);\n writer.flush();\n } catch (Exception e) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Error writing to Graphite\", e);\n } else {\n LOGGER.warn(\"Error writing to Graphite: {}\", e.getMessage());\n }\n }\n\n // if there was an error, we might miss some data. for now, drop those on the floor and\n // try to keep going.\n LOGGER.debug(\"Wrote {} metrics\", metrics.size());\n\n metrics.clear();\n }\n }",
"@SuppressWarnings(\"rawtypes\")\n\tpublic void prepare(Map map, TopologyContext context, OutputCollector collector) {\n\t\tthis.outputCollector = collector;\n\t\ttry {\n\t\t\tMqttConnectOptions conn = DAGUtils.connectToMqtt();\n\t\t\tmqtt = new MqttClient(DAGUtils.mqttconnect, MqttClient.generateClientId());\n\t\t\tmqtt.setCallback(this);\n\t\t\tmqtt.connect(conn);\n\t\t\tmqtt.subscribe(controlTopic, 2);\n\t\t\tlong tid = Thread.currentThread().getId();\n\t\t\t//System.out.println(\"OPMW_SS,\" + System.currentTimeMillis() + \",BT,bolt-\" + boltID + \",\" + pause + \",\" + forward);\n\t\t\t//System.out.println(\"WORKER_PORT,\"+context.getThisWorkerPort()+\",COMPONENT,\" + context.getThisComponentId() + \",TASK,\" + context.getThisTaskId() + \",BOLT_ID,bolt-\" + boltID + \",TT_ID,\"+tid);\n\t\t\t\n\t\t\t\n\t\t} catch(MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public KafkaConfig() { }",
"public void instantiation() {\n TokenCredential tokenCredential = new DefaultAzureCredentialBuilder().build();\n\n // BEGIN: com.azure.monitor.query.MetricsQueryClient.instantiation\n MetricsQueryClient metricsQueryClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildClient();\n // END: com.azure.monitor.query.MetricsQueryClient.instantiation\n\n // BEGIN: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n MetricsQueryAsyncClient metricsQueryAsyncClient = new MetricsQueryClientBuilder()\n .credential(tokenCredential)\n .buildAsyncClient();\n // END: com.azure.monitor.query.MetricsQueryAsyncClient.instantiation\n }",
"public Feeder() {\n beltMotor.configPeakOutputForward(1D/3D, 10);\n beltMotor.configPeakOutputReverse(-1D/3D, 10);\n ejectMotor.configPeakOutputForward(1, 10);\n ejectMotor.configPeakOutputReverse(-1, 10);\n\n beltMotor.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative);\n\n SmartDashboard.putNumber(\"Feeder.kBeltIntakeSpeed\", kBeltIntakeSpeed);\n SmartDashboard.putNumber(\"Feeder.kRollerIntakeSpeed\", kRollerIntakeSpeed);\n SmartDashboard.putNumber(\"Feeder.kBeltEjectSpeed\", kBeltEjectSpeed);\n SmartDashboard.putNumber(\"Feeder.kRollerEjectSpeed\", kRollerEjectSpeed);\n SmartDashboard.putNumber(\"Feeder.kInSensorMinDistance\", kInSensorMinDistance);\n SmartDashboard.putNumber(\"Feeder.kInSensorMaxDistance\", kInSensorMaxDistance);\n SmartDashboard.putNumber(\"Feeder.kOutSensorMinDistance\", kOutSensorMinDistance);\n SmartDashboard.putNumber(\"Feeder.kOutSensorMaxDistance\", kOutSensorMaxDistance);\n SmartDashboard.putNumber(\"Feeder.limitDistance\", limitDistance);\n }",
"public void createMBeanProxies() {\n createMBeanProxy(EngineMetricMBean.class, getObjectName(EngineMetric.class));\n createMBeanProxy(StatementMetricMBean.class, getObjectName(StatementMetric.class));\n }",
"public MTPostEditDistanceReportGenerator()\n {\n\n }",
"io.netifi.proteus.admin.om.Metrics getMetrics();",
"public StormMetricProcessor getStormMetricProcessor(final String topologyName,\n final String metricsServerHost,\n final int metricsServerPort) {\n try {\n final Constructor<?> constructor = Class.forName(getStormMetricGaugeClassName()).getConstructor(String.class,\n String.class,\n Integer.class);\n return (StormMetricProcessor) constructor.newInstance(topologyName, metricsServerHost, metricsServerPort);\n } catch (final Exception e) {\n throw new RuntimeException(e);\n }\n }",
"public RedisTopicMapSystem() {\r\n\t}",
"Properties defaultTelemetryConfig();",
"public static void main(String[] args) throws Exception {\n\t\tProperties props = new Properties();\n\t\tprops.put(\"bootstrap.servers\", \"127.0.0.1:9092\");\n\t\tprops.put(\"acks\", \"all\");\n\t\tprops.put(\"retries\", 0);\n\t\tprops.put(\"batch.size\", 16384);\n\t\tprops.put(\"linger.ms\", 1);\n\t\tprops.put(\"buffer.memory\", 33554432);\n\t\tprops.put(\"key.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\n\t\tprops.put(\"value.serializer\", \"org.apache.kafka.common.serialization.StringSerializer\");\n\n\t\t/*\n\t\t * Define new Kafka producer\n\t\t */\n\t\t@SuppressWarnings(\"resource\")\n\t\tProducer<String, String> producer = new KafkaProducer<>(props);\n\n\t\t/*\n\t\t * parallel generation of JSON messages on Transaction topic\n\t\t * \n\t\t * this could also include business logic, projection, aggregation, etc.\n\t\t */\n\t\tThread transactionThread = new Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tString topic = \"Transaction\";\n\t\t\t\tList<JSONObject> transactions = new ArrayList<JSONObject>();\n\t\t\t\tinitJSONData(\"ETLSpark_Transactions.json\", transactions);\n\t\t\t\tfor (int i = 0; i < transactions.size(); i++) {\n\t\t\t\t\tif (i % 200 == 0) {\n\t\t\t\t\t\tSystem.out.println(\"200 Transaction Messages procuded\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tproducer.send(new ProducerRecord<String, String>(topic, Integer.toString(i), transactions.get(i).toString()));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * parallel generation of customer topic messages \n\t\t */\n\t\tThread customerThread = new Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tString topic = \"Customer\";\n\t\t\t\tList<JSONObject> customer = new ArrayList<JSONObject>();\n\t\t\t\tinitJSONData(\"ETLSpark_Customer.json\", customer);\n\t\t\t\tfor (int i = 0; i < customer.size(); i++) {\n\t\t\t\t\tif (i % 200 == 0) {\n\t\t\t\t\t\tSystem.out.println(\"200 Customer Messages procuded\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tproducer.send(new ProducerRecord<String, String>(topic, Integer.toString(i), customer.get(i).toString()));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * parallel generation of messages (variable produceMessages)\n\t\t * \n\t\t * generated messages are based on mockaroo api\n\t\t */\n\t\tint produceMessages = 100000;\n\t\tThread accountThread = new Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tString topic = \"Account\";\n\t\t\t\tfor (int i = 0; i < produceMessages; i++) {\n//\t\t\t\t\tSystem.out.println(\"Account procuded\");\n\t\t\t\t\tproducer.send(new ProducerRecord<String, String>(topic, Integer.toString(i), getRandomTransactionJSON(i)));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttransactionThread.start();\n\t\tcustomerThread.start();\n\t\taccountThread.start();\n\n\t}",
"private static void runKafkaStreams() {\n final KStream<SolarModuleKey, SolarModuleData> source = BUILDER\n .stream(IN_TOPIC, Consumed.with(STRING_SERDE, SOLAR_MODULE_DATA_SERDE))\n .map((k, v) -> KeyValue.pair(new SolarModuleKey(v.getPanel(), v.getName()), v));\n\n source.foreach((k, v) -> {\n log.info(\"NEW DATA: [{}|{}]: {}\", k.getPanelName(), k.getModuleName(), v.getPower());\n });\n\n // calculating sum power and average power for modules\n final KStream<Windowed<SolarModuleKey>, SolarModuleAggregator> aggPowerPerSolarModuleStream = source\n .groupByKey(Grouped.with(SOLAR_MODULE_KEY_SERDE, SOLAR_MODULE_DATA_SERDE))\n .windowedBy(TIME_WINDOWS)\n .aggregate(SolarModuleAggregator::new,\n (modelKey, value, aggregation) -> aggregation.updateFrom(value),\n Materialized.with(SOLAR_MODULE_KEY_SERDE,\n SOLAR_MODULE_AGGREGATOR_SERDE))\n .suppress(Suppressed.untilTimeLimit(DURATION, Suppressed.BufferConfig.unbounded()))\n .toStream();\n\n aggPowerPerSolarModuleStream.foreach((k, v) -> log.info(\"PerSolarModule: [{}|{}|{}]: {}:{}\",\n k.window().endTime().getEpochSecond(), k.key().getPanelName(), k.key().getModuleName(),\n v.getSumPower(), v.getCount()));\n\n // calculating sum power and average power for panels\n final KStream<Windowed<String>, SolarPanelAggregator> aggPowerPerSolarPanelStream = aggPowerPerSolarModuleStream\n .map((k, v) -> KeyValue.pair(new Windowed<>(k.key().getPanelName(), k.window()), v))\n .groupByKey(Grouped.with(WINDOWED_STRING_SERDE, SOLAR_MODULE_AGGREGATOR_SERDE))\n .aggregate(SolarPanelAggregator::new,\n (panelKey, value, aggregation) -> aggregation.updateFrom(value),\n Materialized.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_SERDE))\n .suppress(Suppressed.untilTimeLimit(DURATION, Suppressed.BufferConfig.unbounded()))\n .toStream();\n aggPowerPerSolarPanelStream.foreach((k, v) -> log.info(\"PerSolarPanel: [{}|{}]: {}:{}\",\n k.window().endTime().getEpochSecond(), k.key(), v.getSumPower(), v.getCount()));\n\n // if used for join more than once, the exception \"TopologyException: Invalid\n // topology:\" will be thrown\n final KStream<Windowed<String>, SolarModuleAggregator> aggPowerPerSolarModuleForJoinStream = aggPowerPerSolarModuleStream\n .map((k, v) -> KeyValue.pair(new Windowed<>(k.key().getPanelName(), k.window()), v));\n\n // joining aggregated panels with aggregated modules\n // need for calculating sumSquare and deviance\n final KStream<Windowed<String>, SolarPanelAggregatorJoiner> joinedAggPanelWithAggModule = aggPowerPerSolarPanelStream\n .join(aggPowerPerSolarModuleForJoinStream, SolarPanelAggregatorJoiner::new,\n JOIN_WINDOWS,\n Joined.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_SERDE,\n SOLAR_MODULE_AGGREGATOR_SERDE));\n\n // calculating sumSquare and deviance\n final KStream<Windowed<String>, SolarPanelAggregator> aggPowerPerSolarPanelFinalStream = joinedAggPanelWithAggModule\n .groupByKey(Grouped.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_JOINER_SERDE))\n .aggregate(SolarPanelAggregator::new,\n (key, value, aggregation) -> aggregation.updateFrom(value),\n Materialized.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_SERDE))\n .suppress(Suppressed.untilTimeLimit(DURATION, Suppressed.BufferConfig.unbounded()))\n .toStream();\n\n aggPowerPerSolarPanelFinalStream.foreach((k, v) -> log.info(\n \"PerSolarPanelFinal: [{}|{}]: power:{} count:{} squareSum:{} variance:{} deviance:{}\",\n k.window().endTime().getEpochSecond(), k.key(), v.getSumPower(), v.getCount(),\n v.getSquaresSum(), v.getVariance(), v.getDeviance()));\n\n // joining aggregated modules with aggregated panels in which calculated\n // sumSquare and deviance\n // need for check modules with anomaly power value\n final KStream<Windowed<String>, SolarModuleAggregatorJoiner> joinedAggModuleWithAggPanel = aggPowerPerSolarModuleStream\n .map((k, v) -> KeyValue.pair(new Windowed<>(k.key().getPanelName(), k.window()), v))\n .join(aggPowerPerSolarPanelFinalStream, SolarModuleAggregatorJoiner::new, JOIN_WINDOWS,\n Joined.with(WINDOWED_STRING_SERDE, SOLAR_MODULE_AGGREGATOR_SERDE,\n SOLAR_PANEL_AGGREGATOR_SERDE));\n\n joinedAggModuleWithAggPanel.foreach((k, v) -> {\n if (isAnomalyModule(v)) {\n log.info(\"ANOMALY module: [{}|{}|{}]: sumPower:{} panelAvg:{} deviance:{}\",\n k.window().endTime().getEpochSecond(), k.key(), v.getModuleName(),\n v.getSumPower(), v.getSolarPanelAggregator().getAvgPower(),\n v.getSolarPanelAggregator().getDeviance());\n }\n });\n\n // streaming result data (modules with anomaly power value)\n joinedAggModuleWithAggPanel.filter((k, v) -> isAnomalyModule(v))\n .map((k, v) -> KeyValue.pair(k.key(), v))\n .to(OUT_TOPIC, Produced.valueSerde(SOLAR_MODULE_AGGREGATOR_JOINER_SERDE));\n\n log.info(\"STARTING\");\n final KafkaStreams streams = new KafkaStreams(BUILDER.build(), getProperties());\n streams.cleanUp();\n streams.start();\n log.info(\"STARTED\");\n Runtime.getRuntime().addShutdownHook(new Thread(streams::close));\n }",
"public void run(String... args) {\n final StreamsConfig config = kStreamConfig();\n final StreamsBuilder builder = new StreamsBuilder();\n\n // Simply read the stream\n final KStream<String, TwitterStatus> twitterStream = builder.stream(\n TWITTER_TOPIC,\n Consumed.with(stringSerde, twitterStatusSerde)\n );\n\n //Construct a state store to hold all the users in the store\n final KTable<String, TwitterUserInfo> usersTable = builder\n .table(\n USER_FEED,\n Consumed.with(stringSerde, twitterUserInfoSerde),\n Materialized.as(ALL_USERS)\n );\n\n // Print twitter stream to stdout\n twitterStream.print(Printed.toSysOut());\n\n // Feed the user-message topic\n twitterStream\n .mapValues(value -> new TwitterUserMessage(value.getUser().getScreenName(), value.getText()))\n .selectKey((key, value) -> value.getName())\n .to(USER_MESSAGE, Produced.with(stringSerde, twitterUserMessageSerde));\n\n //Feed the user store\n twitterStream\n .mapValues(value -> new TwitterUserInfo(value.getUser().getScreenName(), value.getUser().getProfileImageURL()))\n .selectKey((key, value) -> value.getName())\n .to(USER_FEED, Produced.with(stringSerde, twitterUserInfoSerde));\n\n //Join the tweet streams with our user state store to return a user with his tweets count\n\n KTable<String, Long> usersCount = twitterStream\n .groupBy((key, twitterStatus) -> twitterStatus.getUser().getScreenName(), Serialized.with(stringSerde, twitterStatusSerde))\n .count(Materialized.as(TWEET_PER_USER));\n\n final KStream<String, TwitterUserInfo> joinedStream = usersCount\n .toStream()\n .leftJoin(\n usersTable,\n (count, twitterUserInfo) -> {\n twitterUserInfo.setTweetCount(count);\n return twitterUserInfo;\n },\n Joined.with(stringSerde, longSerde, twitterUserInfoSerde)\n );\n\n joinedStream.to(USERS_TOPIC, Produced.with(stringSerde, twitterUserInfoSerde));\n\n streams = new KafkaStreams(builder.build(), config);\n\n // Clean local store between runs\n streams.cleanUp();\n\n // Start the topology\n streams.start();\n }",
"@Test\n @SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public void testPutMetrics() throws Exception {\n MetricsRecord record = mock(MetricsRecord.class);\n when(record.tags()).thenReturn(Lists\n .newArrayList(new MetricsTag(KafkaMetricsInfo.KafkaTag, \"test_tag\")));\n when(record.timestamp()).thenReturn(System.currentTimeMillis());\n\n // Create a metric using AbstractMetric class.\n AbstractMetric metric = new AbstractMetric(KafkaMetricsInfo.KafkaCounter) {\n @Override\n public Number value() {\n return new Integer(123);\n }\n\n @Override\n public MetricType type() {\n return null;\n }\n\n @Override\n public void visit(MetricsVisitor visitor) {\n\n }\n };\n\n // Create a list of metrics.\n Iterable<AbstractMetric> metrics = Lists.newArrayList(metric);\n when(record.name()).thenReturn(\"Kafka record name\");\n when(record.metrics()).thenReturn(metrics);\n SubsetConfiguration conf = mock(SubsetConfiguration.class);\n when(conf.getString(KafkaSink.BROKER_LIST)).thenReturn(\"localhost:9092\");\n String topic = \"myTestKafkaTopic\";\n when(conf.getString(KafkaSink.TOPIC)).thenReturn(topic);\n\n // Create the KafkaSink object and initialize it.\n kafkaSink = new KafkaSink();\n kafkaSink.init(conf);\n\n // Create a mock KafkaProducer as a producer for KafkaSink.\n Producer<Integer, byte[]> mockProducer = mock(KafkaProducer.class);\n kafkaSink.setProducer(mockProducer);\n\n // Create the json object from the record.\n StringBuilder jsonLines = recordToJson(record);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"kafka message: \" + jsonLines.toString());\n }\n\n // Send the record and store the result in a mock Future.\n Future<RecordMetadata> f = mock(Future.class);\n when(mockProducer.send(any())).thenReturn(f);\n kafkaSink.putMetrics(record);\n\n // Get the argument and verity it.\n ArgumentCaptor<ProducerRecord> argument =\n ArgumentCaptor.forClass(ProducerRecord.class);\n verify(mockProducer).send(argument.capture());\n\n // Compare the received data with the original one.\n ProducerRecord<Integer, byte[]> data = (argument.getValue());\n String jsonResult = new String(data.value());\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"kafka result: \" + jsonResult);\n }\n assertThat(jsonLines.toString()).isEqualTo(jsonResult);\n }",
"public static void main(String[] args) {\n int qos = 2;\n // using the tcp connection to the MQTT broker\n String broker = \"tcp://localhost:1883\";\n //Id for the client connected to MQTT broker\n String clientId = \"TemperaturePublisher\";\n MemoryPersistence persistence = new MemoryPersistence();\n try {\n // configure the client to the connect to MQTT broker\n MqttClient sampleClient = new MqttClient(broker, clientId, persistence);\n MqttConnectOptions connOpts = new MqttConnectOptions();\n connOpts.setCleanSession(true);\n System.out.println(\"Connecting to broker: \" + broker);\n // connecting to the MQTT broker\n sampleClient.connect(connOpts);\n System.out.println(\"Connected\");\n\n // Timer for 5 second timer\n Timer t = new Timer();\n t.schedule(new TimerTask() {\n @Override\n public void run() {\n //temperatures in the range of 0 to 100\n double range = 100 - 0;\n double scaled = random.nextDouble() * range;\n // to get the timestamp\n String timeStamp = \"{\\\"Timestamp\\\":\\\"\" + new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date()) + \"\\\", \"+ \"\\\"Temperature\\\":\";\n double shifted = scaled + 0;\n String topic;\n // to determine the range of temperatures and accordingly determine the topics to which they need to be sent\n if (shifted >= 0 && shifted <= 45) {\n topic = \"temperature/pittsburgh/coldTemps\";\n } else if (shifted > 45 && shifted <= 80) {\n topic = \"temperature/pittsburgh/niceTemps\";\n } else {\n topic = \"temperature/pittsburgh/hotTemps\";\n }\n String content = (Double.toString(Math.round(shifted*100.0)/100.0));\n content = timeStamp + \"\\\"\" + content + \"\\\"\" + \"}\";\n //create a new message \n MqttMessage message = new MqttMessage(content.getBytes());\n message.setQos(qos);\n try {\n // publish the message to the MQTT broker\n sampleClient.publish(topic, message);\n } // catching and printing the exception\n catch (MqttException me) {\n System.out.println(\"reason \" + me.getReasonCode());\n System.out.println(\"msg \" + me.getMessage());\n System.out.println(\"loc \" + me.getLocalizedMessage());\n System.out.println(\"cause \" + me.getCause());\n System.out.println(\"excep \" + me);\n me.printStackTrace();\n //Logger.getLogger(TemperatureSensor.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }, 0, 5000); // timer for 5000 milliseconds\n } // catching and printing the exception\n catch (MqttException me) {\n System.out.println(\"reason \" + me.getReasonCode());\n System.out.println(\"msg \" + me.getMessage());\n System.out.println(\"loc \" + me.getLocalizedMessage());\n System.out.println(\"cause \" + me.getCause());\n System.out.println(\"excep \" + me);\n me.printStackTrace();\n }\n }",
"public static void main(String[] args) throws Exception \n {\n\n\t//log.info(\"topologyhell\");\n TopologyBuilder builder = new TopologyBuilder();\n\n //builder.setSpout( \"spout\", new PrimeNumberSpout() );\n\t\n\tQueueDeclaration qd = new SharedQueueWithBinding(\"stormqueue\", \"stormexchange\", \"errorkey\");\n\t//next calls are in SetupAMQP method of AMQPSpout class\n\t//ConnectionFactory factory = new ConnectionFactory();\n\t//factory.setHost(\"localhost\");\n\t//Connection connection = factory.newConnection();\n\t//Channel channel = connection.createChannel();\n\tScheme scheme = new SimpleJSONScheme();\n\n builder.setSpout( \"spout\", new AMQPSpout( \"127.0.0.1\", 5672, \"guest\", \"guest\", \"/\", qd, scheme),1);\n\t//builder.setSpout(\"ipspout\", new AMQPSpout(\"127.0.0.1\", 5672, \"guest\", \"guest\", \"/\", qd, scheme));\n\n /*builder.setBolt( \"prime\", new PrimeNumberBolt(),1 )\n .shuffleGrouping(\"spout\");*/\n\n\tbuilder.setBolt( \"prime\", new PrimeNumberBolt(\"127.0.0.1\", 5672, \"guest\", \"guest\", \"/\"),1 )\n .shuffleGrouping(\"spout\");\n\n\n //Config conf = new Config();\n \n //LocalCluster cluster = new LocalCluster();\n //cluster.submitTopology(\"test\", conf, builder.createTopology());\n //Utils.sleep(10000);\n //cluster.killTopology(\"test\");\n //cluster.shutdown();\n\tConfig conf = new Config();\n\tconf.setDebug(true);\n\tconf.setNumWorkers(2);\n\tconf.setMaxSpoutPending(5000);\n\n\t//kryo serialization\n\tconf.registerSerialization(JSONObject.class, KryoJSONSerializer.class);\n\tconf.registerSerialization(BasicProperties.class);\n\tconf.setFallBackOnJavaSerialization(false);//avoid using java serializatioavoid using java serialization\n\n\ttry{\n\t\tStormSubmitter.submitTopology( args[0], conf, builder.createTopology() );\n\t}\n\tcatch(AlreadyAliveException e){\n\t\t\n\t}\n }",
"@Override\n public void run() {\n double range = 100 - 0;\n double scaled = random.nextDouble() * range;\n // to get the timestamp\n String timeStamp = \"{\\\"Timestamp\\\":\\\"\" + new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\").format(new Date()) + \"\\\", \"+ \"\\\"Temperature\\\":\";\n double shifted = scaled + 0;\n String topic;\n // to determine the range of temperatures and accordingly determine the topics to which they need to be sent\n if (shifted >= 0 && shifted <= 45) {\n topic = \"temperature/pittsburgh/coldTemps\";\n } else if (shifted > 45 && shifted <= 80) {\n topic = \"temperature/pittsburgh/niceTemps\";\n } else {\n topic = \"temperature/pittsburgh/hotTemps\";\n }\n String content = (Double.toString(Math.round(shifted*100.0)/100.0));\n content = timeStamp + \"\\\"\" + content + \"\\\"\" + \"}\";\n //create a new message \n MqttMessage message = new MqttMessage(content.getBytes());\n message.setQos(qos);\n try {\n // publish the message to the MQTT broker\n sampleClient.publish(topic, message);\n } // catching and printing the exception\n catch (MqttException me) {\n System.out.println(\"reason \" + me.getReasonCode());\n System.out.println(\"msg \" + me.getMessage());\n System.out.println(\"loc \" + me.getLocalizedMessage());\n System.out.println(\"cause \" + me.getCause());\n System.out.println(\"excep \" + me);\n me.printStackTrace();\n //Logger.getLogger(TemperatureSensor.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void setUpData() {\n generalStatsCalculator.calculateOffsetTrees();\n this.MostEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostEmissionsRoutes());\n this.LeastEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastEmissionsRoutes());\n this.MostDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostDistanceRoutes());\n this.LeastDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastDistanceRoutes());\n this.MostVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedSrcAirports());\n this.LeastVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedSrcAirports());\n this.MostVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedDestAirports());\n this.LeastVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedDestAirports());\n numOfTreesToString(generalStatsCalculator.getTreesToGrow());\n generalStatsCalculator.createCarbonEmissionsComment();\n }",
"private void setupCharts(Metrics metrics) {\n // language in config\n metrics.addCustomChart(new SimplePie(\"used_language\", () ->\n getConfig().getString(\"language\", \"auto\")));\n\n metrics.addCustomChart(new SimplePie(\"default_locale\", () ->\n Locale.getDefault().toLanguageTag()));\n\n // encoding in config\n metrics.addCustomChart(new SimplePie(\"encoding\", () ->\n getConfig().getString(\"encoding\", \"UTF-8\")));\n\n // tradeWithMoney in config\n metrics.addCustomChart(new SimplePie(\"money_enabled\", () ->\n getConfig().getBoolean(\"tradeWithMoney\", true) ? \"enabled\" : \"disabled\"));\n\n // noDebts in config\n metrics.addCustomChart(new SimplePie(\"no_debts_enabled\", () ->\n getConfig().getBoolean(\"noDebts\", true) ? \"enabled\" : \"disabled\"));\n\n // maxTradingDistance in config\n metrics.addCustomChart(new SimplePie(\"max_trading_distance\", () ->\n String.valueOf(getConfig().getInt(\"maxTradingDistance\", 15))));\n\n // tradeThroughWorlds in config\n metrics.addCustomChart(new SimplePie(\"trade_through_worlds_enabled\", () ->\n getConfig().getBoolean(\"tradeThroughWorlds\", false) ? \"enabled\" : \"disabled\"));\n\n // fastTrade in config\n metrics.addCustomChart(new SimplePie(\"fast_trade_enabled\", () ->\n getConfig().getBoolean(\"fastTrade\", false) ? \"enabled\" : \"disabled\"));\n\n // successful trades\n metrics.addCustomChart(new SingleLineChart(\"successful_trades\", () -> successfulTrades));\n\n // aborted trades\n metrics.addCustomChart(new SingleLineChart(\"aborted_trades\", () -> abortedTrades));\n\n // Is Vault used?\n metrics.addCustomChart(new SimplePie(\"vault_used\", () -> hasVault ? \"Used\" : \"Not used\"));\n\n // The used economy plugin\n metrics.addCustomChart(new SimplePie(\"economy_plugin\", () -> economyName));\n\n // Download source\n metrics.addCustomChart(new SimplePie(\"download_source\", () -> {\n // Now the only source.\n return \"spigotmc.org\";\n }));\n }",
"@Override\n public void onStart(final ConnectedNode connectedNode) {\n this.connectedNode = connectedNode;\n NameResolver resolver = connectedNode.getResolver().newChild(\"sensorInfo\");\n posPublisher = connectedNode.newPublisher(resolver.resolve(\"pose/position\"), Point._TYPE);\n rpyPublisher = connectedNode.newPublisher(resolver.resolve(\"pose/orientation/rpy\"), Point._TYPE);\n velsPublisher = connectedNode.newPublisher(resolver.resolve(\"twist/linear\"), Point._TYPE);\n headingPublisher = connectedNode.newPublisher(resolver.resolve(\"twist/heading\"), Int32._TYPE);\n flightTimePublisher = connectedNode.newPublisher(resolver.resolve(\"flightTimeRemaining\"), Int32._TYPE);\n goHomePublisher = connectedNode.newPublisher(resolver.resolve(\"goHomePublisher\"), Int32._TYPE);\n\n Log.d(\"Talker\", \"publishers created\");\n /*if (!MainActivity.useSimulator) {\n MainActivity.mFlightController.setStateCallback(new FlightControllerState.Callback() {\n @Override\n public void onUpdate(@NonNull final FlightControllerState flightControllerState) {\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n Log.d(\"Talker\", \"Updating var status\");\n\n if (!flightControllerState.isFlying()){\n Log.e(\"STICK\", \"isn't flying\");\n }\n else {\n if (flightControllerState.getFlightMode() == FlightMode.AUTO_TAKEOFF) {\n Log.e(\"STICK\", \"Taking off\");\n } else {\n MainActivity.state = MainActivity.State.VIRTUALSTICKSTART;\n }\n }\n yaw = flightControllerState.getAttitude().yaw;\n pitch = flightControllerState.getAttitude().pitch;\n roll = flightControllerState.getAttitude().roll;\n positionX = flightControllerState.getAircraftLocation().getLatitude();\n positionY = flightControllerState.getAircraftLocation().getLongitude();\n positionZ = flightControllerState.getAircraftLocation().getAltitude();\n\n\n headDirection = flightControllerState.getAircraftHeadDirection();\n flightTime = flightControllerState.getFlightTimeInSeconds();\n goHomeHeight = flightControllerState.getGoHomeHeight();\n xVelocity = flightControllerState.getVelocityX();\n yVelocity = flightControllerState.getVelocityY();\n zVelocity = flightControllerState.getVelocityZ();\n\n\n MainActivity.mTextView.setText(\"Yaw : \" + String.format(\"%.2f\", yaw) + \", Pitch : \" + String.format(\"%.2f\", pitch) + \", Roll : \" + String.format(\"%.2f\", roll) + \"\\n\" +\n \", PosX : \" + String.format(\"%.2f\", positionX) + \", PosY : \" + String.format(\"%.2f\", positionY) + \", PosZ : \" + String.format(\"%.2f\", positionZ));\n Point pos = posPublisher.newMessage();\n pos.setX(positionX);\n pos.setY(positionY);\n pos.setZ(positionZ);\n posPublisher.publish(pos);\n Log.d(\"Talker\", \"pos msg published\");\n\n Point rpy = rpyPublisher.newMessage();\n rpy.setX(yaw);\n rpy.setY(pitch);\n rpy.setZ(roll);\n rpyPublisher.publish(rpy);\n Log.d(\"Talker\", \"rpy msg published\");\n\n Point vels = velsPublisher.newMessage();\n vels.setX(xVelocity);\n vels.setY(yVelocity);\n vels.setZ(zVelocity);\n velsPublisher.publish(vels);\n Log.d(\"Talker\", \"vels msg published\");\n\n Int32 headMsg = headingPublisher.newMessage();\n headMsg.setData(headDirection);\n headingPublisher.publish(headMsg);\n Log.d(\"Talker\", \"heading msg published\");\n\n Int32 flightTimeMsg = flightTimePublisher.newMessage();\n flightTimeMsg.setData(flightTime);\n flightTimePublisher.publish(flightTimeMsg);\n Log.d(\"Talker\", \"flight time msg published\");\n\n Int32 goHomeHeightMsg = goHomePublisher.newMessage();\n goHomeHeightMsg.setData(goHomeHeight);\n goHomePublisher.publish(goHomeHeightMsg);\n Log.d(\"Talker\", \"goHome msg published\");\n\n\n }\n });\n }\n });\n\n }\n else {\n MainActivity.mFlightController.getSimulator().setStateCallback(new SimulatorState.Callback() {\n @Override\n public void onUpdate(final SimulatorState simulatorState) {\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n if (!simulatorState.isFlying()){\n Log.e(\"STICK\", \"simulator isn't flying\");\n }\n else {\n MainActivity.state = MainActivity.State.VIRTUALSTICKSTART;\n }\n Log.d(\"Talker\", \"Updating var status\");\n yaw = simulatorState.getYaw();\n pitch = simulatorState.getPitch();\n roll = simulatorState.getRoll();\n positionX = simulatorState.getPositionX();\n positionY = simulatorState.getPositionY();\n positionZ = simulatorState.getPositionZ();\n\n MainActivity.mTextView.setText(\"Yaw : \" + String.format(\"%.2f\", yaw) + \", Pitch : \" + String.format(\"%.2f\", pitch) + \", Roll : \" + String.format(\"%.2f\", roll) + \"\\n\" +\n \", PosX : \" + String.format(\"%.2f\", positionX) + \", PosY : \" + String.format(\"%.2f\", positionY) + \", PosZ : \" + String.format(\"%.2f\", positionZ));\n Point pos = posPublisher.newMessage();\n pos.setX(positionX);\n pos.setY(positionY);\n pos.setZ(positionZ);\n posPublisher.publish(pos);\n Log.d(\"Talker\", \"pos msg published\");\n\n Point rpy = rpyPublisher.newMessage();\n rpy.setX(yaw);\n rpy.setY(pitch);\n rpy.setZ(roll);\n rpyPublisher.publish(rpy);\n Log.d(\"Talker\", \"rpy msg published\");\n\n }\n });\n }\n });\n }*/\n MainActivity.mFlightController.setStateCallback(new FlightControllerState.Callback() {\n @Override\n public void onUpdate(@NonNull FlightControllerState flightControllerState) {\n Log.e(\"controller\", \"received controller state callback\");\n Log.e(\"controller\", \" altitude: \" + flightControllerState.getAircraftLocation().getAltitude());\n Log.e(\"controller\", \"is flying? \"+ flightControllerState.isFlying());\n Log.e(\"controller\", \"is still in take off mode? \" + flightControllerState.getFlightMode());\n Log.e(\"controller\", \"isVirtualStick Available? \" + MainActivity.mFlightController.isVirtualStickControlModeAvailable());\n\n updateSensorValues(flightControllerState);\n\n\n if (MainActivity.state == MainActivity.State.TAKEOFFCOMPLETE){\n if (!flightControllerState.isFlying()){\n Log.e(\"controller\", \"drone not flying\");\n }\n else {\n if (flightControllerState.getFlightMode() == FlightMode.AUTO_TAKEOFF){\n Log.e(\"controller\", \"still taking off\");\n }\n else {\n Log.e(\"controller\", \"took off\");\n MainActivity.state = MainActivity.State.VIRTUALSTICKSTART;\n }\n }\n }\n }\n });\n MainActivity.mFlightController.getSimulator().setStateCallback(new SimulatorState.Callback() {\n @Override\n public void onUpdate(@NonNull SimulatorState simulatorState) {\n Log.e(\"controller\", \"received simulator state callback\");\n Log.e(\"controller\", \"some values: altitude: \" + simulatorState.getPositionZ());\n\n }\n });\n }",
"public static void main(String[] args) throws Exception {\n var env = StreamExecutionEnvironment.getExecutionEnvironment();\n\n // Set to 1 for now\n //env.setParallelism(1);\n env.setStreamTimeCharacteristic(TimeCharacteristic.EventTime);\n Properties props = new PropReader().getProps();\n props.setProperty(\"bootstrap.servers\", KAFKA_ADDRESS);\n props.setProperty(\"group.id\", KAFKA_GROUP);\n //env.enableCheckpointing(50000);\n //env.getConfig().setLatencyTrackingInterval(1000);\n env.getConfig().setLatencyTrackingInterval(5L);\n\n\n // Create tbe Kafka Consumer here\n FlinkKafkaConsumer010<Order> consumer = new FlinkKafkaConsumer010<Order>(IN_TOPIC,\n new OrderDeserializationSchema()\n , props);\n // uid - Grafana , name - flink.\n DataStream<Order> orderStream = env.addSource(consumer).name(\"Subscribe Trades/Orders\").uid(\"Subscribe_Trades_Orders\");// .setParallelism(1)\n // printOrTest(orderStream);\n // create a Producer for positionsByAct\n FlinkKafkaProducer010<FlatOrder> producer =\n new FlinkKafkaProducer010<FlatOrder>\n (KAFKA_ADDRESS,\n OUT_TOPIC,\n new FlatOrderSerializationSchema());\n producer.setWriteTimestampToKafka(true);\n\n //// create a Producer for positionsBySymbol\n FlinkKafkaProducer010<FlatOrder> producer2 =\n new FlinkKafkaProducer010<FlatOrder>\n (KAFKA_ADDRESS,\n OUT_TOPIC_1,\n new FlatOrderSerializationSchema());\n producer2.setWriteTimestampToKafka(true);\n\n // Allocations are by Cusip, so keyBy Cusip.\n // flatten the structure by extracting allocations for account, sub account,cusip and quantity .\n // Convert to RichFlatMap and add a guage maetric.\n DataStream<FlatOrder> flatmapStream = orderStream\n .keyBy(order -> order.getOrderId())\n .flatMap(new MyGuage())\n .name(\"flatten the orders\").uid(\"flatten the orders\").assignTimestampsAndWatermarks(new BoundedOutOfOrdernessGenerator())\n .keyBy(flatOrder -> flatOrder.getCusip())\n .window(TumblingEventTimeWindows.of(Time.minutes(1)))\n .allowedLateness(Time.seconds(10))\n .sum(\"quantity\").name(\" Aggregate Quantity By Cusip/Symbol\").uid(\"Aggregate Quantity By Cusip/Symbol\");\n // .setParallelism(4)\n //.process(new AddQty()).name(\" Aggregate Quantity By Cusip/Symbol\").uid(\"Aggregate Quantity By Cusip/Symbol\");\n flatmapStream.addSink(producer2).name(\" Publish to positionsBySymbol\").uid(\"Publish to positionsBySymbol\");// publish to positionsBySymbol.\n printOrTest(flatmapStream);\n\n // Task # 2 : PositionByAccount\n DataStream<FlatOrder> flatCompositeMapStream = orderStream.keyBy(order -> order.getOrderId())\n .flatMap(new MyGuage()).assignTimestampsAndWatermarks(new BoundedOutOfOrdernessGenerator()).name(\"Assign Watermarks\").uid(\"Assign Watermarks\")\n .keyBy(flatOrder -> new CompositeKey( flatOrder.getCusip(),flatOrder.getAccount(),flatOrder.getSubAccount()))\n .window(TumblingEventTimeWindows.of(Time.minutes(3)))\n .allowedLateness(Time.seconds(10))\n .sum(\"quantity\").name(\"Aggregate Qty by Cusip/Acct/Subacct Composite key\").uid(\"Aggregate Qty by Cusip/Acct/Subacct Composite key\");\n printOrTest(flatCompositeMapStream);\n flatCompositeMapStream.addSink(producer).name(\"Publish to positionsByAct\").uid(\"Publish to positionsByAct\");\n\n env.execute(\"Order Processor \");\n }",
"public Metric(){\n\t}",
"protected DefaultMetric(BundleContext bc) {\n\n this.bc = bc;\n \n log = AlitheiaCore.getInstance().getLogManager().createLogger(Logger.NAME_SQOOSS_METRIC);\n\n if (log == null) {\n System.out.println(\"ERROR: Got no logger\");\n }\n\n db = AlitheiaCore.getInstance().getDBService();\n\n if(db == null)\n log.error(\"Could not get a reference to the DB service\");\n\n pa = AlitheiaCore.getInstance().getPluginAdmin();\n\n if(pa == null)\n log.error(\"Could not get a reference to the Plugin Administation \"\n + \"service\");\n \n this.metricDiscovery = new MetricDiscovery(this);\n this.metricMetadata = new DefaultMetricMetaData(this, bc);\n this.metricEvaluation = new DefaultMeasurementEvaluation(this, metricDiscovery);\n this.metricLifeCycle = new DefaultMetricLifeCycle(bc, this, metricDiscovery);\n this.metricConfiguration = new DefaultMetricConfiguration(bc, this, metricDiscovery);\n }",
"public abstract void internalPrepare(\n OutputCollector collector,\n IMetadataChangeNotifyService metadataManager,\n Config config, TopologyContext context);",
"@Scheduled(fixedRate=20000)\n\tpublic void generateMessages()\n\t{\t\t\n\t\tsynchronized (map_)\n\t\t{\n\t\t\tif (!map_.isEmpty())\n\t\t\t{\n\t\t\t\tint index = generateIndex(map_.size());\n\t\t\t\tint messageIdx = generateIndex(1000);\n\t\t\t\tString topic = topics_.get(index);\n\t\t\t\tBroadcaster b = map_.get(topic);\n\t\t\t\tUserDTO dto = dtoMap_.get(topic);\n\t\t\t\tdto.setAvailability(\"\" + messageIdx);\n\t\t\t\tString stringified;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tstringified = mapper_.writeValueAsString(dto);\n\t\t\t\t\tSystem.out.println(\"broadcasting to topic \" + topic + \" message: \" + stringified);\n\t\t\t\t\tb.broadcast(stringified);\n\t\t\t\t} catch (JsonGenerationException 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} catch (JsonMappingException 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} catch (IOException 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\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"publisher map was empty, skipping this time\");\n\t\t\t}\n\t\t}\n\t}",
"public MonitoredData() {}",
"private void initReporter() {\n String reporterType = getConfigValue(\"type\", DEFAULT_REPORTER_TYPE);\n // System.getProperty(\"com.argo.metrics.reporter.type\", DEFAULT_REPORTER_TYPE);\n String reporterInterval = getConfigValue(\"interval\", DEFAULT_REPORTER_INTERVAL);\n //System.getProperty(\"com.argo.metrics.reporter.interval\", DEFAULT_REPORTER_INTERVAL);\n String reporterDir = getConfigValue(\"outdir\", DEFAULT_REPORTER_OUTDIR);\n //System.getProperty(\"com.argo.metrics.reporter.outdir\", DEFAULT_REPORTER_OUTDIR);\n\n if(reporterType.equals(\"console\")) {\n final ConsoleReporter reporter = ConsoleReporter.forRegistry(registry)\n .convertRatesTo(TimeUnit.SECONDS)\n .convertDurationsTo(TimeUnit.SECONDS)\n .build();\n reporter.start(Integer.parseInt(reporterInterval), TimeUnit.SECONDS);\n } else if (reporterType.equals(\"jmx\")) {\n final JmxReporter reporter = JmxReporter.forRegistry(registry)\n .convertRatesTo(TimeUnit.SECONDS)\n .convertDurationsTo(TimeUnit.SECONDS)\n .build();\n reporter.start();\n } else if (reporterType.equals(\"csv\")) {\n final CsvReporter reporter = CsvReporter.forRegistry(registry)\n .convertRatesTo(TimeUnit.SECONDS)\n .convertDurationsTo(TimeUnit.SECONDS)\n .build(new File(reporterDir));\n reporter.start(Integer.parseInt(reporterInterval), TimeUnit.SECONDS);\n } else if (reporterType.equals(\"slf4j\")) {\n final Slf4jReporter reporter = Slf4jReporter.forRegistry(registry)\n .convertRatesTo(TimeUnit.SECONDS)\n .convertDurationsTo(TimeUnit.SECONDS)\n .outputTo(LoggerFactory.getLogger(MetricCollector.class))\n .build();\n reporter.start(Integer.parseInt(reporterInterval), TimeUnit.SECONDS);\n } else {\n throw new IllegalStateException(\"Unknown Metrics Reporter Type: \" + reporterType);\n }\n }",
"io.netifi.proteus.admin.om.MetricsOrBuilder getMetricsOrBuilder();",
"@Override\r\n public void prepare(Map topoConf, TopologyContext context, OutputCollector collector) {\r\n // TODO Auto-generated method stub\r\n super.prepare(topoConf, context, collector);\r\n try {\r\n this.collector = collector;\r\n\r\n //fh = new FileHandler(\"/public/home/abrar/loger/Mylog2.log\");\r\n //logger.addHandler(fh);\r\n //SimpleFormatter formatter = new SimpleFormatter();\r\n //fh.setFormatter(formatter);\r\n }\r\n catch (Exception e){\r\n\r\n }\r\n\r\n }",
"public void prepare(Map config, TopologyContext context, OutputCollector collector){\n\t\tthis.collector = collector;\n\t}",
"public MMTMeasurement(){\n }",
"Meter createMeter();",
"@Override\n public void configure(Map<String, ?> config) {\n KafkaSpanDecorator customDecorator = \n (KafkaSpanDecorator)config.get(\"kafka.producer.decorator\");\n \n if (customDecorator != null) {\n decorators.add(customDecorator);\n }\n }",
"private void scan() {\n final ClassGraph classGraph = new ClassGraph();\n classGraph.enableAnnotationInfo().ignoreClassVisibility().blacklistLibOrExtJars()\n .removeTemporaryFilesAfterScan();\n if (whitelistedPackagesList.size() > 0) {\n classGraph.whitelistPackages(whitelistedPackagesList.toArray(new String[0]));\n }\n if (blacklistedPackagesList.size() > 0) {\n classGraph.blacklistPackages(blacklistedPackagesList.toArray(new String[0]));\n }\n final ScanResult scanResult = classGraph.scan();\n final ClassInfoList classInfoList = scanResult.getClassesWithAnnotation(MetricClass.class.getName());\n final Set<Class<?>> monitorClasses = new HashSet<>();\n monitorClasses.addAll(classInfoList.loadClasses(true));\n final List<CompositeData> metricClassCompositesList = new ArrayList<>();\n for (Class<?> monitorClass : monitorClasses) {\n try {\n final CompositeData metricClassComposite = new MonitorCompositeDataBuilder(monitorClass).getMetricClassData();\n metricClassCompositesList.add(metricClassComposite);\n } catch (OpenDataException ox) {\n logger.error(\"Build monitor metricaAnnotation failed: \" + monitorClass.getName());\n }\n }\n\n final int monitorCount = metricClassCompositesList.size();\n final String[] monitorKey = new String[monitorCount];\n final String[] monitorKeyDescription = new String[monitorCount];\n @SuppressWarnings(\"rawtypes\")\n final OpenType[] monitorType = new OpenType[monitorCount];\n final CompositeData[] metricClassComposites = metricClassCompositesList.toArray(new CompositeData[0]);\n for (int j = 0; j < metricClassComposites.length; j++) {\n final CompositeData metricClassComposite = metricClassComposites[j];\n monitorKey[j] = metricClassComposite.getCompositeType().getTypeName();\n monitorKeyDescription[j] = metricClassComposite.getCompositeType().getDescription();\n monitorType[j] = metricClassComposite.getCompositeType();\n }\n\n try {\n final CompositeType allMonitorCompositeType = new CompositeType(\"Monitor Metric\", \"Monitor Metric Info\", monitorKey,\n monitorKeyDescription, monitorType);\n allMonitorCompositeData = new CompositeDataSupport(allMonitorCompositeType, monitorKey, metricClassComposites);\n } catch (final OpenDataException ox) {\n logger.error(\"Creating CompositeData failed\", ox);\n }\n }",
"public MetricSchemaRecord() { }",
"public MqttBrokerMeta() {\n\n addDescription(\n \"This is an Mqtt client based on the Paho Mqtt client library. Mqtt is a machine-to-machine (M2M)/'Internet of Things' connectivity protocol. See http://mqtt.org\");\n addCategory(\"cloud\", \"network\");\n\n addDependency(\"io.moquette\", \"moquette-broker\", \"0.15\");\n exclude(\"com.fasterxml.jackson.core\", \"*\");\n exclude(\"io.netty\", \"*\");\n exclude(\"org.slf4j\", \"slf4j-log4j12\");\n\n addDependency(\"com.fasterxml.jackson.core\", \"jackson-core\", \"2.14.0\");\n addDependency(\"com.fasterxml.jackson.core\", \"jackson-databind\", \"2.14.0\");\n addDependency(\"com.fasterxml.jackson.core\", \"jackson-annotations\", \"2.14.0\");\n\n addDependency(\"io.netty\", \"netty-all\", \"4.1.82.Final\");\n\n \n\n setCloudService(false);\n\n }",
"@Override\n public void report() {\n\n try {\n File mFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/metrics.txt\");\n File eFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/latency_throughput.txt\");\n if (!mFile.exists()) {\n mFile.createNewFile();\n }\n if (!eFile.exists()) {\n eFile.createNewFile();\n }\n\n FileOutputStream mFileOut = new FileOutputStream(mFile, true);\n FileOutputStream eFileOut = new FileOutputStream(eFile, true);\n\n StringBuilder builder = new StringBuilder((int) (this.previousSize * 1.1D));\n StringBuilder eBuilder = new StringBuilder((int) (this.previousSize * 1.1D));\n\n// Instant now = Instant.now();\n LocalDateTime now = LocalDateTime.now();\n\n builder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n eBuilder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n\n builder.append(lineSeparator).append(\"---------- Counters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- records counter ----------\").append(lineSeparator);\n for (Map.Entry metric : counters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n if (( (String)metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Gauges ----------\").append(lineSeparator);\n for (Map.Entry metric : gauges.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Gauge) metric.getKey()).getValue()).append(lineSeparator);\n }\n\n builder.append(lineSeparator).append(\"---------- Meters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- throughput ----------\").append(lineSeparator);\n for (Map.Entry metric : meters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n if (((String) metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Histograms ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- lantency ----------\").append(lineSeparator);\n for (Map.Entry metric : histograms.entrySet()) {\n HistogramStatistics stats = ((Histogram) metric.getKey()).getStatistics();\n builder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n eBuilder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n }\n\n mFileOut.write(builder.toString().getBytes());\n eFileOut.write(eBuilder.toString().getBytes());\n mFileOut.flush();\n eFileOut.flush();\n mFileOut.close();\n eFileOut.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public FlinkConsumerFromKafkaUtil(){\n env = StreamExecutionEnvironment.getExecutionEnvironment();\n }",
"@Override\n public void configure() {\n final TCAAppConfig tcaAppConfig = getConfig();\n\n LOG.info(\"Configuring TCA Application with startup application configuration: {}\", tcaAppConfig);\n\n // Validate application configuration\n ValidationUtils.validateSettings(tcaAppConfig, new TCAAppConfigValidator());\n\n // App Setup\n setName(tcaAppConfig.getAppName());\n setDescription(tcaAppConfig.getAppDescription());\n\n // ========== Streams Setup ============== //\n // Create DMaaP MR Subscriber CDAP output stream\n final String tcaSubscriberOutputStreamName = tcaAppConfig.getTcaSubscriberOutputStreamName();\n LOG.info(\"Creating TCA VES Output Stream: {}\", tcaSubscriberOutputStreamName);\n final Stream subscriberOutputStream =\n new Stream(tcaSubscriberOutputStreamName, TCA_FIXED_SUBSCRIBER_OUTPUT_DESCRIPTION_STREAM);\n addStream(subscriberOutputStream);\n\n\n // ============ Datasets Setup ======== //\n // Create TCA Message Status Table\n final String tcaVESMessageStatusTableName = tcaAppConfig.getTcaVESMessageStatusTableName();\n final Integer messageStatusTableTTLSeconds = tcaAppConfig.getTcaVESMessageStatusTableTTLSeconds();\n LOG.info(\"Creating TCA Message Status Table: {} with TTL: {}\",\n tcaVESMessageStatusTableName, messageStatusTableTTLSeconds);\n final DatasetProperties messageStatusTableProperties =\n TCAMessageStatusPersister.getDatasetProperties(messageStatusTableTTLSeconds);\n createDataset(tcaVESMessageStatusTableName, ObjectMappedTable.class, messageStatusTableProperties);\n\n // Create TCA VES Alerts Table\n final String tcaVESAlertsTableName = tcaAppConfig.getTcaVESAlertsTableName();\n final Integer alertsTableTTLSeconds = tcaAppConfig.getTcaVESAlertsTableTTLSeconds();\n LOG.info(\"Creating TCA Alerts Table: {} with TTL: {}\",\n tcaVESAlertsTableName, alertsTableTTLSeconds);\n final DatasetProperties alertTableProperties =\n TCAVESAlertsPersister.getDatasetProperties(alertsTableTTLSeconds);\n createDataset(tcaVESAlertsTableName, ObjectMappedTable.class, alertTableProperties);\n\n // =========== Flow Setup ============= //\n addFlow(new TCAVESCollectorFlow(tcaAppConfig));\n\n // ========== Workers Setup =========== //\n LOG.info(\"Creating TCA DMaaP Subscriber Worker\");\n addWorker(new TCADMaaPSubscriberWorker(tcaAppConfig.getTcaSubscriberOutputStreamName()));\n LOG.info(\"Creating TCA DMaaP Publisher Worker\");\n addWorker(new TCADMaaPPublisherWorker(tcaAppConfig.getTcaVESAlertsTableName()));\n // TODO: Remove this before going to production\n addWorker(new TCADMaaPMockSubscriberWorker(tcaAppConfig.getTcaSubscriberOutputStreamName()));\n }",
"private void initDefaultResultCollector() {\n Summariser summer=null;\n String summariserName = JMeterUtils.getPropDefault(\"summariser.name\", \"summary\");\n if (summariserName.length() > 0) {\n summer = new Summariser(summariserName);\n }\n // Store execution results into a .jtl file\n //String logFile = \"example.jtl\";\n resultCollector = new AutoMeterResultCollector(summer);\n resultCollector.setName(DEFAULT_RESULT_COLLECTOR_NAME);\n resultCollector.setProperty(TestElement.TEST_CLASS, AutoMeterResultCollector.class.getName());\n resultCollector.setProperty(TestElement.GUI_CLASS, SummaryReport.class.getName());\n resultCollector.setCalculator(calculator);\n calculator.setResultViewer(resultViewer);\n //resultCollector.setFilename(logFile);\n }",
"@Override\n\tpublic void prepare(Map stormConf, TopologyContext context,\n\t\t\tOutputCollector collector) {\n\t\tthis.collector=collector;\n\t\ttairManager=TairFactory.tairInstance();\n\t\texecutorService.execute(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\twhile(!stopThread) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(200); \n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tList<Long> platformMapList=new ArrayList<Long>(platformMap.keySet());\n\t\t\t\t\tif(!platformMapList.isEmpty()) {\n\t\t\t\t\t\tstartTime=(long) Collections.min(platformMapList);\n\t\t\t\t\t\tendTime=(long) Collections.max(platformMapList);\n\t\t\t\t\t}\n\t\t\t\t\tdouble wirelessAmount=0;\n\t\t\t\t\tdouble pcAmount=0;\n\t\t\t\t\t//double ratio=0;\n\t\t\t\t\t//boolean result;\n\t\t\t\t\t//LOG.info(\"startTime is \" + startTime +\" endTime is \" + endTime);\n\t\t\t\t\tfor(long i = startTime; i<=endTime; i+=60) {\n\t\t\t\t\t\twirelessAmount+=platformMap.get(i).getWirelessAmount();\n\t\t\t\t\t\tpcAmount+=platformMap.get(i).getPcAmount();\n\t\t\t\t\t\t/*if(pcAmount>0.01) {\n\t\t\t\t\t\t\tratio=wirelessAmount/pcAmount;\n\t\t\t\t\t\t\tresult = tairManager.put(RaceConfig.TairNamespace, ratioPrefix +i, df.format(ratio));\n\t\t\t\t\t\t\t//LOG.info(\"Tair Input: \"+ RaceConfig.prex_ratio + i + \": \" + pcAmount + \" \" + wirelessAmount + \" \" + df.format(ratio));\n\t\t\t\t\t\t\tif (!result.isSuccess())\n\t\t\t\t\t\t\t\tLOG.error(\"fail input: \"+ ratioPrefix + i + \":\" + df.format(ratio));\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t//7.10改为判断变化再更新\n\t\t\t\t\t\tif(!platformAllMap.containsKey(i)){\n\t\t\t\t\t\t\t//交易总额初始化\n\t\t\t\t\t\t\tRatioCount ratioCount = new RatioCount();\n\t\t\t\t\t\t\tratioCount.setPcAmountAll(pcAmount);\n\t\t\t\t\t\t\tratioCount.setWirelessAll(wirelessAmount);\n\t\t\t\t\t\t\tplatformAllMap.put(i, ratioCount);\n\t\t\t\t\t\t\tratioCount.writeIntoTair(ratioPrefix, i, tairManager, df);\n\t\t\t\t\t\t\t/*if (!result)\n\t\t\t\t\t\t\t\tLOG.error(\"fail input: \"+ RaceConfig.prex_ratio + i + \":\" + df.format(ratioCount.getRatio()));*/\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//当前时分交易总额对比,有更新则写入Tair\n\t\t\t\t\t\t\tdouble pcAll = platformAllMap.get(i).getPcAmountAll();\n\t\t\t\t\t\t\tdouble wirelessAll = platformAllMap.get(i).getWirelessAmountAll();\n\t\t\t\t\t\t\t//platformAllLock.lock();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(pcAll<pcAmount)\n\t\t\t\t\t\t\t\tplatformAllMap.get(i).setPcAmountAll(pcAmount);\n\t\t\t\t\t\t\tif(wirelessAll<wirelessAmount)\n\t\t\t\t\t\t\t\tplatformAllMap.get(i).setWirelessAll(wirelessAmount);\n\t\t\t\t\t\t\tplatformAllMap.get(i).writeIntoTair(ratioPrefix, i, tairManager, df);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t/*if (!result)\n\t\t\t\t\t\t\t\tLOG.error(\"fail input: \"+ RaceConfig.prex_ratio + i + \":\" + df.format(platformAllMap.get(i).getRatio()));*/\n\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\n\t\t\t}\n\t\t});\n\t}",
"public OpenFlowMeterProvider() {\n super(new ProviderId(\"of\", \"org.onosproject.provider.meter\"));\n }",
"public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {\n\t\tthis.collector = collector;\n\n\t}",
"public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {\n\t\tthis.collector = collector;\n\t}",
"@Override\n\tpublic void prepare(Map stormConf, TopologyContext context,\n\t\t\tOutputCollector collector) {\n\t\tthis.collector=collector;\n\t\tGlobalVar.numberOfNodes = Integer.parseInt(stormConf.get(\"numberOfNodes\").toString());\n\t\tthis.fileName = stormConf.get(\"wordsFile\").toString();\n\t\t\n\t}",
"public static void main(String[] args) {\n StreamsBuilder builder = new StreamsBuilder();\n\n // read from the source topic, \"test-kstream-input-topic\"\n KStream<String, String> stream = builder.stream(\"test-kstream-input-topic\");\n\n // read from the source topic, \"test-kstream-input-topic\"\n KTable<String, String> table = builder.table(\"test-kstream-compacted-topic\");\n\n // join the stream with the table\n KStream<String, String> joined = stream.join(table, (s,t) -> String.join (\":\",s, t));\n\n // output the joined values\n joined.to(\"test-kstream-output-topic\", Produced.with(Serdes.String(), Serdes.String()));\n\n // set the required properties for running Kafka Streams\n Properties config = new Properties();\n config.put(StreamsConfig.APPLICATION_ID_CONFIG, \"tablejoin\");\n config.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, \"dataplatform:9092\");\n config.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, \"earliest\");\n config.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.String().getClass());\n config.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, Serdes.String().getClass());\n\n // build the topology and start streaming\n Topology topology = builder.build();\n System.out.println(topology.describe());\n KafkaStreams streams = new KafkaStreams(topology, config);\n streams.start();\n\n // close Kafka Streams when the JVM shuts down (e.g. SIGTERM)\n Runtime.getRuntime().addShutdownHook(new Thread(streams::close));\n }",
"@Override\n public void init(StreamGraph graph, Config config) {\n graph.setDefaultSerde(new NoOpSerde<>());\n\n // Inputs\n // Messages come from WikipediaConsumer so we know the type is WikipediaFeedEvent\n MessageStream<WikipediaFeedEvent> wikipediaEvents = graph.getInputStream(WIKIPEDIA_STREAM_ID);\n MessageStream<WikipediaFeedEvent> wiktionaryEvents = graph.getInputStream(WIKTIONARY_STREAM_ID);\n MessageStream<WikipediaFeedEvent> wikiNewsEvents = graph.getInputStream(WIKINEWS_STREAM_ID);\n\n // Output (also un-keyed)\n OutputStream<WikipediaStatsOutput> wikipediaStats =\n graph.getOutputStream(STATS_STREAM_ID, new JsonSerdeV2<>(WikipediaStatsOutput.class));\n\n // Merge inputs\n MessageStream<WikipediaFeedEvent> allWikipediaEvents =\n MessageStream.mergeAll(ImmutableList.of(wikipediaEvents, wiktionaryEvents, wikiNewsEvents));\n\n // Parse, update stats, prepare output, and send\n allWikipediaEvents\n .map(WikipediaParser::parseEvent)\n .window(Windows.tumblingWindow(Duration.ofSeconds(10), WikipediaStats::new,\n new WikipediaStatsAggregator(), WikipediaStats.serde()), \"statsWindow\")\n .map(this::formatOutput)\n .sendTo(wikipediaStats);\n }",
"abstract protected void init(HardwareMap hardwareMap, TelemetryUtil telemetryUtil);",
"public static void main(String[] args) throws MqttException, InterruptedException {\n Random random = new Random();\n\n // Random temperature\n int temperature;\n\n // Cold, Nice or Hot\n String weather;\n\n // pittsburgh/temperature/coldTemps || pittsburgh/temperature/niceTemps || pittsburgh/temperature/hotTemps\n String topic = \"\";\n\n // Use local mosquitto\n String broker = \"tcp://localhost:1883\";\n\n // clientId used when visit the broker\n String clientId = \"TemperatureSensor\";\n\n // MemoryPersistence sets how the clientid is saved, the default is in memory.\n MemoryPersistence persistence = new MemoryPersistence();\n\n // Create client\n MqttClient client = new MqttClient(broker, clientId, persistence);\n\n // Create connection parameters\n MqttConnectOptions mqtt = new MqttConnectOptions();\n\n // Forget status on reboot and reconnection\n mqtt.setCleanSession(true);\n\n System.out.println(\"Connecting to broker: \"+broker);\n client.connect(mqtt);\n System.out.println(\"Connected\");\n\n while (true) {\n // random number\n temperature = (int)(random.nextDouble()*100);\n\n if (temperature >= 0 && temperature <= 45) {\n topic = \"pittsburgh/temperature/coldTemps\";\n weather = \"cold\";\n } else if (temperature > 45 && temperature <= 80) {\n topic = \"pittsburgh/temperature/niceTemps\";\n weather = \"nice\";\n } else {\n topic = \"pittsburgh/temperature/hotTemps\";\n weather = \"hot\";\n }\n\n // record timestamp\n long time = System.currentTimeMillis();\n String timeStamp = new Date(time).toString();\n\n // transfer message into json format\n String information = \"{\\\"temperature\\\": \\\"\" + temperature + \"\\\", \\\"time\\\": \\\"\" + timeStamp + \"\\\"}\";\n\n // output\n System.out.println(\"Sending a \" + weather + \" temp message to topic \" + topic);\n\n // transfer json into binary byte\n MqttMessage message = new MqttMessage(information.getBytes());\n\n // send message in QoS of 1\n message.setQos(1);\n\n System.out.println(\"Publishing message: It is \" + weather +\" out \" + temperature +\"Farenhite degrees at time: \" + timeStamp);\n //publish the information into MQTT broker\n client.publish(topic, message);\n System.out.println(\"Message published\");\n //send message 5 seconds per time\n Thread.sleep(5000);\n }\n }",
"public synchronized static void addTraceMetricsSource() {\n try {\n QueryServicesOptions options = QueryServicesOptions.withDefaults();\n if (!initialized && options.isTracingEnabled()) {\n traceSpanReceiver = new TraceSpanReceiver();\n Trace.addReceiver(traceSpanReceiver);\n TraceWriter traceWriter = new TraceWriter(options.getTableName(), options.getTracingThreadPoolSize(), options.getTracingBatchSize());\n traceWriter.start();\n }\n } catch (RuntimeException e) {\n LOGGER.warn(\"Tracing will outputs will not be written to any metrics sink! No \"\n + \"TraceMetricsSink found on the classpath\", e);\n } catch (IllegalAccessError e) {\n // This is an issue when we have a class incompatibility error, such as when running\n // within SquirrelSQL which uses an older incompatible version of commons-collections.\n // Seeing as this only results in disabling tracing, we swallow this exception and just\n // continue on without tracing.\n LOGGER.warn(\"Class incompatibility while initializing metrics, metrics will be disabled\", e);\n }\n initialized = true;\n }",
"public void outputTelemetry() {\n }",
"public void prepare(Map stormConf, TopologyContext context, OutputCollector collector) {\r\n this.conf = stormConf;\r\n this.context = context;\r\n this.collector = collector;\r\n }",
"private AggResult parse(MeasuredData measuredData, AggResult dest) {\n measuredData.data.computeIfPresent(MetricNames.SEND_QUEUE, (comp, data) -> {\n parseQueueResult((Map<String, Number>) data, dest.getSendQueueResult());\n return data;\n });\n measuredData.data.computeIfPresent(MetricNames.RECV_QUEUE, (comp, data) -> {\n parseQueueResult((Map<String, Number>) data, dest.getRecvQueueResult());\n return data;\n });\n if (firstTasks.contains(measuredData.task)) {\n measuredData.data.computeIfPresent(MetricNames.DURATION, (comp, data) -> {\n dest.addDuration(((Number) data).longValue());\n return data;\n });\n }\n if (rawTopo.get_spouts().containsKey(measuredData.component)) {\n Map<String, Object> data = (Map<String, Object>) measuredData.data.get(MetricNames.COMPLETE_LATENCY);\n if (data != null) {\n data.forEach((stream, elementStr) -> {\n String[] elements = ((String) elementStr).split(\",\");\n int cnt = Integer.valueOf(elements[0]);\n if (cnt > 0) {\n double val = Double.valueOf(elements[1]);\n double val_2 = Double.valueOf(elements[2]);\n ((SpoutAggResult) dest).getCompletedLatency().computeIfAbsent(stream, (k) -> new CntMeanVar())\n .addAggWin(cnt, val, val_2);\n }\n });\n }\n } else {\n Map<String, Object> data = (Map<String, Object>) measuredData.data.get(MetricNames.TASK_EXECUTE);\n if (data != null) {\n data.forEach((stream, elementStr) -> {\n String[] elements = ((String) elementStr).split(\",\");\n int cnt = Integer.valueOf(elements[0]);\n if (cnt > 0) {\n double val = Double.valueOf(elements[1]);\n double val_2 = Double.valueOf(elements[2]);\n ((BoltAggResult) dest).getTupleProcess().computeIfAbsent(stream, (k) -> new CntMeanVar())\n .addAggWin(cnt, val, val_2);\n }\n });\n }\n }\n return dest;\n }",
"@Override\n\tpublic void setupSensors() {\n\t\t\n\t}",
"public static MetricParameterBuilder metrics()\n {\n return new MetricParameterBuilder();\n }",
"public AppcActorServiceProvider() {\n super(NAME, BidirectionalTopicActorParams.class);\n\n addOperator(new BidirectionalTopicOperator(NAME, ModifyConfigOperation.NAME, this, AppcOperation.SELECTOR_KEYS,\n ModifyConfigOperation::new));\n }",
"public static void createDeviceMap() {\n\t\ttry {\n\t\t\tSmapStreamList sat = new SmapStreamList();\n\t\t\tMap<String, SmapDevice> saMap = sat.convertToSADevices();\n\t\t\tFileWriter fw = new FileWriter(device_map_file);\t\t\t\n\t\t\tString json = sat.gson.toJson(saMap);\n\t\t\tfw.write(json);\n\t\t\tfw.close();\n\t\t\trenderText(json);\n\t\t} catch (Exception e) {\n\t\t\trenderText(e);\n\t\t}\n\t}",
"@Override\n void writeToTopology(final InternalTopologyBuilder topologyBuilder) {\n }",
"@Test\n public void testOpen_customTimeWindowInt() {\n final int timeBucket = 30;\n\n // Create empty config\n final Map<String, Object> config = new HashMap<>();\n config.put(SpoutConfig.METRICS_RECORDER_TIME_BUCKET, timeBucket);\n\n // Create mock TopologyContet\n final TopologyContext mockTopologyContext = mock(TopologyContext.class);\n\n // Create recorder and call open.\n final StormRecorder recorder = new StormRecorder();\n recorder.open(config, mockTopologyContext);\n\n // Validate we got called as expected.\n\n // Shouldn't have interacted with the taskId\n verify(mockTopologyContext, never()).getThisTaskIndex();\n\n // Should have registered 4 metrics.\n verify(mockTopologyContext, times(1)).registerMetric(eq(\"GAUGES\"), any(MultiAssignableMetric.class), eq(timeBucket));\n verify(mockTopologyContext, times(1)).registerMetric(eq(\"TIMERS\"), any(MultiReducedMetric.class), eq(timeBucket));\n verify(mockTopologyContext, times(1)).registerMetric(eq(\"COUNTERS\"), any(MultiCountMetric.class), eq(timeBucket));\n }",
"private MessageProducer<Key, Value> createProducer(ObjectMapper configuredObjectMapper) {\n return kafka.registerProducer(\n ProducerRegistration.builder()\n .forTopic(kafka.getTopicConfiguration(\"example0\"))\n .withDefaultProducer()\n .withKeySerializer(new KafkaJsonSerializer<Key>(configuredObjectMapper))\n .withValueSerializer(new KafkaJsonSerializer<Value>(configuredObjectMapper))\n .build());\n }",
"public static void registerMeters(StormMetricsRegistry registry) {\n \n registry.registerMeter(NUM_FILE_OPEN_EXCEPTIONS);\n registry.registerMeter(NUM_FILE_READ_EXCEPTIONS);\n registry.registerMeter(NUM_FILE_REMOVAL_EXCEPTIONS);\n registry.registerMeter(NUM_FILE_DOWNLOAD_EXCEPTIONS);\n registry.registerMeter(NUM_SET_PERMISSION_EXCEPTIONS);\n registry.registerMeter(NUM_CLEANUP_EXCEPTIONS);\n registry.registerMeter(NUM_READ_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_READ_DAEMON_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_LIST_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_LIST_DUMP_EXCEPTIONS);\n registry.registerMeter(NUM_DOWNLOAD_DUMP_EXCEPTIONS);\n registry.registerMeter(NUM_DOWNLOAD_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_DOWNLOAD_DAEMON_LOG_EXCEPTIONS);\n registry.registerMeter(NUM_SEARCH_EXCEPTIONS);\n }",
"public static void main(String[] args) throws Exception {\n\t\tZkHosts zkHosts = new ZkHosts(\"192.168.0.111:2181\");\n\t\t//Create the KafkaSpout configuration\n\t\t//Second argument -> topic name\n\t\t//Third argument -> zk root for Kafka\n\t\t//Forth argument -> consumer group id\n\t\t\n\t\tSpoutConfig kafkaConfig = new SpoutConfig(zkHosts, \"words_topic\", \"\", \"id111\");\n\t\t//Specify kafka message type\n\t\tkafkaConfig.scheme = new SchemeAsMultiScheme(new StringScheme());\n\t\t//We want to consume all the first message in the topic every time\n\t\t//方便debug,在生产环境应该设置为false not sure used to be `forceFromStart`\n\t\tkafkaConfig.useStartOffsetTimeIfOffsetOutOfRange = true;\n\t\t//create the topology\n\t\tTopologyBuilder builder = new TopologyBuilder();\n\t\t//set kafka spout class\n\t\tbuilder.setSpout(\"KafkaSpout\", new KafkaSpout(kafkaConfig), 1);\n\t\t//configure bolts ##after update not work\n//\t\tbuilder.setBolt(\"SentenceBolt\", new SentenceBolt(), 1).globalGrouping(\"KafkaSpout\");\n//\t\tbuilder.setBolt(\"PrintBolt\", new PrintBolt(), 1).globalGrouping(\"SentenceBolt\");\n\t\t\n\t\tLocalCluster cluster = new LocalCluster();\n\t\tConfig conf = new Config();\n\t\t\n\t\tcluster.submitTopology(\"KafkaTopology\", conf, builder.createTopology());\n\t\t\n\t\ttry {\n\t\t\tSystem.out.println(\"Waiting to consume from kafka\");\n\t\t\tTimeUnit.SECONDS.sleep(100);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tcluster.killTopology(\"KafkaTopology\");\n\t\tcluster.shutdown();\n\t}",
"public void init() {\r\n\r\n\t\t// dater collectors\r\n\t\t//trucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\t//trucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\twaitTimeHistogram = new Histogram(this, \"Truck Wait Times\", 0, 16, 10, true, false);\r\n\r\n\t\t// distributions DEFAULT\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.0, 7.0, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 3.0, true, false);\r\n\r\n\t\t// distributions PROBLEM DESCRIPTION\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.5,6.5, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\t\tserviceTime = new ContDistExponential(this, \"ServiceTimeStream\", 4.0, true, false);\r\n\t\ttruckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\r\n\t\t// queues\r\n\t\ttruckQueue = new ProcessQueue<Truck>(this, \"Truck Queue\", true, false);\r\n\t\tidleVCQueue = new ProcessQueue<VC>(this, \"idle VC Queue\", true, false);\r\n\t}",
"private void constructMetricsPanel() {\n int FONT_SIZE = 12;\n \n metricsPanel = new JPanel();\n metricsPanel.setLayout(new GridLayout(6, 3));\n metricsPanel.setBorder(BorderFactory.createTitledBorder(\"Metrics\"));\n \n JLabel nameHeader = new JLabel(\"Type\");\n nameHeader.setFont(new Font(\"Times New Roman\", Font.BOLD, FONT_SIZE));\n nameHeader.setHorizontalAlignment(SwingConstants.CENTER);\n nameHeader.setForeground(Color.black);\n \n metricsPanel.add(nameHeader);\n \n JLabel numHeader = new JLabel(\"Number\");\n numHeader.setFont(new Font(\"Times New Roman\", Font.BOLD, FONT_SIZE));\n numHeader.setHorizontalAlignment(SwingConstants.CENTER);\n numHeader.setForeground(Color.black);\n \n metricsPanel.add(numHeader);\n \n JLabel timeHeader = new JLabel(\"Avg Time\");\n timeHeader.setFont(new Font(\"Times New Roman\", Font.BOLD, FONT_SIZE));\n timeHeader.setHorizontalAlignment(SwingConstants.CENTER);\n timeHeader.setForeground(Color.black);\n \n metricsPanel.add(timeHeader);\n \n metricsNumLabels = new JLabel[5];\n metricsTimeLabels = new JLabel[5];\n \n for (int i=0; i<5; i++) {\n JLabel name = new JLabel(\"Market Orders\");\n if (i == 1)\n name.setText(\"Two Order Trades\");\n if (i == 2)\n name.setText(\"Three Order Trades\");\n if (i == 3)\n name.setText(\"Four Order Trades\");\n if (i == 4)\n name.setText(\"Five Order Trades\");\n \n name.setFont(new Font(\"Times New Roman\", Font.PLAIN, FONT_SIZE));\n name.setHorizontalAlignment(SwingConstants.CENTER);\n name.setForeground(Color.black);\n \n metricsPanel.add(name);\n \n metricsNumLabels[i] = new JLabel(\"0\");\n metricsNumLabels[i].setFont(new Font(\"Times New Roman\", Font.PLAIN, FONT_SIZE));\n metricsNumLabels[i].setHorizontalAlignment(SwingConstants.CENTER);\n metricsNumLabels[i].setForeground(Color.black);\n \n metricsPanel.add(metricsNumLabels[i]);\n \n metricsTimeLabels[i] = new JLabel(\"N/A\");\n metricsTimeLabels[i].setFont(new Font(\"Times New Roman\", Font.PLAIN, FONT_SIZE));\n metricsTimeLabels[i].setHorizontalAlignment(SwingConstants.CENTER);\n metricsTimeLabels[i].setForeground(Color.black);\n \n metricsPanel.add(metricsTimeLabels[i]);\n }\n \n metricsPanel.setPreferredSize(relativeSize(0.25f, 0.25f));\n }",
"public void initMetrics(MeterRegistry meterRegistry) {\n String metricName = String.join(\".\", \"pap\", \"policy\", \"deployments\");\n String description = \"Timer for HTTP request to deploy/undeploy a policy\";\n undeploySuccessTimer = Timer.builder(metricName).description(description)\n .tags(PrometheusUtils.OPERATION_METRIC_LABEL, PrometheusUtils.UNDEPLOY_OPERATION,\n PrometheusUtils.STATUS_METRIC_LABEL, PdpPolicyStatus.State.SUCCESS.name())\n .register(meterRegistry);\n undeployFailureTimer = Timer.builder(metricName).description(description)\n .tags(PrometheusUtils.OPERATION_METRIC_LABEL, PrometheusUtils.UNDEPLOY_OPERATION,\n PrometheusUtils.STATUS_METRIC_LABEL, PdpPolicyStatus.State.FAILURE.name())\n .register(meterRegistry);\n }",
"@Before\n public void setUp() {\n topic = USER_TOPIC + KsqlIdentifierTestUtil.uniqueIdentifierName();\n TEST_HARNESS.ensureTopics(1, topic);\n\n TEST_HARNESS.produceRows(\n topic,\n USER_PROVIDER,\n FormatFactory.KAFKA,\n FormatFactory.JSON,\n timestampSupplier::getAndIncrement\n );\n\n //Create stream\n makeAdminRequest(\n REST_APP_0,\n \"CREATE STREAM \" + USERS_STREAM\n + \" (\" + USER_PROVIDER.ksqlSchemaString(false) + \")\"\n + \" WITH (\"\n + \" kafka_topic='\" + topic + \"', \"\n + \" value_format='JSON');\"\n );\n //Create table\n output = KsqlIdentifierTestUtil.uniqueIdentifierName();\n sql = \"SELECT * FROM \" + output + \" WHERE USERID = '\" + KEY + \"';\";\n sqlMultipleKeys = \"SELECT * FROM \" + output + \" WHERE USERID IN ('\"\n + KEY + \"', '\" + KEY1 + \"');\";\n List<KsqlEntity> res = makeAdminRequestWithResponse(\n REST_APP_0,\n \"CREATE TABLE \" + output + \" AS\"\n + \" SELECT \" + USER_PROVIDER.key() + \", COUNT(1) AS COUNT FROM \" + USERS_STREAM\n + \" GROUP BY \" + USER_PROVIDER.key() + \";\"\n );\n queryId = extractQueryId(res.get(0).toString());\n queryId = queryId.substring(0, queryId.length() - 1);\n waitForTableRows();\n\n waitForStreamsMetadataToInitialize(\n REST_APP_0, ImmutableList.of(HOST0, HOST1, HOST2), queryId);\n }",
"Metrics(int numMetrics)\n {\n maxMetrics = numMetrics;\n encodedMetrics = new long[maxMetrics];\n decodedMetrics = new long[maxMetrics];\n }"
]
| [
"0.5791184",
"0.5658822",
"0.5590548",
"0.5494571",
"0.5401872",
"0.5376205",
"0.531893",
"0.5312919",
"0.51916593",
"0.5185977",
"0.51848835",
"0.5116265",
"0.50162923",
"0.50074303",
"0.4994491",
"0.49777216",
"0.49726826",
"0.49724367",
"0.49588957",
"0.4948724",
"0.49308848",
"0.4915734",
"0.49001485",
"0.48906368",
"0.48706287",
"0.4864445",
"0.4842264",
"0.4838823",
"0.48352",
"0.4828744",
"0.48273104",
"0.48191434",
"0.47947994",
"0.47913346",
"0.47835177",
"0.4783308",
"0.47760123",
"0.47740164",
"0.47544825",
"0.47483775",
"0.47483394",
"0.47462967",
"0.473714",
"0.4725232",
"0.4722229",
"0.47063753",
"0.469016",
"0.4676537",
"0.4672491",
"0.46708485",
"0.4665063",
"0.46576685",
"0.46465224",
"0.4644917",
"0.46418214",
"0.4639063",
"0.46387973",
"0.46314344",
"0.46268168",
"0.46220756",
"0.46173975",
"0.46144062",
"0.4611348",
"0.46102855",
"0.45897144",
"0.4587275",
"0.45772037",
"0.4552831",
"0.4551276",
"0.45503226",
"0.45486405",
"0.45401594",
"0.4528813",
"0.4525968",
"0.45231247",
"0.45212948",
"0.45167732",
"0.45162028",
"0.45152086",
"0.45083427",
"0.4498272",
"0.44914725",
"0.44897076",
"0.44810432",
"0.4478562",
"0.44785553",
"0.4471611",
"0.44633928",
"0.4455759",
"0.44540972",
"0.44487038",
"0.44437498",
"0.4435019",
"0.4432494",
"0.44284216",
"0.44277743",
"0.4426606",
"0.44227123",
"0.4408763",
"0.44068193"
]
| 0.54755306 | 4 |
Child classes can override this if they support interactive queries | protected Optional<TBaseProcessor> getInteractiveQueryProcessor() {
return Optional.empty();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void onShowQueryResult() {\n }",
"public void Query() {\n }",
"@Override\n public boolean supportsInteractive() {\n return true;\n }",
"@Override\n\tpublic void queryData() {\n\t\t\n\t}",
"public boolean isInteractive() {\n return interactive;\n }",
"protected abstract void onQueryStart();",
"public boolean isStatementQueryMechanism() {\n return true;\n }",
"@Override\n public Iterator<SingleQuery> iterator() {\n return new QueryHistoryIterator();\n }",
"public Query advancedQuery() \n {\n return null;\n }",
"public void select()\n {\n super.select();\n SwingUtilities.invokeLater(() -> _sqlPanel.getSQLEntryPanel().requestFocus());\n }",
"protected abstract void select();",
"boolean isIsQuery();",
"public abstract String createQuery();",
"public abstract Statement queryToRetrieveData();",
"public void setInteractive(boolean interactive) {\n this.interactive = interactive;\n }",
"@Override\n\tpublic final Iterable<R> execute() {\n\t\t\n\t\treturn new Iterable<R>() {\n\t\t\t\n\t\t\t@Override \n\t\t\tpublic Iterator<R> iterator() {\n\t\t\t\t\n\t\t\t\treturn AbstractMultiQuery.this.iterator();\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\t\n\t}",
"@Override\r\n\tpublic void adminSelectRead() {\n\t\t\r\n\t}",
"public Boolean getQueryable() {\n return this.queryable;\n }",
"public void setQueryable(Boolean queryable) {\n this.queryable = queryable;\n }",
"public Query() {\n initComponents();\n }",
"private void executeQuery() {\n }",
"public Boolean isQueryable() {\n return this.queryable;\n }",
"public void consoleSelectItem() throws SQLException{\n System.out.println(\"came here\");\n ConsoleClass obj = new ConsoleClass();\n String item = console_actionItemList.getSelectionModel().getSelectedItem();\n obj.consoleSelectItem(this,item);\n }",
"@Override\n\tpublic Object accept(QueryVisitor visitor) {\n\t\treturn visitor.visit(this);\n\t}",
"private Queries() {\n // prevent instantiation\n }",
"@Override\n\t\tpublic void executeQuery(String query) {\n\t\t\t\n\t\t}",
"@Override\n protected void executeQueryForCollection(Object qc, Object[] params, int noUserParams) {\n super.executeQueryForCollection(qc, params, noUserParams);\n }",
"void runQueries();",
"@Override\n public void evaluateActiveUsers(String query) {\n\n\t}",
"@Override\n\tpublic void select() {\n\t}",
"@Override\n\tpublic void displayTheDatabase() {\n\t\t\n\t}",
"public abstract void inLineQuery(InlineQuery q);",
"public void customerQuery(){\n }",
"@Override\n\tpublic void queryPoints() {\n\n\t}",
"@Override\n\t\tprotected Cursor loadCursor() {\n\t\t\treturn ExerciseCatalog.get(getContext()).queryExercises();\n\t\t}",
"@Override\n\tprotected Cursor query()\n\t{\n\t\treturn null;\n\t}",
"@Override\n protected void processSelect() {\n \n }",
"boolean hasQueryVisibility();",
"public boolean isCallQueryMechanism() {\n return false;\n }",
"protected boolean isQueryAvailable() {\n return query != null;\n }",
"@Override\n\tpublic ResultSet select() {\n\t\treturn null;\n\t}",
"public static void mainExtended(){\n\t\tSystem.out.println(\"Enter 'EXIT' to exit the program\");\n\t\tSystem.out.println(\"Enter 'STU' for the Student Menu\");\n\t\tSystem.out.println(\"Enter 'FAC' for the Faculty Menu\");\n\t\tSystem.out.println(\"You may also enter a customized SQL query:\");\n\t\tSystem.out.println(\"However, this may only be a SELECT query, not a DDl,INSERT or UPDATE query\");\n\t}",
"@Override\n final public String getInputRelation() {\n return \"SELECT * FROM TR1_DB1_PROPHECY_Q5_INNER\";\n }",
"public JPQLQuery(ExecutionContext ec, JPQLQuery q)\r\n {\r\n super(ec, q);\r\n }",
"public void consoleDisplay() throws SQLException, ClassNotFoundException {\n ConsoleClass obj = new ConsoleClass();\n \n obj.consoleDisplay(this);\n// if(dbStatus == true) {\n// obj.getData(this);\n// }\n \n }",
"private boolean _autoShow() throws SessionException\n {\n if (this._argTable.get(CMD.PUSH) != null)\n return this._autoShowPush();\n else if (this._argTable.get(CMD.QUERY) != null)\n return this._autoShowQuery();\n else \n return this._autoShowPull();\n }",
"@Override\n public boolean isCurrent() { return cursor != null; }",
"public boolean isQueryResultEditable(){\n\t\tList<SelectColumn> selectColums = QueryBundleUtils.getSelectFromBundle(this.bundle);\n\t\tif(selectColums == null){\n\t\t\treturn false;\n\t\t}\n\t\t// Do all columns have IDs?\n\t\tfor(SelectColumn col: selectColums){\n\t\t\tif(col.getId() == null){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// All of the columns have ID so we can edit\n\t\treturn true;\n\t}",
"public interface Query {\n\n\t/**\n\t * @return ID of the given query\n\t */\n\tint queryID();\n\t\n\t/**\n\t * @return given query\n\t */\n\tString query();\n\t\n\t/**\n\t * @return list of relevant documents to the corresponding query\n\t */\n\tList<RelevanceInfo> listOfRelevantDocuments();\n\t\n\t/**\n\t * @return list of results to the corresponding query after running one of the retrieval models\n\t */\n\tList<Result> resultList();\n\t\n\t/**\n\t * @param resultList\n\t * @Effects adds results to the result list of the corresponding query\n\t */\n\tvoid putResultList(List<Result> resultList);\n}",
"@Override\n public GeneralQueryFormat getQuery(boolean isSelected) {\n get_client_by_id_query clientByIdQuery = new get_client_by_id_query();\n Client currClient = (Client)super.myparent.getSelectedObject();\n clientByIdQuery.setPreparedStatement(new Object[]{currClient.getClientId()});\n return clientByIdQuery;\n }",
"@Override\n SqlSelect wrapSelect(SqlNode node) {\n throw new UnsupportedOperationException();\n }",
"@Override\n\tpublic boolean hasSubquery() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic String getSelect() {\n\t\treturn SQL;\r\n\t}",
"public boolean hasQuery() {\n return fieldSetFlags()[8];\n }",
"boolean hasQuery();",
"public interface IDBSelection{\n\t\tpublic String getSelection();\n\t\tpublic String[] getArgs();\n\t}",
"@Override\n\tpublic void cancelQuery() {\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoQuery();\n\t\t\t}",
"@Override\n\tvoid executeQuery(String query) {\n\t\tSystem.out.println(\"Mssql ==> \" + query);\n\t}",
"SelectQuery createSelectQuery();",
"@Override\n public void execute() {}",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"@Override\n public PlainSqlQuery<T, ID> createPlainSqlQuery() {\n return null;\n }",
"public QueryElements getQueryAccess() {\n\t\treturn pQuery;\n\t}",
"private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"public void selectQuery(String query) {\n\t\tQuery q = QueryFactory.create(query);\n\t\tQueryExecution qe = QueryExecutionFactory.create(q, model);\n\t\tResultSet result = qe.execSelect();\n\t\tprintResultSet(result);\n\t\tqe.close();\n\t}",
"public java.lang.CharSequence getQuery() {\n return query;\n }",
"public java.lang.CharSequence getQuery() {\n return query;\n }",
"private InteractiveQueryServer startInteractiveQueryServer(int port, TBaseProcessor processor) {\n return createInteractiveQueryServer(port, processor).start();\n }",
"private static void showsSqlSelectOnNormalEntityBean() {\n\n\t\tQuery<Bug> query = Ebean.createQuery(Bug.class, \"simple\");\n\t\tquery.where().eq(\"status.code\", \"ACTIVE\");\n\n\t\tList<Bug> list = query.findList();\n\n\t\tSystem.out.println(list);\n\t\t\n\t\tfor (Bug bug : list) {\n\t\t\tString body = bug.getBody();\n\t\t\tSystem.out.println(body);\n\t\t}\n\n\t}",
"Query query();",
"@Override\n\tpublic DeveloperInfo DeveloperQuery(int id) {\n\t\treturn null;\n\t}",
"public void actionPerformed(boolean showSQL) {\n String selection = (String)this.getSelectedItem();\n\n try {\n String cursorId = \"\";\n \n if (selection.equals(\"MTS Dispatchers\")) { \n cursorId = \"dispatchers.sql\";\n }\n \n if (selection.equals(\"MTS Shared Servers\")) {\n cursorId = \"sharedServers.sql\";\n }\n\n Cursor myCursor = new Cursor(cursorId,true);\n Parameters myPars = new Parameters();\n ExecuteDisplay.executeDisplay(myCursor,myPars, scrollP, statusBar, showSQL, resultCache, true);\n }\n catch (Exception e) {\n ConsoleWindow.displayError(e,this);\n }\n }",
"@Override\n protected void execute() {\n \n }",
"public JPQLQuery(ExecutionContext ec, String query)\r\n {\r\n super(ec, query);\r\n }",
"public ResultSetFunctionalities() {\n initComponents();\n }",
"public void interact() {\r\n\t\t\r\n\t}",
"protected String getRetrievalQuery()\n {\n return immutableGetRetrievalQuery();\n }",
"private String getSelectQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeReadQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }",
"private DbQuery() {}",
"public StatementQueryMechanism(DatabaseQuery query) {\n super(query);\n }",
"public SelectQueryElements getSelectQueryAccess() {\n\t\treturn pSelectQuery;\n\t}",
"@Override\n public void Execute() {\n\n }",
"@Override\r\n public Command requestCommand() \r\n {\r\n while (!GameFrame.gameDisplay.selectionMade())\r\n {\r\n //System.out.println();\r\n Thread.yield();\r\n }\r\n \r\n Command command = GameFrame.gameDisplay.getSelection();\r\n GameFrame.gameDisplay.resetSelection();\r\n return command;\r\n }",
"public String query() {\n return this.query;\n }",
"public boolean isSetQuery() {\n return this.query != null;\n }",
"@Override\n protected void execute() {\n\n }",
"public QueryExecution createQueryExecution(Query qry);",
"private static void OnQueryStatusNYI(Object target, CanExecuteRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(target); \r\n\r\n if (This == null) \r\n {\r\n return;\r\n }\r\n\r\n args.CanExecute = true;\r\n }",
"public SelectedObjectUpdatingSystem() {\n super(Aspect.all(SelectBox.class));\n }",
"protected void execute() {}",
"public void cursorOn();",
"public Query getQuery ()\n {\n\n\treturn this.q;\n\n }",
"public Querytool getQuery() {\n return localQuerytool;\n }",
"public interface HiveQueryExecutor {\n /**\n * Execute the specified quer(y|ies).\n *\n * @param q Query to be executed. Queries may include \\n and mutliple, ;-delimited\n * statements. The entire string is passed to Hive.\n *\n * @throws HiveQueryExecutionException if Hive cannont execute a query.\n */\n public void executeQuery(String q) throws HiveQueryExecutionException;\n\n /**\n * Redirect the query execution's stdout\n *\n * @param out\n */\n public void setOut(PrintStream out);\n\n /**\n * Redirect the query execution's stdin\n *\n * @param in\n */\n public void setIn(InputStream in);\n\n /**\n * Redirect the query execution's stderr\n *\n * @param err\n */\n public void setErr(PrintStream err);\n}",
"@Override\n\tpublic void local_queryTopGiver() {\n\t\tqueryTopGiver();\n\t\t\n\t}",
"public String getQuery(){\n return this.query;\n }"
]
| [
"0.6442317",
"0.6365789",
"0.6345789",
"0.6175204",
"0.5961668",
"0.5862444",
"0.5817668",
"0.5797567",
"0.5778652",
"0.57253426",
"0.5721953",
"0.57187855",
"0.5709231",
"0.57066184",
"0.5687437",
"0.5633844",
"0.5625227",
"0.56169057",
"0.5599253",
"0.55975837",
"0.5588815",
"0.55569357",
"0.5549305",
"0.5541453",
"0.55377406",
"0.5530618",
"0.55219984",
"0.55209196",
"0.5502287",
"0.54974735",
"0.5491013",
"0.5489461",
"0.5486397",
"0.54856586",
"0.54551965",
"0.5452535",
"0.5450928",
"0.54440993",
"0.54353404",
"0.54329836",
"0.54319113",
"0.5430605",
"0.5420325",
"0.5418795",
"0.5406785",
"0.53936905",
"0.5382022",
"0.53682524",
"0.535611",
"0.5354921",
"0.5346544",
"0.5339826",
"0.53349775",
"0.5327721",
"0.5317548",
"0.5312601",
"0.53088945",
"0.5303177",
"0.52994174",
"0.529476",
"0.52933824",
"0.52745724",
"0.52745724",
"0.52745724",
"0.52744484",
"0.5269854",
"0.5256068",
"0.52548385",
"0.52494794",
"0.5226308",
"0.5225475",
"0.52203184",
"0.5203421",
"0.52022105",
"0.5197786",
"0.5193193",
"0.51897407",
"0.51867115",
"0.51814455",
"0.516458",
"0.51635677",
"0.51587516",
"0.51549125",
"0.515142",
"0.5147774",
"0.51465845",
"0.51452714",
"0.51404256",
"0.5134198",
"0.5130194",
"0.51180345",
"0.5117804",
"0.51177716",
"0.5115314",
"0.51135087",
"0.5113184",
"0.5106861",
"0.51066947",
"0.5105922",
"0.51058346"
]
| 0.5547951 | 23 |
Create an interactive query server | private InteractiveQueryServer createInteractiveQueryServer(int port, TBaseProcessor processor) {
interactiveQueryServer = Optional.of(new InteractiveQueryServer(port, processor));
return interactiveQueryServer.get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private InteractiveQueryServer startInteractiveQueryServer(int port, TBaseProcessor processor) {\n return createInteractiveQueryServer(port, processor).start();\n }",
"public static void main(String[] args) {\n\t\trouter = new CommandRouter();\n\t\ttry {\n\t\t\t// setup our socket connection to the tv, but don't connect yet\n\t\t\tconn = new Connection(HOST, PORT, router);\n\n\t\t\t// Tell out router which network connection to use\n\t\t\trouter.setConnection(conn);\n\n\t\t\t// setup a handler for incoming GrantedSessionCommand message\n\t\t\t// objects\n\t\t\ttry {\n\t\t\t\trouter.registerCommandSubscriber(new ICommandSubscriber() {\n\t\t\t\t\tpublic void onCommandReceived(AbstractCommand command) {\n\t\t\t\t\t\t// Filter out the messages we care about\n\t\t\t\t\t\tif (command instanceof GrantedSessionCommand) {\n\t\t\t\t\t\t\t// Print our our unique key, this will be used for\n\t\t\t\t\t\t\t// subsequent connections\n\t\t\t\t\t\t\tUtilities.log(\"Your instanceId is \" + ((GrantedSessionCommand) command).getInstanceId());\n\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//let's make the dock show up on the TV\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_yahoo\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(2000); //sleep for 2 seconds so the animation to dock finishes\n\n\t\t\t\t\t\t\t\t// Lets do something cool, like tell the TV to navigate to the right. Then do a little dance\n\t\t\t\t\t\t\t\t// This is the same as pressing \"right\" on your remote\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t// slide to the left\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//slide to the right\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//take it back now, y'all\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\t//cha cha cha\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\tUtilities.log(\"Problem writing to the network connection\");\n\t\t\t\t\t\t\t\tconn.close();\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Notify the main thread that everything we wanted to\n\t\t\t\t\t\t\t// do is done.\n\t\t\t\t\t\t\tsynchronized (conn) {\n\t\t\t\t\t\t\t\tconn.notifyAll();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else { // print out the others for educational purposes\n\t\t\t\t\t\t\tUtilities.log(\"Received: \" + command.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onConnectionLost(Connection conn) {\n\t\t\t\t\t\tUtilities.log(\"Connection Lost!\");\n\t\t\t\t\t}\n\t\t\t\t}, GrantedSessionCommand.class);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t// Establish a connection\n\t\t\t\tconn.establish();\n\t\t\t\t// Since this is the first time we are connecting, we must\n\t\t\t\t// create a new session\n\t\t\t\trouter.publishCommand(new CreateSessionCommand(APP_ID, CONSUMER_KEY, SECRET, APP_NAME));\n\n\t\t\t\tString message = getUserInput(\"Code: \");\n\t\t\t\trouter.publishCommand(new AuthSessionCommand(message, conn.getPeerCertificate()));\n\n\t\t\t\t// Let's wait until everything is done. This thread will get\n\t\t\t\t// notified once we are ready to clean up\n\t\t\t\ttry {\n\t\t\t\t\tsynchronized (conn) {\n\t\t\t\t\t\tconn.wait();\n\t\t\t\t\t}\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tUtilities.log(\"Error establishing connection to \" + HOST + \":\" + PORT);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tUtilities.log(\"Error establishing connection to \" + HOST + \":\" + PORT);\n\t\t\t}\n\n\t\t\t// It is always good practice to clean up after yourself\n\t\t\tconn.close();\n\n\t\t} catch (UnknownHostException e) {\n\t\t\tUtilities.log(\"Error resolving \" + HOST);\n\t\t\tSystem.exit(-1);\n\t\t} catch (IOException e) {\n\t\t\tUtilities.log(\"Problem writing to the network connection\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\tSystem.exit(1);\n\t}",
"public static void main(String[] args) {\n\t\ttry { NetworkServerControl server = new NetworkServerControl(InetAddress.getByName(\"localhost\"),1527);\n\t\tserver.start(null);\n\t\tSystem.out.println(\"DB Server Started!\");\n\t\t//server.shutdown();\n\t\t//cn = DriverManager.getConnection(dbURL);\n\t\t} catch(Exception e) {System.out.println(\"Cannot Start DB Server!\"); }\n\t\t\n\t\tfinal JettyServer jettyServer = new JettyServer();\n\t\tString jetty_home = System.getProperty(\"jetty.home\",\".\");\n Server server = new Server(8080);\n WebAppContext webapp = new WebAppContext();\n webapp.setContextPath(\"/\");\n //webapp.setWar(jetty_home+\"/target/vrscloud-1.war\");\n webapp.setWar(\"ROOT.war\");\n server.setHandler(webapp);\n // server.start();\t\n\t\t\n\t\t\n jettyServer.setHandler(webapp);\t\n\t\t\n\t\tRunnable runner = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew ServerRunner(jettyServer);\n\t\t\t}\n\t\t};\n\t\tEventQueue.invokeLater(runner);\n\t}",
"public static void main(String[] args) {\n Server server = new Server(1234);\n server.listen();\n \n // YOUR CODE HERE\n // It is not required (or recommended) to implement the server in\n // this runner class.\n }",
"public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main (String[] args) {\n\t\tAbstractServer as = new FirstServer();\n\t\tString ip = \"localhost\";\n\t\tas.connect(ip);\n\t\t\n\t}",
"public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void runQueries();",
"public void queryServer()\n {\n if(!getPassword().equals(getPasswordConfirm()))\n {\n Toast.makeText( (getActivity() ) .getBaseContext(), \"Password Mismatch.\", Toast.LENGTH_SHORT).show();\n passwordEdit.setText(\"\");\n passwordConfirmEdit.setText(\"\");\n }\n else if(!noNullUserInput())\n {\n //TODO highlight unfished fields.\n Toast.makeText( (getActivity() ) .getBaseContext(), \"Finish filling out the data!\", Toast.LENGTH_SHORT).show();\n }\n else if(Model.instance().getServerHost() == null || Model.instance().getServerHost() == null )\n {\n ((FamilyMap) getActivity() ).createServerInfoQuery(this); //easy...\n }\n else\n {\n //try it out. if it fails\n WebAccess wa = new WebAccess();\n RegisterRequest rr = new RegisterRequest(this.getUserName(),this.getPassword(),this.getEmail(), this.getFirstName(), this.getLastName(), this.getGender());\n wa.execute(rr);\n deactivateButtons();\n }\n }",
"public static void main(String[] args) throws IOException {\n ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);\n context.setContextPath(\"/\");\n\n // Establish DB connection first\n\n // now start the server\n System.out.println(\"=== Initializing server on port \" + PORT);\n\n Server jettyServer = new Server(PORT);\n jettyServer.setHandler(context);\n\n if (LOG_REQUESTS) {\n RequestLog requestLog = new RipLogger();\n jettyServer.setRequestLog(requestLog);\n }\n\n ServletHolder jerseyServlet = context.addServlet(ServletContainer.class, \"/sudoku/*\");\n jerseyServlet.setInitOrder(0);\n jerseyServlet.setInitParameter(\"jersey.config.server.provider.packages\", \"com.shadedreality.rest\");\n\n try {\n jettyServer.start();\n jettyServer.dumpStdErr();\n jettyServer.join();\n } catch (Exception e) {\n System.err.println(\"Uncaught Exception in server: \"+e);\n }\n finally {\n jettyServer.destroy();\n }\n }",
"public void start() {\n \t\tinit();\n\t\tif(!checkBackend()){\n\t\t\tvertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {\n\t\t\t\tpublic void handle(HttpServerRequest req) {\n\t\t\t\t String query_type = req.path();\t\t\n\t\t\t\t req.response().headers().set(\"Content-Type\", \"text/plain\");\n\t\t\t\t\n\t\t\t\t if(query_type.equals(\"/target\")){\n\t\t\t\t\t String key = req.params().get(\"targetID\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequest(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t String key = \"1\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequestRange(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}).listen(80);\n\t\t} else {\n\t\t\tSystem.out.println(\"Please make sure that both your DCI are up and running\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public void runServer(){\n try {\n serverSocket = new ServerSocket(portNumber);\n } catch (IOException ioe){\n System.out.println(ioe.getMessage());\n }\n \n while (true) { \n try {\n Socket clientSocket = serverSocket.accept();\n InetAddress inetAddress = clientSocket.getInetAddress();\n System.out.println(\"Connected with \" + inetAddress.getHostName()+ \".\\n IP address: \" + inetAddress.getHostAddress() + \"\\n\");\n new Thread(new RequestHandlerRunnable(clientSocket, database)).start();\n } catch (IOException ioe){\n System.out.println(ioe.getMessage());\n }\n }\n \n }",
"interface ServerSideCommand extends RemoteApiCommand {\n\n /** An http connection to AppEngine. */\n interface Connection {\n\n void prefetchXsrfToken();\n\n /** Send a POST request. TODO(mmuller): change to sendPostRequest() */\n String send(\n String endpoint, Map<String, ?> params, MediaType contentType, @Nullable byte[] payload)\n throws IOException;\n\n String sendGetRequest(String endpoint, Map<String, ?> params) throws IOException;\n\n Map<String, Object> sendJson(String endpoint, Map<String, ?> object) throws IOException;\n\n String getServerUrl();\n }\n\n void setConnection(Connection connection);\n}",
"static public void main(String[] args) throws IOException {\n port = (int) (Math.random() * ((65535 - 49152) + 1) + 49152);\n server = new ServerSocket(port);\n System.out.println(InetAddress.getLocalHost());\n System.out.println(\"Port: \" + port);\n while (true) {\n try {\n Socket socket = server.accept();\n MqttClient client = new MqttClient(socket);\n clients.add(client);\n client.start();\n } catch (IOException e) {\n System.out.println(\"Something failed.\");\n server.close();\n System.exit(0);\n }\n }\n }",
"Server remote(Server bootstrap, Database<S> vat);",
"public static void main(String[] args) {\n\t\tSession s2=util.getSession();\r\n\t\tQuery qry=s2.getNamedQuery(\"q2\");\r\n\t\t//Query qry=s2.getNamedQuery(\"q3\");\r\n\t\t//qry.setInteger(0, 50);\r\n\t\tList<Object[]> lust=qry.list();\r\n\t\tfor(Object[] row:lust) {\r\n\t\t\tSystem.out.println(Arrays.toString(row));\r\n\t\t}\r\n\t\tSystem.out.println(\"Completed\");\r\n\t}",
"public void launch() throws IOException {\n initBinding();\n var request = this.password == null ? new AnonymousConnection(login)\n : new AuthentificatedConnection(login, password);\n\n this.uniqueContext.putInQueue(request.toBuffer());\n console.setDaemon(true);\n console.start();// run stdin thread\n\n var lastCheck = System.currentTimeMillis();\n while (!Thread.interrupted()) {\n // printKeys();\n try {\n if (uniqueContext.isClosed()) {\n console.interrupt();\n selector.close();\n serverSocketChannel.close();\n sc.close();\n return;\n }\n selector.select(this::treatKey);\n processCommands();\n var currentTime = System.currentTimeMillis();\n if (currentTime >= lastCheck + TIMEOUT) {\n lastCheck = currentTime;\n clearInvalidSelectionKey();\n }\n } catch (UncheckedIOException tunneled) {\n throw tunneled.getCause();\n }\n }\n }",
"public void conectServer() {\n\n\t}",
"public static void main(String[] args) throws UnknownHostException, IOException\n\t{\n\t\t Socket clientSocket = new Socket(\"localhost\", 6789);\n\t\t clientSocket.setSoTimeout(5000);\n\n\t\t DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());\n\t\t BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t outToServer.writeBytes(\"queryState\" + '\\n'); // warningClear , stopRequest, startRequest, queryState\n\t\t String clientMess = inFromServer.readLine();\n\t\t System.out.println(\"FROM SERVER: \" + clientMess);\n\t\t clientSocket.close();\n\t\t String mess = null;\n\t\t if(clientMess.equals(\"ON\"))\n\t\t {\n\t\t\t mess = \"stopRequest\";\n\t\t }\n\t\t else if(clientMess.equals(\"OFF\"))\n\t\t\t mess = \"startRequest\";\n\t\t Socket clientSocket2 = new Socket(\"localhost\", 6789);\n\t\t DataOutputStream outToServer2 = new DataOutputStream(clientSocket2.getOutputStream());\n\t\t BufferedReader inFromServer2 = new BufferedReader(new InputStreamReader(clientSocket2.getInputStream()));\n\t\t outToServer2.writeBytes(mess + '\\n'); // warningClear , stopRequest, startRequest, queryState\n\t\t System.out.println(\"FROM SERVER: \" +inFromServer2.readLine() );\n\t\t clientSocket2.close();\n\t\t \n\t}",
"public static void main(String args[]) {\n\t\tif (args.length == 1)\n\t\t\tport = Integer.parseInt(args[0]);\n\t\tnew calculatorserver();\n\t}",
"public static void main(String args[]) {\n\t\tString host = \"localhost\";\n\t\tint portNum = 9000;\n\t\t\n\t\tboolean connectionGood = false;\n\t\t\n\t\tSocket librarySocket = null;\n\t PrintWriter toTheSocket = null;\n\t BufferedReader responseFromSocket = null;\n\t \n\t\ttry {\n\t\t\tSystem.out.println(\"Connecting to Alexandria.IO\");\n\t\t\tlibrarySocket = new Socket(host, portNum);\n\t\t\ttoTheSocket = new PrintWriter(librarySocket.getOutputStream());\n\t\t\tresponseFromSocket = new BufferedReader(new InputStreamReader(librarySocket.getInputStream()));\n\t\t\tconnectionGood = true;\n\t\t}\n\t\tcatch(IOException e1) {\n\t\t\tSystem.out.println(\"Could not find server, check if it is running\");\n\t\t}\n\t\t\n\t\t\n\t\tif(connectionGood == true) {\n\t\t\tScanner kbReader = new Scanner(System.in);\n\t\t\t\n\t\t\tSystem.out.println(\"Welcome to Alexandria.IO\");\n\t\t\tClient.printHelpOutput();\n\t\t\t\n\t\t\tboolean quitApplication = false;\n\t\t\ttry {\n\t\t\t\twhile(quitApplication == false) {\n\t\t\t\t\tString usrInput = kbReader.nextLine();\n\t\t\t\t\tString[] usrInputArr = usrInput.split(\",\");\n\t\t\t\t\tif(usrInputArr.length == 1) {\n\t\t\t\t\t\tif(usrInput.equalsIgnoreCase(\"quit\") || usrInput.equalsIgnoreCase(\"q\")) {\n\t\t\t\t\t\t\tquitApplication = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tClient.invalidCommand();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (usrInputArr.length == 0){\n\t\t\t\t\t\tClient.invalidCommand();\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tString command = usrInputArr[0];\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (command.equalsIgnoreCase(\"search\") || command.equalsIgnoreCase(\"s\")) {\n\t\t\t\t\t\t\tif (usrInputArr.length == 2) {\n\t\t\t\t\t\t\t\tString request = \"s_\" + usrInputArr[1] + \"\\n\";\n\t\t\t\t\t\t\t\tClient.sendRequest(toTheSocket, request);\n\t\t\t\t\t\t\t\tClient.handleServerResponse(responseFromSocket);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tClient.printHelpOutput();\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\telse if (command.equalsIgnoreCase(\"searchUser\") || command.equalsIgnoreCase(\"u\")) {\n\t\t\t\t\t\t\tif (usrInputArr.length == 2) {\n\t\t\t\t\t\t\t\tString request = \"u_\" + usrInputArr[1] + \"\\n\";\n\t\t\t\t\t\t\t\tClient.sendRequest(toTheSocket, request);\n\t\t\t\t\t\t\t\tClient.handleServerResponse(responseFromSocket);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tClient.printHelpOutput();\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (command.equalsIgnoreCase(\"borrow\") || command.equalsIgnoreCase(\"b\")) {\n\t\t\t\t\t\t\tif (usrInputArr.length == 3) {\n\t\t\t\t\t\t\t\tString request = \"b_\" + usrInputArr[1] + \"_\" + usrInputArr[2] + \"\\n\";\n\t\t\t\t\t\t\t\tClient.sendRequest(toTheSocket, request);\n\t\t\t\t\t\t\t\tClient.handleServerResponse(responseFromSocket);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tClient.printHelpOutput();\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (command.equalsIgnoreCase(\"return\") || command.equalsIgnoreCase(\"r\")) {\n\t\t\t\t\t\t\tif (usrInputArr.length == 2) {\n\t\t\t\t\t\t\t\tString request = \"r_\" + usrInputArr[1] + \"\\n\";\n\t\t\t\t\t\t\t\tClient.sendRequest(toTheSocket, request);\n\t\t\t\t\t\t\t\tClient.handleServerResponse(responseFromSocket);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tClient.printHelpOutput();\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (command.equalsIgnoreCase(\"adjustFees\") || command.equalsIgnoreCase(\"f\")) {\n\t\t\t\t\t\t\tif (usrInputArr.length == 3) {\n\t\t\t\t\t\t\t\tString request = \"f_\" + usrInputArr[1] + \"_\" + usrInputArr[2] + \"\\n\";\n\t\t\t\t\t\t\t\tClient.sendRequest(toTheSocket, request);\n\t\t\t\t\t\t\t\tClient.handleServerResponse(responseFromSocket);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tClient.printHelpOutput();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (command.equalsIgnoreCase(\"kill\") || command.equalsIgnoreCase(\"k\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"The kill command is unsupported at this time\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (command.equalsIgnoreCase(\"fixServer\") || command.equalsIgnoreCase(\"f\")) {\n\t\t\t\t\t\t\tSystem.out.println(\"The fix command is unsupported at this time\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tClient.invalidCommand();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tkbReader.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Error at client: \" + e.getMessage());\n\t\t\t}\n\t}\n\t\tSystem.out.println(\"Exiting\");\n\t\ttry {\n\t\t\tlibrarySocket.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Error while closing IO streams\");\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\t//Silence this exception\n\t\t}\n\t}",
"public static void main(String ...args) {\n Operation myOperation = Operation.alloc(\"http://example/special2\", \"special2\", \"Custom operation\");\n\n // Service endpoint names.\n String queryEndpoint = \"q\";\n String customEndpoint = \"x\";\n\n // Make a DataService with custom named for endpoints.\n // In this example, \"q\" for SPARQL query and \"x\" for our custom extension and no others.\n DatasetGraph dsg = DatasetGraphFactory.createTxnMem();\n DataService dataService = DataService.newBuilder(dsg)\n .addEndpoint(myOperation, customEndpoint)\n .addEndpoint(Operation.Query, queryEndpoint)\n .build();\n\n // This will be the code to handled for the operation.\n ActionService customHandler = new DemoService();\n\n FusekiServer server =\n FusekiServer.create().port(PORT)\n .verbose(true)\n // Register the new operation, and it's handler\n .registerOperation(myOperation, customHandler)\n\n // The DataService.\n .add(DATASET, dataService)\n\n // And build the server.\n .build();\n\n server.start();\n\n // Try some operations on the server using the service URL.\n String customOperationURL = SERVER_URL + DATASET + \"/\" + customEndpoint;\n String queryOperationURL = SERVER_URL + DATASET + \"/\" + queryEndpoint;\n\n Query query = QueryFactory.create(\"ASK{}\");\n\n try {\n\n // Try custom name - OK\n try ( QueryExecution qExec = QueryExecution.service(queryOperationURL, query) ) {\n qExec.execAsk();\n }\n\n // Try the usual default name, which is not configured in the DataService so expect a 404.\n try ( QueryExecution qExec = QueryExecution.service(SERVER_URL + DATASET + \"/sparql\", query) ) {\n qExec.execAsk();\n throw new RuntimeException(\"Didn't fail\");\n } catch (QueryExceptionHTTP ex) {\n if ( ex.getStatusCode() != HttpSC.NOT_FOUND_404 ) {\n throw new RuntimeException(\"Not a 404\", ex);\n }\n }\n\n // Make an HTTP GET to the custom operation.\n // Service endpoint name : GET\n String s1 = HttpOp.httpGetString(customOperationURL);\n if ( s1 == null )\n throw new RuntimeException(\"Failed: \"+customOperationURL);\n\n } finally {\n server.stop();\n }\n }",
"public abstract String createQuery();",
"private void startServer() throws IOException {\n while (true) {\n System.out.println(\"[1] Waiting for connection...\");\n\n client = server.accept();\n System.out.println(\"[2] Connection accepted from: \" + client.getInetAddress());\n\n in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n out = new PrintStream(client.getOutputStream(), true);\n\n while (!in.ready()) ;\n\n String line = in.readLine();\n ManageConnections connection = new ManageConnectionsFactory().getConnection(line);\n\n connection.goConnect(client, in, out);\n }\n }",
"public LocalClient() {\n\t\tsuper(\"SERVER\", Arrays.asList(new String[] {\"*\"}), null, null);\n\t\tinputThread = new Thread(this);\n\t\tinputThread.start();\n\t}",
"public static void main(String[] args) \n {\n int port = DEFAULT_PORT; //Port to listen on\n\n\n ServerGui serverGui = new ServerGui();\n serverGui.setVisible(true);\n serverGui.setSize(450, 300);\n \n \n //----------------------------------\n // EchoServer sv = new EchoServer(port);\n \n }",
"public SQLCommandHandler() {\n this.server = \"0.0.0.0\";\n this.port = \"3306\";\n this.user = \"\";\n this.pass = \"\";\n this.database = \"Messages\";\n }",
"public void runServer() {\n\t\tint i = 0;\n\n\t\tclientList = new ArrayList<>();\n\t\ttry {\n\t\t\tServerSocket listener = new ServerSocket(port);\n\n\t\t\tSocket server;\n\n\t\t\tprintDetails();\n\n\t\t\twhile ((i++ < maxConnections) || (maxConnections == 0)) {\n\n\t\t\t\tserver = listener.accept();\n\t\t\t\tSession session = new Session(server, this.storageLocation );\n\n\t\t\t\tnew Thread(session).start();\n\n\t\t\t\tString name = session.getName();\n\t\t\t\tSystem.out.printf(\"%s STARTED\\r\\n\", name );\n\t\t\t\tclientList.add( session );\n\t\t\t\tdoGC();\n\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"IOException on socket listen: \" + ioe);\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException \n {\t \n\tScanner scannerIn = new Scanner(System.in);\n\tSystem.out.print(\"Please enter port number for the Chat Server to run on : \");\n\tint port = scannerIn.nextInt();\n\t//starts new ChatServer\n\tChatServer cs = new ChatServer(port);\n }",
"public void run(){\n\t\tinputStreamReader = new InputStreamReader(System.in);\r\n\t\tin = new BufferedReader( inputStreamReader );\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\" + Application.APPLICATION_VENDOR + \" \" + Application.APPLICATION_NAME + \" \" + Application.VERSION_MAJOR + \".\" + Application.VERSION_MINOR + \".\" + Application.VERSION_REVISION + \" (http://ThreatFactor.com)\");\r\n\t\t//System.out.println(\"We are here to help, just go to http://ThreatFactor.com/\");\r\n\t\t\r\n\t\tif( application.getNetworkManager().sslEnabled() )\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 443 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 80 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Interactive console, type help for list of commands\");\r\n\t\t\r\n\t\tcontinueExecuting = true;\r\n\t\twhile( continueExecuting ){\r\n\r\n\t\t\tSystem.out.print(\"> \");\r\n\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tString text = in.readLine();\r\n\t\t\t\t\r\n\t\t\t\tif( continueExecuting && text != null ){\r\n\t\t\t\t\tcontinueExecuting = runCommand( text.trim() );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(AsynchronousCloseException e){\r\n\t\t\t\t//Do nothing, this was likely thrown because the read-line command was interrupted during the shutdown operation\r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\t//Catch the exception and move on, the console listener must not be allowed to exit\r\n\t\t\t\tSystem.err.println(\"Operation Failed: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t\t//Stop listening. Otherwise, an exception loop may occur. \r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tEndpoint.publish(\"http://127.0.0.1:1111/cs\", new Calculator());\r\n\t\tSystem.out.println(\"Server has started\");\r\n\r\n\t}",
"public static void main(String[] args) throws IOException {\n ServerSocket server = new ServerSocket(8080);\n ExecutorService service = Executors.newCachedThreadPool();\n while (true) {\n Socket socket = server.accept();\n System.out.println(\"Client accept\");\n service.submit(new ClientSession(socket));\n }\n\n }",
"Query query();",
"public static void main(String[] args) {\n\t\tSettingUI serverUI = new SettingUI(\"server\");\n\n\t\t//System.out.print(\"Port(eg.1111): \");\n\t\t// int portNumber = 1111;\n\t\t// int portNumber = console.nextInt();\n\t\t// GameServer gameServer = new GameServer(portNumber);\n\t\t// gameServer.setUpChat();\n\t\t// gameServer.start();\n\t}",
"public static void main(String args[]) {\r\n try {\r\n int serverPort = 7896; // the server port\r\n ServerSocket listenSocket = new ServerSocket(serverPort);\r\n while (true) {\r\n Socket clientSocket = listenSocket.accept();\r\n Connection c = new Connection(clientSocket);\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Listen socket:\" + e.getMessage());\r\n\r\n }\r\n }",
"public static void main(String[] args) throws NamingException {\n InitialContext ic = new InitialContext();\n db = (DatabaseRemote) ic.lookup(DatabaseRemote.class.getName());\n Gui gui = new Gui(db);\n gui.setVisible(true);\n \n }",
"protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void serverInterpret() throws IOException {\n Interpreter i;\n if (parentInterpreter == null) {\n i = new Interpreter(getUblu());\n } else {\n i = new Interpreter(parentInterpreter);\n }\n i.setOutputStream(new PrintStream(getSocket().getOutputStream()));\n i.setInputStream(getSocket().getInputStream());\n i.setInputStreamBufferedReader(new BufferedReader(new InputStreamReader(i.getInputStream())));\n while (!i.isGoodBye()) {\n String s = i.getInputStreamBufferedReader().readLine();\n if (s != null) {\n i.setArgArray(new Parser(i, s).parseAnArgArray());\n i.loop();\n }\n }\n }",
"public static void main(String[] args) {\n\n Server server = new Server();\n // Accepts any new connections and opens a new socket for data transfer\n while (true) {\n Socket connectionSocket = server.AcceptIncomingConnections();\n if (connectionSocket != null) {\n new Thread(new ServerInstance(connectionSocket)).start();\n } else {\n // Error accepting , terminate server\n System.out.println(\"Error accepting incoming connections. Server shutting down\");\n break;\n }\n }\n }",
"public static void main(String[] args){\n ChatRoomServer server = new ChatRoomServer(portNumber);\n server.startServer();\n }",
"public void startServer()\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Listen\");\n\t\t\tif(listenInitialValuesRequest)\n\t\t\t{\n\t\t\t\tlistenInitialValuesRequest();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tObject server = serverDefinition.getServerFlag().getFlag();\n\t\t\t\t\tif (server == null) {\n\t\t\t\t\t\tshowPanel(CONNECTING_PANEL);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowPanel(CONNECTED_PANEL);\n\t\t\t\t\t}\n\t\t\t\t}",
"public void run() {\n Socket socket;\n try {\n socket = new Socket(servers.getServerAddress(),Integer.parseInt(servers.getServerPort()));\n } catch (IOException e) {\n // e.printStackTrace();\n System.err.println(\"Cannot connect to the server: \" + servers.getServerAddress()\n + \" at port:\" + servers.getServerPort());\n return;\n }\n\n ObjectOutputStream toServer = null;\n try {\n toServer = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n BufferedReader toClient = null;\n try {\n toClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n\n toServer.writeObject(argsToServer);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //get and print query results\n String line;\n int count = 0;\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n PrintStream pr = new PrintStream(out);\n try {\n while((line = toClient.readLine()) != null) {\n System.out.println(\"<\" + servers.getServerAddress() + \"> :\" + line);\n count++;\n pr.println(line);\n }\n pr.flush();\n System.out.println(servers.getServerAddress()+ \" query count: \" + count);\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //saveLocalFile(out);\n }",
"public static void main(String[] args) throws IOException {\n\t\tServerSocket server_socket = new ServerSocket(13267);\n\n\t\tserver_obj s0 = new server_obj(server_socket);\n\t\ts0.connect_db();\n\n\t\t/*server_obj[] ser = new server_obj[100];\n\t\tfor(int i=0; i<20; i++){\n\t\t\tser[i] = new server_obj(server_socket);\n\t\t\tser[i].start();\n\t\t}*/\n\t\t\n\t\t//과부하 방지용, 테스트용 소스. 서비스용은 위 20개 클라이언트 오픈\n\t\tserver_obj s1 = new server_obj(server_socket);\n\t\ts1.start();\t\n\n\t\tserver_obj s2 = new server_obj(server_socket);\n\t\ts2.start();\n\n\t}",
"private void start(String[] args){\n\t\tServerSocket listenSocket;\n\n\t\ttry {\n\t\t\tlistenSocket = new ServerSocket(Integer.parseInt(args[0])); //port\n\t\t\tSystem.out.println(\"Server ready...\");\n\t\t\twhile (true) {\n\t\t\t\tSocket clientSocket = listenSocket.accept();\n\t\t\t\tSystem.out.println(\"Connexion from:\" + clientSocket.getInetAddress());\n\t\t\t\tClientThread ct = new ClientThread(this,clientSocket);\n\t\t\t\tct.start();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error in EchoServer:\" + e);\n\t\t}\n\t}",
"public void Query() {\n }",
"public static void main(String[] args) throws IOException {\n JFrame frame = new JFrame( \"TextDemo\" );\n frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n\n StocksDB allowedUsers = new StocksDB( \"stocks.csv\", \"Symbol\", \"Security Name\", \"Price \" );\n\n VisualServer server = new VisualServer( MainServer.BASE_PORT, allowedUsers );\n //Add contents to the window.\n frame.add( new Display( server ) );\n\n //Display the window.\n frame.pack();\n frame.setVisible( true );\n\n server.server_loop();\n }",
"public static void main(String[] args){\n \n Chat m = new Chat();\n m.connectChat(new String[]{\"100.1.215.220\",\"8889\"});\n //m.runServer(new String[]{\"192.168.1.164\",\"8889\"});\n }",
"public static void main(String[] args) {\n\t\tif (args[1] != null)\n\t\t{\n\t\t\thost = args[1];\n\t\t} else {\n\t\t\thost = \"127.0.0.1\";\n\t\t}\n\t\ttry {\n\t\t\tcreateUI();\n\t\t\tclientSocket = new Socket(host, port);\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tclientSocket.getInputStream()));\n\t\t\tmessageHandler(out, in);\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t}",
"public ServerConsole(String uID, String host, String password, int port){\n\t\ttry{\n\t\t\tclient= new ChatClient(uID, host, password, port, this);\n\t\t} \n\t\tcatch(IOException exception){\n\t\t\tSystem.out.println(\"Error: Can't setup connection!\" + \" Terminating client.\");\t\n\t\t\tSystem.exit(1);\n\t\t}\n\t}",
"public static void main(String[] args) throws ClassNotFoundException, IOException, SQLException\n {\n PgTestClient2 client = new PgTestClient2();\n client.init();\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n System.out.print(\"->\");\n String cmd = \"select * from public.hello limit 1\";\n try\n {\n PgTestUtil.query(client.connection, cmd);\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n }",
"Query queryOn(Connection connection);",
"public FutureResultWithAnswer queryToServer(Query query) throws IOException, Net4CareException;",
"protected void serverStarted()\n {\n // System.out.println\n // (\"Server listening for connections on port \" + getPort());\n }",
"public void getConnections() throws IOException {\n\t\tString fileName = \"\";\n\t\twhile (serverAlive) {\n\t\t\ttry {\n\t\t\t\tTrackerServerCommunicator comm = \n\t\t\t\t\t\tnew TrackerServerCommunicator(listen.accept(), this, globalId);\n\t\t\t\tglobalId++;\n\t\t\t\tcomm.setDaemon(true);\n\t\t\t\tcomm.start();\n\t\t\t\taddCommunicator(comm);\n\t\t\t} \n\t\t\tcatch (SocketException e) {\n\t\t\t\tfileName = dataTable.saveInfo(\"./\");\n\t\t\t\tserverAlive = false;\n\t\t\t}\n\t\t}\n\t\tString[] cmd = {\"/usr/bin/python ./Visualizer.py \" + fileName};\n\t\tRuntime.getRuntime().exec(cmd);\n\t}",
"@Override\n\tpublic void handleServerCmd() {\n\t\t\n\t}",
"public static void main(String[] args){\n\t\tString user_id=\"Server\";\n\t\tString host = \"\", password=\"\";\n\t\tint port = 0; //The port number\n\t\ttry{\n\t\t\tpassword = args[0];\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException e) {\n\t\t\tSystem.out.println(\"ERROR: No password provided for logging onto server console, connection aborted\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\ttry{\n\t\t\thost = args[1];\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException e){\n\t\t\thost = \"localhost\";\n\t\t}\n\t\ttry{\n\t\t\tport = Integer.parseInt(args[2]);\n\t\t}catch (ArrayIndexOutOfBoundsException e){\n\t\t\tport = DEFAULT_PORT;\n\t\t}\n\t\tServerConsole serv= new ServerConsole(user_id, host, password, port);\n\t\tserv.accept(); //Wait for console data\n\t}",
"private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}",
"public void init(){\n\t\tmultiplexingClientServer = new MultiplexingClientServer(selectorCreator);\n\t}",
"private void run() throws ClassNotFoundException, SQLException {\n OptionParser parser = new OptionParser();\n parser.accepts(\"gui\");\n parser.accepts(\"port\").withRequiredArg().ofType(Integer.class)\n .defaultsTo(DEFAULT_PORT);\n OptionSet options = parser.parse(args);\n\n if (options.has(\"gui\")) {\n guiProcessor.runSparkServer((int) options.valueOf(\"port\"));\n }\n\n commandProcessor.addCommands(manager::getPatternCommandMap);\n commandProcessor.repl();\n }",
"public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}",
"public void launch() throws NotBoundException, IOException\n\t{\n\t\t//call method to connect to server\t\t\n\t\tServerManager serverConnect = initialConnect();\t\n\t\n\t\t//get Setup menu from server\n\t\tSetUpMenu newSetup = new SetUpMenu(serverConnect);\n\t\tnewSetup.welcomeMenu();\n\t}",
"public static void main(String[] args) {\n\n try (ServerSocket ss = new ServerSocket(PORT)) {\n System.out.println(\"chat.Server is started...\");\n System.out.println(\"Server address: \" + getCurrentIP() + \":\" + PORT);\n\n while (true) {\n Socket socket = ss.accept();\n new Handler(socket).start();\n }\n\n } catch (IOException e) {\n System.out.println(\"chat.Server error.\");\n }\n }",
"public static void main(String[] args){\n\t\tView view = new View();\r\n\t\tDatabaseInteraction model = new DatabaseInteraction();\r\n\r\n\t\t//Initialize controller. \r\n\t\tController controller = new Controller(view,model);\r\n\r\n\t\t//Connect database, start user interaction, and let the controller respond to user options. \r\n\t\tmodel.connectDatabase();\r\n\t\tcontroller.userInteracion();\r\n\t\tcontroller.respondToUserOption();\r\n\r\n\t}",
"private void interactive() {\r\n\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\r\n\t\t\r\n\t\twhile (true) {\r\n\t\t\tSystem.out.print(\"Enter Command: \");\r\n\t\t\ttry {\r\n\t\t\t\tprocessCommandSet(tokenizeInput(keyboard.readLine()));\r\n\t\t\t\tif (quit == true) {\r\n\t\t\t\t\tSystem.out.println(\"Terminated at users request.\");\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.err.println(\"An IO Error Occured. \" + e.getMessage());\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"public static void main(String[] args) throws IOException\n {\n ServerSocket listener = new ServerSocket(PORT);\n\n while (true)\n {\n System.out.println(\"[SERVER] Waiting for connection . . . \");\n //takes in the user client sockets\n Socket client = listener.accept();\n //Announces that the user has connected\n System.out.println(\"[SERVER] Connected to client \" + client.getInetAddress());\n ClientHandler clientThread = new ClientHandler(client, clients);\n\n pool.execute(clientThread);\n }\n }",
"public static void main(String[] args) {\n\t\tClient client = new Client();\n\t\tClientMenu cm = new ClientMenu(\"localhost\", 7966, client);\n\t\tclient.addObserver(cm);\n\t}",
"public static void main(String[] args) {\n\t\tserver_gui s_gui = new server_gui();\n\t}",
"public static void main(String[] args)throws IOException{\n new Client(\"localhost\", 12000);\n }",
"public static void main(String[] args) {\n\r\n\t\tint port=5000;\r\n\t\t\r\n\t\tSystem.out.println(\"server is running at:\"+port);\r\n\t\tCLientHandler handler=CLientHandler.getInstance();\r\n\t\r\n\t\t\r\n\t\tUserDao dao=new UserDaoImpl();\r\n\t\tUserLoader.loadUser(dao);\r\n\t\ttry {\r\n\t\t\tServerSocket conn=new ServerSocket(port);\r\n\t\t\t\r\n\t\t\twhile(true) {\r\n\t\t\t\tSocket socket=conn.accept();\r\n\t\t\t\r\n\t\t\t\tClientListner listner=new ClientListner(socket,dao);\r\n//\t\t\t\tlistner.setHandler(handler);\r\n\t\t\t\tlistner.start();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String argv[]) {\n CategoriesFrame categoriesFrame;\n TasksFrame tasksFrame = null;\n String demandForServer = \"\";\n\n try {\n TCPClient tcpClient = new TCPClient();\n DemandService service;\n service = new DemandService(tcpClient.clientSocket);\n service.reciveWelcomeMessageFromServer();\n\n for (String s : argv) {\n service.realize(\"ADD CATEGORY ;; \" + s);\n }\n\n categoriesFrame = new CategoriesFrame(service.getInformationFromServer(\"GET CATEGORIES\"));\n\n boolean doWeShowTasks = false;\n\n while (true) {\n try {\n Thread.sleep(200);\n } catch (InterruptedException e) {\n }\n\n demandForServer = categoriesFrame.getDemandForServer();\n if (demandForServer.equals(\"\")) {\n if (tasksFrame != null) {\n demandForServer = tasksFrame.getDemandForServer();\n if (!demandForServer.equals(\"\")) {\n tasksFrame.resetDemandForServer();\n service.realize(demandForServer);\n }\n }\n } else {\n service.realize(demandForServer);\n categoriesFrame.resetDemandForServer();\n }\n\n if (categoriesFrame.doWeWantToRefreshCategories()) {\n categoriesFrame.showFrame(service.getInformationFromServer(\"GET CATEGORIES\"));\n categoriesFrame.resetDoWeRefresh();\n } else if (doWeShowTasks) {\n categoriesFrame.resetDoWeShowTasks();\n categoriesFrame.hide();\n tasksFrame = new TasksFrame(categoriesFrame.getChosenCategory(), service.getInformationFromServer(\"GET TASKS ;; \" + categoriesFrame.getChosenCategory()));\n } else if (tasksFrame != null) {\n if (tasksFrame.doWeWantToShowCategories()) {\n tasksFrame.resetDoWeShowCategories();\n tasksFrame.hide();\n categoriesFrame.showFrame(service.getInformationFromServer(\"GET CATEGORIES\"));\n } else if (tasksFrame.doWeWantToRefreshTasks()) {\n tasksFrame.showFrame(service.getInformationFromServer(\"GET TASKS ;; \" + categoriesFrame.getChosenCategory()));\n tasksFrame.resetDoWeRefresh();\n }\n }\n\n doWeShowTasks = categoriesFrame.doWeWantToShowTasks();\n\n }\n } catch (ErrorWithServerException | NullPointerException ex) {\n ErrorFrame errFrame = new ErrorFrame(ex.getMessage());\n }\n }",
"public static void main(String[] args) \r\n {\r\n\r\n int portNumber = 5007;\r\n\r\n if (args.length != 2) {\r\n System.err.println(\"Syntax: java Server <port number>\");\r\n System.exit(1);\r\n }\r\n\r\n portNumber = Integer.parseInt(args[1]);\r\n\r\n chatd server = new chatd(\"-port\", portNumber);\r\n server.launch();\r\n }",
"public Client() {\n initComponents();\n \n Server server = new Server();\n server.start();\n \n }",
"public static void main(String[] args) {\n\t\tServer.Serv();\n\t}",
"public static void echo_server_single( int portno ) \nthrows IOException\n {\n ServerSocket acc = new ServerSocket( portno );\n print_my_host_port( portno );\n while( true )\n {\n stdout.printf(\"accepting incoming connections (hash== %s) ...\\n\", \n acc.hashCode());\n Socket com = acc.accept();\n tcp_peeraddr_print( com );\n EchoServerWorker esw = new EchoServerWorker(com);\n esw.run();\n } // while\n}",
"private void requestServerId() {\n connection.startClient(lbInfo.getIp(), lbInfo.getPort());\n System.out.println(\"Connected!\");\n connection.sendMessage(connectionInfo);\n }",
"private void runServer()\n\t{\n\t\tif(sm == null)\n\t\t{\n\t\t\tsm = new ServerManager();\n\t\t}\n\t\t\n\t\tint port = 1209;\n\t\ttry \n\t\t{\n\t\t\twaitUser(sm, port);\n\t\t\t//이 아래 로직이 실행된다는건 유저가 다 들어왔다는 뜻임. 즉 게임 시작할 준비 되었음을 의미함\t\t\t\n\t\t\tGame.getInstance().runGame();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"[Server.runServer()] error >>> : \" + e.getMessage());\n\t\t}\n\t}",
"public static void main (String[] args) {\n \n\n System.out.print (\"ARGS= \");\n for (String arg: args)\n System.out.print (arg + \" \");\n System.out.println();\n\n\n if (args.length != 5 && args.length != 4) {\n System.err.println (\n \"Usage: \" +\n \"java [-classpath <classpath>] \" +\n Messenger.class.getName () +\n \" <hostname> <dbname> <port> <user> <password>\");\n return;\n }//end if\n \n Greeting();\n Messenger esql = null;\n try{\n // use postgres JDBC driver.\n Class.forName (\"org.postgresql.Driver\").newInstance ();\n // instantiate the Messenger object and creates a physical\n // connection.\n String hostname = args[0];\n System.out.println(\"hostname is \" + hostname);\n \n String dbname = args[1];\n System.out.println(\"dbname is \" + dbname);\n \n String dbport = args[2];\n System.out.println(\"dbport is \" + dbport);\n \n String user = args[3];\n System.out.println(\"user is \" + user);\n \n String password = \"\";\n if(args.length == 5 ){\n password = args[4];\n }\n System.out.println(\"password is \" + password);\n \n esql = new Messenger (hostname, dbname, dbport, user, password);\n\n boolean keepon = true;\n while(keepon) {\n // These are sample SQL statements\n System.out.print(\"\\033[H\\033[2J\");\n System.out.println(\"MAIN MENU\");\n System.out.println(\"---------\");\n System.out.println(\"1. Create user\");\n System.out.println(\"2. Log in\");\n System.out.println(\"9. < EXIT\");\n System.out.flush();\n String authorisedUser = null;\n switch (readChoice()){\n case 1: CreateUser(esql);\n WaitForKey(); break;\n case 2: authorisedUser = LogIn(esql); break;\n case 9: keepon = false; break;\n default : System.out.println(\"Unrecognized choice!\"); break;\n }//end switch\n if (authorisedUser != null) {\n boolean usermenu = true;\n while(usermenu) {\n System.out.print(\"\\033[H\\033[2J\");\n System.out.println(\"MAIN MENU\\tWelcome, \"+authorisedUser);\n System.out.println(\"---------\");\n System.out.println(\"1. Add to contact list\");\n System.out.println(\"2. Remove from contact list\");\n System.out.println(\"3. Browse contact list\");\n System.out.println(\"4. Add to blocked list\");\n System.out.println(\"5. Remove from blocked list\");\n System.out.println(\"6. Browse blocked list\");\n System.out.println(\"7. View chats\");\n System.out.println(\"8. Create a chat\");\n\t\tSystem.out.println(\"9. Change status\");\n System.out.println(\"10. Delete account\");\n System.out.println(\".........................\");\n System.out.println(\"11. Log out\");\n System.out.flush();\n switch (readChoice()){\n case 1: AddToContact(esql, authorisedUser); \n WaitForKey(); break;\n \n case 2: RemoveFromContact(esql, authorisedUser);\n WaitForKey(); break;\n \n case 3: ListContacts(esql, authorisedUser); \n WaitForKey(); break;\n \n case 4: AddToBlock(esql, authorisedUser);\n WaitForKey(); break;\n \n case 5: RemoveFromBlock(esql, authorisedUser);\n\t\t\t\t\t\t WaitForKey(); break; \n \n case 6: ListBlocked(esql, authorisedUser); \n WaitForKey(); break;\n \n case 7: ViewChatSubmenu(esql, authorisedUser);\n break;\n \n case 8: NewChat(esql, authorisedUser); \n WaitForKey(); break;\n \n\t\t case 9: UpdateStatus(esql, authorisedUser);\n\t\t\t WaitForKey(); break;\n\n case 10: boolean logout = DeleteAccount(esql, authorisedUser); \n\t\t\t\t\t\t if (logout) {\n\t\t\t\t\t\t \t usermenu = false;\n\t\t\t\t\t\t }break;\n \n case 11: usermenu = false; break;\n \n default : System.out.println(\"Unrecognized choice!\"); \n WaitForKey(); break;\n }\n }\n }\n }//end while\n }catch(Exception e) {\n System.err.println (e.getMessage ());\n }finally{\n // make sure to cleanup the created table and close the connection.\n try{\n if(esql != null) {\n System.out.print(\"Disconnecting from database...\");\n esql.cleanup ();\n System.out.println(\"Done\\n\\nBye !\");\n }//end if\n }catch (Exception e) {\n // ignored.\n }//end try\n }//end try\n }",
"public static void main(String[] args) {\n \tselect();\n\n\t}",
"public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }",
"public static void main(String[] args){\n\t\ttry{\n\t\t\tServerSocket ss = new ServerSocket(6665);\n\t\t\tSocket s = ss.accept();\n\t\t\t//in = s.getInputStream();\n\t\t\t//out = s.getOutputStream();\n\t\t\tBufferedReader keyboard = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tBufferedReader ind = new BufferedReader(new InputStreamReader(s.getInputStream()));\n\t\t\tPrintWriter outd = new PrintWriter(s.getOutputStream());\n\t\t\tString db = null;\n\t\t\t//System.out.println(\"Client:\" + ind.readLine());\n\t\t\tdb = ind.readLine();\n\t\t\twhile(!db.equals(\"bye\")){\n\t\t\t\tSystem.out.println(\"Client:\" + db);\n\t\t\t\tdb = ind.readLine();\n\t\t\t}\n\n\n\t\t\t/*\n\t\t\tdb = keyboard.readLine();\n\t\t\twhile(!db.equals(\"bye\")){\n\t\t\t\toutd.println(db);\n\t\t\t\tSystem.out.println(\"Me:\"+db);\n\t\t\t\tSystem.out.println(\"Client:\"+ind.readLine());\n\t\t\t\tdb = keyboard.readLine();\n\t\t\t}\n\t\t\t*/\n\t\t\tind.close();\n\t\t\toutd.close();\n\t\t\ts.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void execute() {\n\n\t\tPropertiesParser propertiesParser = new PropertiesParser();\n\t\t\n\t\tsetupServer(propertiesParser);\n\t\ttry {\n\t\t\t\n\t\t\tThread.sleep(SERVER_AFTER_RUN_DELAY);\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tint i=0;\n\t\tfor( ; i < propertiesParser.getReadersNum() ; i++){\n\t\t\t\n\t\t\tsetupClient(propertiesParser , i,true);\n\t\t\t\n\t\t}\n\t\tfor(; i < propertiesParser.getReadersNum()+ propertiesParser.getWritersNum() ; i++){\n\t\t\t\n\t\t\tsetupClient(propertiesParser , i,false);\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\n String host = \"\";\n int port = DEFAULT_PORT; // The port number\n\n try {\n host = args[1];\n port = Integer.parseInt(args[2]);\n } catch (Exception ex) {\n }\n\n // Getting the login id\n\n // BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n // String identification = new String();\n\n try {\n String clientID = args[0];\n ClientConsole chat = new ClientConsole(clientID, host, port);\n chat.accept();\n } catch (Exception Ex) {\n System.out.println(\"ERROR - No login ID specified. Connection aborted.\");\n }\n\n /*\n * System.out.\n * println(\"Please specify port number (If blank, default port 5555 will be used)\"\n * ); try { String input = reader.readLine(); port = Integer.parseInt(input); }\n * \n * catch (Exception ex) {\n * System.out.println(\"Invalid port number. Default port of 5555 will be used\");\n * }\n * \n * if (port > 65535 || port < 0) { System.out.println(\"Invalid Port Number\"); }\n * else { System.out.println(\"Connection to server at port \" + port); try { host\n * = args[0]; } catch (ArrayIndexOutOfBoundsException e) { host = \"localhost\"; }\n * \n * ClientConsole chat = new ClientConsole(identification, host, port);\n * chat.accept(); // Wait for console data\n */\n }",
"public void run() {\n List<Map> queries = (List<Map>) server.get(\"queries\");\n Connection connection = null;\n if (queries != null && !queries.isEmpty()) {\n String dbServerDisplayName = (String) server.get(\"displayName\");\n try {\n long timeBeforeConnection = System.currentTimeMillis();\n connection = getConnection();\n long timeAfterConnection = System.currentTimeMillis();\n logger.debug(\"Time taken to get Connection: \" + (timeAfterConnection - timeBeforeConnection));\n\n logger.debug(\"Time taken to get Connection for \" + dbServerDisplayName + \" : \" + (timeAfterConnection - timeBeforeConnection));\n\n if (connection != null) {\n logger.debug(\" Connection successful for server: \" + dbServerDisplayName);\n for (Map query : queries)\n executeQuery(connection, query);\n } else {\n\n logger.debug(\"Null Connection returned for server: \" + dbServerDisplayName);\n }\n\n } catch (SQLException e) {\n logger.error(\"Error Opening connection\", e);\n status = false;\n } catch (ClassNotFoundException e) {\n logger.error(\"Class not found while opening connection\", e);\n status = false;\n } catch (Exception e) {\n logger.error(\"Error collecting metrics for \"+dbServerDisplayName, e);\n status = false;\n }\n finally {\n try {\n if (connection != null) {\n closeConnection(connection);\n }\n } catch (Exception e) {\n logger.error(\"Issue closing the connection\", e);\n }\n }\n }\n }",
"public void start()\r\n {\r\n System.out.print(\"Server host? [localhost]: \");\r\n String host = scanner.nextLine().trim();\r\n if(host.length() == 0)\r\n {\r\n host = \"localhost\";\r\n }\r\n \r\n System.out.print(\"Server port? [2345]: \");\r\n String portString = scanner.nextLine().trim();\r\n if(portString.length() == 0)\r\n {\r\n portString = \"2345\";\r\n }\r\n int port = Integer.parseInt(portString);\r\n //trying to establish connection through the socket\r\n try(Socket socket = new Socket(host, port))\r\n {\r\n //creating i/o streams\r\n outputStream = new ObjectOutputStream(socket.getOutputStream());\r\n HelloRequest request = new HelloRequest();\r\n request.setName(\"world\");\r\n outputStream.writeObject(request);\r\n inputStream = new ObjectInputStream(socket.getInputStream());\r\n inputStream.readObject();\r\n System.out.println(\"Server connected.\");\r\n \r\n // login.\r\n while(!this.login())\r\n {\r\n ;\r\n }\r\n \r\n // Executing users input\r\n options:\r\n while(true)\r\n {\r\n try\r\n {\r\n int option = this.readOption(\"1. Create a game 2. Set commands 3. Get high scores 4. Delete a game 5. Start a game 6. Show a game 7. Logout : \", 1, 7);\r\n switch(option)\r\n {\r\n case 1: this.createGame(); break;\r\n case 2: this.setCommands(); break;\r\n case 3: this.getHighScores(); break;\r\n case 4: this.deleteGame(); break;\r\n case 5: this.startGame(); break;\r\n case 6: this.showGame(); break;\r\n case 7: this.logout(); break options;\r\n }\r\n }catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }catch(Exception e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"public static void main(String[] args) {\r\n ChatServer server = new ChatServer(portNumber);\r\n server.startServer();\r\n }",
"public static void main (String[] args) throws IOException\n {\n ServerSocket ss;\n\n try\n {\n ss = new ServerSocket(26732);\n }\n catch (IOException e)\n {\n JOptionPane.showMessageDialog(null,\n \"This application is currently already running.\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n System.exit(-1);\n }\n\n // Invoke the gui on the EDT thread (Make sure gui is running on its own thread to separate it from background tasks.\n new Thread(new Runnable()\n {\n public void run()\n {\n SwingUtilities.invokeLater(() ->\n {\n Display display = new Display();\n });\n }\n }).start();\n\n // Initialize the database connection.\n DatabaseConnection.init();\n\n\n // Delete the sessions in the database that have a last seen that is older than 24 hours.\n try\n {\n DatabaseConnection.QueryNoValue(\"DELETE FROM sessions WHERE (lastseen < (strftime('%s', 'now') - 86400));\");\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n\n // Make sure to commit to the database when shutting down the program.\n Runtime.getRuntime().addShutdownHook(new Thread()\n {\n @Override\n public void run()\n {\n DatabaseConnection.commit();\n }\n });\n }",
"private void connect(InProgInfo inProg, int serverSelect) throws InterruptedException\n {\n String hostName = new String(seqMcastInfo.streamingMCastChanServerList().get(serverSelect).data().array());\n String portNumber = seqMcastInfo.streamingMCastChanPortList().get(serverSelect).toString();\n String interfaceName = CommandLine.value(\"rtif\");\n \n System.out.println(\"Starting connection to Real Time Session...\");\n \n channelSessions.add(new EDFChannelSession(this));\n if (channelSessions.get(channelSessions.size() - 1).initTransport(false, error) < CodecReturnCodes.SUCCESS)\n System.exit(error.errorId());\n\n // enable XML tracing\n if (CommandLine.booleanValue(\"x\"))\n {\n channelSessions.get(channelSessions.size() - 1).enableXmlTrace(dictionaryHandler.dictionary());\n }\n\n // get connect options from the channel session\n ConnectOptions copts = channelSessions.get(channelSessions.size() - 1).getConnectOptions();\n\n // set the connection parameters on the connect options\n copts.unifiedNetworkInfo().address(hostName);\n copts.unifiedNetworkInfo().serviceName(portNumber);\n copts.unifiedNetworkInfo().interfaceName(interfaceName);\n copts.blocking(false);\n copts.connectionType(ConnectionTypes.SEQUENCED_MCAST);\n\n channelSessions.get(channelSessions.size() - 1).connect(inProg, error);\n \n channelSessions.get(channelSessions.size() - 1).channelInfo().connectOptions(copts);\n\n serversConnectedTo.add(serverSelect);\n }",
"private void cmdNet() {\n int port = 1777;\n try {\n Log.verbose(\"waiting for connection on port \" + port + \"...\");\n ServerSocket socket = new ServerSocket(port);\n Socket client = socket.accept();\n InetAddress clientAddr = client.getInetAddress();\n Log.verbose(\"connected to \" + clientAddr.getHostName() + \"/\"\n + client.getPort());\n Readline readline = new SocketReadline(client, true, \"net>\");\n fReadlineStack.push(readline);\n } catch (IOException ex) {\n Log.error(\"Can't bind or listen on port \" + port + \".\");\n }\n }",
"public ClientConsole(String loginID, String host, int port) {\n internalLoginID = loginID;\n internalHost = host;\n internalPort = port;\n try {\n client = new ChatClient(loginID, host, port, this);\n System.out.println(loginID + \" has logged on.\");\n } catch (IOException exception) {\n System.out.println(\"Error: Can't open connection. Awaiting Command\");\n }\n }",
"public static void main(String[] args) {\n ServerSocket serverSocket = null;\n \n /* Create the server socket */\n try {\n serverSocket = new ServerSocket(9999);\n } catch (IOException e) {\n System.out.println(\"IOException: \" + e);\n System.exit(1);\n }\n room r = new room(\"Lobby\");\n ChatServerThread.addRoom(r);\n /* In the main thread, continuously listen for new clients and spin off threads for them. */\n while (true) {\n try {\n /* Get a new client */\n Socket clientSocket = serverSocket.accept();\n \n /* Create a thread for it and start! */\n ChatServerThread clientThread = new ChatServerThread(clientSocket);\n ChatServerThread.addClient(clientThread);\n new Thread(clientThread).start();\n\n } catch (IOException e) {\n System.out.println(\"Accept failed: \" + e);\n System.exit(1);\n }\n }\n }",
"void askServerInfo();",
"public QueryExecution createQueryExecution(Query qry);",
"public String setUpConnection(String query,int Port)\r\n\t{\r\n\t\tSocketChannel channel = null;\r\n\t\tString Reply=null;\r\n\t\ttry {\r\n\t\t\t// set port from connection\r\n\t\t\tint port =Port;\r\n\t\t\t// open socket channel\r\n\t\t\tchannel = SocketChannel.open();\r\n\t\t\t// set Blocking mode to non-blocking\r\n\t\t\tchannel.configureBlocking(false);\r\n\t\t\t// set Server info\r\n\t\t\tInetSocketAddress target = new InetSocketAddress(\"localHost\", port);\r\n\t\t\t// open selector\r\n\t\t\tSelector selector = Selector.open();\r\n\t\t\t// connect to Server\r\n\t\t\tchannel.connect(target);\r\n\t\t\t// registers this channel with the given selector, returning a selection key\r\n\t\t\tchannel.register(selector, SelectionKey.OP_CONNECT);\r\n\r\n\t\t\twhile (selector.select() > 0) {\r\n\t\t\t\tfor (SelectionKey key : selector.selectedKeys()) {\r\n\t\t\t\t\t// test connectivity\r\n\t\t\t\t\tif (key.isConnectable()) {\r\n\t\t\t\t\t\tSocketChannel sc = (SocketChannel) key.channel();\r\n//\t\t\t\t\t\tsc.configureBlocking(true);\r\n\t\t\t\t\t\t// set register status to WRITE\r\n\t\t\t\t\t\tsc.register(selector, SelectionKey.OP_WRITE);\r\n\t\t\t\t\t\tsc.finishConnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// test whether this key's channel is ready for reading from Server\r\n\t\t\t\t\telse if (key.isReadable()) {\r\n\t\t\t\t\t\t// allocate a byte buffer with size 1024\r\n\t\t\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(1024);\r\n\t\t\t\t\t\tSocketChannel sc = (SocketChannel) key.channel();\r\n\t\t\t\t\t\tint readBytes = 0;\r\n\t\t\t\t\t\t// try to read bytes from the channel into the buffer\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tint ret = 0;\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\twhile ((ret = sc.read(buffer)) > 0)\r\n\t\t\t\t\t\t\t\t\treadBytes += ret;\r\n\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\tbuffer.flip();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// finished reading, print to Client\r\n\t\t\t\t\t\t\tif (readBytes > 0) {\r\n\t\t\t\t\t\t\t\tReply=Charset.forName(\"UTF-8\").decode(buffer).toString();\r\n\t\t\t\t\t\t\t\tbuffer = null;\r\n\t\t\t\t\t\t\t\tselector.close();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\tif (buffer != null)\r\n\t\t\t\t\t\t\t\tbuffer.clear();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// test whether this key's channel is ready for writing to Server\r\n\t\t\t\t\telse if (key.isWritable()) {\r\n\t\t\t\t\t\tSocketChannel sc = (SocketChannel) key.channel();\r\n\t\t\t\t\t\t// send to Server\r\n\t\t\t\t\t\tchannel.write(Charset.forName(\"UTF-8\").encode(query));\r\n\t\t\t\t\t\t// set register status to READ\r\n\t\t\t\t\t\tsc.register(selector, SelectionKey.OP_READ);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (selector.isOpen()) {\r\n\t\t\t\t\tselector.selectedKeys().clear();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (channel != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tchannel.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn Reply;\r\n\t}",
"protected void serverStarted()\n {\n System.out.println(\"Server listening for connections on port \" + getPort());\n }",
"public void createQuery(String s) throws HibException;",
"public Server(){\r\n //Create a Random object\r\n rand = new Random();\r\n\r\n //Create the GUI\r\n //Text area for displaying console\r\n JTextArea jtaCommandHistory = new JTextArea(35,45);\r\n jtaCommandHistory.setFont(new Font(\"Helvetica\", Font.BOLD, 12));\r\n jtaCommandHistory.setBackground(Color.BLACK);\r\n jtaCommandHistory.setForeground(Color.GREEN);\r\n jtaCommandHistory.setEditable(false);\r\n //Wrap the text area in a JScrollPane\r\n JScrollPane jspCommandHistory = new JScrollPane(jtaCommandHistory);\r\n\r\n //Text field for entering commands\r\n JTextField jtfConsole = new JTextField(15);\r\n\r\n //Binding the Enter key to reset\r\n jtfConsole.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), \"sendMessage\");\r\n jtfConsole.getActionMap().put(\"sendMessage\", new AbstractAction(){\r\n public void actionPerformed(ActionEvent ae){\r\n\r\n //Store the command in history\r\n sbCommandHistory.append(\"\\n\");\r\n sbCommandHistory.append(\">>\");\r\n sbCommandHistory.append(jtfConsole.getText());\r\n sbCommandHistory.append(\"\\n\");\r\n\r\n //Execute the command\r\n parseCommand(jtfConsole.getText());\r\n\r\n //Reset the text field\r\n jtfConsole.setText(\"\");\r\n }\r\n });\r\n add(jspCommandHistory, BorderLayout.CENTER);\r\n add(jtfConsole, BorderLayout.SOUTH);\r\n\r\n //Use a Timer to set the command history area to the StringBuilder text\r\n ActionListener alRefresh = new ActionListener() {\r\n public void actionPerformed(ActionEvent ae) {\r\n jtaCommandHistory.setText(sbCommandHistory.toString());\r\n }\r\n };\r\n javax.swing.Timer timer = new javax.swing.Timer(350, alRefresh);\r\n timer.start();\r\n\r\n //JFrame Initialization\r\n setTitle(\"Portals Server\");\r\n setVisible(true);\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n setLocationRelativeTo(null);\r\n pack();\r\n\r\n //Creating a GameLogic to serve as the portal layout\r\n GameLogic glLayout = new GameLogic(10, true);\r\n boardLayout = glLayout.getUpdatedBoardInformation();\r\n\r\n //Accept and handle client connections\r\n try {\r\n Socket cs;\r\n ServerSocket ss = new ServerSocket(PORT);\r\n //Print server information\r\n InetAddress ina = InetAddress.getLocalHost();\r\n consoleAppend(\"Host name: \" + ina.getHostName());\r\n consoleAppend(\"IP Address: \" + ina.getHostAddress());\r\n while (true) {\r\n cs = ss.accept();\r\n ClientHandler ct = new ClientHandler(cs);\r\n ct.start();\r\n clientThreads.add(ct);\r\n }\r\n } catch (UnknownHostException uhe) {\r\n System.err.println(\"Could not determine host IP address.\");\r\n uhe.printStackTrace();\r\n } catch (IOException uhe) {\r\n uhe.printStackTrace();\r\n }\r\n }",
"public static void main(String[] args) throws SQLException {\n\t\tConnectionDB.Connect();\n\t\t\n\t\tClientImplement ci = new ClientImplement();\n\t\t//Client c = new Client();\n\t\t\n\t\tSystem.out.println(ci.consulterClient(3));\n\t\t//System.out.println(ci.consulterClient(3).get)\n\t}",
"@Override\n\tpublic void show() {\n\t\trefreshServerList();\n\t\t((InputMultiplexer)Gdx.input.getInputProcessor()).addProcessor(ui);\n\t}",
"public static void main(String[] args) {\n\t\tString[] arguments = new String[8];\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Arguments for first camera/server connection\");\n\t\tSystem.out.println(\"rt@argus-N, insert chosen N:\");\n\t\targuments[0] = scan.nextLine();\n\t\tSystem.out.println(\"Insert chosen proxyport ****:\");\n\t\targuments[1] = scan.nextLine();\n\t\tSystem.out.println(\"Arguments for second camera/server connection\");\n\t\tSystem.out.println(\"rt@argus-N, insert chosen N:\");\n\t\targuments[2] = scan.nextLine();\n\t\tSystem.out.println(\"Insert chosen proxyport ****:\");\n\t\targuments[3] = scan.nextLine();\n\n\t\tClient client = new Client();\n\n\t\tGUIThread gui = new GUIThread(client);\n\n\t\tgui.start();\n\n\t\tServer1 s = new Server1(arguments[0], \"6077\", \"0\", arguments[1]);\n\t\ts.start();\n\t\tServer2 s2 = new Server2(arguments[2], \"6078\", \"1\", arguments[3]);\n\t\ts2.start();\n\t}"
]
| [
"0.7238421",
"0.56585306",
"0.56062645",
"0.55432504",
"0.55275494",
"0.55118716",
"0.54925466",
"0.547978",
"0.5466511",
"0.54467815",
"0.5421492",
"0.53851694",
"0.5379239",
"0.5375426",
"0.5362974",
"0.53377616",
"0.5337653",
"0.53036493",
"0.5289726",
"0.52793634",
"0.5276874",
"0.5276761",
"0.5268742",
"0.5261199",
"0.5249744",
"0.52488136",
"0.52404094",
"0.5236142",
"0.52295727",
"0.5227432",
"0.52227813",
"0.5213417",
"0.52132213",
"0.52121186",
"0.52016944",
"0.51963747",
"0.5195455",
"0.5186546",
"0.51825917",
"0.51736164",
"0.5169623",
"0.5167429",
"0.5155021",
"0.51420015",
"0.512573",
"0.51254857",
"0.5122993",
"0.512051",
"0.5110728",
"0.5108634",
"0.5108379",
"0.51079977",
"0.5089972",
"0.5087157",
"0.5087137",
"0.50839746",
"0.50743175",
"0.50632274",
"0.50615686",
"0.5060192",
"0.5057623",
"0.5055351",
"0.50551873",
"0.50498563",
"0.50484604",
"0.50377595",
"0.50298834",
"0.50263",
"0.5025305",
"0.5024683",
"0.50101596",
"0.5009767",
"0.5009583",
"0.500389",
"0.5003351",
"0.50028473",
"0.5001973",
"0.49847975",
"0.49839363",
"0.49766874",
"0.4976548",
"0.4976319",
"0.49755427",
"0.49753118",
"0.49738923",
"0.49700516",
"0.49683708",
"0.49664512",
"0.49571",
"0.49547848",
"0.49495596",
"0.49461913",
"0.49457934",
"0.4944924",
"0.49413416",
"0.49359494",
"0.4931747",
"0.49275076",
"0.4925337",
"0.49239004"
]
| 0.7313355 | 0 |
Create and start and interactive query server | private InteractiveQueryServer startInteractiveQueryServer(int port, TBaseProcessor processor) {
return createInteractiveQueryServer(port, processor).start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private InteractiveQueryServer createInteractiveQueryServer(int port, TBaseProcessor processor) {\n interactiveQueryServer = Optional.of(new InteractiveQueryServer(port, processor));\n return interactiveQueryServer.get();\n }",
"public void start() {\n \t\tinit();\n\t\tif(!checkBackend()){\n\t\t\tvertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {\n\t\t\t\tpublic void handle(HttpServerRequest req) {\n\t\t\t\t String query_type = req.path();\t\t\n\t\t\t\t req.response().headers().set(\"Content-Type\", \"text/plain\");\n\t\t\t\t\n\t\t\t\t if(query_type.equals(\"/target\")){\n\t\t\t\t\t String key = req.params().get(\"targetID\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequest(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t String key = \"1\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequestRange(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}).listen(80);\n\t\t} else {\n\t\t\tSystem.out.println(\"Please make sure that both your DCI are up and running\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\ttry { NetworkServerControl server = new NetworkServerControl(InetAddress.getByName(\"localhost\"),1527);\n\t\tserver.start(null);\n\t\tSystem.out.println(\"DB Server Started!\");\n\t\t//server.shutdown();\n\t\t//cn = DriverManager.getConnection(dbURL);\n\t\t} catch(Exception e) {System.out.println(\"Cannot Start DB Server!\"); }\n\t\t\n\t\tfinal JettyServer jettyServer = new JettyServer();\n\t\tString jetty_home = System.getProperty(\"jetty.home\",\".\");\n Server server = new Server(8080);\n WebAppContext webapp = new WebAppContext();\n webapp.setContextPath(\"/\");\n //webapp.setWar(jetty_home+\"/target/vrscloud-1.war\");\n webapp.setWar(\"ROOT.war\");\n server.setHandler(webapp);\n // server.start();\t\n\t\t\n\t\t\n jettyServer.setHandler(webapp);\t\n\t\t\n\t\tRunnable runner = new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew ServerRunner(jettyServer);\n\t\t\t}\n\t\t};\n\t\tEventQueue.invokeLater(runner);\n\t}",
"public void startServer()\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Listen\");\n\t\t\tif(listenInitialValuesRequest)\n\t\t\t{\n\t\t\t\tlistenInitialValuesRequest();\n\t\t\t}\n\t\t}\n\t}",
"public void startServer() {\n server.start();\n }",
"public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void runQueries();",
"public static void main(String[] args) throws IOException {\n ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);\n context.setContextPath(\"/\");\n\n // Establish DB connection first\n\n // now start the server\n System.out.println(\"=== Initializing server on port \" + PORT);\n\n Server jettyServer = new Server(PORT);\n jettyServer.setHandler(context);\n\n if (LOG_REQUESTS) {\n RequestLog requestLog = new RipLogger();\n jettyServer.setRequestLog(requestLog);\n }\n\n ServletHolder jerseyServlet = context.addServlet(ServletContainer.class, \"/sudoku/*\");\n jerseyServlet.setInitOrder(0);\n jerseyServlet.setInitParameter(\"jersey.config.server.provider.packages\", \"com.shadedreality.rest\");\n\n try {\n jettyServer.start();\n jettyServer.dumpStdErr();\n jettyServer.join();\n } catch (Exception e) {\n System.err.println(\"Uncaught Exception in server: \"+e);\n }\n finally {\n jettyServer.destroy();\n }\n }",
"public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevAppServer::doStartServer, getAppName() + \"Server\", getPort())\n .ignoreOut1().unsafe());\n }",
"public void start() throws Exception {\n ServerSocket socket = new ServerSocket(0);\n port = socket.getLocalPort();\n socket.close();\n\n final String[] localArgs = {\"-inMemory\", \"-port\", String.valueOf(port)};\n server = ServerRunner.createServerFromCommandLineArgs(localArgs);\n server.start();\n url = \"http://localhost:\" + port;\n\n // internal client connection so we can easily stop, cleanup, etc. later\n this.dynamodb = getClient();\n }",
"public void runServer(){\n try {\n serverSocket = new ServerSocket(portNumber);\n } catch (IOException ioe){\n System.out.println(ioe.getMessage());\n }\n \n while (true) { \n try {\n Socket clientSocket = serverSocket.accept();\n InetAddress inetAddress = clientSocket.getInetAddress();\n System.out.println(\"Connected with \" + inetAddress.getHostName()+ \".\\n IP address: \" + inetAddress.getHostAddress() + \"\\n\");\n new Thread(new RequestHandlerRunnable(clientSocket, database)).start();\n } catch (IOException ioe){\n System.out.println(ioe.getMessage());\n }\n }\n \n }",
"public static void main (String[] args) {\n\t\tAbstractServer as = new FirstServer();\n\t\tString ip = \"localhost\";\n\t\tas.connect(ip);\n\t\t\n\t}",
"public void run() {\n List<Map> queries = (List<Map>) server.get(\"queries\");\n Connection connection = null;\n if (queries != null && !queries.isEmpty()) {\n String dbServerDisplayName = (String) server.get(\"displayName\");\n try {\n long timeBeforeConnection = System.currentTimeMillis();\n connection = getConnection();\n long timeAfterConnection = System.currentTimeMillis();\n logger.debug(\"Time taken to get Connection: \" + (timeAfterConnection - timeBeforeConnection));\n\n logger.debug(\"Time taken to get Connection for \" + dbServerDisplayName + \" : \" + (timeAfterConnection - timeBeforeConnection));\n\n if (connection != null) {\n logger.debug(\" Connection successful for server: \" + dbServerDisplayName);\n for (Map query : queries)\n executeQuery(connection, query);\n } else {\n\n logger.debug(\"Null Connection returned for server: \" + dbServerDisplayName);\n }\n\n } catch (SQLException e) {\n logger.error(\"Error Opening connection\", e);\n status = false;\n } catch (ClassNotFoundException e) {\n logger.error(\"Class not found while opening connection\", e);\n status = false;\n } catch (Exception e) {\n logger.error(\"Error collecting metrics for \"+dbServerDisplayName, e);\n status = false;\n }\n finally {\n try {\n if (connection != null) {\n closeConnection(connection);\n }\n } catch (Exception e) {\n logger.error(\"Issue closing the connection\", e);\n }\n }\n }\n }",
"public void run() {\n Runtime.getRuntime().addShutdownHook(new MNOSManagerShutdownHook(this));\n\n OFNiciraVendorExtensions.initialize();\n\n this.startDatabase();\n\n try {\n final ServerBootstrap switchServerBootStrap = this\n .createServerBootStrap();\n\n this.setServerBootStrapParams(switchServerBootStrap);\n\n switchServerBootStrap.setPipelineFactory(this.pfact);\n final InetSocketAddress sa = this.ofHost == null ? new InetSocketAddress(\n this.ofPort) : new InetSocketAddress(this.ofHost,\n this.ofPort);\n this.sg.add(switchServerBootStrap.bind(sa));\n }catch (final Exception e){\n throw new RuntimeException(e);\n }\n\n }",
"public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }",
"void startServer(String name, Config.ServerConfig config);",
"public void startServer() {\n // configure the server properties\n int maxThreads = 20;\n int minThreads = 2;\n int timeOutMillis = 30000;\n\n // once routes are configured, the server automatically begins\n threadPool(maxThreads, minThreads, timeOutMillis);\n port(Integer.parseInt(this.port));\n this.configureRoutesAndExceptions();\n }",
"public static void startServer() {\n clientListener.startListener();\n }",
"public static void main(String[] args) {\n Server server = new Server(1234);\n server.listen();\n \n // YOUR CODE HERE\n // It is not required (or recommended) to implement the server in\n // this runner class.\n }",
"public void launch() throws NotBoundException, IOException\n\t{\n\t\t//call method to connect to server\t\t\n\t\tServerManager serverConnect = initialConnect();\t\n\t\n\t\t//get Setup menu from server\n\t\tSetUpMenu newSetup = new SetUpMenu(serverConnect);\n\t\tnewSetup.welcomeMenu();\n\t}",
"private void run() throws ClassNotFoundException, SQLException {\n OptionParser parser = new OptionParser();\n parser.accepts(\"gui\");\n parser.accepts(\"port\").withRequiredArg().ofType(Integer.class)\n .defaultsTo(DEFAULT_PORT);\n OptionSet options = parser.parse(args);\n\n if (options.has(\"gui\")) {\n guiProcessor.runSparkServer((int) options.valueOf(\"port\"));\n }\n\n commandProcessor.addCommands(manager::getPatternCommandMap);\n commandProcessor.repl();\n }",
"private void start(String[] args){\n\t\tServerSocket listenSocket;\n\n\t\ttry {\n\t\t\tlistenSocket = new ServerSocket(Integer.parseInt(args[0])); //port\n\t\t\tSystem.out.println(\"Server ready...\");\n\t\t\twhile (true) {\n\t\t\t\tSocket clientSocket = listenSocket.accept();\n\t\t\t\tSystem.out.println(\"Connexion from:\" + clientSocket.getInetAddress());\n\t\t\t\tClientThread ct = new ClientThread(this,clientSocket);\n\t\t\t\tct.start();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error in EchoServer:\" + e);\n\t\t}\n\t}",
"private void startServer() throws IOException {\n while (true) {\n System.out.println(\"[1] Waiting for connection...\");\n\n client = server.accept();\n System.out.println(\"[2] Connection accepted from: \" + client.getInetAddress());\n\n in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n out = new PrintStream(client.getOutputStream(), true);\n\n while (!in.ready()) ;\n\n String line = in.readLine();\n ManageConnections connection = new ManageConnectionsFactory().getConnection(line);\n\n connection.goConnect(client, in, out);\n }\n }",
"public void queryServer()\n {\n if(!getPassword().equals(getPasswordConfirm()))\n {\n Toast.makeText( (getActivity() ) .getBaseContext(), \"Password Mismatch.\", Toast.LENGTH_SHORT).show();\n passwordEdit.setText(\"\");\n passwordConfirmEdit.setText(\"\");\n }\n else if(!noNullUserInput())\n {\n //TODO highlight unfished fields.\n Toast.makeText( (getActivity() ) .getBaseContext(), \"Finish filling out the data!\", Toast.LENGTH_SHORT).show();\n }\n else if(Model.instance().getServerHost() == null || Model.instance().getServerHost() == null )\n {\n ((FamilyMap) getActivity() ).createServerInfoQuery(this); //easy...\n }\n else\n {\n //try it out. if it fails\n WebAccess wa = new WebAccess();\n RegisterRequest rr = new RegisterRequest(this.getUserName(),this.getPassword(),this.getEmail(), this.getFirstName(), this.getLastName(), this.getGender());\n wa.execute(rr);\n deactivateButtons();\n }\n }",
"private static void startServer(){\n try{\n MMServer server=new MMServer(50000);\n }catch (IOException ioe){\n System.exit(0);\n }\n \n }",
"public void runServer() {\n\t\tint i = 0;\n\n\t\tclientList = new ArrayList<>();\n\t\ttry {\n\t\t\tServerSocket listener = new ServerSocket(port);\n\n\t\t\tSocket server;\n\n\t\t\tprintDetails();\n\n\t\t\twhile ((i++ < maxConnections) || (maxConnections == 0)) {\n\n\t\t\t\tserver = listener.accept();\n\t\t\t\tSession session = new Session(server, this.storageLocation );\n\n\t\t\t\tnew Thread(session).start();\n\n\t\t\t\tString name = session.getName();\n\t\t\t\tSystem.out.printf(\"%s STARTED\\r\\n\", name );\n\t\t\t\tclientList.add( session );\n\t\t\t\tdoGC();\n\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"IOException on socket listen: \" + ioe);\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}",
"public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}",
"private void runServer()\n\t{\n\t\tif(sm == null)\n\t\t{\n\t\t\tsm = new ServerManager();\n\t\t}\n\t\t\n\t\tint port = 1209;\n\t\ttry \n\t\t{\n\t\t\twaitUser(sm, port);\n\t\t\t//이 아래 로직이 실행된다는건 유저가 다 들어왔다는 뜻임. 즉 게임 시작할 준비 되었음을 의미함\t\t\t\n\t\t\tGame.getInstance().runGame();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"[Server.runServer()] error >>> : \" + e.getMessage());\n\t\t}\n\t}",
"@Override\r\n\tpublic void start() {\n\t\t\r\n\t\tServerAddress serverurl=new ServerAddress(host, port);\r\n\t\tList<ServerAddress> listServer=new ArrayList<ServerAddress>();\r\n\t\tlistServer.add(serverurl);\r\n\t\tMongoCredential credential=MongoCredential.createCredential(user, database, password.toCharArray());\r\n\t\tList<MongoCredential> listCre=new ArrayList<MongoCredential>();\r\n\t\tlistCre.add(credential);\r\n\t\tmongoClient = new MongoClient(listServer, listCre);\r\n\t\tmongoDB = mongoClient.getDatabase(database);\r\n\t\tmongoCollection = mongoDB.getCollection(collection);\r\n\r\n\t}",
"public void run() {\n startConnectionToMSSQL();\n }",
"protected void serverStarted()\n {\n // System.out.println\n // (\"Server listening for connections on port \" + getPort());\n }",
"public void startServer() {\n\r\n try {\r\n echoServer = new ServerSocket(port);\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n // Whenever a connection is received, start a new thread to process the connection\r\n // and wait for the next connection.\r\n while (true) {\r\n try {\r\n clientSocket = echoServer.accept();\r\n numConnections++;\r\n ServerConnection oneconnection = new ServerConnection(clientSocket, numConnections, this);\r\n new Thread(oneconnection).start();\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }\r\n\r\n }",
"public static void main( String[] args ) {\n \t//setup basic server configuration values\n \tServerConfiguration.setPortNumber(8080);\n \tServerConfiguration.setLogging(true);\n \t//obtain connection to database\n \tc = DBHandler.init();\n \t//make sure connection was created correctly\n \ttry {\n\t\t\tif (!c.isClosed()){\n\t\t\t\t//actually begin the server\n\t\t\t\tSpringApplication.run(Server.class, args);\n\t\t\t}\n\t\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Error encountered in database initilization\");\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public void startServer() {\n System.out.println(\"Inicie\");\n httpServer = new HttpServer();\n httpServer.registerProessor(\"/App\", this);\n try {\n httpServer.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"static public void main(String[] args) throws IOException {\n port = (int) (Math.random() * ((65535 - 49152) + 1) + 49152);\n server = new ServerSocket(port);\n System.out.println(InetAddress.getLocalHost());\n System.out.println(\"Port: \" + port);\n while (true) {\n try {\n Socket socket = server.accept();\n MqttClient client = new MqttClient(socket);\n clients.add(client);\n client.start();\n } catch (IOException e) {\n System.out.println(\"Something failed.\");\n server.close();\n System.exit(0);\n }\n }\n }",
"@Test\r\n public void startServerAndThreads() throws IOException {\r\n //init\r\n InetAddress iPAddress = InetAddress.getByName(\"localhost\");\r\n int port = 99;\r\n\r\n Server server = new Server(port, iPAddress);\r\n server.start();\r\n }",
"public void start(){\n dbConnector = new DBConnector();\n tables = new HashSet<String>();\n tables.add(ALGORITHMS_TABLE);\n tables.add(DATA_STRUCTURES_TABLE);\n tables.add(SOFTWARE_DESIGN_TABLE);\n tables.add(USER_TABLE);\n }",
"public void start()\r\n\t\t{\r\n\t\tDebug.assert(serverSocket != null, \"(Server/123)\");\r\n\r\n \t// flag the server as running\r\n \tstate = RUNNING;\r\n\r\n // Loop while still listening, accepting new connections from the server socket\r\n while (state == RUNNING)\r\n \t{\r\n // Get a connection from the server socket\r\n\t\t\tSocket socket = null;\r\n\t\t\ttry {\r\n socket = serverSocket.accept();\r\n \tif (state == RUNNING) \r\n \t createLogin(socket);\r\n }\r\n \r\n // The socket timeout allows us to check if the server has been shut down.\r\n // In this case the state will not be RUNNING and the loop will end.\r\n\t\t catch ( InterruptedIOException e )\r\n\t\t \t{\r\n\t\t \t// timeout happened\r\n\t\t \t}\r\n\t\t \r\n\t\t // This shouldn't happen...\r\n \t catch ( IOException e )\r\n \t \t{\r\n log(\"Server: Error creating Socket\");\r\n \t \tDebug.printStackTrace(e);\r\n \t }\r\n\t }\r\n\t \r\n\t // We've finished, clean up\r\n disconnect();\r\n\t\t}",
"public void startRunning() {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tserver = new ServerSocket(6789, 100); //6789 is the port number for docking(Where to connect). 100 is backlog no, i.e how many people can wait to access it.\n\t\t\t\twhile (true) {\n\t\t\t\t\t//This will run forever.\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\t\n\t\t\t\t\t\twaitForConnection();\n\t\t\t\t\t\tsetupStreams();\n\t\t\t\t\t\twhileChatting();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcatch(EOFException eofException) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tshowMessage(\"\\n The server has ended the connection!\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfinally {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcloseAll();\n\t\t\t\t\t\t//Housekeeping.\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcatch(IOException ioException ) {\n\t\t\t\t\n\t\t\t\tioException.printStackTrace();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"public void run() {\n\n\t\tlistenSocket = createListen();\n\n\t\tstopping = stopping && (listenSocket != null);\n\n\t\tlog(\"DummyDNS server started .at \" + listenSocket.getLocalPort());\n\n\t\twhile (!stopping) { // master server loop read query, lookup, respond\n\n\t\t\ttry {\n\t\t\t\tDNSQuery query = new DNSQuery(); // get next query\n\t\t\t\tbyte[] addr = null;\n\t\t\t\tquery.getQuery(listenSocket);\n\n\t\t\t\tif ((query.getQueryType() == DNS.TYPE_A)\n\t\t\t\t\t\t|| (query.getQueryType() == DNS.TYPE_ANY)) {\n\n\t\t\t\t\taddr = onlyOne; // lookup name to addr\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tquery.sendResponse(listenSocket, addr); // send response & log\n\t\t\t\tlog(\"DummyDNS query from \"\n\t\t\t\t\t\t+ query.getClientHost().getHostAddress() + \" (\"\n\t\t\t\t\t\t+ query.getQueryID() + \") \"\n\t\t\t\t\t\t+ DNS.typeName(query.getQueryType()) + \" for [\"\n\t\t\t\t\t\t+ query.getQueryHost() + \"] = \" + showAddr(addr));\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog(\"DummyDNS bad query: \" + e);\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif (!listenSocket.isClosed()) {\n\t\t\tlistenSocket.close();\n\t\t}\n\n\t\tGlobal.getInstance().dnsInfo.isRunning = false;\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tServerSocket server_socket = new ServerSocket(13267);\n\n\t\tserver_obj s0 = new server_obj(server_socket);\n\t\ts0.connect_db();\n\n\t\t/*server_obj[] ser = new server_obj[100];\n\t\tfor(int i=0; i<20; i++){\n\t\t\tser[i] = new server_obj(server_socket);\n\t\t\tser[i].start();\n\t\t}*/\n\t\t\n\t\t//과부하 방지용, 테스트용 소스. 서비스용은 위 20개 클라이언트 오픈\n\t\tserver_obj s1 = new server_obj(server_socket);\n\t\ts1.start();\t\n\n\t\tserver_obj s2 = new server_obj(server_socket);\n\t\ts2.start();\n\n\t}",
"public void start() {\n System.err.println(\"Server will listen on \" + server.getAddress());\n server.start();\n }",
"private void execute() {\n\n\t\tPropertiesParser propertiesParser = new PropertiesParser();\n\t\t\n\t\tsetupServer(propertiesParser);\n\t\ttry {\n\t\t\t\n\t\t\tThread.sleep(SERVER_AFTER_RUN_DELAY);\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tint i=0;\n\t\tfor( ; i < propertiesParser.getReadersNum() ; i++){\n\t\t\t\n\t\t\tsetupClient(propertiesParser , i,true);\n\t\t\t\n\t\t}\n\t\tfor(; i < propertiesParser.getReadersNum()+ propertiesParser.getWritersNum() ; i++){\n\t\t\t\n\t\t\tsetupClient(propertiesParser , i,false);\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tinitialiseServer(args[0]);\n\t\t\twhile (running == true) {\n\t\t\t\tif (((numLiveThreads.get()) == 0) && (running == false)) {\n\t\t\t\t\tshutdown();\n\t\t\t\t}\n\t\t\t\thandleIncomingConnection();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\toutputServiceErrorMessageToConsole(e.getMessage());\n\t\t} finally {\n\t\t\tshutdown();\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tserverManager = new ServerManager(8031);\n\t\t\n\t}",
"private Main startJndiServer() throws Exception {\n\t\tNamingServer namingServer = new NamingServer();\n\t\tNamingContext.setLocal(namingServer);\n\t\tMain namingMain = new Main();\n\t\tnamingMain.setInstallGlobalService(true);\n\t\tnamingMain.setPort( -1 );\n\t\tnamingMain.start();\n\t\treturn namingMain;\n\t}",
"public static HttpServer startServer() {\n // create a resource config that scans for JAX-RS resources and providers\n // in com.example.rest package\n final ResourceConfig rc = new ResourceConfig().packages(\"com.assignment.backend\");\n rc.register(org.glassfish.jersey.moxy.json.MoxyJsonFeature.class);\n rc.register(getAbstractBinder());\n rc.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);\n rc.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n return GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);\n }",
"public Server(int port, mainViewController viewController, LogViewController consoleViewController){\n isRunningOnCLI = false;\n this.viewController = viewController;\n this.port = port;\n this.consoleViewController = consoleViewController;\n viewController.serverStarting();\n log = new LoggingSystem(this.getClass().getCanonicalName(),consoleViewController);\n log.infoMessage(\"New server instance.\");\n try{\n this.serverSocket = new ServerSocket(port);\n //this.http = new PersonServlet();\n log.infoMessage(\"main.Server successfully initialised.\");\n clients = Collections.synchronizedList(new ArrayList<>());\n ServerOn = true;\n log.infoMessage(\"Connecting to datastore...\");\n //mainStore = new DataStore();\n jettyServer = new org.eclipse.jetty.server.Server(8080);\n jettyContextHandler = new ServletContextHandler(jettyServer, \"/\");\n jettyContextHandler.addServlet(servlets.PersonServlet.class, \"/person/*\");\n jettyContextHandler.addServlet(servlets.LoginServlet.class, \"/login/*\");\n jettyContextHandler.addServlet(servlets.HomeServlet.class, \"/home/*\");\n jettyContextHandler.addServlet(servlets.DashboardServlet.class, \"/dashboard/*\");\n jettyContextHandler.addServlet(servlets.UserServlet.class, \"/user/*\");\n jettyContextHandler.addServlet(servlets.JobServlet.class, \"/job/*\");\n jettyContextHandler.addServlet(servlets.AssetServlet.class, \"/assets/*\");\n jettyContextHandler.addServlet(servlets.UtilityServlet.class, \"/utilities/*\");\n jettyContextHandler.addServlet(servlets.EventServlet.class, \"/events/*\");\n //this.run();\n } catch (IOException e) {\n viewController.showAlert(\"Error initialising server\", e.getMessage());\n viewController.serverStopped();\n log.errorMessage(e.getMessage());\n }\n }",
"public static void main(String args[]) {\n\t\tif (args.length == 1)\n\t\t\tport = Integer.parseInt(args[0]);\n\t\tnew calculatorserver();\n\t}",
"protected void serverStarted()\n {\n System.out.println(\"Server listening for connections on port \" + getPort());\n }",
"private void startServer(){\n clients = new ArrayList<ClientThread>();\n ServerSocket ClientSocket = null;\n try {\n ClientSocket = new ServerSocket(ClientPort);\n ClientSocketConnection(ClientSocket);\n } catch (IOException e){\n e.printStackTrace();\n System.exit(1);\n }\n }",
"private static void startConnection_RunApplication(int port) {\n ServerSocket s1;\n Socket s2;\n int id = 1;\n ServerApplication s2_thread;\n boolean error = false;\n\n s1 = startServer(port);\n if (s1 != null) {\n // iterate almost infinitely\n while (!error) {\n try {\n // accepts connection and creates client socket\n s2 = s1.accept();\n System.out.println(\"Client [ \" + id + \" ] \" + \"connection established: \" + s2.getInetAddress());\n // starts a new thread with the new client socket\n // this way the main thread here can iterate and wait for new connections\n s2_thread = new ServerApplication(s2, id);\n s2_thread.start();\n id++;\n } catch (IOException ex) {\n System.err.println(\"Closing connection... An error has occurred during execution.\");\n error = true;\n }\n }\n try {\n s1.close();\n } catch (IOException ex) {\n System.err.println(\"Error closing server socket\");\n }\n } else {\n print_help();\n }\n }",
"public void startRunning(){\n\t\ttry{\n\t\t\tserver = new ServerSocket(6789, 100);\n\t\t\t//int Port Number int 100 connections max (backlog / queue link)\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\twaitForConnection();\n\t\t\t\t\tsetupStreams();\n\t\t\t\t\twhileChatting();\n\t\t\t\t\t//connect and have conversation\n\t\t\t\t}catch(EOFException eofe){\n\t\t\t\t\tshowMessage(\"\\n Punk Ass Bitch.\");\n\t\t\t\t}finally{\n\t\t\t\t\tcloseChat();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}\n\t}",
"public void conectServer() {\n\n\t}",
"public void start()\r\n {\r\n System.out.print(\"Server host? [localhost]: \");\r\n String host = scanner.nextLine().trim();\r\n if(host.length() == 0)\r\n {\r\n host = \"localhost\";\r\n }\r\n \r\n System.out.print(\"Server port? [2345]: \");\r\n String portString = scanner.nextLine().trim();\r\n if(portString.length() == 0)\r\n {\r\n portString = \"2345\";\r\n }\r\n int port = Integer.parseInt(portString);\r\n //trying to establish connection through the socket\r\n try(Socket socket = new Socket(host, port))\r\n {\r\n //creating i/o streams\r\n outputStream = new ObjectOutputStream(socket.getOutputStream());\r\n HelloRequest request = new HelloRequest();\r\n request.setName(\"world\");\r\n outputStream.writeObject(request);\r\n inputStream = new ObjectInputStream(socket.getInputStream());\r\n inputStream.readObject();\r\n System.out.println(\"Server connected.\");\r\n \r\n // login.\r\n while(!this.login())\r\n {\r\n ;\r\n }\r\n \r\n // Executing users input\r\n options:\r\n while(true)\r\n {\r\n try\r\n {\r\n int option = this.readOption(\"1. Create a game 2. Set commands 3. Get high scores 4. Delete a game 5. Start a game 6. Show a game 7. Logout : \", 1, 7);\r\n switch(option)\r\n {\r\n case 1: this.createGame(); break;\r\n case 2: this.setCommands(); break;\r\n case 3: this.getHighScores(); break;\r\n case 4: this.deleteGame(); break;\r\n case 5: this.startGame(); break;\r\n case 6: this.showGame(); break;\r\n case 7: this.logout(); break options;\r\n }\r\n }catch(Exception e)\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }catch(Exception e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"public static void main(String[] args){\n ChatRoomServer server = new ChatRoomServer(portNumber);\n server.startServer();\n }",
"public static void main(String[] args) {\n\t\tSettingUI serverUI = new SettingUI(\"server\");\n\n\t\t//System.out.print(\"Port(eg.1111): \");\n\t\t// int portNumber = 1111;\n\t\t// int portNumber = console.nextInt();\n\t\t// GameServer gameServer = new GameServer(portNumber);\n\t\t// gameServer.setUpChat();\n\t\t// gameServer.start();\n\t}",
"public void run() {\n Socket socket;\n try {\n socket = new Socket(servers.getServerAddress(),Integer.parseInt(servers.getServerPort()));\n } catch (IOException e) {\n // e.printStackTrace();\n System.err.println(\"Cannot connect to the server: \" + servers.getServerAddress()\n + \" at port:\" + servers.getServerPort());\n return;\n }\n\n ObjectOutputStream toServer = null;\n try {\n toServer = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n BufferedReader toClient = null;\n try {\n toClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n\n toServer.writeObject(argsToServer);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //get and print query results\n String line;\n int count = 0;\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n PrintStream pr = new PrintStream(out);\n try {\n while((line = toClient.readLine()) != null) {\n System.out.println(\"<\" + servers.getServerAddress() + \"> :\" + line);\n count++;\n pr.println(line);\n }\n pr.flush();\n System.out.println(servers.getServerAddress()+ \" query count: \" + count);\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //saveLocalFile(out);\n }",
"public void init(){\n\t\tmultiplexingClientServer = new MultiplexingClientServer(selectorCreator);\n\t}",
"@PostConstruct\n public void init() throws SQLException, IOException {\n Server.createWebServer(\"-webPort\", \"1777\").start();\n\n\n }",
"public static void startServlet() throws Exception {\n Server server = new Server(8081);\n\n log.info(\"configuring and starting servlet\");\n ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);\n context.setContextPath(\"/\");\n server.setHandler(context);\n\n DbProductQueryService dbProductQueryService = new DbProductQueryService();\n\n context.addServlet(new ServletHolder(new AddProductServlet(dbProductQueryService)), \"/add-product\");\n log.info(\"added AddProductServlet\");\n context.addServlet(new ServletHolder(new GetProductsServlet(dbProductQueryService)), \"/get-products\");\n log.info(\"added GetProductsServlet\");\n context.addServlet(new ServletHolder(new QueryServlet(dbProductQueryService)), \"/query\");\n log.info(\"added QueryServlet\");\n\n\n server.start();\n log.info(\"servlet started successfully\");\n server.join();\n }",
"public static void main(String[] args) {\n\n Server server = new Server();\n // Accepts any new connections and opens a new socket for data transfer\n while (true) {\n Socket connectionSocket = server.AcceptIncomingConnections();\n if (connectionSocket != null) {\n new Thread(new ServerInstance(connectionSocket)).start();\n } else {\n // Error accepting , terminate server\n System.out.println(\"Error accepting incoming connections. Server shutting down\");\n break;\n }\n }\n }",
"Server remote(Server bootstrap, Database<S> vat);",
"public static void main (String[] args){\r\n\t\tnew Server().startRunning();\r\n\t}",
"public void startQueryMaster(QueryInProgress queryInProgress);",
"public static void main(String[] args){\n\n Executors.newSingleThreadExecutor().execute(new Runnable() {\n public void run() {\n System.out.println(\"Starting\");\n new ScheduleExecutor();\n }\n });\n\n new Server(5821, 10).launch();\n\n }",
"public void query()\n\t{\n\t\tJSONObject queryInfo = new JSONObject();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tqueryInfo.put(\"type\", \"query\");\n\t\t\t\n\t\t\tos.println(queryInfo.toString());\n\t\t\tos.flush();\n\t\t\t\n\t\t\tSystem.out.println(\"send query request : \" + queryInfo.toString());\n\t\t}\n\t\tcatch (JSONException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void startLocalServer() {\n \t boolean exists = (new File(addeMcservl)).exists();\n \t if (exists) {\n \t // Create and start the thread if there isn't already one running\n\t \tif (thread != null) {\n \t \t\tthread = new AddeThread();\n \t \t\tthread.start();\n \t\t System.out.println(addeMcservl + \" was started\");\n \t \t} else {\n \t \t\tSystem.out.println(addeMcservl + \" is already running\");\n \t \t}\n \t } else {\n \t \tSystem.out.println(addeMcservl + \" does not exist\");\n \t }\n \t}",
"public void run(){\n\t\tstartServer();\n\t}",
"protected void serverStarted()\r\n {\r\n System.out.println\r\n (\"Server listening for connections on port \" + getPort());\r\n }",
"@Test\n\tpublic void testBasicDevStartup() throws InterruptedException, ClassNotFoundException, ExecutionException, TimeoutException {\n\t\ttestArgSetup(\"test\");\n\t\t\n\t\t//really just making sure we don't throw an exception...which catches quite a few mistakes\n\t\tDevelopmentServer server = new DevelopmentServer(true);\n\t\t//In this case, we bind a port\n\t\tserver.start();\n\t\t//we should depend on http client and send a request in to ensure operation here...\n\t\t\n\t\tserver.stop();\n\t}",
"public SQLCommandHandler() {\n this.server = \"0.0.0.0\";\n this.port = \"3306\";\n this.user = \"\";\n this.pass = \"\";\n this.database = \"Messages\";\n }",
"public void start() {\n io.println(\"Welcome to 2SAT-solver app!\\n\");\n String command = \"\";\n run = true;\n while (run) {\n while (true) {\n io.println(\"\\nType \\\"new\\\" to insert an CNF, \\\"help\\\" for help or \\\"exit\\\" to exit the application\");\n command = io.nextLine();\n if (command.equals(\"new\") || command.equals(\"help\") || command.equals(\"exit\")) {\n break;\n }\n io.println(\"Invalid command. Please try again.\");\n }\n switch (command) {\n case \"new\":\n insertNew();\n break;\n case \"help\":\n displayHelp();\n break;\n case \"exit\":\n io.println(\"Thank you for using this app.\");\n run = false;\n }\n\n }\n }",
"public static void main(String[] args) throws UnknownHostException, IOException\n\t{\n\t\t Socket clientSocket = new Socket(\"localhost\", 6789);\n\t\t clientSocket.setSoTimeout(5000);\n\n\t\t DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());\n\t\t BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t outToServer.writeBytes(\"queryState\" + '\\n'); // warningClear , stopRequest, startRequest, queryState\n\t\t String clientMess = inFromServer.readLine();\n\t\t System.out.println(\"FROM SERVER: \" + clientMess);\n\t\t clientSocket.close();\n\t\t String mess = null;\n\t\t if(clientMess.equals(\"ON\"))\n\t\t {\n\t\t\t mess = \"stopRequest\";\n\t\t }\n\t\t else if(clientMess.equals(\"OFF\"))\n\t\t\t mess = \"startRequest\";\n\t\t Socket clientSocket2 = new Socket(\"localhost\", 6789);\n\t\t DataOutputStream outToServer2 = new DataOutputStream(clientSocket2.getOutputStream());\n\t\t BufferedReader inFromServer2 = new BufferedReader(new InputStreamReader(clientSocket2.getInputStream()));\n\t\t outToServer2.writeBytes(mess + '\\n'); // warningClear , stopRequest, startRequest, queryState\n\t\t System.out.println(\"FROM SERVER: \" +inFromServer2.readLine() );\n\t\t clientSocket2.close();\n\t\t \n\t}",
"public static void main(String[] args) {\n loadServer();\n\n }",
"void startServer(int port) throws Exception;",
"public void init() {\r\n\t\tGetRunningProgramsGR request = new GetRunningProgramsGR(\r\n\t\t\t\tRunningServicesListViewAdapter.this.runningServicesActivity.getApplicationContext());\r\n\t\trequest.setServerName(RunningServicesListViewAdapter.this.serverName);\r\n\t\tnew GuiRequestHandler(RunningServicesListViewAdapter.this.runningServicesActivity,\r\n\t\t\t\tRunningServicesListViewAdapter.this, true).execute(request);\r\n\t}",
"public static void main(String[] args) {\n\t\tEndpoint.publish(\"http://127.0.0.1:1111/cs\", new Calculator());\r\n\t\tSystem.out.println(\"Server has started\");\r\n\r\n\t}",
"public void startServer(){\r\n try {\r\n\r\n while(true){\r\n\r\n s = sc.accept();\r\n new ServerThread(s).start();\r\n }\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n try {\r\n sc.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"boolean runsServer();",
"public static void main(String ...args) {\n Operation myOperation = Operation.alloc(\"http://example/special2\", \"special2\", \"Custom operation\");\n\n // Service endpoint names.\n String queryEndpoint = \"q\";\n String customEndpoint = \"x\";\n\n // Make a DataService with custom named for endpoints.\n // In this example, \"q\" for SPARQL query and \"x\" for our custom extension and no others.\n DatasetGraph dsg = DatasetGraphFactory.createTxnMem();\n DataService dataService = DataService.newBuilder(dsg)\n .addEndpoint(myOperation, customEndpoint)\n .addEndpoint(Operation.Query, queryEndpoint)\n .build();\n\n // This will be the code to handled for the operation.\n ActionService customHandler = new DemoService();\n\n FusekiServer server =\n FusekiServer.create().port(PORT)\n .verbose(true)\n // Register the new operation, and it's handler\n .registerOperation(myOperation, customHandler)\n\n // The DataService.\n .add(DATASET, dataService)\n\n // And build the server.\n .build();\n\n server.start();\n\n // Try some operations on the server using the service URL.\n String customOperationURL = SERVER_URL + DATASET + \"/\" + customEndpoint;\n String queryOperationURL = SERVER_URL + DATASET + \"/\" + queryEndpoint;\n\n Query query = QueryFactory.create(\"ASK{}\");\n\n try {\n\n // Try custom name - OK\n try ( QueryExecution qExec = QueryExecution.service(queryOperationURL, query) ) {\n qExec.execAsk();\n }\n\n // Try the usual default name, which is not configured in the DataService so expect a 404.\n try ( QueryExecution qExec = QueryExecution.service(SERVER_URL + DATASET + \"/sparql\", query) ) {\n qExec.execAsk();\n throw new RuntimeException(\"Didn't fail\");\n } catch (QueryExceptionHTTP ex) {\n if ( ex.getStatusCode() != HttpSC.NOT_FOUND_404 ) {\n throw new RuntimeException(\"Not a 404\", ex);\n }\n }\n\n // Make an HTTP GET to the custom operation.\n // Service endpoint name : GET\n String s1 = HttpOp.httpGetString(customOperationURL);\n if ( s1 == null )\n throw new RuntimeException(\"Failed: \"+customOperationURL);\n\n } finally {\n server.stop();\n }\n }",
"public void start(){\n runServerGUI();\n // new server thread object created\n ServerThread m_Server = new ServerThread(this);\n m_Server.start();\n }",
"public static void main(String[] args) throws IOException {\n try {\n ss = new ServerSocket(3434);\n System.out.println(\"Server running!\");\n// Client.main(args);\n// Runtime.getRuntime().exec(\"java.exe -jar C:/Users/B/IdeaProjects/DeMail/Client/target/Client-1.0.jar\");\n EntityManager em = Persistence.createEntityManagerFactory(\"test\").createEntityManager();\n\n while (true){\n Socket socket = ss.accept();\n new Core(socket);\n }\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n finally {\n ss.close();\n }\n\n }",
"public static void main(String[] args) {\n DBConnector.getInstance().connect();\n\n DBConnector.getInstance().connect();\n\n }",
"public static String startServer() throws QVCSException, IOException {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.startServer\");\n String serverStartSyncString = null;\n if (serverProxyObject == null) {\n // So the server starts fresh.\n initDirectories();\n\n // So the server uses a project property file useful for the machine the tests are running on.\n initProjectProperties();\n\n // For unit testing, listen on the 2xxxx ports.\n serverStartSyncString = \"Sync server start\";\n String userDir = System.getProperty(USER_DIR);\n File userDirFile = new File(userDir);\n String canonicalUserDir = userDirFile.getCanonicalPath();\n final String args[] = {canonicalUserDir, \"29889\", \"29890\", \"29080\", serverStartSyncString};\n serverProxyObject = new Object();\n ServerResponseFactory.setShutdownInProgress(false);\n Runnable worker = new Runnable() {\n\n @Override\n public void run() {\n try {\n QVCSEnterpriseServer.main(args);\n } catch (Exception e) {\n LOGGER.log(Level.SEVERE, Utility.expandStackTraceToString(e));\n }\n }\n };\n synchronized (serverStartSyncString) {\n try {\n // Put all this on a separate worker thread.\n new Thread(worker).start();\n serverStartSyncString.wait();\n }\n catch (InterruptedException e) {\n LOGGER.log(Level.SEVERE, Utility.expandStackTraceToString(e));\n }\n }\n } else {\n if (QVCSEnterpriseServer.getServerIsRunningFlag()) {\n System.out.println(Thread.currentThread().getName() + \"********************************************************* TestHelper.startServer -- server already running.\");\n serverProxyObject = null;\n throw new QVCSRuntimeException(\"Starting server when server already running!\");\n }\n }\n LOGGER.log(Level.INFO, \"********************************************************* TestHelper returning from startServer\");\n return (serverStartSyncString);\n }",
"public static void runServer(int port) throws IOException {\n\t\tserver = new CEMSServer(port);\n\t\tuiController.setServer(server);\n\t\tserver.listen(); // Start listening for connections\n\t}",
"public void start() throws NotAvailableConnectionsException{\r\n \r\n ServerSocket server = null; \r\n Socket client = null; \r\n\t\t\r\n //Asks the IDAOFactory for a DAO object\r\n IDAO dao = IDAOFactory.getDAO();\r\n\t\ttry{ \r\n getData();\r\n server = new ServerSocket(port);\r\n //the server keeps waiting for connections \r\n while(true){\r\n \r\n LOGGER.info(\"Awaiting for client connection on port: \" + port);\r\n client = server.accept();\r\n LOGGER.info(\"Client connected to the application.\");\r\n \r\n //when a client connects, a thread is created and it \r\n //takes charge of the execution\r\n if(connections<maxThreads){\r\n Thread thread = new Thread(\r\n new LogicThread(client, (DAO) dao));\r\n threadsnum++;\r\n thread.start();\r\n threadsnum--;\r\n }else\r\n throw new NotAvailableConnectionsException();\r\n }\r\n \r\n \r\n \r\n \r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t} finally{\r\n try{\r\n \r\n if(client!=null){\r\n client.close();\r\n }\r\n if(server!=null){\r\n server.close();\r\n }\r\n } catch(IOException ex){\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }",
"public void runServer()\n\t{\n\t\taddText(\"Server started at \" + LocalDateTime.now());\n\t\t\n\t\tint cnt = 0;\n\t\twhile(true)\n\t\t{\n\t\t\ttry {\n\t\t\t\t// Accept a request\n\t\t\t\taddText(\"Server is waiting for connection....\");\n\t\t\t\tSocket client = server.accept();\n\t\t\t\tConnectionThread connect = new ConnectionThread(client);\n\t\t\t\t\n\t\t\t\t// Show message\n\t\t\t\taddText(\"Server is connect!\");\n\t\t\t\taddText(\"Player\" + cnt + \"'s IP address is\" + client.getInetAddress());\n\t\t\t\tcnt++;\n\t\t\t\t\n\t\t\t\t// Add to List\n\t\t\t\tconnectionPool.add(connect);\n\t\t\t\t\n\t\t\t\t// If at least two players, Start the game\n\t\t\t\taddText(\"Pool has \" + connectionPool.size() + \" connection\");\n\t\t\t\tif(connectionPool.size() >= 2)\n\t\t\t\t\tclientStart();\n\t\t\t\t\n\t\t\t\t// Start connectionThread\n\t\t\t\tconnect.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}\n\t}",
"public static void main(String[] args) {\n\t\tServer.Serv();\n\t}",
"public void start() {\n \n for (Object obj: bufferedQueries) {\n \n switch(obj.getClass().getName()) {\n case \"uzh.tomdb.db.operations.Insert\":\n if (inserts == null) {\n inserts = new ArrayList<>();\n }\n inserts.add((Insert) obj);\n break;\n case \"uzh.tomdb.db.operations.CreateTable\":\n if (creates == null) {\n creates = new ArrayList<>();\n }\n creates.add((CreateTable) obj);\n break;\n case \"uzh.tomdb.db.operations.Update\":\n if (updates == null) {\n updates = new ArrayList<>();\n }\n updates.add((Update) obj);\n break;\n case \"uzh.tomdb.db.operations.Delete\":\n if (deletes == null) {\n deletes = new ArrayList<>();\n }\n deletes.add((Delete) obj);\n break;\n }\n }\n \n if (inserts != null) {\n inserts();\n }\n if (creates != null) {\n creates();\n }\n if (updates != null) {\n updates();\n }\n if (deletes != null) {\n deletes();\n }\n }",
"public static void main(String[] arg) {\n // start server on port 1500\n new SnesNETsrv(13375);\n }",
"public void startRunning(){\r\n\t\ttry{\r\n\t\t\twhile( true ){\r\n\t\t\t\tserver = new ServerSocket(PORT);\r\n\t\t\t\ttry{\r\n\t\t\t\t\twaitForClient(1);\r\n\t\t\t\t\twaitForClient(2);\r\n\t\t\t\t\tnew ServerThread(connectionClient1, connectionClient2, this).start();\r\n\t\t\t\t}\r\n\t\t\t\tcatch( EOFException e ){\r\n\t\t\t\t\tshowMessage(\"\\nServer ended the connection\");\r\n\t\t\t\t}\r\n\t\t\t\tfinally {\r\n\t\t\t\t\tserver.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch( IOException e ){\r\n\t\t}\r\n\t}",
"private void startServer() throws RemoteException, AlreadyBoundException{\n\t\ttry{\n\t\t\tInsuranceImplementation impl = new InsuranceImplementation();\n\t\t\timpl.setIPAddress(ipHospital.getText());\n\t\t\timpl.setPortNumebr(Integer.parseInt(portHospital.getText()));\n\t\t\t\n\t\t\tRegistry registry = LocateRegistry.createRegistry(Integer.parseInt(portInsurance.getText()));\n\t\t\tregistry.bind(Constants.RMI_ID, impl); \n\t\t\t\n\t\t\tlogMessage(\"Insurance Server Started\");\n\t\t\t\n\t\t} catch (Exception exp)\n\t\t{\n\t\t\tlogMessage(\"ObjID already in use.\\nPlease kill the process running at port 5002\");\n\t\t\texp.printStackTrace();\n\t\t} \n\t\t\n\t}",
"public static void main(String[] args) throws Exception {\n System.err.println(\"Starting main server\");\n\n AutonomousDatabaseWriter autonomousDatabaseWriter = null;\n\n String cloudlinkServerKey = \"\";\n\n if (args.length >= 3) {\n autonomousDatabaseWriter = new AutonomousDatabaseWriter(args[0], args[1]);\n try {\n autonomousDatabaseWriter.setupConnectionPool();\n } catch (SQLException sql) {\n // too bad if the connection pool to the oracle Autonomous Database could not be setup\n logger.log(Level.SEVERE, \"Failed to setup connection pool to oracle autonomous database.\", sql);\n }\n cloudlinkServerKey = args[2];\n }\n\n GluonCloudLinkService gluonCloudLinkService = new GluonCloudLinkService(cloudlinkServerKey);\n\n DeviceListener deviceListener = new DeviceListener(gluonCloudLinkService);\n deviceListener.startListening();\n\n ExternalRequestHandler externalRequestHandler = new ExternalRequestHandler(autonomousDatabaseWriter, gluonCloudLinkService);\n externalRequestHandler.startListening();\n }",
"public static void main(String[] args) {\n\t\trouter = new CommandRouter();\n\t\ttry {\n\t\t\t// setup our socket connection to the tv, but don't connect yet\n\t\t\tconn = new Connection(HOST, PORT, router);\n\n\t\t\t// Tell out router which network connection to use\n\t\t\trouter.setConnection(conn);\n\n\t\t\t// setup a handler for incoming GrantedSessionCommand message\n\t\t\t// objects\n\t\t\ttry {\n\t\t\t\trouter.registerCommandSubscriber(new ICommandSubscriber() {\n\t\t\t\t\tpublic void onCommandReceived(AbstractCommand command) {\n\t\t\t\t\t\t// Filter out the messages we care about\n\t\t\t\t\t\tif (command instanceof GrantedSessionCommand) {\n\t\t\t\t\t\t\t// Print our our unique key, this will be used for\n\t\t\t\t\t\t\t// subsequent connections\n\t\t\t\t\t\t\tUtilities.log(\"Your instanceId is \" + ((GrantedSessionCommand) command).getInstanceId());\n\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t//let's make the dock show up on the TV\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_yahoo\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(2000); //sleep for 2 seconds so the animation to dock finishes\n\n\t\t\t\t\t\t\t\t// Lets do something cool, like tell the TV to navigate to the right. Then do a little dance\n\t\t\t\t\t\t\t\t// This is the same as pressing \"right\" on your remote\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t// slide to the left\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//slide to the right\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_right\"));\n\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\n\t\t\t\t\t\t\t\t//take it back now, y'all\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_left\"));\n\n\t\t\t\t\t\t\t\t//cha cha cha\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_up\"));\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\trouter.publishCommand(new NavigationInputCommand(\"press_down\"));\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\tUtilities.log(\"Problem writing to the network connection\");\n\t\t\t\t\t\t\t\tconn.close();\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// Notify the main thread that everything we wanted to\n\t\t\t\t\t\t\t// do is done.\n\t\t\t\t\t\t\tsynchronized (conn) {\n\t\t\t\t\t\t\t\tconn.notifyAll();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else { // print out the others for educational purposes\n\t\t\t\t\t\t\tUtilities.log(\"Received: \" + command.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tpublic void onConnectionLost(Connection conn) {\n\t\t\t\t\t\tUtilities.log(\"Connection Lost!\");\n\t\t\t\t\t}\n\t\t\t\t}, GrantedSessionCommand.class);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\t// Establish a connection\n\t\t\t\tconn.establish();\n\t\t\t\t// Since this is the first time we are connecting, we must\n\t\t\t\t// create a new session\n\t\t\t\trouter.publishCommand(new CreateSessionCommand(APP_ID, CONSUMER_KEY, SECRET, APP_NAME));\n\n\t\t\t\tString message = getUserInput(\"Code: \");\n\t\t\t\trouter.publishCommand(new AuthSessionCommand(message, conn.getPeerCertificate()));\n\n\t\t\t\t// Let's wait until everything is done. This thread will get\n\t\t\t\t// notified once we are ready to clean up\n\t\t\t\ttry {\n\t\t\t\t\tsynchronized (conn) {\n\t\t\t\t\t\tconn.wait();\n\t\t\t\t\t}\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tUtilities.log(\"Error establishing connection to \" + HOST + \":\" + PORT);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tUtilities.log(\"Error establishing connection to \" + HOST + \":\" + PORT);\n\t\t\t}\n\n\t\t\t// It is always good practice to clean up after yourself\n\t\t\tconn.close();\n\n\t\t} catch (UnknownHostException e) {\n\t\t\tUtilities.log(\"Error resolving \" + HOST);\n\t\t\tSystem.exit(-1);\n\t\t} catch (IOException e) {\n\t\t\tUtilities.log(\"Problem writing to the network connection\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\tSystem.exit(1);\n\t}",
"public void startServers()\n {\n ExecutorService threads = Executors.newCachedThreadPool();\n threads.submit(new StartServer(host, port));\n threads.submit(new StartServer(host, port + 1));\n threads.shutdown();\n }",
"@Override\r\n protected void start() throws StartException {\n\r\n if (!Main.INIT_COMPLETE.isReached()) startServer();\r\n new EDTRunner() {\r\n\r\n @Override\r\n protected void runInEDT() {\r\n initGUI();\r\n }\r\n };\r\n\r\n }",
"public void startServer() throws Exception\n {\n\t\t\tString SERVERPORT = \"ServerPort\";\n\t\t\tint serverport = Integer.parseInt(ConfigurationManager.getConfig(SERVERPORT));\n\t\t\t\n \n Srvrsckt=new ServerSocket ( serverport );\n while ( true )\n {\n Sckt =Srvrsckt.accept();\n new Thread ( new ConnectionHandler ( Sckt ) ).start();\n }\n \n \n\n\n }",
"public void promptDBCreds()\n\t{\n\t\ttse.startDatabase();\n\t\t\n\t}"
]
| [
"0.6691639",
"0.6197419",
"0.60910684",
"0.6079552",
"0.60561633",
"0.5947255",
"0.59342194",
"0.5869145",
"0.5825309",
"0.58211666",
"0.5806443",
"0.58024466",
"0.57953185",
"0.5794281",
"0.5764239",
"0.5758852",
"0.5746316",
"0.5743328",
"0.5722533",
"0.5704024",
"0.56992126",
"0.5672926",
"0.567209",
"0.5669331",
"0.5666647",
"0.5662841",
"0.5658411",
"0.5649296",
"0.56233275",
"0.5619518",
"0.559595",
"0.5577994",
"0.55461806",
"0.5533523",
"0.5533396",
"0.5532706",
"0.55299973",
"0.55206156",
"0.55123496",
"0.5511686",
"0.55068547",
"0.5499427",
"0.5498809",
"0.5497475",
"0.5485342",
"0.5482682",
"0.54814094",
"0.54759955",
"0.5470932",
"0.54698354",
"0.5450855",
"0.5435216",
"0.5432748",
"0.54235405",
"0.54210854",
"0.54208255",
"0.54146874",
"0.5407965",
"0.54053676",
"0.5402728",
"0.5399729",
"0.5399226",
"0.53974086",
"0.5393198",
"0.53916204",
"0.53900146",
"0.53858674",
"0.5383395",
"0.5383295",
"0.5380825",
"0.53768164",
"0.5370963",
"0.53663784",
"0.5366",
"0.5364121",
"0.53608626",
"0.53552836",
"0.535107",
"0.53510493",
"0.53498745",
"0.5343043",
"0.5341336",
"0.5336062",
"0.5334202",
"0.5322013",
"0.5318336",
"0.53146064",
"0.53143215",
"0.5312068",
"0.5310898",
"0.5309894",
"0.5307675",
"0.5301315",
"0.52960825",
"0.5291144",
"0.52804404",
"0.52722746",
"0.5271498",
"0.5271037",
"0.5267265"
]
| 0.70778847 | 0 |
Get a formatted metric name that includes the Kafka metric group | protected String getMetricName(MetricName metricName) {
return format("%s.%s", metricName.group(), metricName.name());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getMetricName();",
"com.google.protobuf.ByteString getMetricNameBytes();",
"public String getName() {\n \treturn metricMetadata.getName();\n }",
"public String metricName() {\n return this.metricName;\n }",
"public String getMetricsDbNameWithMetadataUrlPrefix() {\n StringBuilder sb = new StringBuilder(config.getMetadataUrlPrefix());\n sb.append(\"_\");\n sb.append(config.getOptional(\"kylin.metrics.influx-db\", \"KYLIN_METRICS\"));\n return sb.toString();\n }",
"private String formatGroupName (String groupName) {\n\t\treturn groupName;\n\t}",
"public String getMetricName() {\n return this.MetricName;\n }",
"protected String getGroupNameLabel(){\n\t\treturn Messages.common_measure;\n\t}",
"private String getQualifiedFailureMetricName(String metricName) {\n return getQualifiedMetricName(metricName + \"Failures\");\n }",
"public String getBatchName(G group, Batch<K, T> batch) {\n return \"batch(\" + batch.size() + \")\";\n }",
"@Updatable\n public String getMetricName() {\n return metricName;\n }",
"private String getQualifiedRetryMetricName(String metricName) {\n return getQualifiedMetricName(metricName + \"Retries\");\n }",
"private String getQualifiedMetricName(String metricName) {\n try {\n if (SecurityUtils.isAuthenticationEnabled(mContext.getClusterConf())\n && mContext.getUserState().getUser() != null) {\n return Metric.getMetricNameWithTags(metricName, MetricInfo.TAG_USER,\n mContext.getUserState().getUser().getName());\n } else {\n return metricName;\n }\n } catch (IOException e) {\n return metricName;\n }\n }",
"public String getGroupKey() {\n StringWriter sw = new StringWriter();\n writeGroupKey(sw);\n return sw.toString();\n }",
"public static String generateMetricKey(String projectID,String entityCategoryID,String entityID,String metricID)\n {\n if(StringUtils.isEmpty(projectID) || StringUtils.isEmpty(entityCategoryID) || \n StringUtils.isEmpty(entityID) || StringUtils.isEmpty(metricID)) return null;\n \n StringBuilder sb=new StringBuilder();\n sb.append(\"[\")\n .append(projectID.trim()).append(\"|\")\n .append(entityCategoryID.trim()).append(\"|\")\n .append(entityID.trim()).append(\"|\")\n .append(metricID.trim()).append(\"]\");\n \n return sb.toString(); \n }",
"@Override\n public String getGroupName(int group) {\n assert 0 <= group && group < groupNames.length;\n \n return groupNames[group];\n }",
"public String getMetric() {\n return metric;\n }",
"public String getMetricSetKey() {\n if (metricSetKey == null) {\n if (StringUtils.isEmpty(name)) {\n throw new IllegalArgumentException(\"Metric set name was not set.\");\n }\n\n TreeMap<String, String> tagMap = new TreeMap<>(tags);\n\n metricSetKey =\n name\n + \" -> {\"\n + tagMap.entrySet().stream()\n .map(entry -> entry.getKey() + \":\" + entry.getValue())\n .collect(Collectors.joining(\", \"))\n + \"}\";\n }\n\n return metricSetKey;\n }",
"public String getMetric() {\n return this.metric;\n }",
"public String getGroupName(){\r\n return Validator.unescapeJava(this.groupName);\r\n }",
"public String getName()\n {\n return groupService.getName(this);\n }",
"public String getCategoryAxisLabel(){\n\t\tNumberFormat formatter = NumberFormat.getInstance(locale);\n\t\tString out = \"Unit: \";\n\t\tif(this.histogramTally != null){\n\t\t\tboolean showTimeSpans \t= this.histogramTally.getShowTimeSpansInReport();\n\t\t\tif(showTimeSpans)\n\t\t\t\tout += \"TimeSpan [\"+this.format(null)+\"]\";\n\t\t\telse if(this.histogramTally.getUnit() != null) \t\n\t\t\t\tout += \"[\"+this.histogramTally.getUnit()+\"]\";\n\t\t\telse\t\t\t\t\t\t\t\t\t\n\t\t\t\tout += \"unknown\";\n\t\t\tif(showTimeSpans){\n\t\t\t\tdouble mean = new TimeSpan(this.histogramTally.getMean()).getTimeAsDouble(mayorTimeUnit);\n\t\t\t\tdouble stdDev = new TimeSpan(this.histogramTally.getStdDev()).getTimeAsDouble(mayorTimeUnit);\n\t\t\t\tdouble min = new TimeSpan(this.histogramTally.getMinimum()).getTimeAsDouble(mayorTimeUnit);\n\t\t\t\tdouble max = new TimeSpan(this.histogramTally.getMaximum()).getTimeAsDouble(mayorTimeUnit);\n\t\t\t\tout += \" ( Mean = \"+formatter.format(mean);\n\t\t\t\tout += \" Std.Dev = \"+formatter.format(stdDev);\n\t\t\t\tout += \" Min = \"+formatter.format(min);\n\t\t\t\tout += \" Max = \"+formatter.format(max);\n\t\t\t\tout += \" [\"+this.mayorTimeUnit.name()+\"] )\";\n\t\t\t}else{\n\t\t\t\tout += \" ( Mean = \"+formatter.format(this.histogramTally.getMean());\n\t\t\t\tout += \" Std.Dev = \"+formatter.format(this.histogramTally.getStdDev());\n\t\t\t\tout += \" Min = \"+formatter.format(this.histogramTally.getMinimum());\n\t\t\t\tout += \" Max = \"+formatter.format(this.histogramTally.getMaximum())+\" )\";\n\t\t\t}\n\t\t}else if(this.histogramAccumulate != null){\n\t\t\tboolean showTimeSpans \t= this.histogramAccumulate.getShowTimeSpansInReport();\n\t\t\tif(showTimeSpans)\n\t\t\t\tout += \"TimeSpan [\"+this.format(null)+\"]\";\n\t\t\telse if(this.histogramAccumulate.getUnit() != null) \t\n\t\t\t\tout += \"[\"+this.histogramAccumulate.getUnit()+\"]\";\n\t\t\telse\t\t\t\t\t\t\t\t\t\n\t\t\t\tout += \"unknown\";\n\t\t\tif(showTimeSpans){\n\t\t\t\tdouble mean = new TimeSpan(this.histogramAccumulate.getMean()).getTimeAsDouble(mayorTimeUnit);\n\t\t\t\tdouble stdDev = new TimeSpan(this.histogramAccumulate.getStdDev()).getTimeAsDouble(mayorTimeUnit);\n\t\t\t\tdouble min = new TimeSpan(this.histogramAccumulate.getMinimum()).getTimeAsDouble(mayorTimeUnit);\n\t\t\t\tdouble max = new TimeSpan(this.histogramAccumulate.getMaximum()).getTimeAsDouble(mayorTimeUnit);\n\t\t\t\tout += \" ( Mean = \"+formatter.format(mean);\n\t\t\t\tout += \" Std.Dev = \"+formatter.format(stdDev);\n\t\t\t\tout += \" Min = \"+formatter.format(min);\n\t\t\t\tout += \" Max = \"+formatter.format(max);\n\t\t\t\tout += \" [\"+this.mayorTimeUnit.name()+\"] )\";\n\t\t\t}else{\n\t\t\t\tout += \" ( Mean = \"+formatter.format(this.histogramAccumulate.getMean());\n\t\t\t\tout += \" Std.Dev = \"+formatter.format(this.histogramAccumulate.getStdDev());\n\t\t\t\tout += \" Min = \"+formatter.format(this.histogramAccumulate.getMinimum());\n\t\t\t\tout += \" Max = \"+formatter.format(this.histogramAccumulate.getMaximum())+\" )\";\n\t\t\t}\n\t\t}\n\t\treturn out;\n\t}",
"public String getNamePrefix() {\n if ( group==null )\n return super.getNamePrefix();\n else\n return group.getNamePrefix();\n }",
"public String getGroupNamesAsString() {\n return String.format(\"%s\", StringUtils.join(getGroupNames(), \", \"));\n }",
"@Override\n public byte[] getKey() {\n return MetricUtils.concat2(clusterName, topologyName, getTime().getTime()).getBytes();\n\n }",
"public String format(String key) {\r\n return getString(key);\r\n }",
"private static String extractGroupName(FloodyGroup floodyGroup) {\n return isBlank(floodyGroup.name())\n ? (\"FloodyGroup-\"\n +\n // append random long number to ensure unique group name\n new Random().nextLong())\n : floodyGroup.name();\n }",
"String getKeyFormat();",
"public String metricsScreenName() {\n return \"\";\n }",
"public String getGroupName() {\n GitLabGroupInfo groupInfo = getGroupInfo();\n return (groupInfo != null) ? groupInfo.getName() : \"<could not fetch group information>\";\n }",
"public static String specifyGroup() {\n return holder.format(\"specifyGroup\");\n }",
"java.lang.String getGroup();",
"public String getTopicName() {\n if (topicName.isPresent()) {\n return topicName.get();\n }\n return null;\n }",
"private String escapeGraphiteMetricName(String metricName) {\n String metric = escape(metricName, \".\").replaceAll(\"%\", \"Percent\").replaceAll(\"-\", \".\").replaceAll(\"\\\\.+\", \".\").replaceAll(\"@\",\".\");\n\n if(metric.charAt(metric.length() -1 ) == '.'){\n metric = metric.substring(0, metric.length() - 1 );\n }\n if(metric.charAt(0) == '.'){\n metric = metric.substring(1, metric.length());\n }\n //String escapedMetric = (prefix + \".\" + metric).replaceAll(\"-\", \".\").replaceAll(\"\\\\.+\", \".\");\n return metric;\n }",
"String getCollectorHostName(String clusterName, MetricsService service) throws SystemException;",
"public String getGroupPrefix(String group, String world) {\n \t\treturn getGroupValue(group, world, \"prefix\");\n \t}",
"public String getGroup() {\n return groupName;\n }",
"@Schema(description = \"Specifies the grouping attribute to use when rolling several instances. Instances that share the same value for the provided attribute key are rolled together as a unit. Examples that make sense to use are '\\\\_\\\\_all\\\\_\\\\_' (roll all instances as a single unit), 'logical_zone_name' (roll instances by zone), '\\\\_\\\\_name\\\\_\\\\_' (roll one instance at a time, the default if not specified). Note that '\\\\_\\\\_all\\\\_\\\\_' is required when performing a major version upgrade\")\n public String getGroupBy() {\n return groupBy;\n }",
"public String getGroupName();",
"public final org.apache.spark.ml.param.Param<java.lang.String> metricName () { throw new RuntimeException(); }",
"private String parseGroupNameD2K(String line) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tsb.append(tokens[0] + \".\");\n\t\tsb.append(tokens[1].replace(';', '_'));\n\t\ttry{\n\t\t\tsb.append(tokens[4].replace('#', '.'));\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t// do nothing\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String getGroupId() {\n return groupId != null ? groupId : topic;\n }",
"public static String getServicePackageName(String packagePrefix) {\n List<String> split = Splitter.on('/').splitToList(packagePrefix);\n String localName = \"\";\n if (split.size() < 2) {\n throw new IllegalArgumentException(\"expected packagePrefix to have at least 2 segments\");\n }\n // Get the second to last value.\n // \"google.golang.org/api/logging/v2beta1\"\n // ^^^^^^^\n localName = split.get(split.size() - 2);\n return localName;\n }",
"@DISPID(10)\r\n\t// = 0xa. The runtime will prefer the VTID if present\r\n\t@VTID(16)\r\n\tjava.lang.String groupName();",
"public String getDisplayName() {\n Logger.d(TAG, \"getDisplayName() entry, mIsGroupChat is \"\n + mIsGroupChat);\n if (mIsGroupChat) {\n return getGroupDisplayName();\n } else {\n return getOne2OneDisplayName();\n }\n }",
"public String getGroupSuffix(String group, String world) {\n \t\treturn getGroupValue(group, world, \"suffix\");\n \t}",
"static String getSimpleFormat(String key, Function<String, String> defaultPropertyGetter) {\n if (!DEFAULT_FORMAT_PROP_KEY.equals(key)\n && !JUL_FORMAT_PROP_KEY.equals(key)) {\n throw new IllegalArgumentException(\"Invalid property name: \" + key);\n }\n\n // Do not use any lambda in this method. Using a lambda here causes\n // jdk/test/java/lang/invoke/lambda/LogGeneratedClassesTest.java\n // to fail - because that test has a testcase which somehow references\n // PlatformLogger and counts the number of generated lambda classes.\n String format = GetPropertyAction.privilegedGetProperty(key);\n\n if (format == null && defaultPropertyGetter != null) {\n format = defaultPropertyGetter.apply(key);\n }\n if (format != null) {\n try {\n // validate the user-defined format string\n String.format(format, ZonedDateTime.now(), \"\", \"\", \"\", \"\", \"\");\n } catch (IllegalArgumentException e) {\n // illegal syntax; fall back to the default format\n format = DEFAULT_FORMAT;\n }\n } else {\n format = DEFAULT_FORMAT;\n }\n return format;\n }",
"@java.lang.Override\n\tpublic java.lang.String toString()\n\t{\n\t\treturn \"SetMetric\";\n\t}",
"String getClassName() {\n final StringBuilder builder = new StringBuilder();\n final String shortName = getShortName();\n boolean upperCaseNextChar = true;\n for (final char c : shortName.toCharArray()) {\n if (c == '_' || c == '-') {\n upperCaseNextChar = true;\n continue;\n }\n\n if (upperCaseNextChar) {\n builder.append(Character.toUpperCase(c));\n upperCaseNextChar = false;\n } else {\n builder.append(c);\n }\n }\n builder.append(\"Messages\");\n return builder.toString();\n }",
"public String getCloudWatchLogGroupArn() {\n return this.cloudWatchLogGroupArn;\n }",
"public String getGroupName() {\n return groupName;\n }",
"public String getLogGroupName() {\n return this.logGroupName;\n }",
"public String getFormatName() {\n\t\tString name = getName();\n\t\tif (name.startsWith(SpotlessPlugin.EXTENSION)) {\n\t\t\tString after = name.substring(SpotlessPlugin.EXTENSION.length());\n\t\t\tif (after.endsWith(SpotlessPlugin.CHECK)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.CHECK.length()).toLowerCase(Locale.US);\n\t\t\t} else if (after.endsWith(SpotlessPlugin.APPLY)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.APPLY.length()).toLowerCase(Locale.US);\n\t\t\t}\n\t\t}\n\t\treturn name;\n\t}",
"public String metricResourceId() {\n return this.metricResourceId;\n }",
"public String formatMetricValue(final double value) {\n String result = \"\";\n \n if (this.metricNumericFormat == MetricNumericFormat.NUMBER) {\n result = formatDecimals(value);\n \n } else if (this.metricNumericFormat == MetricNumericFormat.PERCENTAGE) {\n final NumberFormat percentFormat = NumberFormat.getPercentInstance(this.locale);\n percentFormat.setMaximumFractionDigits(0);\n result = percentFormat.format(value);\n \n } else if (this.metricNumericFormat == MetricNumericFormat.BASE_UNIT_AREA) {\n double areaValue = value;\n if (!this.baseAreaUnits.getUnits().equals(this.areaUnits.getUnits())) {\n areaValue = value / this.areaUnits.getConversionFactor();\n }\n final String formattedAreaValue = formatDecimals(areaValue);\n final String areaTitle = this.areaUnits.getTitle();\n result = MessageFormat.format(\"{0} {1}\", formattedAreaValue, areaTitle);\n \n } else if (this.metricNumericFormat == MetricNumericFormat.BUDGET_CURRENCY) {\n final double exchangeRate =\n this.currencyConversions\n .getExchangeRateFromBudgetToUser(ExchangeRateType.BUDGET);\n final double moneyValue = value / exchangeRate;\n final String formattedMoneyValue = formatDecimals(moneyValue);\n final String currencySymbol = this.currency.getSymbol();\n if (moneyValue >= 0) {\n result = MessageFormat.format(\"{0}{1}\", currencySymbol, formattedMoneyValue);\n } else {\n result =\n MessageFormat.format(\"-{0}{1}\", currencySymbol,\n formattedMoneyValue.substring(1));\n }\n }\n \n result = formatDisplay(result);\n \n return result;\n }",
"private void printMetric(String metricPrefix, String metricName, Object metricValue) {\n\n String aggregation = MetricWriter.METRIC_AGGREGATION_TYPE_OBSERVATION;\n String timeRollup = MetricWriter.METRIC_TIME_ROLLUP_TYPE_AVERAGE;\n String cluster = MetricWriter.METRIC_CLUSTER_ROLLUP_TYPE_COLLECTIVE;\n\n String metricPath = metricPrefix + METRIC_SEPARATOR + metricName;\n\n MetricWriter metricWriter = getMetricWriter(metricPath,\n aggregation,\n timeRollup,\n cluster\n );\n metricWriter.printMetric(String.valueOf(metricValue));\n\n if (logger.isDebugEnabled()) {\n logger.debug(\"Metric [\" + aggregation + \"/\" + timeRollup + \"/\" + cluster\n + \"] metric = \" + metricPath + \" = \" + metricValue);\n }\n }",
"public java.lang.String getGroupName() {\n return groupName;\n }",
"public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }",
"public String getAutoScalingGroup() {\n return this.autoScalingGroup;\n }",
"public String getRFCDestinationNameFromGroupName(final String groupName)\r\n\t{\r\n\t\tfinal String[] groupNameSplitted = groupName.split(\"\\\\|\");\r\n\t\treturn groupNameSplitted[0].replace(SapcorejcoConstants.RFCDESTINATION_NAME_PREFIX, \"\");\r\n\t}",
"java.lang.String getClusterName();",
"private String getGroupDisplayName() {\n Logger.d(TAG, \"getGroupDisplayName() entry\");\n if (null != mChatMap) {\n Object obj = mChatMap.get(ChatListFragment.NUMBER);\n Logger.d(TAG, \"getGroupDisplayName() the obj is \" + obj);\n if (obj instanceof List) {\n List<String> numbers = (List<String>) obj;\n String displayName = ChatFragment\n .getParticipantsName(numbers.toArray(new String[1]));\n Logger.d(TAG, \"getGroupDisplayName() the display name is \"\n + displayName);\n return displayName;\n } else {\n Logger.e(TAG, \"getGroupDisplayName() obj is not a List\");\n return null;\n }\n } else {\n Logger.e(TAG, \"getGroupDisplayName() mChatMap is null\");\n return null;\n }\n }",
"private String getObjectName(String sentinel) {\n return \"metrics:name=\" + PREFIX + \"routing.\" + sentinel + \".duration\";\n }",
"public java.lang.String getServiceGroupName(){\n return localServiceGroupName;\n }",
"public String getGroupname()\n {\n return group2d;\n }",
"public String getGroupName() {\n return groupName;\n }",
"public String getGroupName() {\n return groupName;\n }",
"public String getGroupName()\n {\n return groupName;\n }",
"public String monthName(int month, int minWidth, int maxWidth) {\n\t\tString name = swedishMonths[month-1];\n if (maxWidth < 3) {\n maxWidth = 3;\n }\n if (name.length() > maxWidth) {\n name = name.substring(0, maxWidth);\n }\n while (name.length() < minWidth) {\n name = name + ' ';\n }\n return name;\n\t}",
"public String scrape() {\n Writer writer = new StringWriter();\n try {\n TextFormat.write004(writer, registry.metricFamilySamples());\n } catch (IOException e) {\n // This actually never happens since StringWriter::write() doesn't throw any IOException\n throw new RuntimeException(e);\n }\n return writer.toString();\n }",
"public String getGroupName() {\n return groupName;\n }",
"public String getGroupName() {\r\n return groupName;\r\n }",
"public String getFormattedReceiptLabel() {\t \n\t String receiptLabel = res.getString(getReceiptLabel().getKey());\t \n\t int numberOfSpaces = ((totalLength - receiptLabel.length()) / 2);\t \n\t String prefix = \"\";\n\t String postfix = \"\";\n\t for(int i = 0; i < numberOfSpaces; i++) {\n\t\t prefix += \" \";\n\t\t postfix += \" \";\n\t }\n\t receiptLabel = prefix + receiptLabel + postfix;\t \n\t return receiptLabel;\n }",
"public String getGroup();",
"@Override\n\tpublic String getGroup() {\n\t\treturn \"Group_\"+SliceName(stdClass);\n\t}",
"public String getTopicName() {\n if (activeTopic == null) {\n return \"\";\n } else {\n return TOPIC_HEADER_PRESTRING + activeTopic.getName();\n }\n }",
"public String getFullName() {\n return group + \".\" + name;\n }",
"public String getGroupName(String beID) throws AuditTrailTrackingException\n {\n return GroupMappingHelper.getInstance().getGroupMapping(beID, getDAO());\n }",
"public String getGroupName() {\n\t\treturn groupName;\n\t}",
"@Override\n public String getTopic() {\n Object ref = topic_;\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 topic_ = s;\n return s;\n }\n }",
"private String formatLoggerName(LogRecord record)\n\t{\n\t\tString loggerName = record.getLoggerName();\n\t\tif(loggerName.startsWith(LOG_SOURCE_PREFIX))\n\t\t{\n\t\t\tloggerName = loggerName.substring(LOG_SOURCE_PREFIX.length());\n\t\t}\n\t\treturn loggerName;\n\t}",
"KafkaMetricMeterType() {\n }",
"public String getTopic() {\n Object ref = topic_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n topic_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getDescription() {\n \treturn metricMetadata.getDescription();\n }",
"public String getReaderGroupMeaning() {\n return (String)getAttributeInternal(READERGROUPMEANING);\n }",
"String getGroupingCode();",
"private String formatDisplay(final String value) {\n String formattedValue = value;\n \n String formatPattern = this.metricDisplayFormat;\n \n if (StringUtil.notNullOrEmpty(this.metricDisplayFormatMetric)\n && this.baseAreaUnits.getUnits() == Units.Metric) {\n formatPattern = this.metricDisplayFormatMetric;\n }\n \n if (StringUtil.notNullOrEmpty(formatPattern)) {\n formattedValue = MessageFormat.format(formatPattern, value);\n }\n \n return formattedValue;\n }",
"public static String groupNotFound(String groupname) {\n return holder.format(\"groupNotFound\", groupname);\n }",
"public String getName() {\n return String.format(\"%s %s\", getFirst(), getLast());\n }",
"@Nullable String getPerformanceMetric();",
"public String get(int i) {\n String group = this.f111784a.m150658d().group(i);\n return group != null ? group : \"\";\n }",
"java.lang.String getGroupId();",
"java.lang.String getGroupId();",
"public java.lang.String getGroupname() {\n\treturn groupname;\n}",
"public String getGroupName() {\n\t\t\treturn groupName;\n\t\t}",
"public String getMetricScope() {\n return scope;\n }",
"public String getName(){\n StringBuilder name = new StringBuilder();\n for (int value : names) {\n name.append(\"> \").append(strings.get(value));\n }\n return name.toString();\n }",
"public String getGroup() {\n if (overrideGroupKey != null) {\n return overrideGroupKey;\n }\n return getNotification().getGroup();\n }",
"static String metricName(final CISW cisw, final byte[] row)\r\n {\r\n final byte[] id = Arrays.copyOfRange(row, 0, cisw.metrics.width());\r\n return cisw.metrics.getName(id);\r\n }",
"public String getGroupName() {\n return this.GroupName;\n }"
]
| [
"0.7136165",
"0.65005076",
"0.62052053",
"0.6165712",
"0.6097766",
"0.60838866",
"0.6027165",
"0.59668994",
"0.594564",
"0.5728283",
"0.5697196",
"0.5675464",
"0.56566364",
"0.565376",
"0.56025666",
"0.5523772",
"0.5522664",
"0.55050796",
"0.54964346",
"0.54246753",
"0.5357159",
"0.53274846",
"0.52966905",
"0.5224049",
"0.5223574",
"0.5157313",
"0.5152738",
"0.5108238",
"0.5104505",
"0.50672597",
"0.5066824",
"0.506588",
"0.5054555",
"0.50533587",
"0.5043369",
"0.5030622",
"0.5010754",
"0.5007666",
"0.49992856",
"0.4997271",
"0.496705",
"0.4958863",
"0.49550167",
"0.49541318",
"0.4946345",
"0.49384332",
"0.49328455",
"0.4915992",
"0.48979548",
"0.48978022",
"0.48934242",
"0.48871508",
"0.48866203",
"0.4878371",
"0.48640102",
"0.48613933",
"0.48609272",
"0.48530138",
"0.4852569",
"0.4825515",
"0.4824056",
"0.48208323",
"0.48162073",
"0.4811585",
"0.48111945",
"0.48095986",
"0.48095986",
"0.48029977",
"0.4799701",
"0.4799638",
"0.47962606",
"0.4795572",
"0.47884497",
"0.4780199",
"0.47724158",
"0.47658172",
"0.47650802",
"0.47623053",
"0.4760068",
"0.4758198",
"0.47531995",
"0.4750324",
"0.47487867",
"0.47381613",
"0.47254923",
"0.47226062",
"0.47213918",
"0.47200447",
"0.47165528",
"0.47086805",
"0.46971056",
"0.46912712",
"0.46912712",
"0.4690384",
"0.4684238",
"0.46836364",
"0.4683624",
"0.46835685",
"0.46780458",
"0.46756437"
]
| 0.6935902 | 1 |
Get the KafkaStreams instance being used by this app | public KafkaStreams getKafkaStreamsInstance() {
return kafkaStreams;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected StreamsApp() {\n this.streamsConfig = new KafkaStreamsConfig().fromConfig(config);\n this.rocksDbReporter = new RocksDbMetricsReporter(this);\n }",
"public List<Stream> getStreams() {\n return streams;\n }",
"public static Streamer getInstance() {\r\n if (streamer == null) streamer = new Streamer();\r\n return streamer;\r\n }",
"public static Topology getTopology() {\n StreamsBuilder builder = new StreamsBuilder();\n\n KafkaStreamsRunnerDSL uot = new KafkaStreamsRunnerDSL();\n uot.buildPipeline(builder);\n\n // build the topology and start streaming\n Topology topology = builder.build();\n return topology;\n }",
"public FlinkConsumerFromKafkaUtil(){\n env = StreamExecutionEnvironment.getExecutionEnvironment();\n }",
"public synchronized int activeStreams() {\n return streams.size();\n\n }",
"public int getNumStreams() {\n return numStreams;\n }",
"protected void initialize() {\n // Get the topology builder\n KStreamBuilder builder = getBuilder();\n // Build the app\n kafkaStreams = new KafkaStreams(builder, streamsConfig, new ClientSupplier());\n // Shutdown the entire app if an uncaught exception is encountered\n kafkaStreams.setUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {\n @Override\n public void uncaughtException(Thread t, Throwable e) {\n log.error(\"Stream terminated because of uncaught exception: {}. Shutting down app\", e.getMessage());\n String s = stackTraceAsString((Exception) e);\n log.error(\"Stacktrace: {}\", s);\n System.out.println(e);\n shutdownApp();\n }\n });\n topology = builder;\n addMetrics(PipelineMetricsReporter.metrics());\n }",
"public List<String> streams() {\n return this.streams;\n }",
"public int getNumStreams()\r\n {\r\n return this.numStreams;\r\n }",
"public static KafkaSerializer getSerializer() {\n return SerializerHolder.serializer;\n }",
"public static Properties configStream() {\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, KafkaConstants.getBootstrapServers());\r\n\t\tprops.put(ConsumerConfig.GROUP_ID_CONFIG, KafkaConstants.getGroupId());\r\n\t\tprops.put(StreamsConfig.APPLICATION_ID_CONFIG, KafkaConstants.getApplicationId());\r\n\t\tprops.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.String().getClass());\r\n\t\tprops.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, RentalCarEventDetailsSerde.class);\r\n\r\n\t\treturn props;\r\n\t}",
"public StreamsConfigData getStreamsConfigData() {\n\t\treturn streamsConfigData;\n\t}",
"public static MQTTopicManager getInstance() {\n return instance;\n }",
"public Map<String, Object> getStreamsConfig() {\n // returns a copy of the original properties\n return streamsConfig.originals();\n }",
"Properties getKafkaProperties() {\n Properties props = new Properties();\n props.put(StreamsConfig.APPLICATION_ID_CONFIG, \"example-window-stream\");\n props.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, \"localhost:9092\");\n props.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, \"earliest\");\n props.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.String().getClass().getName());\n props.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, Serdes.String().getClass().getName());\n props.put(StreamsConfig.DEFAULT_TIMESTAMP_EXTRACTOR_CLASS_CONFIG, TardisTimestampExtractor.class);\n return props;\n }",
"protected StreamsApp(StreamsConfig streamsConfig) {\n this.streamsConfig = streamsConfig;\n this.rocksDbReporter = new RocksDbMetricsReporter(this);\n }",
"public void example() {\n KStream<String, String> kStream = streamsBuilder().stream(\"TOPIC1\",\n Consumed.with(Serdes.String(), Serdes.String()));\n KGroupedStream<String, String> groupedStream = kStream.groupByKey();\n KTable<String, Long> totalCount = groupedStream.count();\n KTable<String, Long> windowedCount = groupedStream.count();\n groupedStream.count();\n }",
"public static StreamProcessorStatisticDataHolder getInstance() {\n return instance;\n }",
"DataStreams createDataStreams();",
"private static void runKafkaStreams() {\n final KStream<SolarModuleKey, SolarModuleData> source = BUILDER\n .stream(IN_TOPIC, Consumed.with(STRING_SERDE, SOLAR_MODULE_DATA_SERDE))\n .map((k, v) -> KeyValue.pair(new SolarModuleKey(v.getPanel(), v.getName()), v));\n\n source.foreach((k, v) -> {\n log.info(\"NEW DATA: [{}|{}]: {}\", k.getPanelName(), k.getModuleName(), v.getPower());\n });\n\n // calculating sum power and average power for modules\n final KStream<Windowed<SolarModuleKey>, SolarModuleAggregator> aggPowerPerSolarModuleStream = source\n .groupByKey(Grouped.with(SOLAR_MODULE_KEY_SERDE, SOLAR_MODULE_DATA_SERDE))\n .windowedBy(TIME_WINDOWS)\n .aggregate(SolarModuleAggregator::new,\n (modelKey, value, aggregation) -> aggregation.updateFrom(value),\n Materialized.with(SOLAR_MODULE_KEY_SERDE,\n SOLAR_MODULE_AGGREGATOR_SERDE))\n .suppress(Suppressed.untilTimeLimit(DURATION, Suppressed.BufferConfig.unbounded()))\n .toStream();\n\n aggPowerPerSolarModuleStream.foreach((k, v) -> log.info(\"PerSolarModule: [{}|{}|{}]: {}:{}\",\n k.window().endTime().getEpochSecond(), k.key().getPanelName(), k.key().getModuleName(),\n v.getSumPower(), v.getCount()));\n\n // calculating sum power and average power for panels\n final KStream<Windowed<String>, SolarPanelAggregator> aggPowerPerSolarPanelStream = aggPowerPerSolarModuleStream\n .map((k, v) -> KeyValue.pair(new Windowed<>(k.key().getPanelName(), k.window()), v))\n .groupByKey(Grouped.with(WINDOWED_STRING_SERDE, SOLAR_MODULE_AGGREGATOR_SERDE))\n .aggregate(SolarPanelAggregator::new,\n (panelKey, value, aggregation) -> aggregation.updateFrom(value),\n Materialized.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_SERDE))\n .suppress(Suppressed.untilTimeLimit(DURATION, Suppressed.BufferConfig.unbounded()))\n .toStream();\n aggPowerPerSolarPanelStream.foreach((k, v) -> log.info(\"PerSolarPanel: [{}|{}]: {}:{}\",\n k.window().endTime().getEpochSecond(), k.key(), v.getSumPower(), v.getCount()));\n\n // if used for join more than once, the exception \"TopologyException: Invalid\n // topology:\" will be thrown\n final KStream<Windowed<String>, SolarModuleAggregator> aggPowerPerSolarModuleForJoinStream = aggPowerPerSolarModuleStream\n .map((k, v) -> KeyValue.pair(new Windowed<>(k.key().getPanelName(), k.window()), v));\n\n // joining aggregated panels with aggregated modules\n // need for calculating sumSquare and deviance\n final KStream<Windowed<String>, SolarPanelAggregatorJoiner> joinedAggPanelWithAggModule = aggPowerPerSolarPanelStream\n .join(aggPowerPerSolarModuleForJoinStream, SolarPanelAggregatorJoiner::new,\n JOIN_WINDOWS,\n Joined.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_SERDE,\n SOLAR_MODULE_AGGREGATOR_SERDE));\n\n // calculating sumSquare and deviance\n final KStream<Windowed<String>, SolarPanelAggregator> aggPowerPerSolarPanelFinalStream = joinedAggPanelWithAggModule\n .groupByKey(Grouped.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_JOINER_SERDE))\n .aggregate(SolarPanelAggregator::new,\n (key, value, aggregation) -> aggregation.updateFrom(value),\n Materialized.with(WINDOWED_STRING_SERDE, SOLAR_PANEL_AGGREGATOR_SERDE))\n .suppress(Suppressed.untilTimeLimit(DURATION, Suppressed.BufferConfig.unbounded()))\n .toStream();\n\n aggPowerPerSolarPanelFinalStream.foreach((k, v) -> log.info(\n \"PerSolarPanelFinal: [{}|{}]: power:{} count:{} squareSum:{} variance:{} deviance:{}\",\n k.window().endTime().getEpochSecond(), k.key(), v.getSumPower(), v.getCount(),\n v.getSquaresSum(), v.getVariance(), v.getDeviance()));\n\n // joining aggregated modules with aggregated panels in which calculated\n // sumSquare and deviance\n // need for check modules with anomaly power value\n final KStream<Windowed<String>, SolarModuleAggregatorJoiner> joinedAggModuleWithAggPanel = aggPowerPerSolarModuleStream\n .map((k, v) -> KeyValue.pair(new Windowed<>(k.key().getPanelName(), k.window()), v))\n .join(aggPowerPerSolarPanelFinalStream, SolarModuleAggregatorJoiner::new, JOIN_WINDOWS,\n Joined.with(WINDOWED_STRING_SERDE, SOLAR_MODULE_AGGREGATOR_SERDE,\n SOLAR_PANEL_AGGREGATOR_SERDE));\n\n joinedAggModuleWithAggPanel.foreach((k, v) -> {\n if (isAnomalyModule(v)) {\n log.info(\"ANOMALY module: [{}|{}|{}]: sumPower:{} panelAvg:{} deviance:{}\",\n k.window().endTime().getEpochSecond(), k.key(), v.getModuleName(),\n v.getSumPower(), v.getSolarPanelAggregator().getAvgPower(),\n v.getSolarPanelAggregator().getDeviance());\n }\n });\n\n // streaming result data (modules with anomaly power value)\n joinedAggModuleWithAggPanel.filter((k, v) -> isAnomalyModule(v))\n .map((k, v) -> KeyValue.pair(k.key(), v))\n .to(OUT_TOPIC, Produced.valueSerde(SOLAR_MODULE_AGGREGATOR_JOINER_SERDE));\n\n log.info(\"STARTING\");\n final KafkaStreams streams = new KafkaStreams(BUILDER.build(), getProperties());\n streams.cleanUp();\n streams.start();\n log.info(\"STARTED\");\n Runtime.getRuntime().addShutdownHook(new Thread(streams::close));\n }",
"public org.linphone.mediastream.Factory getMediastreamerFactory();",
"public static SerializerFactory getInstance() {\r\n return INSTANCE;\r\n }",
"static public AtomSlinger Get_Instance ()\n {\n return AtomSlingerContainer._instance;\n }",
"public static JavaStreamingContext processStream() throws SparkException {\n SparkConf streamingConf = new SparkConf().setMaster(\"local[2]\").setAppName(\"voting\");\r\n streamingConf.set(\"spark.streaming.stopGracefullyOnShutdown\", \"true\");\r\n\r\n // create a Spark Java streaming context, with stream batch interval\r\n JavaStreamingContext jssc = new JavaStreamingContext(streamingConf, Durations.milliseconds(1000));\r\n\r\n // set checkpoint for demo\r\n jssc.checkpoint(System.getProperty(\"java.io.tmpdir\"));\r\n\r\n jssc.sparkContext().setLogLevel(Level.OFF.toString()); // turn off Spark logging\r\n\r\n // set up receive data stream from kafka\r\n final Set<String> topicsSet = new HashSet<>(Arrays.asList(topic));\r\n final Map<String, String> kafkaParams = new HashMap<>();\r\n kafkaParams.put(\"metadata.broker.list\", broker);\r\n\r\n // create a Discretized Stream of Java String objects\r\n // as a direct stream from kafka (zookeeper is not an intermediate)\r\n JavaPairInputDStream<String, String> rawDataLines =\r\n KafkaUtils.createDirectStream(\r\n jssc,\r\n String.class,\r\n String.class,\r\n StringDecoder.class,\r\n StringDecoder.class,\r\n kafkaParams,\r\n topicsSet\r\n );\r\n\r\n JavaDStream<String> lines = rawDataLines.map((Function<Tuple2<String, String>, String>) Tuple2::_2);\r\n System.out.println(lines);\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n return jssc;\r\n }",
"public int getStreamCount()\n {\n return _streams.size();\n }",
"public KafkaBacksideEnvironment() {\n\t\tConfigPullParser p = new ConfigPullParser(\"kafka-props.xml\");\n\t\tproperties = p.getProperties();\n\t\tconnectors = new HashMap<String, IPluginConnector>();\n\t\t//chatApp = new SimpleChatApp(this);\n\t\t//mainChatApp = new ChatApp(this);\n\t\t//elizaApp = new ElizaApp(this);\n\t\tbootPlugins();\n\t\t//TODO other stuff?\n\t\tSystem.out.println(\"Booted\");\n\t\t//Register a shutdown hook so ^c will properly close things\n\t\tRuntime.getRuntime().addShutdownHook(new Thread() {\n\t\t public void run() { shutDown(); }\n\t\t});\n\t}",
"public static MetadataDispatcherQueue getInstance(){\n if(instance == null ){\n instance = new MetadataDispatcherQueue();\n }\n return instance;\n }",
"public BamStream getBrokerStream()\n {\n return this;\n }",
"KStream<K, V> toStream();",
"@Override\n public ListStreamsResult listStreams(ListStreamsRequest listStreamsRequest) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"listStreams request={}\", listStreamsRequest);\n }\n\n checkArgument(mtDynamoDb.getMtContext().getContextOpt().isEmpty(),\n \"listStreams currently does not support calling any tenant context except the empty context\");\n checkArgument(listStreamsRequest.getTableName() == null,\n \"listStreams currently does not support filtering by table name\");\n\n // filter to mt tables\n ListStreamsResult result = dynamoDbStreams.listStreams(listStreamsRequest);\n\n result.setStreams(result.getStreams().stream()\n .filter(stream -> mtDynamoDb.isMtTable(stream.getTableName()))\n .collect(toList()));\n\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"listStreams #streams={}, lastEvaluatedStreamArn={}\",\n result.getStreams().size(), result.getLastEvaluatedStreamArn());\n }\n return result;\n }",
"public Stream<Tuple<Instance,Document>> instanceStream() {\n\t\treturn docs.stream()\n\t\t\t\t.map((doc)->{\n\t\t\t\t\tInstance instance = asInstance(doc);\n\t\t\t\t\treturn new Tuple<>(instance,doc);\n\t\t\t\t});\n\t}",
"public static TwitterApplication getInstance() {\n return application;\n }",
"public static SessionKeeper getInstance(){\r\n if (sessionKeeperInstance == null) sessionKeeperInstance = new SessionKeeper();\r\n return sessionKeeperInstance;\r\n }",
"public Stream getStream(String streamId) {\n\t\tserverLock.lock();\n\t\ttry {\n\t\t\twhile (lookupStreamIds.contains(streamId)) {\n\t\t\t\t// Another thread is looking up this stream - wait for them to get back\n\t\t\t\ttry {\n\t\t\t\t\treturnedFromServer.await();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tStream s = getRobonobo().getDbService().getStream(streamId);\n\t\t\tif (s != null)\n\t\t\t\treturn s;\n\n\t\t\tlookupStreamIds.add(streamId);\n\t\t} finally {\n\t\t\tserverLock.unlock();\n\t\t}\n\n\t\ttry {\n\t\t\tString streamUrl = metadataServer.getStreamUrl(streamId);\n\t\t\ttry {\n\t\t\t\tStreamMsg.Builder sb = StreamMsg.newBuilder();\n\t\t\t\tgetRobonobo().getSerializationManager().getObjectFromUrl(sb, streamUrl);\n\t\t\t\tStream s = new Stream(sb.build());\n\t\t\t\tgetRobonobo().getDbService().putStream(s);\n\t\t\t\treturn s;\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RobonoboException(e);\n\t\t\t} finally {\n\t\t\t\tserverLock.lock();\n\t\t\t\tlookupStreamIds.remove(streamId);\n\t\t\t\treturnedFromServer.signalAll();\n\t\t\t\tserverLock.unlock();\n\t\t\t}\n\t\t} catch (RobonoboException e) {\n\t\t\tlog.error(\"Exception getting stream\", e);\n\t\t\treturn null;\n\t\t}\n\t}",
"public static StandardOutputResolver getInstance() {\n return theInstance;\n }",
"public TwitterStream getTwitterStream() {\r\n\t\treturn twitterStream;\r\n\t}",
"public static PerksFactory getInstance() {\n\n\t\tif (perksFactory == null) {\n\t\t\tperksFactory = new PerksFactory();\n\t\t}\n\n\t\treturn perksFactory;\n\t}",
"default Stream<Token<?>> stream() {\n return stream(true);\n }",
"public static synchronized DemoApplication getInstance() {\n return mInstance;\n }",
"abstract AbstractStreamingAnalyticsConnection createStreamsConnection()\n throws IOException;",
"private static Log getLog() {\n if (log == null) {\n log = new SystemStreamLog();\n }\n\n return log;\n }",
"private static FlinkKafkaProducer<String> getKafkaSink(Tuple2<String, String> sinkTuple) {\n\t\tProperties props = new Properties();\n\t\tprops.setProperty(\"bootstrap.servers\", sinkTuple.f0);\t\t\t\t\n\t\treturn new FlinkKafkaProducer<>(\n\t\t\t\tsinkTuple.f0,\n\t\t\t\tsinkTuple.f1,\n\t\t\t\tnew SimpleStringSchema());\t\n\t}",
"public CStream get_stream() {\r\n\t\treturn new CStream(this);\r\n\t}",
"private void openStreams() {\n\t\ttry {\n\t\t\t// mostramos un log\n\t\t\tthis.getLogger().debug(\"Opening streams..\");\n\t\t\t// abrimos el stream de salida\n\t\t\tthis.setOutputStream(new ObjectOutputStream(this.getConnection().getOutputStream()));\n\t\t\t// abrimos el stream de entrada\n\t\t\tthis.setInputStream(new ObjectInputStream(this.getConnection().getInputStream()));\n\t\t} catch (final IOException e) {}\n\t}",
"public static NotificationPublisher getInstance() {\n return instance;\n }",
"public static FacebookUtils getInstance() {\n return FacebookUtils.shared_instance;\n }",
"@Test\n public void testGetStreams_2_0_17()\n throws OpenDataException, IOException, ReaperException, ClassNotFoundException, InterruptedException {\n CompositeData streamSession = makeCompositeData_2_0_17();\n\n // compare the test payload with an actual payload grabbed from a 2.0.17 ccm node\n URL url = Resources.getResource(\"repair-samples/stream-report-2-0-17.txt\");\n String ref = Resources.toString(url, Charsets.UTF_8);\n assertEquals(ref.replaceAll(\"\\\\s\", \"\"), streamSession.toString().replaceAll(\"\\\\s\", \"\"));\n\n // init the stream manager\n ICassandraManagementProxy proxy = (ICassandraManagementProxy) mock(\n Class.forName(\"io.cassandrareaper.management.jmx.JmxCassandraManagementProxy\"));\n\n AppContext cxt = new AppContext();\n cxt.config = TestRepairConfiguration.defaultConfig();\n cxt.managementConnectionFactory = mock(JmxManagementConnectionFactory.class);\n when(cxt.managementConnectionFactory.connectAny(Mockito.anyList())).thenReturn(proxy);\n HostConnectionCounters connectionCounters = mock(HostConnectionCounters.class);\n when(cxt.managementConnectionFactory.getHostConnectionCounters()).thenReturn(connectionCounters);\n when(connectionCounters.getSuccessfulConnections(any())).thenReturn(1);\n ClusterFacade clusterFacadeSpy = Mockito.spy(ClusterFacade.create(cxt));\n Mockito.doReturn(\"dc1\").when(clusterFacadeSpy).getDatacenter(any(), any());\n when(proxy.getCurrentStreams()).thenReturn(ImmutableSet.of(streamSession));\n\n // do the actual pullStreams() call, which should succeed\n List<StreamSession> result = StreamService\n .create(() -> clusterFacadeSpy)\n .listStreams(Node.builder().withHostname(\"127.0.0.1\").withCluster(Cluster.builder().withJmxPort(7199)\n .withSeedHosts(ImmutableSet.of(\"127.0.0.1\")).withName(\"test\").build()).build());\n\n verify(proxy, times(1)).getCurrentStreams();\n assertEquals(1, result.size());\n }",
"public static XStream retrieveXstream() {\r\n return retrieveXstream(WsRestClassLookup.getAliasClassMap());\r\n }",
"protected static KShingler getInstance() {\n return ShinglerSingleton.INSTANCE;\n }",
"public static LifecycleProvider get() {\n return INSTANCE;\n }",
"public int getStreamCount() {\n return streamCount;\n }",
"public static void streams() {\n\t\ttry {\n\t\t\tList<Stream> streams = PlatformClient.streams(getUser());\n\t\t\trender(streams);\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Can not get streams : %s\", e.getMessage());\n\t\t\trender();\n\t\t}\n\t}",
"public org.davic.net.Locator getStreamLocator()\n\t{return null;\n\t}",
"static ConsoleCharStream getInstance() {\n if (_i == null)\n _i = new ConsoleCharStream();\n return _i;\n }",
"public Properties getKafkaConsumerConfig() {\n if (instanceSubscriber.isResolvable()) {\n return instanceSubscriber.get().getKafkaConsumerConfig();\n }\n Properties consumerConfig = getDefaultConsumerConfig();\n if (instanceConsumer.isResolvable()) {\n consumerConfig.putAll(instanceConsumer.get());\n }\n return consumerConfig;\n }",
"public Stream getStream(Streamable type){\n return Stream.builder().add(type).build() ;\n }",
"public static FilterCacheFactory getInstance() {\n return instance;\n }",
"public Request<List<LogStream>> list() {\n String url = baseUrl\n .newBuilder()\n .addPathSegments(LOG_STREAMS_PATH)\n .build()\n .toString();\n\n CustomRequest<List<LogStream>> request = new CustomRequest<>(client, url, \"GET\", new TypeReference<List<LogStream>>() {\n });\n request.addHeader(AUTHORIZATION_HEADER, \"Bearer \" + apiToken);\n return request;\n }",
"public static AppClient getInstance() {\n return instance;\n }",
"public int getPlaybackStream() {\n return mBundle.getInt(KEY_PLAYBACK_STREAM);\n }",
"public AppSink getSinkElement() {\n return sink;\n }",
"private static FlinkKafkaConsumer<String> getKafkaSource(Tuple3<String, String, String> sourceTuple) {\n\t\tProperties properties = new Properties();\n\t\tproperties.setProperty(\"bootstrap.servers\", sourceTuple.f0);\n\t\tproperties.setProperty(\"group.id\", sourceTuple.f1);\n\t\tFlinkKafkaConsumer<String> source = new FlinkKafkaConsumer<>(sourceTuple.f2, new SimpleStringSchema(), properties);\n\t\treturn source;\n\t}",
"public void run(String... args) {\n final StreamsConfig config = kStreamConfig();\n final StreamsBuilder builder = new StreamsBuilder();\n\n // Simply read the stream\n final KStream<String, TwitterStatus> twitterStream = builder.stream(\n TWITTER_TOPIC,\n Consumed.with(stringSerde, twitterStatusSerde)\n );\n\n //Construct a state store to hold all the users in the store\n final KTable<String, TwitterUserInfo> usersTable = builder\n .table(\n USER_FEED,\n Consumed.with(stringSerde, twitterUserInfoSerde),\n Materialized.as(ALL_USERS)\n );\n\n // Print twitter stream to stdout\n twitterStream.print(Printed.toSysOut());\n\n // Feed the user-message topic\n twitterStream\n .mapValues(value -> new TwitterUserMessage(value.getUser().getScreenName(), value.getText()))\n .selectKey((key, value) -> value.getName())\n .to(USER_MESSAGE, Produced.with(stringSerde, twitterUserMessageSerde));\n\n //Feed the user store\n twitterStream\n .mapValues(value -> new TwitterUserInfo(value.getUser().getScreenName(), value.getUser().getProfileImageURL()))\n .selectKey((key, value) -> value.getName())\n .to(USER_FEED, Produced.with(stringSerde, twitterUserInfoSerde));\n\n //Join the tweet streams with our user state store to return a user with his tweets count\n\n KTable<String, Long> usersCount = twitterStream\n .groupBy((key, twitterStatus) -> twitterStatus.getUser().getScreenName(), Serialized.with(stringSerde, twitterStatusSerde))\n .count(Materialized.as(TWEET_PER_USER));\n\n final KStream<String, TwitterUserInfo> joinedStream = usersCount\n .toStream()\n .leftJoin(\n usersTable,\n (count, twitterUserInfo) -> {\n twitterUserInfo.setTweetCount(count);\n return twitterUserInfo;\n },\n Joined.with(stringSerde, longSerde, twitterUserInfoSerde)\n );\n\n joinedStream.to(USERS_TOPIC, Produced.with(stringSerde, twitterUserInfoSerde));\n\n streams = new KafkaStreams(builder.build(), config);\n\n // Clean local store between runs\n streams.cleanUp();\n\n // Start the topology\n streams.start();\n }",
"public IisLogsDataSource withStreams(List<String> streams) {\n this.streams = streams;\n return this;\n }",
"public void setNumStreams (int streamNum)\r\n {\r\n this.numStreams = streamNum;\r\n }",
"default Stream<E> stream() {\n return StreamSupport.stream(this.spliterator(), false);\n }",
"public static Settings get() {\n return INSTANCE;\n }",
"public static Stocks getInstance() {\r\n if (instance == null) {\r\n instance = new Stocks();\r\n }\r\n\r\n return instance;\r\n }",
"public static VideoChunkProviderFactory getInstance()\r\n {\r\n return ourInstance;\r\n }",
"@Test\n public void testGetStreams_2_2_12()\n throws IOException, ReaperException, OpenDataException, ClassNotFoundException, InterruptedException {\n CompositeData streamSession = makeCompositeData_2_2_12();\n\n // compare the test payload with an actual payload grabbed from a 2.1.20 ccm node\n URL url = Resources.getResource(\"repair-samples/stream-report-2-2-12.txt\");\n String ref = Resources.toString(url, Charsets.UTF_8);\n assertEquals(ref.replaceAll(\"\\\\s\", \"\"), streamSession.toString().replaceAll(\"\\\\s\", \"\"));\n\n // init the stream manager\n ICassandraManagementProxy proxy = (ICassandraManagementProxy) mock(\n Class.forName(\"io.cassandrareaper.management.jmx.JmxCassandraManagementProxy\"));\n\n AppContext cxt = new AppContext();\n cxt.config = TestRepairConfiguration.defaultConfig();\n cxt.managementConnectionFactory = mock(JmxManagementConnectionFactory.class);\n when(cxt.managementConnectionFactory.connectAny(Mockito.anyList())).thenReturn(proxy);\n HostConnectionCounters connectionCounters = mock(HostConnectionCounters.class);\n when(cxt.managementConnectionFactory.getHostConnectionCounters()).thenReturn(connectionCounters);\n when(connectionCounters.getSuccessfulConnections(any())).thenReturn(1);\n ClusterFacade clusterFacadeSpy = Mockito.spy(ClusterFacade.create(cxt));\n Mockito.doReturn(\"dc1\").when(clusterFacadeSpy).getDatacenter(any(), any());\n when(proxy.getCurrentStreams()).thenReturn(ImmutableSet.of(streamSession));\n\n // do the actual pullStreams() call, which should succeed\n List<StreamSession> result = StreamService\n .create(() -> clusterFacadeSpy)\n .listStreams(Node.builder().withHostname(\"127.0.0.1\").withCluster(Cluster.builder().withJmxPort(7199)\n .withSeedHosts(ImmutableSet.of(\"127.0.0.1\")).withName(\"test\").build()).build());\n\n verify(proxy, times(1)).getCurrentStreams();\n assertEquals(1, result.size());\n }",
"public static OpenflowSfcFlowProgrammer getInstance() {\n return instance;\n }",
"public static synchronized SettingsStore getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new SettingsStore();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public interface IStreamFactory{\n Closeable getStream(Query q);\n }",
"@Bean(\"kafkaProducerService\")\n\t@Scope(value = ConfigurableBeanFactory.SCOPE_SINGLETON)\n\tpublic KafkaProducerService getKafkaProducerService() {\n\t\treturn new KafkaProducerService();\n\t}",
"@Test\n public void testGetStreams_3_11_2()\n throws OpenDataException, IOException, ReaperException, ClassNotFoundException, InterruptedException {\n CompositeData streamSession = makeCompositeData_3_11_2();\n\n // compare the test payload with an actual payload grabbed from a 2.1.20 ccm node\n URL url = Resources.getResource(\"repair-samples/stream-report-3-11-2.txt\");\n String ref = Resources.toString(url, Charsets.UTF_8);\n assertEquals(ref.replaceAll(\"\\\\s\", \"\"), streamSession.toString().replaceAll(\"\\\\s\", \"\"));\n\n // init the stream manager\n ICassandraManagementProxy proxy = (ICassandraManagementProxy) mock(\n Class.forName(\"io.cassandrareaper.management.jmx.JmxCassandraManagementProxy\"));\n\n AppContext cxt = new AppContext();\n cxt.config = TestRepairConfiguration.defaultConfig();\n cxt.managementConnectionFactory = mock(JmxManagementConnectionFactory.class);\n when(cxt.managementConnectionFactory.connectAny(Mockito.anyList())).thenReturn(proxy);\n HostConnectionCounters connectionCounters = mock(HostConnectionCounters.class);\n when(cxt.managementConnectionFactory.getHostConnectionCounters()).thenReturn(connectionCounters);\n when(connectionCounters.getSuccessfulConnections(any())).thenReturn(1);\n ClusterFacade clusterFacadeSpy = Mockito.spy(ClusterFacade.create(cxt));\n Mockito.doReturn(\"dc1\").when(clusterFacadeSpy).getDatacenter(any(), any());\n when(proxy.getCurrentStreams()).thenReturn(ImmutableSet.of(streamSession));\n\n // do the actual pullStreams() call, which should succeed\n List<StreamSession> result = StreamService\n .create(() -> clusterFacadeSpy)\n .listStreams(Node.builder().withHostname(\"127.0.0.1\").withCluster(Cluster.builder().withJmxPort(7199)\n .withSeedHosts(ImmutableSet.of(\"127.0.0.1\")).withName(\"test\").build()).build());\n\n verify(proxy, times(1)).getCurrentStreams();\n assertEquals(1, result.size());\n }",
"public static synchronized StitchObjectMapper getInstance() {\n if (singleton != null) {\n return singleton;\n }\n singleton = new StitchObjectMapper();\n return singleton;\n }",
"public static FactoryWriter getInstance() {\n return FactoryWriterHolder.INSTANCE;\n }",
"protected Stream<T> getDataStream() {\n if (nonNull(asyncData)) {\n if (ThreadLocalUtils.isEnableStreamLazy()) {\n return StreamSupport.stream(() ->\n Spliterators.spliterator(getAsyncData(), 0), 0, false);\n } else {\n return getAsyncData().stream();\n }\n }\n this.updateStream();\n return (isNull(dataStream) || streamClosed()) ? dataStreamSupplier.get() : dataStream;\n }",
"public static synchronized SparkServer getInstance() {\n return getInstance(instance == null ? Runtime.LOCAL_CONTEXT : instance.getRuntime());\n }",
"public static Log getLoggerDev() {\r\n Log l = null;\r\n if (isRunning()) {\r\n l = getInstance().getLogDev();\r\n }\r\n return l;\r\n }",
"public Writer get_log_stream() {\r\n return stream;\r\n }",
"public interface StreamManagersService {\r\n \r\n /**\r\n * @return all the stream managers\r\n */\r\n public List<StreamManager> getAllStreamManagers();\r\n \r\n /**\r\n * @param name - the name of the stream managers to look for\r\n * @return the stream manager found or null if it was not found\r\n */\r\n public StreamManager getStreamManagerByName(String name);\r\n \r\n /**\r\n * Adds a stream manager by using the given stream spec\r\n * \r\n * @param streamSpec the stream specs with which the stream manager is created\r\n */\r\n public void addStreamManager(StreamSpec streamSpec);\r\n \r\n /**\r\n * Removes the stream manager with the given name\r\n * \r\n * @param name - the name of the stream manager to remove\r\n */\r\n public void removeStreamManager(String name);\r\n\r\n /**\r\n * Performs a flush of the current stream managers\r\n */\r\n public void flushStreamSpecs();\r\n \r\n}",
"@ApplicationScoped\n @Produces\n public KafkaConsumer<MessageKey, MessageValue> createKafkaConsumer() {\n Properties props = (Properties) consumerProperties.clone();\n\n props.putIfAbsent(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, bootstrapServers);\n props.putIfAbsent(ConsumerConfig.GROUP_ID_CONFIG, UUID.randomUUID().toString());\n props.putIfAbsent(ConsumerConfig.ENABLE_AUTO_COMMIT_CONFIG, \"true\");\n props.putIfAbsent(ConsumerConfig.AUTO_COMMIT_INTERVAL_MS_CONFIG, \"1000\");\n props.putIfAbsent(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, \"earliest\");\n\n tryToConfigureSecurity(props);\n\n // Create the Kafka Consumer\n KafkaSqlKeyDeserializer keyDeserializer = new KafkaSqlKeyDeserializer();\n KafkaSqlValueDeserializer valueDeserializer = new KafkaSqlValueDeserializer();\n KafkaConsumer<MessageKey, MessageValue> consumer = new KafkaConsumer<>(props, keyDeserializer, valueDeserializer);\n return consumer;\n }",
"private TwitterSession getTwitterSession() {\n TwitterSession session = TwitterCore.getInstance().getSessionManager().getActiveSession();\n\n return session;\n }",
"public HashSet<EventDataStream> getDatastreams()\n\t{\n\t\treturn eventDataStreams;\n\t}",
"private static DataStream<String> getInputDataStream(StreamExecutionEnvironment env, String consumerGrp, String kafkaAddr) {\n FlinkKafkaConsumer<String> flinkKafkaConsumer =\n createInputMessageConsumer(inputTopic, kafkaAddr, zkAddress, consumerGrp);\n\n //String containing newline separated lines.\n DataStream<String> inputS = env.addSource(flinkKafkaConsumer);\n\n //Created stream from each line in the input stream\n DataStream<String> S3LogMsg = inputS.flatMap(new lineSplitter());\n\n //Converted each line to JSON\n DataStream<String> jsonS3LogMsgs = inputS.map(s3LogMsg -> {\n return S3AccessLog.toJson(s3LogMsg);\n });\n\n return jsonS3LogMsgs;\n }",
"public Collection<NamedStreamSymbol> getStreams() {\r\n final Collection<NamedStreamSymbol> allStreams = new ArrayList<>();\r\n allStreams.addAll(locallyDefinedStreams.resolveLocally(NamedStreamSymbol.KIND));\r\n \r\n allStreams.addAll(this.getEnclosingScope().resolveMany(\r\n this.getFullName(), NamedStreamSymbol.KIND));\r\n return allStreams.stream()\r\n .sorted(\r\n (e1, e2) -> {\r\n int i = Integer.compare(e1.getId(), e2.getId());\r\n if (i != 0)\r\n return i;\r\n \r\n return Boolean.compare(\r\n !e1.isExpected(),\r\n !e2.isExpected());\r\n })\r\n .collect(Collectors.toList());\r\n }",
"public static FeedRegistry getInstance() {\n if (instance == null) {\n instance = new FeedRegistry();\n }\n return instance;\n }",
"private void openStreams() {\n try {\n outputStream = new DataOutputStream(clientSocket.getOutputStream());\n inputStream = new DataInputStream(clientSocket.getInputStream());\n } catch (IOException e) {\n System.err.println(\"Could not open IO streams for the client.\");\n System.err.println(e.getMessage());\n }\n }",
"public static BrokerCompatibilityCheck create(final Map<String, Object> streamsConfig, final Set<String> topicNames) {\n if (topicNames.isEmpty()) {\n throw new KsqlException(\"Unable to check broker compatibility against a broker without any topics\");\n }\n final Map<String, Object> consumerConfigs = new StreamsConfig(streamsConfig)\n .getConsumerConfigs(\"__ksql_compatibility_check\", \"ksql_server\");\n\n // remove this otherwise it will try and instantiate the StreamsPartitionAssignor\n consumerConfigs.remove(\"partition.assignment.strategy\");\n final KafkaConsumer<String, String> consumer\n = new KafkaConsumer<>(consumerConfigs, new StringDeserializer(), new StringDeserializer());\n return new BrokerCompatibilityCheck(consumer, new TopicPartition(topicNames.iterator().next(), 0));\n }",
"public OutputStream getStream()\r\n {\r\n return mStream;\r\n }",
"@Test\n public void testGetStreams_2_1_20()\n throws OpenDataException, IOException, ReaperException, ClassNotFoundException, InterruptedException {\n CompositeData streamSession = makeCompositeData_2_1_20();\n\n // compare the test payload with an actual payload grabbed from a 2.1.20 ccm node\n URL url = Resources.getResource(\"repair-samples/stream-report-2-1-20.txt\");\n String ref = Resources.toString(url, Charsets.UTF_8);\n assertEquals(ref.replaceAll(\"\\\\s\", \"\"), streamSession.toString().replaceAll(\"\\\\s\", \"\"));\n\n // init the stream manager\n ICassandraManagementProxy proxy = (ICassandraManagementProxy) mock(\n Class.forName(\"io.cassandrareaper.management.jmx.JmxCassandraManagementProxy\"));\n\n AppContext cxt = new AppContext();\n cxt.config = TestRepairConfiguration.defaultConfig();\n cxt.managementConnectionFactory = mock(JmxManagementConnectionFactory.class);\n when(cxt.managementConnectionFactory.connectAny(Mockito.anyList())).thenReturn(proxy);\n HostConnectionCounters connectionCounters = mock(HostConnectionCounters.class);\n when(cxt.managementConnectionFactory.getHostConnectionCounters()).thenReturn(connectionCounters);\n when(connectionCounters.getSuccessfulConnections(any())).thenReturn(1);\n ClusterFacade clusterFacadeSpy = Mockito.spy(ClusterFacade.create(cxt));\n Mockito.doReturn(\"dc1\").when(clusterFacadeSpy).getDatacenter(any(), any());\n when(proxy.getCurrentStreams()).thenReturn(ImmutableSet.of(streamSession));\n\n // do the actual pullStreams() call, which should succeed\n List<StreamSession> result = StreamService\n .create(() -> clusterFacadeSpy)\n .listStreams(Node.builder().withHostname(\"127.0.0.1\").withCluster(Cluster.builder().withJmxPort(7199)\n .withSeedHosts(ImmutableSet.of(\"127.0.0.1\")).withName(\"test\").build()).build());\n\n verify(proxy, times(1)).getCurrentStreams();\n assertEquals(1, result.size());\n }",
"public ClientStreamListener delegate() {\n return clientStreamListener;\n }",
"Set<StreamSessionHandler> getSubscribers();",
"public final SSLSocketFactory getSocketFactory() {\n return spiImpl.engineGetSocketFactory();\n }",
"public MediaStream getMediaStream() {\n\t\treturn stream;\n\t}",
"public static StreamBuilder configure() {\n return new EventStreamBuilder();\n }",
"public static App getInstance() {\n return applicationInstance;\n }",
"public static HttpLogKafkaHandler getKafkaHandler(String kafkaType){\t\t\n\t\treturn _kafkaHandlerList.get(kafkaType);\n\t}"
]
| [
"0.6287918",
"0.6025271",
"0.5933615",
"0.58204085",
"0.570095",
"0.5518656",
"0.5513176",
"0.5511756",
"0.5510068",
"0.5509433",
"0.5387008",
"0.53581",
"0.5351819",
"0.5211856",
"0.5192922",
"0.5177175",
"0.5157643",
"0.51493543",
"0.51138926",
"0.5101792",
"0.5100915",
"0.50582063",
"0.49625945",
"0.49265555",
"0.4913494",
"0.48602426",
"0.48572278",
"0.48514706",
"0.48451704",
"0.47997975",
"0.47815102",
"0.4780164",
"0.47632545",
"0.47184366",
"0.4713538",
"0.47130558",
"0.4692294",
"0.4686422",
"0.46608508",
"0.4660191",
"0.46587017",
"0.46545202",
"0.4626096",
"0.46249273",
"0.46212307",
"0.46106687",
"0.4601344",
"0.4600171",
"0.45943674",
"0.4582329",
"0.45803386",
"0.45765242",
"0.45755175",
"0.45727727",
"0.45678693",
"0.4566328",
"0.45474973",
"0.4544919",
"0.4526971",
"0.45135424",
"0.45096952",
"0.45096847",
"0.45079607",
"0.45078084",
"0.44996676",
"0.44963914",
"0.44937456",
"0.44925934",
"0.44888434",
"0.44880036",
"0.44710976",
"0.44651052",
"0.44511506",
"0.44462714",
"0.44380683",
"0.44362277",
"0.44351894",
"0.44326344",
"0.44319367",
"0.44270357",
"0.44201225",
"0.44131336",
"0.44091952",
"0.44085574",
"0.4399542",
"0.4395823",
"0.4391467",
"0.43878233",
"0.43847853",
"0.43813884",
"0.43772382",
"0.43769848",
"0.43711382",
"0.4369822",
"0.43662822",
"0.43657094",
"0.43554404",
"0.43503106",
"0.43440703",
"0.43438458"
]
| 0.87328935 | 0 |
Get state store names. Child classes can optionally override this | public List<String> getStateStoreNames() {
return new ArrayList<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStoreName() {\r\n return storeName;\r\n }",
"public String getStoreName() {\n return storeName;\n }",
"public String getStoreName() {\r\n\t\treturn storeName;\r\n\t}",
"public String getStoreName() {\n\t\treturn storeName;\n\t}",
"public String getStoreName() {\n return (String) get(\"store_name\");\n }",
"public String getStore_name()\n {\n \treturn store_name;\n }",
"@Override\n\tpublic java.lang.String getStateName() {\n\t\treturn _state.getStateName();\n\t}",
"public ArrayList<String> getAllStoreNames() {\n ArrayList<String> names = new ArrayList<String>();\n SQLiteDatabase db = DBHelper.getWritableDatabase();\n String query = \"SELECT \"+DBHelper.STORES_SNAME+\" FROM \"+DBHelper.TABLE_STORES;\n Cursor cursor =db.rawQuery(query, null);\n int count =0;\n while(cursor.moveToNext()) {\n String name = cursor.getString(count);\n names.add(name);\n }\n return names;\n }",
"protected String getStore() {\n return store;\n }",
"public String getStateAsString() {\n return storeStateIntoString();\n }",
"public String[] getStateNames() {\n List<String> st = new ArrayList<>();\n for (AState s : states) {\n st.add(s.getName());\n }\n return st.toArray(new String[st.size()]);\n }",
"public String getStateName() {\n return name;\n }",
"public List<VaultStore> getStores() {\n\t\treturn stores;\n\t}",
"public ArrayList<Store> getAllStores() throws IllegalArgumentException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn this.storeMapper.findAllStore();\r\n\t}",
"private String getStoreName() {\n if (storeName == null) {\n storeName = System.getProperty(\"user.dir\")\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_DICT_STORE_NAME\n + \"dat\";\n }\n return storeName;\n }",
"@Override\n\tpublic String getName() {\n\t\treturn this.sessionStore.getName();\n\t}",
"public String getLocalStore() {\n return localStore;\n }",
"public List<StoreDto> getStores() {\n return tradingSystemFacade.getStores();\n }",
"public alluxio.proto.journal.KeyValue.RenameStoreEntry getRenameStore() {\n return renameStore_;\n }",
"public alluxio.proto.journal.KeyValue.RenameStoreEntry getRenameStore() {\n if (renameStoreBuilder_ == null) {\n return renameStore_;\n } else {\n return renameStoreBuilder_.getMessage();\n }\n }",
"public java.lang.String getStore_title() {\n return store_title;\n }",
"public List<String> getStates() {\n\t\treturn states;\n\t}",
"alluxio.proto.journal.KeyValue.RenameStoreEntry getRenameStore();",
"public String getStoreNoList() {\n return storeNoList;\n }",
"public List<String> getStates() {\r\n \t\treturn new ArrayList<String>(new TreeSet<String>(states.keySet()));\r\n \t}",
"javax.management.ObjectName getStateManager();",
"public alluxio.proto.journal.KeyValue.RenameStoreEntryOrBuilder getRenameStoreOrBuilder() {\n if (renameStoreBuilder_ != null) {\n return renameStoreBuilder_.getMessageOrBuilder();\n } else {\n return renameStore_;\n }\n }",
"@Override\n\tpublic List<Store> findAll() {\n\t\treturn storeRepository.findAll();\n\t}",
"public List<String> getStatesHistory() {\n return statesHistory;\n }",
"public alluxio.proto.journal.KeyValue.RenameStoreEntryOrBuilder getRenameStoreOrBuilder() {\n return renameStore_;\n }",
"@ApiModelProperty(value = \"Name of the store\")\n public String getStoreName() {\n return storeName;\n }",
"public java.lang.String getState() {\n return State;\n }",
"public void setStoreName(String storeName) {\r\n this.storeName = storeName;\r\n }",
"public DtxStore getStore() {\n return dtxStore;\n }",
"public void setStoreName(String storeName) {\n this.storeName = storeName;\n }",
"public String[] getNames() {\r\n\t\treturn this.context.getNames();\r\n\t}",
"public ArrayList<State> getStates(){\n\t\treturn this.states;\n\t}",
"public static PropertyStore getStore(final String key) {\n PropertyStore returnMe = _propStore.get(key);\n if (returnMe == null) {\n returnMe = new PropertyStore(new ScopedPreferenceStore(new InstanceScope(), key), new ScopedPreferenceStore(\n new ConfigurationScope(), key));\n _propStore.put(key, returnMe);\n }\n return returnMe;\n }",
"public IPreferenceStore getPreferenceStore(String name);",
"public java.lang.String getState() {\r\n return state;\r\n }",
"public java.lang.String getState() {\n return state;\n }",
"public java.lang.String getState() {\n return state;\n }",
"public String[] getDatabaseNames() {\n return context.databaseList();\n }",
"public EventStore getEventStore() {\n return eventStore;\n }",
"public T getStore() {\r\n\t\treturn store;\r\n\t}",
"public java.lang.String getState () {\n\t\treturn state;\n\t}",
"public List<String> getRepoNames() throws MetaStoreException {\n return gitSpoonMenuController.getRepoNames();\n }",
"public List<String> getDbNames() {\n return new ArrayList<String>(dbs.keySet());\n }",
"public TreeStore<SVGElementModel> getStore() {\n \t\treturn store;\n \t}",
"public Short getStoreCount() {\n return storeCount;\n }",
"public String getStateString()\r\n\t{\r\n\t\treturn stateString;\r\n\t}",
"public String getStateString()\n {\n return stateString;\n }",
"@Override\n\tpublic String getState() {\n\t\treturn this.state;\n\t}",
"List<AdditionalStateProvider> getAdditionalStateProviders();",
"public String getState() {\n\t\treturn State;\n\t}",
"public void setStoreName(String storeName) {\n\t\tthis.storeName = storeName;\n\t}",
"public Collection getESBManagerNames()\n {\n \treturn( getFrameworkXMLParser().getAttributesForEachOccurance( \"esbManager\", \"name\" ) );\n }",
"public KeyStore getKeyStore() {\n return keyStore;\n }",
"public Integer getStoreId() {\n return storeId;\n }",
"public Integer getStoreId() {\n return storeId;\n }",
"public String getState()\n\t{\n\t\treturn State;\n\t\t\n\t}",
"public ObservableList<String> getStates()\n {\n ArrayList<State> stateList = rentalModel.getStateList();\n ArrayList<String> stateListString = new ArrayList<>();\n for (int i = 0; i < stateList.size(); i++)\n {\n stateListString.add(stateList.get(i).toString());\n }\n statesList = FXCollections.observableArrayList(stateListString);\n return statesList;\n }",
"public String getState() {\n\t\treturn state.toString();\n\t}",
"public String toString() {\n\t\treturn store.toString();\n\t}",
"public Long getStoreId() {\n return storeId;\n }",
"public String getNewStateName() {\n\t\tstateCounter.getAndIncrement();\n\t\tString state = makeStateName(stateCounter.get(), false);\n\t\treturn state;\n\t}",
"StateManager getStateManager();",
"public Long getStoreId() {\r\n return storeId;\r\n }",
"public String getState()\r\n\t{\r\n\t\treturn state.getModelObjectAsString();\r\n\t}",
"public SecretStoresHistory secretStoresHistory() {\n return this.secretStoresHistory;\n }",
"@Override\n public String getState()\n {\n return state;\n }",
"public String getState() {\r\n\t\treturn state;\t\t\r\n\t}",
"public ArrayList<State<T>> getStatesList() { \r\n\t\treturn statesList;\r\n\t}",
"public abstract String getState();",
"public List<String> getQueryNames() throws SettingsException {\n\t\ttry {\n\t\t\tsearchPrefs.sync();\n\t\t\t\n\t\t\tString[] children = searchPrefs.childrenNames();\n\t\t\tArrayList<String> names = new ArrayList<String>(children.length);\n\t\t\tfor( String child : children ) {\n\t\t\t\tString name = searchPrefs.node(child).get(NAME_KEY, null);\n\t\t\t\tif( name != null )\n\t\t\t\t\tnames.add(name);\n\t\t\t\telse\n\t\t\t\t\t_log.warn(\"No name for search key: \" + child);\n\t\t\t}\n\t\t\t\n\t\t\treturn names;\n\t\t\t\n\t\t} catch( BackingStoreException e ) {\n\t\t\tfinal String MSG = \"Could not load queries from store.\";\n\t\t\t_log.error(MSG, e);\n\t\t\tthrow new SettingsException(MSG, e);\n\t\t}\n\t}",
"public String getState()\n {\n \treturn state;\n }",
"java.lang.String getState();",
"public String getStore_location()\n {\n \treturn store_location;\n }",
"public String getState() {\n\t\treturn state;\n\t}",
"public String getState(){\n return state;\n }",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}",
"@Override\n protected Map<String, Object> getBeansMap()\n {\n return TestUtility.getStateData();\n }",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\n\t{\n\t\treturn state;\n\t}",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"String getCurrentState() {\n return context.getString(allStates[currentIdx]);\n }",
"String getState();",
"String getState();",
"String getState();",
"public String getState() \n\t{\n\t\treturn state;\n\t}",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }"
]
| [
"0.6984133",
"0.69758934",
"0.6965713",
"0.69201565",
"0.68385726",
"0.6616983",
"0.66030264",
"0.65305626",
"0.64032364",
"0.63328266",
"0.6170036",
"0.615395",
"0.6117379",
"0.6080456",
"0.60738915",
"0.60463965",
"0.59984255",
"0.5953818",
"0.5910095",
"0.5894765",
"0.58599496",
"0.583065",
"0.5819655",
"0.5806041",
"0.57489353",
"0.57292026",
"0.5728369",
"0.5687675",
"0.56602573",
"0.5654001",
"0.56240207",
"0.55941767",
"0.55785227",
"0.5577722",
"0.5550006",
"0.5539621",
"0.54979265",
"0.5485935",
"0.54698044",
"0.54605114",
"0.54590845",
"0.54590845",
"0.543217",
"0.5429992",
"0.5423829",
"0.5412786",
"0.54108876",
"0.54096025",
"0.54080695",
"0.54047734",
"0.5386874",
"0.5386453",
"0.53798383",
"0.5369798",
"0.5362067",
"0.53574675",
"0.53477603",
"0.534749",
"0.5344354",
"0.5344354",
"0.5327949",
"0.5306532",
"0.52958316",
"0.52945906",
"0.5286433",
"0.52836347",
"0.5280445",
"0.52783394",
"0.5264505",
"0.52524793",
"0.52485067",
"0.5246711",
"0.52450323",
"0.5223545",
"0.52232486",
"0.5219192",
"0.5217336",
"0.5215214",
"0.5213612",
"0.52105135",
"0.5209669",
"0.5209669",
"0.5209669",
"0.51950747",
"0.51900095",
"0.51882905",
"0.51882905",
"0.5184876",
"0.51823443",
"0.51823443",
"0.51823443",
"0.51823443",
"0.5182192",
"0.51804614",
"0.51804614",
"0.51804614",
"0.51735836",
"0.5173548",
"0.5173548",
"0.5173548"
]
| 0.829553 | 0 |
Get a copy of the streams config that was used to build this streams app | public Map<String, Object> getStreamsConfig() {
// returns a copy of the original properties
return streamsConfig.originals();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StreamsConfigData getStreamsConfigData() {\n\t\treturn streamsConfigData;\n\t}",
"public static Properties configStream() {\r\n\t\tProperties props = new Properties();\r\n\t\tprops.put(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, KafkaConstants.getBootstrapServers());\r\n\t\tprops.put(ConsumerConfig.GROUP_ID_CONFIG, KafkaConstants.getGroupId());\r\n\t\tprops.put(StreamsConfig.APPLICATION_ID_CONFIG, KafkaConstants.getApplicationId());\r\n\t\tprops.put(StreamsConfig.DEFAULT_KEY_SERDE_CLASS_CONFIG, Serdes.String().getClass());\r\n\t\tprops.put(StreamsConfig.DEFAULT_VALUE_SERDE_CLASS_CONFIG, RentalCarEventDetailsSerde.class);\r\n\r\n\t\treturn props;\r\n\t}",
"public static Config config() {\n return LiveEventBusCore.get().config();\n }",
"public Object getConfig() {\n return config;\n }",
"public static Config getConfig(){\n return _Config;\n }",
"static Properties getConfig()\n {\n return(config);\n }",
"public ConfigCommon getConfig() {\n return config;\n }",
"public static Config getConfig() {\r\n\t\treturn cfg;\r\n\t}",
"public String getConfig() {\n\n return config;\n }",
"protected Config getConfig () {\n return this.conf;\n }",
"public String getConfig() {\n\t\treturn(config);\n\t}",
"public Config getConfig() {\n return config;\n }",
"public JsonObject getConfig() {\n return config;\n }",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"public C getConfig()\n {\n return config;\n }",
"private static ConfigSource config()\n {\n return CONFIG_MAPPER_FACTORY.newConfigSource()\n .set(\"type\", \"mailchimp\")\n .set(\"auth_method\", \"api_key\")\n .set(\"apikey\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"access_token\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"list_id\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"email_column\", \"email\")\n .set(\"fname_column\", \"fname\")\n .set(\"lname_column\", \"lname\");\n }",
"@Override\n public Observable<ServerConfigBean> getServerConfig() {\n\n return Observable.create(new Observable.OnSubscribe<ServerConfigBean>() {\n @Override\n public void call(Subscriber<? super ServerConfigBean> subscriber) {\n ServerConfigBean bean = new ServerConfigBean();\n bean.setSplashUrl(\"http://biggar.image.alimmdn.com/1464166847649\");\n subscriber.onNext(bean);\n }\n }\n\n );\n }",
"public static WaterfallConfig wconf() {\n\t\treturn uniqueInstance;\n\t}",
"public FabricCommonConfig getConfig() {\n if (null == config) {\n config = new FabricCommonConfig();\n }\n return config;\n }",
"EventWriterConfig getConfig();",
"public Config getConfig();",
"public ConfigSource getConfigSource() {\n return _configSource;\n }",
"public String getConfig();",
"public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}",
"public MyConfig getConfig() {\n return config;\n }",
"public String getUserConfig() {\n return userConfig;\n }",
"@ApiModelProperty(required = true, value = \"Configuration parameters for the connector.\")\n public Map<String, String> getConfig() {\n return config;\n }",
"public LocalServerConfig getConfig() {\n return serverConfig;\n }",
"protected final Dictionary<String, ?> getSiteConfiguration() {\n return config;\n }",
"public Object getConf() {\n return this.conf;\n }",
"ArrayList<ArrayList<String>> get_config(){\n return config_file.r_wartosci();\n }",
"public DDVConfig getCurrentConfig()\n {\n return this.config;\n }",
"public Map getJMSConnectorConfig()\n\t{\n\t\tMap params = getParams( \"jmsConnectorConfig\" );\n\t\t\n\t\treturn( params );\n\t}",
"public ConfigProvider getConfig() {\n return config;\n }",
"public WriterConfig getConfig() {\n return mConfig;\n }",
"public DeviceConfig getConfig() {\n return config;\n }",
"private Properties getAppSettings() {\n \t\t\n\t if(_appSettings == null){\n\t\t try {\n\t\t\tsynchronized(this){\t\t\n\t\t\t\tif(_appSettings == null) {\t\t\t\t\t\t\n\t\t\t\t\t_appSettings = new Properties();\t\n\t\t\t\t\t\n\t\t\t\t\t//look for an existing file this mmsi\n\t\t\t\t\t//if one doesn't exist, use a default file.\n\t\t\t\t\tString configFile = _configFile;\n\t\t\t\t\tFile file = new File(configFile);\n\t\t\t\t\tif(file.exists() == false){\n\t\t\t\t\t\tconfigFile = STORE_BASE + APPL_PROPS;\n\t\t\t\t\t}\n\t\t\t\t\tFileInputStream oFile = new FileInputStream(configFile);\n\t\t \t\tInputStream setupOutput = new DataInputStream(oFile);\t\t \t\t\t\t\n\t\t \t\t//InputStream propInput = new DataInputStream(this.getClass().getResourceAsStream(STORE_BASE + APP_SETTINGS));\t \t \t \t\t\t\n\t\t\t\t\t_appSettings.load(setupOutput);\t\n\t\t\t\t\t\n\t\t\t\t} \t \t\t\t\t\t\n\t\t\t}\t \t\t\t\n\t\t}catch(Exception oEx){\n\t\t\tAppLogger.error(oEx);\n\t\t}\t\t \t\t\t\t\t\n\t}\t\t\t \t\t\n\treturn _appSettings;\n }",
"public ISysConfig getSysConfig() {\n ISysConfig sc = new DefaultSysConfig(AOConstants.AO_CONFIG_NAME);\n\n // Fill in the current values.\n sc.putParameter(StringParameter.getInstance(ISPDataObject.VERSION_PROP, getVersion()));\n sc.putParameter(DefaultParameter.getInstance(AltairConstants.WAVELENGTH_PROP, getWavelength()));\n sc.putParameter(DefaultParameter.getInstance(AltairConstants.ADC_PROP, getAdc()));\n sc.putParameter(DefaultParameter.getInstance(AltairConstants.CASS_ROTATOR_PROP, getCassRotator()));\n sc.putParameter(DefaultParameter.getInstance(AltairConstants.ND_FILTER_PROP, getNdFilter()));\n // note: the values for field lens and guide star type are provided by the mode\n sc.putParameter(DefaultParameter.getInstance(AltairConstants.FIELD_LENSE_PROP, getFieldLens()));\n sc.putParameter(DefaultParameter.getInstance(AltairConstants.GUIDESTAR_TYPE_PROP, getGuideStarType()));\n return sc;\n }",
"public String configString() {\n return this.configString;\n }",
"RootConfig getConfig();",
"public PerWorldConfig getConfig(World world){\n \t\treturn config.get(world);\n \t}",
"public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}",
"public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }",
"public String getConfigToSave() {\n return configToSave;\n }",
"public String getConfigToSave() {\n return configToSave;\n }",
"public String getConfigToSave() {\n return configToSave;\n }",
"public String getConfigToSave() {\n return configToSave;\n }",
"com.google.container.v1.ConfigConnectorConfig getConfigConnectorConfig();",
"private Configuration getConfig() {\n final Configuration config = new Configuration();\n for (final Field field : getClass().getDeclaredFields()) {\n try {\n final Field configField = Configuration.class.getDeclaredField(field.getName());\n field.setAccessible(true);\n configField.setAccessible(true);\n\n final Object value = field.get(this);\n if (value != null) {\n configField.set(config, value);\n getLog().debug(\"using \" + field.getName() + \" = \" + value);\n }\n } catch (final NoSuchFieldException nsfe) {\n // ignored\n } catch (final Exception e) {\n getLog().warn(\"can't initialize attribute \" + field.getName());\n }\n\n }\n if (containerProperties != null) {\n final Properties props = new Properties();\n props.putAll(containerProperties);\n config.setProperties(props);\n }\n if (forceJspDevelopment) {\n if (config.getProperties() == null) {\n config.setProperties(new Properties());\n }\n config.getProperties().put(\"tomee.jsp-development\", \"true\");\n }\n return config;\n }",
"public ISysConfig getSysConfig() {\n ISysConfig sc = new DefaultSysConfig(SeqConfigNames.INSTRUMENT_CONFIG_NAME);\n\n // Fill in the current values.\n sc.putParameter(StringParameter.getInstance(ISPDataObject.VERSION_PROP, getVersion()));\n sc.putParameter(DefaultParameter.getInstance(DISPERSER_PROP.getName(), getDisperser()));\n sc.putParameter(DefaultParameter.getInstance(WAVELENGTH_PROP.getName(), getWavelength()));\n sc.putParameter(DefaultParameter.getInstance(EXPOSURE_TIME_PROP.getName(), getExposureTime()));\n sc.putParameter(DefaultParameter.getInstance(POS_ANGLE_PROP.getName(), getPosAngle()));\n sc.putParameter(DefaultParameter.getInstance(COADDS_PROP.getName(), getCoadds()));\n\n return sc;\n }",
"public HashMap<String, Object> getUserConfig() {\n return userConfig;\n }",
"@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}",
"public WebIceProperties getProperties()\n\t{\n\t\treturn config;\n\t}",
"@Override\n public RefSiteConfig getRefSiteConfig(){\n outObject = \"getRefSiteConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (RefSiteConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (RefSiteConfig) inObject;\n }",
"Collection<String> readConfigs();",
"public PictureConfig getConfig() {\n return config;\n }",
"GradoopFlinkConfig getConfig();",
"public KernelConfig getConfig()\n {\n Kernel.checkAccess();\n return config;\n }",
"public Object getReconstitutedConfig() {\r\n return reconstitutedConfig;\r\n }",
"public static Config getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tGson gson = new Gson();\r\n\t\t\ttry {\r\n\t\t\t\tinstance = gson.fromJson(FileUtil.getResourceContent(\"config.data\"), Config.class);\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(ex.getMessage());\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}",
"com.google.protobuf.Any getOldConfig();",
"public String getConfiguration(){\n\t\treturn this.config;\n\t}",
"private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }",
"public static Configuration getCurrentConfig() {\n return ConfigManager.getCurrentConfig();\n }",
"@Override\n\tpublic Properties getConfig() {\n\t\treturn null;\n\t}",
"public ComplexConfigDTO flatCopy() {\n \t\tfinal ComplexConfigDTO config = new ComplexConfigDTO();\n \t\tconfig.setPropertyType(getPropertyType());\n \t\tconfig.setPropertyName(getPropertyName());\n \t\tconfig.setDefiningScopePath(getDefiningScopePath());\n \t\tconfig.setPolymorph(isPolymorph());\n \t\tconfig.setVersion(getVersion());\n \t\tconfig.setParentVersion(getParentVersion());\n \t\tconfig.setParentScopeName(getParentScopeName());\n \t\tconfig.setClassVersion(getClassVersion());\n \t\tconfig.setNulled(isNulled());\n \t\treturn config;\n \t}",
"public MinaConfiguration copy() {\n try {\n return (MinaConfiguration) clone();\n } catch (CloneNotSupportedException e) {\n throw new RuntimeCamelException(e);\n }\n }",
"public static StreamBuilder configure() {\n return new EventStreamBuilder();\n }",
"public static SPSConfig createSPSConfig() {\n return new SPSConfig();\n }",
"@Override\n public GwtApplicationConfiguration getConfig() {\n if (config == null) {\n config = new GwtApplicationConfiguration(true);\n }\n return config;\n // Fixed size application:\n //return new GwtApplicationConfiguration(480, 320);\n }",
"protected final Map<String, String> getConfiguration() {\r\n\t\treturn Collections.unmodifiableMap(configuration);\r\n\t}",
"private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n public final InternalConfigSite configSite() {\n return configSite;\n }",
"ConfigBlock getConfig();",
"protected StreamsApp() {\n this.streamsConfig = new KafkaStreamsConfig().fromConfig(config);\n this.rocksDbReporter = new RocksDbMetricsReporter(this);\n }",
"public Map getConfiguration() {\r\n\t\tMap config = (HashMap) getServlet().getServletContext().getAttribute(\r\n\t\t\t\tConstants.CONFIG);\r\n\t\t// so unit tests don't puke when nothing's been set\r\n\t\tif (config == null) {\r\n\t\t\treturn new HashMap();\r\n\t\t}\r\n\t\treturn config;\r\n\t}",
"com.google.cloud.videointelligence.v1p3beta1.StreamingShotChangeDetectionConfig getShotChangeDetectionConfig();",
"private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }",
"public ConfigContext getConfigContext() {\n\n return (ConfigContext)getSource();\n\n }",
"Map<String, String> getConfigProperties();",
"public static Map<String, Object> getAppConfig() throws IOException {\n Properties properties = PropertiesReader.loadProperties(new FileInputStream(\"src/main/resources/app.properties\"));\n\n String appPathValue = properties.getProperty(\"app.path\");\n appPathValue = System.getProperty(\"user.dir\")+\"/\"+appPathValue;\n\n String appWaitActivityValue = properties.getProperty(\"app.wait.activity\");\n\n appConfigMap.put(APP_PATH, appPathValue);\n appConfigMap.put(APP_WAIT_ACTIVITY, appWaitActivityValue);\n\n return appConfigMap;\n }",
"@Override\n public ConfigRepositoryConfig getConfigRepositoryConfig(){\n outObject = \"getConfigRepositoryConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (ConfigRepositoryConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (ConfigRepositoryConfig) inObject;\n }",
"public ComponentListConfig getConfig() {\n return CONFIG;\n }",
"public StreamConfigurationMap getConfiguration(String cameraId)\n throws CameraAccessException {\n CameraCharacteristics characteristics =\n mCameraManager.getCameraCharacteristics(cameraId);\n\n return characteristics.get(\n CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP);\n }",
"@Override\n public PlayerConfig getPlayerConfig(){\n outObject = \"getPlayerConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (PlayerConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (PlayerConfig) inObject;\n }",
"public List<TemplatorConfig> getConfig() {\n return cfg;\n }",
"public abstract String getConfig();",
"public String getConfiguration() {\n return configuration;\n }",
"@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }",
"public Properties getKafkaConsumerConfig() {\n if (instanceSubscriber.isResolvable()) {\n return instanceSubscriber.get().getKafkaConsumerConfig();\n }\n Properties consumerConfig = getDefaultConsumerConfig();\n if (instanceConsumer.isResolvable()) {\n consumerConfig.putAll(instanceConsumer.get());\n }\n return consumerConfig;\n }",
"public static YamlConfiguration copy(String name){\r\n\t\t\tif (!name.endsWith(\".yml\")) {\r\n\t\t\t\tname += \".yml\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tYamlConfiguration config = getConfig(name);\r\n\t\t\t\r\n\t\t\t//Does this config exist?\r\n\t\t\tif (config == null){\r\n\t\t\t\tconfig = YamlConfiguration.loadConfiguration(new File(plugin.getDataFolder()+ \"\"));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tInputStream defaultStream = plugin.getResource(name);\r\n\t\t\t//does the raw config exist?\r\n\t\t\tif (defaultStream != null){\r\n\t\t\t\t\t\r\n\t\t\t\t//laod the stream into a config\r\n\t\t\t\tYamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defaultStream);\r\n\t\t\t\t\t\r\n\t\t\t\t//add the defaults to the config\r\n\t\t\t\tconfig.addDefaults(defConfig);\r\n\t\t\t\t\t\r\n\t\t\t\t//save the config to disk\r\n\t\t\t\tsaveConfig(name, defConfig);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn config;\r\n\t\t}",
"public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}",
"public ConfigurationNode getConfig() {\n return this.configManager.getConfig();\n }",
"WxMpConfigStorage getWxMpConfigStorage(String appId);",
"public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }",
"public void buildTwitterBaseConfiguration() {\n ConfigurationBuilder configurationBuilder = new ConfigurationBuilder();\n configurationBuilder\n .setOAuthConsumerKey(getBaseContext().getString(R.string.consumer_key))\n .setOAuthConsumerSecret(getBaseContext().getString(R.string.consumer_secret))\n .setOAuthAccessToken(getBaseContext().getString(R.string.access_token))\n .setOAuthAccessTokenSecret(getBaseContext().getString(R.string.access_token_secret));\n\n Configuration configuration = configurationBuilder.build();\n\n twitterStreamFactory = new TwitterStreamFactory(configuration);\n }",
"public String getStringConfiguration()\r\n\t{\r\n\t\treturn config;\r\n\t}",
"public static ConfigFileProperties getInstance() {\n return ConfigFilePropertiesHolder.INSTANCE;\n }",
"Observable<Config> observable();",
"private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }"
]
| [
"0.7053496",
"0.67315036",
"0.62010634",
"0.614772",
"0.60663503",
"0.6000858",
"0.5951627",
"0.5949124",
"0.58586186",
"0.5848708",
"0.58337766",
"0.573369",
"0.5725527",
"0.5707312",
"0.56872135",
"0.565466",
"0.565196",
"0.5599419",
"0.5573798",
"0.5564293",
"0.55592525",
"0.5542989",
"0.55021846",
"0.5488603",
"0.54546213",
"0.5445303",
"0.54401135",
"0.543746",
"0.54274863",
"0.5423607",
"0.5405359",
"0.538644",
"0.53805286",
"0.5376914",
"0.5376099",
"0.5375076",
"0.53707623",
"0.5354597",
"0.5337245",
"0.533257",
"0.5327891",
"0.5321342",
"0.53213245",
"0.5318969",
"0.5318969",
"0.5318969",
"0.5318969",
"0.5315353",
"0.53106576",
"0.53041613",
"0.5291758",
"0.5279347",
"0.52731407",
"0.5267288",
"0.52649844",
"0.5263206",
"0.5258029",
"0.52543825",
"0.52543604",
"0.5253976",
"0.52536446",
"0.5249213",
"0.52213335",
"0.5218132",
"0.5217105",
"0.5213503",
"0.52072096",
"0.5207206",
"0.51973796",
"0.5196314",
"0.51829934",
"0.51818347",
"0.5173893",
"0.5167542",
"0.5166626",
"0.5145946",
"0.5140497",
"0.51382023",
"0.5134584",
"0.5133604",
"0.512471",
"0.51171243",
"0.5110296",
"0.5101686",
"0.50993633",
"0.5089631",
"0.50817525",
"0.50795794",
"0.50737584",
"0.5073328",
"0.506562",
"0.5063246",
"0.506158",
"0.50608546",
"0.5046816",
"0.50437295",
"0.50305045",
"0.50259566",
"0.5023813",
"0.50193965"
]
| 0.78420156 | 0 |
This Overridden Method is called when a new DatabaseHelper is made, and what it does is it creates a new Table with the Constants that we specified as the Table Name and its Columns | @Override
public void onCreate(SQLiteDatabase db)
{
/* For the Primary Key AUTOINCREMENT for the First Column to add 1 to the Primary Key Value
* as a Row is added. The execSQL Method simply executes this query on the Database
*/
db.execSQL(
"CREATE TABLE " + TABLE_NAME
+ "("
+ COL1 + " INTEGER PRIMARY KEY AUTOINCREMENT,"
+ COL2 + " TEXT,"
+ COL3 + " TEXT,"
+ COL4 + " TEXT,"
+ COL5 + " TEXT,"
+ COL6 + " INTEGER,"
+ COL7 + " TEXT,"
+ COL8 + " INTEGER" +
")");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onCreate(SQLiteDatabase db) {\n new Tables(db).makeContactTable();\n new Tables(db).makeTalkTable();\n new Tables(db).makeConferenceTable();\n new Tables(db).makeNotificationTable();\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource connectionSource) {\n\t\ttry {\n\t\t\tLog.i(DatabaseHelper.class.getName(), \"onCreate\");\n\t\t\tTableUtils.createTable(connectionSource, Place.class);\n\t\t\tTableUtils.createTable(connectionSource, Lock.class);\n\t\t\tTableUtils.createTable(connectionSource, User.class);\n\t\t\tTableUtils.createTable(connectionSource, Locator.class);\n\t\t} catch (SQLException e) {\n\t\t\tLog.e(DatabaseHelper.class.getName(), \"Can't create database\", e);\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\"CREATE TABLE \" + TABLE_NAME + \" (\" +\n COLUMN_ID + \" TEXT, \" +\n COLUMN_NAME + \" TEXT, \" +\n COLUMN_TYPE + \" TEXT, \" +\n COLUMN_ACTIVE + \" TEXT, \" +\n COLUMN_IMAGE + \" TEXT);\");\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n\n db.execSQL(CategoryTable.getCreateTableSqlString());\n db.execSQL(ReminderTable.getCreateTableSqlString());\n }",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n sqLiteDatabase.execSQL(\"create table \" + TABLE_NAME + \" (\" + COL_NAME + \" varchar(30), \" + COL_MOBILE + \" long(10) , \" + COL_PASSWORD + \" varchar(15), \" + COL_STATE + \" varchar(20),\" + COL_EMAIL + \" varchar(35) primary key);\");\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n\n db.execSQL(CREATE_TABLE);\n Log.d(\"TAG\",\"DATABASE TABLE1 CREATED\");\n\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n // Create the table.\n db.execSQL(SQL_CREATE);\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource connectionSource) {\n\t\tthis.connectionSource = connectionSource;\n\t\tcreateTable();\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(CREATE_TABLE);\n }",
"@Override\r\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\tdb.execSQL(\"CREATE TABLE \" + DATABASE_TABLE + \" (\" +\r\n\t\t\tKEY_APP_ID + \" TEXT PRIMARY KEY , \" + \r\n\t\t\tKEY_APP_NAME + \" TEXT NOT NULL , \" +\r\n\t\t\tKEY_STATUS + \" TEXT NOT NULL);\"\r\n\t\t\t);\r\n\t\t\tLog.e(\"table created as\", (\"CREATE TABLE \" + DATABASE_TABLE + \" (\" +\r\n\t\t\tKEY_APP_ID + \" TEXT PRIMARY KEY , \" + \r\n\t\t\tKEY_APP_NAME + \" TEXT NOT NULL , \" +\r\n\t\t\tKEY_STATUS + \" TEXT NOT NULL);\"));\r\n\t\t}",
"@Override\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\ttry {\n\t\t\t\tdb.execSQL(TABLE_CREATE);\n\t\t\t} catch (SQLException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}",
"public void createTable(){\r\n String tableStudent = \"CREATE TABLE tableStudent (\"+\r\n \"studentId INT primary key,\"+\"studentName TEXT,\"+\r\n \"className TEXT)\";\r\n db.execSQL(tableStudent);\r\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tcreateTables(database);\n\t}",
"private void CreatTable() {\n String sql = \"CREATE TABLE IF NOT EXISTS \" + TABLE_NAME\n + \" (name varchar(30) primary key,password varchar(30));\";\n try{\n db.execSQL(sql);\n }catch(SQLException ex){}\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase database) {\n\t\tAppDBTableCreation.onCreate(database);\n\t}",
"@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tcreateDataTable(db);\r\n\t\tcreateTableNote(db);\r\n\t}",
"private void createTables() {\n\n\t\tAutoDao.createTable(db, true);\n\t\tAutoKepDao.createTable(db, true);\n\t\tMunkaDao.createTable(db, true);\n\t\tMunkaEszkozDao.createTable(db, true);\n\t\tMunkaKepDao.createTable(db, true);\n\t\tMunkaTipusDao.createTable(db, true);\n\t\tPartnerDao.createTable(db, true);\n\t\tPartnerKepDao.createTable(db, true);\n\t\tProfilKepDao.createTable(db, true);\n\t\tSoforDao.createTable(db, true);\n\t\tTelephelyDao.createTable(db, true);\n\t\tPushMessageDao.createTable(db, true);\n\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase sdb) {\n\t\tsdb.execSQL(CREATE_QUERY);\n\t\tLog.d(\"DB ops: \", \"Table Created \");\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\ttry {\n\t\t\tString createTable = \"CREATE TABLE \" + TABLE_NAME + \" (_id INTEGER PRIMARY KEY AUTOINCREMENT, content VARCHAR(1000), date DATETIME DEFAULT CURRENT_TIMESTAMP)\";\n\t\t\tdb.execSQL(createTable);\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n public void createTable() {\n String sql = \"create table \" + TABLE_NAME + \"(\";\r\n sql += ID + \" INTEGER primary key,\";\r\n sql += NAME + \" VARCHAR(50),\";\r\n sql += LON + \" FLOAT(10,6),\";\r\n sql += LAT + \" FLOAT(10,6)\";\r\n sql += \")\";\r\n database.execSQL(sql);\r\n }",
"public interface TableCreator {\n\t\tpublic void createTable(SQLiteDatabase db, String tableName);\n\t}",
"@Override\n\t\tpublic void onCreate(SQLiteDatabase database) {\n\t\t\tcreateTable(database);\n\n\t\t}",
"public void onCreate(SQLiteDatabase sqliteDB) \n \t\t{\n \t\t\tsqliteDB.execSQL(sqlStatement_CreateTable); // creates a table\n \t\t\tLog.e(\"pigtail\",\"CREATING TABLE\");\n \t\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n setCreateCourseTable(db);\n setCreateAssignmentTable(db);\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db, ConnectionSource source) {\n\n\t\ttry {\n\t\t\tTableUtils.createTable(source, Priority.class);\n\t\t\tTableUtils.createTable(source, Category.class);\n\t\t\tTableUtils.createTable(source, Task.class);\n\t\t} catch (SQLException ex) {\n\t\t\tLog.e(LOG, \"error creating tables\", ex);\n\t\t}\n\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString middleQueryCode = \"\";\n\n\t\tIncidentKey[] keys = IncidentKey.values();\n\t\tfor (int i = 0; i < keys.length; i++) {\n\t\t\tmiddleQueryCode += keys[i].getColumnName() + \" \"\n\t\t\t\t\t+ keys[i].getType();\n\t\t\tif (i + 1 < keys.length)\n\t\t\t\tmiddleQueryCode += \", \";\n\t\t\telse\n\t\t\t\tmiddleQueryCode += \" )\";\n\t\t}\n\t\tfor (String tableName : INCIDENT_TABLES) {\n\t\t\tString queryCode = \"CREATE TABLE \" + tableName + \" ( \"\n\t\t\t\t\t+ middleQueryCode;\n\t\t\tLog.d(\"DB QUERY\", queryCode);\n\t\t\tdb.execSQL(queryCode);\n\t\t}\n\t}",
"@Override\n public void onCreate(SQLiteDatabase database, ConnectionSource connectionSource) {\n try {\n TableUtils.createTable(connectionSource, PlaceType.class);\n\n String[] initialPlaceTypes = context.getResources().getStringArray(R.array.starting_types);\n List<PlaceType> list = new ArrayList<PlaceType>();\n\n for (int cont=0; cont < initialPlaceTypes.length; cont++) {\n PlaceType type = new PlaceType(initialPlaceTypes[cont]);\n list.add(type);\n }\n\n getPlaceTypeDAO().create(list);\n\n TableUtils.createTable(connectionSource, Place.class);\n TableUtils.createTable(connectionSource, Routine.class);\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n Log.e(DatabaseHelper.class.getName(), \"onCreate\", e);\n throw new RuntimeException(e);\n }\n }",
"@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\r\n\t\tString CREATE_TABLE = \"CREATE TABLE \" + TABLE_NAME + \"(\" + KEY_ID + \" INTEGER PRIMARY KEY, \" + KEY_NAME +\r\n\t\t\t\t\" TEXT,\" + KEY_EMAIL + \" TEXT UNIQUE,\" + KEY_UID + \" TEXT,\"\r\n\t\t\t\t+KEY_CREATED_AT + \" TEXT\" + \")\";\r\n\r\n\t\tdb.execSQL(CREATE_TABLE);\r\n\t\t\r\n\t\tLog.d(TAG, \"Database table created\");\r\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString[] tables = CREATE_TABLES.split(\";\");\n\t\tfor(String SQL : tables){\n\t\t db.execSQL(SQL);\n\t\t}\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n Log.d(TAG, \"onCreate: Creating Database\");\n db.execSQL(SQL_CREATE_TABLE); //This statement will execute anything in SQL.\n }",
"public void createDataTable() {\r\n Log.d(TAG, \"creating table\");\r\n String queryStr = \"\";\r\n String[] colNames = {Constants.COLUMN_NAME_ACC_X, Constants.COLUMN_NAME_ACC_Y, Constants.COLUMN_NAME_ACC_Z};\r\n queryStr += \"create table if not exists \" + Constants.TABLE_NAME;\r\n queryStr += \" ( id INTEGER PRIMARY KEY AUTOINCREMENT, \";\r\n for (int i = 1; i <= 50; i++) {\r\n for (int j = 0; j < 3; j++)\r\n queryStr += colNames[j] + \"_\" + i + \" real, \";\r\n }\r\n queryStr += Constants.COLUMN_NAME_ACTIVITY + \" text );\";\r\n execute(queryStr);\r\n Log.d(TAG, \"created table\");\r\n try {\r\n ContentValues values = new ContentValues();\r\n values.put(\"id\", 0);\r\n insertRowInTable(Constants.TABLE_NAME, values);\r\n Log.d(TAG,\"created hist table\");\r\n }catch (Exception e){\r\n Log.d(TAG,Constants.TABLE_NAME + \" table already exists\");\r\n }\r\n }",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n String sql = \"drop table \" + MelodyData.CreateDB._TABLENAME;\n sqLiteDatabase.execSQL(AccompanimentData.CreateDB._CREATE);\n sqLiteDatabase.execSQL(MelodyData.CreateDB._CREATE);\n }",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n // Patients Table.\n sqLiteDatabase.execSQL(DBContract.createTable(Patients.TABLE_NAME, Patients.CONFIG, \"\"));\n // Diagnosis Table.\n sqLiteDatabase.execSQL(DBContract.createTable(DiagnosisTable.TABLE_NAME, DiagnosisTable.CONFIG, \"\"));\n // Glycemic Data Table.\n sqLiteDatabase.execSQL(DBContract.createTable(GlycemicDataTable.TABLE_NAME, GlycemicDataTable.CONFIG, \"\"));\n // Coronary Risk Factor Table.\n sqLiteDatabase.execSQL(DBContract.createTable(CoronaryRiskFactorTable.TABLE_NAME, CoronaryRiskFactorTable.CONFIG, \"\"));\n\n /*\n Insertion Region.\n */\n ContentValues diagnosis = new ContentValues();\n diagnosis.put(DBContract.getName(DiagnosisTable.NAME), \"Type 1\");\n sqLiteDatabase.insert(DiagnosisTable.TABLE_NAME, \"\", diagnosis);\n diagnosis.put(DBContract.getName(DiagnosisTable.NAME), \"Type 2\");\n sqLiteDatabase.insert(DiagnosisTable.TABLE_NAME, \"\", diagnosis);\n diagnosis.put(DBContract.getName(DiagnosisTable.NAME), \"Gestational Type\");\n sqLiteDatabase.insert(DiagnosisTable.TABLE_NAME, \"\", diagnosis);\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString c_tableApp = \"create table if not exists \"+Contants.TABLE_NAME_APP+\"(id integer primary key autoincrement,packagNname varchar,classTableData text)\";\n\t\tString c_tableUser = \"create table if not exists \"+Contants.TABLE_NAME_USER+\"(id integer primary key autoincrement,classTableData text)\";\n\t\tdb.execSQL(c_tableApp);\n\t\tdb.execSQL(c_tableUser);\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db){\n //execute the SQL statements to actually create the specified tables\n db.execSQL(SQL_CREATE_PRODUCTS_TABLE);\n db.execSQL(SQL_CREATE_SUPPLIERS_TABLE);\n db.execSQL(SQL_CREATE_CATEGORIES_TABLE);\n }",
"@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(\"CREATE TABLE \"\r\n\t\t\t+ TABLE_NAME\r\n\t\t\t+ \" (_id INTEGER PRIMARY KEY AUTOINCREMENT, \"\r\n\t\t\t+ COL_PACKAGENAME + \" TEXT, \"\r\n\t\t\t+ COL_SWITCH_STATE + \" NUMERIC\"\r\n\t\t\t+ \");\");\r\n\t}",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n final String SQL_CREATE_MENU_TABLE = \"CREATE TABLE \" + GroceryDBContract.GroceryList.TABLE_NAME + \" (\" +\n GroceryDBContract.GroceryList.COLUMN_NAME_TITLE + \" TEXT NOT NULL, \" +\n GroceryDBContract.GroceryList.COLUMN_NAME_ENTRY_KEY + \" TEXT NOT NULL \" +\n \" )\";\n sqLiteDatabase.execSQL(SQL_CREATE_MENU_TABLE);\n }",
"@Override\r\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(CREATE_TABLE);\r\n db.execSQL(CREATE_TABLE1);\r\n\r\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n // String sql = String.format(\n // \"CREATE table $TABLE ( \" +\n // \"$C_ID INTEGER NOT NULL PRIMARY KEY,\" +\n // \"%C_CREATED_AT INTEGER, $C_TEXT TEXT, $C_USER TEXT)\",\n // ,\n // , \n // , , );\n String sql = context.getResources().getString(R.string.sql_create);\n db.execSQL(sql); // execute the sql\n Log.d(TAG, \"onCreate'd sql: \" + sql);\n }",
"@Override\n\t\t\tpublic void onCreate(SQLiteDatabase arg0) {\n\t\t\t\tString CREATE_TABLE = \"create table \" +TB_NAME +\n\t\t\t\t\t\"( \" +\n\t\t\t\t\tT_SID+\" integer,\" +\n\t\t\t\t\tT_PID+\" integer,\" +\n\t\t\t\t\tT_VALUE+\" text not null,\" +\n\t\t\t\t\t\")\";\n\t\t\t\targ0.execSQL(CREATE_TABLE);\n\t\t\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(\"create table \" + TABLE_NAME + \"(id integer primary key autoincrement,uname text,name text)\");\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(Race.createTableSql());\n Log.d(TAG, \"Created race data table\");\n }",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase){\n\n /*\n * The raw SQL statement to create the user favorite table.\n */\n final String SQL_CREATET_TABLE_USER_FAV =\n \"CREATE TABLE \" + UserFavoriteContract.UserFavEntry.TABLE_NAME + \" (\" +\n \"_id INTEGER PRIMARY KEY ASC, \" +\n UserFavoriteContract.UserFavEntry.COLUMN_MOVIE_ID + \" INTEGER, \" +\n UserFavoriteContract.UserFavEntry.COLUMN_POSTER_URL + \" TEXT, \" +\n UserFavoriteContract.UserFavEntry.COLUMN_INSERT_TIMESTAMP + \" INTEGER ); \";\n\n sqLiteDatabase.execSQL(SQL_CREATET_TABLE_USER_FAV);\n }",
"TABLE createTABLE();",
"public String createTable() {\n\n String statement = \"CREATE TABLE \" + tableName + \"( \";\n\n //go through INTEGER, FLOAT, TEXT columns\n Iterator iterator = Iterables.filter(columns.entrySet(), entry -> entry.getValue().getType() instanceof String).iterator();\n\n while (iterator.hasNext()) {\n Map.Entry<Element, FieldData> fieldDataEntry = (Map.Entry<Element, FieldData>) iterator.next();\n statement += fieldDataEntry.getValue().createColumn() + \",\";\n }\n\n return (new StringBuilder(statement).replace(statement.length() - 1, statement.length(), \"\").toString() + \")\").toUpperCase();\n }",
"@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tFormDAO.createTable(db);\r\n//\t\tCreate table ENumber\r\n\t\tENumberDAO.createTable(db);\r\n\t\t\r\n\r\n\t}",
"public static void createTable(SQLiteDatabase db, Class<?> clz) {\n// StringBuilder builder=new StringBuilder();\n// Field[] fields=clz.getDeclaredFields();\n// for (int i=0;i<fields.length;i++){\n// Field field=fields[i];\n// builder.append(getOneColumnStmt(field));\n// if (i!=fields.length-1)\n// builder.append(\",\");\n// }\n// String sql=\"create table \"+getTableName(clz)+\"(\"+builder+\")\";\n// db.execSQL(sql);\n ArrayList<String> stmts=getCreateTableStmt(clz);\n for (String stmt:stmts) {\n db.execSQL(stmt);\n }\n }",
"@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\t String createEmpTable=\"CREATE TABLE EMPLOYEE(Emp_Id TEXT,Active TEXT)\";\r\n\t db.execSQL(createEmpTable);\r\n\t}",
"@Override\n\t\tpublic void onCreate(SQLiteDatabase db) {\n\t\t\tdb.execSQL(\"CREATE TABLE \" + DATABASE_TABLE + \" (\" + KEY_ROWID\n\t\t\t\t\t+ \" INTEGER PRIMARY KEY AUTOINCREMENT, \" + KEY_NAME\n\t\t\t\t\t+ \" TEXT NOT NULL, \" + KEY_HOTNESS + \" TEXT NOT NULL);\");\n\t\t}",
"public void onCreate() {\r\n\t\tcreatorClass.onCreate(table);\r\n\t}",
"public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );",
"@Override\n public void onCreate(SQLiteDatabase database, ConnectionSource connectionSource) {\n\n try {\n TableUtils.createTableIfNotExists(connectionSource, MessageBoard.class);\n TableUtils.createTableIfNotExists(connectionSource, User.class);\n TableUtils.createTableIfNotExists(connectionSource, ChatServerBean.class);\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase){\n //Create Table\n sqLiteDatabase.execSQL(\"CREATE TABLE \"+ devicesContract.deviceEntry.tableName+ \"(\"\n + devicesContract.deviceEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + devicesContract.deviceEntry.ID + \" INTEGER, \"\n + devicesContract.deviceEntry.name + \" TEXT, \"\n + devicesContract.deviceEntry.address + \" TEXT, \"\n + devicesContract.deviceEntry.UUIDs + \" TEXT, \"\n + devicesContract.deviceEntry.contentDesc + \" TEXT, \"\n + devicesContract.deviceEntry.time + \" TEXT, \"\n + devicesContract.deviceEntry.bonded + \" TEXT, \"\n + devicesContract.deviceEntry.hashCode + \" TEXT, \"\n + devicesContract.deviceEntry.bloqueado + \" TEXT, \"\n + \" UNIQUE (\"+devicesContract.deviceEntry.address+\")\"\n + \")\");\n }",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n final String SQL_CREATE_WAITLIST_TABLE = \"CREATE TABLE \" + ScheduleContract.ScheduleEntry.TABLE_NAME + \" (\" +\n ScheduleContract.ScheduleEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n ScheduleContract.ScheduleEntry.COLUMN_MED_DESCRIPTION + \" TEXT NOT NULL, \" +\n ScheduleContract.ScheduleEntry.COLUMN_MED_INSTRUCTION + \" TEXT NOT NULL, \" +\n ScheduleContract.ScheduleEntry.COLUMN_USAGE_STATUS + \" TEXT NOT NULL, \" +\n ScheduleContract.ScheduleEntry.COLUMN_TIMESTAMP + \" TIMESTAMP DEFAULT CURRENT_TIMESTAMP\" +\n \");\";\n\n sqLiteDatabase.execSQL(SQL_CREATE_WAITLIST_TABLE);\n }",
"private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\"Create table \"+TABLE_NAME+\"(id INTEGER PRIMARY KEY AUTOINCREMENT,address_type VARCHAR,name VARCHAR,pincode VARCHAR,city VARCHAR,state VARCHAR,area VARCHAR,address VARCHAR,landmark VARCHAR,\"+mobile+\" VARCHAR,alternate_no VARCHAR);\");\n db.execSQL(\" Create table \"+CART_TABLE_NAME+\"(id INTEGER,count INTEGER,datetime VARCHAR,size VARCHAR)\");\n db.execSQL(\" Create table \"+WISHLIST_TABLE_NAME+\"(whishlist_id INTEGER)\");\n\n }",
"@Override\n public void onCreate(SQLiteDatabase database) {\n ShoulderWatchTable.onCreate(database);\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase sdb) {\n\t\tsdb.execSQL(CREATE_QUERY);\n\t\tLog.d(\"Database operations\", \"table created\");\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n\n try {\n db.execSQL(CREATE_TABLE);\n Toast.makeText(context,\"onCreate was called \", Toast.LENGTH_SHORT).show();\n }\n catch (SQLException e){\n\n Toast.makeText(context,\" \"+e, Toast.LENGTH_SHORT).show();\n }\n\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n String CREATE_TABLE = \"CREATE TABLE \" + TABLE_NAME + \"(\"\n + KEY_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" + TITLE + \" TEXT,\"\n + DETAILS + \" TEXT\" + \")\";\n db.execSQL(CREATE_TABLE);\n }",
"public void createTableMain() {\n db.execSQL(\"create table if not exists \" + MAIN_TABLE_NAME + \" (\"\n + KEY_ROWID_MAIN + \" integer primary key autoincrement, \"\n + KEY_TABLE_NAME_MAIN + \" string not null, \"\n + KEY_MAIN_LANGUAGE_1 + \" integer not null, \"\n + KEY_MAIN_LANGUAGE_2 + \" integer not null);\");\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db)\n\t{\n\t\t // TODO Auto-generated method stub\n String sql = \"CREATE TABLE \" + TABLE_NAME + \"(\"\n + \"uid INTEGER(10),\"\n + \"wifi INTEGER(2),\"\n + \"mobile INTEGER(2)\"\n + \")\";\n db.execSQL(sql);\n Log.e(\"db\",\"数据库创建成功\");\n\t}",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n StringBuffer ddl = new StringBuffer();\n\n\t ddl.append(\"CREATE TABLE \" + TABLE + \"( \");\n\t ddl.append(\"id INTEGER PRIMARY KEY AUTOINCREMENT, \");\n\t\tddl.append(\"search TEXT, timestamp DATETIME DEFAULT CURRENT_TIMESTAMP); \");\n\n\t ddl.append(\"CREATE UNIQUE INDEX ind_search \");\n\t ddl.append(\"ON \" + TABLE + \"(search)\");\n\n sqLiteDatabase.execSQL(ddl.toString());\n }",
"@Override\n //\n public void onCreate(SQLiteDatabase db)\n {\n db.execSQL(DATABASE_CREATE);\n }",
"private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}",
"private void onCreate() {\n\n\n if (!db.hasTable(DbTables.PLAYER)) {\n db.execSQL(CREATE_PLAYER_TABLE);\n }\n\n if (!db.hasTable(DbTables.SHIP)) {\n db.execSQL(CREATE_SHIP_TABLE);\n }\n\n if (!db.hasTable(DbTables.CARGO)) {\n db.execSQL(CREATE_CARGO_TABLE);\n }\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n String CREATE_LOCATIONS_Table = \"CREATE TABLE IF NOT EXISTS \" +\n TBL_locations + \"(\"\n + COL_ID + \"INTEGER PRIMARY KEY,\"\n + COL_place + \"TEXT,\"\n + COL_URL + \"TEXT\" + \")\";\n db.execSQL(CREATE_LOCATIONS_Table);\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString createWLanTrackingTable = \"CREATE TABLE WLAN_TRACK (\"\n\t\t\t\t+ \"UUID Text,\" + \"TIMESTAMP Text,\" + \"LATITUDE Real,\"\n\t\t\t\t+ \"LONGITUDE Real,\" + \"WLAN_SSID Text);\";\n\t\tdb.execSQL(createWLanTrackingTable);\n\n\t\tString createBTTrackingTable = \"CRATE TABLE BT_TRACK (\" + \"UUID Text, \"\n\t\t\t\t+ \"TIMESTAMP Text,\" + \"LATITUDE Real,\" + \"LONGITUDE Real, \"\n\t\t\t\t+ \"BT_ADRESS Text);\";\n\t\tdb.execSQL(createBTTrackingTable);\n\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n String queryCrearTablaDevices = \"CREATE TABLE \"+ConstanteDataBase.TABLE_DEVICES + \"(\"+\n ConstanteDataBase.TABLE_DEVICES_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"+\n ConstanteDataBase.TABLE_DEVICES_NAME + \" TEXT, \"+\n ConstanteDataBase.TABLE_DEVICES_CHANNEL_ID + \" INTEGER, \"+\n ConstanteDataBase.TABLE_DEVICES_PHOTO + \" INTEGER, \"+\n ConstanteDataBase.TABLE_DEVICES_STATE + \" INTEGER, \"+\n ConstanteDataBase.TABLE_DEVICES_ABOUT + \" TEXT \"+\n \")\";\n\n db.execSQL(queryCrearTablaDevices);\n\n }",
"@Override\n public String getCreate() {\n return \"CREATE TABLE IF NOT EXISTS StoreController (\\n\" +\n \"\\tstoreID INTEGER NOT NULL UNIQUE,\\n\" +\n \"\\tstoreShelves INTEGER NOT NULL,\\n\" +\n \"\\tnumberOfShelves INTEGER NOT NULL,\\n\" +\n \"\\tdiscountCounter INTEGER NOT NULL,\\n\" +\n \"\\ttypeCounter INTEGER NOT NULL,\\n\" +\n \"\\tcategoryCounter INTEGER NOT NULL,\\n\"+\n \"\\tFOREIGN KEY(\\\"storeID\\\") REFERENCES \\\"Branches\\\"(\\\"BID\\\"),\\n\" +\n \"\\tPRIMARY KEY(\\\"storeID\\\")\\n\" +\n \");\";\n }",
"public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }",
"@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(CREATETAB);\r\n\t}",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tString sql=\"create table table_notes \" +\n\t\t\t\t\"(\" +\n\t\t\t\t\"_id integer primary key autoincrement, \" +\n\t\t\t\t\"Title text, \" +\n\t\t\t\t\"Description text\" +\n\t\t\t\t\")\";\n\t\tdb.execSQL(sql);\n\t\t\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n String SQL_CREATE_ENTRIES =\n \"CREATE TABLE \" + HabitTrackerContract.HabitTrackerEntry.TABLE_NAME + \" (\" +\n HabitTrackerContract.HabitTrackerEntry._ID +\n \" INTEGER PRIMARY KEY AUTOINCREMENT,\" +\n HabitTrackerContract.HabitTrackerEntry.COLUMN_HT_EXERCISE\n + \" TEXT NOT NULL,\" +\n HabitTrackerContract.HabitTrackerEntry.COLUMN_HT_REPS\n + \" INTEGER NOT NULL,\" +\n HabitTrackerContract.HabitTrackerEntry.COLUMN_HT_NOTES\n + \" TEXT)\";\n db.execSQL(SQL_CREATE_ENTRIES);\n }",
"tbls createtbls();",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase)\n {\n sqLiteDatabase.execSQL(CREATE_TABLE_Address);\n sqLiteDatabase.execSQL(CREATE_TABLE_USERS);\n }",
"@Override\r\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(\"CREATE TABLE IF NOT EXISTS \" + TB_NAME + \"(\" + Tweet.ID\r\n\t\t\t\t+ \" integer primary key,\" + Tweet.USERID + \" varchar,\"\r\n\t\t\t\t+ Tweet.HEADIMAGE + \" varchar,\" + Tweet.USERNBME + \" varchar,\"\r\n\t\t\t\t+ Tweet.TIMESTAMP + \" varchar,\" + Tweet.FROM + \" varchar,\"\r\n\t\t\t\t+ Tweet.CONTENT + \" varchar,\" + Tweet.ZANNUM + \" varchar,\"\r\n\t\t\t\t+ Tweet.COMMENTNUM + \" varchar,\" + Tweet.FORWARDNUM\r\n\t\t\t\t+ \" varchar,\" + \"type varchar\" + \")\");\r\n\t\r\n\t\tLog.e(\"Database\", \"onCreate\");\r\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n String query = MessageFormat.format(\"CREATE TABLE {0} (\" +\n \"_id INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n \"{1}, \" +\n \"{2}, \" +\n \"{3}, \" +\n \"{4}, \" +\n \"{5} \" +\n \")\",\n CrimeDbSchema.CrimeTable.NAME,\n CrimeDbSchema.CrimeTable.Cols.UUID,\n CrimeDbSchema.CrimeTable.Cols.TITLE,\n CrimeDbSchema.CrimeTable.Cols.DATE,\n CrimeDbSchema.CrimeTable.Cols.SOLVED,\n CrimeDbSchema.CrimeTable.Cols.REQ_POLICE\n );\n db.execSQL(query);\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tLog.v(\"open onCreate\", \"Creating all the tables\");\n\n\t\ttry {\n\t\t\n\t\t\tdb.execSQL(CREATE_TABLE1);\n\t\t} catch (SQLiteException ex) {\n\t\t\tLog.v(\"open exception caught\", ex.getMessage());\n\n\t\t}\n\t}",
"DatabaseTable_DataSource(SQLiteDatabase db) {\n createIfNotExists(db);\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n String qryUser =\"CREATE TABLE \" + tblUser + \"(\" + UserID\n + \" INTEGER PRIMARY KEY AUTOICREMENT ,\"\n + UserName + \" TEXT,\" + Password + \" TEXT\" + \")\";\n\n //table create for table food\n String qryFood = \"CREATE TABLE \" + tblFood + \"(\" + FoodID\n + \" INTEGER PRIMARY KEY AUTOICREMENT ,\"\n + FoodName + \" TEXT,\" + FoodCategory + \" TEXT\" + \")\";\n\n //table create for table order\n// String qryOrder = \"CREATE TABLE \" + tblFood + \"(\" + FoodID\n// + \" INTEGER PRIMARY KEY AUTOICREMENT ,\"\n// + FoodName + \" TEXT,\" + FoodCategory + \" TEXT\" + \")\";\n\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n\n String SQL_CREATE_NEW_ITEMS_TABLE = \"CREATE TABLE \" + ListContract.ListContractEntry.ITEMS_TABLE_NAME +\" (\"\n + ListContract.ListContractEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + ListContract.ListContractEntry.COLUMN_ITEM_NAME + \" TEXT NOT NULL, \"\n + ListContract.ListContractEntry.COLUMN_ITEM_DATE + \" INTEGER);\";\n\n db.execSQL(SQL_CREATE_NEW_ITEMS_TABLE);\n\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\n\t\t//\r\n\t\tsetContentView(R.layout.db_manager);\r\n\t\t\r\n\t\t//\r\n\t\tsetListeners();\r\n\r\n\t\t// TEMP\r\n//\t\tmodify_table();\r\n//\t\tString[] colNames = getColNames();\r\n//\t\tList<String> colNames = getColNames();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void createTable(String tableName) {\n db.execSQL(\"create table if not exists '\" + tableName.replaceAll(\"\\\\s\", \"_\") + \"' (\"\n + KEY_ROWID + \" integer primary key autoincrement, \"\n + KEY_QUESTION + \" string not null, \"\n + KEY_ANSWER + \" string not null);\");\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(\"CREATE TABLE \" + DATABASE_TABLE1 + \"(\" + KEY_ID\n\t\t\t\t+ \" INTEGER PRIMARY KEY AUTOINCREMENT, \" + KEY_IMAGE + \" TEXT,\" + KEY_NAME\n\t\t\t\t+ \" TEXT NOT NULL, \" + KEY_DES + \" TEXT NOT NULL);\");\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\"CREATE TABLE \" + TABLE_NAME + \" (\"\n + col_id + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"\n + col_title + \" TEXT, \"\n + col_year + \" INTEGER, \"\n + col_rating + \" TEXT, \"\n + col_runtime + \" TEXT, \"\n + col_actors + \" TEXT, \"\n + col_plot + \" TEXT, \"\n + col_image + \" TEXT);\");\n }",
"protected void createInitialTables() throws SQLException {\n\t\n\t\t// create one table per type with the corresponding attributes\n\t\tfor (String type: entityType2attributes.keySet()) {\n\t\t\tcreateTableForEntityType(type);\n\t\t}\n\t\t\n\t\t// TODO indexes !\n\t\t\n\t}",
"public void onCreate(SQLiteDatabase db) {\n Cursor cursor = db.rawQuery(\n \"SELECT name FROM sqlite_master \" +\n \"WHERE type='table' AND name='\" +\n SymptomCheckinTable.TABLE_NAME + \"' \", null);\n try {\n if (cursor.getCount()==0) {\n db.execSQL(SymptomCheckinTable.DATABASE_CREATE);\n db.execSQL(MedicationIntakeTable.DATABASE_CREATE);\n }\n }\n finally {\n cursor.close();\n }\n }",
"private DBHelper(Context context){\n this.context= context;\n tablesClass = new TablesClass(context, Constants.DATABASE_NAME,null,Constants.DB_VERSION);\n\n }",
"@Override\n public void onCreate(SQLiteDatabase db){\n // define the database structure\n String createTableStatement = \"CREATE TABLE \" + USER_TABLE + \" (\" + COLUMN_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" + COLUMN_USER_NAME + \" TEXT, \" + COLUMN_USER_IMAGE +\" BLOB, \" + COLUMN_USER_MAC_ADDRESS + \" TEXT, \" + COLUMN_USER_BLUETOOTH_ADDRESS + \" TEXT);\";\n // create the database\n db.execSQL(createTableStatement);\n }",
"Table createTable();",
"public static void createTable(SQLiteDatabase db) {\n String sql = \"CREATE TABLE \" + TABLE_NAME + \"(\"\n + _ID + \" INTEGER PRIMARY KEY, \"\n + COL_DATE + \" DATETIME, \"\n + COL_RESULT + \" TEXT, \"\n + COL_UNIT + \" TEXT, \"\n + COL_ROW + \" TEXT\"\n + \");\";\n\n db.execSQL(sql);\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\"CREATE TABLE \" + NAME_VALUE_TABLE + \" (\" + _ID + \" INTEGER PRIMARY KEY,\"\n + NAME + \" TEXT,\" + VALUE + \" TEXT\"+ \");\");\n }",
"@Override\r\n public void onCreate(SQLiteDatabase db) {\n String SQL_CREATE_HABIT_TABLE = \"CREATE TABLE \" + HabitEntry.TABLE_NAME + \" (\"\r\n + HabitEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \"\r\n + HabitEntry.COLUMN_NAME + \" TEXT NOT NULL, \"\r\n + HabitEntry.COLUMN_FEEL + \" TEXT, \"\r\n + HabitEntry.COLUMN_FREQUENCY + \" INTEGER NOT NULL );\";\r\n\r\n // Execute the SQL statement\r\n db.execSQL(SQL_CREATE_HABIT_TABLE);\r\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n String createTableStatement = \"CREATE TABLE \" + DRINKS_TABLE + \"(\" + COLUMN_ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" + COLUMN_TITLE + \" TEXT, \" + COLUMN_PRICE + \" TEXT, \" + COLUMN_IMAGE + \" INT, \" + COLUMN_RANK + \" INT)\";\n\n db.execSQL(createTableStatement);\n Log.d(\"creating\",\"Creating DB\");\n }",
"@Override\n public void onCreate(SQLiteDatabase db) {\n String createTable = \"CREATE TABLE \" + TABLE_NAME + \" ( \"+adminId+\" INTEGER PRIMARY KEY AUTOINCREMENT,\" +username+\" VARCHAR, \"+password+\" VARCHAR)\";\n String createTable2 = \"CREATE TABLE \" + TABLE_NAME2 + \" ( \"+stockID+\" INTEGER PRIMARY KEY AUTOINCREMENT,\" +stockName+\" VARCHAR, \"+stockQuantity+\" INTEGER,\"+stockPrice+\" INTEGER,\"+ stockSellingPrice+\" INTEGER)\";\n db.execSQL(createTable);\n db.execSQL(createTable2);\n }",
"@Override\n\tpublic void onCreate(SQLiteDatabase db) {\n\t\tdb.execSQL(SQL_CREATE_ENTRIES);\n\t\tLog.i(\"into\",\"oncreate\");\n\t\t\t \n\t\tfor(int i=0; i<5; i++) {\n\t\t\tLog.i(\"into\",\"intialising tables\");\n\t\t\tContentValues values= new ContentValues();\n\t\t\tvalues.put(COLUMN_NAME_ID, i+1);\n\t\t\tvalues.put(COLUMN_NAME_PERIOD1, \"nil\");\n\t\t\tvalues.put(COLUMN_NAME_PERIOD4, \"nil\");\n\t\t\tvalues.put(COLUMN_NAME_PERIOD3, \"nil\");\n\t\t\tvalues.put(COLUMN_NAME_PERIOD2, \"nil\");\n\t\t\tdb.insert(TABLE_NAME_TIMETABLE, null, values);\n\t\t}\t\t\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\"create table IF NOT EXISTS Dealer(Dealer_ID varchar,Dealer_Name varchar,Dealer_Mail varchar,Dealer_Mobile varchar,Dealer_Address varchar)\");\n }",
"private void createTables() throws SQLException\r\n {\r\n createTableMenuItems();\r\n createTableOrdersWaiting();\r\n }",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n try {\n //Execute a single SQL statement that is NOT a SELECT or\n // any other SQL statement that returns data.\n\n if(Constant.ACCOUNT.equals(\"Teacher\")) {\n sqLiteDatabase.execSQL(CREATE_TABLE_TEACHER);\n Message.logMessages(\"onCreate :\", \"onCreate() called\");\n }\n else {\n sqLiteDatabase.execSQL(CREATE_TABLE_STUDENT);\n Message.logMessages(\"onCreate :\", \"onCreate() called\");\n }\n } catch (SQLException e) {\n Message.logMessages(\"Error in onCreate :\",\"\"+e);\n }\n }"
]
| [
"0.72858286",
"0.72176826",
"0.71444803",
"0.71382284",
"0.70305794",
"0.6985838",
"0.6983707",
"0.69832337",
"0.6982653",
"0.69706446",
"0.6959244",
"0.6955452",
"0.692007",
"0.6912334",
"0.68947047",
"0.6893313",
"0.6883962",
"0.68786955",
"0.68744993",
"0.6871878",
"0.6866298",
"0.68548787",
"0.6847662",
"0.68364173",
"0.6834059",
"0.682957",
"0.6813042",
"0.6799388",
"0.6791147",
"0.6787253",
"0.67868656",
"0.6783936",
"0.67742646",
"0.67704356",
"0.6766995",
"0.6764792",
"0.6753727",
"0.67499137",
"0.67474484",
"0.6742784",
"0.67389333",
"0.6735081",
"0.673383",
"0.67335296",
"0.6728645",
"0.6723444",
"0.67166877",
"0.67136276",
"0.67067707",
"0.6676524",
"0.6666552",
"0.66641074",
"0.6653839",
"0.6652601",
"0.66488206",
"0.6645863",
"0.6645416",
"0.6626686",
"0.6625532",
"0.66215867",
"0.6619485",
"0.6609081",
"0.66069293",
"0.6602962",
"0.66021615",
"0.65972906",
"0.6596997",
"0.6596565",
"0.65876746",
"0.6584677",
"0.65729576",
"0.6569632",
"0.65691686",
"0.65670437",
"0.6561841",
"0.6549957",
"0.65324616",
"0.65255964",
"0.65251637",
"0.65250206",
"0.65227085",
"0.65133345",
"0.65118456",
"0.65053695",
"0.6505345",
"0.6501315",
"0.6489698",
"0.6486461",
"0.6477335",
"0.647554",
"0.6471438",
"0.6468846",
"0.6468235",
"0.6462386",
"0.6460192",
"0.6455318",
"0.6441",
"0.64357775",
"0.643208",
"0.6430913"
]
| 0.6692485 | 49 |
This Method is used add a Movie to the Database | public void addData(Movie movieToAdd, View view)
{
/* Creating a DatabaseHelper Instance to access the getData Method in order to get the
* Title (Index 1 in terms of Columns) of all the saved Movies in the Database and to make
* sure that the Title of the Movie to be registered isn't equals to any of the existing movies
*/
DatabaseHelper databaseHelper = new DatabaseHelper(context);
Cursor c = databaseHelper.getData();
ArrayList<String> listLabels = new ArrayList<>();
while(c.moveToNext())
{
//get the value from the database in column 1
//then add it to the ArrayList
listLabels.add(c.getString(1));
}
// Error Message if the Title of the Movie to Add Already is found
if (listLabels.contains(movieToAdd.getTitle()))
Snackbar.make(view, "Movie Already has already been Registered !!!",Snackbar.LENGTH_SHORT)
.setBackgroundTint(context.getResources().getColor(R.color.transparent_yellow))
.setTextColor(context.getResources().getColor(R.color.grey_black))
.show();
else
{
int favorite = 0;
if (movieToAdd.isFavorite())
favorite = 1;
/* the execSQL Method simply executes this query on the Database, in this Query UPDATE is
* used to specify the Table Name to Update, SET specifies the Column name to Update in this
* case COL8 contains favorites and WHERE is the condition in this case it is to make sure
* that the Movie Title Matches with the given title
*/
this.getWritableDatabase().execSQL(
"INSERT INTO " + TABLE_NAME +
" (title, year, director, actor_actress, rating, review, favorite)" +
" values('"
+ movieToAdd.getTitle() + "', '" + movieToAdd.getYear() + "', '"
+ movieToAdd.getDirector() + "', '" + movieToAdd.getActorActress() + "', "
+ movieToAdd.getRating() + ", '" + movieToAdd.getReview() + "', " + favorite
+ ")");
Snackbar.make(view, "Successfully Registered !",Snackbar.LENGTH_SHORT)
.setBackgroundTint(context.getResources().getColor(R.color.transparent_yellow))
.setTextColor(context.getResources().getColor(R.color.grey_black))
.show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addMovieToDb() {\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(MovieColumns.ADULT,mMovie.getAdult());\n contentValues.put(MovieColumns.BACKDROP_PATH,mMovie.getBackdropPath());\n contentValues.put(MovieColumns.GENRE,Utils.arrayToString(mMovie.getGenreIds()));\n contentValues.put(MovieColumns.MOV_ID,mMovie.getMovieId());\n contentValues.put(MovieColumns.ORIGINAL_LANGUAGE,mMovie.getOrigLanguage());\n contentValues.put(MovieColumns.ORIGINAL_TITLE,mMovie.getOrigTitle());\n contentValues.put(MovieColumns.OVERVIEW,mMovie.getOverview());\n contentValues.put(MovieColumns.RELEASE_DATE,mMovie.getReleaseDate());\n contentValues.put(MovieColumns.POSTER_PATH,mMovie.getPosterPath());\n contentValues.put(MovieColumns.POPULARITY,mMovie.getPopularity());\n contentValues.put(MovieColumns.TITLE,mMovie.getTitle());\n contentValues.put(MovieColumns.VIDEO, mMovie.getVideo());\n contentValues.put(MovieColumns.VOTE_AVERAGE, mMovie.getVoteAverage());\n contentValues.put(MovieColumns.VOTE_COUNT, mMovie.getVoteCount());\n\n try {\n getActivity().getContentResolver().insert(MoviesProvider.Movies.MOVIES_URI, contentValues);\n Toast.makeText(getContext(),getString(R.string.movie_added_as_favorite),Toast.LENGTH_SHORT).show();\n }catch (Exception ex){\n if(ex instanceof SQLiteConstraintException){\n Toast.makeText(getContext(), getString(R.string.movie_already_added_as_favorite), Toast.LENGTH_SHORT).show();\n }else {\n Toast.makeText(getContext(), getString(R.string.movie_added_as_favorite_problem), Toast.LENGTH_SHORT).show();\n }\n }\n }",
"Movie addMovie(final Movie movie);",
"public String insertMovie(Movie movie)\r\n\t{\n\t\tthis.mongo.insert(movie);\r\n\t\treturn null;\r\n\t}",
"public void addMovie(ArrayList<Movie> movies)\n {\n String title = \"\";\n String director = \"\";\n String actor1 = \"\";\n String actor2 = \"\";\n String actor3 = \"\";\n int rating = 0;\n \n title = insertTitle();\n boolean checkResult = checkMovieRedundancyByTitle(movies, title);\n if (checkResult == true)\n return;\n \n director = insertDirector();\n actor1 = insertActor(1);\n actor2 = insertActor(2);\n if (actor2.length() != 0)\n actor3 = insertActor(3);\n \n rating = insertRating();\n \n Movie film = createNewMovie(title,director,actor1,actor2,actor3,rating);\n movies.add(film);\n displayOneFilm(film);\n System.out.println(\"\\n\\t\\t\\t >>>>> Yeayy, \" + title.toUpperCase() + \" successfully ADD to database! <<<<< \");\n }",
"public static boolean addMovie(SQLiteDatabase db, ContentValues cv){\n long _id;\n try{\n _id = db.insert(\"MOVIE\", null, cv);\n //Log.v(TAG, \"Movie Added with ID \"+_id);\n /*\n if(context != null){\n Toast.makeText(context, \"Movie added to Favorites\", Toast.LENGTH_SHORT).show();\n }\n */\n return true;\n }catch (Exception e){\n Log.e(TAG, e.getMessage());\n return false;\n }\n }",
"@Override\n\tpublic int addMovie(Movie movie) {\n\t\tfinal String sql=\"Insert into movie(MOVIE_ID,MOVIE_NAME,LANGUAGE,GENERE,TYPE,DURATION) values(\"+movie.getMovieId()+\",'\"+movie.getMovieName()+\"','\"+movie.getLanguage()+\"','\"+movie.getGenere()+\"','\"+movie.getType()+\"',\"+movie.getDuration()+\")\";\n\t\t\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tKeyHolder keyHolder= new GeneratedKeyHolder();\n\t\t\n\t\tjdbcTemplate.update(new PreparedStatementCreator(){\n\n\t\t\t@Override\n\t\t\tpublic PreparedStatement createPreparedStatement(Connection connection)\n\t\t\t\t\tthrows SQLException {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n\t\t\t}\n\t\t\t\n\t\t},keyHolder);\n\t\treturn keyHolder.getKey().intValue();\n\t}",
"public void insertMovie(int movieID)\n\t{\n\t\t\n\t\tPreparedStatement \tpstatement;\n\t\tint\t\t \t\t\tresult;\n\t\t\n\t\tpstatement = null;\n\t\t//resultSet = null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection connection = ConnectionManager.getConnection();\n\t\t\t\t\n\t\t\tpstatement = connection.prepareStatement(\"INSERT INTO Movies (movieID) VALUES (?)\");\n\n\t\t\t// instantiate parameters\n\t\t\tpstatement.clearParameters();\n\t\t\tpstatement.setInt(1, movieID);\n\t\t\t\n\t\t\tresult = pstatement.executeUpdate();\n\t\t\t\t\n\t\t\t//System.out.println(\"3\");\n\t\t\t\n\t\t\tpstatement.close(); \n\t\t\tconnection.close(); \n\t\t\n\t\t}\n\t\t\n\t\tcatch(SQLException sqle)\n\t\t{\n\t\t\t\n\t\t\tSystem.out.println(\"SQLState = \" + sqle.getSQLState() + \"\\n\" + sqle.getMessage());\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void addMovieDetails(MovieDetails movieDetails) {\n if (movieDetails != null) {\n if (!isMovieDetailsExists(movieDetails.getId())) {\n SQLiteDatabase sqLiteDatabase = this.getWritableDatabase();\n // Insert movie details data\n ContentValues values = insertMovieDetailsInCntnValues(movieDetails);\n sqLiteDatabase.insert(MoviesDetailsEntry.TABLE_NAME, null, values);\n // Insert genres data into genres table\n for (int i = 0; i < movieDetails.getGenres().size(); i++) {\n // If such genre doesn't exist, put into database\n if (!isGenreExist(movieDetails.getGenres().get(i).getGenreId())) {\n ContentValues genreValues = insertMovieGenresInCntnValues(movieDetails.getGenres().get(i));\n sqLiteDatabase.insert(GenreEntry.TABLE_NAME, null, genreValues);\n }\n // Insert genre_id and movie_id into movie_genre table\n ContentValues movieGenreValues = insertMovieGenreValues(movieDetails.getId(), movieDetails.getGenres().get(i).getGenreId());\n sqLiteDatabase.insert(MovieGenreEntry.TABLE_NAME, null, movieGenreValues);\n }\n sqLiteDatabase.close();\n }\n } else {\n throw new IllegalArgumentException(\"Passed movie object is null or already exist\");\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n Movies movie = new Movies(nameField.getText(),genreField.getText(),durationField.getText(),\n dateField.getText(),Integer.parseInt(seatsField.getText()),Integer.parseInt(priceField.getText()), imageField.getText());\n\n /**\n * Connexion et requete à la BDD\n */\n try{\n String query = \"INSERT INTO MOVIES(movie_name, movie_genre, movie_duration, movie_releasedate, movie_numberofseats, movie_price, image) VALUES (?,?,?,?,?,?,?)\";\n Connection con = DriverManager.getConnection(\"jdbc:h2:./default\");\n PreparedStatement pst = con.prepareStatement(query);\n pst.setString(1, movie.getName());\n pst.setString(2, movie.getGenre());\n pst.setString(3, movie.getDuration());\n pst.setString(4, movie.getReleaseDate());\n pst.setInt(5, movie.getNumberOfSeats());\n pst.setInt(6, movie.getPrice());\n pst.setString(7, movie.getImage());\n pst.executeUpdate();\n JOptionPane.showMessageDialog(null, \"Movie added\");\n\n //Redirection vers la page d'accueil des admins\n new AdminPage();\n dispose();\n\n\n }catch (Exception ex){\n JOptionPane.showMessageDialog(null, ex);\n\n }\n\n }",
"public void enterData(String name,int year,String director,String cast,int rating , String reviews , boolean fav){\n movieDB = getWritableDatabase();\n movieDB.execSQL(\"insert into \"+Db_Table+ \" (\" + MOVIE_NAME + \",\" + MOVIE_YEAR + \",\" + MOVIE_DIRECTOR + \",\" + MOVIE_CAST + \",\" + MOVIE_RATING + \",\"+MOVIE_REVIEWS+\",\"+FAVOURITES+\") values('\" +name+\"','\"+year+\"','\"+director+\"','\"+cast+\"','\"+rating+\"','\"+reviews+\"','\"+fav+\"');\");\n Toast.makeText(ctx, \"Movie Saved Successfully \", Toast.LENGTH_SHORT).show();\n Log.i(\"add\",\"done\");\n }",
"public long saveMovie(Movie movie) {\n ContentValues values = new ContentValues();\n values.put(MovieContract.COLUMN_NAME_ID, movie.id);\n values.put(MovieContract.COLUMN_NAME_TITLE, movie.title);\n values.put(MovieContract.COLUMN_NAME_YEAR, movie.year);\n values.put(MovieContract.COLUMN_NAME_POSTER, movie.poster);\n values.put(MovieContract.COLUMN_NAME_STARRED, movie.starred ? 1 : 0);\n\n // Insert the movie data and return the new row id\n return getWriteableDatabase().insert(MovieContract.TABLE_NAME, null, values);\n }",
"public Boolean insertMovieDetails(String title, int year, String director, String actors, int rating, String review, int fav) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues cv = new ContentValues();\n\n cv.put(\"title\", title);\n cv.put(\"year\", year);\n cv.put(\"director\", director);\n cv.put(\"actors\", actors);\n cv.put(\"rating\", rating);\n cv.put(\"review\", review);\n cv.put(\"fav\", fav);\n\n long result = db.insert(\"MovieDetails\", null, cv);\n if (result == -1) {\n return false;\n }else {\n return true;\n }\n }",
"public void addMovieToFavorites(Movie movie) {\n movie.setFavorite(true);\n isFavorite = true;\n //change the star from gray to yellow\n star.setImageResource(R.drawable.ic_grade_yellow_36px);\n //save the poster in local storage\n String imageName = saveMoviePoster();\n\n //load the necessary movie fields into the ContentValues object\n ContentValues values = new ContentValues();\n values.put(FavoriteMoviesContract.MovieEntry.MOVIEDB_ID, movie.getId());\n values.put(FavoriteMoviesContract.MovieEntry.AVERAGE_VOTE, movie.getVoteAverage());\n values.put(FavoriteMoviesContract.MovieEntry.ORIGINAL_TITLE, movie.getOriginalTitle());\n values.put(FavoriteMoviesContract.MovieEntry.RELEASE_YEAR, movie.getReleaseYear());\n values.put(FavoriteMoviesContract.MovieEntry.RUNTIME, movie.getRuntime());\n values.put(FavoriteMoviesContract.MovieEntry.SYNOPSIS, movie.getSynopsis());\n values.put(FavoriteMoviesContract.MovieEntry.POSTER_IMAGE_NAME, imageName);\n\n //insert the movie into the Favorites db\n Uri uri = getActivity().getContentResolver().\n insert(FavoriteMoviesContract.MovieEntry.CONTENT_URI, values);\n\n if (uri != null) {\n String successMessage = \"You have successfully added \" + movie.getOriginalTitle() +\n \" to the Favorites collection\";\n Toast.makeText(getActivity(), successMessage, Toast.LENGTH_LONG).show();\n }\n }",
"public void saveUserMovie(UserMovie userMovie);",
"private static void addMovie(){\n\t\tscanner = new Scanner(System.in);\n\t\t\n\t\tStringBuilder parameters = new StringBuilder();\n\t\tSystem.out.println(\"Enter movie name\");\n\t\tparameters.append(\"?name=\");\n\t\tparameters.append(Operations.scanner.nextLine().replaceAll(\" \",\"+\"));\n\t\tSystem.out.println(\"\\nEnter movie release year\");\n\t\tparameters.append(\"&year=\");\n\t\tparameters.append(Operations.scanner.nextLine().replaceAll(\" \",\"+\"));\n\t\tSystem.out.println(\"\\nEnter movie director\");\n\t\tparameters.append(\"&director=\");\n\t\tparameters.append(Operations.scanner.nextLine().replaceAll(\" \",\"+\"));\n\t\tSystem.out.println(\"\\nEnter movie production country\");\n\t\tparameters.append(\"&country=\");\n\t\tparameters.append(Operations.scanner.nextLine().replaceAll(\" \",\"+\"));\n\t\t\n\t\t\n\t\tString finalURL = \"http://localhost:8080/addMovie\"+parameters.toString();\n\t\t//System.out.println(finalURL);\n\t\t\n\t\t\n\t\ttry{\n\t\t\tURL url = new URL(finalURL);\n\t\t\tString rawJSONObject = getHTTPResponse(url);\n\t\t\tJSONObject addedMovie = new JSONObject(rawJSONObject);\n\t\t\tStringBuilder info = new StringBuilder();\n\t\t\t\n\t\t\tinfo.append(\"Movie: \");\n\t\t\tinfo.append(addedMovie.getString(\"name\"));\n\t\t\tinfo.append(\"/\");\n\t\t\tinfo.append(addedMovie.getInt(\"year\"));\n\t\t\tinfo.append(\"/\");\n\t\t\tinfo.append(addedMovie.getString(\"director\"));\n\t\t\tinfo.append(\"/\");\n\t\t\tinfo.append(addedMovie.getString(\"country\"));\n\t\t\tinfo.append(\" added successfully with ID \");\n\t\t\tinfo.append(addedMovie.getInt(\"id\"));\n\t\t\t\n\t\t\tSystem.out.println(info.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t}",
"public long addMovieToWatchlist(long movieId) {\n if (!isMovieInWatchlist(movieId)) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = insertMovieInWatchlist(movieId);\n long rowId = database.insert(WatchlistMoviesEntry.TABLE_NAME, null, values);\n database.close();\n return rowId;\n } else return 0;\n }",
"private void insertMoviesIntoDb(Movie[] moviesForDb, String urlString) {\n Uri contentUri;\n switch (urlString) {\n case Constants.STRING_URL_FAVORITE:\n contentUri = MovieContract.MovieEntry.CONTENT_URI_FAVORITE;\n break;\n default:\n return;\n }\n ContentValues[] movieValuesArr = new ContentValues[3];\n for (int i = 0; i < 3; i++) {\n int id = moviesForDb[i].getId();\n String title = moviesForDb[i].getTitle();\n String poster = moviesForDb[i].getImageUrl();\n String synopsis = moviesForDb[i].getSynopsis();\n double rating = moviesForDb[i].getRating();\n String releaseDate = moviesForDb[i].getReleaseDate();\n\n movieValuesArr[i] = new ContentValues();\n movieValuesArr[i].put(MovieContract.MovieEntry.COLUMN_MOVIE_ID, id);\n movieValuesArr[i].put(MovieContract.MovieEntry.COLUMN_TITLE, title);\n movieValuesArr[i].put(MovieContract.MovieEntry.COLUMN_POSTER, poster);\n movieValuesArr[i].put(MovieContract.MovieEntry.COLUMN_SYNOPSIS, synopsis);\n movieValuesArr[i].put(MovieContract.MovieEntry.COLUMN_RATING, rating);\n movieValuesArr[i].put(MovieContract.MovieEntry.COLUMN_RELEASE_DATE, releaseDate);\n }\n // Insert new movies data via a ContentResolver\n getContext().getContentResolver().bulkInsert(contentUri, movieValuesArr);\n }",
"public long insert(MovieUrl movieUrl){\n ContentValues initialValues = new ContentValues();\n initialValues.put(DbMediaContract.VideoColumns.TITLE_VIDEO, movieUrl.getTitleMovie());\n initialValues.put(DbMediaContract.VideoColumns.URL_VIDEO, movieUrl.getUrlMovie());\n return database.insert(DATABASE_TABLE, null, initialValues);\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 }",
"public void createCatMovies(CatMovie catMovie) throws DalException\n {\n // Attempts to connect to the database.\n try ( Connection con = dbCon.getConnection())\n {\n // SQL code\n String sql = \"INSERT INTO CatMovie (categoryId, movieId) VALUES (?,?);\";\n PreparedStatement ps = con.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n // Sets the Strings\n ps.setInt(1, catMovie.getCategoryId());\n ps.setInt(2, catMovie.getMovieId());\n\n // Attempts to update the database\n int affectedRows = ps.executeUpdate();\n if (affectedRows < 1)\n {\n throw new SQLException(\"Can't save category to movie\");\n }\n\n ResultSet rs = ps.getGeneratedKeys();\n if (rs.next())\n {\n catMovie.setId(rs.getInt(1));\n }\n } catch (SQLException ex)\n {\n Logger.getLogger(CatMovieDBDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public Film createFilm(Film film) {\n\t\tString user = \"student\";\n\t\tString pass = \"student\";\n\t\tConnection conn = null;\n\n\t\ttry {\n\t\t\tconn = DriverManager.getConnection(URL, user, pass);\n\t\t\tconn.setAutoCommit(false);\n\t\t\tString sql = \"INSERT INTO film (title, description, releaseYear, rating, language_id) \"\n\t\t\t\t\t+ \" VALUES (?,?,?,?)\";\n\t\t\tPreparedStatement stmt = conn.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);\n\t\t\tstmt.setString(1, film.getTitle());\n\t\t\tstmt.setString(2, film.getDescription());\n\t\t\tstmt.setInt(3, film.getReleaseYear());\n\t\t\tstmt.setString(4, film.getRating());\n\t\t\tstmt.setInt(5, film.getLanguage_id());\n//\t\t\tstmt.setInt(5, film.getRentalDuration());\n//\t\t\tstmt.setDouble(6, film.getRentalRate());\n//\t\t\tstmt.setInt(7, film.getLength());\n//\t\t\tstmt.setDouble(8, film.getReplacementCost());\n//\t\t\tstmt.setString(10, film.getSpecialFeatures());\n\n\t\t\tint updateCount = stmt.executeUpdate();\n\t\t\tif (updateCount == 1) {\n\t\t\t\tResultSet keys = stmt.getGeneratedKeys();\n\t\t\t\tif (keys.next()) {\n\t\t\t\t\tint newFilmID = keys.getInt(1);\n\t\t\t\t\tfilm.setId(newFilmID);\n\t\t\t\t\tif (film.getActors() != null && film.getActors().size() > 0) {\n\t\t\t\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\t\t\t\tsql = \"INSERT INTO film_actor (film_id, actor_id) VALUES (?,?)\";\n\t\t\t\t\t\tfor (Actor actor : film.getActors()) {\n\t\t\t\t\t\t\tstmt.setInt(1, actor.getId());\n\t\t\t\t\t\t\tstmt.setInt(2, newFilmID);\n\t\t\t\t\t\t\tupdateCount = stmt.executeUpdate();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfilm = null;\n\t\t\t}\n\t\t\tconn.commit();\n\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tif (conn != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconn.rollback();\n\t\t\t\t} catch (SQLException sqle2) {\n\t\t\t\t\tSystem.err.println(\"Error trying to rollback\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tthrow new RuntimeException(\"Error inserting film \" + film);\n\t\t}\n\n\t\treturn film;\n\t}",
"@Override\n\tpublic MovieBean addMovie(MovieBean bean) {\n\n\t\treturn dao.addMovie(bean);\n\t}",
"private long addMovie(String cp_id, String title, String status, Integer year, String quality, String tagline, String plot, String imdb, String runtime, String poster_original, String backdrop_original, ArrayList<String> genreStringArray) {\r\n\r\n // First, check if the location with this city name exists in the db\r\n Cursor cursor = mContext.getContentResolver().query(\r\n MovieContract.WantedEntry.CONTENT_URI,\r\n new String[]{MovieContract.WantedEntry.COLUMN_CP_ID},\r\n MovieContract.WantedEntry.COLUMN_CP_ID + \" = ?\",\r\n new String[]{cp_id},\r\n null);\r\n\r\n if (cursor.moveToFirst()) {\r\n\r\n int wantedMovieIdIndex = cursor.getColumnIndex(MovieContract.WantedEntry.COLUMN_CP_ID);\r\n Log.v(LOG_TAG, \"Found \" + title + \" in the database!\" );\r\n return cursor.getLong(wantedMovieIdIndex);\r\n } else {\r\n Log.v(LOG_TAG, \"Didn't find it in the database, inserting now!\");\r\n ContentValues wantedMovieValues = new ContentValues();\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_CP_ID, cp_id);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_TITLE, title);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_YEAR, year);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_STATUS, status);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_QUALITY, quality);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_RUNTIME, runtime);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_TAGLINE, tagline);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_PLOT, plot);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_IMDB, imdb);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_POSTER_ORIGINAL, poster_original);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_BACKDROP_ORIGINAL, backdrop_original);\r\n wantedMovieValues.put(MovieContract.WantedEntry.COLUMN_GENRES, Utility.convertArrayToString(genreStringArray));\r\n\r\n Uri wantedMovieInsertUri = mContext.getContentResolver()\r\n .insert(MovieContract.WantedEntry.CONTENT_URI, wantedMovieValues);\r\n\r\n Bitmap mIcon11 = null;\r\n String thumbnailFilename;\r\n String fullsizeFilename;\r\n if(poster_original != null) {\r\n try {\r\n InputStream in = new java.net.URL(poster_original).openStream();\r\n mIcon11 = BitmapFactory.decodeStream(in);\r\n Bitmap thumbnail = Bitmap.createScaledBitmap(mIcon11, 160, 240, false);\r\n thumbnailFilename = cp_id+\"_thumb\";\r\n fullsizeFilename = cp_id+\"_full\";\r\n String path = saveToInternalStorage(thumbnail, thumbnailFilename);\r\n String fullsizePath = saveToInternalStorage(mIcon11, fullsizeFilename);\r\n } catch (Exception e) {\r\n Log.e(\"Error\", e.getMessage());\r\n// e.printStackTrace();\r\n }\r\n }\r\n else{\r\n mIcon11 = BitmapFactory.decodeResource(mContext.getResources(),\r\n R.drawable.movie_placeholder);\r\n Bitmap thumbnail = Bitmap.createScaledBitmap(mIcon11, 160, 240, false);\r\n thumbnailFilename = cp_id+\"_thumb\";\r\n fullsizeFilename = cp_id+\"_full\";\r\n String thumbPath = saveToInternalStorage(thumbnail, thumbnailFilename);\r\n String fullsizePath = saveToInternalStorage(mIcon11, fullsizeFilename);\r\n }\r\n\r\n\r\n return ContentUris.parseId(wantedMovieInsertUri);\r\n }\r\n }",
"@POST\r\n\t@Path(\"/createMovie\")\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\t@Consumes(MediaType.APPLICATION_FORM_URLENCODED)\r\n\tpublic void newMovie(@FormParam(\"name\") String name, @FormParam(\"rate\") String rate,\r\n\t\t\t@FormParam(\"type\") String type, @FormParam(\"actor\") String actor, @FormParam(\"producer\") String producer,\r\n\t\t\t@FormParam(\"length\") String length, @FormParam(\"country\") String country,\r\n\t\t\t@FormParam(\"on_screen_date\") Date on_screen_date, @FormParam(\"language\") String language,\r\n\t\t\t@FormParam(\"file\") String file,\r\n\t\t\t@FormParam(\"description\") String description, @Context HttpServletResponse servletResponse,\r\n\t\t\t@Context HttpServletRequest request) throws IOException, ServletException {\r\n\t\tSystem.out.println(\"name : \" + name);\r\n\t\tSystem.out.println(\"rate : \" + rate);\r\n\t\tSystem.out.println(\"type : \" + type);\r\n\t\tSystem.out.println(\"actor : \" + actor);\r\n\t\tSystem.out.println(\"producer : \" + producer);\r\n\t\tSystem.out.println(\"length : \" + length);\r\n\t\tSystem.out.println(\"country : \" + country);\r\n\t\tSystem.out.println(\"on_screen_date\" + on_screen_date);\r\n\t\tSystem.out.println(\"language : \" + language);\r\n\t\tSystem.out.println(\"file : \" + file);\r\n\t\tSystem.out.println(\"description : \" + description);\r\n\r\n\t\t//collect data from Database\r\n\t Connection con;\r\n\t\tString driver = Constants.driver;\r\n\t\tString url = Constants.url;\r\n\t\tString user = Constants.user;\r\n\t\tString password = Constants.password;\r\n\r\n\t\t//begin adding\r\n\t\ttry {\r\n\t\t\t //Load driver\r\n\t\t\t Class.forName(driver);\r\n\t\t\t //Connect to the MySQL database! !\r\n\t\t\t con = DriverManager.getConnection(url,user,password);\r\n\r\n\t\t\t PreparedStatement ps=con.prepareStatement(\"insert into movie(name,rate,type,actor,producer,length,country,on_screen_date,language,image,description) values(?,?,?,?,?,?,?,?,?,?,?)\");\r\n\t\t\t //ps.setInt(1,4);\r\n\t\t\t ps.setString(1,name);\r\n\t\t\t ps.setInt(2, Integer.parseInt(rate));\r\n\t\t\t ps.setString(3, type);\r\n\t\t\t ps.setString(4, actor);\r\n\t\t\t ps.setString(5, producer);\r\n\t\t\t ps.setInt(6, Integer.parseInt(length));\r\n\t\t\t ps.setString(7, country);\r\n\t\t\t //SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\t\t ps.setDate(8,on_screen_date);\r\n\t\t\t ps.setString(9,language);\r\n\t\t\t ps.setString(10, file);\r\n\t\t\t ps.setString(11, description);\r\n\t\t\t ps.executeUpdate();\r\n\r\n\t\t\t con.close();\r\n\r\n\t //driver Exception & connection Exception\r\n\t\t}catch(ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"Sorry,can`t find the Driver!\"); \r\n\t\t\te.printStackTrace(); \r\n\t\t}catch(SQLException e) {\r\n\t\t\t e.printStackTrace(); \r\n\t\t}catch (Exception e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t}finally{\r\n\t\t\t//System.out.println(\"Success access to Database£¡£¡\");\r\n\t\t}\r\n\r\n\t\trequest.getRequestDispatcher(\"/WEB-INF/administration.html\").forward(request, servletResponse);\r\n\t}",
"@Override\n\tpublic Movie createMovie(Movie movie) throws MovieAlreadyExistsException {\n\t\tMovie existing;\n\t\ttry {\n\t\t\texisting = repository.findMovieByTitle(movie.getTitle());\n\t\t\tif(existing!=null){\n\t\t\t\tthrow new MovieAlreadyExistsException();\n\t\t\t}\n\t\t} catch (MovieNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\treturn repository.createMovie(movie);\n\t}",
"@PostMapping(\"/movies\")\n @Timed\n public ResponseEntity<Movie> createMovie(@RequestBody Movie movie) throws URISyntaxException {\n log.debug(\"REST request to save Movie : {}\", movie);\n if (movie.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(\"movie\", \"idexists\", \"A new movie cannot already have an ID\")).body(null);\n }\n Movie result = movieRepository.save(movie);\n return ResponseEntity.created(new URI(\"/api/movies/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"movie\", result.getId().toString()))\n .body(result);\n }",
"@GetMapping(\"/movieForm/{id}\") // This is Director ID\n public String addMovies(@PathVariable(\"id\") long id, Model model) {\n\n Director d = directorRepo.findOne(id);\n model.addAttribute(\"newDirector\", d);\n Movie m = new Movie();\n m.setDirector(d);\n model.addAttribute(\"newMovie\", m);\n// movieRepo.save(m); // save only director_id here, all other movie fields: nulls\n return \"movieForm\";\n }",
"@Override\n\tpublic void addFilm(com.dutproject.cinemaproject.model.bean.Film film) {\n\t\t\n\t}",
"public Movie save(Movie movie) {\n log.debug(\"Request to save Movie : {}\", movie);\n return movieRepository.save(movie);\n }",
"public void insertMovie(MovieInfo data) {\n\t\t\troot = insertMovie(data, this.root);\n\t\t}",
"@Override\n\tpublic int saveImage(Movie movie) {\n\t\tString str = uuid.toString();\n String id = str.substring(0, 8) + str.substring(9, 13) + str.substring(14, 18) + str.substring(19, 23) + str.substring(24);\n \n\t\tmovie.setId(id);\n\t\tmovie.setCreateData(new Date());\n\t\tint number = this.insert(\"Movie.insert\", movie);\n\t\treturn number;\n\t}",
"@Override\r\n\tpublic boolean addMovie(String actor1, String actor2, String movieName)\r\n\t{\r\n\t\tActor act1 = new Actor(actor1);\r\n\t\tActor act2 = new Actor(actor2);\r\n\t\t\r\n\t\tif(graph.containsVertex(act1) && graph.containsVertex(act2))\r\n\t\t{\r\n\t\t\tif(graph.containsEdge(act1,act2 ) == false)\r\n\t\t\t{\r\n\t\t\t\tgraph.addEdge(act1, act2, 1, movieName);\r\n\t\t\t\t\r\n\t\t\t\tMovieEdge movieTitle = graph.addEdge(act1, act2, 1, movieName);\r\n\r\n\t\t\t\tmovieTitles.add(movieTitle.getMovieName());\r\n\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void addContent(String title, Genre genre, String description, String trailer, int yearReleased,Double rating\n\t\t\t,Category category) {\n\t\tContent content = new Content(title, genre, description, trailer, yearReleased,rating, category);\n\t\tentityManager.persist(content);\n\t}",
"@POST\n public JsonMovie createUpdateOne(JsonMovie movie) {\n \tJsonMovie jmovie = movie;\n \tif (movie.getId() == null) {\n \t\tMovie m = new Movie();\n \t\tm.setTitle(movie.getTitle());\n \t\tm.setDescription(movie.getDescription());\n \t\tm.setReleasedate(movie.getReleaseDate());\n \t\tm.setLength(movie.getLength());\n \t\tm.setIscollector(movie.getIsCollector());\n \t\tm.setSupportBean(supportDAO.getSupport(movie.getSupportId()));\n \t\tm.setStorygenre(storygenreDAO.getStorygenre(movie.getGenreId()));\n \t\tmovieDao.saveMovie(m);\n\t \tjmovie.setId(m.getId());\n \t} else {\n \tMovie m = movieDao.getMovie(movie.getId());\n \t\tm.setTitle(movie.getTitle());\n \t\tm.setDescription(movie.getDescription());\n \t\tm.setReleasedate(movie.getReleaseDate());\n \t\tm.setLength(movie.getLength());\n \t\tm.setIscollector(movie.getIsCollector());\n \t\tm.setSupportBean(supportDAO.getSupport(movie.getSupportId()));\n \t\tm.setStorygenre(storygenreDAO.getStorygenre(movie.getGenreId()));\n \t\tmovieDao.updateMovie(m);\n \t}\n \treturn jmovie;\n }",
"public ResponseEntity<Movie> addMovie(Movie movie) {\n if (!movieRepository.existsById(movie.getId()))\n return new ResponseEntity<>(movieRepository.save(movie), HttpStatus.CREATED);\n else\n return new ResponseEntity<>(null, HttpStatus.BAD_REQUEST);\n }",
"@POST\n\t@Path(\"addtocollec\")\n\tpublic Response addToCollection(JsonMyMovie movie) {\n\t\tUsermovie um = new Usermovie();\n\t\tUsermoviePK umid = new UsermoviePK();\n\t\tumid.setMovie(movie.getMovieId().intValue());\n\t\tumid.setUser(movie.getUserId().intValue());\n\t\tum.setId(umid);\n\t\tum.setMovieBean(movieDao.getMovie(movie.getMovieId()));\n\t\tum.setUserBean(userDAO.getUser(movie.getUserId()));\n\t\tum.setComment(movie.getComment());\n\t\tum.setRating(movie.getRating());\n\t\tusermovieDAO.saveUsermovie(um);\n\t\treturn Response.ok(new JsonSimpleResponse(true),\n\t\t\t\tMediaType.APPLICATION_JSON).build();\n\t}",
"public void putMovieData(String movieName, String movieDate, String genre) {\n String[] columns = {MovieUriContract.GenreEntry._ID, MovieUriContract.GenreEntry.COLUMN_NAME};\n\n try{\n Cursor cursor = providerClient.query(\n MovieUriContract.GenreEntry.CONTENT_URI,\n columns,\n null,\n null,\n null\n );\n\n int genreId = -1;\n if(cursor.moveToFirst()) {\n genreId = cursor.getColumnIndex(genre);\n }\n cursor.close();\n\n if(genreId >= 0) {\n ContentValues movieValues = new ContentValues();\n movieValues.put(MovieUriContract.MovieEntry.COLUMN_NAME, movieName);\n movieValues.put(MovieUriContract.MovieEntry.COLUMN_RELEASE_DATE, movieDate);\n movieValues.put(MovieUriContract.MovieEntry.COLUMN_GENRE, genreId);\n providerClient.update(\n MovieUriContract.GenreEntry.CONTENT_URI,\n movieValues,\n null,\n null);\n }\n else {\n view.setErrorMessage();\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n \t\t\tpublic void onClick(ClickEvent event) {\n \t\t\t\tmovieProvider.getList().add(new Movie(\"\", 0, Language.English, \"\", \"\"));\r\n \t\t\t\tmovieTable.redraw();\r\n \t\t\t\t//movieProvider.refresh();\r\n \t\t\t\tWindow.alert(\"Added\");\r\n \t\t }",
"public long addMovieToFavorites(long movieId) {\n if (!isMovieIsFavorite(movieId)) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = insertFavoriteMovieIntoContentValues(movieId);\n long rowId = database.insert(FavoriteMoviesEntry.TABLE_NAME, null, values);\n database.close();\n return rowId;\n } else return 0;\n }",
"public void addTrailer(Trailer trailer, long movieId) {\n if (trailer != null) {\n if (!isTrailerExists(trailer.getId())) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues trailerValues = insertTrailerInContentValues(trailer, movieId);\n database.insert(TrailersEntry.TABLE_NAME, null, trailerValues);\n database.close();\n }\n } else {\n throw new IllegalArgumentException(\"Passed trailer object is null or already exist\");\n }\n }",
"public void saveMovieToFavorites() {\n Cursor moviecursor = this.getContentResolver().query(MovieContract.MovieEntry.CONTENT_URI, null, MovieContract.MovieEntry.COLUMN_NAME_MOVIE_ID + \" = \" + mMovie.getID(), null, null, null);\n if(moviecursor.getCount() == 0) { // first time this movie has been favorited insert record\n Uri movieUri = this.getContentResolver().insert(MovieContract.MovieEntry.CONTENT_URI, Constants.createMovieRecord(mMovie));\n long movieid = ContentUris.parseId(movieUri);\n int insertedTrailerCount = this.getContentResolver().bulkInsert(MovieContract.TrailerEntry.CONTENT_URI, Constants.createBulkTrailerValues(Constants.mTrailers, movieid));\n int insertedReviewCount = this.getContentResolver().bulkInsert(MovieContract.ReviewEntry.CONTENT_URI, Constants.createBulkReviewValues(Constants.mReviews, movieid));\n\n if(insertedTrailerCount < 1)\n Log.e(TAG,\"Trailer failed to insert\");\n\n if(insertedReviewCount < 1)\n Log.e(TAG, \" Review failed to insert\");\n }\n }",
"public static void updateMovie(Context context, MyMovie M) {\n\n String sqlStr = \"\";\n MovieSqlHelper movieDB = new MovieSqlHelper(context);\n ContentValues values = new ContentValues();\n\n values.put(DBConstants.SUBJECT_C, M.getSubject());\n values.put(DBConstants.BODY_C, M.getBody());\n values.put(DBConstants.IMAGE_URL_C, M.getImageUrl());\n\n if (AppConstants.saveImageLocaly)\n {\n values.put(DBConstants.MOVIE_IMAGE_C, M.getImageString64());\n }\n\n if ( M.getId() == AppConstants.EMPTY_ID || M.getId() == AppConstants.WEB_ID )\n {\n // New movie - do call insert instead of update\n Log.d(\"\",\"new movie: \" + M.getSubject());\n movieDB.getWritableDatabase().insert(DBConstants.MOVIES_T,null,values);\n\n } else\n {\n // Existing movie - call an update\n Log.d (\"-updateMovie\",\"id : \" + M.getId());\n movieDB.getWritableDatabase().update(DBConstants.MOVIES_T,values,DBConstants.ID_C+\"=?\",new String[]{\"\"+M.getId()});\n\n }\n\n // TODO verify successful completion\n movieDB.close();\n\n }",
"public int Addupcoming(UpcominMovie oupcomingmovie) throws SQLException, ClassNotFoundException\n\t{\n\t\tInputStream is=this.getClass().getClassLoader().getResourceAsStream(\"MAS.properties\");\n\t\tProperties prop=new Properties();\n\t\ttry {\n\t\t\tprop.load(is);\n\t\t} catch (IOException e1) {\n\t\t\t\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tString userid=prop.getProperty(\"userId\");\n\t\tString password=prop.getProperty(\"password\");\n\t\tString ipAddress=prop.getProperty(\"ipAddress\");\n\t\tString port=prop.getProperty(\"port\");\n\t\tString schema=prop.getProperty(\"schema\");\n\t\tConnection con=null;\n\t\tStatement st=null;\n\t ResultSet rs=null;\n\t\tint p=1;\n\t\ttry\n\t\t{\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\tClass.forName(\"oracle.jdbc.OracleDriver\");\n\t\t\t}\n\t\t\t catch (ClassNotFoundException e)\n\t\t\t {\n\t\t\t\tthrow e;\n\t\t\t\t\t\n\t\t\t }\n\t\t\tString url=\"jdbc:oracle:thin:@\"+ipAddress+\":\"+port+\":\"+schema;\n\t\t\tcon=DriverManager.getConnection(url,userid,password);\n\t\t\tcon.setAutoCommit(false);\n\t\t\tst=con.createStatement();\n\t\t\t\n\t\t\tint randomNumber=(int)(Math.random()*9999);\n\t\t\t\n\t\t\tif(randomNumber<=10000)\n\t\t\t{\n\t\t\t\trandomNumber=randomNumber+1;\n\t\t\t}\n\t\t\trs=st.executeQuery(\"select * from upcomingmovie where movie_name='\"+oupcomingmovie.getMovieName()+\"' and movie_language='\"+oupcomingmovie.getMovieLanguage()+\"'\");\n\t\t\t\n\t\t\tif(!rs.next())\n\t\t\t{\n\t\t\tp=st.executeUpdate(\"insert into upcomingmovie values(\"+randomNumber+\",'\"+oupcomingmovie.getMovieName()+\"','\"+oupcomingmovie.getMovieLanguage()+\"','\"+oupcomingmovie.getDate()+\"','\"+oupcomingmovie.getMonth()+\"','\"+oupcomingmovie.getYear()+\"')\");\n\t\t\toupcomingmovie.setMovieId(randomNumber);\n\t\t\tcon.commit();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t p=0;\n\t\t\t\n\t\t\t\tint MovieID = rs.getInt(1);\n\t\t\t\t\n\t\t\t\tString Movie_name= rs.getString(2);\n\t\t\t\tString Movie_language = rs.getString(3);\n\t\t\t\tString Movie_date = rs.getString(4);\n\t\t\t\tString Movie_month = rs.getString(5);\n\t\t\t\tString Movie_year = rs.getString(6);\n\t\t\t\toupcomingmovie.setMovieId(MovieID);\n\t\t\t\toupcomingmovie.setMovieName(Movie_name);\n\t\t\t\toupcomingmovie.setMovieLanguage(Movie_language);\n\t\t\t\toupcomingmovie.setDate(Movie_date);\n\t\t\t\toupcomingmovie.setMonth(Movie_month);\n\t\t\t\toupcomingmovie.setYear(Movie_year);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t catch (SQLException se) \n\t\t {\n\t\t\t\n\t\t\t \n\t\t\t\tthrow se;\n\t\t }\n\t\t catch(NullPointerException ne)\n\t\t\t{\n\t\t\t\tthrow ne;\n\t\t\t}\n\t\t \n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\trs.close();\n\t\t\t\tst.close();\n\t\t\t\tcon.close();\n\t\t\t\t\n\t\t\t}\n\t\t\tcatch(SQLException se)\n\t\t\t{\n\t\t\t\t \n\t\t\t\t\tthrow se;\n\t\t\t}\n\t\t\tcatch(NullPointerException ne)\n\t\t\t{\n\t\t\t\tthrow ne;\n\t\t\t}\n\t\t}\n\t\treturn p;\n\t}",
"@Override\r\n\tpublic int insert(Movie record) {\n\t\treturn this.movieMapper.insert(record);\r\n\t}",
"public void addVideo(Video video, User user) throws SQLException {\n\t\tConnection con = DBManager.getInstance().getConnection();\r\n\t\tPreparedStatement st;\r\n\t\t\r\n\t\t\tst = con.prepareStatement(\"INSERT INTO videos (name, path, views,date,description) VALUES (?,?,?,?,?);\");\r\n\t\t\tst.setString(1, video.getName());\r\n\t\t\tst.setString(2, video.getName());\r\n\t\t\tst.setInt(3, video.getViews());\r\n\t\t\t// TODO st.setTimestamp(4, video.getDate());\r\n\t\t\t// st.setPublisher(.....,video.getPublisher());\r\n\t\t\tst.setString(5, video.getDescription());\r\n\t\t\tst.executeUpdate();\r\n\t\t\r\n\r\n\t}",
"public void insertData(String localPosterPath)\n {\n Log.d(TAG, \"insertData movie: \" + currentMovie.mTitle);\n\n movieValue = new ContentValues();\n movieValue.put(MoviesContract.MoviesEntry._ID, currentMovie.mID);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_TITLE, currentMovie.mTitle);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_ORI_TITLE, currentMovie.mOriginalTitle);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_ORI_LAN, currentMovie.mOriginalLanguage);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_POSTER_PATH, currentMovie.mPosterPath);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_LOCAL_POSTER_PATH, localPosterPath);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_BACKDROP_PATH, currentMovie.mBackdropPath);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_POPULARITY, currentMovie.mPopularityIndex);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_VOTE_COUNT, currentMovie.mVoteCount);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_VOTE_AVG, currentMovie.mVoteAvg);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_ADULT_TYPE, currentMovie.mAdultType);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_OVERVIEW, currentMovie.mOverveiw);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_RELEASE_DATE, currentMovie.mReleaseDate);\n movieValue.put(MoviesContract.MoviesEntry.COLUMN_GENERE, currentMovie.mGenereIDs[0]);\n\n getContentResolver().insert(MoviesContract.MoviesEntry.CONTENT_URI, movieValue);\n }",
"public void addUserMovie(Long movie, Integer mark, Integer wishlist) throws IllegalOperationException;",
"public boolean addVideo(Video newVideo)throws NullPointerException;",
"public void setMovie(Movie movie) {\n this.movie = movie;\n }",
"@Override\n\tpublic MovieDTO createMovie(CreateMovieRequest request) {\n\t\treturn null;\n\t}",
"@Override\n public String save(final String movie) throws IOException {\n RestClient rc = HttpClient.getInstance().getRestClient();\n Request request = new Request(HttpMethod.POST.name(), \"/movies/_doc\");\n request.setJsonEntity(movie);\n\n Response res = rc.performRequest(request);\n\n JsonNode node = Json\n .mapper\n .readTree(res.getEntity().getContent());\n\n return node.toString();\n }",
"public void addMovie(String t, int r) throws IllegalArgumentException\n\t{\n\t\tif(this.containsMovie(t))\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tif( r < 0 || r > 100)\n\t\t{\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\t\n\t\tlist_of_movies.add(new Movie(t,r));\n\t}",
"private Uri insertMovie(Uri uri, ContentValues values) {\n Integer movieId = values.getAsInteger(MovieContract.MovieEntry.COLUMN_MOVIE_ID);\n if (movieId == null) {\n throw new IllegalArgumentException(\"MovieProvider requires an id\");\n }\n // Get writable database\n SQLiteDatabase database = mDbHelper.getWritableDatabase();\n\n // Insert the new movie with the given values\n long id = database.insert(MovieContract.MovieEntry.TABLE_NAME, null, values);\n // If the ID is -1, then the insertion failed. Log an error and return null.\n if (id == -1) {\n Log.e(LOG_TAG, \"Failed to insert row for \" + uri);\n return null;\n }\n\n // Return the new URI with the ID (of the newly inserted row) appended at the end\n return ContentUris.withAppendedId(uri, id);\n }",
"public Film create(Film obj) {\n\t\t\n\t\tConnection.update(\"INSERT INTO film (codeFilm,nomFilm) VALUES('\"\n\t\t\t\t\t\t +obj.getCodeFilm() +\"','\"\n\t\t\t\t\t\t +obj.getNomFilm() +\"')\");\n\t\t\n\t\tResultSet result = \tConnection.selectFrom(\"SELECT idFilm \"\n\t\t\t\t+ \"FROM film \"\n\t\t\t\t+\";\");\n\n\t\tint i = 0;\n\t\ttry\n\t\t{\n\t\t\tresult.last();\n\t\t\ti = result.getInt(\"idFilm\");\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tobj.setId(i);\n\t\tConnection.close();\n\t\treturn obj;\n\t}",
"public void addFilm(Film film){\r\n this.cinema_film_list.add(film);\r\n }",
"@Override\n\tpublic int save(JSONObject param) {\n\t\tMap<String, Object> data = new HashMap<String, Object>();\n\t\tString movieId = StringUtil.ToString(param.getString(\"movieId\"));\n\t\tSystem.out.println(movieId);\n\t\tString recommand = StringUtil.ToString(param.getString(\"recommand\"));\n\t\tString tip = StringUtil.ToString(param.getString(\"tip\"));\n\t\tString str = uuid.toString();\n String id = str.substring(0, 8) + str.substring(9, 13) + str.substring(14, 18) + str.substring(19, 23) + str.substring(24);\n\t\tdata.put(\"id\", id);\n\t\tdata.put(\"movieId\", movieId);\n\t\tdata.put(\"recommand\", recommand);\n\t\tdata.put(\"tip\", tip);\n\t\tint number = this.insert(\"MovieRecommand.insert\", data);\n\t\treturn number;\n\t}",
"@ApiOperation(value = \"Add a movie\", notes = \"Adding a new movie\")\n @ApiResponses(value = {\n @ApiResponse(code = 201, message = \"Created\", response = MovieDto.class),\n @ApiResponse(code = 400, message = \"Bad request\"),\n @ApiResponse(code = 404, message = \"Not found\"),\n @ApiResponse(code = 409, message = \"Conflict\"),\n })\n @CrossOrigin\n @PostMapping(value = \"/add\", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity add(\n @Valid @RequestBody MovieDto movie) {\n if ( bugService.findByBugKey(\"bug_204\").getBugEnabled()) {\n movie.setHomepage(\"\");\n movie.setOriginalTitle(\"\");\n movie.setTagline(\"\");\n }\n if (bugService.findByBugKey(\"bug_207\").getBugEnabled()) {\n movie.setRuntime(movie.getRuntime() * 60);\n }\n if (bugService.findByBugKey(\"bug_208\").getBugEnabled()) {\n Set<GenreDto> tmpGenres = new HashSet<>();\n //Onderstaande is zo bedoeld! Afblijven\n for (GenreDto genre : movie.getGenres()) {\n tmpGenres.add(genre);\n movie.setGenres(tmpGenres);\n break;\n }\n }\n if (bugService.findByBugKey(\"bug_203\").getBugEnabled()) {\n //Onderstaande is zo bedoeld! Afblijven\n MovieDto noShowMovie = movieService.add(movie);\n noShowMovie = null;\n return new ResponseEntity<>(noShowMovie, HttpStatus.CREATED);\n }\n\n if (bugService.findByBugKey(\"bug_209\").getBugEnabled()) {\n return new ResponseEntity<>(movieService.add(movie), HttpStatus.I_AM_A_TEAPOT);\n }\n\n return new ResponseEntity<>(movieService.add(movie), HttpStatus.CREATED);\n }",
"@RequestMapping(value= \"/create\", method = RequestMethod.POST)\n public String create(Film film) { //Hier gaat Spring ervanuit dat 'Film' een Java Bean is en dan gaat hij automatisch de setters gebruiken\n filmRepository.save(film);\n return \"redirect:/films\";\n }",
"@PostMapping(\"/movieForm\")\n public String resultMovies(@ModelAttribute(\"newMovie\") Movie movie, Model model){\n\n movieRepo.save(movie);\n System.out.println(movie.getDirector().getId());\n// System.out.println(movie.getDirector().getName());\n\n model.addAttribute(\"newMovie\", movie);\n\n// String directorName = movie.getDirector().getName();\n// model.addAttribute(\"directorname\", directorName);\n\n long dirId = movie.getDirector().getId();\n Director d = directorRepo.findOne(dirId);\n model.addAttribute(\"directorname\", d.getName());\n System.out.println(d.getName());\n\n return \"resultMovie\";\n }",
"@Override\r\n\tpublic int insertFilm(Film film) {\n\t\treturn 0;\r\n\t}",
"public Movie() {\n\n }",
"public void addMovie(final Movie movie) {\n if (!this.getMovieNames().contains(movie.getName())) {\n this.movies.add(movie);\n }\n }",
"void setMovieId(int movieID) {\n this.movieID = movieID;\n }",
"@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.POST)\n\tpublic Video addVideo(Video v) {\n\t\t// TODONE Implement the logic to store the meta data.\n\t\tassert(v != null);\n\t\tv = mVideoRepository.save(v);\n\t\t\n\t\tassert(v != null);\n\t\t// TODO Fix filename & path\n\t\tv.setDataUrl(getUrlBaseForLocalServer() \n\t\t\t\t+ VideoSvcApi.VIDEO_DATA_PATH.replace(\n\t\t\t\t\t\t\"{\" + VideoSvcApi.ID_PARAMETER + \"}\",\n\t\t\t\t\t\t\"\" + v.getId()));\n\t\t\n\t\treturn v;\n\t}",
"@Test\n public void addMovie_test() {\n theater.getMovies().add(\"Love Actually\");\n String expected = \"Love Actually\";\n String actual = theater.getMovies().get(4);\n Assert.assertEquals(expected,actual);\n }",
"@Override\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n final String SQL_CREATE_MOVIES_TABLE =\n \"CREATE TABLE IF NOT EXISTS \" + MoviesEntry.TABLE_NAME + \" (\" +\n MoviesEntry._ID + \" INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n MoviesEntry.COLUMN_MOVIE_ID + \" INTEGER NOT NULL, \" +\n MoviesEntry.COLUMN_MOVIE_TITLE + \" TEXT NOT NULL, \" +\n MoviesEntry.COLUMN_MOVIE_OVERVIEW + \" TEXT NOT NULL, \" +\n MoviesEntry.COLUMN_MOVIE_RATINGS + \" REAL NOT NULL, \" +\n MoviesEntry.COLUMN_MOVIE_RELEASE_DATE + \" TEXT NOT NULL, \" +\n MoviesEntry.COLUMN_MOVIE_GENRES + \" TEXT NOT NULL, \" +\n MoviesEntry.COLUMN_MOVIE_POSTER_PATH + \" TEXT NOT NULL, \" +\n MoviesEntry.COLUMN_MOVIE_BACKDROP_PATH + \" TEXT NOT NULL, \" +\n \" UNIQUE (\" + MoviesEntry.COLUMN_MOVIE_ID + \") ON CONFLICT REPLACE);\";\n\n sqLiteDatabase.execSQL(SQL_CREATE_MOVIES_TABLE);\n }",
"int insert(Videoinfo record);",
"public MovieDatabase() {\n\t\tthis.movieList = new ArrayList<>();\n\t\tthis.actorList = new ArrayList<>();\n\t}",
"public void addMovie(String name, String[] actors) {\n\t\t\n\t\tArrayList<Actor> movieActors = new ArrayList<>(); // list of actors in the movie\n\t\tMovie newMovie = new Movie(name, movieActors);\n\t\tboolean addedMovie = false;\n\t\tfor(Movie movie : this.movieList) {\n\t\t\tif(movie.getName().equals(newMovie.getName())) {\n\t\t\t\taddedMovie = true;\n\t\t\t}\n\t\t}\n\t\tif(addedMovie == false) {\n\t\t\tArrayList<Movie> actorMovies = new ArrayList<>(); //list of movies with actor in\n\t\t\tthis.movieList.add(newMovie);\n\t\t\tactorMovies.add(newMovie);\n\t\t\tfor(String actorName: actors) {\n\t\t\t\tActor newActor = new Actor(actorName, actorMovies);\n\t\t\t\tmovieActors.add(newActor);\n\t\t\t\tboolean added = false;\n\t\t\t\tfor(Actor actor : this.actorList) {\n\t\t\t\t\tif (actor.getName().equals(newActor.getName())) {\n\t\t\t\t\t\tadded = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(added == false) this.actorList.add(newActor);\n\t\t\t}\n\t\t}\n\t}",
"private void addTuple(ImdbMovie movie) {\n //Extract the user input\n String name = textName.getText().toString().trim();\n String imdbRating = null;\n String year = null;\n\n if (movie != null) {\n name = movie.Title;\n imdbRating = movie.imdbRating;\n year = movie.Year;\n }\n\n String Comment = textComment.getText().toString().trim();\n String rating = textRating.getText().toString().replace(',', '.').trim();\n String sort = sort_spinner.getSelectedItem().toString();\n String time = new SimpleDateFormat(\"EEE, d MMM yyyy HH:mm:ss\").format(Calendar.getInstance().getTime());\n\n\n String regex = \"[+-]?([0-9]*[.])?[0-9]+\";\n if (!rating.matches(regex)) {\n Toast.makeText(this, \"Wrong imput, use numbers\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (rating.isEmpty() || Comment.isEmpty() || name.isEmpty()) {\n Toast.makeText(this, \"Empty\", Toast.LENGTH_SHORT).show();\n } else if (Float.parseFloat(rating) > 10 || Float.parseFloat(rating) < 1) {\n Toast.makeText(this, \"Wrong, the number is too low or high\", Toast.LENGTH_SHORT).show();\n } else if (rating.matches(regex)) {\n String updateQuery = \"INSERT INTO filmseries (name, reason, rating, sort, time, imdb_rating, omdb_year)\\n\"\n + \"VALUES (?,?,?,?,?,?,?)\";\n mDatabase.execSQL(updateQuery, new String[]{name, Comment, rating, sort, time, imdbRating, year});\n\n //Bring the user to MainActivity when the operation is done\n Intent mainIntent = new Intent(this, MainActivity.class);\n startActivity(mainIntent);\n\n // Notify the user that the operation succeeded\n Toast.makeText(this, \"Your like has been added!\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(this, \"Wrong\", Toast.LENGTH_SHORT).show();\n }\n }",
"public static void addMovie(String id, String title, MovieCode code) {\n\t\tif (movieList.stream().noneMatch(movie -> movie.getId().equals(id))) {\n\t\t\tmovieList.add(new Movie(id, title, code));\n\t\t}\n\t}",
"public void save(Connection conn) {\n film.addActor(conn, this);\n }",
"public void onClickAddTask(View view) {\n\n // Insert new Movie data via a ContentResolver\n\n\n ContentValues mUpdateValues = new ContentValues();\n // Defines selection criteria for the rows you want to update\n /*\n * Sets the updated value and updates the selected words.\n */\n\n if (fav == 0) {\n mRatingBar.setImageDrawable(ContextCompat.getDrawable(getApplicationContext(), android.R.drawable.btn_star_big_on));\n mUpdateValues.put(MoviesContract.MovieEntry.COLUMN_PRIORITY, 1);\n } else {\n mRatingBar.setImageDrawable(ContextCompat.getDrawable(getApplicationContext(), android.R.drawable.btn_star_big_off));\n mUpdateValues.put(MoviesContract.MovieEntry.COLUMN_PRIORITY, 0);\n }\n int mRowsUpdated = getContentResolver().update(\n MoviesContract.MovieEntry.buildMoviesUri(_id),\n mUpdateValues,\n MoviesContract.MovieEntry._ID+\"=?\",\n new String[] {String.valueOf(_id)});\n\n\n }",
"Builder addVideo(VideoObject value);",
"@Override\n\tpublic void updateMovie(Movie movie) {\n\t\tString sql=\"Update movie set MOVIE_ID=?,MOVIE_NAME=?,LANGUAGE=?,GENERE=?,TYPE=?,DURATION=?\";\n\t\tObject[] params={movie.getMovieId(),movie.getMovieName(),movie.getLanguage(),movie.getGenere(),movie.getType(),movie.getDuration()};\n\t\tint[] types={Types.INTEGER,Types.VARCHAR,Types.VARCHAR,Types.VARCHAR,Types.VARCHAR,Types.INTEGER};\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tjdbcTemplate.update(sql, params, types);\n\t}",
"public Movie(int IDmovie) {\n super(IDmovie);\n }",
"public void createMovie(int id, String title, int statusChoice, int typeChoice, int ratingChoice, \n\t\t\tString synopsis, String director, ArrayList<String> cast, int duration) {\n\t\tMovie movie = new Movie(id, title, statusChoice, typeChoice, ratingChoice, synopsis, director, cast, duration);\n\t\t\n\t\tthis.create((T)movie);\n\t}",
"public long insertMovie() {\n MoviesDbHelper dbHelper = new MoviesDbHelper(mContext);\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n\n // Second Step: Create ContentValues of what you want to insert\n ContentValues testValues = TestUtilities.createJurassicWorldMovieValues();\n\n // Third Step: Insert ContentValues into database and get a row ID back\n long movieRowId;\n\n movieRowId = db.insert(MoviesContract.MovieEntry.TABLE_NAME, null, testValues);\n\n // Verify we got a row back.\n assertTrue(movieRowId != -1);\n\n\n // Data's inserted. IN THEORY. Now pull some out to stare at it and verify it made\n // the round trip.\n\n // Fourth Step: Query the database and receive a Cursor back\n // A cursor is your primary interface to the query results.\n Cursor cursor = db.query(\n MoviesContract.MovieEntry.TABLE_NAME, // Table to Query\n null, // all columns\n null, // Columns for the \"where\" clause\n null, // Values for the \"where\" clause\n null, // columns to group by\n null, // columns to filter by row groups\n null // sort order\n );\n\n // Move the cursor to a valid database row and check to see if we got any records back\n // from the query\n assertTrue( \"Error: No Records returned from Movie query\", cursor.moveToFirst() );\n\n // Fifth Step: Validate data in resulting Cursor with the original ContentValues\n // (you can use the validateCurrentRecord function in TestUtilities to validate the\n // query if you like)\n TestUtilities.validateCurrentRecord(\"Error: Movie Query Validation Failed\",\n cursor, testValues);\n\n // Move the cursor to demonstrate that there is only one record in the database\n assertFalse(\"Error: More than one record returned from Movie query\",\n cursor.moveToNext());\n\n cursor.moveToFirst();\n for(int i=0; i<cursor.getCount();i++){\n Log.d(LOG_TAG, \"insertMovie Movie: \"+\n cursor.getLong(0) + \"-\" +\n cursor.getLong(1) + \"-\" +\n cursor.getString(2) + \"-\" +\n cursor.getString(3) + \"-\" +\n cursor.getString(4) + \"-\" +\n cursor.getString(5) + \"-\" +\n cursor.getString(6));\n cursor.moveToNext();\n }\n\n // Sixth Step: Close Cursor and Database\n cursor.close();\n db.close();\n return movieRowId;\n }",
"private void addMovieToArray(ArrayList<Movie> movies, String movieName, String directorName, String act1, String act2, String act3, int star)\n {\n Movie clip = new Movie(movieName, directorName, act1, act2, act3, star);\n movies.add(clip);\n }",
"@Override\n public void onCreate(){\n super.onCreate();\n //initialize database manager\n MovieDB movieDB = new MovieDB(this);\n\n //will create database if necessary\n mDB = movieDB.getWritableDatabase();\n\n //set movie type init value\n mMovieType = -1;\n\n //instantiate MovieItem object\n mMovie = new MovieItem();\n\n //initialize Valet classes\n initValets();\n\n //initialize Staff classes\n initStaff();\n\n //initialize Butler classes\n initButlers();\n\n }",
"public void addAgenda(AgendaItem agendaItem) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_AGENDA_NAME, agendaItem.getAgendaName()); // Agenda Name\n values.put(KEY_AGENDA_DATE, agendaItem.getAgendaDate()); // Agenda Name\n // Inserting Row\n db.insert(TABLE_AGENDA, null, values);\n\n db.close(); // Closing database connection\n\n\n }",
"public void insert(int id, String name, String year){\n SQLiteDatabase db = getWritableDatabase();\n\n // create a new content value to store values\n ContentValues values = new ContentValues();\n values.put(\"id\", id);\n values.put(\"name\", name);\n values.put(\"year\", year);\n\n // Insert the row into the games table\n db.insert(\"games\", null, values);\n }",
"public static void addMovie(){\r\n System.out.println('\\n'+\"Please enter the name of the Movie you would like to add \");\r\n String name = s.nextLine();\r\n System.out.println(\"Please enter the rating between 1 and 5 \");\r\n int r = s.nextInt();\r\n s.nextLine();\r\n if (r >= 1 && r <= 5){\r\n m = new Movie(name,r);\r\n movies.add(m);\r\n System.out.println(m.name +\" has been added\"+ '\\n');\r\n }\r\n else{\r\n System.out.println(\"That rating is not between 1 and 5. Please try again\");\r\n }\r\n }",
"@RequestMapping(value = \"/films\", //\n\t\t\t\t\tmethod = RequestMethod.POST, //\n\t\t\t\t\tproduces = {MediaType.APPLICATION_JSON_VALUE})\n\t@ResponseBody\n\tpublic Film addFilm(@RequestBody Film film) {\n\t\treturn filmService.ajouter(film);\n\t}",
"@RequestMapping(value = VideoSvcApi.VIDEO_SVC_PATH, method = RequestMethod.POST)\n\tpublic @ResponseBody Video addVideo(@RequestBody Video v) {\n\t\tvideos.save(v);\n\t\treturn v;\n\t}",
"public Movie getMovie() {\n DBMovie movie = new DBMovie();\n movie.setId(this.movieID);\n return movie;\n }",
"@RequestMapping(path = \"addFilm.do\", method = RequestMethod.POST)\n\tpublic ModelAndView addFilm(@ModelAttribute(\"film\") Film film) {\n\t\tModelAndView mv = new ModelAndView();\n\t\tboolean created = false;\n\t\tFilm filmInDB = dao.createFilm(film);\n\t\tif (filmInDB != null) {\n\t\t\tcreated = true;\n\t\t}\n\t\tmv.addObject(\"created\", created);\n\t\tmv.addObject(\"film\", filmInDB);\n\t\tmv.setViewName(\"WEB-INF/search.jsp\");\n\t\treturn mv;\n\t}",
"@Override\r\n\tpublic void saveFilm(Film film) {\n\t\tfilmRepository.save(film);\r\n\t}",
"@Test\n public void canAddMovieAndAssignActorsToIt() {\n goTo(\"http://localhost:\" + port + \"/movies\");\n // Check movie doesn't exist\n assertFalse(pageSource().contains(\"Uuno Epsanjassa\"));\n // Check actor doesn't exist\n assertFalse(pageSource().contains(\"Uuno Turhapuro\"));\n // Find field with id - \"name\" and add movie to it.\n find(\"#name\").fill().with(\"Uuno Epsanjassa\");\n // Find field with id - \"lengthInMinutes\" and add value \"92\" to it.\n find(\"#lengthInMinutes\").fill().with(\"92\");\n // Submit the form \n find(\"form\").first().submit();\n // Check, text \"Uuno Espanjassa\" exists\n assertTrue(pageSource().contains(\"Uuno Epsanjassa\"));\n // Check, text \"Uuno Turhapuro\" does not exist\n assertFalse(pageSource().contains(\"Uuno Turhapuro\"));\n // Go to actors page\n goTo(\"http://localhost:\" + port + \"/actors\");\n // Check, text \"Uuno Turhapuro\" does not exist\n assertFalse(pageSource().contains(\"Uuno Turhapuro\"));\n // Find field with id - \"name\" and insert \"Uuno Turhapuro\" into it.\n find(\"#name\").fill().with(\"Uuno Turhapuro\");\n // Submit the form\n find(\"form\").first().submit();\n // Check, text \"Uuno Turhapuro\" exists\n assertTrue(pageSource().contains(\"Uuno Turhapuro\"));\n // Find link with text \"Uuno Turhapuro\" and click it\n find(\"a\", containingText(\"Uuno Turhapuro\")).click();\n // Find a button with id - \"add-to-movie\" and click it.\n find(\"#add-to-movie\").click();\n // Go to movies page\n goTo(\"http://localhost:\" + port + \"/movies\");\n // Check, text \"Uuno Espanjassa\" exists\n assertTrue(pageSource().contains(\"Uuno Epsanjassa\"));\n // Check, text \"Uuno Turhapuro\" exists\n assertTrue(pageSource().contains(\"Uuno Turhapuro\"));\n }",
"public Movie(int ID, String mTitle, String mGenre, int mRelease)\n {\n id = ID;\n title = mTitle;\n genre = mGenre;\n release = mRelease;\n }",
"public Movie() { }",
"@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tOperation.addMovie(movies,name.getText(),Integer.parseInt(priceField.getText()),(Integer)length.getValue(),(String)kind.getSelectedItem());\n\t\t\t\t\t\t\tlistModel.removeAllElements();\n\t\t\t\t\t\t\tfor (int i = 0; i < movies.size(); i++) {\n\t\t\t\t\t\t\t\tlistModel.addElement(movies.get(i).name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddFrame.dispose();\n\t\t\t\t\t\t}",
"public MovieDB()\n\t{\n\t\t//Create an empty list\n\t\tlist_of_movies = new ArrayList<Movie>();\n\t}",
"int insert(TVideo record);",
"public Movie() {}",
"public Movie() {}",
"public Movie(String id, String title) {\n mId = id;\n mTitle = title;\n }",
"@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.POST)\n\tpublic @ResponseBody Video addVideo(@RequestBody Video v){\n\t\tcheckAndSetId(v);\n\t\tv.setDataUrl(getDataUrl(v.getId()));\n\t\tvideos.add(v);\n\t\t\n\t\treturn v;\n\t}",
"public Movie(int IDmovie, String title, String synopsis, String genre, String director, int year, double priceMovie) {\n super(IDmovie, title, synopsis, genre, director, year, priceMovie);\n }",
"Movie getMovieById(final int movieId);"
]
| [
"0.8028772",
"0.7788978",
"0.7690892",
"0.7533309",
"0.73354906",
"0.73264563",
"0.73133165",
"0.7253486",
"0.70549405",
"0.7012417",
"0.6975957",
"0.69487786",
"0.6901448",
"0.68713355",
"0.6866305",
"0.67448825",
"0.66897297",
"0.66710037",
"0.66416365",
"0.6626085",
"0.6584275",
"0.65813684",
"0.657913",
"0.6572578",
"0.65252167",
"0.65071225",
"0.6485192",
"0.64699745",
"0.6464044",
"0.6413016",
"0.63831425",
"0.6374512",
"0.63667446",
"0.6359998",
"0.6345595",
"0.633328",
"0.632723",
"0.6308459",
"0.62863517",
"0.6284194",
"0.62823796",
"0.6276127",
"0.6265607",
"0.6252293",
"0.62495166",
"0.6196802",
"0.6180975",
"0.6176738",
"0.61579496",
"0.61512876",
"0.61330944",
"0.6114418",
"0.6095358",
"0.6080497",
"0.6043751",
"0.6031958",
"0.60273767",
"0.6010267",
"0.59938365",
"0.59509224",
"0.5947306",
"0.5935936",
"0.59295",
"0.5922147",
"0.59199876",
"0.5914551",
"0.5905727",
"0.58984935",
"0.5887971",
"0.58796316",
"0.5861489",
"0.58530664",
"0.583102",
"0.5824088",
"0.58198214",
"0.58165395",
"0.5811962",
"0.580343",
"0.5770596",
"0.5767838",
"0.5767792",
"0.575972",
"0.57536083",
"0.57428145",
"0.5729641",
"0.57219607",
"0.5720989",
"0.571741",
"0.57168484",
"0.57150537",
"0.57055014",
"0.570483",
"0.57005566",
"0.56990486",
"0.5698822",
"0.5698822",
"0.56967777",
"0.569627",
"0.5694137",
"0.5690162"
]
| 0.65339017 | 24 |
This Method returns a Cursor containing Rows for all Columns in the Database | public Cursor getData()
{
/* We are using the rawQuery method to execute the SQLite Query we have made and return
* the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns
* we want to select in this case its everything (*)
*/
return this.getWritableDatabase().rawQuery("SELECT * FROM " + TABLE_NAME, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cursor fetchAll() {\n\t\treturn db.query(tableName, fields, null, null, null, null, null);\n\t}",
"public Cursor getAllRows(){\n Cursor cursor = database.query(dbHelper.TABLE_USERS,allColumns,null,null,null,null,null);\n if (cursor != null){\n cursor.moveToNext();\n }\n return cursor;\n }",
"public Cursor getCursorWithRows() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length())\n .addLengths(\"val123\".length()).setValues(ByteString\n .copyFromUtf8(\"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS TEAMHELLO\"\n +\n \" TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123val123\"))).build());\n return cursor;\n }",
"public Cursor getCursor() throws SQLException\n {\n Cursor c = db.query( true, C_TABLA, columnas, null, null, null, null, null, null);\n\n return c;\n }",
"public Cursor getAllRowData() {\n String where = null;\n Cursor c = \tdb.query(true, DATA_TABLE, null,\n where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }",
"public Cursor fetchAllPreg() {\n\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, KEY_TIME,\n KEY_BODY}, null, null, null, null, null);\n }",
"public Cursor getAllData() {\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"Select * from \" + TABLE_NAME, null);\n return res;\n }",
"public Cursor fetchAll() {\n\t\tCursor cursor = db.query(CertificationConstants.DB_TABLE, CertificationConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}",
"public Cursor fetchAll() {\n\t\tCursor cursor = db.query(UserConstants.DB_TABLE, UserConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}",
"public Cursor getCursorWithRowsAsNull() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length()).addLengths(-1).setValues(\n ByteString.copyFromUtf8(\n \"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS \"\n +\n \"TEAMHELLO TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123\"))).build());\n return cursor;\n }",
"public Cursor fetchAllEntries() {\n /*\n return database.query(\n DATABASE_TABLE, \n new String[] { ROWID, MAC_ADDRESS, LATITUDE, LONGITUDE, FREQUENCY, SIGNAL}, \n null,\n null, \n null,\n null, \n null);\n */\n \n // sql must NOT be ';' terminated\n String sql = \"SELECT \"+ ROWID + \", \" + MAC_ADDRESS + \", \" + LATITUDE + \", \" + LONGITUDE + \", \" \n + NETWORK_NAME + \", \" + CAPABILITIES + \", \" + FREQUENCY + \", \" + SIGNAL\n + \" FROM \" + DATABASE_TABLE;\n return database.rawQuery(sql, null);\n }",
"public static Cursor getAllCursor() {\n String tableName = Cache.getTableInfo(TodoItem.class).getTableName();\n\n // Query all items without any conditions\n String sql = new Select(tableName + \".*, \" + tableName + \".Id as _id\").\n from(TodoItem.class).toSql();\n\n return Cache.openDatabase().rawQuery(sql, null);\n }",
"public Cursor fetchAllEntries() {\n return mDb.query(DATABASE_TABLE, null, null, null, null, null, null);\n }",
"Iterator<Column> nonPrimaryKeyBaseColumns();",
"public ListIterator<T> getAllByColumnsIterator() {\n\t\tAllByColumnsIterator it = new AllByColumnsIterator();\n\t\treturn it;\n\t}",
"private List<String> getColNames() {\r\n\t\t//\r\n\t\tDBManager dbm = new DBManager(this);\r\n\t\t\r\n\t\tSQLiteDatabase wdb = dbm.getWritableDatabase();\r\n\r\n\t\t// REF=> http://stackoverflow.com/questions/947215/how-to-get-a-list-of-column-names-on-sqlite3-iphone\r\n\t\tString sql = \"PRAGMA table_info('\" + DBManager.tableName + \"')\";\r\n\t\t\r\n\t\tCursor c = wdb.rawQuery(sql, null);\r\n\t\t\r\n\t\t// Log\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getCount() => \" + c.getCount());\r\n\t\t\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getColumnCount() => \" + c.getColumnCount());\r\n\r\n\t\tList<String> colNames = new ArrayList<String>();\r\n\t\t\r\n\t\tc.moveToFirst();\r\n\t\t\r\n\t\tfor (int i = 0; i < c.getCount(); i++) {\r\n\t\t\t\r\n\t\t\tcolNames.add(c.getString(0));\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"c.getString(0) => \" + c.getString(0) + \r\n\t\t\t\t\t\" / \" + \"c.getString(1) => \" + c.getString(1));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tc.moveToNext();\r\n\t\t\t\r\n\t\t}//for (int i = 0; i < c.getCount(); i++)\r\n\t\t\r\n\t\twdb.close();\r\n\t\t\r\n\t\tfor (String string : colNames) {\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"colName => \" + string);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\treturn (String[])colNames.toArray();\r\n\t\treturn colNames;\r\n\t\t\r\n\t}",
"public abstract Cursor buildCursor();",
"public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"select * from \" + Table_name, null);\n return res;\n }",
"public Cursor getData (){\n SQLiteDatabase database = getReadableDatabase();\n String sql = \"SELECT * FROM \" + TABLE_NAME + \"\";\n return database.rawQuery(sql,null);\n }",
"public Cursor readAllData() {\n\n Cursor objCursor = readSQLite.query(TABLE_OFFICER, new String[]{COLUMN_ID_OFFICER, COLUMN_OFFICER, COLUMN_POSITION, COLUMN_IMAGE, COLUMN_VIDEO, COLUMN_SOUND}, null, null, null, null, null);\n\n if (objCursor != null) {\n objCursor.moveToFirst();\n }\n\n return objCursor;\n }",
"private Cursor getCursorData() {\n\t\tDBAdventureHelper enclosingInstance = new DBAdventureHelper();\r\n\t\tDBAdventureHelper.AdventureDBHelper mDbHelper = enclosingInstance.new AdventureDBHelper(this);\r\n\t\t// Get the data repository in read mode\r\n\t\tSQLiteDatabase db = mDbHelper.getReadableDatabase();\r\n\r\n\t\t// Projection defines which DB cols you will be pulled from the query\r\n\t\t// Cursor queries the database with the provided parameters; pulling record where ID col == Adventure ID\r\n\t\tCursor c = db.query(\r\n\t\t\t\tAdventureContract.AdventuresTable.ADVENTURES_TABLE_NAME, \t\t\t\t\t\t\t\t\t// The table to query\r\n\t\t\t projection, \t\t\t\t\t\t\t\t\t\t\t\t\t// The columns to return\r\n\t\t\t null,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// The columns for the WHERE clause\r\n\t\t\t null, \t \t\t\t\t\t\t\t\t \t\t\t\t\t\t\t// The values for the WHERE clause\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't group the rows\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't filter by row groups\r\n\t\t\t \"DESC\" \t\t \t\t\t\t\t\t\t\t\t\t\t\t\t// The sort order\r\n\t\t);\r\n\t\tc.moveToFirst();\r\n\t return c;\r\n\t }",
"public List<Column> getColumns();",
"public Cursor getCursor() {\n String columnas = ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota._ID + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.TITULO + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.CUERPO + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.TIPO + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.IMAGEN + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista._ID + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.TEXTO + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.CHECK + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.IDNOTA;\n\n\n Cursor cursor = db.rawQuery(\"select \" + columnas + \" from \"+ ContratoBaseDatos.TablaNota.TABLA + \" left join \"+ ContratoBaseDatos.TablaLista.TABLA + \" on \" +\n ContratoBaseDatos.TablaNota.TABLA +\".\"+ ContratoBaseDatos.TablaNota._ID + \" = \" + ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.IDNOTA , null);\n\n return cursor;\n\n }",
"public Cursor getAllData(\n\t\t\t\t\tSQLiteDatabase db, String tableName, String[] cols) {\n\t\t\n\t\t////////////////////////////////\n\n\t\t// validate: table exists\n\n\t\t////////////////////////////////\n\t\t//\n\t\tCursor cursor = db.query(tableName, cols, null, null, null, null, null);\n\t\t\n\t\treturn cursor;\n\t}",
"Iterator<Column> baseColumns();",
"public Cursor getAllRowsMain() {\n String where = null;\n Cursor c = db.query(true, MAIN_TABLE_NAME, ALL_KEYS_MAIN,\n where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }",
"public Cursor displayData(){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table;\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }",
"public Cursor getAllFromTable(String tableName) {\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n Cursor cursor = db.query(tableName, getProjection(tableName), null, null, null, null, null);\n db.endTransaction();\n return cursor;\n }",
"public List<Column> getColumns() {\n if (columns != null) return columns;\n columns = new ArrayList<Column>();\n for (Column column : getAdapter().getColumns(getTableName())) {\n if (column.getName().equals(getPrimaryKey())) {\n column.setPrimary(true);\n }\n columns.add(column);\n }\n return columns;\n }",
"java.util.List<Column>\n getColumnsList();",
"DataFrameCursor<R,C> cursor();",
"public ArrayList<ColumnInTable> getAllColumns() {\n Schema schema = Schema.getSchema();\n ArrayList<ColumnInTable> columns = new ArrayList<ColumnInTable>();\n \n for (int i = 0; i < fromTables.size(); i++) {\n Table t = schema.getTable(fromTables.get(i).first());\n for (Entry<String, Column> entry: t.getAllColumns().entrySet()) {\n columns.add(new ColumnInTable(entry.getValue(), i));\n }\n }\n \n return columns;\n }",
"List<String> getColumns();",
"public List<Object[]> select() {\n return selectColumns(metadata.getColumns());\n }",
"public AllByColumnsIterator() {\n\t\t\tsuper();\n\t\t\tlastIndex = numCols * numRows;\n\t\t}",
"public List selectAll() {\n\t\tList values = new ArrayList();\n\t\topen();\n\t\tCursor c = queryDB();\n\n\t\tif (c.moveToFirst()) {\n\t\t\tdo {\n\t\t\t//\tvalues.add(hydrateNewObject(c));\n\t\t\t} while (c.moveToNext());\n\t\t}\n\t\t\n\t\tc.close();\n\t\tclose();\n\t\t\n\t\treturn values;\n\t}",
"public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n String query= \"SELECT * FROM credit_table\";\n Cursor data = db.rawQuery(query,null);\n return data;\n }",
"public Cursor getAllShirtsCursor() {\n String selectQuery = \"SELECT * FROM \" + ShirtEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }",
"@NonNull\n Collection<TObj> getAll() {\n Collection<TObj> result = new LinkedList<>();\n for (int countR = mData.size(), i = 0; i < countR; i++) {\n int rowKey = mData.keyAt(i);\n SparseArrayCompat<TObj> columns = mData.get(rowKey);\n for (int countC = columns.size(), j = 0; j < countC; j++) {\n int key = columns.keyAt(j);\n result.add(columns.get(key));\n }\n }\n return result;\n }",
"public Collection<TapColumn> findAllColumns();",
"public Cursor getcname() {\n\t\tString countQuery = \"SELECT * FROM \" + DATABASE_TABLE1;\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t \n\t\treturn cursor;\n\t}",
"List<Column> getQueryColumns();",
"public Cursor getAll(){\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor;\n cursor = db.rawQuery(\"SELECT * from tweets\",null);\n return cursor;\n }",
"public Cursor getAllTrousersCursor() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }",
"Iterator<Column> referencedColumns();",
"DBCursor execute();",
"public Cursor getAllRows(String tableName) {\n Cursor c = db.rawQuery(\"SELECT * FROM [\"+tableName.replaceAll(\"\\\\s\", \"_\")+\"]\", null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }",
"public Cursor getAll()\r\n {\r\n \treturn mDb.query(DB_TABLE_NAME, new String[] {\"_id\",\"fundId\", \"moneyPaid\", \"currentValue\", \"units\", \"simpleReturn\"}, null, null, null, null, null);\r\n }",
"public List<String> getColumns();",
"public List getColumns() {\r\n return columns;\r\n }",
"public ArrayList<T> all() throws SQLException {\n\t\tPreparedStatement stmt = DatabaseConnection.get().prepareStatement(\"select * from \"+table_name() + order_string());\n\t\treturn where(stmt);\n\t}",
"private Cursor query(String selection, String[] columns) {\n \n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\n builder.setTables(TABLE_NAME);\n\n Cursor cursor = builder.query(\n sqliteDB, // SQLiteDatabase\n columns, // columns\n selection, // selection\n null, // selectionArgs\n null, // groupBy\n null, // having\n null // sortOrder\n );\n \n if (cursor == null) {\n return null;\n } else if (!cursor.moveToFirst()) {\n cursor.close();\n return null;\n }\n\n return convertCursorToMatrixCursor(cursor);\n }",
"public ArrayList<TEntity> getAll(){\n ArrayList<TEntity> list = new ArrayList<TEntity>();\n\n Cursor cursor = db.query(tableName, columns, null, null, null, null, null);\n\n cursor.moveToFirst();\n\n while (!cursor.isAfterLast()) {\n list.add(fromCursor(cursor));\n cursor.moveToNext();\n }\n\n return list;\n }",
"@Override\n public java.util.List<Column> getColumnsList() {\n return columns_;\n }",
"public Vector<String> getColumns() throws SQLException {\r\n return this.columns;\r\n }",
"private static ArrayList getColumns (Connection c, String t)\n\t\tthrows Exception\n\t{\n\t\tStatement s = c.createStatement();\n\t\tResultSet r = s.executeQuery(\"show columns from `\" + t + \"`\");\n\t\tArrayList result = new ArrayList();\n\t\twhile (r.next()) {\n\t\t\tColumnInfo info = new ColumnInfo();\n\t\t\tinfo.name = r.getString(1);\n\t\t\tinfo.type = r.getString(2);\n\t\t\tinfo.nullok = r.getString(3);\n\t\t\tinfo.key = r.getString(4);\n\t\t\tinfo.defaultval = r.getString(5);\n\t\t\tinfo.extra = r.getString(6);\n\t\t\tresult.add(info);\n\t\t}\n\t\ts.close();\n\t\tCollections.sort(result);\n\t\treturn result;\n\t}",
"public Cursor getAllLocations(){\n if (mDB != null)\n return mDB.query(DATABASE_TABLE, new String[] { FIELD_ROW_ID, FIELD_LAT , FIELD_LNG, FIELD_ACC, FIELD_TIME } , null, null, null, null, null);\n Cursor c = null;\n return c;\n }",
"public List<Column> getColumns(){\r\n\t\treturn columns;\r\n\t}",
"Iterator<ColumnPair> columnPairs();",
"public Columns getColumns() {\n return columns;\n }",
"public ArrayList getColumns() {\n return columns;\n }",
"public Cursor getAllContact()\n {\n return db.query(DATABASE_TABLE,new String[]{KEY_ROWID,KEY_NAME,\n KEY_EMAIL},null,null,null,null,null);\n }",
"public Column[] getColumns() {return columns;}",
"public Cursor getAllData(String table){\n return db.rawQuery(\"SELECT * FROM \" + table, null);\n }",
"public Cursor getRecords() {\n Cursor c;\n try {\n c = db.rawQuery(\"select * from \" + MyOpenHelper.TLoginDetails, null);\n return c;\n } catch (Exception e) {\n Log.e(\"Error At\", \" \" + e);\n e.printStackTrace();\n // TODO: handle exception\n return null;\n }\n }",
"public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }",
"public List<IColumn> getColumns() {\r\n\t\treturn Collections.unmodifiableList(columns);\r\n\t}",
"public Cursor getAll() {\n SQLiteDatabase db = _openHelper.getReadableDatabase();\n if (db == null) {\n return null;\n }\n return db.rawQuery(\"select * from Exams order by _id\", null);\n }",
"Vector<String> getColumns(String table) throws SQLException {\n\t\tVector<String> columns = new Vector<String>();\n\t\tDatabaseMetaData md = con.getMetaData();\n\t\tfor (ResultSet rs = md.getColumns(null, null, table, null); rs.next(); columns\n\t\t\t\t.add(rs.getString(4)))\n\t\t\t;\n\t\treturn columns;\n\t}",
"private Cursor getCursorObject() {\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // Define a projection that specifies which columns from the database\n // you will actually use after this query.\n String[] projection = {\n HabbitContract.HabbitEntry._ID,\n HabbitContract.HabbitEntry.COLUMN_HAD_BREAKFAST,\n HabbitContract.HabbitEntry.COLUMN_BREAKFAST_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_LUNCH,\n HabbitContract.HabbitEntry.COLUMN_LUNCH_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_SUPPER,\n HabbitContract.HabbitEntry.COLUMN_SUPPER_MEAL,\n HabbitContract.HabbitEntry.COLUMN_ADDITIONAL_DATA,\n HabbitContract.HabbitEntry.COLUMN_DATETIME_STAMP};\n\n // Perform a query on the nutrition table\n Cursor cursor = db.query(\n HabbitContract.HabbitEntry.TABLE_NAME, // The table to query\n projection, // The columns to return\n null, // The columns for the WHERE clause\n null, // The values for the WHERE clause\n null, // Don't group the rows\n null, // Don't filter by row groups\n null); // The sort order\n\n return cursor;\n }",
"Column[] getColumns() { return columns; }",
"public List<ColumnSchema> getColumns() {\n return columns;\n }",
"public ArrayList<Cursor> getData(String Query){\n //get writable database\n SQLiteDatabase sqlDB = this.getWritableDatabase();\n String[] columns = new String[] { \"mesage\" };\n //an array list of cursor to save two cursors one has results from the query\n //other cursor stores error message if any errors are triggered\n ArrayList<Cursor> alc = new ArrayList<Cursor>(2);\n MatrixCursor Cursor2= new MatrixCursor(columns);\n alc.add(null);\n alc.add(null);\n\n\n try{\n String maxQuery = Query ;\n //execute the query results will be save in Cursor c\n Cursor c = sqlDB.rawQuery(maxQuery, null);\n\n\n //add value to cursor2\n Cursor2.addRow(new Object[] { \"Success\" });\n\n alc.set(1,Cursor2);\n if (null != c && c.getCount() > 0) {\n\n\n alc.set(0,c);\n c.moveToFirst();\n\n return alc ;\n }\n return alc;\n } catch(SQLException sqlEx){\n Log.d(\"printing exception\", sqlEx.getMessage());\n //if any exceptions are triggered save the error message to cursor an return the arraylist\n Cursor2.addRow(new Object[] { \"\"+sqlEx.getMessage() });\n alc.set(1,Cursor2);\n return alc;\n } catch(Exception ex){\n\n Log.d(\"printing exception\", ex.getMessage());\n\n //if any exceptions are triggered save the error message to cursor an return the arraylist\n Cursor2.addRow(new Object[] { \"\"+ex.getMessage() });\n alc.set(1,Cursor2);\n return alc;\n }\n\n\n }",
"public Cursor getStudentData(){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n Cursor res = db.rawQuery(\"SELECT * FROM \"+ TABLE_NAME, null);\r\n return res;\r\n }",
"public Cursor retrieve()\n {\n String[] columns={Constants.ROW_ID,Constants.FIRSTNAME,Constants.LASTNAME};\n Cursor c=null;\n c=db.query(Constants.TB_NAME,columns,null,null,null,null,null);\n return c;\n }",
"@Override\n protected Cursor buildCursor() {\n return(db.getReadableDatabase().rawQuery(rawQuery, args));\n }",
"public ArrayList<Column> getColumnArrayList(){\n\t\t\n\t\treturn clist;\n\t\t\n\t}",
"Cursor getList(DBHelper db) {\r\n sdb = db.getReadableDatabase();\r\n String[] columns = {\"list_name\"};\r\n cursor = sdb.query(table_name_1, columns, null, null, null, null, null);\r\n return cursor;\r\n }",
"public abstract long getCursor();",
"public Cursor getWords() \n\t{\n\t\tString query = String.format(_select, getDate()) +\n\t\t\t\t\t\t_havingDataContraint +\n\t\t\t\t\t\t\" ORDER BY \" + DBConstants.WordTable.WORD_KEY;\n\t\t\n\t\treturn _db.rawQuery(query, null);\t\n }",
"public ArrayList<Column> getColumns(String schema, String table) {\r\n try {\r\n Statement stmt = conexion.createStatement();\r\n String sql;\r\n sql = \"SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '\" + schema + \"' AND TABLE_NAME = '\" + table + \"'\";\r\n ResultSet rs = stmt.executeQuery(sql);\r\n ArrayList<Column> columns = new ArrayList();\r\n while (rs.next()) {\r\n Column_Base column = new Column_Base();\r\n column.setTitle(rs.getString(4));\r\n column.setStorageFormat(rs.getString(8));\r\n column.setDecimalPositions(\".\");//default standard mysql\r\n column.setRecordNumber(getRecordNumberColumnBD(schema, table, column.getTitle()));\r\n columns.add(column);\r\n }\r\n return columns;\r\n } catch (SQLException ex) {\r\n Logger.getLogger(DAOBaseDatos.class.getName()).log(Level.SEVERE, null, ex);\r\n return null;\r\n }\r\n\r\n }",
"public ArrayList<ArrayList<Object>> getRowSet()\r\n {\r\n ArrayList<ArrayList<Object>> list = new ArrayList<>();\r\n try {\r\n int c = 0; \r\n while(c < rows)\r\n {\r\n rs.next();\r\n System.out.println(c);\r\n ArrayList<Object> obj = new ArrayList<>();\r\n int col = rs.getMetaData().getColumnCount();\r\n for(int i = 1; i < col; i++)\r\n {\r\n obj.add(rs.getObject(i));\r\n }\r\n list.add(obj);\r\n c++;\r\n }\r\n return list;\r\n \r\n } catch (SQLException ex) {\r\n return list;\r\n }\r\n }",
"public Cursor GetData() {\r\n\t\tCursor c = dbAdapter.getAllCharging();\r\n\t\treturn c;\r\n\t}",
"public List<Column> columns() {\n return this.columns;\n }",
"public abstract String[] getRowValues(Cursor c);",
"java.util.List<com.factset.protobuf.stach.v2.table.ColumnDefinitionProto.ColumnDefinition> \n getColumnsList();",
"public int getColumns() {\n return this.columns;\n }",
"public CursorWrapper getCursor() {\n\t\t\treturn cursor;\n\t\t}",
"public com.sforce.soap.partner.ListViewColumn[] getColumns() {\r\n return columns;\r\n }",
"public int getColumns()\n {\n return columns;\n }",
"public Map<String, ColumnMetaData> getColumns();",
"public Cursor getCursor(){\n return mCursor;\n }",
"public ArrayList<ContentValues> getAll() {\n ArrayList<ContentValues> values = new ArrayList<>();\n // Select all rows in the database\n String select = \"SELECT * FROM \"+MyDBContract.FirstTable.TABLE_NAME+\";\";\n Cursor cursor = getReadableDatabase().rawQuery(select, null);\n\n boolean isEOF = cursor.moveToFirst();\n while (isEOF) {\n String title = cursor.getString(cursor.getColumnIndexOrThrow(MyDBContract.FirstTable.COLUMN_NAME_TEXT));\n int id = cursor.getInt(cursor.getColumnIndexOrThrow(MyDBContract.FirstTable.COLUMN_NAME_ID));\n int quantity = cursor.getInt(cursor.getColumnIndexOrThrow(MyDBContract.FirstTable.COLUMN_NAME_QUANTITY));\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(MyDBContract.FirstTable.COLUMN_NAME_TEXT, title);\n contentValues.put(MyDBContract.FirstTable.COLUMN_NAME_QUANTITY, quantity);\n contentValues.put(MyDBContract.FirstTable.COLUMN_NAME_ID, id);\n values.add(contentValues);\n\n isEOF = cursor.moveToNext();\n }\n cursor.close();\n return values;\n }",
"public Cursor getGames() throws SQLException {\n Cursor mCursor = db.query(true, DATABASE_TABLE_GAMES, new String[]{\n games_GameId, games_GameMode, games_LearningTool, games_ThemeId, games_date, games_TimeLimit}, null, null, null, null, null, null);\n if (mCursor != null) {\n mCursor.moveToFirst();\n }\n return mCursor;\n }",
"public ResultSet getColumns(String table)\n\t{\n\t\tDatabaseMetaData metadata = null;\n\t\tResultSet rs = null;\n\t\ttry\n\t\t{\n\t\t\tConnection conn = source.conn;\n\t\t\tmetadata = conn.getMetaData();\n\t\t\trs = metadata.getColumns(null, sourceSchema, table, \"%\");\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\tLog.error(\"Errore SQL generico: \" + e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}",
"public ArrayList<String> getTableColumns(String _tName) {\n ArrayList<String> retList = new ArrayList<String>();\n\n try {\n ResultSetMetaData rsmd = getMetaData(executeQuery(\"SELECT * FROM \" + _tName));\n\n for (int i = 1; i <= rsmd.getColumnCount(); i++) {\n retList.add(rsmd.getColumnName(i));\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n\n return retList;\n }",
"public ResultSet readAll() throws SQLException {\r\n String statement = \"SELECT * FROM appointments\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public Cursor getDevices(){\n String tabla = devicesContract.deviceEntry.tableName,\n selection = null,\n groupBy = null,\n having = null,\n orderBy = null;\n String[] columnas = null, selectionArgs = null;\n Cursor d = getDevice(tabla,columnas,selection,selectionArgs,groupBy,having,orderBy);\n return d;\n }",
"public Cursor getAllItems() {\n\t\treturn db.query(TABLE_EVENTS, new String[] { ROW_ID, ROW_TITLE,ROW_INFO, ROW_DATE, ROW_TIME, ROW_DATETIME,\n\t\t\tROW_REPEAT,ROW_REPEAT_TEXT, ROW_REPEAT_CNT,ROW_REPEAT_TYPE_ID,ROW_REPEAT_TYPE_TEXT,\n\t\t\tROW_BEFORE,ROW_BEFORE_TEXT, ROW_BEFORE_CNT,ROW_BEFORE_TYPE_ID,ROW_BEFORE_TYPE_TEXT,\n\t\t\t\t\t\t\tROW_ACTIVE }, null, null, null, null, ROW_DATETIME+\" asc\");\n\t}",
"public Cursor CargarTodosLosDatos()\n {\n return db.query(DATABASE_TABLE, new String[] {KEY_ATRIBUTO01}, null, null, null, null, null);\n }"
]
| [
"0.7415791",
"0.7293933",
"0.72649574",
"0.7160263",
"0.70482004",
"0.70251054",
"0.6992307",
"0.682001",
"0.6790929",
"0.6711636",
"0.6709427",
"0.66153127",
"0.65815234",
"0.6554573",
"0.6541158",
"0.653497",
"0.6452066",
"0.6441969",
"0.6434253",
"0.64262027",
"0.6423109",
"0.6421205",
"0.6338212",
"0.63334477",
"0.63218737",
"0.631759",
"0.6249781",
"0.62330145",
"0.6230471",
"0.6224764",
"0.62008303",
"0.6198965",
"0.6182512",
"0.6181532",
"0.61802655",
"0.6155753",
"0.6118444",
"0.6102179",
"0.60993004",
"0.6097979",
"0.6094884",
"0.60729533",
"0.60608643",
"0.6054458",
"0.6018653",
"0.6017425",
"0.60087174",
"0.6003319",
"0.5988082",
"0.59842944",
"0.5983334",
"0.5977542",
"0.5971512",
"0.59687775",
"0.5965755",
"0.5952136",
"0.59431434",
"0.59375286",
"0.5934661",
"0.5916653",
"0.5898298",
"0.58976734",
"0.5896732",
"0.5890228",
"0.58720607",
"0.58544517",
"0.58529145",
"0.5844438",
"0.58334094",
"0.58246994",
"0.5808105",
"0.58065283",
"0.578921",
"0.57838976",
"0.57781726",
"0.5767601",
"0.57569623",
"0.57543856",
"0.57515854",
"0.57415134",
"0.57413226",
"0.57377297",
"0.56778866",
"0.56739473",
"0.5671018",
"0.5655749",
"0.5640829",
"0.5638677",
"0.563732",
"0.5635996",
"0.5635707",
"0.5625216",
"0.5619491",
"0.5615436",
"0.56052226",
"0.5603306",
"0.5595427",
"0.5593916",
"0.5587756",
"0.5568793"
]
| 0.6563937 | 13 |
This Method returns a Cursor containing Rows for all Columns in the Database sorted in Alphabetical Order | public Cursor getSortedData()
{
/* We are using the rawQuery method to execute the SQLite Query we have made and return
* the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns
* we want to select in this case its everything (*) and ORDER BY sorts the Data in this case
* we require Data to be sorted in alphabetical order so we use ASC
* */
return this.getWritableDatabase().rawQuery(
"SELECT * FROM " + TABLE_NAME +
" ORDER BY " + COL2 + " ASC", null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cursor getOrderedCursor() {\n SQLiteDatabase db = getReadableDatabase();\n return db.rawQuery(\"SELECT * FROM goals ORDER BY list_index ASC\", null); // ORDER BY list_index ASC\n }",
"private List<String> getColNames() {\r\n\t\t//\r\n\t\tDBManager dbm = new DBManager(this);\r\n\t\t\r\n\t\tSQLiteDatabase wdb = dbm.getWritableDatabase();\r\n\r\n\t\t// REF=> http://stackoverflow.com/questions/947215/how-to-get-a-list-of-column-names-on-sqlite3-iphone\r\n\t\tString sql = \"PRAGMA table_info('\" + DBManager.tableName + \"')\";\r\n\t\t\r\n\t\tCursor c = wdb.rawQuery(sql, null);\r\n\t\t\r\n\t\t// Log\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getCount() => \" + c.getCount());\r\n\t\t\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getColumnCount() => \" + c.getColumnCount());\r\n\r\n\t\tList<String> colNames = new ArrayList<String>();\r\n\t\t\r\n\t\tc.moveToFirst();\r\n\t\t\r\n\t\tfor (int i = 0; i < c.getCount(); i++) {\r\n\t\t\t\r\n\t\t\tcolNames.add(c.getString(0));\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"c.getString(0) => \" + c.getString(0) + \r\n\t\t\t\t\t\" / \" + \"c.getString(1) => \" + c.getString(1));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tc.moveToNext();\r\n\t\t\t\r\n\t\t}//for (int i = 0; i < c.getCount(); i++)\r\n\t\t\r\n\t\twdb.close();\r\n\t\t\r\n\t\tfor (String string : colNames) {\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"colName => \" + string);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\treturn (String[])colNames.toArray();\r\n\t\treturn colNames;\r\n\t\t\r\n\t}",
"public Cursor fetchAllPreg() {\n\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, KEY_TIME,\n KEY_BODY}, null, null, null, null, null);\n }",
"public Cursor fetchAll() {\n\t\treturn db.query(tableName, fields, null, null, null, null, null);\n\t}",
"public Cursor getCursorWithRows() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length())\n .addLengths(\"val123\".length()).setValues(ByteString\n .copyFromUtf8(\"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS TEAMHELLO\"\n +\n \" TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123val123\"))).build());\n return cursor;\n }",
"public static Cursor getAscentList(SQLiteDatabase db) {\n //grade type\n String[] projection = {\n DatabaseContract.AscentEntry._ID,\n DatabaseContract.AscentEntry.COLUMN_ASCENTTYPENAME,\n DatabaseContract.AscentEntry.COLUMN_DESCRIPTION};\n\n Cursor cursor = db.query(DatabaseContract.AscentEntry.TABLE_NAME,\n projection,\n null,\n null,\n null,\n null,\n null);\n\n return cursor;\n }",
"public Cursor getCursor() throws SQLException\n {\n Cursor c = db.query( true, C_TABLA, columnas, null, null, null, null, null, null);\n\n return c;\n }",
"public Cursor getAllRowData() {\n String where = null;\n Cursor c = \tdb.query(true, DATA_TABLE, null,\n where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }",
"public Cursor getAllRows(){\n Cursor cursor = database.query(dbHelper.TABLE_USERS,allColumns,null,null,null,null,null);\n if (cursor != null){\n cursor.moveToNext();\n }\n return cursor;\n }",
"private Cursor getCursorData() {\n\t\tDBAdventureHelper enclosingInstance = new DBAdventureHelper();\r\n\t\tDBAdventureHelper.AdventureDBHelper mDbHelper = enclosingInstance.new AdventureDBHelper(this);\r\n\t\t// Get the data repository in read mode\r\n\t\tSQLiteDatabase db = mDbHelper.getReadableDatabase();\r\n\r\n\t\t// Projection defines which DB cols you will be pulled from the query\r\n\t\t// Cursor queries the database with the provided parameters; pulling record where ID col == Adventure ID\r\n\t\tCursor c = db.query(\r\n\t\t\t\tAdventureContract.AdventuresTable.ADVENTURES_TABLE_NAME, \t\t\t\t\t\t\t\t\t// The table to query\r\n\t\t\t projection, \t\t\t\t\t\t\t\t\t\t\t\t\t// The columns to return\r\n\t\t\t null,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// The columns for the WHERE clause\r\n\t\t\t null, \t \t\t\t\t\t\t\t\t \t\t\t\t\t\t\t// The values for the WHERE clause\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't group the rows\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't filter by row groups\r\n\t\t\t \"DESC\" \t\t \t\t\t\t\t\t\t\t\t\t\t\t\t// The sort order\r\n\t\t);\r\n\t\tc.moveToFirst();\r\n\t return c;\r\n\t }",
"public Cursor getCursor() {\n String columnas = ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota._ID + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.TITULO + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.CUERPO + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.TIPO + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.IMAGEN + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista._ID + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.TEXTO + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.CHECK + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.IDNOTA;\n\n\n Cursor cursor = db.rawQuery(\"select \" + columnas + \" from \"+ ContratoBaseDatos.TablaNota.TABLA + \" left join \"+ ContratoBaseDatos.TablaLista.TABLA + \" on \" +\n ContratoBaseDatos.TablaNota.TABLA +\".\"+ ContratoBaseDatos.TablaNota._ID + \" = \" + ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.IDNOTA , null);\n\n return cursor;\n\n }",
"public Cursor getAllData() {\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"Select * from \" + TABLE_NAME, null);\n return res;\n }",
"public Cursor fetchAllEntries() {\n /*\n return database.query(\n DATABASE_TABLE, \n new String[] { ROWID, MAC_ADDRESS, LATITUDE, LONGITUDE, FREQUENCY, SIGNAL}, \n null,\n null, \n null,\n null, \n null);\n */\n \n // sql must NOT be ';' terminated\n String sql = \"SELECT \"+ ROWID + \", \" + MAC_ADDRESS + \", \" + LATITUDE + \", \" + LONGITUDE + \", \" \n + NETWORK_NAME + \", \" + CAPABILITIES + \", \" + FREQUENCY + \", \" + SIGNAL\n + \" FROM \" + DATABASE_TABLE;\n return database.rawQuery(sql, null);\n }",
"private static ArrayList getColumns (Connection c, String t)\n\t\tthrows Exception\n\t{\n\t\tStatement s = c.createStatement();\n\t\tResultSet r = s.executeQuery(\"show columns from `\" + t + \"`\");\n\t\tArrayList result = new ArrayList();\n\t\twhile (r.next()) {\n\t\t\tColumnInfo info = new ColumnInfo();\n\t\t\tinfo.name = r.getString(1);\n\t\t\tinfo.type = r.getString(2);\n\t\t\tinfo.nullok = r.getString(3);\n\t\t\tinfo.key = r.getString(4);\n\t\t\tinfo.defaultval = r.getString(5);\n\t\t\tinfo.extra = r.getString(6);\n\t\t\tresult.add(info);\n\t\t}\n\t\ts.close();\n\t\tCollections.sort(result);\n\t\treturn result;\n\t}",
"public static Cursor getAllCursor() {\n String tableName = Cache.getTableInfo(TodoItem.class).getTableName();\n\n // Query all items without any conditions\n String sql = new Select(tableName + \".*, \" + tableName + \".Id as _id\").\n from(TodoItem.class).toSql();\n\n return Cache.openDatabase().rawQuery(sql, null);\n }",
"public abstract Cursor buildCursor();",
"public Cursor fetchAll() {\n\t\tCursor cursor = db.query(CertificationConstants.DB_TABLE, CertificationConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}",
"public Cursor getcname() {\n\t\tString countQuery = \"SELECT * FROM \" + DATABASE_TABLE1;\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t \n\t\treturn cursor;\n\t}",
"public static Cursor getAll(SQLiteDatabase db) {\n Cursor cursor = db.query(\n TABLE_NAME,\n null,\n null,\n null,\n null,\n null,\n COLUMN_NEWS_PUBLISHED_AT + \" DESC\"\n );\n return cursor;\n }",
"List<String> getColumns();",
"public Cursor fetchAll() {\n\t\tCursor cursor = db.query(UserConstants.DB_TABLE, UserConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}",
"public Cursor getCursorWithRowsAsNull() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length()).addLengths(-1).setValues(\n ByteString.copyFromUtf8(\n \"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS \"\n +\n \"TEAMHELLO TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123\"))).build());\n return cursor;\n }",
"public Iterator<String> getDescendingColumnNames() {\n return new LinkedList<>(columnNames).descendingIterator();\n }",
"public Cursor fetchAllEntries() {\n return mDb.query(DATABASE_TABLE, null, null, null, null, null, null);\n }",
"public Cursor getAllFromTable(String tableName) {\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n Cursor cursor = db.query(tableName, getProjection(tableName), null, null, null, null, null);\n db.endTransaction();\n return cursor;\n }",
"public ListIterator<T> getAllByColumnsIterator() {\n\t\tAllByColumnsIterator it = new AllByColumnsIterator();\n\t\treturn it;\n\t}",
"public Cursor getAllItems() {\n\t\treturn db.query(TABLE_EVENTS, new String[] { ROW_ID, ROW_TITLE,ROW_INFO, ROW_DATE, ROW_TIME, ROW_DATETIME,\n\t\t\tROW_REPEAT,ROW_REPEAT_TEXT, ROW_REPEAT_CNT,ROW_REPEAT_TYPE_ID,ROW_REPEAT_TYPE_TEXT,\n\t\t\tROW_BEFORE,ROW_BEFORE_TEXT, ROW_BEFORE_CNT,ROW_BEFORE_TYPE_ID,ROW_BEFORE_TYPE_TEXT,\n\t\t\t\t\t\t\tROW_ACTIVE }, null, null, null, null, ROW_DATETIME+\" asc\");\n\t}",
"public Cursor displayData(){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table;\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }",
"public Cursor getData (){\n SQLiteDatabase database = getReadableDatabase();\n String sql = \"SELECT * FROM \" + TABLE_NAME + \"\";\n return database.rawQuery(sql,null);\n }",
"public Cursor getAllRowsMain() {\n String where = null;\n Cursor c = db.query(true, MAIN_TABLE_NAME, ALL_KEYS_MAIN,\n where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }",
"public Cursor getWords() \n\t{\n\t\tString query = String.format(_select, getDate()) +\n\t\t\t\t\t\t_havingDataContraint +\n\t\t\t\t\t\t\" ORDER BY \" + DBConstants.WordTable.WORD_KEY;\n\t\t\n\t\treturn _db.rawQuery(query, null);\t\n }",
"public Cursor readAllData() {\n\n Cursor objCursor = readSQLite.query(TABLE_OFFICER, new String[]{COLUMN_ID_OFFICER, COLUMN_OFFICER, COLUMN_POSITION, COLUMN_IMAGE, COLUMN_VIDEO, COLUMN_SOUND}, null, null, null, null, null);\n\n if (objCursor != null) {\n objCursor.moveToFirst();\n }\n\n return objCursor;\n }",
"public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"select * from \" + Table_name, null);\n return res;\n }",
"public Cursor getAllData(\n\t\t\t\t\tSQLiteDatabase db, String tableName, String[] cols) {\n\t\t\n\t\t////////////////////////////////\n\n\t\t// validate: table exists\n\n\t\t////////////////////////////////\n\t\t//\n\t\tCursor cursor = db.query(tableName, cols, null, null, null, null, null);\n\t\t\n\t\treturn cursor;\n\t}",
"public List<Column> getColumns();",
"DBCursor execute();",
"void all_Data_retrieve_Days_asc() {\n\t\t\tStatement stm=null;\n\t\t\tResultSet rs=null;\n\t\t\ttry{\n\t\t\t\t//Retrieve tuples by executing SQL command\n\t\t\t stm=con.createStatement();\n\t\t String sql=\"select * from \"+tableName+\" order by Days_on_Market asc\";\n\t\t\t rs=stm.executeQuery(sql);\n\t\t\t DataGUI.model.setRowCount(0);\n\t\t\t //Add rows to table model\n\t\t\t while (rs.next()) {\n\t Vector<Object> newRow = new Vector<Object>();\n\t //Add cells to each row\n\t for (int i = 1; i <=colNum; i++) \n\t newRow.addElement(rs.getObject(i));\n\t DataGUI.model.addRow(newRow);\n\t }//end of while\n\t\t\t //Catch SQL exception\n\t }catch (SQLException e ) {\n\t \te.printStackTrace();\n\t\t } finally {\n\t\t \ttry{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \tcatch (SQLException e ) {\n\t\t \t\te.printStackTrace();\n\t\t\t }\n\t\t }\n\t\t}",
"void all_Data_retrieve_Price_Asc() {\n\t\t\tStatement stm=null;\n\t\t\tResultSet rs=null;\n\t\t\ttry{\n\t\t\t\t//Retrieve tuples by executing SQL command\n\t\t\t stm=con.createStatement();\n\t\t String sql=\"select * from \"+tableName+\" order by Price asc\";\n\t\t\t rs=stm.executeQuery(sql);\n\t\t\t DataGUI.model.setRowCount(0);\n\t\t\t //Add rows to table model\n\t\t\t while (rs.next()) {\n\t Vector<Object> newRow = new Vector<Object>();\n\t //Add cells to each row\n\t for (int i = 1; i <=colNum; i++) \n\t newRow.addElement(rs.getObject(i));\n\t DataGUI.model.addRow(newRow);\n\t }//end of while\n\t\t\t //Catch SQL exception\n\t }catch (SQLException e ) {\n\t \te.printStackTrace();\n\t\t } finally {\n\t\t \ttry{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \tcatch (SQLException e ) {\n\t\t \t\te.printStackTrace();\n\t\t\t }\n\t\t }\n\t}",
"public Cursor getAllTrousersCursor() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }",
"public Cursor getAllShirtsCursor() {\n String selectQuery = \"SELECT * FROM \" + ShirtEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }",
"private static String buildStringFromCursor(Cursor dbCursor)\n {\n String writeString = \"\";\n int columnCount = dbCursor.getColumnCount();\n\n for(int count = 0; count < columnCount; count++)\n {\n writeString += dbCursor.getString(count);\n if(count < columnCount - 1)\n {\n writeString += \"\\t\";\n }\n else\n {\n writeString += \"\\n\";\n }\n }\n return writeString;\n }",
"public ArrayList<T> all() throws SQLException {\n\t\tPreparedStatement stmt = DatabaseConnection.get().prepareStatement(\"select * from \"+table_name() + order_string());\n\t\treturn where(stmt);\n\t}",
"public Collection<TapColumn> findAllColumns();",
"public List getColumnKeys() {\n/* 204 */ List result = new ArrayList();\n/* 205 */ int last = lastCategoryIndex();\n/* 206 */ for (int i = this.firstCategoryIndex; i <= last; i++) {\n/* 207 */ result.add(this.underlying.getColumnKey(i));\n/* */ }\n/* 209 */ return Collections.unmodifiableList(result);\n/* */ }",
"public List<String> getColumns();",
"public Cursor getData()\n {\n /* We are using the rawQuery method to execute the SQLite Query we have made and return\n * the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns\n * we want to select in this case its everything (*)\n */\n return this.getWritableDatabase().rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n }",
"public static void setOrderBy (String columnList){\n fetchAllOrderBy=columnList;\n }",
"public Cursor getAllDataByOrder(int mGameDifficulty) {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"select * from \"+ TABLE_NAME + \" where \" + KEY_GAME_LEVEL + \" = \" + mGameDifficulty + \" order by \" + COL_6 + \" asc\", null);\n\n return res;\n }",
"public List<Column> getColumns() {\n if (columns != null) return columns;\n columns = new ArrayList<Column>();\n for (Column column : getAdapter().getColumns(getTableName())) {\n if (column.getName().equals(getPrimaryKey())) {\n column.setPrimary(true);\n }\n columns.add(column);\n }\n return columns;\n }",
"public Cursor getAllPeopleSortedByGroup() throws SQLException {\r\n\t\treturn db.query(DATABASE_TABLE, new String[] { KEY_PERSON_ID, KEY_NAME,\r\n\t\t\t\tKEY_GROUP_ID, KEY_GIFTEE_1_ID, KEY_GIFTEE_2_ID,\r\n\t\t\t\tKEY_NUM_TIMES_SELECTED }, null, null, null, null, KEY_GROUP_ID);\r\n\t}",
"public Cursor getAll() {\n SQLiteDatabase db = _openHelper.getReadableDatabase();\n if (db == null) {\n return null;\n }\n return db.rawQuery(\"select * from Exams order by _id\", null);\n }",
"private Cursor readReducedRefuelings() {\n\t\treturn mDbHelper.getWritableDatabase().query(\n\t\t\t\tDatabaseOpenHelper.TABLE_NAME,\n\t\t\t\tDatabaseOpenHelper.reducedColumns, null, new String[] {}, null,\n\t\t\t\tnull, DatabaseOpenHelper._ID + \" DESC\");\n\t}",
"Cursor getList(DBHelper db) {\r\n sdb = db.getReadableDatabase();\r\n String[] columns = {\"list_name\"};\r\n cursor = sdb.query(table_name_1, columns, null, null, null, null, null);\r\n return cursor;\r\n }",
"private Cursor getCursorObject() {\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // Define a projection that specifies which columns from the database\n // you will actually use after this query.\n String[] projection = {\n HabbitContract.HabbitEntry._ID,\n HabbitContract.HabbitEntry.COLUMN_HAD_BREAKFAST,\n HabbitContract.HabbitEntry.COLUMN_BREAKFAST_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_LUNCH,\n HabbitContract.HabbitEntry.COLUMN_LUNCH_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_SUPPER,\n HabbitContract.HabbitEntry.COLUMN_SUPPER_MEAL,\n HabbitContract.HabbitEntry.COLUMN_ADDITIONAL_DATA,\n HabbitContract.HabbitEntry.COLUMN_DATETIME_STAMP};\n\n // Perform a query on the nutrition table\n Cursor cursor = db.query(\n HabbitContract.HabbitEntry.TABLE_NAME, // The table to query\n projection, // The columns to return\n null, // The columns for the WHERE clause\n null, // The values for the WHERE clause\n null, // Don't group the rows\n null, // Don't filter by row groups\n null); // The sort order\n\n return cursor;\n }",
"public Cursor CargarTodosLosDatos()\n {\n return db.query(DATABASE_TABLE, new String[] {KEY_ATRIBUTO01}, null, null, null, null, null);\n }",
"public void sortAllRows(){\n\t\t/* code goes here */ \n\t\t\n\t\t\n\t\t//WHY SHOULD THEY BE SORTED LIKE THE EXAMPLE SAYS???????\n\t\t\n\t}",
"Iterator<Column> nonPrimaryKeyBaseColumns();",
"public Cursor getAllRows(String tableName) {\n Cursor c = db.rawQuery(\"SELECT * FROM [\"+tableName.replaceAll(\"\\\\s\", \"_\")+\"]\", null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }",
"public ResultSet queryList(\n\t\t\tVector<String> columns, \n\t\t\tString orderby, \n\t\t\tboolean isAsc \n\t\t)\n\t\t\tthrows SQLException\n\t{\n\t\tString query= \"SELECT \";\n\t\t\n\t\tfor(int i=0; i< columns.size(); i++ )\n\t\t{\n\t\t\tquery += columns.elementAt(i);\n\t\t\t\n\t\t\tif( i< (columns.size()-1) )\n\t\t\t\tquery += \", \";\n\t\t}\n\t\t\n\t\tquery += \" FROM \" + getDBTableName();\n\t\t\n\t\tif( orderby != null )\n\t\t{\n\t\t\tquery += \" ORDER BY \" + orderby;\n\t\t\t\n\t\t\tif( isAsc )\n\t\t\t\tquery += \" ASC\";\n\t\t\telse\n\t\t\t\tquery += \" DESC\";\n\t\t}\n\t\t\n\t\tResultSet rs = DBConnector.getInstance().executeQuery(query);\t\n\t\t\n\t\tApplicationLogger.logDebug(\n\t\t\t\t\tthis.getClass().getSimpleName()\n\t\t\t\t\t+ \".queryList time: \"\n\t\t\t\t\t+ DBConnector.getInstance().getQueryTime() \n\t\t\t\t\t+ \" ms\"\n\t\t\t);\n\t\t\n\t\treturn rs;\n\t}",
"public Cursor getAllContact()\n {\n return db.query(DATABASE_TABLE,new String[]{KEY_ROWID,KEY_NAME,\n KEY_EMAIL},null,null,null,null,null);\n }",
"java.util.List<Column>\n getColumnsList();",
"public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }",
"public ArrayList<TEntity> getAll(){\n ArrayList<TEntity> list = new ArrayList<TEntity>();\n\n Cursor cursor = db.query(tableName, columns, null, null, null, null, null);\n\n cursor.moveToFirst();\n\n while (!cursor.isAfterLast()) {\n list.add(fromCursor(cursor));\n cursor.moveToNext();\n }\n\n return list;\n }",
"@NonNull\n Collection<TObj> getAll() {\n Collection<TObj> result = new LinkedList<>();\n for (int countR = mData.size(), i = 0; i < countR; i++) {\n int rowKey = mData.keyAt(i);\n SparseArrayCompat<TObj> columns = mData.get(rowKey);\n for (int countC = columns.size(), j = 0; j < countC; j++) {\n int key = columns.keyAt(j);\n result.add(columns.get(key));\n }\n }\n return result;\n }",
"DataFrameCursor<R,C> cursor();",
"List<Column> getQueryColumns();",
"private ArrayList<Credential> getKeyLists(){\n String[] projection = {\r\n CredentialsContract.CredentialsEntry._ID,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_keyhandle,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_username,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_appid,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_authenticate_portal,\r\n CredentialsContract.CredentialsEntry.COLUMN_NAME_counter\r\n };\r\n\r\n// How you want the results sorted in the resulting Cursor\r\n String sortOrder =\r\n CredentialsContract.CredentialsEntry._ID + \" ASC\";\r\n\r\n Cursor c = dbReadable.query(\r\n CredentialsContract.CredentialsEntry.TABLE_NAME, // The table to query\r\n projection, // The columns to return\r\n null, // The columns for the WHERE clause\r\n null, // The values for the WHERE clause\r\n null, // don't group the rows\r\n null, // don't filter by row groups\r\n sortOrder // The sort order\r\n );\r\n\r\n ArrayList<Credential> temp = new ArrayList<Credential>();\r\n if(c.moveToFirst()){\r\n do{\r\n Credential reg = new Credential(\r\n c.getInt(c.getColumnIndex(CredentialsContract.CredentialsEntry._ID)),\r\n c.getString(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_keyhandle)),\r\n c.getString(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_username)),\r\n c.getString(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_appid)),\r\n c.getString(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_authenticate_portal)),\r\n c.getInt(c.getColumnIndex(CredentialsContract.CredentialsEntry.COLUMN_NAME_counter))\r\n );\r\n temp.add(reg);\r\n }\r\n while(c.moveToNext());\r\n }\r\n return temp;\r\n }",
"public Set<String> columns() {\n if (columnsDefinedOrder.size() <= 0) {\n columnsDefinedOrder = rows.stream()\n .findFirst()\n .map(x -> new ArrayList<>(x.keySet()))\n .orElse(columnsDefinedOrder);\n }\n\n return new LinkedHashSet<>(columnsDefinedOrder);\n }",
"public SortedSet<String> getColumns()\n\t\t{\n\t\treturn Collections.unmodifiableSortedSet(columns);\n\t\t}",
"public ArrayList<String> getTableColumns(String _tName) {\n ArrayList<String> retList = new ArrayList<String>();\n\n try {\n ResultSetMetaData rsmd = getMetaData(executeQuery(\"SELECT * FROM \" + _tName));\n\n for (int i = 1; i <= rsmd.getColumnCount(); i++) {\n retList.add(rsmd.getColumnName(i));\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n\n return retList;\n }",
"public String sort() throws DatabaseException {\n //doesn't do anything\n return this.tableName;\n\n }",
"private Cursor query(String selection, String[] columns) {\n \n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\n builder.setTables(TABLE_NAME);\n\n Cursor cursor = builder.query(\n sqliteDB, // SQLiteDatabase\n columns, // columns\n selection, // selection\n null, // selectionArgs\n null, // groupBy\n null, // having\n null // sortOrder\n );\n \n if (cursor == null) {\n return null;\n } else if (!cursor.moveToFirst()) {\n cursor.close();\n return null;\n }\n\n return convertCursorToMatrixCursor(cursor);\n }",
"public abstract String[] getRowValues(Cursor c);",
"public static Cursor getDashboardContactList() {\n\t\tLog.d(\" QuizApp--SQLHelper\", \"Contact--Querying Data\");\n\t\treturn db.rawQuery(\"select * from Contact order by name\", null);\n\t}",
"Iterator<Column> baseColumns();",
"@Override\n protected Cursor buildCursor() {\n return(db.getReadableDatabase().rawQuery(rawQuery, args));\n }",
"String getSortColumn();",
"OrderByColumnFull createOrderByColumnFull();",
"public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n String query= \"SELECT * FROM credit_table\";\n Cursor data = db.rawQuery(query,null);\n return data;\n }",
"public Cursor retrieve()\n {\n String[] columns={Constants.ROW_ID,Constants.FIRSTNAME,Constants.LASTNAME};\n Cursor c=null;\n c=db.query(Constants.TB_NAME,columns,null,null,null,null,null);\n return c;\n }",
"public Cursor getAllTermListItemsCursor(String table) {\n // Select All Query\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table + \" ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }",
"@Override\n public List<PmTableCol> getColumns() {\n if (this.sortOrderSelection == null) {\n List<PmTableCol> cols = PmUtil.getPmChildrenOfType(this, PmTableCol.class);\n for (int i=0; i<cols.size(); ++i) {\n cols.get(i).getColPosAttr().setValue(i);\n }\n this.sortOrderSelection = new SortOrderSelection(cols);\n return cols;\n }\n else {\n return PmUtil.getPmChildrenOfType(this, PmTableCol.class);\n }\n }",
"@Override\n public IDataCursor getCursor() {\n return new CaseInsensitiveElementListIDataCursor();\n }",
"public List selectAll() {\n\t\tList values = new ArrayList();\n\t\topen();\n\t\tCursor c = queryDB();\n\n\t\tif (c.moveToFirst()) {\n\t\t\tdo {\n\t\t\t//\tvalues.add(hydrateNewObject(c));\n\t\t\t} while (c.moveToNext());\n\t\t}\n\t\t\n\t\tc.close();\n\t\tclose();\n\t\t\n\t\treturn values;\n\t}",
"public List<String> getData1() {\n List<String> arr=new ArrayList<String>();\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + TABLE_NAME +\" ORDER BY \" + POSITIONNO + \" ASC\",null);\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n String name = cursor.getString(cursor.getColumnIndex(ROOMNAME));\n\n arr.add(name);\n cursor.moveToNext();\n }\n }\n\n return arr;\n }",
"private Cursor query(String tables, String[] columns, String selection, String[] selectionArgs, String groupBy,\n\t\t\tString orderBy) {\n\t\t/*\n\t\t * The SQLiteBuilder provides a map for all possible columns requested\n\t\t * to actual columns in the database, creating a simple column alias\n\t\t * mechanism by which the ContentProvider does not need to know the real\n\t\t * column names\n\t\t */\n\t\tSQLiteQueryBuilder builder = new SQLiteQueryBuilder();\n\t\tbuilder.setTables(tables);\n\n\t\tCursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(), columns, selection, selectionArgs,\n\t\t\t\tgroupBy, null, orderBy);\n\n\t\tif (cursor == null) {\n\t\t\tLog.w(TAG, \"No data available from the query\");\n\t\t\treturn null;\n\t\t} else if (!cursor.moveToFirst()) {\n\t\t\tLog.w(TAG, \"No data available from the query\");\n\t\t\tcursor.close();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tLog.d(TAG, \"Returning \" + cursor.getCount() + \" records\");\n\t\t\n\t\treturn cursor;\n\t}",
"public Cursor getAllTermsCursor(String table) {\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + table + \" ORDER BY \" + KEY_TERM;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }",
"private void printCursor(Cursor cursor)\n {\n \tif(cursor == null) return;\n \tif(cursor.getCount() == 0) return;\n \t\n \tcursor.moveToFirst();\n \tint index = 1;\n \tint keyIndex = cursor.getColumnIndex(KEY_FIELD);\n\t\tint valueIndex = cursor.getColumnIndex(VALUE_FIELD);\n\n\t\tLog.d(\"window_shopper\",\"row_\"+index+\"::\"+cursor.getString(keyIndex)+\"::\"+cursor.getString(valueIndex));\n\t\tindex++;\n\t\twhile(cursor.moveToNext())\n \t{\n \t\tLog.d(\"window_shopper\",\"row_\"+index+\"::\"+cursor.getString(keyIndex)+\":\"+cursor.getString(valueIndex));\n \t\tindex++;\n \t}\n \tcursor.moveToFirst();\n \tcursor.close();\n \treturn;\n }",
"public Cursor getAllAgencies() {\n\t\t\treturn db.query(AGENCIES_TABLE, new String[] {\n\t\t\t\t\t// importing only needed columns instead of all\n\t\t\t\t\tKEY_ROWID,\n\t\t\t\t\tKEY_AGENCYNAME},\n\t\t\t\t\tnull,\n\t\t\t\t\tnull,\n\t\t\t\t\tnull,\n\t\t\t\t\tnull,\n\t\t\t\t\tnull);\t\t\t\t\n\t\t}",
"public static Cursor getBusINFOCursor() {\r\n SQLiteDatabase db = SearchHelper.getReadableDatabase();\r\n if(Bus.isLanguare()==true) {\r\n Cursor cursor = db.rawQuery(Prefix_Data_SQL.QUERY_BUS_BASIC_INFO_TC_SQL, null);\r\n return cursor;\r\n }else{\r\n Cursor cursor = db.rawQuery(Prefix_Data_SQL.QUERY_BUS_BASIC_INFO_EN_SQL, null);\r\n return cursor;\r\n }\r\n }",
"Iterator<ColumnPair> columnPairs();",
"public Cursor fetchAllCourses() {\r\nreturn database.query(DATABASE_TABLE, new String[] { KEY_ROWID, KEY_CATEGORY, KEY_COURSENAME, KEY_ASSIGNMENTNAME, KEY_DESCRIPTION, KEY_DUEDATE, KEY_COMPLETED }, null, null, null,\r\nnull, null);\r\n}",
"public Cursor getAll(){\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor;\n cursor = db.rawQuery(\"SELECT * from tweets\",null);\n return cursor;\n }",
"public Cursor getStudentData(){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n Cursor res = db.rawQuery(\"SELECT * FROM \"+ TABLE_NAME, null);\r\n return res;\r\n }",
"public Cursor getAllLists() {\n //Seleccionamos todas las filas de la tabla List\n return database.rawQuery(\n \"select * from \" + LIST_TABLE_NAME, null);\n }",
"public ArrayList<ColumnInTable> getAllColumns() {\n Schema schema = Schema.getSchema();\n ArrayList<ColumnInTable> columns = new ArrayList<ColumnInTable>();\n \n for (int i = 0; i < fromTables.size(); i++) {\n Table t = schema.getTable(fromTables.get(i).first());\n for (Entry<String, Column> entry: t.getAllColumns().entrySet()) {\n columns.add(new ColumnInTable(entry.getValue(), i));\n }\n }\n \n return columns;\n }",
"public Cursor getData() {\n Cursor res = db.rawQuery( \"select * from TRACKDATA order by TRACKID DESC\", null );\n return res;\n }",
"public abstract long getCursor();",
"public Cursor getRecords() {\n Cursor c;\n try {\n c = db.rawQuery(\"select * from \" + MyOpenHelper.TLoginDetails, null);\n return c;\n } catch (Exception e) {\n Log.e(\"Error At\", \" \" + e);\n e.printStackTrace();\n // TODO: handle exception\n return null;\n }\n }",
"public Cursor fetchCourse(long rowId) throws SQLException\r\n{\r\nCursor mCursor = database.query(true, DATABASE_TABLE, new String[] { KEY_ROWID, KEY_CATEGORY, KEY_COURSENAME, KEY_ASSIGNMENTNAME, KEY_DESCRIPTION, KEY_DUEDATE, KEY_COMPLETED }, null, null, null,\r\nnull, null, null);\r\nif (mCursor != null)\r\n{\r\nmCursor.moveToFirst();\r\n}\r\nreturn mCursor;\r\n}"
]
| [
"0.66492707",
"0.65245426",
"0.6499028",
"0.6418566",
"0.63413817",
"0.63031614",
"0.62624574",
"0.6248283",
"0.62460864",
"0.624526",
"0.61936015",
"0.61721665",
"0.6133015",
"0.6123717",
"0.6082915",
"0.59998006",
"0.59167063",
"0.5900939",
"0.58993447",
"0.5867906",
"0.5858557",
"0.5855597",
"0.58471566",
"0.58340186",
"0.58065945",
"0.58036053",
"0.57986593",
"0.5796177",
"0.5778025",
"0.57778496",
"0.5769576",
"0.57417226",
"0.5741555",
"0.5737667",
"0.5731812",
"0.5729368",
"0.57089484",
"0.56946945",
"0.56920666",
"0.5673818",
"0.5673111",
"0.5660689",
"0.56391543",
"0.563658",
"0.5628746",
"0.56259525",
"0.56191105",
"0.560894",
"0.5608357",
"0.5601211",
"0.55857944",
"0.55832803",
"0.55711704",
"0.55626494",
"0.55559695",
"0.5538389",
"0.5524131",
"0.552004",
"0.55197895",
"0.5517993",
"0.55143154",
"0.55059195",
"0.55025226",
"0.5477612",
"0.546589",
"0.54635894",
"0.5456906",
"0.54495215",
"0.5447879",
"0.5443784",
"0.5440167",
"0.5438954",
"0.5436307",
"0.54321194",
"0.5420446",
"0.54166096",
"0.5415504",
"0.541524",
"0.54125905",
"0.5407451",
"0.54072165",
"0.5404486",
"0.54038805",
"0.5401862",
"0.54000074",
"0.5396513",
"0.5393276",
"0.5386098",
"0.53703904",
"0.5355541",
"0.5341061",
"0.53395253",
"0.5334625",
"0.5333313",
"0.53283936",
"0.5319056",
"0.5313247",
"0.52998984",
"0.52956045",
"0.52952874"
]
| 0.7286982 | 0 |
This Method returns a Cursor containing Rows for all Columns in the Database that are similar to the Data that is to be Filtered | public Cursor getSearchedData(String filterData)
{
filterData = filterData.toUpperCase();
/* We are using the rawQuery method to execute the SQLite Query we have made and return
* the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns
* we want to select in this case its everything (*), WHERE specifies the Condition
* we place in this case we First check COL2 which contains the Movie Titles and Use Upper
* to make it Upper Case and we use LIKE to see if the Movie Title from COL2 contains the
* data that we are filtering, this same condition applies for COL4 and COl5 and by
* using OR we can fulfil the WHERE Condition if any of these Conditions are met
* */
return this.getWritableDatabase().rawQuery(
"SELECT * FROM " + TABLE_NAME +
" WHERE upper(" + COL2 + ") LIKE '%" + filterData + "%'" +
" OR upper(" + COL4 + ") LIKE '%" + filterData + "%'" +
" OR upper(" + COL5 + ") LIKE '%" + filterData + "%'", null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Cursor getCursorWithRows() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length())\n .addLengths(\"val123\".length()).setValues(ByteString\n .copyFromUtf8(\"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS TEAMHELLO\"\n +\n \" TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123val123\"))).build());\n return cursor;\n }",
"public Cursor getAllRowData() {\n String where = null;\n Cursor c = \tdb.query(true, DATA_TABLE, null,\n where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }",
"public Cursor getAllRows(){\n Cursor cursor = database.query(dbHelper.TABLE_USERS,allColumns,null,null,null,null,null);\n if (cursor != null){\n cursor.moveToNext();\n }\n return cursor;\n }",
"public Cursor fetchAllPreg() {\n\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TITLE, KEY_TIME,\n KEY_BODY}, null, null, null, null, null);\n }",
"public ListIterator<T> getAllByColumnsIterator() {\n\t\tAllByColumnsIterator it = new AllByColumnsIterator();\n\t\treturn it;\n\t}",
"public Cursor getCursorWithRowsAsNull() {\n Cursor cursor = new SimpleCursor(Query.QueryResult.newBuilder()\n .addFields(Query.Field.newBuilder().setName(\"col1\").setType(Query.Type.INT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col2\").setType(Query.Type.UINT8).build())\n .addFields(Query.Field.newBuilder().setName(\"col3\").setType(Query.Type.INT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col4\").setType(Query.Type.UINT16).build())\n .addFields(Query.Field.newBuilder().setName(\"col5\").setType(Query.Type.INT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col6\").setType(Query.Type.UINT24).build())\n .addFields(Query.Field.newBuilder().setName(\"col7\").setType(Query.Type.INT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col8\").setType(Query.Type.UINT32).build())\n .addFields(Query.Field.newBuilder().setName(\"col9\").setType(Query.Type.INT64).build())\n .addFields(Query.Field.newBuilder().setName(\"col10\").setType(Query.Type.UINT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col11\").setType(Query.Type.FLOAT32).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col12\").setType(Query.Type.FLOAT64).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col13\").setType(Query.Type.TIMESTAMP).build())\n .addFields(Query.Field.newBuilder().setName(\"col14\").setType(Query.Type.DATE).build())\n .addFields(Query.Field.newBuilder().setName(\"col15\").setType(Query.Type.TIME).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col16\").setType(Query.Type.DATETIME).build())\n .addFields(Query.Field.newBuilder().setName(\"col17\").setType(Query.Type.YEAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col18\").setType(Query.Type.DECIMAL).build())\n .addFields(Query.Field.newBuilder().setName(\"col19\").setType(Query.Type.TEXT).build())\n .addFields(Query.Field.newBuilder().setName(\"col20\").setType(Query.Type.BLOB).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col21\").setType(Query.Type.VARCHAR).build())\n .addFields(\n Query.Field.newBuilder().setName(\"col22\").setType(Query.Type.VARBINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col23\").setType(Query.Type.CHAR).build())\n .addFields(Query.Field.newBuilder().setName(\"col24\").setType(Query.Type.BINARY).build())\n .addFields(Query.Field.newBuilder().setName(\"col25\").setType(Query.Type.BIT).build())\n .addFields(Query.Field.newBuilder().setName(\"col26\").setType(Query.Type.ENUM).build())\n .addFields(Query.Field.newBuilder().setName(\"col27\").setType(Query.Type.SET).build())\n .addRows(Query.Row.newBuilder().addLengths(\"-50\".length()).addLengths(\"50\".length())\n .addLengths(\"-23000\".length()).addLengths(\"23000\".length())\n .addLengths(\"-100\".length()).addLengths(\"100\".length()).addLengths(\"-100\".length())\n .addLengths(\"100\".length()).addLengths(\"-1000\".length()).addLengths(\"1000\".length())\n .addLengths(\"24.52\".length()).addLengths(\"100.43\".length())\n .addLengths(\"2016-02-06 14:15:16\".length()).addLengths(\"2016-02-06\".length())\n .addLengths(\"12:34:56\".length()).addLengths(\"2016-02-06 14:15:16\".length())\n .addLengths(\"2016\".length()).addLengths(\"1234.56789\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"HELLO TDS TEAM\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"N\".length()).addLengths(\"HELLO TDS TEAM\".length())\n .addLengths(\"1\".length()).addLengths(\"val123\".length()).addLengths(-1).setValues(\n ByteString.copyFromUtf8(\n \"-5050-2300023000-100100-100100-1000100024.52100.432016-02-06 \" +\n \"14:15:162016-02-0612:34:562016-02-06 14:15:1620161234.56789HELLO TDS TEAMHELLO TDS \"\n +\n \"TEAMHELLO TDS TEAMHELLO TDS TEAMNHELLO TDS TEAM1val123\"))).build());\n return cursor;\n }",
"public Cursor getAllData() {\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"Select * from \" + TABLE_NAME, null);\n return res;\n }",
"public static Cursor getAllCursor() {\n String tableName = Cache.getTableInfo(TodoItem.class).getTableName();\n\n // Query all items without any conditions\n String sql = new Select(tableName + \".*, \" + tableName + \".Id as _id\").\n from(TodoItem.class).toSql();\n\n return Cache.openDatabase().rawQuery(sql, null);\n }",
"public Cursor fetchAll() {\n\t\treturn db.query(tableName, fields, null, null, null, null, null);\n\t}",
"public Cursor fetchAllEntries() {\n /*\n return database.query(\n DATABASE_TABLE, \n new String[] { ROWID, MAC_ADDRESS, LATITUDE, LONGITUDE, FREQUENCY, SIGNAL}, \n null,\n null, \n null,\n null, \n null);\n */\n \n // sql must NOT be ';' terminated\n String sql = \"SELECT \"+ ROWID + \", \" + MAC_ADDRESS + \", \" + LATITUDE + \", \" + LONGITUDE + \", \" \n + NETWORK_NAME + \", \" + CAPABILITIES + \", \" + FREQUENCY + \", \" + SIGNAL\n + \" FROM \" + DATABASE_TABLE;\n return database.rawQuery(sql, null);\n }",
"Iterator<Column> nonPrimaryKeyBaseColumns();",
"public Collection<TapColumn> findAllColumns();",
"List<Column> getQueryColumns();",
"public Cursor getAllRowsMain() {\n String where = null;\n Cursor c = db.query(true, MAIN_TABLE_NAME, ALL_KEYS_MAIN,\n where, null, null, null, null, null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }",
"ColumnInfoFilter getColumnInfoFilter();",
"public Cursor getCursor() {\n String columnas = ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota._ID + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.TITULO + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.CUERPO + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.TIPO + \", \" +\n ContratoBaseDatos.TablaNota.TABLA + \".\" + ContratoBaseDatos.TablaNota.IMAGEN + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista._ID + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.TEXTO + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.CHECK + \", \" +\n ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.IDNOTA;\n\n\n Cursor cursor = db.rawQuery(\"select \" + columnas + \" from \"+ ContratoBaseDatos.TablaNota.TABLA + \" left join \"+ ContratoBaseDatos.TablaLista.TABLA + \" on \" +\n ContratoBaseDatos.TablaNota.TABLA +\".\"+ ContratoBaseDatos.TablaNota._ID + \" = \" + ContratoBaseDatos.TablaLista.TABLA + \".\" + ContratoBaseDatos.TablaLista.IDNOTA , null);\n\n return cursor;\n\n }",
"private Cursor query(String selection, String[] columns) {\n \n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\n builder.setTables(TABLE_NAME);\n\n Cursor cursor = builder.query(\n sqliteDB, // SQLiteDatabase\n columns, // columns\n selection, // selection\n null, // selectionArgs\n null, // groupBy\n null, // having\n null // sortOrder\n );\n \n if (cursor == null) {\n return null;\n } else if (!cursor.moveToFirst()) {\n cursor.close();\n return null;\n }\n\n return convertCursorToMatrixCursor(cursor);\n }",
"public Cursor readAllData() {\n\n Cursor objCursor = readSQLite.query(TABLE_OFFICER, new String[]{COLUMN_ID_OFFICER, COLUMN_OFFICER, COLUMN_POSITION, COLUMN_IMAGE, COLUMN_VIDEO, COLUMN_SOUND}, null, null, null, null, null);\n\n if (objCursor != null) {\n objCursor.moveToFirst();\n }\n\n return objCursor;\n }",
"protected Set<String> filterColumns() {\n return columnSelectionMap.keySet();\n }",
"public Cursor getAllTermListItemsCursorWithFilter(String table, String constraint) {\n // Select All Query\n // Source: http://stackoverflow.com/questions/5186310/android-nearest-match-query-from-sqlite-db-if-input-string-value-is-bigger-tha\n String selectQuery = \"SELECT \" + KEY_ID + \", \" + KEY_TERM + \" FROM \" + table\n + \" WHERE \" + KEY_TERM + \" LIKE '%\" + constraint + \"%'\"\n + \" ORDER BY abs(length('\" + constraint + \"') - length(\" + KEY_TERM + \"))\";\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }",
"public Cursor getWords() \n\t{\n\t\tString query = String.format(_select, getDate()) +\n\t\t\t\t\t\t_havingDataContraint +\n\t\t\t\t\t\t\" ORDER BY \" + DBConstants.WordTable.WORD_KEY;\n\t\t\n\t\treturn _db.rawQuery(query, null);\t\n }",
"private Cursor getCursorData() {\n\t\tDBAdventureHelper enclosingInstance = new DBAdventureHelper();\r\n\t\tDBAdventureHelper.AdventureDBHelper mDbHelper = enclosingInstance.new AdventureDBHelper(this);\r\n\t\t// Get the data repository in read mode\r\n\t\tSQLiteDatabase db = mDbHelper.getReadableDatabase();\r\n\r\n\t\t// Projection defines which DB cols you will be pulled from the query\r\n\t\t// Cursor queries the database with the provided parameters; pulling record where ID col == Adventure ID\r\n\t\tCursor c = db.query(\r\n\t\t\t\tAdventureContract.AdventuresTable.ADVENTURES_TABLE_NAME, \t\t\t\t\t\t\t\t\t// The table to query\r\n\t\t\t projection, \t\t\t\t\t\t\t\t\t\t\t\t\t// The columns to return\r\n\t\t\t null,\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// The columns for the WHERE clause\r\n\t\t\t null, \t \t\t\t\t\t\t\t\t \t\t\t\t\t\t\t// The values for the WHERE clause\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't group the rows\r\n\t\t\t null, \t\t\t\t\t\t\t\t\t\t\t\t\t// don't filter by row groups\r\n\t\t\t \"DESC\" \t\t \t\t\t\t\t\t\t\t\t\t\t\t\t// The sort order\r\n\t\t);\r\n\t\tc.moveToFirst();\r\n\t return c;\r\n\t }",
"private List<String> getColNames() {\r\n\t\t//\r\n\t\tDBManager dbm = new DBManager(this);\r\n\t\t\r\n\t\tSQLiteDatabase wdb = dbm.getWritableDatabase();\r\n\r\n\t\t// REF=> http://stackoverflow.com/questions/947215/how-to-get-a-list-of-column-names-on-sqlite3-iphone\r\n\t\tString sql = \"PRAGMA table_info('\" + DBManager.tableName + \"')\";\r\n\t\t\r\n\t\tCursor c = wdb.rawQuery(sql, null);\r\n\t\t\r\n\t\t// Log\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getCount() => \" + c.getCount());\r\n\t\t\r\n\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t+ \"]\", \"c.getColumnCount() => \" + c.getColumnCount());\r\n\r\n\t\tList<String> colNames = new ArrayList<String>();\r\n\t\t\r\n\t\tc.moveToFirst();\r\n\t\t\r\n\t\tfor (int i = 0; i < c.getCount(); i++) {\r\n\t\t\t\r\n\t\t\tcolNames.add(c.getString(0));\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"c.getString(0) => \" + c.getString(0) + \r\n\t\t\t\t\t\" / \" + \"c.getString(1) => \" + c.getString(1));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tc.moveToNext();\r\n\t\t\t\r\n\t\t}//for (int i = 0; i < c.getCount(); i++)\r\n\t\t\r\n\t\twdb.close();\r\n\t\t\r\n\t\tfor (String string : colNames) {\r\n\t\t\t\r\n\t\t\t// Log\r\n\t\t\tLog.d(\"DBAdminActivity.java\" + \"[\"\r\n\t\t\t\t\t+ Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n\t\t\t\t\t+ \"]\", \"colName => \" + string);\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n//\t\treturn (String[])colNames.toArray();\r\n\t\treturn colNames;\r\n\t\t\r\n\t}",
"@NonNull\n Collection<TObj> getAll() {\n Collection<TObj> result = new LinkedList<>();\n for (int countR = mData.size(), i = 0; i < countR; i++) {\n int rowKey = mData.keyAt(i);\n SparseArrayCompat<TObj> columns = mData.get(rowKey);\n for (int countC = columns.size(), j = 0; j < countC; j++) {\n int key = columns.keyAt(j);\n result.add(columns.get(key));\n }\n }\n return result;\n }",
"public Cursor getData()\n {\n /* We are using the rawQuery method to execute the SQLite Query we have made and return\n * the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns\n * we want to select in this case its everything (*)\n */\n return this.getWritableDatabase().rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n }",
"public Cursor fetchAll() {\n\t\tCursor cursor = db.query(CertificationConstants.DB_TABLE, CertificationConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}",
"public Cursor getData (){\n SQLiteDatabase database = getReadableDatabase();\n String sql = \"SELECT * FROM \" + TABLE_NAME + \"\";\n return database.rawQuery(sql,null);\n }",
"public Cursor getAllFromTable(String tableName) {\n SQLiteDatabase db = dbHelper.getDatabase();\n db.beginTransaction();\n Cursor cursor = db.query(tableName, getProjection(tableName), null, null, null, null, null);\n db.endTransaction();\n return cursor;\n }",
"Iterator<Column> baseColumns();",
"public Cursor getCursor() throws SQLException\n {\n Cursor c = db.query( true, C_TABLA, columnas, null, null, null, null, null, null);\n\n return c;\n }",
"public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.rawQuery(\"select * from \" + Table_name, null);\n return res;\n }",
"public List<Object[]> select() {\n return selectColumns(metadata.getColumns());\n }",
"public Cursor fetchAllEntries() {\n return mDb.query(DATABASE_TABLE, null, null, null, null, null, null);\n }",
"public Cursor getAllFavPairsCursor() {\n String selectQuery =\n \"SELECT \" + FavoriteEntry.TABLE_NAME + \".*\" + COMMA_SEP +\n ShirtEntry.TABLE_NAME + \".\" + ShirtEntry.IMG_PATH + COMMA_SEP +\n TrouserEntry.TABLE_NAME + \".\" + TrouserEntry.IMG_PATH +\n \" FROM \" + FavoriteEntry.TABLE_NAME + COMMA_SEP +\n ShirtEntry.TABLE_NAME + COMMA_SEP + TrouserEntry.TABLE_NAME +\n \" WHERE \" + FavoriteEntry.TABLE_NAME + \".\" + FavoriteEntry.SHIRT_ID + \"=\" +\n ShirtEntry.TABLE_NAME + \".\" + ShirtEntry._ID + \" AND \" +\n FavoriteEntry.TABLE_NAME + \".\" + FavoriteEntry.TROUSER_ID + \"=\" +\n TrouserEntry.TABLE_NAME + \".\" + TrouserEntry._ID;\n\n Log.d(TAG, \"All Fav Pairs Query = \" + selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }",
"List<String> getColumns();",
"public Cursor getAllRows(String tableName) {\n Cursor c = db.rawQuery(\"SELECT * FROM [\"+tableName.replaceAll(\"\\\\s\", \"_\")+\"]\", null);\n if (c != null) {\n c.moveToFirst();\n }\n return c;\n }",
"public abstract Cursor buildCursor();",
"private Cursor query(String tables, String[] columns, String selection, String[] selectionArgs, String groupBy,\n\t\t\tString orderBy) {\n\t\t/*\n\t\t * The SQLiteBuilder provides a map for all possible columns requested\n\t\t * to actual columns in the database, creating a simple column alias\n\t\t * mechanism by which the ContentProvider does not need to know the real\n\t\t * column names\n\t\t */\n\t\tSQLiteQueryBuilder builder = new SQLiteQueryBuilder();\n\t\tbuilder.setTables(tables);\n\n\t\tCursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(), columns, selection, selectionArgs,\n\t\t\t\tgroupBy, null, orderBy);\n\n\t\tif (cursor == null) {\n\t\t\tLog.w(TAG, \"No data available from the query\");\n\t\t\treturn null;\n\t\t} else if (!cursor.moveToFirst()) {\n\t\t\tLog.w(TAG, \"No data available from the query\");\n\t\t\tcursor.close();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tLog.d(TAG, \"Returning \" + cursor.getCount() + \" records\");\n\t\t\n\t\treturn cursor;\n\t}",
"public List<Column> getColumns();",
"public Cursor getAllShirtsCursor() {\n String selectQuery = \"SELECT * FROM \" + ShirtEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }",
"public Cursor getcname() {\n\t\tString countQuery = \"SELECT * FROM \" + DATABASE_TABLE1;\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t \n\t\treturn cursor;\n\t}",
"Data<List<Boards>> getSearchBoardsCursor(String query, String cursor, String fields);",
"public Cursor fetchAll() {\n\t\tCursor cursor = db.query(UserConstants.DB_TABLE, UserConstants.fields(), null, null, null, null, null);\n\t\treturn cursor;\n\t}",
"@Override\n\tpublic boolean hasNext() {\n\t\tthis.res = new Row();\n\t\ttry{\n\t\t\twhile(index < dataCopy.size()){\n\t\t\t\tdata2 = dataCopy.get(index++);\t\t\t\t\t\t\t\n\t\t\t\tif(whereExp != null && !eval1.eval(whereExp).toBool()) continue;\t\n\t\t\t\t\n\t\t\t\tTableContainer.orderByData.add(new Row());\n\t\t\t\tfor(PrimitiveValue v : data2.rowList)\n\t\t\t\t\tTableContainer.orderByData.get(count).rowList.add(v);\t\n\t\t\t\tcount++;\n\t\t\t\n\t\t\t\t/*if the query is SELECT * FROM R*/\n\t\t\t\tif(flag2){\n\t\t\t\t\tres = data2;\n\t\t\t\t}else{\n\t\t\t\t\t/*if it is the regular query*/\n\t\t\t\t\tfor (int i = 0; i < itemLen; i++) res.rowList.add(eval1.eval((selectItemsExpression.get(i))));\n\t\t\t\t}\n\t\t\t\treturn true;\t\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false;\n\t}",
"public Cursor displayData(){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table;\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }",
"boolean getIncludesAllColumns();",
"public Cursor getDevices(){\n String tabla = devicesContract.deviceEntry.tableName,\n selection = null,\n groupBy = null,\n having = null,\n orderBy = null;\n String[] columnas = null, selectionArgs = null;\n Cursor d = getDevice(tabla,columnas,selection,selectionArgs,groupBy,having,orderBy);\n return d;\n }",
"java.util.List<Column>\n getColumnsList();",
"@Override\n public Set<String> getAllColumnIds() {\n return subFilter.getAllColumnIds();\n }",
"public ArrayList<Cursor> getData(String Query){\n //get writable database\n SQLiteDatabase sqlDB = this.getWritableDatabase();\n String[] columns = new String[] { \"mesage\" };\n //an array list of cursor to save two cursors one has results from the query\n //other cursor stores error message if any errors are triggered\n ArrayList<Cursor> alc = new ArrayList<Cursor>(2);\n MatrixCursor Cursor2= new MatrixCursor(columns);\n alc.add(null);\n alc.add(null);\n\n\n try{\n String maxQuery = Query ;\n //execute the query results will be save in Cursor c\n Cursor c = sqlDB.rawQuery(maxQuery, null);\n\n\n //add value to cursor2\n Cursor2.addRow(new Object[] { \"Success\" });\n\n alc.set(1,Cursor2);\n if (null != c && c.getCount() > 0) {\n\n\n alc.set(0,c);\n c.moveToFirst();\n\n return alc ;\n }\n return alc;\n } catch(SQLException sqlEx){\n Log.d(\"printing exception\", sqlEx.getMessage());\n //if any exceptions are triggered save the error message to cursor an return the arraylist\n Cursor2.addRow(new Object[] { \"\"+sqlEx.getMessage() });\n alc.set(1,Cursor2);\n return alc;\n } catch(Exception ex){\n\n Log.d(\"printing exception\", ex.getMessage());\n\n //if any exceptions are triggered save the error message to cursor an return the arraylist\n Cursor2.addRow(new Object[] { \"\"+ex.getMessage() });\n alc.set(1,Cursor2);\n return alc;\n }\n\n\n }",
"public Cursor getAllTrousersCursor() {\n String selectQuery = \"SELECT * FROM \" + TrouserEntry.TABLE_NAME;\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n return c;\n }",
"Iterator<ColumnPair> columnPairs();",
"Data<List<Boards>> getSearchBoardsCursor(String query, String cursor);",
"public AllByColumnsIterator() {\n\t\t\tsuper();\n\t\t\tlastIndex = numCols * numRows;\n\t\t}",
"public static Cursor getBusINFOCursor() {\r\n SQLiteDatabase db = SearchHelper.getReadableDatabase();\r\n if(Bus.isLanguare()==true) {\r\n Cursor cursor = db.rawQuery(Prefix_Data_SQL.QUERY_BUS_BASIC_INFO_TC_SQL, null);\r\n return cursor;\r\n }else{\r\n Cursor cursor = db.rawQuery(Prefix_Data_SQL.QUERY_BUS_BASIC_INFO_EN_SQL, null);\r\n return cursor;\r\n }\r\n }",
"public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }",
"public List<String> getColumns();",
"public List selectAll() {\n\t\tList values = new ArrayList();\n\t\topen();\n\t\tCursor c = queryDB();\n\n\t\tif (c.moveToFirst()) {\n\t\t\tdo {\n\t\t\t//\tvalues.add(hydrateNewObject(c));\n\t\t\t} while (c.moveToNext());\n\t\t}\n\t\t\n\t\tc.close();\n\t\tclose();\n\t\t\n\t\treturn values;\n\t}",
"public ArrayList<T> all() throws SQLException {\n\t\tPreparedStatement stmt = DatabaseConnection.get().prepareStatement(\"select * from \"+table_name() + order_string());\n\t\treturn where(stmt);\n\t}",
"private Cursor query( final String selection, final String[] selectionArgs, final String[] columns ) {\n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\n builder.setTables( FTS_VIRTUAL_TABLE );\n builder.setProjectionMap( mColumnMap );\n\n Cursor cursor = builder.query( mDatabaseOpenHelper.getReadableDatabase(),\n columns, selection, selectionArgs, null, null, null);\n\n if (cursor == null) {\n return null;\n } else if ( !cursor.moveToFirst() ) {\n cursor.close();\n return null;\n }\n return cursor;\n }",
"private Cursor readReducedRefuelings() {\n\t\treturn mDbHelper.getWritableDatabase().query(\n\t\t\t\tDatabaseOpenHelper.TABLE_NAME,\n\t\t\t\tDatabaseOpenHelper.reducedColumns, null, new String[] {}, null,\n\t\t\t\tnull, DatabaseOpenHelper._ID + \" DESC\");\n\t}",
"@Override\n public Cursor query(Uri uri, String[] projection, String selection,\n String[] selectionArgs, String sortOrder) {\n // Open a read-only database.\n SQLiteDatabase db = myOpenHelper.getWritableDatabase();\n\n // Replace these with valid SQL statements if necessary.\n String groupBy = null;\n String having = null;\n \n SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();\n queryBuilder.setTables(MySQLiteOpenHelper.DATABASE_TABLE);\n \n // If this is a row query, limit the result set to the passed in row.\n switch (uriMatcher.match(uri)) {\n case SINGLE_ROW : \n String rowID = uri.getPathSegments().get(1);\n queryBuilder.appendWhere(KEY_ID + \"=\" + rowID);\n break;\n case SEARCH : \n String query = uri.getPathSegments().get(1);\n queryBuilder.appendWhere(KEY_SEARCH_COLUMN + \n \" LIKE \\\"%\" + query + \"%\\\"\");\n queryBuilder.setProjectionMap(SEARCH_SUGGEST_PROJECTION_MAP); \n break;\n default: break;\n }\n \n Cursor cursor = queryBuilder.query(db, projection, selection,\n selectionArgs, groupBy, having, sortOrder);\n\n return cursor;\n }",
"@Override\n protected Cursor buildCursor() {\n return(db.getReadableDatabase().rawQuery(rawQuery, args));\n }",
"public Cursor getAllData(\n\t\t\t\t\tSQLiteDatabase db, String tableName, String[] cols) {\n\t\t\n\t\t////////////////////////////////\n\n\t\t// validate: table exists\n\n\t\t////////////////////////////////\n\t\t//\n\t\tCursor cursor = db.query(tableName, cols, null, null, null, null, null);\n\t\t\n\t\treturn cursor;\n\t}",
"public Cursor getAll(){\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor;\n cursor = db.rawQuery(\"SELECT * from tweets\",null);\n return cursor;\n }",
"private static ArrayList getColumns (Connection c, String t)\n\t\tthrows Exception\n\t{\n\t\tStatement s = c.createStatement();\n\t\tResultSet r = s.executeQuery(\"show columns from `\" + t + \"`\");\n\t\tArrayList result = new ArrayList();\n\t\twhile (r.next()) {\n\t\t\tColumnInfo info = new ColumnInfo();\n\t\t\tinfo.name = r.getString(1);\n\t\t\tinfo.type = r.getString(2);\n\t\t\tinfo.nullok = r.getString(3);\n\t\t\tinfo.key = r.getString(4);\n\t\t\tinfo.defaultval = r.getString(5);\n\t\t\tinfo.extra = r.getString(6);\n\t\t\tresult.add(info);\n\t\t}\n\t\ts.close();\n\t\tCollections.sort(result);\n\t\treturn result;\n\t}",
"DataFrameCursor<R,C> cursor();",
"public ArrayList<ColumnInTable> getAllColumns() {\n Schema schema = Schema.getSchema();\n ArrayList<ColumnInTable> columns = new ArrayList<ColumnInTable>();\n \n for (int i = 0; i < fromTables.size(); i++) {\n Table t = schema.getTable(fromTables.get(i).first());\n for (Entry<String, Column> entry: t.getAllColumns().entrySet()) {\n columns.add(new ColumnInTable(entry.getValue(), i));\n }\n }\n \n return columns;\n }",
"public FeatureCursor queryFeatures(String[] columns) {\n return featureDao.queryIn(columns, queryIdsSQL());\n }",
"public FeatureCursor queryFeatures(String[] columns,\n BoundingBox boundingBox) {\n return queryFeatures(false, columns, boundingBox);\n }",
"private Cursor query(boolean distinct, String table, String[] columns,\r\n\t\t\tString selection, String[] selectionArgs, String groupBy,\r\n\t\t\tString having, String orderBy, String limit) {\r\n\t\treturn mDataBase.query(distinct, table, columns, selection,\r\n\t\t\t\tselectionArgs, groupBy, having, orderBy, limit);\r\n\t}",
"public Cursor getSortedData()\n {\n /* We are using the rawQuery method to execute the SQLite Query we have made and return\n * the Data in the form of a Cursor. As for the Query itself SELECT specifies what Columns\n * we want to select in this case its everything (*) and ORDER BY sorts the Data in this case\n * we require Data to be sorted in alphabetical order so we use ASC\n * */\n return this.getWritableDatabase().rawQuery(\n \"SELECT * FROM \" + TABLE_NAME +\n \" ORDER BY \" + COL2 + \" ASC\", null);\n }",
"@NonNull\n Collection<TObj> getColumnItems(int column) {\n Collection<TObj> result = new LinkedList<>();\n for (int count = mData.size(), i = 0; i < count; i++) {\n int key = mData.keyAt(i);\n TObj columnObj = mData.get(key).get(column);\n if (columnObj != null) {\n result.add(columnObj);\n }\n\n }\n return result;\n }",
"@Test\n public void selectAllDeletedColumns() {\n String[] retArray = {\n \"3,30000.0,null,30000\", \"4,4.0,4,null\",\n };\n\n String[] columnNames = {\"root.sg1.d1.s1\", \"root.sg1.d1.s2\", \"root.sg1.d1.s3\"};\n\n try (Connection connection = EnvFactory.getEnv().getConnection();\n Statement statement = connection.createStatement();\n ResultSet resultSet =\n statement.executeQuery(\"select s1, s2, s3 from root.sg1.d1 where time <= 4\")) {\n\n ResultSetMetaData resultSetMetaData = resultSet.getMetaData();\n Map<String, Integer> map = new HashMap<>();\n for (int i = 1; i <= resultSetMetaData.getColumnCount(); i++) {\n map.put(resultSetMetaData.getColumnName(i), i);\n }\n assertEquals(columnNames.length + 1, resultSetMetaData.getColumnCount());\n int cnt = 0;\n while (resultSet.next()) {\n StringBuilder builder = new StringBuilder();\n builder.append(resultSet.getString(1));\n for (String columnName : columnNames) {\n int index = map.get(columnName);\n builder.append(\",\").append(resultSet.getString(index));\n }\n assertEquals(retArray[cnt], builder.toString());\n cnt++;\n }\n assertEquals(retArray.length, cnt);\n } catch (SQLException e) {\n e.printStackTrace();\n fail(e.getMessage());\n }\n }",
"public Set<String> getColumns();",
"public Set<Integer> getColumnsToSearch() {\n return columnsToSearch;\n }",
"private Cursor getCursorObject() {\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // Define a projection that specifies which columns from the database\n // you will actually use after this query.\n String[] projection = {\n HabbitContract.HabbitEntry._ID,\n HabbitContract.HabbitEntry.COLUMN_HAD_BREAKFAST,\n HabbitContract.HabbitEntry.COLUMN_BREAKFAST_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_LUNCH,\n HabbitContract.HabbitEntry.COLUMN_LUNCH_MEAL,\n HabbitContract.HabbitEntry.COLUMN_HAD_SUPPER,\n HabbitContract.HabbitEntry.COLUMN_SUPPER_MEAL,\n HabbitContract.HabbitEntry.COLUMN_ADDITIONAL_DATA,\n HabbitContract.HabbitEntry.COLUMN_DATETIME_STAMP};\n\n // Perform a query on the nutrition table\n Cursor cursor = db.query(\n HabbitContract.HabbitEntry.TABLE_NAME, // The table to query\n projection, // The columns to return\n null, // The columns for the WHERE clause\n null, // The values for the WHERE clause\n null, // Don't group the rows\n null, // Don't filter by row groups\n null); // The sort order\n\n return cursor;\n }",
"Iterator<Column> referencedColumns();",
"public Cursor displayFavouriteData(){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table+\" WHERE \" +FAVOURITES+\" LIKE 1\";\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }",
"public Cursor[] search(String data[]) {\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor results[] = new Cursor[6];\n String innerProduct = TABLE_ORGANIZATION + \" O\";\n String whereClause = \"\";\n boolean hasLoc = false;\n// Log.e(\"Data Length\",String.valueOf(data.length));\n for (int i = 0; i < data.length; ++i) {\n Log.e(\"HERE\", \"HERE\");\n Log.e(\"Data[i]\", data.toString());\n if ((data[i].length() > 0)) {\n if (i == 1) {\n innerProduct = innerProduct + \", \" + TABLE_CATEGORY + \" C\";\n innerProduct = innerProduct + \", \" + TABLE_FALLS_IN + \" F\";\n whereClause = whereClause + \" AND O.\" + FIELD_ORG_OID + \" = \" + \" F.\" + RELATION_FALLS_IN_OID;\n whereClause = whereClause + \" AND F.\" + RELATION_FALLS_IN_CNAME + \" = \" + \" C.\" + FIELD_CAT_cName;\n whereClause = whereClause + \" AND C.\" + FIELD_CAT_cName + \" LIKE '%\" + data[i] + \"%'\";\n }\n if ((i >= 2) && (i <= 4) && (!hasLoc)) {\n whereClause = whereClause + \" AND O.\" + FIELD_ORG_OID + \" = \" + \" LOC.\" + FIELD_ORG_OID;\n innerProduct = innerProduct + \", \" + TABLE_LOCATION + \" LOC\";\n hasLoc = true;\n }\n if (i == 2) {\n whereClause = whereClause + \" AND LOC.\" + FIELD_LOC_ZIP + \" LIKE '%\" + data[i] + \"%'\";\n }\n if (i == 3) {\n whereClause = whereClause + \" AND LOC.\" + FIELD_LOC_CITY + \" LIKE '%\" + data[i] + \"%'\";\n }\n if (i == 4) {\n whereClause = whereClause + \" AND LOC.\" + FIELD_LOC_STATE + \" LIKE '%\" + data[i] + \"%'\";\n }\n if (i == 6) {\n innerProduct = innerProduct + \", \" + TABLE_POPULATION + \" P\";\n innerProduct = innerProduct + \", \" + TABLE_SERVES_PEOPLE + \" SP\";\n whereClause = whereClause + \" AND SP.\" + RELATION_SERVESP_OID + \" = \" + \" O.\" + FIELD_ORG_OID;\n whereClause = whereClause + \" AND SP.\" + RELATION_SERVESP_TYPE + \" = \" + \" P.\" + FIELD_POP_TYPE;\n whereClause = whereClause + \" AND P.\" + FIELD_POP_TYPE + \" LIKE '%\" + data[i] + \"%'\";\n }\n if (i == 7) {\n innerProduct = innerProduct + \", \" + TABLE_LANGUAGE + \" L\";\n innerProduct = innerProduct + \", \" + TABLE_SERVESL + \" SL\";\n whereClause = whereClause + \" AND SL.\" + RELATION_SERVES_LAN_OID + \" = \" + \" O.\" + FIELD_ORG_OID;\n whereClause = whereClause + \" AND SL.\" + RELATION_SERVES_LAN_LTYPE + \" = \" + \" L.\" + FIELD_LAN_LTYPE;\n whereClause = whereClause + \" AND L.\" + FIELD_LAN_LTYPE + \" LIKE '%\" + data[i] + \"%'\";\n }\n }\n }\n Log.e(\"Querry\", \"SELECT O.\" + FIELD_ORG_OID + \", O.\" + FIELD_ORG_NAME +\n \", O.\" + FIELD_ORG_EMAIL + \", O.\" + FIELD_ORG_WEBSITE +\n \", O.\" + FIELD_ORG_COST + \", O.\" + FIELD_ORG_ADDITIONAL\n + \", O.\" + FIELD_ORG_ASSISTANCE + \", O.\" + FIELD_ORG_OTHER\n + \" FROM \" + innerProduct + \" WHERE O.\"\n + FIELD_ORG_NAME + \" LIKE '%\" + data[0] + \"%'\" +\n \" AND O.\" + FIELD_ORG_COST + \" LIKE '%\" + data[5]\n + \"%'\" + whereClause + \";\");\n Cursor Organization = db.rawQuery(\"SELECT O.\" + FIELD_ORG_OID + \", O.\" + FIELD_ORG_NAME +\n \", O.\" + FIELD_ORG_EMAIL + \", O.\" + FIELD_ORG_WEBSITE +\n \", O.\" + FIELD_ORG_COST + \", O.\" + FIELD_ORG_ADDITIONAL\n + \", O.\" + FIELD_ORG_ASSISTANCE + \", O.\" + FIELD_ORG_OTHER\n + \" FROM \" + innerProduct + \" WHERE O.\"\n + FIELD_ORG_NAME + \" LIKE '%\" + data[0] + \"%'\" +\n \" AND O.\" + FIELD_ORG_COST + \" LIKE '%\" + data[5]\n + \"%'\" + whereClause + \";\", null);\n Cursor Language = null;\n Cursor Population = null;\n Cursor Category = null;\n Cursor Location = null;\n Cursor Phone = null;\n if (Organization.moveToFirst()) {\n Log.e(\"More\", \"stuff\");\n String sLang = \" SL.\" + RELATION_SERVES_LAN_OID + \" = \" + Organization.getString(0) +\n \" AND SL.\" + RELATION_SERVES_LAN_LTYPE + \" = \" + \" L.\" + FIELD_LAN_LTYPE;\n String sPop = \" SP.\" + RELATION_SERVESP_OID + \" = \" + Organization.getString(0) +\n \" AND SP.\" + RELATION_SERVESP_TYPE + \" = \" + \" P.\" + FIELD_POP_TYPE;\n String sCat = \" F.\" + RELATION_FALLS_IN_OID + \" = \" + Organization.getString(0) +\n \" AND F.\" + RELATION_FALLS_IN_CNAME + \" = \" + \" C.\" + FIELD_CAT_cName;\n String sLoc = \" LOC.\" + FIELD_LOC_OID + \" = \" + Organization.getString(0);\n String sPhone = \" P.\" + FIELD_ORG_OID + \" = \" + Organization.getString(0);\n Log.e(\"Die\", \"1\");\n while (Organization.move(1)) {\n Log.e(\"In\", \"While\");\n sCat = sCat + \" AND F.\" + RELATION_FALLS_IN_OID + \" = \" + Organization.getString(0) +\n \" AND F.\" + RELATION_FALLS_IN_CNAME + \" = \" + \" C.\" + FIELD_CAT_cName;\n sPop = sPop + \" AND SP.\" + RELATION_SERVESP_OID + \" = \" + Organization.getString(0) +\n \" AND SP.\" + RELATION_SERVESP_TYPE + \" = \" + \" P.\" + FIELD_POP_TYPE;\n sLang = sLang + \" AND SL.\" + RELATION_SERVES_LAN_OID + \" = \" + Organization.getString(0) +\n \" AND SL.\" + RELATION_SERVES_LAN_LTYPE + \" = \" + \" L.\" + FIELD_LAN_LTYPE;\n sLoc = sLoc + \" AND LOC.\" + FIELD_LOC_OID + \" = \" + Organization.getString(0);\n sPhone = sPhone + \" AND P.\" + FIELD_ORG_OID + \" = \" + Organization.getString(0);\n }\n Category = db.rawQuery(\"SELECT C.\" + FIELD_CAT_cName + \", F.\" + RELATION_FALLS_IN_OID + \" FROM \" + TABLE_FALLS_IN + \" F, \" +\n TABLE_CATEGORY + \" C WHERE\" + sCat, null);\n Population = db.rawQuery(\"SELECT P.\" + FIELD_POP_TYPE + \", SP.\" + RELATION_SERVESP_OID + \" FROM \" + TABLE_POPULATION + \" P, \" +\n TABLE_SERVES_PEOPLE + \" SP WHERE\" + sPop, null);\n Language = db.rawQuery(\"SELECT L.\" + FIELD_LAN_LTYPE + \", SL.\" + RELATION_SERVES_LAN_OID + \" FROM \" + TABLE_LANGUAGE + \" L, \" +\n TABLE_SERVESL + \" SL WHERE\" + sLang, null);\n Location = db.rawQuery(\"SELECT LOC.\" + FIELD_LOC_STREET + \", LOC.\" + FIELD_LOC_CITY + \", LOC.\" +\n FIELD_LOC_STATE + \", LOC.\" + FIELD_LOC_ZIP + \", LOC.\" + FIELD_LOC_OID + \" FROM \" + TABLE_LOCATION + \" LOC \" +\n \"WHERE\" + sLoc, null);\n Phone = db.rawQuery(\"SELECT P.\" + FIELD_PHONE_PHONENUM + \", P.\" + FIELD_ORG_OID + \" FROM \" + TABLE_PHONE + \" P WHERE\" + sPhone, null);\n\n }\n results[0] = Organization;\n results[1] = Category;\n results[2] = Population;\n results[3] = Language;\n results[4] = Location;\n results[5] = Phone;\n return results;\n }",
"public Cursor getData(){\n SQLiteDatabase db = this.getWritableDatabase();\n String query= \"SELECT * FROM credit_table\";\n Cursor data = db.rawQuery(query,null);\n return data;\n }",
"public FeatureCursor queryFeatures(boolean distinct, String[] columns) {\n return featureDao.queryIn(distinct, columns, queryIdsSQL());\n }",
"public Collection<TapKeyColumn> findAllKeyColumns();",
"public Cursor getRecords() {\n Cursor c;\n try {\n c = db.rawQuery(\"select * from \" + MyOpenHelper.TLoginDetails, null);\n return c;\n } catch (Exception e) {\n Log.e(\"Error At\", \" \" + e);\n e.printStackTrace();\n // TODO: handle exception\n return null;\n }\n }",
"public Cursor getAllData(String table){\n return db.rawQuery(\"SELECT * FROM \" + table, null);\n }",
"public Cursor getAll()\r\n {\r\n \treturn mDb.query(DB_TABLE_NAME, new String[] {\"_id\",\"fundId\", \"moneyPaid\", \"currentValue\", \"units\", \"simpleReturn\"}, null, null, null, null, null);\r\n }",
"Cursor getList(DBHelper db) {\r\n sdb = db.getReadableDatabase();\r\n String[] columns = {\"list_name\"};\r\n cursor = sdb.query(table_name_1, columns, null, null, null, null, null);\r\n return cursor;\r\n }",
"public Cursor getSpecificData(String s) {\n SQLiteDatabase db = getReadableDatabase();\n String[] params = new String[]{ s };\n\n // Cursor cursor = db.rawQuery(\"SELECT * FROM \" + RECORD_TABLE_NAME, null);\n\n /*\n To get details of specific users\n */\n //Cursor cursor = db.rawQuery(\"SELECT * FROM \" + RECORD_TABLE_NAME + \" WHERE COL_2 == ?\", new String[]{s + \" \"});\n\n\n return db.rawQuery(\"SELECT * FROM \" + RECORD_TABLE_NAME + \" WHERE COL_2 == ?\", params);\n\n //return db.rawQuery(\"SELECT * FROM RECORD_TABLE_NAME WHERE COL_2 = ?\", params);\n\n }",
"public FeatureCursor queryFeatures(boolean distinct, String[] columns,\n BoundingBox boundingBox) {\n return queryFeatures(distinct, columns, boundingBox.buildEnvelope());\n }",
"@GET\n\t\t\t@Path(\"/filter\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getChannelRowsByFilter() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new ChannelDao(uriInfo,header).getChannelByFilter();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t logger.info( \"Error calling getChannelRowsByFilter()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}",
"java.util.List<com.google.devtools.kythe.proto.Filecontext.ContextDependentVersion.Column> \n getColumnList();",
"public Cursor findTermCursor (String table, String constraint) {\n // Select All Query\n // Source: http://stackoverflow.com/questions/5186310/android-nearest-match-query-from-sqlite-db-if-input-string-value-is-bigger-tha\n String selectQuery = \"SELECT \" + KEY_ID + \" FROM \" + table\n + \" WHERE \" + KEY_TERM + \" = '\" + constraint + \"'\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // return the cursor\n return cursor;\n }",
"public Cursor getAllContact()\n {\n return db.query(DATABASE_TABLE,new String[]{KEY_ROWID,KEY_NAME,\n KEY_EMAIL},null,null,null,null,null);\n }",
"@Override\r\n\tpublic Collection selectKeyColumnsWithWhere(String columnNames, String where, Connection con) {\n\t\treturn null;\r\n\t}",
"public Cursor getAllLocations(){\n if (mDB != null)\n return mDB.query(DATABASE_TABLE, new String[] { FIELD_ROW_ID, FIELD_LAT , FIELD_LNG, FIELD_ACC, FIELD_TIME } , null, null, null, null, null);\n Cursor c = null;\n return c;\n }",
"static public Cursor readCursor(Context context, int[] id) {\r\n // Build WHERE clause\r\n StringBuilder positionSelBuilder = new StringBuilder();\r\n ArrayList<String> positionSelArgsList = new ArrayList<String>();\r\n positionSelBuilder.append(GuardTrackerContract.PositionTable._ID);\r\n positionSelBuilder.append(\" LIKE ?\");\r\n positionSelArgsList.add(\"\" + id[0]);\r\n for (int i = 1; i < id.length; i++) {\r\n // Define columns WHERE clause.\r\n positionSelBuilder.append(\" OR \");\r\n positionSelBuilder.append(GuardTrackerContract.PositionTable._ID);\r\n positionSelBuilder.append(\" LIKE ?\");\r\n positionSelArgsList.add(\"\" + id[i]);\r\n }\r\n // Define columns WHERE clause.\r\n String positionSelection = positionSelBuilder.toString();\r\n // Define values WHERE clause.\r\n String[] positionSelArgs = new String[positionSelArgsList.size()];\r\n positionSelArgs = positionSelArgsList.toArray(positionSelArgs);\r\n Cursor cursor = readRawCursor(context, positionSelection, positionSelArgs);\r\n return cursor;\r\n }",
"public Cursor querySources(){\n String sql = \"SELECT \" + ArticleContract.ArticleEntry.COLUMN_SOURCE + \", \"\n + ArticleContract.ArticleEntry.COLUMN_CATEGORY + \" FROM \"\n + ArticleContract.ArticleEntry.TOP_ARTICLE_TABLE + \" GROUP BY \"\n + ArticleContract.ArticleEntry.COLUMN_SOURCE + \" UNION \"\n + \"SELECT \" + ArticleContract.ArticleEntry.COLUMN_SOURCE + \", \"\n + ArticleContract.ArticleEntry.COLUMN_CATEGORY + \" FROM \"\n + ArticleContract.ArticleEntry.LATEST_ARTICLE_TABLE + \" GROUP BY \"\n + ArticleContract.ArticleEntry.COLUMN_SOURCE;\n return db.rawQuery(sql, null);\n }",
"public ResultSet getColumns(String table)\n\t{\n\t\tDatabaseMetaData metadata = null;\n\t\tResultSet rs = null;\n\t\ttry\n\t\t{\n\t\t\tConnection conn = source.conn;\n\t\t\tmetadata = conn.getMetaData();\n\t\t\trs = metadata.getColumns(null, sourceSchema, table, \"%\");\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\tLog.error(\"Errore SQL generico: \" + e.getMessage());\n\t\t}\n\t\treturn rs;\n\t}",
"public List<Column> getColumns() {\n if (columns != null) return columns;\n columns = new ArrayList<Column>();\n for (Column column : getAdapter().getColumns(getTableName())) {\n if (column.getName().equals(getPrimaryKey())) {\n column.setPrimary(true);\n }\n columns.add(column);\n }\n return columns;\n }",
"public Cursor getStudentData(){\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n Cursor res = db.rawQuery(\"SELECT * FROM \"+ TABLE_NAME, null);\r\n return res;\r\n }"
]
| [
"0.6548471",
"0.64059114",
"0.6328184",
"0.6269981",
"0.6226088",
"0.6151686",
"0.6120895",
"0.61200744",
"0.6118321",
"0.60779387",
"0.6039687",
"0.6039163",
"0.60118085",
"0.59631586",
"0.59247756",
"0.5896417",
"0.58596087",
"0.5845596",
"0.58438045",
"0.5837097",
"0.5791237",
"0.5780682",
"0.5770781",
"0.5739112",
"0.5735643",
"0.57200307",
"0.57182866",
"0.570007",
"0.5695155",
"0.56818503",
"0.56740105",
"0.56738824",
"0.5668587",
"0.564407",
"0.5643948",
"0.5640792",
"0.56370807",
"0.56238824",
"0.5621863",
"0.56179076",
"0.5613443",
"0.5600856",
"0.559503",
"0.559268",
"0.55852234",
"0.553767",
"0.5536126",
"0.5507105",
"0.55039644",
"0.5503355",
"0.5488541",
"0.5487435",
"0.5484887",
"0.54768145",
"0.5476727",
"0.5474704",
"0.54510343",
"0.5445637",
"0.54448354",
"0.54399264",
"0.5434636",
"0.54285896",
"0.54273725",
"0.5422765",
"0.5397547",
"0.53697264",
"0.5368298",
"0.5365304",
"0.5356461",
"0.5354418",
"0.5346983",
"0.5330927",
"0.5330243",
"0.5323846",
"0.5303494",
"0.53034306",
"0.52974015",
"0.5297043",
"0.52949816",
"0.5292561",
"0.52925473",
"0.5276585",
"0.5275858",
"0.52751756",
"0.5272117",
"0.52584296",
"0.52461064",
"0.524509",
"0.52373576",
"0.5232846",
"0.5232478",
"0.5226606",
"0.52260214",
"0.52222544",
"0.519113",
"0.5186635",
"0.518397",
"0.5181605",
"0.5178058",
"0.5172583"
]
| 0.58690494 | 16 |
This Method replaces the Integer that is used as a Boolean of the Favorite Column for a Row based on its Title | public void makeFavorite(String title, int favorite)
{
SQLiteDatabase db = this.getWritableDatabase();
/* the execSQL Method simply executes this query on the Database, in this Query UPDATE is
* used to specify the Table Name to Update, SET specifies the Column name to Update in this
* case COL8 contains favorites and WHERE is the condition in this case it is to make sure
* that the Movie Title Matches with the given title
*/
db.execSQL(
"UPDATE " + TABLE_NAME +
" SET " + COL8 + " = " + favorite +
" WHERE " + COL2 + " = '" + title + "'");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean updateFavorite(long rowId, String title, String body) {\n ContentValues args = new ContentValues();\n args.put(KEY_TITLE, title);\n args.put(KEY_BODY, body);\n\n return mDb.update(DATABASE_TABLE_FAVORITES, args, KEY_ROWID + \"=\" + rowId, null) > 0;\n }",
"boolean isFavorite(int id);",
"protected abstract String getFavoriteColumnName();",
"public boolean toggleIsFavorite(ContentValues contentValues) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n String movieId = contentValues.getAsString(FavoriteMovieContract.FavoriteMovie.COLUMN_MOVIE_ID);\n\n if (getIsFavorite(movieId)) {\n db.delete(TABLE_NAME, COLUMN_MOVIE_ID + \" = ?\", new String[] { movieId });\n return false;\n } else {\n ContentValues values = new ContentValues();\n values.put(COLUMN_MOVIE_ID, movieId);\n\n db.insert(TABLE_NAME, null, values);\n return true;\n }\n }",
"private boolean isFavorite() {\n for (int favoriteIndex : favoriteIndexes) {\n if (favoriteIndex == shownTipIndex) {\n return true;\n }\n }\n return false;\n }",
"public void toggleFavorite() {\n setFavorite(!mFavorite);\n }",
"public int updateTermFavouritedFlag (Term term, String table) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_FAVOURITED, term.getFavourited());\n\n // updating row\n return db.update(table, values, KEY_ID + \" = ?\", new String[] { String.valueOf(term.getId())});\n }",
"public void saveFavorite(){\n //make sure movie is NOT already a favorite\n if(!mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is a new favorite, favorite movie list status has changed\n mFavoriteChanged = true;\n\n //set movie item favorite status as true\n mMovie.setFavorite(true);\n\n //save movie to favorite database table\n mMovieValet.saveFavorite(mMovie);\n\n //add movie to favorite movie list buffer\n mMovieStaff.addFavorite(mMovie);\n }\n\n //check if movie list type is display a favorite list and if the device is a tablet\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mIsTablet){\n //both yes, get favorite movies to update poster fragment\n getMovieList(PosterHelper.NAME_ID_FAVORITE);\n }\n }",
"@Override\n\tpublic boolean isFavorite() {\n\t\treturn this.isFavorite;\n\t}",
"public void favouriteUser() {\r\n\t\tif(favourited) {\r\n\t\t\tcurrentUser.unfavouriteUser(userToView.getUserID());\r\n\t\t\tfavouriteButton.setText(\"Favourite\");\r\n\t\t\tfavourited = false;\r\n\t\t} else if(currentUser.getUserID() != userToView.getUserID()){\r\n\t\t\tcurrentUser.favouriteUser(userToView.getUserID());\r\n\t\t\tfavouriteButton.setText(\"Unfavourite\");\r\n\t\t\tfavourited = true;\r\n\t\t} else {\r\n\t\t\tCONSTANTS.makeAlertWindow(\"warning\",\"You can not favorite yourself!\");\r\n\t\t}\r\n\t}",
"public void setFavoriteFlag(int flag, long videoID) {\n try {\n SQLiteDatabase database = this.getReadableDatabase();\n database.enableWriteAheadLogging();\n ContentValues contents = new ContentValues();\n contents.put(VideoTable.KEY_VIDEO_IS_FAVORITE, flag);\n database.update(VideoTable.VIDEO_TABLE, contents, VideoTable.KEY_VIDEO_ID + \"=?\", new String[]{\"\" + videoID});\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public boolean isFavorite(long videoId) {\n try {\n int flag = 0;\n SQLiteDatabase database = this.getReadableDatabase();\n database.enableWriteAheadLogging();\n String getFlagQuery = \"SELECT \" + VideoTable.KEY_VIDEO_IS_FAVORITE + \" FROM \" + VideoTable.VIDEO_TABLE + \" WHERE \" + VideoTable.KEY_VIDEO_ID + \" = \"\n + videoId;\n Cursor cursor = database.rawQuery(getFlagQuery, null);\n if (cursor.moveToFirst()) {\n do {\n flag = cursor.getInt(0);\n } while (cursor.moveToNext());\n\n }\n cursor.close();\n if (flag == 1) {\n return true;\n }\n\n return false;\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }",
"@Override\n public void onClick(View view) {\n isFavorite = !isFavorite;\n\n if (isFavorite) {\n Toast.makeText(ShowTeacherActivity.this,\n getString(R.string.message_teacher_add_to_favorites), Toast.LENGTH_SHORT)\n .show();\n presenter.saveFavorite(ShowTeacherActivity.this, teacher);\n ibFavorite.setImageResource(R.drawable.ic_favorite_full);\n } else {\n Toast.makeText(ShowTeacherActivity.this,\n getString(R.string.message_teacher_delete_from_favorites), Toast.LENGTH_SHORT)\n .show();\n presenter.deleteFavorite(ShowTeacherActivity.this, teacher.getId());\n ibFavorite.setImageResource(R.drawable.ic_favorite_border);\n }\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\tif(item.reward.getReward_favorite()==0)\n\t\t\t\t\t{\n\t\t\t\t\t\titem.reward.setReward_favorite(1);\n\t\t\t\t\t\timgFavorite.setImageResource(R.drawable.orange_star);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\titem.reward.setReward_favorite(0);\n\t\t\t\t\t\timgFavorite.setImageResource(R.drawable.black_star);\n\t\t\t\t\t}\n\t\t\t\t}",
"public void setUpFavouriteIcon() {\n if (isUserOwner()) {\n view.hideFavouriteIcon();\n } else if (currentAdvertIsFavourite()) {\n view.setIsAFavouriteIcon();\n } else {\n view.setIsNotAFavouriteIcon();\n }\n }",
"public Cursor displayFavouriteData(){\n SQLiteDatabase db = this.getReadableDatabase();\n String selectQuarry = \"SELECT * FROM \"+Db_Table+\" WHERE \" +FAVOURITES+\" LIKE 1\";\n Cursor cursor =db.rawQuery(selectQuarry,null);\n return cursor;\n }",
"public void onFavouritesIconPressed() {\n if (currentAdvertIsFavourite()) {\n dataModel.removeFromFavourites(advertisement);\n view.setIsNotAFavouriteIcon();\n } else {\n dataModel.addToFavourites(advertisement);\n view.setIsAFavouriteIcon();\n }\n }",
"public void toggleFavorite() {\n\t\tsynchronized (this) {\n\t\t\tif (mFavoritesCache != null) {\n\t\t\t\tmFavoritesCache.toggleSong(getAudioId(), getTrackHost(),\n\t\t\t\t\t\tgetTrackName(), getAlbumName(), getArtistName());\n\t\t\t}\n\t\t}\n\t}",
"public void m7904a(boolean favorite) {\n this.f6695h = favorite;\n }",
"public void testEditBooleanCellWithOtherColumnOnSameFeatureName() throws Exception {\n final UITableRepresentation table = localSession.getLocalSessionBrowser().perCategory().selectViewpoint(\"read_only_column\").selectRepresentation(\"read_only_column\")\n .selectRepresentationInstance(\"new read_only_column\", UITableRepresentation.class).open();\n // Get the second line, which is actually the first sub-line of the first top-level line.\n SWTBotTreeItem[] items = table.getTable().getAllItems()[0].getItems();\n\n // Check the values before.\n assertEquals(\"newEReference1 : B0\", items[0].cell(0));\n assertEquals(\"false\", items[0].cell(1));\n assertEquals(\"false\", items[0].cell(2));\n\n pressKey(table.getTable(), \"arrow_down\");\n pressKey(table.getTable(), \"arrow_down\");\n pressKey(table.getTable(), \"arrow_right\");\n pressKey(table.getTable(), \"space\");\n\n table.getTable().display.syncExec(new Runnable() {\n public void run() {\n table.getTable().widget.update();\n }\n });\n \n // Check the values after: no change expected, the column through which we tried to do the edition has canEdit = <%false%>\n assertEquals(\"newEReference1 : B0\", items[0].cell(0));\n assertEquals(\"false\", items[0].cell(1));\n assertEquals(\"false\", items[0].cell(2));\n\n }",
"public boolean isFavorite() {\n return isFavorite;\n }",
"public boolean isFavorite() {\n return isFavorite;\n }",
"public interface Favorite {\n boolean get(String id);\n boolean toggle(String id);\n}",
"public void setFavorite(int favorite) throws Exception {\n if (favorite == 0) {mFavorite = false;}\n else if (favorite == 1) {mFavorite = true;}\n else {throw new Exception(\"Error: Cannot resolve movie 'favorite' \");}\n }",
"public boolean addToFavourites(String name){\n SQLiteDatabase db =this.getReadableDatabase();\n ContentValues contentVal = new ContentValues();\n contentVal.put(FAVOURITES,true);\n db.update(Db_Table,contentVal, \"movie_name = ?\",new String[]{ name });\n return true;\n }",
"public void toggleFavorites()\n {\n this.showFavorites = !this.showFavorites;\n this.setupMorphs(Morphing.get(this.mc.thePlayer));\n }",
"public void updateRow(Bundle map) {\n\n // Find the record\n int id = map.getInt(\"id\");\n int position = -1;\n for (mCursor.moveToFirst(); !mCursor.isAfterLast(); mCursor.moveToNext()) {\n if (mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX) == id) {\n position = mCursor.getPosition();\n break;\n }\n }\n if (position < 0) {\n return;\n }\n\n mCursor.moveToPosition(position);\n ContentValues values = new ContentValues();\n String title = map.getString(Browser.BookmarkColumns.TITLE);\n if (!title.equals(mCursor\n .getString(Browser.HISTORY_PROJECTION_TITLE_INDEX))) {\n values.put(Browser.BookmarkColumns.TITLE, title);\n }\n String url = map.getString(Browser.BookmarkColumns.URL);\n if (!url.equals(mCursor.\n getString(Browser.HISTORY_PROJECTION_URL_INDEX))) {\n values.put(Browser.BookmarkColumns.URL, url);\n }\n\n if (map.getBoolean(\"invalidateThumbnail\") == true) {\n values.put(Browser.BookmarkColumns.THUMBNAIL, new byte[0]);\n }\n if (values.size() > 0\n && mContentResolver.update(Browser.BOOKMARKS_URI, values,\n \"_id = \" + id, null) != -1) {\n refreshList();\n }\n }",
"public void onFavoriteChanged(MaterialFavoriteButton buttonView, boolean favorite);",
"String getTitle(int row, int column);",
"private void addToFavorites() {\n\n favoriteBool = true;\n preferencesConfig.writeAddFavoriteTip(shownTipIndex);\n Toast.makeText(getContext(), \"Added to favorites.\", Toast.LENGTH_SHORT).show();\n\n }",
"public void setFavTitle(final String favTitle){\n\t\tthis.favTitle = favTitle;\n\t}",
"@Override\r\n\t\tpublic void popupMenuWillBecomeVisible(PopupMenuEvent arg0) {\n\t\t\t\r\n\t\t\trow = notesTable.getSelectedRow();\r\n\t\t\trow = notesTable.convertRowIndexToModel(row);\r\n\t\t\tNoteCls note = tableModelNotes.getNote(row);\r\n\t\t\t\r\n\t\t\t\t\t\t\tfavorite.setVisible(true);\r\n\t\t\t\t//CHECK IF FAVORITES\r\n\t\t\t\tif(Controller.getInstance().isItemFavorite(note))\r\n\t\t\t\t{\r\n\t\t\t\t\tfavorite.setText(Lang.getInstance().translate(\"Remove Favorite\"));\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tfavorite.setText(Lang.getInstance().translate(\"Add Favorite\"));\r\n\t\t\t\t}\r\n\t\t\t}",
"private boolean checkIfFavorite() {\n if (favoriteIds.contains(movie.getId())) {\n movie.setFavorite(true);\n return true;\n }\n movie.setFavorite(false);\n return false;\n }",
"public void addFavourite(RecipeDbItem1 recipeDbItem1)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID,recipeDbItem1.getID());\n values.put(KEY_TITLE,recipeDbItem1.getTitle());\n //insert a row\n db.insert(TABLE_FAVOURITES,null,values);\n db.close();\n //System.out.println(\"\\n Inserted into Favourites Table: \"+recipeDbItem1.getID()+\" \"+recipeDbItem1.getTitle());\n }",
"public void setToFavorite(boolean favorite) {\n this.isFavorite = favorite;\n }",
"public void setFavorite(boolean favorite) {\n isFavorite = favorite;\n }",
"public void setFavorite(boolean favorite) {\n this.favorite = favorite;\n }",
"public void changeFavorite(boolean a) {\r\n favorite = a;\r\n }",
"@Override\n\tpublic void setFavorite(boolean value) {\n\t\tthis.isFavorite = value;\n\t}",
"public boolean removeFromFavourites(String name){\n SQLiteDatabase db =this.getReadableDatabase();\n ContentValues contentVal = new ContentValues();\n contentVal.put(FAVOURITES,false);\n db.update(Db_Table,contentVal, \"movie_name = ?\",new String[]{ name });\n return true;\n }",
"public void updateFavorited(UserProfile up, String itemCode, Boolean madeIt) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n\n String query = \"UPDATE userItems \"\n + \"SET madeIt = ? \"\n + \"WHERE itemCode = ?\";\n try {\n ps = connection.prepareStatement(query);\n ps.setBoolean(1, madeIt);\n ps.setString(2, itemCode);\n\n ps.executeUpdate();\n } catch (SQLException se) {\n System.out.println(\"ERROR: Could not execute SQL statement in: \" + \"Item.changeRating()\");\n System.out.println(\"ERROR: Could not execute SQL statement: \" + se);\n } finally {\n DBUtil.closePreparedStatement(ps);\n pool.freeConnection(connection);\n }\n up.updateFav(itemCode, madeIt);\n }",
"public void onFavButtonClicked(View view) {\n isFav = !isFav;\n toggleButtonText(isFav);\n \n // Update DB\n new OperateWithDBMovieAsyncTask().execute(isFav ? ADD_MOVIE : REMOVE_MOVIE);\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif (item.isFavorite()) {\n\t\t\t\t\t\tholder.btnFavorite\n\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.icon_favorite_off);\n\t\t\t\t\t\titem.setFavorite(false);\n\t\t\t\t\t\tpref.setString(item.getFileName(), false);\n\t\t\t\t\t\tif (!inRingtones) {\n\t\t\t\t\t\t\tIntent broadcast = new Intent();\n\t\t\t\t\t\t\tbroadcast.setAction(\"REMOVE_SONG\");\n\t\t\t\t\t\t\tcontext.sendBroadcast(broadcast);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tholder.btnFavorite\n\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.icon_favorite);\n\t\t\t\t\t\titem.setFavorite(true);\n\t\t\t\t\t\tpref.setString(item.getFileName(), true);\n\t\t\t\t\t}\n\t\t\t\t}",
"public Cursor fetchFavorite(long rowId) throws SQLException {\n\n Cursor mCursor =\n\n mDb.query(true, DATABASE_TABLE_FAVORITES, new String[] {KEY_ROWID,\n KEY_TITLE, KEY_BODY}, KEY_ROWID + \"=\" + rowId, null,\n null, null, null, null);\n if (mCursor != null) {\n mCursor.moveToFirst();\n }\n return mCursor;\n\n }",
"@Override\n public void onCellPreview(CellPreviewEvent<GridRecord> event) {\n boolean isClick = \"click\".equals(event.getNativeEvent().getType());\n if (isClick && event.getColumn()==0) {\n GridRecord record = event.getValue();\n Boolean existing = column.getValue(record);\n column.setValue(!existing, event.getValue());\n }\n }",
"public void refreshFavoriteBtn() {\r\n if (recipe.isFavorite(context)) {\r\n favoriteBtn.setIcon(\"faw_star\");\r\n } else {\r\n favoriteBtn.setIcon(\"faw_star_o\");\r\n }\r\n }",
"private void premium_isFavOrLike(Context context, ArticleBean articleBean, final ListingIconView favStartImg, final ListingIconView toggleLikeDisLikeImg) {\n ApiManager.isExistFavNdLike(context, articleBean.getArticleId())\n .subscribe(likeVal -> {\n int like = (int) likeVal;\n if (articleBean != null) {\n articleBean.setIsFavourite(like);\n }\n favStartImg.setVisibility(View.VISIBLE);\n favStartImg.setEnabled(true);\n toggleLikeDisLikeImg.setVisibility(View.VISIBLE);\n toggleLikeDisLikeImg.setEnabled(true);\n\n if(THPConstants.IS_USE_SEVER_THEME) {\n if (like == NetConstants.LIKE_NEUTRAL) {\n // 11 = app:iconType=\"unfavourite\"\n favStartImg.updateIcon(11);\n // 10 = app:iconType=\"dislike\"\n toggleLikeDisLikeImg.updateIcon(10);\n }\n else if (like == NetConstants.LIKE_YES) {\n // 2 = app:iconType=\"favourite\"\n favStartImg.updateIcon(2);\n // 10 = app:iconType=\"dislike\"\n toggleLikeDisLikeImg.updateIcon(10);\n }\n else if (like == NetConstants.LIKE_NO) {\n // 11 = app:iconType=\"unfavourite\"\n favStartImg.updateIcon(11);\n // 6 = app:iconType=\"like\"\n toggleLikeDisLikeImg.updateIcon(6);\n }\n }\n else {\n if (like == NetConstants.LIKE_NEUTRAL) {\n favStartImg.setImageResource(R.drawable.ic_like_unselected);\n toggleLikeDisLikeImg.setImageResource(R.drawable.ic_switch_off_copy);\n } else if (like == NetConstants.LIKE_YES) {\n favStartImg.setImageResource(R.drawable.ic_like_selected);\n toggleLikeDisLikeImg.setImageResource(R.drawable.ic_switch_off_copy);\n } else if (like == NetConstants.LIKE_NO) {\n favStartImg.setImageResource(R.drawable.ic_like_unselected);\n toggleLikeDisLikeImg.setImageResource(R.drawable.ic_switch_on_copy);\n }\n }\n\n }, val -> {\n Log.i(\"\", \"\");\n });\n }",
"protected abstract int getShuffleTitleId();",
"private void giveBooleanFunctionForSingleRow(int i) \r\n {\r\n// throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n if(rowBoolean[i].first==0 && rowBoolean[i].second==0)\r\n {\r\n System.out.print(\"A`\");\r\n System.out.print(\"B`\");\r\n }\r\n else if(rowBoolean[i].first==1 && rowBoolean[i].second==1)\r\n {\r\n System.out.print(\"A\");\r\n System.out.print(\"B\");\r\n }\r\n else if(rowBoolean[i].first==0 && rowBoolean[i].second==1)\r\n {\r\n System.out.print(\"A`\");\r\n System.out.print(\"B\");\r\n }\r\n else if(rowBoolean[i].first==1 && rowBoolean[i].second==0)\r\n {\r\n System.out.print(\"A\");\r\n System.out.print(\"B`\");\r\n }\r\n }",
"public boolean insertFavToDB(Favorite favorite) {\n ContentValues contentValues = new ContentValues();\n contentValues.put(mDBAccountString, favorite.getAccount());\n contentValues.put(mDBTitleString, favorite.getTitle());\n contentValues.put(mDBDescString, favorite.getDescription());\n contentValues.put(mDBURLString, favorite.getUrl());\n long rowId = mFavSQLiteDB.insert(\"Favorites\", null, contentValues);\n return rowId != -1; //If insert fails, rowID will equal -1\n }",
"private boolean isAddedToFavorites() {\n boolean isFavorite = false;\n\n String[] projection = {FavMovieEntry.COLUMN_MOVIE_ID};\n String selection = FavMovieEntry.COLUMN_MOVIE_ID + \"=?\";\n String[] selectionArgs = new String[]{\n String.valueOf(sMovie.getMovieId())};\n\n Cursor cursor = this.getContentResolver().query(\n FavMovieEntry.CONTENT_URI,\n projection,\n selection,\n selectionArgs,\n null\n );\n\n if (cursor != null && cursor.moveToFirst()) {\n if (cursor.getCount() > 0) {\n isFavorite = true;\n long currentIndex = cursor.getLong(cursor.getColumnIndex(FavMovieEntry.COLUMN_MOVIE_ID));\n mCurrentMovieUri = ContentUris.withAppendedId(FavMovieEntry.CONTENT_URI, currentIndex);\n } else {\n isFavorite = false;\n\n mCurrentMovieUri = null;\n }\n cursor.close();\n }\n\n return isFavorite;\n }",
"@Override\n\t\tpublic void onFavorite(User arg0, User arg1, Status arg2) {\n\t\t\t\n\t\t}",
"@Override\n public void onFavoriteDatabaseChanged() {\n //setCategoryCount(FileCategory.Favorite, mFavoriteList.getCount());\n }",
"public void onClicklistenerForFavorites(View view){\n if(isAlreadyFavorteis() == true){\n Boolean hasDeleted = dBhelper.deleteFavortiesByCategoryId(userAskAbout,inputSpinnerOne.getSelectedItemPosition(),inputSpinnertow.getSelectedItemPosition());\n if(hasDeleted == true) {\n Toast.makeText(getApplicationContext(), \"Your data has deleted in Favorties\", Toast.LENGTH_LONG).show();\n favortiesImageView.setBackgroundResource(R.drawable.ic_favourites);\n isAlreadyFavorties = false;\n }\n\n }else\n {\n favortiesMethed();\n isAlreadyFavorties = true;\n favortiesImageView.setBackgroundResource(R.drawable.ic_favourites_pressed);\n }\n\n }",
"boolean isColumnURISafe(int columnIndex);",
"@Override\n\tpublic void getFavorit(int idUser) {\n\t\t\n\t}",
"private void removeFromFavorites() {\n favoriteBool = false;\n preferencesConfig.writeRemoveFavoriteTip(shownTipIndex);\n Toast.makeText(getContext(), \"Removed from favorites\", Toast.LENGTH_SHORT).show();\n\n }",
"public abstract void toggleSortOrder(int column);",
"public Integer getFavortieid() {\n return favortieid;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_fav) {\n FavoritesDataSource dataSource = new FavoritesDataSource(getBaseContext());\n dataSource.open();\n if(isFav){\n //remove from favorites\n dataSource.deleteFromFavorites(placeid);\n item.setIcon(R.drawable.ic_heart_outline_white);\n Toast.makeText(getBaseContext(),placeName+\" was removed from favorites\",Toast.LENGTH_SHORT).show();\n isFav = false;\n }else{\n //add to favorites\n Place place = new Place(placeid,placeName,address,true,picURL);\n dataSource.addToFavorites(place);\n item.setIcon(R.drawable.ic_heart_fill_white);\n Toast.makeText(getBaseContext(),placeName+\" was added to favorites\",Toast.LENGTH_SHORT).show();\n isFav = true;\n }\n dataSource.close();\n return true;\n }else if(id == R.id.action_share){\n //open twitter url\n String tweetParams = \"text=\"+ URLEncoder.encode(\"Check out \"+placeName+\" located at \"+address+\". Website \")+\"&url=\"+URLEncoder.encode(tweetURL)+\"&hashtags=TravelAndEntertainmentSearch\";\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://twitter.com/intent/tweet?\"+tweetParams));\n startActivity(browserIntent);\n return true;\n }else if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public void onClick(View v) {\n Pelicula p = MainActivity.peliculas.get(position);\n p.setFavorita(!p.isFavorita());\n }",
"public static void updateFavorite(String userId, final String foodId, final boolean option, final ImageButton favButton) {\n //get database reference\n final DatabaseReference dbref = FirebaseDatabase.getInstance().getReference(\"users\").child(userId);\n //add eventlistener to reference\n dbref.child(\"favoritesList\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n ArrayList<String> updated = new ArrayList<>();\n boolean exists = false;\n for (DataSnapshot favDataSnapshot : dataSnapshot.getChildren()) {\n String fav = favDataSnapshot.getValue(String.class);\n if (!option) {\n if (foodId.equals(fav))\n Log.d(\"favor\", \"this one should be deleted \");\n else\n updated.add(fav);\n } else {\n if (foodId.equals(fav)) {\n exists = true;\n updated.add(fav);\n } else\n updated.add(fav);\n }\n }\n if (!exists && option) {\n favButton.setImageResource(R.drawable.ic_favorite);\n updated.add(foodId);\n }\n else\n favButton.setImageResource(R.drawable.ic_favorite_empty);\n dbref.child(\"favoritesList\").setValue(updated);\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"void updateFavor(HouseFavor houseFavor);",
"public void removeFavorite(){\n //check if movie is in the user favorite list\n if(mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is in the favorite list, mark that list has changed\n mFavoriteChanged = true;\n\n //update movie item favorite status\n mMovie.setFavorite(false);\n\n //delete movie item from favorite database table\n mMovieValet.deleteFavorite(mMovie);\n\n //remove movie item from favorite movie list buffer\n mMovieStaff.removeFavorite(mMovie);\n }\n\n //check if movie list type is display a favorite list and if the device is a tablet\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mIsTablet){\n //both yes, get favorite movies to update poster fragment\n getMovieList(PosterHelper.NAME_ID_FAVORITE);\n }\n }",
"@Override\n public void onClick(View view) {\n helper = new DbHelper(context);\n //estrella click listener\n if (holder.estrella.getColorFilter() != null) {\n holder.estrella.clearColorFilter();\n //pub_id = h.hpub_id.getText().toString();\n //aquí elimina\n //Drawer dra = new Drawer();\n //dra.deleteFavorites(h.hpub_id.getText().toString(), Singin.user.getUser_email());\n //helper.eliminar();\n Toast.makeText(context, \"Favorito eliminado\"/*+ pub_id*/, Toast.LENGTH_SHORT).show();\n\n\n\n } else {\n holder.estrella.setColorFilter(ContextCompat.getColor(context,\n R.color.favorito_color));\n //pub_id = h.hpub_id.getText().toString();\n //aquí añade\n //Drawer dra = new Drawer();\n //dra.addFavorites(dra.createFavorite());\n // helper.insertardatos();\n Toast.makeText(context, \"Favorito Añadido\"/*+ pub_id*/, Toast.LENGTH_SHORT).show();\n }\n }",
"public void toggleFurnitureVisibleProperty(HomePieceOfFurniture.SortableProperty furnitureProperty) {\n List<SortableProperty> furnitureVisibleProperties = \n new ArrayList<SortableProperty>(this.home.getFurnitureVisibleProperties());\n if (furnitureVisibleProperties.contains(furnitureProperty)) {\n furnitureVisibleProperties.remove(furnitureProperty);\n // Ensure at least one column is visible\n if (furnitureVisibleProperties.isEmpty()) {\n furnitureVisibleProperties.add(HomePieceOfFurniture.SortableProperty.NAME);\n }\n } else {\n // Add furniture property after the visible property that has the previous index in \n // the following list\n List<HomePieceOfFurniture.SortableProperty> propertiesOrder = \n Arrays.asList(new HomePieceOfFurniture.SortableProperty [] {\n HomePieceOfFurniture.SortableProperty.CATALOG_ID, \n HomePieceOfFurniture.SortableProperty.NAME, \n HomePieceOfFurniture.SortableProperty.CREATOR, \n HomePieceOfFurniture.SortableProperty.WIDTH,\n HomePieceOfFurniture.SortableProperty.DEPTH,\n HomePieceOfFurniture.SortableProperty.HEIGHT,\n HomePieceOfFurniture.SortableProperty.X,\n HomePieceOfFurniture.SortableProperty.Y,\n HomePieceOfFurniture.SortableProperty.ELEVATION,\n HomePieceOfFurniture.SortableProperty.ANGLE,\n HomePieceOfFurniture.SortableProperty.LEVEL,\n HomePieceOfFurniture.SortableProperty.MODEL_SIZE,\n HomePieceOfFurniture.SortableProperty.COLOR,\n HomePieceOfFurniture.SortableProperty.TEXTURE,\n HomePieceOfFurniture.SortableProperty.MOVABLE,\n HomePieceOfFurniture.SortableProperty.DOOR_OR_WINDOW,\n HomePieceOfFurniture.SortableProperty.VISIBLE,\n HomePieceOfFurniture.SortableProperty.PRICE,\n HomePieceOfFurniture.SortableProperty.VALUE_ADDED_TAX_PERCENTAGE,\n HomePieceOfFurniture.SortableProperty.VALUE_ADDED_TAX,\n HomePieceOfFurniture.SortableProperty.PRICE_VALUE_ADDED_TAX_INCLUDED}); \n int propertyIndex = propertiesOrder.indexOf(furnitureProperty) - 1;\n if (propertyIndex > 0) { \n while (propertyIndex > 0) {\n int visiblePropertyIndex = furnitureVisibleProperties.indexOf(propertiesOrder.get(propertyIndex));\n if (visiblePropertyIndex >= 0) {\n propertyIndex = visiblePropertyIndex + 1;\n break;\n } else {\n propertyIndex--;\n }\n }\n }\n if (propertyIndex < 0) {\n propertyIndex = 0;\n }\n furnitureVisibleProperties.add(propertyIndex, furnitureProperty);\n }\n this.home.setFurnitureVisibleProperties(furnitureVisibleProperties);\n }",
"@Override\n public boolean wasCellEdited(final int row, final int column) {\n if(COLUMN_TITLES.get(column).equals(COLUMN_TITLE_THR_SEQUENCE) ||\n COLUMN_TITLES.get(column).equals(COLUMN_TITLE_CF) ||\n COLUMN_TITLES.get(column).equals(COLUMN_TITLE_SR)) {\n return adjustedThr.get(row);\n }\n \n return super.wasCellEdited(row, column);\n }",
"private void toggleFavorite(Set<Long> selectedSet) {\n toggleMultiple(selectedSet, new MultiToggleHelper() {\n\n @Override\n public boolean getField(Cursor c) {\n return c.getInt(MessagesAdapter.COLUMN_FAVORITE) != 0;\n }\n\n @Override\n public void setField(long messageId, boolean newValue) {\n mController.setMessageFavoriteSync(messageId, newValue);\n }\n });\n }",
"@FXML\n private void toggleFavorite() {\n raise(new ToggleFavoritePersonEvent(id.getText().substring(0, id.getText().indexOf(\".\"))));\n }",
"public void setIsUserFav(User user) {\n if(user.isUsersFavouritePost(this.mPost))\n this.isFavourite.set(true);\n else\n this.isFavourite.set(false);\n\n //if(this.mPost.getFavourite().contains(user))\n // this.isFavourite.set(true);\n //this.isFavourite.set(false);\n }",
"void setProjectFavourite(int accountId, int projectId, boolean favourite);",
"private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }",
"public void onClick(View v) {\n favorite_league = selected_league;\n favorite_team = selected_team;\n startWriteFavorite(v);\n if( !(favorite_team.equals(\"\")) && !(favorite_league.equals(\"\"))) favorite.setText(favorite_team +\" (\" +favorite_league +\")\");\n }",
"public native Boolean hiliteCell(int rowNum, int colNum, String hiliteID) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var retVal =self.hiliteCell(cellObj, hiliteID);\r\n if(retVal == null || retVal === undefined) {\r\n return null;\r\n } else {\r\n return @com.smartgwt.client.util.JSOHelper::toBoolean(Z)(retVal);\r\n }\r\n }-*/;",
"public int getNumOfFav() {\n return fullPhoto.getNumOfFav();\n }",
"Column(@Nullable Field recordField, String name, @Nullable String title, boolean toggleable) {\r\n this.recordField = recordField;\r\n this.columnName = name;\r\n this.title = title;\r\n this.toggleable = toggleable;\r\n }",
"boolean hasTitle();",
"int updateByPrimaryKey(EcsFavourableActivity record);",
"void favoriteView();",
"public boolean hasTitle() {\n return fieldSetFlags()[0];\n }",
"@Override\r\n public void onCreate(SQLiteDatabase sqLiteDatabase) {\n final String CREATE_TABLE = \"CREATE TABLE \" + FavoriteEntry.TABLE_NAME + \" (\" +\r\n FavoriteEntry._ID + \" INTEGER PRIMARY KEY, \" +\r\n FavoriteEntry.COLUMN_MOVIE_ID + \" INTEGER UNIQUE NOT NULL, \" +\r\n FavoriteEntry.COLUMN_TITLE + \" TEXT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_ORIGINAL_TITLE + \" TEXT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_OVERVIEW + \" TEXT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_POSTER_PATH + \" TEXT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_RELEASE_DATE + \" DATE NOT NULL, \" +\r\n FavoriteEntry.COLUMN_RELEASE_TIME + \" VARCHAR(60) NOT NULL, \" +\r\n FavoriteEntry.COLUMN_RUNNING_TIME + \" VARCHAR(60) NOT NULL, \" +\r\n FavoriteEntry.COLUMN_VOTE_COUNT + \" INTEGER NOT NULL, \" +\r\n FavoriteEntry.COLUMN_VOTE_AVG + \" SMALLINT NOT NULL, \" +\r\n FavoriteEntry.COLUMN_POPULARITY + \" INTEGER NOT NULL, \" +\r\n FavoriteEntry.COLUMN_VIDEO + \" BOOLEAN NOT NULL);\";\r\n\r\n sqLiteDatabase.execSQL(CREATE_TABLE);\r\n }",
"public long createFavorite(String title, String body) {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_TITLE, title);\n initialValues.put(KEY_BODY, body);\n\n return mDb.insert(DATABASE_TABLE_FAVORITES, null, initialValues);\n }",
"public void updateBannerDisplayDataFlag(String banner_id, String flag) {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n // Inserting Row\n db.update(TABLE_BANNER_DISPLAY, values, KEY_ID + \"=\" + banner_id, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n\n }",
"public void setFavortieid(Integer favortieid) {\n this.favortieid = favortieid;\n }",
"public StrColumn getTitleSuppression() {\n return delegate.getColumn(\"title_suppression\", DelegatingStrColumn::new);\n }",
"public boolean isAlreadyFavorited(){\r\n if(ui.isIsUserAuthenticated()){\r\n Users user = ui.getUser();\r\n if(user.getFavorites() != null){\r\n return user.getFavorites().contains(recipe);\r\n }\r\n else{\r\n return false;\r\n }\r\n }\r\n else{\r\n return false;\r\n }\r\n }",
"public boolean isFavorite( String UUID ) {\n\t\tCursor cursor = getWritableDatabase().rawQuery(SELECT_1_UUID,\n\t\t\t\tnew String[]{UUID});\n\t\tboolean exists = (cursor.getCount() > 0);\n\t\tcursor.close();\n\t\tLog.d(\"GCA-DB\", \"Abstract is Fav: \" + exists);\n\t\treturn exists;\n\t\t}",
"@Test\n public void testIsHideable_1()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n boolean result = fixture.isHideable();\n\n assertEquals(true, result);\n }",
"protected abstract SQLQuery getFavoriteUpdateSQLQuery();",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_favorites) {\n if(gameFragment.isFavorites()) {\n item.setIcon(R.drawable.ic_favorite_border);\n gameFragment.filterFavorites(false);\n }\n else {\n item.setIcon(R.drawable.ic_favorite);\n gameFragment.filterFavorites(true);\n }\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\npublic void refillColumnTitle(CompositeAdapter firstRowAdapter) {\n\t\n}",
"public void drawFav(Recipe r, ImageView favIcon) {\n int imgFav;\n if (r.isFavorite()) {\n imgFav = getResources().getIdentifier(\"favstarylw\", \"drawable\", getPackageName());\n } else {\n imgFav = getResources().getIdentifier(\"favstargrey\", \"drawable\", getPackageName());\n }\n favIcon.setImageResource(imgFav);\n }",
"@Override\n\tpublic int update(ThemeTitle themeTitle) {\n\t\treturn mapper.updateByPrimaryKey(themeTitle);\n\t}",
"@Override\n\tpublic void addFavorit(FavorisImpl newfavorit) {\n\t\t\n\t}",
"@Test\n public void testIsHideable_2()\n throws Exception {\n ColumnPreferences fixture = new ColumnPreferences(\"\", \"\", 1, ColumnPreferences.Visibility.HIDDEN, ColumnPreferences.Hidability.HIDABLE);\n fixture.setVisible(true);\n\n boolean result = fixture.isHideable();\n\n assertEquals(true, result);\n }",
"private SafeHtml getOIDColumnToolTip(String columnText,\r\n StringBuilder title, boolean hasImage, boolean isUserDefined) {\r\n if (hasImage && !isUserDefined) {\r\n String htmlConstant = \"<html>\"\r\n + \"<head> </head> <Body><img src =\\\"images/bullet_tick.png\\\" alt=\\\"QDM Updated From VSAC.\\\"\"\r\n + \"title = \\\"QDM Updated From VSAC.\\\"/>\"\r\n + \"<span tabIndex = \\\"-1\\\" title='\" + title + \"'>\"\r\n + columnText + \"</span></body>\" + \"</html>\";\r\n return new SafeHtmlBuilder().appendHtmlConstant(htmlConstant)\r\n .toSafeHtml();\r\n } else if (hasImage && isUserDefined) {\r\n String htmlConstant = \"<html>\"\r\n + \"<head> </head> <Body><img src =\\\"images/userDefinedWarning.png\\\"\"\r\n + \"alt=\\\"Warning : QDM not available in VSAC.\\\"\"\r\n + \" title=\\\"QDM not available in VSAC.\\\"/>\"\r\n + \"<span tabIndex = \\\"-1\\\" title='\" + title + \"'>\"\r\n + columnText + \"</span></body>\" + \"</html>\";\r\n return new SafeHtmlBuilder().appendHtmlConstant(htmlConstant)\r\n .toSafeHtml();\r\n } else {\r\n String htmlConstant = \"<html>\"\r\n + \"<head> </head> <Body><span tabIndex = \\\"-1\\\" title='\"\r\n + title + \"'>\" + columnText + \"</span></body>\" + \"</html>\";\r\n return new SafeHtmlBuilder().appendHtmlConstant(htmlConstant)\r\n .toSafeHtml();\r\n }\r\n }",
"public synchronized int getDefaultIndex() {\r\n for (int i = 0; i < COLUMNS.length; i++)\r\n if (COLUMNS[i].equals(f_title)) {\r\n return i;\r\n }\r\n throw new IllegalStateException(\"Column title \" + f_title + \"is unknown, not one of: \" + Arrays.toString(COLUMNS));\r\n }",
"public boolean isMovieIsFavorite(long movieId) {\n SQLiteDatabase sqLiteDatabase = this.getReadableDatabase();\n String query = \"SELECT * FROM \" + FavoriteMoviesEntry.TABLE_NAME + \" WHERE \" + FavoriteMoviesEntry.COLUMN_MOVIE_ID + \" = \" + movieId;\n Cursor cursor = sqLiteDatabase.rawQuery(query, null);\n\n if (cursor.moveToFirst()) {\n cursor.close();\n return true;\n } else {\n cursor.close();\n return false;\n }\n }",
"@Override\n\tpublic int getTitle() {\n\t\treturn 0;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_settings) {\n\n return true;\n }\n if (id == R.id.action_fav) {\n Intent intent = new Intent(getApplicationContext(),ThirdActivity.class);\n startActivity(intent);\n return true;\n }\n if (id == R.id.action_addfav) {\n\n int i = 0;\n Map<String, ?> map = sharedPreferences.getAll();\n for(Map.Entry mEntry : map.entrySet()){\n if(Pattern.matches(\"fav \"+titre.getText(), mEntry.getKey()+\"\")){\n Toast.makeText(this,titre.getText()+\" removed from favorite\",Toast.LENGTH_SHORT).show();\n sharedPreferences\n .edit()\n .remove(mEntry.getKey()+\"\")\n .remove(titre.getText()+\" id\")\n .apply();\n i=1;\n }\n }\n\n if(i==0) {\n Toast.makeText(this, titre.getText() + \" added to favorite\", Toast.LENGTH_SHORT).show();\n sharedPreferences\n .edit()\n .putString(\"fav \" + titre.getText(), titre.getText() + \"\")\n .putInt(titre.getText() + \" id\", idAnime)\n .apply();\n }\n i=0;\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }"
]
| [
"0.6162895",
"0.5781154",
"0.5658392",
"0.56361544",
"0.5484198",
"0.5466677",
"0.53733397",
"0.5338648",
"0.5333412",
"0.53178877",
"0.52867705",
"0.52808183",
"0.52605873",
"0.5252934",
"0.52272487",
"0.52063066",
"0.5202718",
"0.5169539",
"0.5164745",
"0.5153785",
"0.514428",
"0.514428",
"0.5139847",
"0.51195544",
"0.51145595",
"0.5112932",
"0.51100713",
"0.50954086",
"0.5093724",
"0.5083263",
"0.5079949",
"0.5073808",
"0.50177956",
"0.5007886",
"0.5007193",
"0.5006004",
"0.49957347",
"0.4992314",
"0.49915367",
"0.49803004",
"0.49359185",
"0.49343625",
"0.4926778",
"0.4925804",
"0.49098405",
"0.49003914",
"0.4893109",
"0.48911783",
"0.4890504",
"0.48808926",
"0.4878875",
"0.4871981",
"0.4863866",
"0.48596805",
"0.4858955",
"0.4856556",
"0.48439464",
"0.48384622",
"0.4832817",
"0.48058084",
"0.4795151",
"0.4793284",
"0.47921538",
"0.47832295",
"0.47745317",
"0.47668296",
"0.47630304",
"0.47392732",
"0.4734239",
"0.4731192",
"0.47298282",
"0.4729472",
"0.47154406",
"0.47054398",
"0.46993554",
"0.46990687",
"0.46936232",
"0.46870688",
"0.46827245",
"0.46704054",
"0.46527976",
"0.46515736",
"0.4650395",
"0.46503827",
"0.46446434",
"0.46440342",
"0.46436647",
"0.4637372",
"0.46371734",
"0.46354973",
"0.46352234",
"0.46324682",
"0.4611143",
"0.46081495",
"0.45948553",
"0.45889452",
"0.45841834",
"0.4583657",
"0.4582606",
"0.45816568"
]
| 0.6607473 | 0 |
This Method is used to Replace an entire Row with the Values given from a Movie Object | public void editMovie(int id, Movie movie)
{
// Since SQLite does not support Booleans, an Integer is used with 0 as false and 1 as true
int favorite = 0;
if (movie.isFavorite())
favorite = 1;
/* the execSQL Method simply executes this query on the Database, in this Query REPLACE INTO
* replaces a Row in the table based on the movieId value specified
*/
this.getWritableDatabase().execSQL(
"REPLACE INTO " + TABLE_NAME +
" (movieId, title, year, director, actor_actress, rating, review, favorite)" +
" Values(" + id + ", '" + movie.getTitle() + "', '" + movie.getYear() + "', '" + movie.getDirector() +
"', '" + movie.getActorActress() + "', " + movie.getRating() + ", '" + movie.getReview() +
"', " + favorite + ")");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void update(int index, Movie object, String value) {\n \tobject.setPlace(value);\r\n \tmovieTable.redraw();\r\n }",
"@Override\r\n public void update(int index, Movie object, String value) {\n \tobject.setDescription(value);\r\n \tmovieTable.redraw();\r\n }",
"static public void set_movie_data(){\n\n\t\tEdit_row_window.attrs = new String[]{\"movie name:\", \"rating:\", \"release year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct a.id, a.name, a.num_links, a.year_born \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_cinema_actors a, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_cinema_actor_movie am\" +\n\t\t\t\t\t\t\t\t\t\t\t\" where am.actor_id=a.id and am.movie_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\n\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct a.id, a.name, a.num_links, a.year_born \" +\n\t\t\t\t\" from curr_cinema_actors a \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"actor name\", \"rating\", \"birth year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. birth year:\";\n\t\tEdit_row_window.linked_category_name = \"ACTORS\";\n\t}",
"@Override\r\n public void update(int index, Movie object, String value) {\n \tobject.setName(value);\r\n \tmovieTable.redraw();\r\n }",
"@Override\n\tpublic void updateMovie(Movie movie) {\n\t\tString sql=\"Update movie set MOVIE_ID=?,MOVIE_NAME=?,LANGUAGE=?,GENERE=?,TYPE=?,DURATION=?\";\n\t\tObject[] params={movie.getMovieId(),movie.getMovieName(),movie.getLanguage(),movie.getGenere(),movie.getType(),movie.getDuration()};\n\t\tint[] types={Types.INTEGER,Types.VARCHAR,Types.VARCHAR,Types.VARCHAR,Types.VARCHAR,Types.INTEGER};\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tjdbcTemplate.update(sql, params, types);\n\t}",
"public void setMovieDataFromCursor(Cursor cursor) {\n if(null != cursor) {\n int count = cursor.getCount();\n\n if (count > 0) {\n // Indices\n int idIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry._ID);\n int movieIdIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_MOVIE_ID);\n int titleIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_TITLE);\n int posterPathIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_POSTER_PATH);\n int backdropPathIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_BACKDROP_PATH);\n int plotSynopsisIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_PLOT_SYNOPSIS);\n int userRatingIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_USER_RATING);\n int releaseDateIndex = cursor.getColumnIndex(MoviesContract.MoviesEntry.COLUMN_RELEASE_DATE);\n\n mMovieInfoData = new MovieInfo[count];\n int i = 0;\n while (cursor.moveToNext()) {\n // Determine the values of the wanted data\n int id = cursor.getInt(idIndex);\n String movieIdStr = cursor.getString(movieIdIndex);\n int movieId = Integer.parseInt(movieIdStr);\n String title = cursor.getString(titleIndex);\n String posterPath = cursor.getString(posterPathIndex);\n String backdropPath = cursor.getString(backdropPathIndex);\n String plotSynopsis = cursor.getString(plotSynopsisIndex);\n String userRatingStr = cursor.getString(userRatingIndex);\n int userRating = Integer.parseInt(userRatingStr);\n String releaseDate = cursor.getString(releaseDateIndex);\n\n //Set values\n MovieInfo movieInfo = new MovieInfo(movieId, title, posterPath, backdropPath, plotSynopsis, userRating, releaseDate);\n mMovieInfoData[i] = movieInfo;\n i++;\n }\n notifyDataSetChanged();\n }\n cursor.close();\n }\n }",
"protected abstract E modifyRow(E rowObject);",
"void fill(Row row) {\n if (row == null) return;\n for (Column column : getColumns()) {\n String name = column.getName();\n Object value = row.get(name);\n Classes.setFieldValue(this, name, value);\n }\n }",
"static public void set_actor_data(){\n\t\t\n\t\tEdit_row_window.attrs = new String[]{\"actor name:\", \"rating:\", \"birth year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct m.id, m.name, m.num_links, m.year_made \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_cinema_movies m, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_cinema_actor_movie am\" +\n\t\t\t\t\t\t\t\t\t\t\t\" where am.movie_id=m.id and am.actor_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by num_links desc \";\n\t\t\n\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct m.id, m.name, m.num_links, m.year_made \" +\n\t\t\t\t\" from curr_cinema_movies m \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"movie name\", \"rating\", \"release year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. release year:\";\n\t\tEdit_row_window.linked_category_name = \"MOVIES\";\n\t}",
"void setElement(int row, String field, Object value);",
"public void edit(ArrayList<Movie> movies)\n {\n String deleteMovie = \"\";\n String newact1 = \"\";\n String newact2 = \"\";\n String newact3 = \"\";\n int newrating = 0; \n String title = \"\";\n int movieIndex = 0; \n ArrayList<Movie> result = new ArrayList<Movie>();\n \n title = insertTitle();\n result = checkExistence(movies, title);\n boolean value = displayExistanceResult(result, title);\n \n if (value == false)\n return;\n \n int options = insertNumberOption(result, \"modify\");\n \n options = options - 1;\n String head = result.get(options).getTitle();\n String director = result.get(options).getDirector();\n String actor1 = result.get(options).getActor1();\n String actor2 = result.get(options).getActor2(); \n String actor3 = result.get(options).getActor3();\n int rating = result.get(options).getRating();\n \n newact1 = actor1;\n newact2 = actor2;\n newact3 = actor3;\n newrating = rating; \n \n int ans = insertEditMenuAnswer();\n \n if (ans == 1)\n {\n newact1 = insertActor(1);\n newact2 = insertActor(2);\n \n if (newact2.length() != 0)\n {\n newact3 = insertActor(3);\n \n if (newact3.length() == 0)\n newact3 = actor3;\n }\n else \n if (newact2.length() == 0)\n newact2 = actor2;\n }\n else \n if (ans == 2)\n newrating = insertRating();\n else\n if (ans == 3)\n {\n newact1 = insertActor(1);\n newact2 = insertActor(2);\n \n if (newact2.length() != 0)\n {\n newact3 = insertActor(3);\n \n if (newact3.length() == 0)\n newact3 = actor3;\n }\n else \n if (newact2.length() == 0)\n newact2 = actor2; \n newrating = insertRating();\n }\n else\n if (ans == 4)\n return;\n \n actor1 = newact1;\n actor2 = newact2;\n actor3 = newact3;\n rating = newrating;\n \n for (Movie film : movies)\n {\n String titles = film.getTitle();\n \n if (head.equalsIgnoreCase(titles))\n break;\n \n movieIndex = movieIndex + 1;\n }\n \n Movie film = new Movie(head,director,actor1,actor2,actor3,rating);\n movies.set(movieIndex, film);\n \n System.out.println(\"\\n\\t\\t >>>>> As you want, \" + head.toUpperCase() + \" has been UPDATED! <<<<<\");\n displayOneFilm(film);\n }",
"@Override\r\n public void update(int index, Movie object, String value) {\n \tif (!value.matches(\"^[0-9]*$\")){\r\n \t\ttimeCell.clearViewData(selectionModel.getSelectedObject()); \r\n \t\tmovieProvider.refresh();\r\n \t\tmovieTable.redraw(); \r\n \t Window.alert(value + \" ist keine gueltige eingabe. Bitte eine positive Zahl eingeben!\");\r\n \t\t}\r\n \telse {\r\n \t\tobject.setTime(Integer.valueOf(value));\r\n \t\t\tmovieTable.redraw();\r\n \t\t\t}\r\n \t}",
"public final void setRow(int row, Vector3f v) {\n\tif (row == 0) {\n\t m00 = v.x;\n\t m01 = v.y;\n\t m02 = v.z;\n\t} else if (row == 1) {\n\t m10 = v.x;\n\t m11 = v.y;\n\t m12 = v.z;\n\t} else if (row == 2) {\n\t m20 = v.x;\n\t m21 = v.y;\n\t m22 = v.z;\n\t} else {\n\t throw new ArrayIndexOutOfBoundsException(\"row must be 0 to 2 and is \" + row);\n\t}\n }",
"public final void collapsePlaceHolderCells(final int row){\n\t\tint currentRow = row;\n\t\tint tableSize = table.size();\n\t\twhile (currentRow < (tableSize - 1)){\n\t\t\tRow rowObj = table.get(currentRow);\n\t\t\tRow replacementRow = new Row<T>();\n\t\t\tint columns = rowObj.asList().size();\n\t\t\tfor (int i = 0; i < columns; ++i){\n\t\t\t\tCell cell = rowObj.get(i);\n\t\t\t\tif ((cell != null) && cell.isPlaceholder()){\n\t\t\t\t\treplacementRow.add(table.get(currentRow + 1).get(i));\n\t\t\t\t\ttable.get(currentRow + 1).insert(i, new Cell<T>());\n\t\t\t\t}else{\n\t\t\t\t\treplacementRow.add(table.get(currentRow).get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\ttable.set(currentRow, replacementRow);\n\t\t\t++currentRow;\n\t\t}\n\n\t}",
"public Boolean updateMovieDetails(String title, int year, String director, String actors, int rating, String review, int fav){\n SQLiteDatabase DB = this.getWritableDatabase();\n ContentValues cv = new ContentValues();\n\n cv.put(\"title\", title);\n cv.put(\"year\", year);\n cv.put(\"director\", director);\n cv.put(\"actors\", actors);\n cv.put(\"rating\", rating);\n cv.put(\"review\", review);\n cv.put(\"fav\", fav);\n\n DB.update(\"MovieDetails\", cv, \"title=?\", new String[]{title});\n return true;\n }",
"public void setReplacedMovie(String replacedMovie) {\n this.replacedMovie = replacedMovie;\n }",
"@Override\n public int upsert(Movie obj)\n {\n if(this.search(obj.getTitle()) != null)\n this.delete(obj.getTitle());\n\n this.insert(obj);\n return (this.titles.get(obj.getTitle())).getKey();\n }",
"@Override\n\tpublic List<Object> modifyMovies(JSONObject param) {\n\t\tString name =StringUtil.ToString(param.getString(\"movieName\"));\n\t\tSystem.out.println(name);\n\t\tMap<String, Object> movie = new HashMap<String, Object>();\n\t\tmovie.put(\"name\", name);\n\t\tList<Object> movies = this.queryForList(\"Movie.selectByName\", movie);\n\t\treturn movies;\n\t}",
"private void setTable(int row)\n {\n table.setValueAt(idText.getText(), row, 0);\n table.setValueAt(nameText.getText(), row, 1);\n }",
"public static void updateMovie(Context context, MyMovie M) {\n\n String sqlStr = \"\";\n MovieSqlHelper movieDB = new MovieSqlHelper(context);\n ContentValues values = new ContentValues();\n\n values.put(DBConstants.SUBJECT_C, M.getSubject());\n values.put(DBConstants.BODY_C, M.getBody());\n values.put(DBConstants.IMAGE_URL_C, M.getImageUrl());\n\n if (AppConstants.saveImageLocaly)\n {\n values.put(DBConstants.MOVIE_IMAGE_C, M.getImageString64());\n }\n\n if ( M.getId() == AppConstants.EMPTY_ID || M.getId() == AppConstants.WEB_ID )\n {\n // New movie - do call insert instead of update\n Log.d(\"\",\"new movie: \" + M.getSubject());\n movieDB.getWritableDatabase().insert(DBConstants.MOVIES_T,null,values);\n\n } else\n {\n // Existing movie - call an update\n Log.d (\"-updateMovie\",\"id : \" + M.getId());\n movieDB.getWritableDatabase().update(DBConstants.MOVIES_T,values,DBConstants.ID_C+\"=?\",new String[]{\"\"+M.getId()});\n\n }\n\n // TODO verify successful completion\n movieDB.close();\n\n }",
"public void refreshTablePlayer()\n {\t \n String[][] dataPlayer = new String[this.joueurs.size()][columnNamesPlayers.length];\n for (int i=0; i<this.joueurs.size(); i++) {\n \tdataPlayer[i] = this.joueurs.get(i).toArray();\n }\n this.tableJoueurs.setModel(new DefaultTableModel(dataPlayer, columnNamesPlayers) {\n @Override\n public boolean isCellEditable(int row, int column) { return false; }\n });\n }",
"private void reinitRowValues() {\n for (int i=0; i<rowValues.length; i++) {\n rowValues[i] = null;\n }\n }",
"public void updateData(String name,int year,String director,String cast,int rating , String reviews , boolean fav ){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues updateValues = new ContentValues();\n updateValues.put(MOVIE_NAME,name);\n updateValues.put(MOVIE_YEAR,year);\n updateValues.put(MOVIE_DIRECTOR,director);\n updateValues.put(MOVIE_CAST,cast);\n updateValues.put(MOVIE_RATING,rating);\n updateValues.put(MOVIE_REVIEWS,reviews);\n updateValues.put(FAVOURITES,fav);\n db.update(Db_Table,updateValues,\"movie_name = ?\",new String[]{ name });\n }",
"public void setValueAt(Object obj, int row, int column) {\n Object[] rowValues = this.records.get(row);\n rowValues[column] = obj;\n fireTableDataChanged();\n }",
"public void putMovieData(String movieName, String movieDate, String genre) {\n String[] columns = {MovieUriContract.GenreEntry._ID, MovieUriContract.GenreEntry.COLUMN_NAME};\n\n try{\n Cursor cursor = providerClient.query(\n MovieUriContract.GenreEntry.CONTENT_URI,\n columns,\n null,\n null,\n null\n );\n\n int genreId = -1;\n if(cursor.moveToFirst()) {\n genreId = cursor.getColumnIndex(genre);\n }\n cursor.close();\n\n if(genreId >= 0) {\n ContentValues movieValues = new ContentValues();\n movieValues.put(MovieUriContract.MovieEntry.COLUMN_NAME, movieName);\n movieValues.put(MovieUriContract.MovieEntry.COLUMN_RELEASE_DATE, movieDate);\n movieValues.put(MovieUriContract.MovieEntry.COLUMN_GENRE, genreId);\n providerClient.update(\n MovieUriContract.GenreEntry.CONTENT_URI,\n movieValues,\n null,\n null);\n }\n else {\n view.setErrorMessage();\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void updateFilm(com.dutproject.cinemaproject.model.bean.Film film) throws SQLException {\n\t\t\n\t}",
"public MovieTableModel(){\n movies = new ArrayList<>();\n initLoadTable();\n }",
"private void addMovieToDb() {\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(MovieColumns.ADULT,mMovie.getAdult());\n contentValues.put(MovieColumns.BACKDROP_PATH,mMovie.getBackdropPath());\n contentValues.put(MovieColumns.GENRE,Utils.arrayToString(mMovie.getGenreIds()));\n contentValues.put(MovieColumns.MOV_ID,mMovie.getMovieId());\n contentValues.put(MovieColumns.ORIGINAL_LANGUAGE,mMovie.getOrigLanguage());\n contentValues.put(MovieColumns.ORIGINAL_TITLE,mMovie.getOrigTitle());\n contentValues.put(MovieColumns.OVERVIEW,mMovie.getOverview());\n contentValues.put(MovieColumns.RELEASE_DATE,mMovie.getReleaseDate());\n contentValues.put(MovieColumns.POSTER_PATH,mMovie.getPosterPath());\n contentValues.put(MovieColumns.POPULARITY,mMovie.getPopularity());\n contentValues.put(MovieColumns.TITLE,mMovie.getTitle());\n contentValues.put(MovieColumns.VIDEO, mMovie.getVideo());\n contentValues.put(MovieColumns.VOTE_AVERAGE, mMovie.getVoteAverage());\n contentValues.put(MovieColumns.VOTE_COUNT, mMovie.getVoteCount());\n\n try {\n getActivity().getContentResolver().insert(MoviesProvider.Movies.MOVIES_URI, contentValues);\n Toast.makeText(getContext(),getString(R.string.movie_added_as_favorite),Toast.LENGTH_SHORT).show();\n }catch (Exception ex){\n if(ex instanceof SQLiteConstraintException){\n Toast.makeText(getContext(), getString(R.string.movie_already_added_as_favorite), Toast.LENGTH_SHORT).show();\n }else {\n Toast.makeText(getContext(), getString(R.string.movie_added_as_favorite_problem), Toast.LENGTH_SHORT).show();\n }\n }\n }",
"private String addFieldValuesToRow(String row, MapWritable mapw, String columnName) {\n Object valueObj = (Object) mapw.get(new Text(columnName));\n row += valueObj.toString() + \"|\";\n return row;\n }",
"public void acceptRow( Object[] row ) {\n nrow_++;\n\n /* Get values using the column lookup table.\n * In fact we know what sequence the columns are in so we could\n * hard code the colum indices in here, but doing it like this\n * reduces the chance of programming error. */\n final String ivoid = getString( row, \"ivoid\" );\n final String shortName = getString( row, \"short_name\" );\n final String title = getString( row, \"res_title\" );\n final String refUrl = getString( row, \"reference_url\" );\n final String baseRole = getString( row, \"base_role\" );\n final String roleName = getString( row, \"role_name\" );\n final String email = getString( row, \"email\" );\n final Object intfIndex = getEntry( row, \"intf_index\" );\n final String accessUrl = getString( row, \"access_url\" );\n final String standardId = getString( row, \"standard_id\" );\n final String capType = getString( row, \"cap_type\" );\n final String capDescription = getString( row, \"cap_description\" );\n final String stdVersion = getString( row, \"std_version\" );\n final String subjectTxt = getString( row, \"res_subjects\" );\n\n /* Update this object's data structures in accordance with the\n * information received from this row. */\n if ( ! resMap_.containsKey( ivoid ) ) {\n String[] subjects = subjectTxt == null\n ? new String[ 0 ]\n : subjectTxt.split( SUBJECT_DELIM );\n resMap_.put( ivoid,\n new RegTapResource( ivoid, shortName, title,\n refUrl, subjects ) );\n }\n RegTapResource resource = resMap_.get( ivoid );\n if ( \"contact\".equals( baseRole ) ) {\n resource.contactName_ = roleName;\n resource.contactEmail_ = email;\n }\n else if ( \"publisher\".equals( baseRole ) ) {\n resource.publisherName_ = roleName;\n }\n if ( intfIndex != null ) {\n if ( ! resource.capMap_.containsKey( intfIndex ) ) {\n resource.capMap_.put( intfIndex,\n new RegCapabilityInterface() {\n public String getAccessUrl() {\n return accessUrl;\n }\n public String getStandardId() {\n return standardId;\n }\n public String getXsiType() {\n return capType;\n }\n public String getDescription() {\n return capDescription;\n }\n public String getVersion() {\n return stdVersion;\n }\n } );\n }\n }\n }",
"public void updateData(List<Movie> movies) {\n mMovies = movies;\n notifyDataSetChanged();\n }",
"public Film update(Film obj) {\n\t\t\n\t\tConnection.update(\"UPDATE film SET codeFilm ='\"+obj.getCodeFilm()+\"','\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t +obj.getNomFilm()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\"' WHERE idFilm=\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+obj.getId()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\";\");\n\t\tConnection.close();\n\t\treturn obj;\n\t}",
"void setRowSelection(int index, String value) {\r\n int val;\r\n try {\r\n val = ( (Integer) nameToIndexMap.get(value)).intValue();\r\n }\r\n catch (Exception e) {\r\n return;\r\n }\r\n ySelections[index] = val;\r\n\r\n // now, for all the plots in this row, update the objectives\r\n for (int i = 0; i < 2; i++) {\r\n plots[index][i].setObjectives(xSelections[i], val);\r\n /////////////////////////////////\r\n plots[index][i].redraw();\r\n /////////////////////////////////\r\n }\r\n fireTableDataChanged();\r\n }",
"public void setRow(int value) {\n this.row = value;\n }",
"private void updateView(ArrayList<MovieDetails> movieData){\n movieDetailsAdapter = new MovieDetailsAdapter(this, movieData);\n //Get a reference to the gridView and attach the adapter to it\n GridView mGridView = (GridView) findViewById(R.id.movies_grid);\n mGridView.setAdapter(movieDetailsAdapter);\n //Set a OnItemClickListener for the GridView attached to the Adapter\n mGridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n //Get the MovieDetails Object and pass it to the new activity as parcelable object\n MovieDetails movieDetails = movieDetailsAdapter.getItem(i);\n Intent intent = new Intent(MainActivity.this,MovieDetailActivity.class);\n intent.putExtra(\"movieDetails\",movieDetails);\n startActivity(intent);\n }\n });\n }",
"public void setRow(Board board, int[] row, int rowNum) {\n for (int i = 0; i < 9; i++) {\n board.setNum(i, rowNum, row[i]);\n }\n }",
"public void setMovieData(MovieInfo[] movieInfoData) {\n mMovieInfoData = movieInfoData;\n notifyDataSetChanged();\n }",
"public void setRow(int row)\n\t{\n\t\tthis.row = row;\n\t}",
"public void setRow(int row)\n\t{\n\t\tthis.row = row;\n\t}",
"@Override\n public void getMovieContentData() {\n Cursor movieCursor = queryMovieData();\n\n ArrayList<MovieData> movieData = new ArrayList<>();\n\n if(movieCursor != null) {\n //do stuff\n while(movieCursor.moveToNext()) {\n MovieData movie = new MovieData();\n movie.setName(movieCursor.getString(movieCursor.getColumnIndex(MovieUriContract.MovieEntry.COLUMN_NAME)));\n movie.setDate(movieCursor.getString(movieCursor.getColumnIndex(MovieUriContract.MovieEntry.COLUMN_RELEASE_DATE)));\n movie.setGenreId(movieCursor.getInt(movieCursor.getColumnIndex(MovieUriContract.MovieEntry.COLUMN_GENRE)));\n }\n movieCursor.close();\n }\n\n //query genre data next, using the GenreId in Movie Data\n for (MovieData movie : movieData) {\n Cursor genreCursor = queryGenreData(movie.getGenreId());\n\n if(genreCursor != null) {\n //do stuff\n if (genreCursor.moveToFirst()) {\n movie.setGenre(movieCursor.getString(movieCursor.getColumnIndex(MovieUriContract.GenreEntry.COLUMN_NAME)));\n }\n genreCursor.close();\n }\n }\n\n view.updateMovieDataView(movieData);\n }",
"@Override\n public Matrix assignRow(int row, Vector other) {\n // note the reversed pivoting for other\n return base.assignRow(rowPivot[row], new PermutedVectorView(other, columnUnpivot, columnPivot));\n }",
"@Override\r\n\tpublic int updateByPrimaryKey(Movie record) {\n\t\treturn this.movieMapper.updateByPrimaryKey(record);\r\n\t}",
"public void update() {\n\n dbWork.cleanAll();\n\n List<DataFromServiceKudaGo> list = requestDataFromService();\n\n List<Film> films = new ArrayList<>();\n for (DataFromServiceKudaGo data : list) {\n Film film = new Film(list.indexOf(data), data.getNameMovie(), data.getPosterMoviePath(),\n data.getRunning_time(), data.getPrice(), data.getImax(),\n data.getCountryFilm(), data.getYearFilm(), data.getTrailerFilm(),\n data.getAgeFilm(), data.getDirectorFilm(), data.getNameCinema(),\n data.getAddressCinema(), data.getPhone(), data.getStationAboutCinema(),\n data.getPosterCinemaPath(), data.getBeginning_time(), data.getDescription());\n films.add(film);\n }\n\n dbWork.setFilms(films);\n\n fillShows();\n }",
"@Override\n public void setValueAt(Object obj, int row, int col) {\n if (isCellEditable(row,col)){\n Feature f = fc.get(row);\n LifeStageAttributesInterface atts = (LifeStageAttributesInterface) f.getAttribute(1);\n if (debug) logger.info(\"SetValue for row \"+atts.getCSV());\n atts.setValue(keys.get(col), obj);\n fireTableCellUpdated(row, col);\n }\n }",
"private void addTuple(ImdbMovie movie) {\n //Extract the user input\n String name = textName.getText().toString().trim();\n String imdbRating = null;\n String year = null;\n\n if (movie != null) {\n name = movie.Title;\n imdbRating = movie.imdbRating;\n year = movie.Year;\n }\n\n String Comment = textComment.getText().toString().trim();\n String rating = textRating.getText().toString().replace(',', '.').trim();\n String sort = sort_spinner.getSelectedItem().toString();\n String time = new SimpleDateFormat(\"EEE, d MMM yyyy HH:mm:ss\").format(Calendar.getInstance().getTime());\n\n\n String regex = \"[+-]?([0-9]*[.])?[0-9]+\";\n if (!rating.matches(regex)) {\n Toast.makeText(this, \"Wrong imput, use numbers\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (rating.isEmpty() || Comment.isEmpty() || name.isEmpty()) {\n Toast.makeText(this, \"Empty\", Toast.LENGTH_SHORT).show();\n } else if (Float.parseFloat(rating) > 10 || Float.parseFloat(rating) < 1) {\n Toast.makeText(this, \"Wrong, the number is too low or high\", Toast.LENGTH_SHORT).show();\n } else if (rating.matches(regex)) {\n String updateQuery = \"INSERT INTO filmseries (name, reason, rating, sort, time, imdb_rating, omdb_year)\\n\"\n + \"VALUES (?,?,?,?,?,?,?)\";\n mDatabase.execSQL(updateQuery, new String[]{name, Comment, rating, sort, time, imdbRating, year});\n\n //Bring the user to MainActivity when the operation is done\n Intent mainIntent = new Intent(this, MainActivity.class);\n startActivity(mainIntent);\n\n // Notify the user that the operation succeeded\n Toast.makeText(this, \"Your like has been added!\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(this, \"Wrong\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void setValueAt(Object aValue, int aRow, int aColumn) {\n model.setValueAt(aValue, aRow, aColumn); \n }",
"public void update() throws SQLException {\r\n\t\t//SQL-Statment\r\n\r\n\t\tString sql = \" UPDATE \" +table+ \" SET \" + col_genre + \" = ?\"\r\n\t\t\t\t+ \"WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setString(1, this.getGenre());\r\n\t\tstmt.setInt(2, this.getGenreID());\r\n\r\n\r\n\t\t//Update\r\n\t\tint rowsUpdated = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsUpdated+ \"Zeilen hinzugefügt\");\r\n\t\tstmt.close();\r\n\r\n\t}",
"public void setRow(int row) {\n\t\tthis.row = row; \n\t}",
"public void setMovie(Movie movie) {\n this.movie = movie;\n }",
"public void updateRow(Bundle map) {\n\n // Find the record\n int id = map.getInt(\"id\");\n int position = -1;\n for (mCursor.moveToFirst(); !mCursor.isAfterLast(); mCursor.moveToNext()) {\n if (mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX) == id) {\n position = mCursor.getPosition();\n break;\n }\n }\n if (position < 0) {\n return;\n }\n\n mCursor.moveToPosition(position);\n ContentValues values = new ContentValues();\n String title = map.getString(Browser.BookmarkColumns.TITLE);\n if (!title.equals(mCursor\n .getString(Browser.HISTORY_PROJECTION_TITLE_INDEX))) {\n values.put(Browser.BookmarkColumns.TITLE, title);\n }\n String url = map.getString(Browser.BookmarkColumns.URL);\n if (!url.equals(mCursor.\n getString(Browser.HISTORY_PROJECTION_URL_INDEX))) {\n values.put(Browser.BookmarkColumns.URL, url);\n }\n\n if (map.getBoolean(\"invalidateThumbnail\") == true) {\n values.put(Browser.BookmarkColumns.THUMBNAIL, new byte[0]);\n }\n if (values.size() > 0\n && mContentResolver.update(Browser.BOOKMARKS_URI, values,\n \"_id = \" + id, null) != -1) {\n refreshList();\n }\n }",
"@Override\n public void setValueAt(Object value, int row, int column) { data[row][column] = value; }",
"private Movie mapMovie(final Record movieRecord) {\n return new Movie(\n movieRecord.get(\"title\").asString(),\n movieRecord.get(\"tagline\").asString(),\n movieRecord.get(\"released\").asInt()\n );\n }",
"public void setRow(int row) {\n\t\tthis.row = row;\n\t}",
"public void setRow(int row) {\n\t\tthis.row = row;\n\t}",
"public static void updateRating(){\r\n System.out.println('\\n'+\"Update Rating\");\r\n System.out.println(movies);\r\n System.out.println('\\n'+ \"Which movies ratings would you like to update\");\r\n String movieTitle = s.nextLine();\r\n boolean movieFound = false;\r\n // Searching for the name of the movie in the list\r\n for(Movie names:movies ){\r\n //if the movie title is in teh list change rating\r\n if (movieTitle.equals(names.getName())){\r\n System.out.println(names.getName() + \" has a current rating of \"+ names.getRating()+'\\n'+ \"What would you like to change it to?\");\r\n double newRating = s.nextInt();\r\n s.nextLine();\r\n names.setRating(newRating);\r\n System.out.println(\"You have changed the rating of \"+ names.getName()+ \" to \"+ names.getRating());\r\n movieFound = true;\r\n break;\r\n }\r\n }\r\n //if movie titile not in the current list\r\n if (!movieFound){\r\n System.out.println(\"This moves is not one you have previously watched. Please add it first.\");\r\n }\r\n }",
"public MovieDetails editMovieFlexEntry(MovieDetails md);",
"private void updateTableData() {\n if (articles.size() == 0) {\n return; // no agent data yet !!!!\n }\n for (int i = 0; i < articles.size(); i++) {\n NewsArticle article = (NewsArticle) articles.elementAt(i);\n String score = \"0.0\";\n\n switch (filterType) {\n case FilterAgent.USE_KEYWORDS:\n score = String.valueOf(article.getKeywordScore());\n break ;\n case FilterAgent.USE_CLUSTERS:\n score = String.valueOf(article.getClusterScore());\n break ;\n case FilterAgent.USE_PREDICTED_RATING:\n score = String.valueOf(article.getPredictedRating()) ;\n break ;\n }\n data[i][COL_SCOREID] = score;\n }\n return;\n }",
"public void setValueAt(Object value, int row, int col)\n {\n if (col == 1)\n {\n matchResults.get(row).setFirstName(value.toString());\n }\n // set the last name string\n else if (col == 3)\n { \n matchResults.get(row).setlastName(value.toString());\n }\n fireTableCellUpdated(row, col);\n }",
"private final void prepareOrginalValiesTable() {\n\t\torig_values_list = new ArrayList<ArrayList<String>>();\n\t\tfor (int col = 0; col < previewTable.getColumnCount(); ++col) {\n\t\t\tfinal ArrayList<String> n = new ArrayList<String>();\n\t\t orig_values_list.add( n);\n\t\t for (int row = 0; row < previewTable.getRowCount(); ++row) {\n\t\t \t//TODO what about list values?\n\t\t\t\tString v = (String) previewTable.getValueAt(row, col);\n\t\t\t\tn.add(v);\n\t\t\t}\n\t\t}\n\t}",
"private void populateMatrixCursorRow(int row, Cursor cursor) {\n cursor.moveToFirst();\n String name = cursor.getString(QUERY_DISPLAY_NAME_INDEX);\n int type = cursor.getInt(QUERY_LABEL_INDEX);\n String label = \"\";\n if (type == 0) {\n label = cursor.getString(QUERY_CUSTOM_LABEL_INDEX);\n } else {\n label = (String) CommonDataKinds.Phone.getTypeLabel(getResources(), type, null);\n }\n String number = cursor.getString(QUERY_NUMBER_INDEX);\n long photoId = cursor.getLong(QUERY_PHOTO_ID_INDEX);\n int simId = -1;\n if (!cursor.isNull(QUERY_INDICATE_PHONE_SIM_INDEX)) {\n simId = cursor.getInt(QUERY_INDICATE_PHONE_SIM_INDEX);\n }\n Log.i(TAG, \"populateMatrixCursorRow(), name = \" + name + \", label = \" + label\n + \", number = \" + number + \" photoId:\" + photoId + \"simId: \" + simId);\n\t\t\n if(simId > 0){\n photoId = getSimType(simId);\n }\n\t\t\n if (TextUtils.isEmpty(number)) {\n populateMatrixCursorEmpty(this, mMatrixCursor, row, row + 1);\n mPrefNumState[row] = mPref.getString(String.valueOf(row), \"\");\n mPrefMarkState[row] = mPref.getInt(String.valueOf(offset(row)), -1);\n return;\n }\n mMatrixCursor.addRow(new String[] {\n String.valueOf(row + 1), name, label, \n //PhoneNumberUtils.formatNumber(number),\n number,\n String.valueOf(photoId), String.valueOf(simId)\n });\n }",
"private void setRowValues(int row, int column) {\n\n String[] values = new String[fields.size()];\n for (int i = 0; i < fields.size(); ++i) {\n values[i] = recordNotifier.getValueAt(row, i);\n }\n recordForm.setValues(values);\n \n }",
"public final void setRow(int row, float v[]) {\n\tif (row == 0) {\n\t m00 = v[0];\n\t m01 = v[1];\n\t m02 = v[2];\n\t} else if (row == 1) {\n\t m10 = v[0];\n\t m11 = v[1];\n\t m12 = v[2];\n\t} else if (row == 2) {\n\t m20 = v[0];\n\t m21 = v[1];\n\t m22 = v[2];\n\t} else {\n\t throw new ArrayIndexOutOfBoundsException(\"row must be 0 to 2 and is \" + row);\n\t}\n }",
"public void updateRow(int row, String month, int quantity) {\n\t\t//invoke the update method of Report2_Row class, using month, quantity\n\t\tlist.get(row).update(month, quantity);\n\t}",
"public void setRow(int row) {\n\t\t\tif (row > 0)\n\t\t\t\tthis.row = row;\n\t\t}",
"void setObject(int index, Object value) throws SQLException;",
"void replacePojo(Object pojo);",
"public void populate(){\n DefaultTableModel dtms = (DefaultTableModel)ticketTable.getModel();\n dtms.setRowCount(0);\n for(Ticket a:ticket)\n {\n Object[] row = new Object[dtms.getColumnCount()];\n row[0]=a;\n row[1]=a.getAirlineNO();\n row[2]=a.getCustomer();\n row[3]=a.getSeat();\n row[4]=a.getAirlineAgency();\n out.println(a+\" \"+a.getAirlineNO()+\" \"+a.getCustomer()+\" \"+a.getSeat()+\" \"+a.getAirlineAgency());\n dtms.addRow(row);\n }\n }",
"public static boolean updateMovieRecord(SQLiteDatabase db, ContentValues cv, int id){\n try{\n db.update(\"MOVIE\", cv, \"_id = ?\", new String[]{Integer.toString(id)});\n //Log.v(TAG, \"Movie Updated\");\n /*\n if(context != null){\n Toast.makeText(context, \"Your selection has been updated\", Toast.LENGTH_SHORT).show();\n }\n */\n return true;\n }catch (Exception e){\n Log.e(TAG, e.getMessage());\n return false;\n }\n }",
"public void initLoadTable(){\n movies.clear();\n try {\n Connection conn = ConnectionFactory.getConnection();\n try (Statement stmt = conn.createStatement()) {\n String str=\"select title,director,prodYear,lent,lentCount,original,storageType,movieLength,mainCast,img from movies \";\n ResultSet rs= stmt.executeQuery(str);\n while(rs.next()){\n String title=rs.getString(\"title\");\n String director=rs.getString(\"director\");\n int prodYear=rs.getInt(\"prodYear\");\n boolean lent=rs.getBoolean(\"lent\"); \n int lentCount=rs.getInt(\"lentCount\");\n boolean original=rs.getBoolean(\"original\");\n String storageType=rs.getString(\"storageType\");\n int movieLength=rs.getInt(\"movieLength\");\n String mainCast=rs.getString(\"mainCast\");\n Blob blob = rs.getBlob(\"img\");\n InputStream inputStream = blob.getBinaryStream();\n OutputStream outputStream = new FileOutputStream(\"resources/\"+title+director+\".jpg\");\n int bytesRead = -1;\n byte[] buffer = new byte[1];\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n }\n inputStream.close();\n outputStream.close();\n System.out.println(\"File saved\"); \n File image = new File(\"resources/\"+title+director+\".jpg\");\n \n movies.add(new Movie(title,director,prodYear,lent,lentCount,original,storageType,movieLength,mainCast,image));\n }\n rs.close();\n stmt.close(); \n }\n conn.close();\n } catch (Exception ex) {\n System.err.println(ex.toString());\n } \n \n fireTableDataChanged();\n }",
"public final void setRow(int row, float x, float y, float z) {\n\tif (row == 0) {\n\t m00 = x;\n\t m01 = y;\n\t m02 = z;\n\t} else if (row == 1) {\n\t m10 = x;\n\t m11 = y;\n\t m12 = z;\n\t} else if (row == 2) {\n\t m20 = x;\n\t m21 = y;\n\t m22 = z;\n\t} else {\n\t throw new ArrayIndexOutOfBoundsException(\"row must be 0 to 2 and is \" + row);\n\t}\n }",
"public void setValueAt(Object value, int row, int col) {\r\n \tswitch(col){\r\n case 0:\r\n \tattributs.get(row).setPk((Boolean)value);\r\n \tbreak;\r\n case 1:\r\n \tSystem.out.println(value);\r\n \tattributs.get(row).setName((String)value);\r\n \tbreak;\r\n case 2:\r\n \tattributs.get(row).setType((String)value);\r\n \tbreak;\r\n case 3:\r\n \tattributs.get(row).setTaille((String)value);\r\n \tbreak;\r\n case 4:\r\n \tattributs.get(row).setNul((Boolean)value);\r\n \tbreak;\r\n case 5:\r\n \tattributs.get(row).setUk((Boolean)value);\r\n \tbreak;\r\n \t\r\n \t}\r\n fireTableCellUpdated(row, col);\r\n }",
"@Action\n public void modifyAction() {\n E rowObject = (E) dataTable.getSelectedRowObject();\n if (rowObject != null) {\n rowObject = (E) rowObject.clone();\n\n if (viewRowState) {\n viewRow(rowObject);\n } else {\n E newRowObject = modifyRow(rowObject);\n if (newRowObject != null) {\n replaceTableObject(newRowObject);\n fireModify(newRowObject);\n }\n }\n }\n }",
"private void setInfo(int row)\n {\n String ID=table.getModel().getValueAt(row, 0).toString();\n String Name=table.getModel().getValueAt(row, 1).toString(); \n idText.setText(ID);\n nameText.setText(Name);\n }",
"public void setValueOf( final Object value, final R row, final C columnEnum ) {}",
"@Override\r\n\tpublic void updateFilm(Film film) {\n\r\n\t}",
"private void refreshPresentationTable() {\n\t\tObject[][] presentationData = new Object[presentationList.size()][3];\n\t\tfor (int i = 0; i < presentationList.size(); i++) {\n\t\t\tpresentationData[i][0] = presentationList.get(i).getPresentationTitle();\n\t\t\tpresentationData[i][1] = presentationList.get(i).getPresentationDescription();\n\t\t\tpresentationData[i][2] = presentationList.get(i).getPresentationId();\n\t\t}\n\t\tmainWindow.redrawPresentationTable(presentationData);\t\n\t}",
"void row_Modify(String[] col, int row_id){\n\t\tString values=\"\";\n\t\tStatement stm=null;\n\t\t//Change tuple by executing SQL command\n\t\tfor(int i=1;i<colNum;i++){\n\t\t\tif(col[i]!=\"\"){\n\t\t\t\tif(i!=1 && values!=\"\") values+=\", \";\n\t\t\t\tif(i==1) values+=\"Type='\"+col[i]+\"' \";\n\t\t\t\telse if(i==2) values+=\"Address='\"+col[i]+\"' \";\n\t\t\t\telse if(i==3) values+=\"City='\"+col[i]+\"' \";\n\t\t\t\telse if(i==4) values+=\"State='\"+col[i]+\"' \";\n\t\t\t\telse if(i==5) values+=\"Zip='\"+col[i]+\"' \";\n\t\t\t\telse if(i==6) values+=\"Price=\"+col[i]+\" \";\n\t\t\t\telse if(i==7) values+=\"Beds=\"+col[i]+\" \";\n\t\t\t\telse if(i==8) values+=\"Baths=\"+col[i]+\" \";\n\t\t\t\telse if(i==9) values+=\"SQFT=\"+col[i]+\" \";\n\t\t\t\telse if(i==10) values+=\"Year_built=\"+col[i]+\" \";\n\t\t\t\telse if(i==11) values+=\"Parking_spot=\"+col[i]+\" \";\n\t\t\t\telse if(i==12) values+=\"Days_on_market=\"+col[i]+\" \";\n\t\t\t\telse if(i==13) values+=\"Status='\"+col[i]+\"' \";\n\t\t\t\telse if(i==14) values+=\"Agency='\"+col[i]+\"' \";\n\t\t\t\t\n\t\t\t}\n\t\t}//end of for loop\n\t\t\n\t\tif(values!=\"\"){\n\t\t String sql=\"update \"+tableName+\" set \"+values+\" where id=\"+row_id;\n\t\t System.out.println(\"sql: \"+sql); \n\t\t try{\n\t\t \t stm=con.createStatement(); \n\t\t \t stm.executeUpdate(sql);\n\t\t \t //Append SQL command and time stamp on log file\n\t\t \t outfile.write(\"TIMESTAMP: \"+getTimestamp());\n\t\t\t\t outfile.newLine();\n\t\t\t\t outfile.write(sql);\n\t\t\t\t outfile.newLine();\n\t\t\t\t outfile.newLine();\n\t\t\t //Catch SQL exception\t \n\t\t }catch (SQLException e ) {\n\t\t \t e.printStackTrace();\n\t\t //Catch I/O exception \t \n\t\t }catch(IOException ioe){ \n\t\t \t ioe.printStackTrace();\n\t\t } finally {\n\t\t \t try{\n\t\t if (stm != null) stm.close(); \n\t\t }\n\t\t \t catch (SQLException e ) {\n\t\t \t\t e.printStackTrace();\n\t\t\t }\n\t\t }\t\n\t\t}\n\t}",
"public void setValuesJTableMatrizPrioridadesAlternativas(){\n int alternativas = views.useController().getProblema().getAlternativas();\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, criterios);\n jTableMatrizPrioridadesAlternativas.setModel(modelo);\n jTableMatrizPrioridadesAlternativas.setEnabled(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setResizingAllowed(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableMatrizPrioridadesAlternativas.getColumnCount();i++){\n jTableMatrizPrioridadesAlternativas.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n for(int c = 0; c < criterios; c++){ \n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getMainMatrix().get(f, c)), f, c);\n } \n }\n }",
"private void makeModifiable() {\n final TableEditor editor = new TableEditor(providers);\n editor.horizontalAlignment = SWT.LEFT;\n editor.grabHorizontal = true;\n editor.minimumWidth = 50;\n\n // editing the fourth column\n final int editable = 4;\n\n providers.addSelectionListener(new SelectionListener() {\n \n @Override\n public void widgetSelected(SelectionEvent exc) {\n\n TableItem item = (TableItem) exc.item;\n\n //Column should only be editable if arguments are allowed for the provider.\n if (item.getText(3).toString().equals(\"false\") || item == null) {\n return;\n }\n\n Control oldEditor = editor.getEditor();\n\n if (oldEditor != null) {\n oldEditor.dispose();\n }\n\n \n Text newEditor = new Text(providers, SWT.NONE);\n newEditor.setText(item.getText(editable));\n newEditor.addModifyListener(new ModifyListener() {\n\n \n @Override\n public void modifyText(ModifyEvent exc) {\n Text text = (Text) editor.getEditor();\n editor.getItem().setText(editable, text.getText());\n }\n });\n \n newEditor.selectAll();\n newEditor.setFocus();\n editor.setEditor(newEditor, item, editable); \n }\n\n @Override\n public void widgetDefaultSelected(SelectionEvent exc) {\n // TODO Auto-generated method stub\n }\n });\n \n for (int i = 0; i < TITLES.length; i++) {\n providers.getColumn(i).pack();\n }\n }",
"void getRolesForMovie(Movie movie) {\n\t\tMap<String, Object> params = new HashMap<String, Object>();\n\t\tparams.put(\"title\", movie.getTitle());\n\t\tparams.put(\"year\", movie.getProduction_year());\n\t\tmovie.setRoles(new HashSet<Role>(\n\t\t\t\t_namedParameterJdbcTemplatedbcTemplate.query(\n\t\t\t\t\t\tSQL_SELECT_ROLES_BY_MOVIE_TITLE_AND_YEAR, params,\n\t\t\t\t\t\tnew RoleRowMapper())));\n\t}",
"public void addData(Movie movieToAdd, View view)\n {\n /* Creating a DatabaseHelper Instance to access the getData Method in order to get the\n * Title (Index 1 in terms of Columns) of all the saved Movies in the Database and to make\n * sure that the Title of the Movie to be registered isn't equals to any of the existing movies\n */\n DatabaseHelper databaseHelper = new DatabaseHelper(context);\n Cursor c = databaseHelper.getData();\n\n ArrayList<String> listLabels = new ArrayList<>();\n\n while(c.moveToNext())\n {\n //get the value from the database in column 1\n //then add it to the ArrayList\n listLabels.add(c.getString(1));\n }\n\n // Error Message if the Title of the Movie to Add Already is found\n if (listLabels.contains(movieToAdd.getTitle()))\n\n Snackbar.make(view, \"Movie Already has already been Registered !!!\",Snackbar.LENGTH_SHORT)\n .setBackgroundTint(context.getResources().getColor(R.color.transparent_yellow))\n .setTextColor(context.getResources().getColor(R.color.grey_black))\n .show();\n\n else\n {\n int favorite = 0;\n\n if (movieToAdd.isFavorite())\n\n favorite = 1;\n\n /* the execSQL Method simply executes this query on the Database, in this Query UPDATE is\n * used to specify the Table Name to Update, SET specifies the Column name to Update in this\n * case COL8 contains favorites and WHERE is the condition in this case it is to make sure\n * that the Movie Title Matches with the given title\n */\n this.getWritableDatabase().execSQL(\n \"INSERT INTO \" + TABLE_NAME +\n \" (title, year, director, actor_actress, rating, review, favorite)\" +\n \" values('\"\n + movieToAdd.getTitle() + \"', '\" + movieToAdd.getYear() + \"', '\"\n + movieToAdd.getDirector() + \"', '\" + movieToAdd.getActorActress() + \"', \"\n + movieToAdd.getRating() + \", '\" + movieToAdd.getReview() + \"', \" + favorite\n + \")\");\n\n Snackbar.make(view, \"Successfully Registered !\",Snackbar.LENGTH_SHORT)\n .setBackgroundTint(context.getResources().getColor(R.color.transparent_yellow))\n .setTextColor(context.getResources().getColor(R.color.grey_black))\n .show();\n }\n }",
"public void getAllRowsData(Vector[] va) {\n int rowCount = getModel().getRowCount();\n Vector data = ((DefaultTableModel) getModel()).getDataVector();\n for (int i = 0; i < rowCount; ++i) {\n va[i] = (Vector) data.get(i);\n }\n }",
"public void updateRowObject(E rowObject) {\n dataTable.updateRow(rowObject);\n fireModify(rowObject);\n }",
"private void UpdateTable() {\n\t\t\t\t\n\t\t\t}",
"public native void updateRow(TableViewRow row, TableViewAnimation animation) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso\n\t\t\t\t.updateRow(\n\t\t\t\t\t\[email protected]::getJsObj()(),\n\t\t\t\t\t\[email protected]::getJsObj()());\n }-*/;",
"public void setRow(int r) {\n\t\tthis.row = r;\n\t}",
"public void setValuesJTableResultados(){\n int alternativas = views.useController().getProblema().getAlternativas();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, 1);\n jTableVectorResultados.setModel(modelo);\n jTableVectorResultados.setEnabled(false);\n jTableVectorResultados.getTableHeader().setResizingAllowed(false);\n jTableVectorResultados.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n jTableVectorResultados.getColumnModel().getColumn(0).setHeaderValue(\" \"); \n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getPriorityVector().get(f, 0)), f, 0);\n } \n }",
"public static void updateField() {\r\n\t\tfor (int i = 0; i < ROWS; i++) {\r\n\t\t\tfor (int j = 0; j < COLUMNS; j++) {\r\n\t\t\t\tfield[i][j] = EMPTY;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < food.size(); i++) {\r\n\t\t\tfield[food.get(i)[1]][food.get(i)[2]] = food.get(i)[0];\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < snake.size(); i++) {\r\n\t\t\tfield[snake.get(i)[0]][snake.get(i)[1]] = SNAKE;\r\n\t\t}\r\n\t}",
"private void updateAgentTable(JTable table, Object[][] rows) {\n DefaultTableModel model = (DefaultTableModel) table.getModel();\n\n while (model.getRowCount() > 0) {\n model.removeRow(0);\n }\n\n for (Object[] row : rows) {\n model.addRow(row);\n }\n }",
"private void repopulateTableForAdd()\n {\n clearTable();\n populateTable(null);\n }",
"public void setMovie(Movie movie) {\r\n\r\n // it must be possible to set null when deleting objects\r\n if ((movie != null) && (this.movie != null) &&\r\n !this.movie.equals(movie)) {\r\n throw new IllegalArgumentException(\r\n \"Not allowed to change the movie reference.\");\r\n }\r\n this.movie = movie;\r\n }",
"public void updateTable() {\n tabelModel.setRowCount(0);\n Link current = result.first;\n for (int i = 0; current != null; i++) {\n Object[] row = {current.getMasjid(), current.getAlamat()};\n tabelModel.addRow(row);\n current = current.next;\n }\n }",
"public void actualizarMovie(long id, int rating, String comment, boolean view) {\n ContentValues values = new ContentValues();\n\n //Seteando body y author\n values.put(ColumnMovie.USER_RATING, rating);\n values.put(ColumnMovie.COMMENT, comment);\n values.put(ColumnMovie.VIEWED, view);\n\n //Clausula WHERE\n String selection = ColumnMovie.ID + \" = ?\";\n String[] selectionArgs = {Long.toString(id)};\n\n //Actualizando\n database.update(MOVIE_TABLE_NAME, values, selection, selectionArgs);\n }",
"private void setValue(int columnIndex, String value) throws Exception {\n //TODO Take into account the possiblity of a collision, and notify listeners if necessary\n if (wasNull || value == null) {\n rowValues[columnIndex - 1] = null;\n } else {\n switch (metaData.getColumnType(columnIndex)) {\n case Types.TINYINT:\n rowValues[columnIndex - 1] = Byte.valueOf(value.trim());\n break;\n case Types.SMALLINT:\n rowValues[columnIndex - 1] = Short.valueOf(value.trim());\n break;\n case Types.INTEGER:\n rowValues[columnIndex - 1] = Integer.valueOf(value.trim());\n break;\n case Types.BIGINT:\n rowValues[columnIndex - 1] = Long.valueOf(value.trim());\n break;\n case Types.REAL:\n rowValues[columnIndex - 1] = Float.valueOf(value.trim());\n break;\n case Types.FLOAT:\n case Types.DOUBLE:\n rowValues[columnIndex - 1] = Double.valueOf(value.trim());\n break;\n case Types.DECIMAL:\n case Types.NUMERIC:\n rowValues[columnIndex - 1] = new BigDecimal(value.trim());\n break;\n case Types.BOOLEAN:\n case Types.BIT:\n rowValues[columnIndex - 1] = Boolean.valueOf(value.trim());\n break;\n case Types.CHAR:\n case Types.VARCHAR:\n case Types.LONGVARCHAR:\n rowValues[columnIndex - 1] = value;\n break;\n case Types.VARBINARY:\n case Types.LONGVARBINARY:\n case Types.BINARY:\n byte[] bytes = Base64.decode(value);\n rowValues[columnIndex - 1] = bytes;\n break;\n case Types.DATE:\n case Types.TIME:\n case Types.TIMESTAMP:\n rowValues[columnIndex - 1] = new Timestamp(Long.parseLong(value.trim()));\n break;\n case Types.ARRAY:\n case Types.BLOB:\n case Types.CLOB:\n case Types.DATALINK:\n case Types.DISTINCT:\n case Types.JAVA_OBJECT:\n case Types.OTHER:\n case Types.REF:\n case Types.STRUCT:\n //what to do with this?\n break;\n default :\n //do nothing\n }\n }\n }",
"public int update(MovieUrl movieUrl){\n ContentValues initialValues = new ContentValues();\n initialValues.put(DbMediaContract.VideoColumns.TITLE_VIDEO, movieUrl.getTitleMovie());\n initialValues.put(DbMediaContract.VideoColumns.URL_VIDEO, movieUrl.getUrlMovie());\n return database.update(DATABASE_TABLE, initialValues, _ID + \"= '\" + movieUrl.getId() + \"'\", null);\n }",
"public void deleteMovie(Movie movie){\n Iterator<Movie> iterator=movies.iterator();\n while(iterator.hasNext()){\n Movie m=iterator.next();\n if (m.equals(movie)){\n deleteMovieSQL(m);\n iterator.remove();\n reloadTable();\n break;\n }\n }\n }",
"void put(int row, int column, @NonNull TObj item) {\n SparseArrayCompat<TObj> array = mData.get(row);\n if (array == null) {\n array = new SparseArrayCompat<>();\n array.put(column, item);\n mData.put(row, array);\n } else {\n array.put(column, item);\n }\n }",
"public void set( int row, int column, T obj ) throws ArrayIndexOutOfBoundsException {\n\n\t\tString S = C + \": set(): \";\n\t\tcheckBounds( row, column, S );\n\t\tdata[row * numCols + column] = obj;\n\n\t}",
"RowValues createRowValues();",
"public void reloadTable() {\n\n this.removeAllData();// borramos toda la data \n for (int i = 0; i < (list.size()); i++) { // este for va de la primera casilla hast ael largo del arreglo \n Balanza object = list.get(i);\n this.AddtoTable(object);\n }\n\n }"
]
| [
"0.6132476",
"0.6064185",
"0.6059013",
"0.59835464",
"0.55513006",
"0.54545826",
"0.54023707",
"0.532688",
"0.5225284",
"0.5214448",
"0.52078265",
"0.51971716",
"0.5188864",
"0.5162884",
"0.5151707",
"0.51424605",
"0.5092137",
"0.50748515",
"0.50690174",
"0.50672626",
"0.50425005",
"0.5030286",
"0.5021077",
"0.50178933",
"0.5000776",
"0.49566507",
"0.49322116",
"0.49260494",
"0.49253625",
"0.4913281",
"0.49101767",
"0.4907361",
"0.48944423",
"0.48940337",
"0.4878867",
"0.48743397",
"0.4872644",
"0.4867038",
"0.4867038",
"0.48574468",
"0.48550448",
"0.4854175",
"0.48423135",
"0.4835505",
"0.4821317",
"0.48158568",
"0.48103875",
"0.48046118",
"0.47988477",
"0.47921377",
"0.4783343",
"0.47765568",
"0.47761717",
"0.47761717",
"0.4775923",
"0.47665912",
"0.47660923",
"0.47581974",
"0.47575554",
"0.47526953",
"0.47444075",
"0.47362775",
"0.47348455",
"0.47290558",
"0.4728259",
"0.47274408",
"0.47248268",
"0.47145426",
"0.47136834",
"0.47083855",
"0.47058818",
"0.47045618",
"0.4700127",
"0.46947837",
"0.4694324",
"0.46767533",
"0.4675953",
"0.46756938",
"0.46749252",
"0.46607926",
"0.46602377",
"0.46567717",
"0.465426",
"0.46468085",
"0.46427634",
"0.46397898",
"0.4635951",
"0.46355295",
"0.4629061",
"0.46281773",
"0.46254134",
"0.46249208",
"0.46217766",
"0.46166712",
"0.46150145",
"0.46086955",
"0.46049556",
"0.46044636",
"0.4604114",
"0.45963302"
]
| 0.58764005 | 4 |
Called when user fills in an URL and presses 'Start Install'. The parent activity is responsible for implementing this interface and doing something with the URL. | void onURLChosen(String url); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t System.out.println(\"URL APP----------:\" + getIntent().getExtras().getString(\"urlApp\"));\r\n\t\tinstallApp(getIntent().getExtras().getString(\"urlApp\"));\r\n\t}",
"@Override\n public void onOpenWebsite(@Nullable String url) {\n if (url == null) return;\n Log.d(TAG, \"onOpenWebsite: Url:\" + url);\n\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"@Override\n public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimetype,\n long contentLength) {\n\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));\n }",
"@Override\n public void onClick(View v) {\n AppUtil.silentInstall(filename);\n }",
"public void searchProduct(String url){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n\n if(intent.resolveActivity(getContext().getPackageManager()) != null) {\n getContext().startActivity(intent);\n }\n }",
"public void installApk(String filename) {\n // systemLib.Installapk(filename);\n // if (isregister == false) {\n // isregister = true;\n // IntentFilter intentFilter = new IntentFilter(MyIntent.ACTION_INSTALL_BEGIN);\n // intentFilter.addAction(MyIntent.ACTION_INSTALL_END);\n // mContext.registerReceiver(mReceiver, intentFilter);\n // }\n // //start the service\n // Intent startservice = new Intent();\n // startservice.setAction(MyIntent.ACTION_PROXY);\n // startservice.putExtra(MyIntent.EXTRA_OPERATION, MyIntent.EXTRA_INSTALL);\n // startservice.putExtra(MyIntent.EXTRA_ARG1, filename);\n // Log.print(\"startservice intent is \" + startservice);\n // mContext.startService(startservice);\n }",
"public void configureURL(View view) {\n\n //get url from edit text\n urlString = urlText.getText().toString();\n\n if((urlString.contains(\"https://\") && urlString.length()>8) || (urlString.contains(\"http://\") && urlString.length()>7)) {\n PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putString(\"urlString_\"+alarmID, urlString).apply();\n\n //determine if from configureURLButton or searchButton (require different actions)\n boolean fromConfigureURLButton;\n if(view.getTag().toString().equals(\"configure\")) {\n fromConfigureURLButton = true;\n } else {\n fromConfigureURLButton = false;\n }\n\n Intent intent = new Intent(getApplicationContext(), WebAlarmActivity.class);\n intent.putExtra(\"urlString\", urlString);\n intent.putExtra(\"fromConfigureURLButton\", fromConfigureURLButton);\n intent.putExtra(\"alarmID\", alarmID);\n startActivity(intent);\n } else {\n Toast.makeText(getApplicationContext(), \"Your URL is malformed!\", Toast.LENGTH_SHORT).show();\n }\n\n\n }",
"public void onDownloadStart(String url, String userAgent,\n String contentDisposition, String mimetype,\n long contentLength) {\n\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));\n }",
"private void goToUrl (String url) {\n Intent launchWebview = new Intent(this, ManualWebviewActivity.class);\n launchWebview.putExtra(\"url\", url);\n startActivity(launchWebview);\n }",
"private void execURL(String link) {\n Uri webLink = Uri.parse(link);\n Intent openLink = new Intent(Intent.ACTION_VIEW, webLink);\n PackageManager pm = getPackageManager();\n List<ResolveInfo> handlers = pm.queryIntentActivities(openLink, 0);\n if (handlers.size() > 0)\n startActivity(openLink);\n }",
"private void processInstallReferrer() {\n if (referrerClient == null || !referrerClient.isReady()) {\n return;\n }\n\n String referrerStr;\n try {\n referrerStr = referrerClient.getInstallReferrer().getInstallReferrer();\n } catch (Exception e) {\n e.printStackTrace();\n return;\n }\n\n L.d(\"Received install referrer: \" + referrerStr);\n if (TextUtils.isEmpty(referrerStr)) {\n return;\n }\n\n String refUrl = null;\n String refUtmMedium = null;\n String refUtmCampaign = null;\n String refUtmSource = null;\n String refChannel = null;\n try {\n String[] arr = referrerStr.split(\"&\");\n for (String str : arr) {\n String[] item = str.split(\"=\");\n if (item.length < 2) {\n continue;\n }\n switch (item[0]) {\n case InstallReferrerFunnel.PARAM_REFERRER_URL:\n refUrl = item[1];\n break;\n case InstallReferrerFunnel.PARAM_UTM_MEDIUM:\n refUtmMedium = item[1];\n break;\n case InstallReferrerFunnel.PARAM_UTM_CAMPAIGN:\n refUtmCampaign = item[1];\n break;\n case InstallReferrerFunnel.PARAM_UTM_SOURCE:\n refUtmSource = item[1];\n break;\n case InstallReferrerFunnel.PARAM_CHANNEL:\n refChannel = item[1];\n break;\n default:\n break;\n }\n }\n } catch (Exception e) {\n // Can be thrown by getQueryParameter() if the referrer is malformed.\n // Don't worry about it.\n }\n // log the event only if at least one of the parameters is nonempty\n if (!TextUtils.isEmpty(refUrl) || !TextUtils.isEmpty(refUtmMedium)\n || !TextUtils.isEmpty(refUtmCampaign) || !TextUtils.isEmpty(refUtmSource)) {\n InstallReferrerFunnel funnel = new InstallReferrerFunnel(WikipediaApp.getInstance());\n funnel.logInstall(refUrl, refUtmMedium, refUtmCampaign, refUtmSource);\n }\n if (!TextUtils.isEmpty(refUrl) && ShareUtil.canOpenUrlInApp(WikipediaApp.getInstance(), refUrl)) {\n openPageFromUrl(WikipediaApp.getInstance(), refUrl);\n }\n if (!TextUtils.isEmpty(refChannel)) {\n Prefs.setAppChannel(refChannel);\n }\n }",
"public void setApplicationInstallUrl(java.lang.String applicationInstallUrl) {\r\n this.applicationInstallUrl = applicationInstallUrl;\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=201\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=213\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"public void LaunchUrl(String URL)\n\t{\n\t\tmyDriver.get(URL);\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=217\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=209\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent();\n\t\t\t\tintent.setClass(mContext, WebActivity.class);\n\t\t\t\tintent.putExtra(\"url\", \"http://iyuba.com/apps.php?mod=app&id=207\");\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tappInstall(DeviceNum1);\r\n\r\n\t\t\t}",
"public static void requestInstall(Context context, RequestListener requestListener) {\n PermissionActivity.sRequestListener = requestListener;\n Intent intent = new Intent(context, PermissionActivity.class);\n intent.putExtra(KEY_INPUT_OPERATION, VALUE_INPUT_INSTALL);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n }",
"public void OnSetupBrowser(Intent intent) {\n this.f12125b.mo8854a(intent);\n }",
"@Override\n protected URL getInstallURL() {\n return Activator.getDefault().getBundle().getEntry(\"/\");\n }",
"@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\tmDialog.findViewById(R.id.rl).setVisibility(View.VISIBLE);\n\t\t\t\t// mDialog.findViewById(R.id.rl).startAnimation(AnimationUtils.loadAnimation(mActivity, android.R.anim.fade_in));\n\t\t\t\tLogger.e(DialogNotifyUpdate.class.getSimpleName() + \": \" + url);\n\t\t\t\tif (url.contains(\"openbrowser=1\")) {\n\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW, \n\t\t\t\t\t\t\tUri.parse(url));\n\t\t\t\t\tmActivity.startActivity(intent);\n\t\t\t\t} \n\t\t\t}",
"public void onButtonLoadUrl(View theButton){ \t\n \tEditText edit = (EditText)findViewById(R.id.editUrl);\n \tString url = edit.getText().toString();\n \tif (url.length()>0){\n \t\tbrowser.loadUrl(url);\n \t\toutputWindow.append(\"\\nLoading \"+url);\n \t\ttabhost.setCurrentTab(0);\n \t}else {\n \t\toutputWindow.append(\"\\nURL is null\");\n \t} \t \n }",
"@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent browseIntent = new Intent( Intent.ACTION_VIEW , Uri.parse(urlStr) );\r\n startActivity(Intent.createChooser(browseIntent, \"Connecting...\"));\r\n \t\t\t}",
"private void redirectStore(String updateUrl) {\n final Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(updateUrl));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n try {\n launchActivity(MGERRIT, MGERRIT_MAIN_ENTRY);\n } catch (ActivityNotFoundException failToMarket) {\n launchUrl(MGERRIT_PLAYSTORE);\n }\n\n }",
"@Override\r\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n\r\n if (url == null) {\r\n // Return true to handle by yourself, return false to not handle\r\n return true;\r\n }\r\n\r\n // Normal content, open\r\n if (url.startsWith(HTTP) || url.startsWith(HTTPS)) {\r\n view.loadUrl(url);\r\n return true;\r\n }\r\n\r\n // Call a third-party application to prevent crashes (if there is no APP that handles the URL at the beginning of a scheme is installed on the phone, it will cause a crash)\r\n try {\r\n // TODO:A pop-up window prompts the user to call after permission\r\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\r\n startActivity(intent);\r\n return true;\r\n } catch (Exception e) {\r\n return true;\r\n }\r\n }",
"private void launchActivity(String title, String url){\n // package intent\n // start activity\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, \"default\");\n\n String content = \"The instruction for \" + title + \" can be found here!\";\n\n //set icons\n builder.setSmallIcon(android.R.drawable.btn_star);\n builder.setStyle(new NotificationCompat.BigTextStyle(builder).bigText(content));\n Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n\n // create a pending intent for the notification with the intent I created\n PendingIntent pendingIntent = PendingIntent.getActivity(mContext,0, intent, 0);\n builder.setContentIntent(pendingIntent);\n\n //set the title and content of the notification\n builder.setContentTitle(\"Cooking Instruction\");\n builder.setContentText(content);\n\n // get the system service to display this notification\n NotificationManager notificationManager = (NotificationManager) mContext.getSystemService(NOTIFICATION_SERVICE);\n\n //notify\n notificationManager.notify(1, builder.build());\n\n\n }",
"public void extractButton(View view) {\n InputMethodManager inputManager = (InputMethodManager)getSystemService(Activity.INPUT_METHOD_SERVICE);\n inputManager.toggleSoftInput(InputMethodManager.HIDE_IMPLICIT_ONLY, 0);\n\n Log.v(\"extractButton\", \" initialized with URL field as:\" + urlField.getText().toString());\n\n //doesn't seem to be necessary\n// if (!networkAvailable()) {\n// //Error message if the network is unavailable\n// Toast.makeText(this, \"Network unavailable!\", Toast.LENGTH_SHORT).show();\n// return;\n// }\n\n //User just typed in a URL and requested fetch\n if (!urlField.getText().toString().equals(\"\")) {\n //if not empty, try to build URL, makeURL shoudld catch MalformedURLException\n URL currentURL = NetworkUtils.makeURL(NetworkUtils.insertWebSubdomian(urlField.getText().toString()));\n\n if (currentURL != null) {\n Log.v(\"extractButton\", \" says URL field is acceptable\");\n firstLinkAsString = currentURL.toString();\n searchTerm = searchTermField.getText().toString();\n //if the currentlyRunning boolean says there are no current tasks going, make a new one and reference it\n\n //set up the UI while the user waits, show the WebView as well\n browser.setVisibility(View.VISIBLE);\n topSection.setVisibility(View.GONE);\n progressBar.setVisibility(View.VISIBLE);\n// emailDisplay.setVisibility(View.VISIBLE);\n\n //hit URL for an initial pull\n hitURL(currentURL.toString());\n\n } else {\n Toast.makeText(this, \"Bad URL! Try again\", Toast.LENGTH_SHORT).show();\n }\n\n } else {\n Toast.makeText(this, \"Cannot extract from an empty URL!\", Toast.LENGTH_SHORT).show();\n }\n }",
"public void onInstalled() {\n }",
"@Override\n public void onClick(View v) {\n String Url= currentNews.getWebUrl();\n //sent intent to the website\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.addCategory(Intent.CATEGORY_BROWSABLE);\n intent.setData(Uri.parse(Url));\n getContext().startActivity(intent);\n }",
"@Override\n public boolean activityStarting(Intent intent, String pkg) throws RemoteException {\n Log.i(TAG, String.format(\"Starting %s in package %s\", intent, pkg));\n currentPackage = pkg;\n currentIntent = intent;\n return true;\n }",
"@Override\n public void handleNewIntent(Intent intent) {\n if (!mUi.isWebShowing()) {\n mUi.showWeb(false);\n }\n mIntentHandler.onNewIntent(intent);\n }",
"@Override\n public void onBtnClick() {\n if(!TextUtils.isEmpty(versionMole.getUrl())){\n Intent intent = new Intent();\n intent.setAction(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(versionMole.getUrl()));\n mContext.startActivity(intent);\n }\n\n// handler.sendEmptyMessageDelayed(111, 8000);\n testDialog.dismiss();\n }",
"private void startWebViewAct() {\n Intent intent = new Intent(this, WebViewAct.class);\n intent.putExtra(URL, BuildConfig.SIZE_CHART_URL + mParentProductId);\n intent.putExtra(TITLE, getResources().getString(R.string.pdpSizeChart));\n startActivity(intent);\n }",
"@Override\n public void grindClicked() {\n Uri webpage = Uri.parse(\"http://www.grind-design.com\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }",
"public void hyperlinkUpdate(HyperlinkEvent e)\n {\n if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)\n {\n ServiceReference<BrowserLauncherService> serviceReference =\n BrandingActivator.getBundleContext().getServiceReference(\n BrowserLauncherService.class);\n\n if (serviceReference != null)\n {\n BrowserLauncherService browserLauncherService\n = BrandingActivator\n .getBundleContext().getService(serviceReference);\n\n browserLauncherService.openURL(e.getDescription());\n }\n }\n }",
"@Subscribe\n public void onAboutUrlClicked(AboutUrlClicked aboutUrlClicked) {\n if ((PackageUtils.isPackageInstalled(GOOGLE_PLUS_PACKAGE) &&\n aboutUrlClicked.getAboutItem().getTitle().equals(App.CONTEXT.getString(R.string.google_plus))) ||\n PackageUtils.isPackageInstalled(TWITTER_PACKAGE) &&\n aboutUrlClicked.getAboutItem().getTitle().equals(App.CONTEXT.getString(R.string.twitter)) ||\n PackageUtils.isPackageInstalled(PLAY_STORE_PACKAGE) &&\n aboutUrlClicked.getAboutItem().getTitle().equals(App.CONTEXT.getString(R.string.play_store_apps))) {\n\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(aboutUrlClicked.getAboutItem().getUrl()));\n startActivity(i);\n } else {\n // because Custom Tabs are the way to go amirite?\n CustomTabActivityHelper.openCustomTab(\n this,\n new CustomTabsIntent.Builder()\n .setToolbarColor(ContextCompat.getColor(App.CONTEXT, R.color.accent))\n .addDefaultShareMenuItem()\n .enableUrlBarHiding()\n .build(),\n Uri.parse(aboutUrlClicked.getAboutItem().getUrl()));\n }\n }",
"public static void openURL(final String url) {\n Intent intent = new Intent(Intent.ACTION_VIEW).setData(Uri.parse(url));\n _instance.startActivity(Intent.createChooser(intent, \"\"));\n }",
"@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, SettingActivity.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}",
"@Override\r\n \t\t\tpublic void onClick(View arg0) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, AppManager.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}",
"public void actionPerformed(ActionEvent e) {\n if (caller != null) {\n String url = fieldURL.getText();\n /* Calls a parsing task in a new thread. */\n caller.extUrlWSDLImport(url);\n }\n setVisible(false);\n dispose();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent web = new Intent(Intent.ACTION_VIEW);\n\t\t\t\tweb.setData(Uri.parse(url));\n\t\t\t\tstartActivity(web);\n\t\t\t}",
"@Override\n public void onClick(View view) {\n //Convert the String URL into a URI object (to pass into the Intent constructor)\n Uri newsUri = Uri.parse(url);\n\n // Create a new intent to view the earthquake URI\n Intent websiteIntent = new Intent(Intent.ACTION_VIEW, newsUri);\n\n // Send the intent to launch a new activity\n startActivity(websiteIntent);\n }",
"@Override\n public void onItemClick(String url) {\n RxBus2.getInstance().post(Constants.SHOW_WEBVIEW, url);\n RxBus3.getInstance().post(Constants.SHOW_WEBVIEW, url);\n }",
"@Override\n public void onClick(View view) {\n String url = \"https://ownshopz.com/mobile-360-degree/\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n }",
"private void openUpdate() {\n\t\tString url = MySoup.getUpdateLink(SITE);\n\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\ti.setData(Uri.parse(url));\n\t\tstartActivity(i);\n\t\tfinish();\n\t}",
"@Override\n public void setupURL_ToVisit(String url) {\n String gotoUrl;\n if (!applicationUrl.toString().endsWith(\"/\")) {\n if (url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + \"/\" + url;\n }\n }\n else {\n if (!url.startsWith(\"/\")) {\n gotoUrl = applicationUrl + url;\n }\n else {\n gotoUrl = applicationUrl + url.substring(1);\n }\n }\n getWebdriverInstance().navigate().to(gotoUrl);\n }",
"@Override\n public void run() {\n startActivity(intent);\n }",
"@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent intent = new Intent(AppDownloaded.this, AppMarket.class);\r\n \t\t\t\tstartActivity(intent);\r\n \t\t\t}",
"@Override\n\t\t\tpublic void onClick(View view) {\n\t\t\t\tLog.e(TAG, \"settings onClick enter \");\n\t\t\t\tPackageManager packageManager = getPackageManager();\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent =packageManager.getLaunchIntentForPackage(\"com.qiyi.framework.embeded\");\n\t\t\t\tif(intent==null){\n\t\t\t\t\tLog.e(TAG,\"settings APP not found!\");\n\t\t\t\t\treturn ;\n\t\t\t\t}\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n\t\t\t\ttry {\n\t\t\t\t\tmSurfaceTransfer.startActivity(intent);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t/*Intent intent = new Intent();\n\t\t\t\tintent.setAction(Intent.ACTION_MAIN);\n\t\t\t\tintent.addCategory(Intent.CATEGORY_LAUNCHER);\n\t\t\t\tintent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);\n\t\t\t\tintent.setComponent(new ComponentName(\n\t\t\t\t\t\tnew String(\"com.qiyi.settings \"), new String(\"com.qiyi.vr.unityplugin.PluginActivity\")));\n\t\t\t\tstartActivity(intent);*/\n\t\t\t}",
"public void buyNow(View view) {\n String itemURL = null;\n try {\n itemURL = basic.getString(\"viewItemURL\");\n } catch (JSONException e) {\n e.printStackTrace();\n }\n Intent viewIntent = new Intent(\"android.intent.action.VIEW\", Uri.parse(itemURL));\n startActivity(viewIntent);\n }",
"@Override\n protected void onWizardStarting(@NotNull ModelWizard.Facade wizard) {\n String finishedText = message(\"android.sdk.manager.installer.install.finished\");\n myValidatorPanel.registerValidator(myInstallationFinished, new TrueValidator(Validator.Severity.INFO, finishedText));\n\n String installError = message(\"android.sdk.manager.installer.install.error\");\n myValidatorPanel.registerValidator(myInstallFailed, new FalseValidator(installError));\n\n myBackgroundAction.setWizard(wizard);\n\n // Note: Calling updateNavigationProperties while myInstallationFinished is updated causes ConcurrentModificationException\n myListeners.listen(myInstallationFinished, () -> ApplicationManager.getApplication().invokeLater(wizard::updateNavigationProperties));\n }",
"private void loadURLRequest() {\n if (news.getUrl() != null) {\n Intent loadNews = new Intent(itemView.getContext(), WebViewActivity.class);\n loadNews.putExtra(\"URL\", news.getUrl());\n loadNews.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n itemView.getContext().startActivity(loadNews);\n }\n }",
"CartogramWizardShowURL (String url)\n\t{\n\t\tmUrl = url;\n\t\n\t}",
"private void toUrl(String url){\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n }",
"@Override\n public void onClick(View v) {\n \tIntent in = new Intent(getApplicationContext(), DownloadFile.class);\n in.putExtra(\"url\", url_get_file);\n startActivityForResult(in, 100);\n }",
"@Override\n public boolean shouldOverrideUrlLoading(final WebView view, final String url) {\n if (!isHostnameAllowed(url)) {\n // if a listener is available\n if (mListener != null) {\n // inform the listener about the request\n mListener.onExternalPageRequest(url);\n }\n\n // cancel the original request\n return true;\n }\n\n boolean isDoubleClick = (SystemClock.elapsedRealtime() - mBackClickRecordTime)\n < DOUBLE_CLICK_TIME;\n mBackClickRecordTime = SystemClock.elapsedRealtime();\n if (TextUtils.equals(mUrl, url) && isDoubleClick) {\n return true;\n }\n mUrl = url;\n if (!Util.checkString(url)) {\n Log.d(TAG, \"shouldOverrideUrlLoading: \" + url);\n return true;\n }\n Log.d(TAG, \"shouldOverrideUrlLoading: \" + url);\n if (url.length() > 10 && mActivity != null && mActivity.get() != null) {\n Activity activity = mActivity.get();\n String prefix = url.substring(0, 4);\n if (\"tel:\".equalsIgnoreCase(prefix)) {\n Intent callIntent = new Intent(Intent.ACTION_DIAL);\n callIntent.setData(Uri.parse(url));\n activity.startActivity(callIntent);\n return true;\n } else if (\"sms:\".equalsIgnoreCase(prefix)) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url.replaceAll(\"//\", \"\")));\n activity.startActivity(intent);\n return true;\n }\n }\n if (url.startsWith(\"http:\")) {\n view.loadUrl(url);\n }\n\n // cancel the original request\n return true;\n }",
"@Override\n public void onClick(View v) {\n Intent rpIntent = new Intent(Intent.ACTION_VIEW);\n // Set the URL to be used.\n rpIntent.setData(Uri.parse(\"http://www.rp.edu.sg\"));\n startActivity(rpIntent);\n }",
"@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL);\r\n }",
"void startEditingUrl(boolean clearInput, boolean forceIME) {\n // editing takes preference of progress\n setVisibility(View.VISIBLE);\n if (clearInput) {\n mUrlInput.setText(\"\");\n }\n if (!mUrlInput.hasFocus()) {\n mUrlInput.requestFocus();\n }\n if (forceIME) {\n mUrlInput.showIME();\n }\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t\t\t\t\t.parse(fullsitelink));\n\t\t\t\t\t\t\t\tstartActivity(i);\n\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View view)\n {\n Uri uri = Uri.parse(direccionAplicacion);\n Intent linkMyApp = new Intent(Intent.ACTION_VIEW, uri);\n\n try {\n startActivity(linkMyApp);\n } catch (ActivityNotFoundException e) {\n Toast.makeText(getContext(), \"No tienes Google Play instalado!, no se lo digas a nadie y corre a instalarlo.\"\n + \"'\", Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_websiteId) {\n\n String url = article.getUrl();\n\n if (!url.equals(\"\")) {\n Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n startActivity(i);\n } else {\n Toast.makeText(getApplicationContext(), \"Website not available\", Toast.LENGTH_LONG).show();\n }\n\n }\n if (id == R.id.share) {\n shareNew();\n\n }\n\n return super.onOptionsItemSelected(item);\n }",
"public void triggerURL(String url) {\r\n\t\tif (driver != null) {\r\n\t\t\ttry {\r\n\t\t\t\tdriver.get(url);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"@Override\n\t public void onClick(View v) {\n\t \t try{\n\t \t\t PackageManager pm = getPackageManager();\n\t \t\t Intent intent = pm.getLaunchIntentForPackage(\"com.getpebble.android\");\n\t \t\t startActivity(intent);\n\t \t }finally{;}\n\t }",
"public void onInstalledApplication(final boolean show) {\n\t\trunOnUiThread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tif(loadingDialog!=null){\n\t\t\t\t\tloadingDialog.dismiss();\n\t\t\t\t}\n\t\t\t\tif (show) {\n\t\t\t\t\tuninstall.setEnabled(true);\n\t\t\t\t\tinstall.setEnabled(false);\n\t\t\t\t\tchangeStatus(getString(R.string.installed_application_found));\n\t\t\t\t} else {\n\t\t\t\t\tuninstall.setEnabled(false);\n\t\t\t\t\tinstall.setEnabled(true);\n\t\t\t\t\tchangeStatus(getString(R.string.no_installed_application));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public static void openPlayStoreEntry()\n\t{\n\t\tApp.getInstance().startActivity(new Intent(Intent.ACTION_VIEW)\n\t\t\t\t.setData(Uri.parse(\"market://details?id=\" + General.PKG_MESSENGERAPI+\"&referrer=utm_source%3D\"+App.getInstance().getPackageName()+\"%26utm_medium%3DAPIMethod%26utm_campaign%3DAPICampaign\"))\n\t\t\t\t.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK));\n\t}",
"protected void WebClicked(View view){\n String url = this.itm.getItem(position).getUrl();\n if (!url.startsWith(\"http://\") && !url.startsWith(\"https://\"))\n url = \"http://\" + url;\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n try {\n startActivity(browserIntent);\n } catch (ActivityNotFoundException e){\n Toast.makeText(getBaseContext(), \"Webpage \" + url + \"does not exist\", Toast.LENGTH_SHORT).show();\n }\n }",
"public boolean processUrl(String url, Context ctx) {\n List<ResolveInfo> resolveInfos = getAvailablePackagesForUrl(url, ctx);\n // filter the webbrowser > because the webview will replace it, using\n // google as simple url\n List<ResolveInfo> webBrowsers = getAvailablePackagesForUrl(\n \"http://www.google.com\", ctx);\n for (ResolveInfo resolveInfo : resolveInfos) {\n\n boolean found = false;\n for (ResolveInfo webBrowser : webBrowsers) {\n if (resolveInfo.activityInfo.packageName\n .equals(webBrowser.activityInfo.packageName)) {\n found = true;\n break;\n }\n }\n if (!found) {\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(url));\n intent.setClassName(resolveInfo.activityInfo.packageName,\n resolveInfo.activityInfo.name);\n ctx.startActivity(intent);\n return true;\n }\n }\n return false;\n }",
"public static void startUpdate(Context context, String url, String fileName, OnProgressListener progressListener) {\n mProgressListener = progressListener;\n Intent intent = new Intent(context, AppUpdateService.class);\n intent.setAction(ACTION_UPDATE);\n intent.putExtra(EXTRA_URL, url);\n intent.putExtra(EXTRA_FILE_NAME, fileName);\n context.startService(intent);\n }",
"public void openURL(Activity ctx, String url)\n {\n if (isConnected(ctx)) {\n try {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));\n ctx.startActivity(browserIntent);\n } catch (Exception e) {\n\n }\n } else {\n Dialogs.getInstance().simpleNoInternet(ctx);\n }\n }",
"@Override\n /**\n * User clicked something---launch the browser\n */\n public void propertyChange(PropertyChangeEvent propertyChangeEvent) {\n CardData cardData = (CardData) propertyChangeEvent.getNewValue();\n String url = cardData.getUrl();\n //showErrorMessage(\"clicked on \" + propertyChangeEvent.getNewValue());\n Uri uri = Uri.parse(url);\n\n // log the activity\n\n // TODO: Map the current feed's url\n String sourceUrlPath = getCurrentStrategy().getUrlPath(); // e,g, \"/news/home\"\n String idStr = String.format(\"%d\", cardData.getId());\n\n EventDispatchService dispatchService = _dispatchPaymentFactory.createEventDispatch(idStr);\n dispatchService.sendConfirmation(getDispatchSuccessCallback(), getDispatchFailureCallback());\n\n\n AuthEventPublicDispatch eventDispatchService = _dispatchPaymentFactory.createDispatch(sourceUrlPath, uri.getPath(), url);\n eventDispatchService.sendConfirmation(getEventDispatchSuccessCallback(), getEventDispatchFailureCallback());\n\n Intent browserLaunchIntent = new Intent(Intent.ACTION_VIEW, uri);\n startActivity(browserLaunchIntent);\n\n }",
"void onDefaultInstallmentSet();",
"void setClickURL(java.lang.String clickURL);",
"@Override\n public void onClick(View view) {\n Intent httpIntent = new Intent(Intent.ACTION_VIEW);\n httpIntent.setData(Uri.parse(\"http://bvmengineering.ac.in\"));\n\n startActivity(httpIntent);\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t// Handle item selection\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.install:\n loadDialog(getString(R.string.installing_application));\n\t\t\tcontroller.createAndPublishSystemActions(Action.install);\n\t\t\treturn true;\n\t\tcase R.id.uninstall:\n controller.createAndPublishSystemActions(Action.uninstall);\n\t\t\treturn true;\n\t\tcase R.id.connect:\n DialogFactory.buildConnectToUrlDialog(this, this, BROKER_URL, R.string.connect_message).show();\n\t\t\treturn true;\n\t\tcase R.id.disconnect:\n\t\t\tcontroller.disconnect();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public void onClick(View view) {\n Intent browser = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://petobesityprevention.org/\"));\n startActivity(browser);\n }",
"@Override\n public void onClick(View view) {\n String stock = symbolEditText.getText().toString();\n // build an intent to display the stock quote uri from yahoo\n Intent i = new Intent( Intent.ACTION_VIEW, Uri.parse( HTTP_QUERY + stock ) );\n // get the preference editor\n SharedPreferences.Editor editor = prefs.edit();\n // set the stock symbol in the preference editor\n editor.putString( PREF_KEY, stock );\n // save it\n editor.apply();\n // reset the symbol edit text content\n symbolEditText.setText(\"\");\n // start the activity\n startActivity( i );\n }",
"@Override\n public void onClick(View view){\n Intent intentWeb = new Intent(Intent.ACTION_VIEW);\n intentWeb.setData(Uri.parse(buttonUrl.getText().toString()));\n startActivity(intentWeb); //lancement\n\n }",
"public void onUpgradeAppButtonClicked(View arg0) {\n\t\tLog.d(TAG,\n\t\t\t\t\"Upgrade button clicked; launching purchase flow for upgrade.\");\n\t\tsetWaitScreen(true);\n\n\t\t/*\n\t\t * TODO: for security, generate your payload here for verification. See\n\t\t * the comments on verifyDeveloperPayload() for more info. Since this is\n\t\t * a SAMPLE, we just use an empty string, but on a production app you\n\t\t * should carefully generate this.\n\t\t */\n//\t\tString payload = \"\";\n\n//\t\tmHelper.launchPurchaseFlow(GameRenderer.mStart, SKU_10000, RC_REQUEST,\n//\t\t\t\tmPurchaseFinishedListener, payload);\n\t}",
"@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/services\"));\n startActivity(browserIntent);\n }",
"private void startActivity() {\n if (checkGooglePlayServices()) {\n mActivity.startActivity(IntentUtils.newIntent(mActivity, FeedActivity.class));\n mActivity.finish();\n }\n }",
"@Override\n\t \t\t\tpublic void onClick(View arg0) {\n\t \t\t\t\tList<PackageInfo> packages = getPackageManager().getInstalledPackages(0);\n\t \t\t\t\tstartActivity(getPackageManager().getLaunchIntentForPackage(packages.get(0).applicationInfo.packageName)); \n\t \t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tUri webpage = Uri.parse(currentItem.getStoryUrl());\n\n\t\t\t\t// Create web browser intent\n\t\t\t\tIntent storyOnWebIntent = new Intent(Intent.ACTION_VIEW, webpage);\n\n\t\t\t\t// Check web activity can be handled by the device and start activity\n\t\t\t\tif (storyOnWebIntent.resolveActivity(mContext.getPackageManager()) != null) {\n\t\t\t\t\tmContext.startActivity(storyOnWebIntent);\n\t\t\t\t}\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onSuccess(String url, File file)\n\t\t\t{\n\t\t\t\tsuper.onSuccess(url, file);\n\t\t\t\tmNotification.contentView.setViewVisibility(R.id.upgradeService_pb, View.GONE);\n\t\t\t\tmNotification.defaults = Notification.DEFAULT_SOUND;\n\t\t\t\tmNotification.contentIntent = mPendingIntent;\n\t\t\t\tmNotification.contentView.setTextViewText(R.id.upgradeService_tv_status, \"下载完成\");\n\t\t\t\tmNotification.contentView.setTextViewText(R.id.upgradeService_tv, \"100%\");\n\t\t\t\tmNotificationManager.notify(mNotificationId, mNotification);\n\t\t\t\tmNotificationManager.cancel(mNotificationId);\n\t\t\t\tSDPackageUtil.installApkPackage(getApplicationContext(), file.getPath());\n\t\t\t\tSDToast.showToast(\"下载完成\");\n\n\t\t\t}",
"private void openWebPage(String url) {\n Uri webpage = Uri.parse(\"http://\" + url);\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"public void onNFCResult(String url) {\n\t\tcontroller.connect(url);\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tString url = \"http://www.hoteltrip.com/\";\n\t\t\t\tIntent i = new Intent(Intent.ACTION_VIEW);\n\t\t\t\ti.setData(Uri.parse(url));\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"public void accederClick(View view){\n //Declarar activity web\n Intent i = new Intent(this, ActivityWeb.class);\n\n //Enviar url a la activity web\n i.putExtra(\"url\", etUrlM.getText().toString());\n\n //Cargar Activity\n startActivity(i);\n }",
"@Override\n public void onSuccess(ResponseInfo<File> arg0) {\n mProgressDialog.dismiss();\n MyUtils.installApk(context);\n }",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Bundle bundle = intent.getExtras();\n String url = bundle.getString(\"downloadUrl\");\n PreferenceUtils.setString(UpdateVersionService.this, \"apkDownloadurl\", url);\n nm.notify(titleId, notification);\n downLoadFile(url);\n return Service.START_STICKY;\n }",
"public void setURL(java.lang.String URL) {\n this.URL = URL;\n }",
"void launchApp();",
"@Override\n public void success() {\n XSPSystem.getInstance().installApp(PjjApplication.App_Path + appName);\n }",
"@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tLog.d(\"Started\",\"Loading\");\n\t\t\t\tSystem.out.println(\"Loading url\"+url);\n\t\t\t\tloadingURL = url;\n\t\t\t\tif(url.contains(\"/Home/MyBooking/MyBooking\"))\n\t\t\t\t\tflag = false;\n\t\t\t\tif (url.equals(CommonFunctions.main_url)\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"ar\")\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"en\")\n\t\t\t\t\t\t&& flag) {\n\t\t\t\t\tview.stopLoading();\n\t\t\t\t\tfinish();\n\t\t\t\t\tIntent home = new Intent(SearchPageActivity.this,\n\t\t\t\t\t\t\tMenuSelectionAcitivity.class);\n\t\t\t\t\thome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\tstartActivity(home);\n\t\t\t\t}\n\t\t\t\telse if(url.equals(CommonFunctions.main_url)\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"ar\")\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"en\"))\n\t\t\t\t\tflag = true;\n//\t\t\t\t\tloaderDialog.show();\n\t\t\t\telse\n\t\t\t\t\tpbLine.setVisibility(View.VISIBLE);\n\t\t\t\tsuper.onPageStarted(view, null, favicon);\n\t\t\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase R.id.login :\n\t\t\tIntent intent = new Intent(this, WebViewActivity.class);\n\t\t\tintent.setData(Uri.parse(mAuthenticationEndPoint));\n\t\t\tstartActivityForResult(intent,0);\n\t\t\treturn true;\n\t\tcase R.id.exit :\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"public void funcionAppian(View v){\n Intent intent = new Intent(Intent.ACTION_VIEW);\n intent.setData(Uri.parse(\"https://ustglobalspaindemo.appiancloud.com/suite/tempo/news\"));\n if(intent.resolveActivity(getPackageManager())!= null){\n startActivity(intent);\n }\n }",
"private static void addSeedURL()\r\n\t{\r\n\t\tSystem.out.println(\"Enter a website to search for keywords.\");\r\n\t\tString userInput = input.nextLine();\r\n\t\t\r\n\t\tif(userInput.length() >= 7 && !(userInput.substring(0, 6).equals(\"https://\")))\r\n\t\t{\r\n\t\t\tuserInput = \"http://\" + userInput;\r\n\t\t\t\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tSharedLink.addLink(userInput);\r\n\t\t\t} \r\n\t\t\tcatch (InterruptedException e) \r\n\t\t\t{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t}\r\n\t}"
]
| [
"0.638605",
"0.6362696",
"0.6109912",
"0.6085177",
"0.5902683",
"0.5851179",
"0.5833615",
"0.581777",
"0.5796328",
"0.575514",
"0.5702462",
"0.5699719",
"0.56989026",
"0.56938195",
"0.5687308",
"0.56822896",
"0.5669027",
"0.56614965",
"0.564369",
"0.56295955",
"0.561342",
"0.559946",
"0.5593785",
"0.55927986",
"0.5588492",
"0.5580682",
"0.55799437",
"0.5557687",
"0.5547799",
"0.55346507",
"0.5527068",
"0.5519455",
"0.5519342",
"0.5485942",
"0.5485817",
"0.5485477",
"0.54557",
"0.54383993",
"0.5428765",
"0.54231733",
"0.5403467",
"0.540047",
"0.53996587",
"0.5397657",
"0.53966045",
"0.53757036",
"0.53741115",
"0.537089",
"0.53705865",
"0.5369559",
"0.536403",
"0.5354105",
"0.53474617",
"0.5346912",
"0.53466153",
"0.5344293",
"0.5342993",
"0.53413993",
"0.5326078",
"0.53198576",
"0.53157794",
"0.5288551",
"0.5288292",
"0.52880526",
"0.5285602",
"0.5276606",
"0.52723396",
"0.5270707",
"0.52694875",
"0.5266969",
"0.52651525",
"0.5258119",
"0.5252412",
"0.52500206",
"0.52467525",
"0.5245893",
"0.5223991",
"0.5223733",
"0.52191526",
"0.52182233",
"0.5212901",
"0.5211064",
"0.52104455",
"0.51897955",
"0.5185191",
"0.5184776",
"0.51795506",
"0.5167677",
"0.5156793",
"0.5141877",
"0.51417345",
"0.51412094",
"0.5134792",
"0.51338893",
"0.5133814",
"0.5131622",
"0.51305467",
"0.512354",
"0.51231414",
"0.512156"
]
| 0.6098768 | 3 |
Returns the chosen URL in the UI, prefixing it with http:// if not set. | private String getURL() {
String url = profileLocation.getText().toString();
if (url == null || url.length() == 0) {
return url;
}
// if it's not the last (which should be "Raw") choice, we'll use the prefix
if (!url.contains("://")) { // if there is no (http|jr):// prefix, we'll assume it's a http://bit.ly/ URL
url = "http://bit.ly/" + url;
}
return url;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String makeServerUrl(){\n\t\tURL url = null;\n\t\t\n\t\t//Make sure we have a valid url\n\t\tString complete = this.preferences.getString(\"server\", \"\");\n\t\ttry {\n\t\t\turl = new URL( complete );\n\t\t} catch( Exception e ) {\n\t\t\tonCreateDialog(DIALOG_INVALID_URL).show();\n\t\t\treturn null;\n\t\t}\n\t\treturn url.toExternalForm();\n\t}",
"public String getURL()\n {\n return getURL(\"http\");\n }",
"private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"public String getURL();",
"public abstract String getURL();",
"@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}",
"public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}",
"public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }",
"@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}",
"protected abstract String getUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"String getUrl();",
"public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}",
"@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public String getURL();",
"URL getUrl();",
"public void setURL(java.lang.CharSequence value) {\n this.URL = value;\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"@Override\r\n public String getUrl()\r\n {\n return null;\r\n }",
"public String getUrl();",
"public String getUrl();",
"public String getUrl();",
"public String getUrl();",
"@Nullable\n public abstract String url();",
"@Override\n\tpublic String getURL() {\n\t\treturn null;\n\t}",
"public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}",
"@Override\r\n public String getURL() {\n return url;\r\n }",
"public String determineURL(HttpServletRequest request)\n {\n String url = \"http://\"+request.getHeader(\"host\")+request.getContextPath()+\"/omserver\";\n return url;\n }",
"public java.lang.CharSequence getURL() {\n return URL;\n }",
"public java.lang.CharSequence getURL() {\n return URL;\n }",
"java.lang.String getClickURL();",
"public abstract String getUrl();",
"@Override\n\tpublic String buildURL(String string) {\n\t\treturn null;\n\t}",
"public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n url_ = value;\n onChanged();\n return this;\n }",
"public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }",
"Uri getUrl();",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }",
"public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}",
"public String getURL() {\n\t\treturn getName();\n\t}",
"String getServerUrl();",
"String url();",
"@java.lang.Override\n public java.lang.String getUrl() {\n java.lang.Object ref = url_;\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 url_ = s;\n return s;\n }\n }",
"public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }",
"public String getURL(Version version) {\n return getUrl() + version.getDocument().getDocumentURL();\n }",
"java.net.URL getUrl();",
"public String getSiteUrl();",
"public URL standardizeURL(URL startingURL);",
"public String getUrl()\n {\n // return url of node associated with menu\n // option if defined\n if (getNode() != null)\n {\n return getNode().getUrl();\n }\n return null;\n }",
"@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}",
"public static String specifyCrowdUrl() {\n return holder.format(\"pleaseSpecifyCrowdUrl\");\n }",
"String getJoinUrl();",
"private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000001;\n url_ = value;\n }",
"String getRequestedUrl();",
"public java.lang.String getURL() {\n return uRL;\n }",
"@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n public void setURL(@DisplayName(\"The URL for the Marketcetera Exchange Server\")\n String inURL);",
"private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000002;\n url_ = value;\n }",
"public void changeUrl() {\n url();\n }",
"void onURLChosen(String url);",
"String getLink();",
"public String getUrl() { return url; }",
"private String getUrlPrefix(HttpServletRequest req) {\n StringBuffer url = new StringBuffer();\n String scheme = req.getScheme();\n int port = req.getServerPort();\n url.append(scheme);\t\t// http, https\n url.append(\"://\");\n url.append(req.getServerName());\n if ((scheme.equals(\"http\") && port != 80)\n \t || (scheme.equals(\"https\") && port != 443)) {\n url.append(':');\n url.append(req.getServerPort());\n }\n return url.toString();\n }",
"@Api(1.2)\n @NonNull\n public String url() {\n return mRequest.buildOkRequest().url().toString();\n }",
"public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}",
"public String getPreViewUrl();",
"public String getCorrectURL() {\n\t\treturn defineCorrectURL(); \t\r\n\t}",
"public URL getURL()\n/* */ {\n/* 135 */ return ResourceUtils.getResourceAsURL(this, this);\n/* */ }",
"public String getUrl() { /* (readonly) */\n return mUrl;\n }",
"@Override\n public String getUrl() {\n return getOriginUrl();\n }",
"public final native String getUrl() /*-{\n return this.getUrl();\n }-*/;",
"public static String getUrl() {\n return annotation != null ? annotation.url() : \"Unknown\";\n }",
"public String getURL() {\r\n\t\treturn url;\r\n\t}",
"String getWebsite();",
"public static String getAppURL(HttpServletRequest request) {\n\t\tStringBuffer url = new StringBuffer();\n\t\tint port = request.getServerPort();\n\t\tif (port < 0) {\n\t\t\tport = 80; // Work around java.net.URL bug\n\t\t}\n\t\tString scheme = request.getScheme();\n\t\turl.append(scheme);\n\t\turl.append(\"://\");\n\t\turl.append(request.getServerName());\n\t\tif ((scheme.equals(\"http\") && (port != 80))\n\t\t\t\t|| (scheme.equals(\"https\") && (port != 443))) {\n\t\t\turl.append(':');\n\t\t\turl.append(port);\n\t\t}\n\t\turl.append(request.getContextPath());\n\t\treturn url.toString();\n\t}",
"@XmlElement\r\n\tpublic String getMyUrl() {\r\n\t\tString ret = null;\r\n\t\tif (null != getId()) {\r\n\t\t\tret = String.format(\"%s/category/%s-%s\", SuperContainer.BaseUrl, getId() + \"\", getUrl());\r\n\t\t\t\r\n\t\t\t// Always add html to the end\r\n\t\t\tif(!getUrl().endsWith(\".html\")) {\r\n\t\t\t\tret = ret + \".html\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}",
"private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }",
"java.lang.String getBookingURL();",
"private String getSource() {\n SharedPreferences settings =\n PreferenceManager.getDefaultSharedPreferences(Collect.getInstance().getBaseContext());\n String serverUrl = settings.getString(PreferencesActivity.KEY_SERVER_URL, null);\n String source = null;\n // Remove the protocol\n if(serverUrl.startsWith(\"http\")) {\n \tint idx = serverUrl.indexOf(\"//\");\n \tif(idx > 0) {\n \t\tsource = serverUrl.substring(idx + 2);\n \t} else {\n \t\tsource = serverUrl;\n \t}\n }\n \n return source;\n }",
"public String getUrl() {\n Object ref = url_;\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 url_ = s;\n }\n return s;\n }\n }",
"protected abstract String getPublicUrl(URL url);",
"public String getURL() { return url; }",
"public String getFrontEndAddress() {\n //TODO(alown): should this really only get the first one?\n return (this.isSSLEnabled ? \"https://\" : \"http://\") + frontendAddressHolder.getAddresses().get(0);\n }",
"public String getUrl(){\n \treturn url;\n }",
"public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}",
"public String getUrl() {\r\n\t\treturn url;\r\n\t}",
"public String getUrl() {\r\n\t\treturn url;\r\n\t}",
"public void setURL(String url);"
]
| [
"0.6704755",
"0.66378516",
"0.661396",
"0.6441095",
"0.6441095",
"0.6441095",
"0.6441095",
"0.6441095",
"0.6441095",
"0.64003414",
"0.6342753",
"0.62635934",
"0.6216939",
"0.62067616",
"0.6199211",
"0.6194229",
"0.61806434",
"0.61806434",
"0.61806434",
"0.61806434",
"0.61806434",
"0.6146673",
"0.61377674",
"0.613175",
"0.61258316",
"0.609257",
"0.609257",
"0.60920167",
"0.60920167",
"0.60919863",
"0.60916936",
"0.60916936",
"0.60916936",
"0.60916936",
"0.60898644",
"0.6038004",
"0.6025682",
"0.6018401",
"0.59699637",
"0.5961551",
"0.59564304",
"0.59558547",
"0.5951355",
"0.5947363",
"0.59201956",
"0.5915545",
"0.5907982",
"0.5907982",
"0.58973277",
"0.58943135",
"0.58849216",
"0.5881523",
"0.58718634",
"0.5864204",
"0.5850918",
"0.5837845",
"0.5836931",
"0.5830922",
"0.5818709",
"0.5810104",
"0.58045614",
"0.579789",
"0.5793819",
"0.5783121",
"0.57810956",
"0.5778456",
"0.5774956",
"0.57556224",
"0.57488513",
"0.5746785",
"0.5744698",
"0.57328963",
"0.5731391",
"0.5727073",
"0.57257825",
"0.572397",
"0.571326",
"0.57124203",
"0.57122153",
"0.57048535",
"0.56969243",
"0.56931466",
"0.5689468",
"0.5682261",
"0.5679169",
"0.56769437",
"0.56763595",
"0.56762755",
"0.56667244",
"0.56655496",
"0.5662031",
"0.5660786",
"0.5650839",
"0.56479007",
"0.5647535",
"0.564413",
"0.56373847",
"0.56316745",
"0.56316745",
"0.56305385"
]
| 0.7235039 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
int[] arr = {17,5,6,2,4,8,9,134,156,122,11,45};
System.out.println(Arrays.toString(arr));
sort(arr, 0, arr.length-1);
System.out.println(Arrays.toString(arr));
} | {
"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 |
private constructor: not allow to instanticate. | private Log() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instantiation(){}",
"private Rekenhulp()\n\t{\n\t}",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"Reproducible newInstance();",
"private ATCres() {\r\n // prevent to instantiate this class\r\n }",
"private MApi() {}",
"private Util()\n {\n // Empty default ctor, defined to override access scope.\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"private TMCourse() {\n\t}",
"private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}",
"private SystemInfo() {\r\n // forbid object construction \r\n }",
"private Utils()\n {\n // Private constructor to prevent instantiation\n }",
"protected abstract void construct();",
"public Constructor(){\n\t\t\n\t}",
"private Util() { }",
"private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }",
"private Singleton()\n\t\t{\n\t\t}",
"private InternalStorage() {}",
"private TagCacheManager(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }",
"private OMUtil() { }",
"private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }",
"private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}",
"private SingleObject()\r\n {\r\n }",
"private PropertiesLoader() {\r\n\t\t// not instantiable\r\n\t}",
"private FactoryCacheValet() {\n\t\tsuper();\n\t}",
"private QcTestRunner()\n\t{\n\t\t// To prevent external instantiation of this class\n\t}",
"private XmlStreamFactory()\n {\n /*\n * nothing to do\n */\n }",
"public Pitonyak_09_02() {\r\n }",
"private XMLUtil() {\n\t}",
"protected Problem() {/* intentionally empty block */}",
"private Source() {\n throw new AssertionError(\"This class should not be instantiated.\");\n }",
"private Utils() {\n\t}",
"private Utils() {\n\t}",
"private Marinator() {\n }",
"private Marinator() {\n }",
"private FlowExecutorUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"private LOCFacade() {\r\n\r\n\t}",
"private ObjectFactory() { }",
"private Verify(){\n\t\t// Private constructor to prevent instantiation\n\t}",
"private JsonUtils() {\n\t\tsuper();\n\t}",
"private XMLUtils()\r\n\t{\r\n\t}",
"private Ex() {\n }",
"private Tuples() {\n // prevent instantiation.\n }",
"private StickFactory() {\n\t}",
"private S3Utils() {\n throw new UnsupportedOperationException(\"This class cannot be instantiated\");\n }",
"private ServiceListingList() {\n //This Exists to defeat instantiation\n super();\n }",
"private PerksFactory() {\n\n\t}",
"private ResourceFactory() {\r\n\t}",
"private XmlFactory() {\r\n /* no-op */\r\n }",
"private ChainingMethods() {\n // private constructor\n\n }",
"private Resource() {}",
"private ClinicFileLoader() {\n\t}",
"private MappingReader() {\n\t}",
"private GeoUtil()\n\t{\n\t}",
"private WebXmlIo()\n {\n // Voluntarily empty constructor as utility classes should not have a public or default\n // constructor\n }",
"private Utility() {\n throw new IllegalAccessError();\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"private Mth()\n\t{\n\t\tthrow new AssertionError();\n\t}",
"private GraphFileManager() {\n\t}",
"private SingleObject(){}",
"@Override\r\n\tpublic void init() {}",
"public CSSTidier() {\n\t}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Singleton() {\n\t}",
"@Override\n public void init() {}",
"private EagerlySinleton()\n\t{\n\t}",
"private SnapshotUtils() {\r\n\t}",
"private InstanceUtil() {\n }",
"private UtilsCache() {\n\t\tsuper();\n\t}",
"private Util() {\n }",
"private void __sep__Constructors__() {}",
"@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}",
"private FileUtility() {\r\n\t}",
"private Terms(){\n\t\t //this prevents even the native class from calling this ctor as well :\n\t\t throw new AssertionError();\n\t\t }",
"private SingletonObject() {\n\n\t}",
"private Connection () {}",
"private HttpClient() {\n\t}",
"private Utility() {\n\t}",
"private Request() {}",
"private Request() {}",
"private FileUtil() {\n \t\tsuper();\n \t}",
"private Connection() {\n \n }",
"protected FileSystem() {\n\t}",
"private WolUtil() {\n }",
"private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}",
"private PermissionUtil() {\n throw new IllegalStateException(\"you can't instantiate PermissionUtil!\");\n }",
"private Util() {\n }",
"private Util() {\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private StreamFactory()\n {\n /*\n * nothing to do\n */\n }",
"private FileEntry() {\n // intentionally empty\n }",
"private SupplierLoaderUtil() {\n\t}",
"private Singletion3() {}",
"private Aliyun() {\n\t\tsuper();\n\t}",
"private ObjectRepository() {\n\t}"
]
| [
"0.7618617",
"0.7509748",
"0.7367032",
"0.73143697",
"0.72194755",
"0.7201735",
"0.7162986",
"0.7146945",
"0.71370524",
"0.7106089",
"0.7087779",
"0.7040716",
"0.70231694",
"0.69809693",
"0.69607276",
"0.695764",
"0.6947668",
"0.6943018",
"0.69367725",
"0.69359463",
"0.69221073",
"0.6921815",
"0.6916162",
"0.69024163",
"0.6892488",
"0.6887326",
"0.6861801",
"0.6858336",
"0.68529904",
"0.6848841",
"0.68469715",
"0.6842719",
"0.6839743",
"0.6839743",
"0.68384",
"0.68384",
"0.6829819",
"0.68277025",
"0.6821392",
"0.68206346",
"0.68183404",
"0.68172175",
"0.6811901",
"0.6808336",
"0.6807234",
"0.68040687",
"0.6800537",
"0.6799701",
"0.6798781",
"0.6786825",
"0.6783532",
"0.6777579",
"0.6770701",
"0.67673135",
"0.6763046",
"0.6756485",
"0.6751183",
"0.6749479",
"0.6746079",
"0.6740853",
"0.6740725",
"0.67366886",
"0.6731391",
"0.6724229",
"0.6719371",
"0.6717552",
"0.6717552",
"0.6717552",
"0.6717552",
"0.6704879",
"0.67030203",
"0.66968215",
"0.66945714",
"0.66940445",
"0.6693398",
"0.66928744",
"0.6690901",
"0.668564",
"0.66828257",
"0.6680231",
"0.6680216",
"0.66773885",
"0.6671681",
"0.6670764",
"0.6667461",
"0.6667461",
"0.6667127",
"0.6664216",
"0.6662964",
"0.6662881",
"0.6661274",
"0.66597897",
"0.6655111",
"0.6655111",
"0.66529644",
"0.6652948",
"0.6651415",
"0.665086",
"0.66494834",
"0.664613",
"0.6646022"
]
| 0.0 | -1 |
Is logging enabled for given tag / loglevel combo? | static boolean isLoggingEnabled(String tag, int logLevel) {
// this hashmap lookup might be a little expensive, and so it might make
// sense to convert this over to a CopyOnWriteArrayList
Integer logLevelForTag = enabledTags.get(tag);
return logLevel >= (logLevelForTag == null ? WARN : logLevelForTag);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isLoggable() {\n return Log.isLoggable(tag, level);\n }",
"public boolean isLogging();",
"public boolean isLoggable() {\r\n\t\tif (logger == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn logger.isLoggable(level)\r\n\t\t\t\t|| PerformanceLogger.isEnabled();\r\n\t}",
"@Test\n\tpublic void isEnabled() {\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.TRACE)).isEqualTo(traceEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.DEBUG)).isEqualTo(debugEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.INFO)).isEqualTo(infoEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.WARN)).isEqualTo(warnEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.ERROR)).isEqualTo(errorEnabled);\n\t\tassertThat(logger.isEnabled(org.jboss.logging.Logger.Level.FATAL)).isEqualTo(errorEnabled);\n\t}",
"@Override\n public boolean isLoggable(int priority, String tag) {\n return BuildConfig.DEBUG;\n }",
"public boolean isLoggingEnabled() {\n return !Level.OFF.equals(getLogLevel());\n }",
"boolean hasTraceTag();",
"public synchronized boolean isLoggingFeatureEnabled(){\n\t\treturn isLoggingFeatureEnabled;\n\t}",
"public static boolean isLogEnabled() {\n return mLogEnabled;\n }",
"public boolean isEnabled(int i) {\r\n return this.enabledLogs.contains(Integer.valueOf(i));\r\n }",
"static public boolean isLogging()\n {\n return GetInstance().m_bLog;\n }",
"public static boolean isAuditEnabled() {\n\n return debugLogger.isInfoEnabled();\n }",
"public boolean logVerbose()\r\n {\r\n return verboseLevelHandler.getBoolean();\r\n }",
"public boolean isLoggable() {\n return (FINE >= getLevel());\n }",
"public static boolean log() {\n\t\tif ((xml == null) || (log == null)) return false;\n\t\treturn log.equals(\"yes\");\n\t}",
"public boolean logInfo()\r\n {\r\n return infoLevelHandler.getBoolean();\r\n }",
"public void enableLogging();",
"public boolean isLog()\n\t{\n\t\treturn log;\n\t}",
"public boolean isTraceEnabled();",
"private void checkLogLevel() {\n config.getString(\"log_level\");\n }",
"public boolean isConfigLoggable() {\n return logger.isLoggable(Level.CONFIG);\n }",
"boolean hasLevel();",
"boolean hasLevel();",
"boolean hasLevel();",
"boolean hasLevel();",
"public boolean isTraceEnabled()\n/* */ {\n/* 282 */ return getLogger().isDebugEnabled();\n/* */ }",
"public boolean isLevelEnabled(int level)\r\n {\r\n return (level >= this.enabled);\r\n }",
"boolean isEnabled(Level warn);",
"boolean hasLvl();",
"public boolean isInfoEnabled()\n/* */ {\n/* 274 */ return getLogger().isInfoEnabled();\n/* */ }",
"public static boolean isEnabled() {\n return log.isTraceEnabled();\n }",
"public boolean isLoggingEnabledNow() {\n return this.decider.isLoggingEnabledNow();\n }",
"public void testIsEnabledAccuracy() {\r\n assertFalse(\"Should return the proper value.\", log.isEnabled(null));\r\n assertTrue(\"Should return the proper value.\", log.isEnabled(Level.ALL));\r\n }",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"public boolean isDebugEnabled()\n/* */ {\n/* 250 */ return getLogger().isDebugEnabled();\n/* */ }",
"public boolean isEnabled(Level level) {\n return this.level.isIncluded(level);\n }",
"public boolean logErrors()\r\n {\r\n return errorLevelHandler.getBoolean();\r\n }",
"public boolean enabled()\n {\n return binLog != null;\n }",
"public void logIfLevel(Marker ifLevel, String... messages);",
"public static boolean isCallLogAccountFilterEnabled() {\n String operatorSpec = SystemProperties.get(\"persist.operator.optr\", \"\");\n // Return true on OP01 or OP02\n if (operatorSpec.equals(\"OP01\") || operatorSpec.equals(\"OP02\")) {\n return true;\n }\n return false;\n }",
"public final boolean isAuditOn()\n {\n return this.getPropertyValue(GUILoggerSeverityProperty.AUDIT);\n }",
"public boolean isLoggable(int levelValue) {\n return (levelValue >= getLevel());\n }",
"public boolean hasLog() {\r\n\t\treturn hasLog;\r\n\t}",
"public boolean isShowLogging() {\n return showLogging;\n }",
"public boolean logWarnings()\r\n {\r\n return warningLevelHandler.getBoolean();\r\n }",
"public boolean logging() {\n\treturn logging;\n }",
"public static boolean isValidLogLevel(int level) {\n\t\tif ((level == BackupLogger.INFO) || (level == BackupLogger.DETAIL)\n\t\t\t\t|| (level == BackupLogger.WARN) || (level == BackupLogger.TRACE)) {\n\t\t\treturn true;\n\t\t} else return false;\n\t}",
"@Override\n public void log(String tag, com.microsoft.identity.client.Logger.LogLevel logLevel, String message, boolean containsPII) {\n }",
"public boolean isSetLoggers() {\n return this.loggers != null;\n }",
"private final static boolean doTrace(String component, String level,\n\t String type) {\n\t\tif (!enableTraces) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif (component == null || component.trim().length() == 0) {\n\t\t\t\tcomponent = COMPONENT_UNASSIGNED;\n\t\t\t}\n\t\t\tLogger log = Logger.getLogger(component);\n\t\t\tPriority pri = getPriority(type);\n\t\t\treturn (log.isEnabledFor(pri));\n\t\t}\n\t}",
"public boolean isLevel(){\n return Math.abs(gyro_board.getPitch()) < LEVEL_TOLERANCE && Math.abs(gyro_board.getRoll()) < LEVEL_TOLERANCE;\n }",
"boolean hasTag(Tag tag);",
"public boolean isLoggable() {\n return loggable;\n }",
"public boolean isLog4JAvailable() {\n return isLogLibraryAvailable(\"Log4J\", LOGGING_IMPL_LOG4J_LOGGER);\n }",
"public static boolean isDisableLogging()\n {\n return BaseBoot.getInstance().getGlobalConfig().getConfigProperty\n (DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT).equalsIgnoreCase(\"true\");\n }",
"public static boolean isCallLogIOFilterEnabled() {\n String operatorSpec = SystemProperties.get(\"persist.operator.optr\", \"\");\n String operatorSeg = SystemProperties.get(\"persist.operator.seg\", \"\");\n boolean isCtOperatorA = operatorSpec.equals(\"OP09\") && operatorSeg.equals(\"SEGDEFAULT\");\n // Return true on OP09 or OP02 mode\n if (operatorSpec.equals(\"OP02\") || isCtOperatorA) {\n return true;\n }\n return false;\n }",
"@Override\r\n\tpublic boolean isLoggable(LogRecord record) {\n\t\treturn false;\r\n\t}",
"public void testIsLoggable_NoFilter() {\n StreamHandler h = new StreamHandler(new ByteArrayOutputStream(),\n new SimpleFormatter());\n LogRecord r = new LogRecord(Level.INFO, null);\n assertTrue(h.isLoggable(r));\n\n h.setLevel(Level.WARNING);\n assertFalse(h.isLoggable(r));\n\n h.setLevel(Level.CONFIG);\n assertTrue(h.isLoggable(r));\n\n r.setLevel(Level.OFF);\n h.setLevel(Level.OFF);\n assertFalse(h.isLoggable(r));\n }",
"public static void log (int logLevel, String tag, String message, Class<?> loggingClass) {\n\n\t\tif (!isLoggingEnabledInConfigurationManager ())\n\t\t\treturn;\n\t\t\n\t\tlogByLevel (logLevel, tag, message, loggingClass);\n\t}",
"public boolean isWarnEnabled()\n/* */ {\n/* 290 */ return getLogger().isWarnEnabled();\n/* */ }",
"public static void log (int logLevel, String tag, String message) {\n\n\t\tif (!isLoggingEnabledInConfigurationManager ())\n\t\t\treturn;\n\n\t\tlogByLevel (logLevel, tag, message, null);\n\t}",
"public LogCollectionState logCollectionEnabled();",
"public boolean isInfoLoggable() {\n return logger.isLoggable(Level.INFO);\n }",
"public boolean isLog2Data();",
"@Override public boolean isLoggable() {\n\t\treturn this.loggable;\n\t}",
"public static int getLevel(){\n\treturn logLevel;\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}",
"protected boolean checkTraceEnabled() {\n String sysTraceEnabled = System.getenv(TRACE_ENABLED_ENV);\n if (sysTraceEnabled == null) {\n return false;\n }\n\n if (sysTraceEnabled.toLowerCase().equals(\"true\")) {\n return true;\n }\n return false;\n }",
"boolean isSetTag();",
"public static boolean isInfoEnabled1() {\n\n return debugLogger.isInfoEnabled();\n }",
"public boolean isJdbcLoggingEnabled();",
"public boolean isInfoLoggingOn() {\n return verbose || !quiet;\n }",
"boolean hasTags();",
"public void logIfLevel(Marker min, Marker max, String... messages);",
"private boolean isIgnoredByTag(AnnotatedElement element) {\n Tag[] annotations = element.getDeclaredAnnotationsByType(Tag.class);\n\n if (annotations.length == 0 || enabledTags.isEmpty()) {\n LOGGER.info(\"Test method {} is not ignored by tag\", ((Method) element).getName());\n return false;\n }\n\n for (Tag annotation : annotations) {\n if (enabledTags.contains(annotation.value())) {\n LOGGER.info(\"Test method {} is not ignored by tag: {}\", ((Method) element).getName(), annotation.value());\n return false;\n }\n }\n LOGGER.info(\"Test method {} is ignored by tag\", ((Method) element).getName());\n return true;\n }",
"public void setLogging(boolean logging);",
"public boolean isSetLogInfo() {\n return this.LogInfo != null;\n }",
"public boolean isSetLogInfo() {\n return this.LogInfo != null;\n }",
"public boolean isSetLogInfo() {\n return this.LogInfo != null;\n }",
"public boolean isSetLogInfo() {\n return this.LogInfo != null;\n }",
"public int get_log_level() {\r\n return logLevel;\r\n }",
"private Boolean isTag(String tagID) {\n\t\t\n\t\tif (tagManager.resolve(tagID) != null) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tlog.warn(DEBUG_PREFIX + \"Tag ID passed in tags argument is invalid: \" + tagID);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"public boolean hasLevel() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public static void setLogEnabled(boolean enable) {\n mLogEnabled = enable;\n }",
"@Override\n public boolean isDebugEnabled() {\n return innerLog.isDebugEnabled();\n }",
"public boolean hasLevel() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasLevel() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public static boolean isInfoEnabled() {\n\n return debugLogger.isInfoEnabled();\n }",
"public boolean hasLevel() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasLevel() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean isTagPresent(int tag) {\n return fieldIndex.containsKey(tag);\n }",
"public static boolean isVolteConfCallLogSupport() {\n return MTK_VOLTE_CONFERENCE_CALLLOG;\n }",
"@java.lang.Override\n public boolean getEnableStackdriverLogging() {\n return enableStackdriverLogging_;\n }",
"public boolean hasLevel() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"@Override\n\tpublic boolean isEnabled(Level level) {\n\t\treturn false;\n\t}",
"@java.lang.Override\n public boolean getEnableStackdriverLogging() {\n return enableStackdriverLogging_;\n }",
"public Boolean hasLogAccess(XPath xpath, Document doc) throws XPathExpressionException\r\n\t{\n\t\tif(auth.allows(\"admin\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean hasLevel() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean hasLevel() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public void testIsLoggable_WithFilter() {\n StreamHandler h = new StreamHandler(new ByteArrayOutputStream(),\n new SimpleFormatter());\n LogRecord r = new LogRecord(Level.INFO, null);\n h.setFilter(new MockFilter());\n assertFalse(h.isLoggable(r));\n assertSame(r, CallVerificationStack.getInstance().pop());\n\n h.setLevel(Level.CONFIG);\n assertFalse(h.isLoggable(r));\n assertSame(r, CallVerificationStack.getInstance().pop());\n\n h.setLevel(Level.WARNING);\n assertFalse(h.isLoggable(r));\n assertTrue(CallVerificationStack.getInstance().empty());\n }"
]
| [
"0.7051128",
"0.67355394",
"0.6607601",
"0.6418637",
"0.636509",
"0.63313425",
"0.6141225",
"0.6102088",
"0.6017776",
"0.6005861",
"0.59494495",
"0.59297436",
"0.5877715",
"0.5858205",
"0.58450925",
"0.5807922",
"0.57980853",
"0.57677364",
"0.5752951",
"0.57347465",
"0.57188547",
"0.56583893",
"0.56583893",
"0.56583893",
"0.56583893",
"0.56392103",
"0.5632621",
"0.5623253",
"0.5590699",
"0.5584134",
"0.5573067",
"0.5572697",
"0.5572325",
"0.55365384",
"0.5513225",
"0.5508912",
"0.546449",
"0.5461146",
"0.5458386",
"0.54564196",
"0.54495496",
"0.54421836",
"0.5441661",
"0.54389066",
"0.54288614",
"0.54192746",
"0.5375142",
"0.53750503",
"0.5362701",
"0.5307996",
"0.53025335",
"0.52978534",
"0.52885485",
"0.5281185",
"0.526976",
"0.52596605",
"0.52554363",
"0.5249746",
"0.52474934",
"0.5232958",
"0.52326685",
"0.5226611",
"0.52172464",
"0.5210163",
"0.52015436",
"0.51880753",
"0.5187579",
"0.51650983",
"0.5163983",
"0.51625735",
"0.51608294",
"0.5147855",
"0.51252455",
"0.5107492",
"0.5099391",
"0.50873524",
"0.5043926",
"0.5043926",
"0.5043926",
"0.5043926",
"0.5041189",
"0.5040556",
"0.504027",
"0.5040199",
"0.5036685",
"0.5027548",
"0.50274944",
"0.50218725",
"0.5016037",
"0.5016037",
"0.50153714",
"0.5009821",
"0.5007399",
"0.500707",
"0.49995345",
"0.49945804",
"0.49944276",
"0.49677846",
"0.49582276",
"0.49582264"
]
| 0.8523355 | 0 |
Send a VERBOSE message. | public static void v(String tag, String msg) {
if (logger != null && isLoggingEnabled(tag, VERBOSE)) {
logger.v(tag, msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verbose(String message);",
"public static void v(String message, Object... args) {\n log(VERBOSE, null, null, message, args);\n }",
"public void setVerbose(Boolean v) {\r\n\t\tm_verbose = v;\r\n\t}",
"public void toggleVerbose() {\n\t\tverbose = !verbose;\n\t}",
"public void setVerbose(boolean value);",
"void setVerbose( boolean verbose );",
"public static void verbose(String verbose) {\n if (IS_DEV) {\n Log.v(DEBUG_TAG, verbose);\n }\n }",
"private void traceVerbose(String info) {\n if (showVerbose && trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }",
"protected void setVerbose(boolean on)\n\t{\n\t\t_options.setVerbose(on);\n\t}",
"public static void printVerbose(final String pTag, final String pMessage)\n\t{\n\t\tif(LogConstant.DEBUG)\n\t\t{\n\t\t\tLog.v(pTag, pMessage);\n\t\t}\n\t}",
"public void setVerbose(boolean verbose) {\n\tthis.verbose = verbose;\n\tlog(\"Verbose mode is \" + verbose);\n }",
"public boolean isVerbose() {\n\treturn verbose;\n }",
"public void setVerbose(boolean b) {\n verbose = b;\n }",
"public void verbose(final String message, final Object... args) {\n log.fine(supplier(message, args));\n }",
"public boolean isVerbose ( ) {\n\t\treturn verbose;\n\t}",
"public void setVerbose(boolean verbose) {\n verboseChecked = true;\n this.verbose = verbose;\n }",
"public static void v(String str) {\n if (Log.isLoggable(TAG, Log.VERBOSE)) {\n Log.v(TAG, str);\n }\n }",
"public boolean isVerbose();",
"public boolean isVerbose() {\n \n // return it\n return showVerboseOutput;\n }",
"public void setVerbose(boolean verbose) {\n if (verbose) {\n this.verbosity = Project.MSG_INFO;\n } else {\n this.verbosity = Project.MSG_VERBOSE;\n }\n }",
"public void setVerbose(boolean verbose) {\n\t\t_verbose = verbose;\n\t}",
"public boolean logVerbose()\r\n {\r\n return verboseLevelHandler.getBoolean();\r\n }",
"protected String getVerboseParameter() {\n return verbose ? null : \"/quiet\";\n }",
"public boolean isVerbose() {\n return verbose;\n }",
"public boolean isVerbose() {\n return verbose;\n }",
"public void setVerbose(boolean isVerbose) {\r\n this.isVerbose = isVerbose;\r\n }",
"public static void v(String tag, String msg, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n logger.v(tag, msg, tr);\n }\n }",
"public void setVerbose ( boolean verbose ) {\n\t\tthis.verbose = verbose;\n\t}",
"public static void showVerboseForSeconds(String message, int durationSeconds, boolean autoExpire) {\n\n\t\tSystem.out.println(timestamp.format(new Date()) + \" [VERBOSE] \" + message);\n\t\tif(verboseEnabled) {\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tnotificationListener.accept(Notification.VERBOSE, message, () -> System.currentTimeMillis() - startTime >= durationSeconds * 1000, autoExpire);\n\t\t}\n\t\t\n\t}",
"public boolean isVerbose()\n\t{\n\t\treturn _options.isVerbose();\n\t}",
"static void displayMessage() {\n\n System.out.println(\"\\nA total of \" + graphVisited.size() + \" vertices visited\");\n\n System.out.println(\"Found \" + silhouetteAnalyzer(numberOfVertices)\n + \" silhouettes\");\n }",
"static public void trace(String msg) {\n if (isVerbose()) {\n System.out.println(msg);\n }\n }",
"public static boolean verbose() {\n return verbose;\n }",
"public boolean isVerbose() {\n return mVerbose;\n }",
"public boolean isVerbose() {\n return m_commandLine.hasOption(m_verboseOption);\n }",
"Object getVerbose();",
"Object getVerbose();",
"public static void WelcomeMessage () {\n System.out.println(\"===============================================\");\r\n System.out.println(\" C O M P U T E R\");\r\n System.out.println(\" S C I E N C E\");\r\n System.out.println(\" R O U L E T T E\");\r\n System.out.println(\"====================================== v1.2 ===\");\r\n System.out.println();\r\n }",
"public void Verbose(String Tag, String Message) {\n Log.v(Tag, Message);\n saveLog(Tag,Message);\n }",
"public void setVerbose(final boolean newVerbose) {\n mVerbose = newVerbose;\n }",
"public int \tgetVerbosity() \t\t{ return verbosity; }",
"public static void showVerboseUntil(String message, BooleanSupplier isExpired, boolean autoExpire) {\n\n\t\tSystem.out.println(timestamp.format(new Date()) + \" [VERBOSE] \" + message);\n\t\tif(verboseEnabled)\n\t\t\tnotificationListener.accept(Notification.VERBOSE, message, isExpired, autoExpire);\n\t\t\n\t}",
"private void sendToCatVA()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Visual Art'\", Toast.LENGTH_SHORT).show();\n }",
"public static void verbose(boolean flag) {\n verbose = flag;\n }",
"public void setVerbosity(boolean verbosity) {\n this.verbosity = verbosity;\n }",
"public void setVerbose(IRubyObject verbose) {\n this.verbose = verbose.isTrue();\n this.verboseValue = verbose;\n warningsEnabled = !verbose.isNil();\n }",
"public void setVerbose(IRubyObject verbose) {\n this.verbose = verbose.isTrue();\n this.verboseValue = verbose;\n warningsEnabled = !verbose.isNil();\n }",
"public static void setVerbose(int b) {\n debug = b;\n }",
"public void setVerbosity(Level verbosity) {\n this.verbosity = verbosity;\n }",
"public void setVerbosityLevel(int l)\n\t{\n\t\tVERBOSITY_LEVEL = l;\n\t}",
"public static void v(String tag, String message) {\n Log.v(tag, message);\n }",
"public void logVerbose(boolean logVerbose)\r\n {\r\n if (logVerbose != verboseLevelHandler.getBoolean())\r\n {\r\n verboseLevelHandler.setBoolean(logVerbose);\r\n fireConfigUpdated();\r\n }\r\n }",
"public boolean isVerbose() {\r\n\t\treturn this.verbose;\r\n\t}",
"public void verVerDescripcion()\r\n\t{\r\n\t\tverdescripcion = new VerDescripcion(this);\r\n\t\tverdescripcion.setVisible(true);\r\n\t}",
"public IRubyObject getVerbose() {\n return verboseValue;\n }",
"public IRubyObject getVerbose() {\n return verboseValue;\n }",
"void displayDebug(String message) {\n if (this.server.isVerboseDebugEnabled())\n System.out.printf(\"**\\t[%s]\\t\" + name + \":\\t\" + message + \"\\n\", dateFormat.format(new Date()));\n }",
"public void setVerbosity(Level verbosity) {\n\t\tthis.verbosity = verbosity;\n\t}",
"private void printVersion() {\n \n // print the version\n System.out.println(\"arara \".concat(AraraConstants.VERSION).concat(\" - \").concat(localization.getMessage(\"Header_Slogan\")));\n System.out.println(\"Copyright (c) \".concat(AraraConstants.COPYRIGHTYEAR).concat(\", Paulo Roberto Massa Cereda\"));\n System.out.println(localization.getMessage(\"Header_AllRightsReserved\").concat(\"\\n\"));\n }",
"public boolean isVerbosity() {\n return verbosity;\n }",
"public static void info(Object message) {\n\t\tSystem.out.print(message);\n\t}",
"public static final void verbose(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function0<? extends java.lang.Object> r3) {\n /*\n r1 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r1);\n r1 = \"message\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r1);\n r0 = r2.getLoggerTag();\n r1 = 2;\n r1 = android.util.Log.isLoggable(r0, r1);\n if (r1 == 0) goto L_0x0026;\n L_0x0017:\n r1 = r3.invoke();\n if (r1 == 0) goto L_0x0027;\n L_0x001d:\n r1 = r1.toString();\n if (r1 == 0) goto L_0x0027;\n L_0x0023:\n android.util.Log.v(r0, r1);\n L_0x0026:\n return;\n L_0x0027:\n r1 = \"null\";\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.verbose(org.jetbrains.anko.AnkoLogger, kotlin.jvm.functions.Function0):void\");\n }",
"public void print() {\n System.out.println(\"I am \" + status() + (muted ? \" and told to shut up *sadface*\" : \"\") + \" (\" + toString() + \")\");\n }",
"public static void v(String tag, String formatString, Object... args) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n try {\n logger.v(tag, String.format(Locale.ENGLISH, formatString, args));\n } catch (Exception e) {\n logger.v(tag, String.format(Locale.ENGLISH, \"Unable to format log: %s\", formatString), e);\n }\n }\n\n }",
"public ClientLoader verboseStream(final PrintStream theVerboseStream) {\r\n this.verboseStream = theVerboseStream;\r\n return this;\r\n }",
"public void setVnom(short value) {\n this.vnom = value;\n }",
"public void setVerboseChecked(boolean verboseChecked) {\n this.verboseChecked = verboseChecked;\n }",
"public static void println(String line) {\n if (verbose) System.out.println(line);\n }",
"public void vender() {\n\t\tSystem.out.println(\"Vender \"+cantidad+\" de \"+itemName);\n\t}",
"protected void handleVerbosity(final CommandMessage command, final Channel channel) {\n commandQueue.enqueueFutureResponse(new SimpleCommand(command, channel));\r\n }",
"public void printVector(String title)\n\t{\n\t\tthis.rv.print(\"r and v vector: \" + title);\n\t}",
"public ClientLoader verbose(final boolean theVerbose) {\r\n this.verbose = theVerbose;\r\n return this;\r\n }",
"public static void main(String[] args) {\n CommandCliParser cliParser = new CommandCliParser();\n cliParser.parseCommand(\"--verbose\");\n }",
"public void printCommand() {\n System.out.println(\"Cette commande n'est pas supportee\");\n System.out.println(\"Quitter : \\\"quit\\\", Total: \\\"total\\\" , Liste: \\\"list\\\" ou Time: \\\"time\\\"\");\n System.out.println(\"--------\");\n }",
"public static void logv(String msg) {\n Rlog.v(LOG_TAG, msg);\n }",
"public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }",
"public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }",
"public static void printInventoryHelpMessage() {\n\n UI.printEmptyLine();\n System.out.println(\"Here is a list of Inventory commands: \");\n\n UI.printEmptyLine();\n int[] lengthPara = {10,60,50};\n printer(new String[]{HELP_HEADER_COMMAND, HELP_HEADER_DESCRIPTION, HELP_HEADER_FORMAT}, lengthPara);\n UI.showLongLine();\n printer(new String[]{HELP_COMMAND, INVENTORY_HELP_DESCRIPTION, MARK_BLANK}, lengthPara);\n printer(new String[]{ADD_COMMAND, INVENTORY_ADD_DESCRIPTION, INVENTORY_ADD_FORMAT}, lengthPara);\n printer(new String[]{LIST_COMMAND, INVENTORY_LIST_DESCRIPTION, INVENTORY_LIST_FORMAT}, lengthPara);\n printer(new String[]{DELETE_COMMAND, INVENTORY_DELETE_DESCRIPTION, INVENTORY_DELETE_FORMAT}, lengthPara);\n printer(new String[]{RETURN_COMMAND, RETURN_DESCRIPTION, MARK_BLANK}, lengthPara);\n }",
"public static void v(String tag, String msg) {\n if (isDebug) {\n if (msg.length() > 4000) {\n for (int i = 0; i < msg.length(); i += 4000) {\n if (i + 4000 < msg.length())\n android.util.Log.v(tag + i, msg.substring(i, i + 4000));\n else\n android.util.Log.v(tag + i, msg.substring(i, msg.length()));\n }\n } else android.util.Log.v(tag, msg);\n }\n }",
"protected void logVerbose(StringWriter writer) {\n Collections.reverse(perfromedInvocations);\n for (AtomicOperationInvocation invocation : perfromedInvocations) {\n writeInvocation(invocation, writer);\n }\n }",
"@Override\n\tvoid showMsg() {\n\t\tSystem.out.println(\"Sample\");\n\t}",
"public void out_vertex(Site v) {\r\n\t\tif (triangulate == 0 & plot == 0 & debug == 0) {\r\n\t\t\tSystem.err.printf(\"v %f %f\\n\", v.coord.x, v.coord.y);\r\n\t\t}\r\n\r\n\t\tif (debug == 1) {\r\n\t\t\tSystem.err.printf(\"vertex(%d) at %f %f\\n\", v.sitenbr, v.coord.x,\r\n\t\t\t\t\tv.coord.y);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void voler() {\n\t\tSystem.out.println(\"JE SAIS PAS VOLER\");\n\t}",
"public void thankYouVet(){\n System.out.println(\"PetOwner says ... thank you Vet!\");\n }",
"public static void printVector(Vector v) {\n double[] vector = v.getData();\n for(int row = 0; row < vector.length; row++) {\n System.out.print(vector[row] + \" \");\n }\n System.out.println(\"\");\n }",
"@ReflectiveMethod(name = \"v\", types = {})\n public void v(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public static void printVector(int v[]) {\n for (int i = 0; i < v.length; i++) {\n if (i == (v.length) - 2) {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \") e \");\n } else if (!(i == (v.length) - 1)) {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \"), \");\n } else {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \")\");\n }\n }\n System.out.println();\n }",
"private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }",
"private void showVMDialog(int msgStatus) {\n switch (msgStatus) {\n case MSG_VM_EXCEPTION:\n showDialog(VM_RESPONSE_ERROR);\n break;\n case MSG_VM_NOCHANGE:\n showDialog(VM_NOCHANGE_ERROR);\n break;\n case MSG_VM_OK:\n showDialog(VOICEMAIL_DIALOG_CONFIRM);\n break;\n case MSG_OK:\n default:\n // This should never happen.\n }\n }",
"@Override\n\tpublic void powerOn() {\n\t\tSystem.out.println(\"samsongTV powerOn\");\n\n\t}",
"static void log(String text) {\n\t\tif (LoggingConfig.BUFFER_VERBOSE) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}",
"public void log(String message) {\n\tif (verbose) {\n\t System.out.println(toString() + \": \" + message);\n }\n }",
"public void printCommands(){\n LocalApi.print_commands();\n }",
"protected void echo(String msg){\n\tSystem.out.println(\"*ECHO*: \" + msg);\n }",
"public void MessageInvitCommand(String msg)\n {\n System.out.println(\"> \"+msg);\n }",
"private static void benvenuto() {\n\t\tUtilityIO.header(MSG_BENVENUTO, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t\t\n\t}",
"@Override\n\tpublic void suspend(String tenantId, String serverId) {\n\t\tSystem.out.println(\"suspend \" + tenantId + \"'s server \" + serverId + \"!!\");\n\t}",
"public void sendInfo(){\r\n\t\tfor(int i = 0; i < attachedChooser.getNumberOfCommandsInChooser(); i++){\r\n\t\t\tthis.writeStringData(i + \" \" + attachedChooser.getCommand(i).toString() + \">>>\"); // >>> denoted the end of the current command to the arduino\r\n\t\t}\r\n\t\tthis.writeStringData(\"!!!\"); //denoted to arduino that we have given it all of the commands and it can do its thing \r\n\t}",
"@Override\n public void execute(ConversationController conversationController) {\n System.out.println(message);\n }",
"private void printMessage(String s) {\n if (PRINTTRACE) {\r\n System.out.println(s);\r\n }\r\n }"
]
| [
"0.66321844",
"0.611933",
"0.5969631",
"0.5799989",
"0.5796111",
"0.5786307",
"0.5731685",
"0.5674197",
"0.5585652",
"0.5545519",
"0.5510849",
"0.5503185",
"0.54670143",
"0.54545456",
"0.54436785",
"0.54300874",
"0.5427386",
"0.5422029",
"0.5384162",
"0.5354077",
"0.5343952",
"0.5302759",
"0.5283714",
"0.5269061",
"0.5269061",
"0.52654135",
"0.5248154",
"0.524742",
"0.5201969",
"0.5169471",
"0.51326174",
"0.51098675",
"0.5092297",
"0.5086688",
"0.50548154",
"0.50210035",
"0.50210035",
"0.50189924",
"0.5006408",
"0.49562183",
"0.49436826",
"0.4937547",
"0.49277988",
"0.49249277",
"0.49108306",
"0.4897618",
"0.4897618",
"0.48941815",
"0.4889155",
"0.4888794",
"0.48739436",
"0.4873166",
"0.48684332",
"0.47955486",
"0.47895804",
"0.47895804",
"0.4760859",
"0.4753435",
"0.47299328",
"0.47184074",
"0.4689072",
"0.4681641",
"0.4680668",
"0.4667068",
"0.46589226",
"0.4633319",
"0.46306932",
"0.46249717",
"0.46173996",
"0.46105886",
"0.4605432",
"0.4602379",
"0.4601815",
"0.4595257",
"0.4595145",
"0.45653233",
"0.45548314",
"0.45364752",
"0.45351356",
"0.4533762",
"0.45298013",
"0.45161936",
"0.45160788",
"0.45147115",
"0.45058724",
"0.45031473",
"0.4497884",
"0.44951168",
"0.44927034",
"0.44856355",
"0.44852495",
"0.44849417",
"0.44811937",
"0.44596875",
"0.44451243",
"0.4444348",
"0.44438452",
"0.442914",
"0.4421782",
"0.44153064"
]
| 0.6010814 | 2 |
Send a VERBOSE message and log the exception. | public static void v(String tag, String msg, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, VERBOSE)) {
logger.v(tag, msg, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void v(String message, Object... args) {\n log(VERBOSE, null, null, message, args);\n }",
"public void verbose(String message);",
"public static void v(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n logger.v(tag, msg);\n }\n }",
"public static void verbose(String verbose) {\n if (IS_DEV) {\n Log.v(DEBUG_TAG, verbose);\n }\n }",
"static public void trace(String msg) {\n if (isVerbose()) {\n System.out.println(msg);\n }\n }",
"public static void printVerbose(final String pTag, final String pMessage)\n\t{\n\t\tif(LogConstant.DEBUG)\n\t\t{\n\t\t\tLog.v(pTag, pMessage);\n\t\t}\n\t}",
"private static void checkVerbose(final Exception err, final OptionSet options) throws Exception\n {\n if (options.has(OPTION_VERBOSE))\n {\n throw err;\n }\n else\n {\n return;\n }\n }",
"public void verbose(final String message, final Object... args) {\n log.fine(supplier(message, args));\n }",
"private void traceVerbose(String info) {\n if (showVerbose && trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }",
"public static void v(String str) {\n if (Log.isLoggable(TAG, Log.VERBOSE)) {\n Log.v(TAG, str);\n }\n }",
"public static void logv(String msg) {\n Rlog.v(LOG_TAG, msg);\n }",
"public boolean logVerbose()\r\n {\r\n return verboseLevelHandler.getBoolean();\r\n }",
"public void log(String message) {\n\tif (verbose) {\n\t System.out.println(toString() + \": \" + message);\n }\n }",
"public static final void verbose(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r4, @org.jetbrains.annotations.Nullable java.lang.Object r5, @org.jetbrains.annotations.Nullable java.lang.Throwable r6) {\n /*\n r3 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r4, r3);\n r0 = 2;\n r2 = r4.getLoggerTag();\n r3 = android.util.Log.isLoggable(r2, r0);\n if (r3 == 0) goto L_0x0025;\n L_0x0011:\n if (r6 == 0) goto L_0x002a;\n L_0x0013:\n if (r5 == 0) goto L_0x0026;\n L_0x0015:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x0026;\n L_0x001b:\n r6 = (java.lang.Throwable) r6;\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.v(r1, r3, r6);\n L_0x0025:\n return;\n L_0x0026:\n r3 = \"null\";\n goto L_0x001b;\n L_0x002a:\n if (r5 == 0) goto L_0x003b;\n L_0x002c:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x003b;\n L_0x0032:\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.v(r1, r3);\n goto L_0x0025;\n L_0x003b:\n r3 = \"null\";\n goto L_0x0032;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.verbose(org.jetbrains.anko.AnkoLogger, java.lang.Object, java.lang.Throwable):void\");\n }",
"public static final void verbose(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function0<? extends java.lang.Object> r3) {\n /*\n r1 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r1);\n r1 = \"message\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r1);\n r0 = r2.getLoggerTag();\n r1 = 2;\n r1 = android.util.Log.isLoggable(r0, r1);\n if (r1 == 0) goto L_0x0026;\n L_0x0017:\n r1 = r3.invoke();\n if (r1 == 0) goto L_0x0027;\n L_0x001d:\n r1 = r1.toString();\n if (r1 == 0) goto L_0x0027;\n L_0x0023:\n android.util.Log.v(r0, r1);\n L_0x0026:\n return;\n L_0x0027:\n r1 = \"null\";\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.verbose(org.jetbrains.anko.AnkoLogger, kotlin.jvm.functions.Function0):void\");\n }",
"public void setVerbose(boolean value);",
"public boolean containsVerboseLogs() throws ServiceFailureException;",
"public static void severe(String msg) {\n\t\tlog.severe(\"[iCart] \" + msg);\n\t}",
"public void logVerbose(boolean logVerbose)\r\n {\r\n if (logVerbose != verboseLevelHandler.getBoolean())\r\n {\r\n verboseLevelHandler.setBoolean(logVerbose);\r\n fireConfigUpdated();\r\n }\r\n }",
"public void Verbose(String Tag, String Message) {\n Log.v(Tag, Message);\n saveLog(Tag,Message);\n }",
"public void setVerbose(Boolean v) {\r\n\t\tm_verbose = v;\r\n\t}",
"public static void v(String tag, String formatString, Throwable tr, Object... args) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n try {\n logger.v(tag, String.format(Locale.ENGLISH, formatString, args), tr);\n } catch (Exception e) {\n logger.v(tag, String.format(Locale.ENGLISH, \"Unable to format log: %s\", formatString), e);\n }\n }\n }",
"void setVerbose( boolean verbose );",
"public void setVerboseExceptions(boolean verboseExceptions) {\n verboseExceptionsChecked = true;\n this.verboseExceptions = verboseExceptions;\n }",
"private void handleException(Throwable e) {\n if (e instanceof ExitException) {\n if (e.getCause() != null) {\n handleException(e.getCause());\n }\n sysexit.accept(((ExitException) e).status);\n } else if (Level.QUIET.compareTo(verbosity) < 0) {\n String prefix = beforeFirst(name(), ' ') + \": \";\n stderr.print(prefix);\n if (Level.DEBUG.compareTo(verbosity) <= 0) {\n e.printStackTrace(stderr);\n } else if (Level.VERBOSE.compareTo(verbosity) <= 0) {\n int depth = 0;\n Throwable failure = e;\n while (failure != null) {\n stderr.print(Strings.repeat(\" \", (depth > 0 ? prefix.length() - 4 : 0) + (4 * depth++)));\n stderr.println(removePrefix(failure.toString(), failure.getClass().getName() + \": \"));\n failure = failure.getCause();\n }\n } else if (Level.DEFAULT.compareTo(verbosity) <= 0) {\n stderr.println(formatException(e));\n }\n }\n }",
"@Override\n\tpublic void setLoggingLevelVerbosity(InetSocketAddress arg0, int arg1)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\n\t}",
"public static void v(String tag, String msg) {\n if (isDebug) {\n if (msg.length() > 4000) {\n for (int i = 0; i < msg.length(); i += 4000) {\n if (i + 4000 < msg.length())\n android.util.Log.v(tag + i, msg.substring(i, i + 4000));\n else\n android.util.Log.v(tag + i, msg.substring(i, msg.length()));\n }\n } else android.util.Log.v(tag, msg);\n }\n }",
"public static void v(String tag, String message) {\n Log.v(tag, message);\n }",
"private static void reportException(Exception poException) {\n\t\tSystem.err.println(\"Caught exception : \" + poException.getClass().getName());\n\t\tSystem.err.println(\"Message : \" + poException.getMessage());\n\t\tSystem.err.println(\"Stack Trace : \");\n\t\tpoException.printStackTrace(System.err);\n\t}",
"private void sendInternalError(Exception e) {\n LOG.error(\"Error after vertex manager callback \" + managedVertex.getLogIdentifier(), e);\n appContext.getEventHandler().handle(\n (new DAGEventInternalError(managedVertex.getVertexId().getDAGID(),\n \"Error in VertexManager for vertex: \" + managedVertex.getLogIdentifier()\n + \", error=\" + ExceptionUtils.getStackTrace(e))));\n }",
"public static void setVerbose(int b) {\n debug = b;\n }",
"public boolean isVerbose();",
"protected void setVerbose(boolean on)\n\t{\n\t\t_options.setVerbose(on);\n\t}",
"public void toggleVerbose() {\n\t\tverbose = !verbose;\n\t}",
"void displayDebug(String message) {\n if (this.server.isVerboseDebugEnabled())\n System.out.printf(\"**\\t[%s]\\t\" + name + \":\\t\" + message + \"\\n\", dateFormat.format(new Date()));\n }",
"public void setVerbosityLevel(int l)\n\t{\n\t\tVERBOSITY_LEVEL = l;\n\t}",
"public void setVerbose(boolean verbose) {\n\tthis.verbose = verbose;\n\tlog(\"Verbose mode is \" + verbose);\n }",
"public void severe(String msg) {\n log(SEVERE, msg);\n }",
"private void sendToCatVA()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Visual Art'\", Toast.LENGTH_SHORT).show();\n }",
"void k2h_set_debug_level_silent();",
"static void log(String text) {\n\t\tif (LoggingConfig.BUFFER_VERBOSE) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}",
"public static void v(String tag, String formatString, Object... args) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n try {\n logger.v(tag, String.format(Locale.ENGLISH, formatString, args));\n } catch (Exception e) {\n logger.v(tag, String.format(Locale.ENGLISH, \"Unable to format log: %s\", formatString), e);\n }\n }\n\n }",
"void k2h_set_debug_level_message();",
"public static void logException(Exception exception) {\n if (DEBUG) {\n try {\n Writer writer = new StringWriter();\n exception.printStackTrace(new PrintWriter(writer));\n Log.e(\"NLP: >Exception::\", \"\" + writer.toString());\n exception.printStackTrace();\n } catch (Exception ignore) {\n Logger.log(\"Exception print error\");\n }\n\n }\n }",
"public static void m1524v(String msg) {\n if (isDebug) {\n Log.v(TAG, msg);\n }\n }",
"public static void m1525v(String tag, String msg) {\n if (isDebug) {\n Log.v(tag, msg);\n }\n }",
"public void severe(String msg) {\n log(Level.SEVERE, msg, null);\n }",
"public void exceptionDebug(Exception e)\n {\n if(CDisable.DEBUG)\n {\n logToConsole(\"&cERROR: &3\" +e.getMessage());\n e.printStackTrace();\n }else\n {\n logToConsole(\"&cERROR: &3\" +e.getMessage());\n }\n }",
"public static void log(IStatus status) {\n getDefault().getLog().log(status);\n switch (status.getCode()) {\n case IStatus.ERROR:\n IvyDEMessage.error(status.getMessage(), status.getException());\n break;\n case IStatus.CANCEL:\n case IStatus.WARNING:\n IvyDEMessage.warn(status.getMessage(), status.getException());\n break;\n case IStatus.OK:\n case IStatus.INFO:\n IvyDEMessage.info(status.getMessage(), status.getException());\n break;\n }\n }",
"public void setVerbose(boolean b) {\n verbose = b;\n }",
"Object getVerbose();",
"Object getVerbose();",
"public void logs(Object message) {\n System.out.println(message.toString());\n }",
"public void setVerbose(boolean isVerbose) {\r\n this.isVerbose = isVerbose;\r\n }",
"public void setVerbose(boolean verbose) {\n verboseChecked = true;\n this.verbose = verbose;\n }",
"public void handleSilentException(Throwable e) {\n mCrashProperties.put(IS_SILENT_KEY, \"true\");\r\n handleException(e, ReportingInteractionMode.SILENT);\r\n }",
"void logSevere(String pMessage)\n{\n\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, pMessage);\n\n}",
"protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }",
"private static void log(String message) {\n System.out.println(message);\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"protected void report(String msg, Level level) {\n\t\tif (verbosity!=null && verbosity.intValue() > level.intValue()) return;\n\t\tLog.report(LOGTAG, msg, level);\n\t}",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"public static void handleException(Exception e) {\n System.err.println(e.toString());\n }",
"public static void severe(String msg) {\n\t\tlogger.log(Level.SEVERE, msg);\n\t}",
"private static void err(String msg) {\n System.err.println(PerfCakeAgent.class.getSimpleName() + \" > ERROR: \" + msg);\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"public static void printError(String message) {\n\t\t// if not in production, then print log on console\n\t\tif (!isProductionMode) Log.e(\"AppDebug : \", \" Error Debug:\" + message);\n\t}",
"public static void Log(String message){\r\n if(isDebugBuild == false){\r\n return;\r\n }\r\n System.out.println(message);\r\n }",
"private void printMessage(String s) {\n if (PRINTTRACE) {\r\n System.out.println(s);\r\n }\r\n }",
"private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void debug(Object message, Throwable t) {\n\n\t}",
"public final static void severe(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.severe(message);\n\t}",
"public static void reportException(Exception poException)\n\t{\n\t\tSystem.err.println(\"Caught exception : \" + poException.getClass().getName());\n\t\tSystem.err.println(\"Message : \" + poException.getMessage());\n\t\tSystem.err.println(\"Stack Trace : \");\n\t\tpoException.printStackTrace(System.err);\n\t}",
"public void setVerbose(boolean verbose) {\n\t\t_verbose = verbose;\n\t}",
"private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}",
"public static void v(String tag,String format, Object... args) {\n if (!BuildConfig.DEBUG) return;\n\n Log.v(tag, getLogString(format, args));\n }",
"public void setVerbosity(Level verbosity) {\n this.verbosity = verbosity;\n }",
"public void logRunTimeException(JoinPoint jointPoint, RuntimeException ex) throws Throwable {\n\t\tLOGGER.info(\"SERVICE_LOGGER-\" + \"\", ex.getMessage().toString());\n\t\tLOGGER.info(\"ITOPS_LOGGER-\" + \"\", ex.getMessage().toString());\n\t}",
"protected void handleVerbosity(final CommandMessage command, final Channel channel) {\n commandQueue.enqueueFutureResponse(new SimpleCommand(command, channel));\r\n }",
"void debug (String channel, String msg, RootException ex) throws RootException;",
"private void log(IndexObjectException e) {\n\t\t\r\n\t}",
"public void setVerbose(boolean verbose) {\n if (verbose) {\n this.verbosity = Project.MSG_INFO;\n } else {\n this.verbosity = Project.MSG_VERBOSE;\n }\n }",
"public boolean isVerbose() {\n \n // return it\n return showVerboseOutput;\n }",
"public void setVerboseExceptionsChecked(boolean verboseExceptionsChecked) {\n this.verboseExceptionsChecked = verboseExceptionsChecked;\n }",
"protected void logVerbose(StringWriter writer) {\n Collections.reverse(perfromedInvocations);\n for (AtomicOperationInvocation invocation : perfromedInvocations) {\n writeInvocation(invocation, writer);\n }\n }",
"public boolean isVerbose() {\n\treturn verbose;\n }",
"private static void debug(String message, Object... args)\n {\n StatusLogger.getLogger().debug(String.format(message, args));\n }",
"protected void logStatusMessage(int status) {\n switch (status) {\n case EXIT_OK:\n logger.info(\"SCHEMA CHANGE: OK\");\n break;\n case EXIT_BAD_ARGS:\n logger.severe(\"SCHEMA CHANGE: BAD ARGS\");\n break;\n case EXIT_RUNTIME_ERROR:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n case EXIT_VALIDATION_FAILED:\n logger.warning(\"SCHEMA CHANGE: FAILED\");\n break;\n default:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n }\n }",
"private static final void log(Throwable e) {\n\t\tlog.println(e);\n\t}",
"private static void log(String msg) {\n System.out.println(msg);\n }",
"public static void Log(String message){\n\t\tLogger log = Logger.getLogger(Test1.class.getName());\n\t\tlog.severe(message);\n\t}",
"void debug (String msg) throws RootException;",
"public void severe(String msg, Throwable t) {\n log(Level.SEVERE, msg, t);\n }",
"public static void main(String[] args) {\n\t\tLog.debug(\"Im Debugging\");\n\t\tLog.info(\"info\");\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\t/////////////////////\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\tgaurav\n\t}",
"public void setVerbose ( boolean verbose ) {\n\t\tthis.verbose = verbose;\n\t}",
"protected void logNonVerbose(StringWriter writer) {\n writeInvocation(perfromedInvocations.get(perfromedInvocations.size() - 1), writer);\n\n // log human consumable trace of activity ids and names\n List<Map<String, String>> activityTrace = collectActivityTrace();\n logActivityTrace(writer, activityTrace);\n }",
"public static void setVerbose(boolean d, boolean i, boolean e) {\n D = d;\n I = i;\n E = e;\n }",
"public static void showVerboseForSeconds(String message, int durationSeconds, boolean autoExpire) {\n\n\t\tSystem.out.println(timestamp.format(new Date()) + \" [VERBOSE] \" + message);\n\t\tif(verboseEnabled) {\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tnotificationListener.accept(Notification.VERBOSE, message, () -> System.currentTimeMillis() - startTime >= durationSeconds * 1000, autoExpire);\n\t\t}\n\t\t\n\t}",
"void debug (String channel, String msg) throws RootException;",
"private static void logException(Exception e, Options opts) {\n if (opts.log_level > 3) {\n e.printStackTrace();\n } else {\n System.err.println(e.getMessage());\n }\n }"
]
| [
"0.6045445",
"0.601301",
"0.59901655",
"0.5679385",
"0.5674393",
"0.56008357",
"0.5526383",
"0.54965705",
"0.54503804",
"0.5448075",
"0.5400874",
"0.5291816",
"0.5259536",
"0.52586246",
"0.52456737",
"0.5244847",
"0.52447796",
"0.52410394",
"0.5225266",
"0.5221486",
"0.5197059",
"0.5181039",
"0.51409656",
"0.5110739",
"0.50318956",
"0.5024728",
"0.50165224",
"0.5004499",
"0.49919087",
"0.49776766",
"0.4968433",
"0.49544877",
"0.49415416",
"0.49395308",
"0.4931155",
"0.49225914",
"0.49083877",
"0.49047524",
"0.48958984",
"0.48935688",
"0.4889532",
"0.4887654",
"0.488651",
"0.48743486",
"0.48730624",
"0.48727876",
"0.4859458",
"0.48559958",
"0.48426625",
"0.48343036",
"0.48305392",
"0.48305392",
"0.48186222",
"0.48176324",
"0.48043844",
"0.4795573",
"0.47731066",
"0.47629568",
"0.4759314",
"0.4754076",
"0.4748343",
"0.47287306",
"0.4727569",
"0.47187063",
"0.47177467",
"0.47015828",
"0.46664354",
"0.46574208",
"0.46446848",
"0.46411884",
"0.46406838",
"0.46377975",
"0.46349636",
"0.46306726",
"0.4614306",
"0.46112272",
"0.46108255",
"0.46057278",
"0.45980126",
"0.45966816",
"0.45804355",
"0.45762628",
"0.45713672",
"0.45672095",
"0.45642287",
"0.45637113",
"0.45592442",
"0.45582604",
"0.45446873",
"0.45434627",
"0.45425418",
"0.45402983",
"0.45336154",
"0.45311937",
"0.4530317",
"0.45298737",
"0.45263433",
"0.45237967",
"0.45222038",
"0.4520766"
]
| 0.6302314 | 0 |
Send a VERBOSE message. | public static void v(String tag, String formatString, Object... args) {
if (logger != null && isLoggingEnabled(tag, VERBOSE)) {
try {
logger.v(tag, String.format(Locale.ENGLISH, formatString, args));
} catch (Exception e) {
logger.v(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void verbose(String message);",
"public static void v(String message, Object... args) {\n log(VERBOSE, null, null, message, args);\n }",
"public static void v(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n logger.v(tag, msg);\n }\n }",
"public void setVerbose(Boolean v) {\r\n\t\tm_verbose = v;\r\n\t}",
"public void toggleVerbose() {\n\t\tverbose = !verbose;\n\t}",
"public void setVerbose(boolean value);",
"void setVerbose( boolean verbose );",
"public static void verbose(String verbose) {\n if (IS_DEV) {\n Log.v(DEBUG_TAG, verbose);\n }\n }",
"private void traceVerbose(String info) {\n if (showVerbose && trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }",
"protected void setVerbose(boolean on)\n\t{\n\t\t_options.setVerbose(on);\n\t}",
"public static void printVerbose(final String pTag, final String pMessage)\n\t{\n\t\tif(LogConstant.DEBUG)\n\t\t{\n\t\t\tLog.v(pTag, pMessage);\n\t\t}\n\t}",
"public void setVerbose(boolean verbose) {\n\tthis.verbose = verbose;\n\tlog(\"Verbose mode is \" + verbose);\n }",
"public boolean isVerbose() {\n\treturn verbose;\n }",
"public void setVerbose(boolean b) {\n verbose = b;\n }",
"public void verbose(final String message, final Object... args) {\n log.fine(supplier(message, args));\n }",
"public boolean isVerbose ( ) {\n\t\treturn verbose;\n\t}",
"public void setVerbose(boolean verbose) {\n verboseChecked = true;\n this.verbose = verbose;\n }",
"public static void v(String str) {\n if (Log.isLoggable(TAG, Log.VERBOSE)) {\n Log.v(TAG, str);\n }\n }",
"public boolean isVerbose();",
"public boolean isVerbose() {\n \n // return it\n return showVerboseOutput;\n }",
"public void setVerbose(boolean verbose) {\n if (verbose) {\n this.verbosity = Project.MSG_INFO;\n } else {\n this.verbosity = Project.MSG_VERBOSE;\n }\n }",
"public void setVerbose(boolean verbose) {\n\t\t_verbose = verbose;\n\t}",
"public boolean logVerbose()\r\n {\r\n return verboseLevelHandler.getBoolean();\r\n }",
"protected String getVerboseParameter() {\n return verbose ? null : \"/quiet\";\n }",
"public boolean isVerbose() {\n return verbose;\n }",
"public boolean isVerbose() {\n return verbose;\n }",
"public void setVerbose(boolean isVerbose) {\r\n this.isVerbose = isVerbose;\r\n }",
"public static void v(String tag, String msg, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n logger.v(tag, msg, tr);\n }\n }",
"public void setVerbose ( boolean verbose ) {\n\t\tthis.verbose = verbose;\n\t}",
"public static void showVerboseForSeconds(String message, int durationSeconds, boolean autoExpire) {\n\n\t\tSystem.out.println(timestamp.format(new Date()) + \" [VERBOSE] \" + message);\n\t\tif(verboseEnabled) {\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tnotificationListener.accept(Notification.VERBOSE, message, () -> System.currentTimeMillis() - startTime >= durationSeconds * 1000, autoExpire);\n\t\t}\n\t\t\n\t}",
"public boolean isVerbose()\n\t{\n\t\treturn _options.isVerbose();\n\t}",
"static void displayMessage() {\n\n System.out.println(\"\\nA total of \" + graphVisited.size() + \" vertices visited\");\n\n System.out.println(\"Found \" + silhouetteAnalyzer(numberOfVertices)\n + \" silhouettes\");\n }",
"static public void trace(String msg) {\n if (isVerbose()) {\n System.out.println(msg);\n }\n }",
"public static boolean verbose() {\n return verbose;\n }",
"public boolean isVerbose() {\n return mVerbose;\n }",
"public boolean isVerbose() {\n return m_commandLine.hasOption(m_verboseOption);\n }",
"Object getVerbose();",
"Object getVerbose();",
"public static void WelcomeMessage () {\n System.out.println(\"===============================================\");\r\n System.out.println(\" C O M P U T E R\");\r\n System.out.println(\" S C I E N C E\");\r\n System.out.println(\" R O U L E T T E\");\r\n System.out.println(\"====================================== v1.2 ===\");\r\n System.out.println();\r\n }",
"public void Verbose(String Tag, String Message) {\n Log.v(Tag, Message);\n saveLog(Tag,Message);\n }",
"public void setVerbose(final boolean newVerbose) {\n mVerbose = newVerbose;\n }",
"public int \tgetVerbosity() \t\t{ return verbosity; }",
"public static void showVerboseUntil(String message, BooleanSupplier isExpired, boolean autoExpire) {\n\n\t\tSystem.out.println(timestamp.format(new Date()) + \" [VERBOSE] \" + message);\n\t\tif(verboseEnabled)\n\t\t\tnotificationListener.accept(Notification.VERBOSE, message, isExpired, autoExpire);\n\t\t\n\t}",
"private void sendToCatVA()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Visual Art'\", Toast.LENGTH_SHORT).show();\n }",
"public static void verbose(boolean flag) {\n verbose = flag;\n }",
"public void setVerbosity(boolean verbosity) {\n this.verbosity = verbosity;\n }",
"public void setVerbose(IRubyObject verbose) {\n this.verbose = verbose.isTrue();\n this.verboseValue = verbose;\n warningsEnabled = !verbose.isNil();\n }",
"public void setVerbose(IRubyObject verbose) {\n this.verbose = verbose.isTrue();\n this.verboseValue = verbose;\n warningsEnabled = !verbose.isNil();\n }",
"public static void setVerbose(int b) {\n debug = b;\n }",
"public void setVerbosity(Level verbosity) {\n this.verbosity = verbosity;\n }",
"public void setVerbosityLevel(int l)\n\t{\n\t\tVERBOSITY_LEVEL = l;\n\t}",
"public static void v(String tag, String message) {\n Log.v(tag, message);\n }",
"public void logVerbose(boolean logVerbose)\r\n {\r\n if (logVerbose != verboseLevelHandler.getBoolean())\r\n {\r\n verboseLevelHandler.setBoolean(logVerbose);\r\n fireConfigUpdated();\r\n }\r\n }",
"public boolean isVerbose() {\r\n\t\treturn this.verbose;\r\n\t}",
"public void verVerDescripcion()\r\n\t{\r\n\t\tverdescripcion = new VerDescripcion(this);\r\n\t\tverdescripcion.setVisible(true);\r\n\t}",
"public IRubyObject getVerbose() {\n return verboseValue;\n }",
"public IRubyObject getVerbose() {\n return verboseValue;\n }",
"void displayDebug(String message) {\n if (this.server.isVerboseDebugEnabled())\n System.out.printf(\"**\\t[%s]\\t\" + name + \":\\t\" + message + \"\\n\", dateFormat.format(new Date()));\n }",
"public void setVerbosity(Level verbosity) {\n\t\tthis.verbosity = verbosity;\n\t}",
"private void printVersion() {\n \n // print the version\n System.out.println(\"arara \".concat(AraraConstants.VERSION).concat(\" - \").concat(localization.getMessage(\"Header_Slogan\")));\n System.out.println(\"Copyright (c) \".concat(AraraConstants.COPYRIGHTYEAR).concat(\", Paulo Roberto Massa Cereda\"));\n System.out.println(localization.getMessage(\"Header_AllRightsReserved\").concat(\"\\n\"));\n }",
"public boolean isVerbosity() {\n return verbosity;\n }",
"public static void info(Object message) {\n\t\tSystem.out.print(message);\n\t}",
"public static final void verbose(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function0<? extends java.lang.Object> r3) {\n /*\n r1 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r1);\n r1 = \"message\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r1);\n r0 = r2.getLoggerTag();\n r1 = 2;\n r1 = android.util.Log.isLoggable(r0, r1);\n if (r1 == 0) goto L_0x0026;\n L_0x0017:\n r1 = r3.invoke();\n if (r1 == 0) goto L_0x0027;\n L_0x001d:\n r1 = r1.toString();\n if (r1 == 0) goto L_0x0027;\n L_0x0023:\n android.util.Log.v(r0, r1);\n L_0x0026:\n return;\n L_0x0027:\n r1 = \"null\";\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.verbose(org.jetbrains.anko.AnkoLogger, kotlin.jvm.functions.Function0):void\");\n }",
"public void print() {\n System.out.println(\"I am \" + status() + (muted ? \" and told to shut up *sadface*\" : \"\") + \" (\" + toString() + \")\");\n }",
"public ClientLoader verboseStream(final PrintStream theVerboseStream) {\r\n this.verboseStream = theVerboseStream;\r\n return this;\r\n }",
"public void setVnom(short value) {\n this.vnom = value;\n }",
"public void setVerboseChecked(boolean verboseChecked) {\n this.verboseChecked = verboseChecked;\n }",
"public static void println(String line) {\n if (verbose) System.out.println(line);\n }",
"public void vender() {\n\t\tSystem.out.println(\"Vender \"+cantidad+\" de \"+itemName);\n\t}",
"protected void handleVerbosity(final CommandMessage command, final Channel channel) {\n commandQueue.enqueueFutureResponse(new SimpleCommand(command, channel));\r\n }",
"public void printVector(String title)\n\t{\n\t\tthis.rv.print(\"r and v vector: \" + title);\n\t}",
"public ClientLoader verbose(final boolean theVerbose) {\r\n this.verbose = theVerbose;\r\n return this;\r\n }",
"public static void main(String[] args) {\n CommandCliParser cliParser = new CommandCliParser();\n cliParser.parseCommand(\"--verbose\");\n }",
"public void printCommand() {\n System.out.println(\"Cette commande n'est pas supportee\");\n System.out.println(\"Quitter : \\\"quit\\\", Total: \\\"total\\\" , Liste: \\\"list\\\" ou Time: \\\"time\\\"\");\n System.out.println(\"--------\");\n }",
"public static void logv(String msg) {\n Rlog.v(LOG_TAG, msg);\n }",
"public void toastMsg(View v){\n String msg = \"Message Sent!\";\n Toast toast = Toast.makeText(this,msg,Toast.LENGTH_SHORT);\n toast.show();\n }",
"public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }",
"public static void printInventoryHelpMessage() {\n\n UI.printEmptyLine();\n System.out.println(\"Here is a list of Inventory commands: \");\n\n UI.printEmptyLine();\n int[] lengthPara = {10,60,50};\n printer(new String[]{HELP_HEADER_COMMAND, HELP_HEADER_DESCRIPTION, HELP_HEADER_FORMAT}, lengthPara);\n UI.showLongLine();\n printer(new String[]{HELP_COMMAND, INVENTORY_HELP_DESCRIPTION, MARK_BLANK}, lengthPara);\n printer(new String[]{ADD_COMMAND, INVENTORY_ADD_DESCRIPTION, INVENTORY_ADD_FORMAT}, lengthPara);\n printer(new String[]{LIST_COMMAND, INVENTORY_LIST_DESCRIPTION, INVENTORY_LIST_FORMAT}, lengthPara);\n printer(new String[]{DELETE_COMMAND, INVENTORY_DELETE_DESCRIPTION, INVENTORY_DELETE_FORMAT}, lengthPara);\n printer(new String[]{RETURN_COMMAND, RETURN_DESCRIPTION, MARK_BLANK}, lengthPara);\n }",
"public static void v(String tag, String msg) {\n if (isDebug) {\n if (msg.length() > 4000) {\n for (int i = 0; i < msg.length(); i += 4000) {\n if (i + 4000 < msg.length())\n android.util.Log.v(tag + i, msg.substring(i, i + 4000));\n else\n android.util.Log.v(tag + i, msg.substring(i, msg.length()));\n }\n } else android.util.Log.v(tag, msg);\n }\n }",
"protected void logVerbose(StringWriter writer) {\n Collections.reverse(perfromedInvocations);\n for (AtomicOperationInvocation invocation : perfromedInvocations) {\n writeInvocation(invocation, writer);\n }\n }",
"@Override\n\tvoid showMsg() {\n\t\tSystem.out.println(\"Sample\");\n\t}",
"public void out_vertex(Site v) {\r\n\t\tif (triangulate == 0 & plot == 0 & debug == 0) {\r\n\t\t\tSystem.err.printf(\"v %f %f\\n\", v.coord.x, v.coord.y);\r\n\t\t}\r\n\r\n\t\tif (debug == 1) {\r\n\t\t\tSystem.err.printf(\"vertex(%d) at %f %f\\n\", v.sitenbr, v.coord.x,\r\n\t\t\t\t\tv.coord.y);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void voler() {\n\t\tSystem.out.println(\"JE SAIS PAS VOLER\");\n\t}",
"public void thankYouVet(){\n System.out.println(\"PetOwner says ... thank you Vet!\");\n }",
"public static void printVector(Vector v) {\n double[] vector = v.getData();\n for(int row = 0; row < vector.length; row++) {\n System.out.print(vector[row] + \" \");\n }\n System.out.println(\"\");\n }",
"@ReflectiveMethod(name = \"v\", types = {})\n public void v(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public static void printVector(int v[]) {\n for (int i = 0; i < v.length; i++) {\n if (i == (v.length) - 2) {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \") e \");\n } else if (!(i == (v.length) - 1)) {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \"), \");\n } else {\n System.out.print(\"Posição \" + i + \": (\" + v[i] + \")\");\n }\n }\n System.out.println();\n }",
"private void printOptionsMessage() {\n System.out.println(\"\\n\");\n System.out.print(\"Visible arrays: \");\n if (showArray == true) {\n System.out.println(\"On\");\n } else {\n System.out.println(\"Off\");\n }\n\n System.out.println(\"Selected Algorithms: \");\n if (selected[0] == true) {\n System.out.print(\" MergeSort\");\n }\n if (selected[1] == true) {\n System.out.print(\" QuickSort\");\n }\n if (selected[2] == true) {\n System.out.print(\" HeapSort\");\n }\n\n System.out.println();\n }",
"private void showVMDialog(int msgStatus) {\n switch (msgStatus) {\n case MSG_VM_EXCEPTION:\n showDialog(VM_RESPONSE_ERROR);\n break;\n case MSG_VM_NOCHANGE:\n showDialog(VM_NOCHANGE_ERROR);\n break;\n case MSG_VM_OK:\n showDialog(VOICEMAIL_DIALOG_CONFIRM);\n break;\n case MSG_OK:\n default:\n // This should never happen.\n }\n }",
"@Override\n\tpublic void powerOn() {\n\t\tSystem.out.println(\"samsongTV powerOn\");\n\n\t}",
"static void log(String text) {\n\t\tif (LoggingConfig.BUFFER_VERBOSE) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}",
"public void log(String message) {\n\tif (verbose) {\n\t System.out.println(toString() + \": \" + message);\n }\n }",
"public void printCommands(){\n LocalApi.print_commands();\n }",
"protected void echo(String msg){\n\tSystem.out.println(\"*ECHO*: \" + msg);\n }",
"public void MessageInvitCommand(String msg)\n {\n System.out.println(\"> \"+msg);\n }",
"private static void benvenuto() {\n\t\tUtilityIO.header(MSG_BENVENUTO, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t\t\n\t}",
"@Override\n\tpublic void suspend(String tenantId, String serverId) {\n\t\tSystem.out.println(\"suspend \" + tenantId + \"'s server \" + serverId + \"!!\");\n\t}",
"public void sendInfo(){\r\n\t\tfor(int i = 0; i < attachedChooser.getNumberOfCommandsInChooser(); i++){\r\n\t\t\tthis.writeStringData(i + \" \" + attachedChooser.getCommand(i).toString() + \">>>\"); // >>> denoted the end of the current command to the arduino\r\n\t\t}\r\n\t\tthis.writeStringData(\"!!!\"); //denoted to arduino that we have given it all of the commands and it can do its thing \r\n\t}",
"@Override\n public void execute(ConversationController conversationController) {\n System.out.println(message);\n }",
"private void printMessage(String s) {\n if (PRINTTRACE) {\r\n System.out.println(s);\r\n }\r\n }"
]
| [
"0.66321844",
"0.611933",
"0.6010814",
"0.5969631",
"0.5799989",
"0.5796111",
"0.5786307",
"0.5731685",
"0.5674197",
"0.5585652",
"0.5545519",
"0.5510849",
"0.5503185",
"0.54670143",
"0.54545456",
"0.54436785",
"0.54300874",
"0.5427386",
"0.5422029",
"0.5384162",
"0.5354077",
"0.5343952",
"0.5302759",
"0.5283714",
"0.5269061",
"0.5269061",
"0.52654135",
"0.5248154",
"0.524742",
"0.5201969",
"0.5169471",
"0.51326174",
"0.51098675",
"0.5092297",
"0.5086688",
"0.50548154",
"0.50210035",
"0.50210035",
"0.50189924",
"0.5006408",
"0.49562183",
"0.49436826",
"0.4937547",
"0.49277988",
"0.49249277",
"0.49108306",
"0.4897618",
"0.4897618",
"0.48941815",
"0.4889155",
"0.4888794",
"0.48739436",
"0.4873166",
"0.48684332",
"0.47955486",
"0.47895804",
"0.47895804",
"0.4760859",
"0.4753435",
"0.47299328",
"0.47184074",
"0.4689072",
"0.4681641",
"0.4680668",
"0.46589226",
"0.4633319",
"0.46306932",
"0.46249717",
"0.46173996",
"0.46105886",
"0.4605432",
"0.4602379",
"0.4601815",
"0.4595257",
"0.4595145",
"0.45653233",
"0.45548314",
"0.45364752",
"0.45351356",
"0.4533762",
"0.45298013",
"0.45161936",
"0.45160788",
"0.45147115",
"0.45058724",
"0.45031473",
"0.4497884",
"0.44951168",
"0.44927034",
"0.44856355",
"0.44852495",
"0.44849417",
"0.44811937",
"0.44596875",
"0.44451243",
"0.4444348",
"0.44438452",
"0.442914",
"0.4421782",
"0.44153064"
]
| 0.4667068 | 64 |
Send a VERBOSE message and log the exception. | public static void v(String tag, String formatString, Throwable tr, Object... args) {
if (logger != null && isLoggingEnabled(tag, VERBOSE)) {
try {
logger.v(tag, String.format(Locale.ENGLISH, formatString, args), tr);
} catch (Exception e) {
logger.v(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void v(String tag, String msg, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n logger.v(tag, msg, tr);\n }\n }",
"public static void v(String message, Object... args) {\n log(VERBOSE, null, null, message, args);\n }",
"public void verbose(String message);",
"public static void v(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n logger.v(tag, msg);\n }\n }",
"public static void verbose(String verbose) {\n if (IS_DEV) {\n Log.v(DEBUG_TAG, verbose);\n }\n }",
"static public void trace(String msg) {\n if (isVerbose()) {\n System.out.println(msg);\n }\n }",
"public static void printVerbose(final String pTag, final String pMessage)\n\t{\n\t\tif(LogConstant.DEBUG)\n\t\t{\n\t\t\tLog.v(pTag, pMessage);\n\t\t}\n\t}",
"private static void checkVerbose(final Exception err, final OptionSet options) throws Exception\n {\n if (options.has(OPTION_VERBOSE))\n {\n throw err;\n }\n else\n {\n return;\n }\n }",
"public void verbose(final String message, final Object... args) {\n log.fine(supplier(message, args));\n }",
"private void traceVerbose(String info) {\n if (showVerbose && trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }",
"public static void v(String str) {\n if (Log.isLoggable(TAG, Log.VERBOSE)) {\n Log.v(TAG, str);\n }\n }",
"public static void logv(String msg) {\n Rlog.v(LOG_TAG, msg);\n }",
"public boolean logVerbose()\r\n {\r\n return verboseLevelHandler.getBoolean();\r\n }",
"public void log(String message) {\n\tif (verbose) {\n\t System.out.println(toString() + \": \" + message);\n }\n }",
"public static final void verbose(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r4, @org.jetbrains.annotations.Nullable java.lang.Object r5, @org.jetbrains.annotations.Nullable java.lang.Throwable r6) {\n /*\n r3 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r4, r3);\n r0 = 2;\n r2 = r4.getLoggerTag();\n r3 = android.util.Log.isLoggable(r2, r0);\n if (r3 == 0) goto L_0x0025;\n L_0x0011:\n if (r6 == 0) goto L_0x002a;\n L_0x0013:\n if (r5 == 0) goto L_0x0026;\n L_0x0015:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x0026;\n L_0x001b:\n r6 = (java.lang.Throwable) r6;\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.v(r1, r3, r6);\n L_0x0025:\n return;\n L_0x0026:\n r3 = \"null\";\n goto L_0x001b;\n L_0x002a:\n if (r5 == 0) goto L_0x003b;\n L_0x002c:\n r3 = r5.toString();\n if (r3 == 0) goto L_0x003b;\n L_0x0032:\n r3 = (java.lang.String) r3;\n r1 = r2;\n r1 = (java.lang.String) r1;\n android.util.Log.v(r1, r3);\n goto L_0x0025;\n L_0x003b:\n r3 = \"null\";\n goto L_0x0032;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.verbose(org.jetbrains.anko.AnkoLogger, java.lang.Object, java.lang.Throwable):void\");\n }",
"public static final void verbose(@org.jetbrains.annotations.NotNull org.jetbrains.anko.AnkoLogger r2, @org.jetbrains.annotations.NotNull kotlin.jvm.functions.Function0<? extends java.lang.Object> r3) {\n /*\n r1 = \"$receiver\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r1);\n r1 = \"message\";\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r1);\n r0 = r2.getLoggerTag();\n r1 = 2;\n r1 = android.util.Log.isLoggable(r0, r1);\n if (r1 == 0) goto L_0x0026;\n L_0x0017:\n r1 = r3.invoke();\n if (r1 == 0) goto L_0x0027;\n L_0x001d:\n r1 = r1.toString();\n if (r1 == 0) goto L_0x0027;\n L_0x0023:\n android.util.Log.v(r0, r1);\n L_0x0026:\n return;\n L_0x0027:\n r1 = \"null\";\n goto L_0x0023;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.jetbrains.anko.Logging.verbose(org.jetbrains.anko.AnkoLogger, kotlin.jvm.functions.Function0):void\");\n }",
"public void setVerbose(boolean value);",
"public boolean containsVerboseLogs() throws ServiceFailureException;",
"public static void severe(String msg) {\n\t\tlog.severe(\"[iCart] \" + msg);\n\t}",
"public void logVerbose(boolean logVerbose)\r\n {\r\n if (logVerbose != verboseLevelHandler.getBoolean())\r\n {\r\n verboseLevelHandler.setBoolean(logVerbose);\r\n fireConfigUpdated();\r\n }\r\n }",
"public void Verbose(String Tag, String Message) {\n Log.v(Tag, Message);\n saveLog(Tag,Message);\n }",
"public void setVerbose(Boolean v) {\r\n\t\tm_verbose = v;\r\n\t}",
"void setVerbose( boolean verbose );",
"public void setVerboseExceptions(boolean verboseExceptions) {\n verboseExceptionsChecked = true;\n this.verboseExceptions = verboseExceptions;\n }",
"private void handleException(Throwable e) {\n if (e instanceof ExitException) {\n if (e.getCause() != null) {\n handleException(e.getCause());\n }\n sysexit.accept(((ExitException) e).status);\n } else if (Level.QUIET.compareTo(verbosity) < 0) {\n String prefix = beforeFirst(name(), ' ') + \": \";\n stderr.print(prefix);\n if (Level.DEBUG.compareTo(verbosity) <= 0) {\n e.printStackTrace(stderr);\n } else if (Level.VERBOSE.compareTo(verbosity) <= 0) {\n int depth = 0;\n Throwable failure = e;\n while (failure != null) {\n stderr.print(Strings.repeat(\" \", (depth > 0 ? prefix.length() - 4 : 0) + (4 * depth++)));\n stderr.println(removePrefix(failure.toString(), failure.getClass().getName() + \": \"));\n failure = failure.getCause();\n }\n } else if (Level.DEFAULT.compareTo(verbosity) <= 0) {\n stderr.println(formatException(e));\n }\n }\n }",
"@Override\n\tpublic void setLoggingLevelVerbosity(InetSocketAddress arg0, int arg1)\n\t\t\tthrows TimeoutException, InterruptedException, MemcachedException {\n\n\t}",
"public static void v(String tag, String msg) {\n if (isDebug) {\n if (msg.length() > 4000) {\n for (int i = 0; i < msg.length(); i += 4000) {\n if (i + 4000 < msg.length())\n android.util.Log.v(tag + i, msg.substring(i, i + 4000));\n else\n android.util.Log.v(tag + i, msg.substring(i, msg.length()));\n }\n } else android.util.Log.v(tag, msg);\n }\n }",
"public static void v(String tag, String message) {\n Log.v(tag, message);\n }",
"private static void reportException(Exception poException) {\n\t\tSystem.err.println(\"Caught exception : \" + poException.getClass().getName());\n\t\tSystem.err.println(\"Message : \" + poException.getMessage());\n\t\tSystem.err.println(\"Stack Trace : \");\n\t\tpoException.printStackTrace(System.err);\n\t}",
"private void sendInternalError(Exception e) {\n LOG.error(\"Error after vertex manager callback \" + managedVertex.getLogIdentifier(), e);\n appContext.getEventHandler().handle(\n (new DAGEventInternalError(managedVertex.getVertexId().getDAGID(),\n \"Error in VertexManager for vertex: \" + managedVertex.getLogIdentifier()\n + \", error=\" + ExceptionUtils.getStackTrace(e))));\n }",
"public static void setVerbose(int b) {\n debug = b;\n }",
"public boolean isVerbose();",
"protected void setVerbose(boolean on)\n\t{\n\t\t_options.setVerbose(on);\n\t}",
"public void toggleVerbose() {\n\t\tverbose = !verbose;\n\t}",
"void displayDebug(String message) {\n if (this.server.isVerboseDebugEnabled())\n System.out.printf(\"**\\t[%s]\\t\" + name + \":\\t\" + message + \"\\n\", dateFormat.format(new Date()));\n }",
"public void setVerbosityLevel(int l)\n\t{\n\t\tVERBOSITY_LEVEL = l;\n\t}",
"public void setVerbose(boolean verbose) {\n\tthis.verbose = verbose;\n\tlog(\"Verbose mode is \" + verbose);\n }",
"public void severe(String msg) {\n log(SEVERE, msg);\n }",
"private void sendToCatVA()\n {\n Toast.makeText(getApplicationContext(), \"No Results Found For 'Visual Art'\", Toast.LENGTH_SHORT).show();\n }",
"void k2h_set_debug_level_silent();",
"static void log(String text) {\n\t\tif (LoggingConfig.BUFFER_VERBOSE) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}",
"public static void v(String tag, String formatString, Object... args) {\n if (logger != null && isLoggingEnabled(tag, VERBOSE)) {\n try {\n logger.v(tag, String.format(Locale.ENGLISH, formatString, args));\n } catch (Exception e) {\n logger.v(tag, String.format(Locale.ENGLISH, \"Unable to format log: %s\", formatString), e);\n }\n }\n\n }",
"void k2h_set_debug_level_message();",
"public static void logException(Exception exception) {\n if (DEBUG) {\n try {\n Writer writer = new StringWriter();\n exception.printStackTrace(new PrintWriter(writer));\n Log.e(\"NLP: >Exception::\", \"\" + writer.toString());\n exception.printStackTrace();\n } catch (Exception ignore) {\n Logger.log(\"Exception print error\");\n }\n\n }\n }",
"public static void m1524v(String msg) {\n if (isDebug) {\n Log.v(TAG, msg);\n }\n }",
"public static void m1525v(String tag, String msg) {\n if (isDebug) {\n Log.v(tag, msg);\n }\n }",
"public void severe(String msg) {\n log(Level.SEVERE, msg, null);\n }",
"public void exceptionDebug(Exception e)\n {\n if(CDisable.DEBUG)\n {\n logToConsole(\"&cERROR: &3\" +e.getMessage());\n e.printStackTrace();\n }else\n {\n logToConsole(\"&cERROR: &3\" +e.getMessage());\n }\n }",
"public static void log(IStatus status) {\n getDefault().getLog().log(status);\n switch (status.getCode()) {\n case IStatus.ERROR:\n IvyDEMessage.error(status.getMessage(), status.getException());\n break;\n case IStatus.CANCEL:\n case IStatus.WARNING:\n IvyDEMessage.warn(status.getMessage(), status.getException());\n break;\n case IStatus.OK:\n case IStatus.INFO:\n IvyDEMessage.info(status.getMessage(), status.getException());\n break;\n }\n }",
"public void setVerbose(boolean b) {\n verbose = b;\n }",
"Object getVerbose();",
"Object getVerbose();",
"public void logs(Object message) {\n System.out.println(message.toString());\n }",
"public void setVerbose(boolean isVerbose) {\r\n this.isVerbose = isVerbose;\r\n }",
"public void setVerbose(boolean verbose) {\n verboseChecked = true;\n this.verbose = verbose;\n }",
"public void handleSilentException(Throwable e) {\n mCrashProperties.put(IS_SILENT_KEY, \"true\");\r\n handleException(e, ReportingInteractionMode.SILENT);\r\n }",
"void logSevere(String pMessage)\n{\n\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, pMessage);\n\n}",
"protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }",
"private static void log(String message) {\n System.out.println(message);\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"protected void report(String msg, Level level) {\n\t\tif (verbosity!=null && verbosity.intValue() > level.intValue()) return;\n\t\tLog.report(LOGTAG, msg, level);\n\t}",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"public static void handleException(Exception e) {\n System.err.println(e.toString());\n }",
"public static void severe(String msg) {\n\t\tlogger.log(Level.SEVERE, msg);\n\t}",
"private static void err(String msg) {\n System.err.println(PerfCakeAgent.class.getSimpleName() + \" > ERROR: \" + msg);\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"public static void printError(String message) {\n\t\t// if not in production, then print log on console\n\t\tif (!isProductionMode) Log.e(\"AppDebug : \", \" Error Debug:\" + message);\n\t}",
"public static void Log(String message){\r\n if(isDebugBuild == false){\r\n return;\r\n }\r\n System.out.println(message);\r\n }",
"private void printMessage(String s) {\n if (PRINTTRACE) {\r\n System.out.println(s);\r\n }\r\n }",
"private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void debug(Object message, Throwable t) {\n\n\t}",
"public final static void severe(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.severe(message);\n\t}",
"public static void reportException(Exception poException)\n\t{\n\t\tSystem.err.println(\"Caught exception : \" + poException.getClass().getName());\n\t\tSystem.err.println(\"Message : \" + poException.getMessage());\n\t\tSystem.err.println(\"Stack Trace : \");\n\t\tpoException.printStackTrace(System.err);\n\t}",
"public void setVerbose(boolean verbose) {\n\t\t_verbose = verbose;\n\t}",
"private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}",
"public static void v(String tag,String format, Object... args) {\n if (!BuildConfig.DEBUG) return;\n\n Log.v(tag, getLogString(format, args));\n }",
"public void setVerbosity(Level verbosity) {\n this.verbosity = verbosity;\n }",
"public void logRunTimeException(JoinPoint jointPoint, RuntimeException ex) throws Throwable {\n\t\tLOGGER.info(\"SERVICE_LOGGER-\" + \"\", ex.getMessage().toString());\n\t\tLOGGER.info(\"ITOPS_LOGGER-\" + \"\", ex.getMessage().toString());\n\t}",
"protected void handleVerbosity(final CommandMessage command, final Channel channel) {\n commandQueue.enqueueFutureResponse(new SimpleCommand(command, channel));\r\n }",
"void debug (String channel, String msg, RootException ex) throws RootException;",
"private void log(IndexObjectException e) {\n\t\t\r\n\t}",
"public void setVerbose(boolean verbose) {\n if (verbose) {\n this.verbosity = Project.MSG_INFO;\n } else {\n this.verbosity = Project.MSG_VERBOSE;\n }\n }",
"public boolean isVerbose() {\n \n // return it\n return showVerboseOutput;\n }",
"public void setVerboseExceptionsChecked(boolean verboseExceptionsChecked) {\n this.verboseExceptionsChecked = verboseExceptionsChecked;\n }",
"protected void logVerbose(StringWriter writer) {\n Collections.reverse(perfromedInvocations);\n for (AtomicOperationInvocation invocation : perfromedInvocations) {\n writeInvocation(invocation, writer);\n }\n }",
"public boolean isVerbose() {\n\treturn verbose;\n }",
"private static void debug(String message, Object... args)\n {\n StatusLogger.getLogger().debug(String.format(message, args));\n }",
"protected void logStatusMessage(int status) {\n switch (status) {\n case EXIT_OK:\n logger.info(\"SCHEMA CHANGE: OK\");\n break;\n case EXIT_BAD_ARGS:\n logger.severe(\"SCHEMA CHANGE: BAD ARGS\");\n break;\n case EXIT_RUNTIME_ERROR:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n case EXIT_VALIDATION_FAILED:\n logger.warning(\"SCHEMA CHANGE: FAILED\");\n break;\n default:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n }\n }",
"private static final void log(Throwable e) {\n\t\tlog.println(e);\n\t}",
"private static void log(String msg) {\n System.out.println(msg);\n }",
"public static void Log(String message){\n\t\tLogger log = Logger.getLogger(Test1.class.getName());\n\t\tlog.severe(message);\n\t}",
"void debug (String msg) throws RootException;",
"public void severe(String msg, Throwable t) {\n log(Level.SEVERE, msg, t);\n }",
"public static void main(String[] args) {\n\t\tLog.debug(\"Im Debugging\");\n\t\tLog.info(\"info\");\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\t/////////////////////\n\t\tLog.error(\"this is an error\");\n\t\tLog.fatal(\"this is fatal\");\n\t\tLog.trace(\"this is trace\");\n\t\tgaurav\n\t}",
"public void setVerbose ( boolean verbose ) {\n\t\tthis.verbose = verbose;\n\t}",
"protected void logNonVerbose(StringWriter writer) {\n writeInvocation(perfromedInvocations.get(perfromedInvocations.size() - 1), writer);\n\n // log human consumable trace of activity ids and names\n List<Map<String, String>> activityTrace = collectActivityTrace();\n logActivityTrace(writer, activityTrace);\n }",
"public static void setVerbose(boolean d, boolean i, boolean e) {\n D = d;\n I = i;\n E = e;\n }",
"public static void showVerboseForSeconds(String message, int durationSeconds, boolean autoExpire) {\n\n\t\tSystem.out.println(timestamp.format(new Date()) + \" [VERBOSE] \" + message);\n\t\tif(verboseEnabled) {\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tnotificationListener.accept(Notification.VERBOSE, message, () -> System.currentTimeMillis() - startTime >= durationSeconds * 1000, autoExpire);\n\t\t}\n\t\t\n\t}",
"void debug (String channel, String msg) throws RootException;",
"private static void logException(Exception e, Options opts) {\n if (opts.log_level > 3) {\n e.printStackTrace();\n } else {\n System.err.println(e.getMessage());\n }\n }"
]
| [
"0.6302314",
"0.6045445",
"0.601301",
"0.59901655",
"0.5679385",
"0.5674393",
"0.56008357",
"0.5526383",
"0.54965705",
"0.54503804",
"0.5448075",
"0.5400874",
"0.5291816",
"0.5259536",
"0.52586246",
"0.52456737",
"0.5244847",
"0.52447796",
"0.52410394",
"0.5225266",
"0.5221486",
"0.5197059",
"0.51409656",
"0.5110739",
"0.50318956",
"0.5024728",
"0.50165224",
"0.5004499",
"0.49919087",
"0.49776766",
"0.4968433",
"0.49544877",
"0.49415416",
"0.49395308",
"0.4931155",
"0.49225914",
"0.49083877",
"0.49047524",
"0.48958984",
"0.48935688",
"0.4889532",
"0.4887654",
"0.488651",
"0.48743486",
"0.48730624",
"0.48727876",
"0.4859458",
"0.48559958",
"0.48426625",
"0.48343036",
"0.48305392",
"0.48305392",
"0.48186222",
"0.48176324",
"0.48043844",
"0.4795573",
"0.47731066",
"0.47629568",
"0.4759314",
"0.4754076",
"0.4748343",
"0.47287306",
"0.4727569",
"0.47187063",
"0.47177467",
"0.47015828",
"0.46664354",
"0.46574208",
"0.46446848",
"0.46411884",
"0.46406838",
"0.46377975",
"0.46349636",
"0.46306726",
"0.4614306",
"0.46112272",
"0.46108255",
"0.46057278",
"0.45980126",
"0.45966816",
"0.45804355",
"0.45762628",
"0.45713672",
"0.45672095",
"0.45642287",
"0.45637113",
"0.45592442",
"0.45582604",
"0.45446873",
"0.45434627",
"0.45425418",
"0.45402983",
"0.45336154",
"0.45311937",
"0.4530317",
"0.45298737",
"0.45263433",
"0.45237967",
"0.45222038",
"0.4520766"
]
| 0.5181039 | 22 |
Send an INFO message. | public static void i(String tag, String msg) {
if (logger != null && isLoggingEnabled(tag, INFO)) {
logger.i(tag, msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(String message);",
"public void info(String message);",
"void info(String message);",
"@Override\n\tpublic void info(Object message) {\n\n\t}",
"public static void logInfo(String message)\n {\n log(IStatus.INFO, message);\n }",
"public void info(String message) {\r\n\t\treport(INFO, message, null);\r\n\t}",
"public void info(String msg) {\n log(INFO, msg);\n }",
"public void info(String msg) {\n log(Level.INFO, msg, null);\n }",
"@Override\n\tpublic void info(Message msg) {\n\n\t}",
"public static void info(Object message) {\n\t\tSystem.out.print(message);\n\t}",
"@Override\n\tpublic void info(String message, Object... params) {\n\n\t}",
"public void sendInfo(String message) {\n sendMessage(Prefix.SERVER, message);\n }",
"protected void info(String msg) {\n log.log(Level.INFO, msg);\n }",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"protected abstract void info(String msg);",
"public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void info(Marker marker, Message msg) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1) {\n\n\t}",
"public static void info(String message) {\n\n\t\tlog(message);\n\t}",
"void info(String tag, String msg);",
"public static void info(String msg) {\n\t\tlogger.log(Level.INFO, msg);\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void info(String msg) {\n LOGGER_BASE.info(msg);\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n public void info(String message) {\n if (Level.INFO.getPriority() <= level.getPriority()) {\n print(\"INFO: \" + message);\n }\n }",
"public void info(String msg) {\n\t\tif (this.logLevel <= BackupLogger.INFO) {\n\t\t\twrite(\"INFO \" + msg);\n\t\t\tSystem.out.println(\"INFO \" + msg);\n\t\t}\n\t}",
"@Override\n\tpublic void info(Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"public void infoMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_INFO, msg));\n }",
"public static void info(String msg){\n\t\tconsole(msg);\n\t\tlogger.info(msg);\n\t}",
"public static void info(String message) {\n\t\tlogger.info(message);\n\t}",
"@Override\n\tpublic void info(Marker marker, String message, Object... params) {\n\n\t}",
"public void writeInfo(String message){\n final String output = getTimeString() + \" INFO: \" + message+ ENTER;\n switch (PreferencesHelper.getConsolePopupLevel()) {\n case ALL:\n case ONLY_INFO:\n popConsoleView();\n break;\n default:\n break;\n }\n UIBundlingThread.getInstance().addRunnable(new Runnable(){\n public void run() {\n if(infoStream == null){\n infoStream = console.newOutputStream();\n infoStream.setColor(CustomMediaFactory.getInstance().getColor(\n CustomMediaFactory.COLOR_BLACK));\n }\n writeToConsole(infoStream, output);\n }\n });\n\n }",
"public void info(String message, BufferedImage image) {\r\n\t\treport(INFO, message, image);\r\n\t}",
"public static void info(String message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.INFO, message);\n\t\t}\n\t}",
"@Override\n\tpublic void info(Marker marker, String message) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0) {\n\n\t}",
"private void showInfo(String message)\r\n {\r\n infoLabel.setText(message);\r\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"void info(String messageKey, Object... args);",
"public static void info(String msg) {\n logger.info(msg);\n }",
"public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}",
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"public static void info(String message) {\n LOGGER.info(message);\n }",
"public static void info(Object arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.info(MessageCodes.GENERAL_INFO, String.valueOf(arg0));\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, 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}",
"@Override\n public void info(final Object message) {\n this.logger.info(this.prepareDefaultMessage(message));\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, String message, Object p0) {\n\n\t}",
"@SuppressWarnings(\"unused\")\n protected void info(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isInfoEnabled()) {\n this.getContainer().getLogger().info(msg);\n }\n }",
"void info (String channel, String msg) throws RootException;",
"private void showInfo(String message){ infoLabel.setText(message);}",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void logInfo(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.INFO,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}",
"public void info(String message) {\n if (mLoggable) {\n try {\n Log.i(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5) {\n\n\t}",
"public final void info(Component reporter, String message)\n\t{\n\t\tadd(new FeedbackMessage(reporter, message, FeedbackMessage.INFO));\n\t}",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}",
"@SuppressWarnings(\"unused\")\n public static void info(String message) {\n FacesContext.getCurrentInstance()\n .addMessage(null,\n new FacesMessage(FacesMessage.SEVERITY_INFO,\n FacesUtils.getlocalizedString(ResourceBundles.GENERAL, \"info\"),\n message));\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"void info (String msg) throws RootException;",
"@Override\n\tpublic void info(CharSequence message) {\n\n\t}",
"@Override\r\n public void sendInfo() {\n System.out.println(\"发送带图片和文字的信息\");\r\n }",
"public final static void info(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.info(message);\n\t}",
"public static void writeMessage(String message) {\n writeMessage(Level.INFO, message);\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}",
"public final void mT62() throws RecognitionException {\n try {\n int _type = T62;\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:60:5: ( 'info' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:60:7: 'info'\n {\n match(\"info\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"@Override\n\tpublic void info(Marker marker, 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}",
"@Override\r\n public final void displayInfo(final String message) {\r\n displayMessage(message, \"Info\", SWT.ICON_INFORMATION);\r\n }",
"@Override\n\tpublic void info(Marker marker, CharSequence message) {\n\n\t}",
"public void info()\n {\n System.out.println(toString());\n }",
"protected void Info(String message) {\n logger.logMessage(message);\n }",
"@Override\n\tpublic void info(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"public InfoCommand() {\n super(\"info\", \"info <Spieler>\", \"Gib dir Informationen über den Chunk oder Spieler\", SubCommand.NONE_PERMISSION);\n }",
"public void info(String string) {\n\t\t\n\t}",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5) {\n\n\t}",
"default String info(String... args) {\n String message = create(args);\n getLogger().info(message);\n return message;\n }",
"@Override\n\tpublic void printInfo() {\n\t\tsuper.printInfo();\n\t\tmessage();\n\t\tdoInternet();\n\t\tmailing();\n\t\tcalling();\n\t\twatchingTV();\n\n\t}",
"@Override\n public void receiveInfo(String info) {\n sendInstruction(MessageId.RECEIVE_INFO,\n Serdes.STRING_SERDE.serialize(info));\n }",
"public void showInformationMessage(String msg) {\r\n JOptionPane.showMessageDialog(this,\r\n\t\t\t\t msg, TmplResourceSingleton.getString(\"info.dialog.header\"),\r\n\t\t\t\t JOptionPane.INFORMATION_MESSAGE);\r\n }",
"public void info(final String message, final Object... args) {\n log.info(supplier(message, args));\n }",
"@Override\n\tpublic void info(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"private void showInfo() {\n JOptionPane.showMessageDialog(\n this,\n \"Пока что никакой\\nинформации тут нет.\\nДа и вряд ли будет.\",\n \"^^(,oO,)^^\",\n JOptionPane.INFORMATION_MESSAGE);\n }",
"@Override\n\tpublic void info(MessageSupplier msgSupplier) {\n\n\t}",
"public void setInfo(String info) {\n this.info = info;\n }",
"@Override\n\tpublic\n\tvoid info(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.info(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.info(message);\n\t\t}\n\t}",
"void doInfo() throws AmbiguousException, PlayerDebugException\n\t{\n\t\t/* info without any args brings up help */\n\t\tif (!hasMoreTokens())\n\t\t\tout( getHelpTopic(\"info\") ); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t/* otherwise we have a boatload of options */\n\t\t\tString subCmdString = nextToken();\n\t\t\tint subCmd = infoCommandFor(subCmdString);\n\t\t\tswitch(subCmd)\n\t\t\t{\n\t\t\t\tcase INFO_ARGS_CMD:\n\t\t\t\t\tdoInfoArgs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_BREAK_CMD:\n\t\t\t\t\tdoInfoBreak();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_FILES_CMD:\n\t\t\t\t\tdoInfoFiles();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_FUNCTIONS_CMD:\n\t\t\t\t\tdoInfoFuncs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_HANDLE_CMD:\n\t\t\t\t\tdoInfoHandle();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_LOCALS_CMD:\n\t\t\t\t\tdoInfoLocals();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_SCOPECHAIN_CMD:\n\t\t\t\t\tdoInfoScopeChain();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase INFO_SOURCES_CMD:\n\t\t\t\t\tdoInfoSources();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_STACK_CMD:\n\t\t\t\t\tdoInfoStack();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_VARIABLES_CMD:\n\t\t\t\t\tdoInfoVariables();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_DISPLAY_CMD:\n\t\t\t\t\tdoInfoDisplay();\n\t\t\t\t\tbreak;\n\n case INFO_TARGETS_CMD:\n doInfoTargets();\n break;\n\n case INFO_SWFS_CMD:\n doInfoSwfs();\n break;\n\n\t\t\t\tdefault:\n\t\t\t\t\tdoUnknown(\"info\", subCmdString); //$NON-NLS-1$\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public InfoMessage createInfoMessage();",
"public static void addInfoToReport(String message) {\n String messageWithStepNumber = addMessageToReport(message);\n ExtentTestManager.getTest().log(Status.INFO, messageWithStepNumber);\n }",
"public InfoCommand() {\n\n\t\tsuper(\"info\", Command.ArgumentType.NONE, Command.Category.UTILITY);\n\t}",
"public void showInfo(String infotext) {\r\n // backup current status of text and icon for rollback:\r\n lastInfo = info.getText();\r\n lastIcon = info.getIcon();\r\n\r\n // show info icon and new info text:\r\n info.setIcon(new ImageIcon(StatusInformationPanel.class\r\n .getResource(\"img/info.gif\")));\r\n info.setText(infotext);\r\n }",
"private void traceInfo(String info) {\n if (trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }",
"private void updateInfo() {\n /* Show the current server address in use */\n String text = String.format(getResources().getString(R.string.main_activity_server_address),\n Utils.getAddress(), Utils.getPort());\n serverTextView.setText(text);\n\n /* Show information about current player */\n Player player = SharedDataManager.getPlayer(this);\n /* No player is logged in */\n if (player == null) {\n playerTextView.setText(getString(R.string.your_nickname));\n return;\n }\n /* Player is logged in, show some information about him */\n text = String.format(getResources().getString(R.string.main_activity_player_title),\n player.getNickname(), player.getScore());\n playerTextView.setText(text);\n }",
"private static void addInfo(String info){\n\tif (started) {\n\t try{\n\t\tif (verbose) {\n\t\t System.out.println(info);\n\t\t System.out.println(newLine);\n\t\t}\n\t\tfStream.writeBytes(info);\n\t\tfStream.writeBytes(newLine);\n\t }catch(IOException e){\n\t }\n\t}\n }",
"private void sendInfo(PrintWriter out) {\r\n try {\r\n String info = \"&\"+this.chatClient.getUsername();\r\n out.println(info);\r\n this.chatClient.showMsg(\"Conectado con el servidor \"+HOST+\":\"+PORT);\r\n this.chatClient.addServer(sock);\r\n } catch (Exception ex) {\r\n this.chatClient.showMsg(\"Error al enviar información\");\r\n System.out.println(\"Problem sending info \\n\");\r\n System.out.println(ex);\r\n }\r\n }",
"void info (String channel, String msg, RootException ex) throws RootException;",
"public void info( String methodName, String message )\n {\n getLogger().info( methodName + \"():\" + message );\n }"
]
| [
"0.76903015",
"0.76903015",
"0.7526268",
"0.73520607",
"0.73219085",
"0.729474",
"0.7275329",
"0.72366095",
"0.7212195",
"0.71826595",
"0.7150339",
"0.7137888",
"0.6978965",
"0.6973922",
"0.69554657",
"0.6941368",
"0.6920036",
"0.6914571",
"0.6910801",
"0.6899326",
"0.68927383",
"0.6887136",
"0.68832684",
"0.68757564",
"0.6875527",
"0.6867314",
"0.6849698",
"0.6837975",
"0.6825421",
"0.68212503",
"0.68164295",
"0.6807208",
"0.6785703",
"0.6785449",
"0.67807764",
"0.6757797",
"0.67566323",
"0.67446107",
"0.67148036",
"0.6714497",
"0.67114794",
"0.6709422",
"0.6687188",
"0.66775936",
"0.66692054",
"0.6634072",
"0.66143286",
"0.66059035",
"0.65926695",
"0.65820044",
"0.6580818",
"0.65734",
"0.65676254",
"0.65621036",
"0.6560619",
"0.6559949",
"0.65565217",
"0.6555348",
"0.65409607",
"0.65257615",
"0.6518532",
"0.65070254",
"0.64992505",
"0.6496188",
"0.64842963",
"0.6479889",
"0.6472395",
"0.64590317",
"0.6457491",
"0.64378023",
"0.6436029",
"0.64198387",
"0.64192295",
"0.641028",
"0.6405599",
"0.6405527",
"0.63969696",
"0.63579434",
"0.62937397",
"0.6293389",
"0.62928826",
"0.627931",
"0.62582105",
"0.6257079",
"0.62483",
"0.62121457",
"0.62060773",
"0.61988175",
"0.6165299",
"0.61638755",
"0.6140628",
"0.6139995",
"0.6129127",
"0.6124881",
"0.6117239",
"0.61168045",
"0.6110485",
"0.61053413",
"0.60979825",
"0.60964257",
"0.60943604"
]
| 0.0 | -1 |
Send a INFO message and log the exception. | public static void i(String tag, String msg, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, INFO)) {
logger.i(tag, msg, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(String message, Throwable throwable);",
"protected void info(String msg, Throwable ex) {\n log.log(Level.INFO, msg, ex);\n }",
"@Override\n\tpublic void info(Object message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(String message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(Message msg, Throwable t) {\n\n\t}",
"public void info(Object message, Throwable t)\n/* */ {\n/* 159 */ if (message != null) {\n/* 160 */ getLogger().info(String.valueOf(message), t);\n/* */ }\n/* */ }",
"public void info(String msg, Throwable t) {\n log(Level.INFO, msg, t);\n }",
"public static void logInfo(String message)\n {\n log(IStatus.INFO, message);\n }",
"@Override\n\tpublic\n\tvoid info(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.info(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.info(message);\n\t\t}\n\t}",
"@Override\n\tpublic void info(Marker marker, Object message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public void info(String msg) {\n LOGGER_BASE.info(msg);\n }",
"protected void info(String msg) {\n log.log(Level.INFO, msg);\n }",
"@Override\n\tpublic void info(Marker marker, String message, Throwable t) {\n\n\t}",
"public static void info(String message) {\n\n\t\tlog(message);\n\t}",
"void info (String msg, RootException ex) throws RootException;",
"public void info(String msg) {\n log(INFO, msg);\n }",
"protected void Info(String message) {\n logger.logMessage(message);\n }",
"public void info(String msg) {\n log(Level.INFO, msg, null);\n }",
"void info (String msg) throws RootException;",
"public void info(String message) {\r\n\t\treport(INFO, message, null);\r\n\t}",
"public static void info(String message) {\n LOGGER.info(message);\n }",
"public static void info(String msg) {\n logger.info(msg);\n }",
"@Override\n\tpublic void info(CharSequence message, Throwable t) {\n\n\t}",
"public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}",
"public void info(String message);",
"public void info(String message);",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"public static void info(String message) {\n\t\tlogger.info(message);\n\t}",
"@Override\n\tpublic void info(Marker marker, CharSequence message, Throwable t) {\n\n\t}",
"public static void info(String msg) {\n\t\tlogger.log(Level.INFO, msg);\n\t}",
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"public void info(String message) {\n if (mLoggable) {\n try {\n Log.i(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"void info(String message);",
"@Override\n\tpublic void info(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}",
"public static void info(String message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.INFO, message);\n\t\t}\n\t}",
"public final static void info(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.info(message);\n\t}",
"@SuppressWarnings(\"unused\")\n protected void info(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isInfoEnabled()) {\n this.getContainer().getLogger().info(msg);\n }\n }",
"public static void log(String message, Throwable e) {\n getDefault().getLog().log(new Status(IStatus.INFO, ID, 0, message, e));\n }",
"protected abstract void info(String msg);",
"public static void info(String msg){\n\t\tconsole(msg);\n\t\tlogger.info(msg);\n\t}",
"@Override\n\tpublic void info(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object... params) {\n\n\t}",
"void info (String channel, String msg, RootException ex) throws RootException;",
"@Override\n public void info(final Object message) {\n this.logger.info(this.prepareDefaultMessage(message));\n }",
"public void info(String msg) {\n\t\tif (this.logLevel <= BackupLogger.INFO) {\n\t\t\twrite(\"INFO \" + msg);\n\t\t\tSystem.out.println(\"INFO \" + msg);\n\t\t}\n\t}",
"@Override\n public void info(String message) {\n if (Level.INFO.getPriority() <= level.getPriority()) {\n print(\"INFO: \" + message);\n }\n }",
"@Override\n\tpublic void info(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void info(String message, BufferedImage image) {\r\n\t\treport(INFO, message, image);\r\n\t}",
"public void log(String message) {\n log(message, MSG_INFO);\n }",
"@Override\n\tpublic void info(Object message) {\n\n\t}",
"public static void writeMessage(String message) {\n writeMessage(Level.INFO, message);\n }",
"public static void logInfo(String info, int level) {\n\t\tif (!m_bDebug && level < 1) return;\n\t\tm_Logger.info(\"[OrbitalStrike] \" + info);\n\t}",
"public void logInfo(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.INFO,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"public static void info(String message, Object... arguments) {\n if (!debugLogger.isInfoEnabled()) {\n return;\n }\n if (arguments.length == 1 && !OnapLoggingUtils.isThrowable(arguments[0])) {\n MDC.put(classNameProp, message);\n debugLogger.info(MessageCodes.GENERAL_INFO,\n arguments[0] == null ? \"\" : arguments[0].toString());\n return;\n }\n if (arguments.length == 1 && OnapLoggingUtils.isThrowable(arguments[0])) {\n String arguments2 = getNormalizedStackTrace((Throwable) arguments[0], \"\");\n debugLogger.info(MessageCodes.GENERAL_INFO, message + arguments2);\n return;\n }\n\n MDC.put(classNameProp, \"\");\n debugLogger.info(message, arguments);\n }",
"@Override\n\tpublic void info(Message msg) {\n\n\t}",
"public static void info(MessageCodes msg, Throwable arg0, String... arguments) {\n MDC.put(classNameProp, \"\");\n String arguments2 = getNormalizedStackTrace(arg0, arguments);\n debugLogger.info(msg, arguments2);\n }",
"public static void info(Object message) {\n\t\tSystem.out.print(message);\n\t}",
"@Override\n\tpublic void info(Marker marker, String message) {\n\n\t}",
"public static void info(Object arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.info(MessageCodes.GENERAL_INFO, String.valueOf(arg0));\n }",
"private void infoLog(String msg) {\n Log.i(\"ActivityTransitions\", TAG + \" --> \" + msg);\n }",
"public static void addInfoToReport(String message) {\n String messageWithStepNumber = addMessageToReport(message);\n ExtentTestManager.getTest().log(Status.INFO, messageWithStepNumber);\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object... params) {\n\n\t}",
"public static void info(MessageCodes msg, String className, Throwable arg0, String... arguments) {\n MDC.put(classNameProp, className);\n String arguments2 = getNormalizedStackTrace(arg0, arguments);\n debugLogger.info(msg, arguments2);\n }",
"@Override\n\tpublic void info(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void logInfo(boolean logInfo)\r\n {\r\n if (logInfo != infoLevelHandler.getBoolean())\r\n {\r\n infoLevelHandler.setBoolean(logInfo);\r\n fireConfigUpdated();\r\n }\r\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, Message msg) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, Object message) {\n\n\t}",
"public static void logInfo(Class clz,String message){\n if(logging){\n String tag = clz.getName();\n android.util.Log.i(tag, message);\n }\n }",
"public void info(final String message, final Object... args) {\n log.info(supplier(message, args));\n }",
"public void logMsg(String msg) {\r\n if (this.logger != null) {\r\n logger.info(msg);\r\n }\r\n }",
"public void info(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 119 */ this.logger.info(loggerFqcn, message, t);\n/* */ }",
"public void sendInfo(String message) {\n sendMessage(Prefix.SERVER, message);\n }",
"public static void severe(String msg) {\n\t\tlog.severe(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"private static void logInfo(final Logger logger, final String message) {\n System.out.println(message);\n logger.info(message);\n }",
"public void report_fatal_error(String message, Object info) {\n report_error(message, info);\n System.out.println(\"ENTRO\");\n //System.exit(1);\n }",
"public void infoMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_INFO, msg));\n }",
"public static void logInfo(Context context,String message){\n if(logging){\n String tag = context.getClass().getName();\n android.util.Log.i(tag, message);\n }\n }",
"private void sendMailLogInfo() {\n\t\tif (mChangedInfoList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// 1.导出信息\n\t\tString content = dumpLogInfoWithHtml();\n\t\t\n\t\t// 2. 更新收件人与标题\n\t\tmMailSender.updateMailToAndCc(mMailReceivers, mMailCcReceivers);\n\t\t\n\t\tLogger.println(\"==SvnLog send emal with subject \" + mMailSubject);\n\t\t\n\t\t// 3.发送信息send\n\t\tmMailSender.sendHtmlMail(mMailSubject, content);\n\t\t\n\t\t// 4.清理此轮信息\n\t\tclearInfo();\n\t}",
"public void info( String methodName, String message )\n {\n getLogger().info( methodName + \"():\" + message );\n }",
"protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1) {\n\n\t}",
"public static void logInfo(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isInfoEnabled())\n return;\n\n if (exchange == null) {\n logger.info(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.info(msg, args);\n }\n }\n }",
"void info (String channel, String msg) throws RootException;",
"public static void i(String message, Object... args) {\n log(INFO, null, null, message, args);\n }",
"@Override\n\tpublic void info(String message, Object p0) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"public void log(String message) {\n\t\tlogger.info(message);\n\t}",
"private void traceInfo(String info) {\n if (trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }",
"void info(String tag, String msg);",
"void info(String messageKey, Object... args);",
"void info(String message, @Nullable Element element);",
"@Override\n\tpublic void info(Marker marker, 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}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}"
]
| [
"0.71287006",
"0.7117126",
"0.6896127",
"0.6878121",
"0.6826055",
"0.679508",
"0.6690984",
"0.66724193",
"0.654589",
"0.6537774",
"0.65236783",
"0.6508837",
"0.64558077",
"0.6442024",
"0.6438771",
"0.6432572",
"0.64210474",
"0.6418947",
"0.6402427",
"0.63780147",
"0.63739496",
"0.63585275",
"0.6353309",
"0.63412726",
"0.6338964",
"0.6295219",
"0.6295219",
"0.6294727",
"0.62599194",
"0.62580556",
"0.6203104",
"0.61872995",
"0.6182463",
"0.6146872",
"0.6139291",
"0.6136637",
"0.6120894",
"0.61169416",
"0.60850346",
"0.6083964",
"0.6056012",
"0.60154355",
"0.5980877",
"0.5972823",
"0.59635365",
"0.5962382",
"0.59595567",
"0.5937182",
"0.59202576",
"0.5906924",
"0.58517486",
"0.5844973",
"0.5798716",
"0.578858",
"0.5767576",
"0.5761415",
"0.5750112",
"0.57358027",
"0.5728539",
"0.56717086",
"0.5651899",
"0.5638304",
"0.5617166",
"0.56048197",
"0.560359",
"0.56033057",
"0.55703646",
"0.55526394",
"0.5544397",
"0.55433184",
"0.5535238",
"0.55251235",
"0.5494417",
"0.5489068",
"0.54883444",
"0.54855293",
"0.548332",
"0.54833084",
"0.54789215",
"0.5468903",
"0.5451788",
"0.5440233",
"0.5433702",
"0.542421",
"0.5417581",
"0.54161644",
"0.54149735",
"0.5411937",
"0.54098535",
"0.54078305",
"0.53960425",
"0.539477",
"0.53804743",
"0.53767556",
"0.5356573",
"0.5351643",
"0.5319124",
"0.5317313",
"0.5314555",
"0.5304461"
]
| 0.5295137 | 100 |
Send an INFO message. | public static void i(String tag, String formatString, Object... args) {
if (logger != null && isLoggingEnabled(tag, INFO)) {
try {
logger.i(tag, String.format(Locale.ENGLISH, formatString, args));
} catch (Exception e) {
logger.i(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(String message);",
"public void info(String message);",
"void info(String message);",
"@Override\n\tpublic void info(Object message) {\n\n\t}",
"public static void logInfo(String message)\n {\n log(IStatus.INFO, message);\n }",
"public void info(String message) {\r\n\t\treport(INFO, message, null);\r\n\t}",
"public void info(String msg) {\n log(INFO, msg);\n }",
"public void info(String msg) {\n log(Level.INFO, msg, null);\n }",
"@Override\n\tpublic void info(Message msg) {\n\n\t}",
"public static void info(Object message) {\n\t\tSystem.out.print(message);\n\t}",
"@Override\n\tpublic void info(String message, Object... params) {\n\n\t}",
"public void sendInfo(String message) {\n sendMessage(Prefix.SERVER, message);\n }",
"protected void info(String msg) {\n log.log(Level.INFO, msg);\n }",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"protected abstract void info(String msg);",
"public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void info(Marker marker, Message msg) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1) {\n\n\t}",
"public static void info(String message) {\n\n\t\tlog(message);\n\t}",
"void info(String tag, String msg);",
"public static void info(String msg) {\n\t\tlogger.log(Level.INFO, msg);\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void info(String msg) {\n LOGGER_BASE.info(msg);\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n public void info(String message) {\n if (Level.INFO.getPriority() <= level.getPriority()) {\n print(\"INFO: \" + message);\n }\n }",
"public void info(String msg) {\n\t\tif (this.logLevel <= BackupLogger.INFO) {\n\t\t\twrite(\"INFO \" + msg);\n\t\t\tSystem.out.println(\"INFO \" + msg);\n\t\t}\n\t}",
"@Override\n\tpublic void info(Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"public void infoMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_INFO, msg));\n }",
"public static void info(String msg){\n\t\tconsole(msg);\n\t\tlogger.info(msg);\n\t}",
"public static void info(String message) {\n\t\tlogger.info(message);\n\t}",
"@Override\n\tpublic void info(Marker marker, String message, Object... params) {\n\n\t}",
"public void writeInfo(String message){\n final String output = getTimeString() + \" INFO: \" + message+ ENTER;\n switch (PreferencesHelper.getConsolePopupLevel()) {\n case ALL:\n case ONLY_INFO:\n popConsoleView();\n break;\n default:\n break;\n }\n UIBundlingThread.getInstance().addRunnable(new Runnable(){\n public void run() {\n if(infoStream == null){\n infoStream = console.newOutputStream();\n infoStream.setColor(CustomMediaFactory.getInstance().getColor(\n CustomMediaFactory.COLOR_BLACK));\n }\n writeToConsole(infoStream, output);\n }\n });\n\n }",
"public void info(String message, BufferedImage image) {\r\n\t\treport(INFO, message, image);\r\n\t}",
"public static void info(String message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.INFO, message);\n\t\t}\n\t}",
"@Override\n\tpublic void info(Marker marker, String message) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0) {\n\n\t}",
"private void showInfo(String message)\r\n {\r\n infoLabel.setText(message);\r\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"void info(String messageKey, Object... args);",
"public static void info(String msg) {\n logger.info(msg);\n }",
"public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}",
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"public static void info(String message) {\n LOGGER.info(message);\n }",
"public static void info(Object arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.info(MessageCodes.GENERAL_INFO, String.valueOf(arg0));\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, 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}",
"@Override\n public void info(final Object message) {\n this.logger.info(this.prepareDefaultMessage(message));\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, String message, Object p0) {\n\n\t}",
"@SuppressWarnings(\"unused\")\n protected void info(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isInfoEnabled()) {\n this.getContainer().getLogger().info(msg);\n }\n }",
"void info (String channel, String msg) throws RootException;",
"private void showInfo(String message){ infoLabel.setText(message);}",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void logInfo(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.INFO,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}",
"public void info(String message) {\n if (mLoggable) {\n try {\n Log.i(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5) {\n\n\t}",
"public final void info(Component reporter, String message)\n\t{\n\t\tadd(new FeedbackMessage(reporter, message, FeedbackMessage.INFO));\n\t}",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}",
"@SuppressWarnings(\"unused\")\n public static void info(String message) {\n FacesContext.getCurrentInstance()\n .addMessage(null,\n new FacesMessage(FacesMessage.SEVERITY_INFO,\n FacesUtils.getlocalizedString(ResourceBundles.GENERAL, \"info\"),\n message));\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"void info (String msg) throws RootException;",
"@Override\n\tpublic void info(CharSequence message) {\n\n\t}",
"@Override\r\n public void sendInfo() {\n System.out.println(\"发送带图片和文字的信息\");\r\n }",
"public final static void info(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.info(message);\n\t}",
"public static void writeMessage(String message) {\n writeMessage(Level.INFO, message);\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}",
"public final void mT62() throws RecognitionException {\n try {\n int _type = T62;\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:60:5: ( 'info' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:60:7: 'info'\n {\n match(\"info\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"@Override\n\tpublic void info(Marker marker, 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}",
"@Override\r\n public final void displayInfo(final String message) {\r\n displayMessage(message, \"Info\", SWT.ICON_INFORMATION);\r\n }",
"@Override\n\tpublic void info(Marker marker, CharSequence message) {\n\n\t}",
"public void info()\n {\n System.out.println(toString());\n }",
"protected void Info(String message) {\n logger.logMessage(message);\n }",
"@Override\n\tpublic void info(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"public InfoCommand() {\n super(\"info\", \"info <Spieler>\", \"Gib dir Informationen über den Chunk oder Spieler\", SubCommand.NONE_PERMISSION);\n }",
"public void info(String string) {\n\t\t\n\t}",
"@Override\n\tpublic void info(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5) {\n\n\t}",
"default String info(String... args) {\n String message = create(args);\n getLogger().info(message);\n return message;\n }",
"@Override\n\tpublic void printInfo() {\n\t\tsuper.printInfo();\n\t\tmessage();\n\t\tdoInternet();\n\t\tmailing();\n\t\tcalling();\n\t\twatchingTV();\n\n\t}",
"@Override\n public void receiveInfo(String info) {\n sendInstruction(MessageId.RECEIVE_INFO,\n Serdes.STRING_SERDE.serialize(info));\n }",
"public void showInformationMessage(String msg) {\r\n JOptionPane.showMessageDialog(this,\r\n\t\t\t\t msg, TmplResourceSingleton.getString(\"info.dialog.header\"),\r\n\t\t\t\t JOptionPane.INFORMATION_MESSAGE);\r\n }",
"public void info(final String message, final Object... args) {\n log.info(supplier(message, args));\n }",
"@Override\n\tpublic void info(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"private void showInfo() {\n JOptionPane.showMessageDialog(\n this,\n \"Пока что никакой\\nинформации тут нет.\\nДа и вряд ли будет.\",\n \"^^(,oO,)^^\",\n JOptionPane.INFORMATION_MESSAGE);\n }",
"@Override\n\tpublic void info(MessageSupplier msgSupplier) {\n\n\t}",
"public void setInfo(String info) {\n this.info = info;\n }",
"@Override\n\tpublic\n\tvoid info(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.info(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.info(message);\n\t\t}\n\t}",
"void doInfo() throws AmbiguousException, PlayerDebugException\n\t{\n\t\t/* info without any args brings up help */\n\t\tif (!hasMoreTokens())\n\t\t\tout( getHelpTopic(\"info\") ); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t/* otherwise we have a boatload of options */\n\t\t\tString subCmdString = nextToken();\n\t\t\tint subCmd = infoCommandFor(subCmdString);\n\t\t\tswitch(subCmd)\n\t\t\t{\n\t\t\t\tcase INFO_ARGS_CMD:\n\t\t\t\t\tdoInfoArgs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_BREAK_CMD:\n\t\t\t\t\tdoInfoBreak();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_FILES_CMD:\n\t\t\t\t\tdoInfoFiles();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_FUNCTIONS_CMD:\n\t\t\t\t\tdoInfoFuncs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_HANDLE_CMD:\n\t\t\t\t\tdoInfoHandle();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_LOCALS_CMD:\n\t\t\t\t\tdoInfoLocals();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_SCOPECHAIN_CMD:\n\t\t\t\t\tdoInfoScopeChain();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase INFO_SOURCES_CMD:\n\t\t\t\t\tdoInfoSources();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_STACK_CMD:\n\t\t\t\t\tdoInfoStack();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_VARIABLES_CMD:\n\t\t\t\t\tdoInfoVariables();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_DISPLAY_CMD:\n\t\t\t\t\tdoInfoDisplay();\n\t\t\t\t\tbreak;\n\n case INFO_TARGETS_CMD:\n doInfoTargets();\n break;\n\n case INFO_SWFS_CMD:\n doInfoSwfs();\n break;\n\n\t\t\t\tdefault:\n\t\t\t\t\tdoUnknown(\"info\", subCmdString); //$NON-NLS-1$\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public InfoMessage createInfoMessage();",
"public static void addInfoToReport(String message) {\n String messageWithStepNumber = addMessageToReport(message);\n ExtentTestManager.getTest().log(Status.INFO, messageWithStepNumber);\n }",
"public InfoCommand() {\n\n\t\tsuper(\"info\", Command.ArgumentType.NONE, Command.Category.UTILITY);\n\t}",
"public void showInfo(String infotext) {\r\n // backup current status of text and icon for rollback:\r\n lastInfo = info.getText();\r\n lastIcon = info.getIcon();\r\n\r\n // show info icon and new info text:\r\n info.setIcon(new ImageIcon(StatusInformationPanel.class\r\n .getResource(\"img/info.gif\")));\r\n info.setText(infotext);\r\n }",
"private void traceInfo(String info) {\n if (trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }",
"private void updateInfo() {\n /* Show the current server address in use */\n String text = String.format(getResources().getString(R.string.main_activity_server_address),\n Utils.getAddress(), Utils.getPort());\n serverTextView.setText(text);\n\n /* Show information about current player */\n Player player = SharedDataManager.getPlayer(this);\n /* No player is logged in */\n if (player == null) {\n playerTextView.setText(getString(R.string.your_nickname));\n return;\n }\n /* Player is logged in, show some information about him */\n text = String.format(getResources().getString(R.string.main_activity_player_title),\n player.getNickname(), player.getScore());\n playerTextView.setText(text);\n }",
"private static void addInfo(String info){\n\tif (started) {\n\t try{\n\t\tif (verbose) {\n\t\t System.out.println(info);\n\t\t System.out.println(newLine);\n\t\t}\n\t\tfStream.writeBytes(info);\n\t\tfStream.writeBytes(newLine);\n\t }catch(IOException e){\n\t }\n\t}\n }",
"private void sendInfo(PrintWriter out) {\r\n try {\r\n String info = \"&\"+this.chatClient.getUsername();\r\n out.println(info);\r\n this.chatClient.showMsg(\"Conectado con el servidor \"+HOST+\":\"+PORT);\r\n this.chatClient.addServer(sock);\r\n } catch (Exception ex) {\r\n this.chatClient.showMsg(\"Error al enviar información\");\r\n System.out.println(\"Problem sending info \\n\");\r\n System.out.println(ex);\r\n }\r\n }",
"void info (String channel, String msg, RootException ex) throws RootException;",
"public void info( String methodName, String message )\n {\n getLogger().info( methodName + \"():\" + message );\n }"
]
| [
"0.76903015",
"0.76903015",
"0.7526268",
"0.73520607",
"0.73219085",
"0.729474",
"0.7275329",
"0.72366095",
"0.7212195",
"0.71826595",
"0.7150339",
"0.7137888",
"0.6978965",
"0.6973922",
"0.69554657",
"0.6941368",
"0.6920036",
"0.6914571",
"0.6910801",
"0.6899326",
"0.68927383",
"0.6887136",
"0.68832684",
"0.68757564",
"0.6875527",
"0.6867314",
"0.6849698",
"0.6837975",
"0.6825421",
"0.68212503",
"0.68164295",
"0.6807208",
"0.6785703",
"0.6785449",
"0.67807764",
"0.6757797",
"0.67566323",
"0.67446107",
"0.67148036",
"0.6714497",
"0.67114794",
"0.6709422",
"0.6687188",
"0.66775936",
"0.66692054",
"0.6634072",
"0.66143286",
"0.66059035",
"0.65926695",
"0.65820044",
"0.6580818",
"0.65734",
"0.65676254",
"0.65621036",
"0.6560619",
"0.6559949",
"0.65565217",
"0.6555348",
"0.65409607",
"0.65257615",
"0.6518532",
"0.65070254",
"0.64992505",
"0.6496188",
"0.64842963",
"0.6479889",
"0.6472395",
"0.64590317",
"0.6457491",
"0.64378023",
"0.6436029",
"0.64198387",
"0.64192295",
"0.641028",
"0.6405599",
"0.6405527",
"0.63969696",
"0.63579434",
"0.62937397",
"0.6293389",
"0.62928826",
"0.627931",
"0.62582105",
"0.6257079",
"0.62483",
"0.62121457",
"0.62060773",
"0.61988175",
"0.6165299",
"0.61638755",
"0.6140628",
"0.6139995",
"0.6129127",
"0.6124881",
"0.6117239",
"0.61168045",
"0.6110485",
"0.61053413",
"0.60979825",
"0.60964257",
"0.60943604"
]
| 0.0 | -1 |
Send a INFO message and log the exception. | public static void i(String tag, String formatString, Throwable tr, Object... args) {
if (logger != null && isLoggingEnabled(tag, INFO)) {
try {
logger.i(tag, String.format(Locale.ENGLISH, formatString, args, tr));
} catch (Exception e) {
logger.i(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void info(String message, Throwable throwable);",
"protected void info(String msg, Throwable ex) {\n log.log(Level.INFO, msg, ex);\n }",
"@Override\n\tpublic void info(Object message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(String message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(Message msg, Throwable t) {\n\n\t}",
"public void info(Object message, Throwable t)\n/* */ {\n/* 159 */ if (message != null) {\n/* 160 */ getLogger().info(String.valueOf(message), t);\n/* */ }\n/* */ }",
"public void info(String msg, Throwable t) {\n log(Level.INFO, msg, t);\n }",
"public static void logInfo(String message)\n {\n log(IStatus.INFO, message);\n }",
"@Override\n\tpublic\n\tvoid info(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.info(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.info(message);\n\t\t}\n\t}",
"@Override\n\tpublic void info(Marker marker, Object message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public void info(String msg) {\n LOGGER_BASE.info(msg);\n }",
"protected void info(String msg) {\n log.log(Level.INFO, msg);\n }",
"@Override\n\tpublic void info(Marker marker, String message, Throwable t) {\n\n\t}",
"public static void info(String message) {\n\n\t\tlog(message);\n\t}",
"void info (String msg, RootException ex) throws RootException;",
"public void info(String msg) {\n log(INFO, msg);\n }",
"protected void Info(String message) {\n logger.logMessage(message);\n }",
"public void info(String msg) {\n log(Level.INFO, msg, null);\n }",
"void info (String msg) throws RootException;",
"public void info(String message) {\r\n\t\treport(INFO, message, null);\r\n\t}",
"public static void info(String message) {\n LOGGER.info(message);\n }",
"public static void info(String msg) {\n logger.info(msg);\n }",
"@Override\n\tpublic void info(CharSequence message, Throwable t) {\n\n\t}",
"public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}",
"public void info(String message);",
"public void info(String message);",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"public static void info(String message) {\n\t\tlogger.info(message);\n\t}",
"@Override\n\tpublic void info(Marker marker, CharSequence message, Throwable t) {\n\n\t}",
"public static void info(String msg) {\n\t\tlogger.log(Level.INFO, msg);\n\t}",
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"public void info(String message) {\n if (mLoggable) {\n try {\n Log.i(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"void info(String message);",
"@Override\n\tpublic void info(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}",
"public static void info(String message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.INFO, message);\n\t\t}\n\t}",
"public final static void info(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.info(message);\n\t}",
"@SuppressWarnings(\"unused\")\n protected void info(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isInfoEnabled()) {\n this.getContainer().getLogger().info(msg);\n }\n }",
"public static void log(String message, Throwable e) {\n getDefault().getLog().log(new Status(IStatus.INFO, ID, 0, message, e));\n }",
"protected abstract void info(String msg);",
"public static void info(String msg){\n\t\tconsole(msg);\n\t\tlogger.info(msg);\n\t}",
"@Override\n\tpublic void info(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object... params) {\n\n\t}",
"void info (String channel, String msg, RootException ex) throws RootException;",
"@Override\n public void info(final Object message) {\n this.logger.info(this.prepareDefaultMessage(message));\n }",
"public void info(String msg) {\n\t\tif (this.logLevel <= BackupLogger.INFO) {\n\t\t\twrite(\"INFO \" + msg);\n\t\t\tSystem.out.println(\"INFO \" + msg);\n\t\t}\n\t}",
"@Override\n public void info(String message) {\n if (Level.INFO.getPriority() <= level.getPriority()) {\n print(\"INFO: \" + message);\n }\n }",
"@Override\n\tpublic void info(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void info(String message, BufferedImage image) {\r\n\t\treport(INFO, message, image);\r\n\t}",
"public void log(String message) {\n log(message, MSG_INFO);\n }",
"@Override\n\tpublic void info(Object message) {\n\n\t}",
"public static void writeMessage(String message) {\n writeMessage(Level.INFO, message);\n }",
"public static void logInfo(String info, int level) {\n\t\tif (!m_bDebug && level < 1) return;\n\t\tm_Logger.info(\"[OrbitalStrike] \" + info);\n\t}",
"public void logInfo(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.INFO,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"public static void info(String message, Object... arguments) {\n if (!debugLogger.isInfoEnabled()) {\n return;\n }\n if (arguments.length == 1 && !OnapLoggingUtils.isThrowable(arguments[0])) {\n MDC.put(classNameProp, message);\n debugLogger.info(MessageCodes.GENERAL_INFO,\n arguments[0] == null ? \"\" : arguments[0].toString());\n return;\n }\n if (arguments.length == 1 && OnapLoggingUtils.isThrowable(arguments[0])) {\n String arguments2 = getNormalizedStackTrace((Throwable) arguments[0], \"\");\n debugLogger.info(MessageCodes.GENERAL_INFO, message + arguments2);\n return;\n }\n\n MDC.put(classNameProp, \"\");\n debugLogger.info(message, arguments);\n }",
"@Override\n\tpublic void info(Message msg) {\n\n\t}",
"public static void info(MessageCodes msg, Throwable arg0, String... arguments) {\n MDC.put(classNameProp, \"\");\n String arguments2 = getNormalizedStackTrace(arg0, arguments);\n debugLogger.info(msg, arguments2);\n }",
"public static void info(Object message) {\n\t\tSystem.out.print(message);\n\t}",
"@Override\n\tpublic void info(Marker marker, String message) {\n\n\t}",
"public static void info(Object arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.info(MessageCodes.GENERAL_INFO, String.valueOf(arg0));\n }",
"private void infoLog(String msg) {\n Log.i(\"ActivityTransitions\", TAG + \" --> \" + msg);\n }",
"public static void addInfoToReport(String message) {\n String messageWithStepNumber = addMessageToReport(message);\n ExtentTestManager.getTest().log(Status.INFO, messageWithStepNumber);\n }",
"@Override\n\tpublic void info(Marker marker, String message, Object... params) {\n\n\t}",
"public static void info(MessageCodes msg, String className, Throwable arg0, String... arguments) {\n MDC.put(classNameProp, className);\n String arguments2 = getNormalizedStackTrace(arg0, arguments);\n debugLogger.info(msg, arguments2);\n }",
"@Override\n\tpublic void info(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void logInfo(boolean logInfo)\r\n {\r\n if (logInfo != infoLevelHandler.getBoolean())\r\n {\r\n infoLevelHandler.setBoolean(logInfo);\r\n fireConfigUpdated();\r\n }\r\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, Message msg) {\n\n\t}",
"@Override\n\tpublic void info(Marker marker, Object message) {\n\n\t}",
"public static void logInfo(Class clz,String message){\n if(logging){\n String tag = clz.getName();\n android.util.Log.i(tag, message);\n }\n }",
"public void info(final String message, final Object... args) {\n log.info(supplier(message, args));\n }",
"public void logMsg(String msg) {\r\n if (this.logger != null) {\r\n logger.info(msg);\r\n }\r\n }",
"public void info(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 119 */ this.logger.info(loggerFqcn, message, t);\n/* */ }",
"public void sendInfo(String message) {\n sendMessage(Prefix.SERVER, message);\n }",
"public static void severe(String msg) {\n\t\tlog.severe(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"private static void logInfo(final Logger logger, final String message) {\n System.out.println(message);\n logger.info(message);\n }",
"public void report_fatal_error(String message, Object info) {\n report_error(message, info);\n System.out.println(\"ENTRO\");\n //System.exit(1);\n }",
"public void infoMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_INFO, msg));\n }",
"public static void logInfo(Context context,String message){\n if(logging){\n String tag = context.getClass().getName();\n android.util.Log.i(tag, message);\n }\n }",
"private void sendMailLogInfo() {\n\t\tif (mChangedInfoList.size() == 0) {\n\t\t\treturn;\n\t\t}\n\t\t// 1.导出信息\n\t\tString content = dumpLogInfoWithHtml();\n\t\t\n\t\t// 2. 更新收件人与标题\n\t\tmMailSender.updateMailToAndCc(mMailReceivers, mMailCcReceivers);\n\t\t\n\t\tLogger.println(\"==SvnLog send emal with subject \" + mMailSubject);\n\t\t\n\t\t// 3.发送信息send\n\t\tmMailSender.sendHtmlMail(mMailSubject, content);\n\t\t\n\t\t// 4.清理此轮信息\n\t\tclearInfo();\n\t}",
"public void info( String methodName, String message )\n {\n getLogger().info( methodName + \"():\" + message );\n }",
"protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1) {\n\n\t}",
"public static void logInfo(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isInfoEnabled())\n return;\n\n if (exchange == null) {\n logger.info(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.info(msg, args);\n }\n }\n }",
"void info (String channel, String msg) throws RootException;",
"public static void i(String message, Object... args) {\n log(INFO, null, null, message, args);\n }",
"@Override\n\tpublic void info(String message, Object p0) {\n\n\t}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"public void log(String message) {\n\t\tlogger.info(message);\n\t}",
"private void traceInfo(String info) {\n if (trace) {\n worker.trace(\"-- \" + info + \"\\n\", \"out\", device_id);\n }\n }",
"void info(String tag, String msg);",
"void info(String messageKey, Object... args);",
"void info(String message, @Nullable Element element);",
"@Override\n\tpublic void info(Marker marker, 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}",
"@Override\n\tpublic void info(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}",
"public static void i(String tag, String msg, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, INFO)) {\n logger.i(tag, msg, tr);\n }\n }"
]
| [
"0.71287006",
"0.7117126",
"0.6896127",
"0.6878121",
"0.6826055",
"0.679508",
"0.6690984",
"0.66724193",
"0.654589",
"0.6537774",
"0.65236783",
"0.6508837",
"0.64558077",
"0.6442024",
"0.6438771",
"0.6432572",
"0.64210474",
"0.6418947",
"0.6402427",
"0.63780147",
"0.63739496",
"0.63585275",
"0.6353309",
"0.63412726",
"0.6338964",
"0.6295219",
"0.6295219",
"0.6294727",
"0.62599194",
"0.62580556",
"0.6203104",
"0.61872995",
"0.6182463",
"0.6146872",
"0.6139291",
"0.6136637",
"0.6120894",
"0.61169416",
"0.60850346",
"0.6083964",
"0.6056012",
"0.60154355",
"0.5980877",
"0.5972823",
"0.59635365",
"0.5962382",
"0.59595567",
"0.5937182",
"0.59202576",
"0.5906924",
"0.58517486",
"0.5844973",
"0.5798716",
"0.578858",
"0.5767576",
"0.5761415",
"0.5750112",
"0.57358027",
"0.5728539",
"0.56717086",
"0.5651899",
"0.5638304",
"0.5617166",
"0.56048197",
"0.560359",
"0.56033057",
"0.55703646",
"0.55526394",
"0.5544397",
"0.55433184",
"0.5535238",
"0.55251235",
"0.5494417",
"0.5489068",
"0.54883444",
"0.54855293",
"0.548332",
"0.54833084",
"0.54789215",
"0.5468903",
"0.5451788",
"0.5440233",
"0.5433702",
"0.542421",
"0.5417581",
"0.54161644",
"0.54149735",
"0.5411937",
"0.54098535",
"0.54078305",
"0.53960425",
"0.539477",
"0.53804743",
"0.53767556",
"0.5356573",
"0.5351643",
"0.5319124",
"0.5317313",
"0.5314555",
"0.5304461",
"0.5295137"
]
| 0.0 | -1 |
Send a WARN message. | public static void w(String tag, String msg) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
logger.w(tag, msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void warn(String message);",
"public void warn(String message);",
"void warn (String channel,String msg) throws RootException;",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n\t\t\tSystem.out.println(\"WARN \" + msg);\n\t\t}\n\t}",
"public final void setWarn() {\r\n setLevel(org.apache.log4j.Level.WARN);\r\n }",
"@Override\n\tpublic void warn(Message msg) {\n\n\t}",
"void warn (String msg) throws RootException;",
"public void warning(String msg) {\n log(WARNING, msg);\n }",
"@Override\n\tpublic void warn(Object message) {\n\n\t}",
"void warn (String channel, String msg, RootException ex) throws RootException;",
"protected void warn(String msg) {\n log.log(Level.WARNING, msg);\n }",
"public void warning(String msg) {\n log(Level.WARNING, msg, null);\n }",
"public void logWarn(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.WARN,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}",
"public void warn(String msg) {\n LOGGER_BASE.warn(msg);\n }",
"public void warn(String message) {\n\tSystem.err.println(\"Warning: \" + message);\n }",
"abstract void logWarn(String warning);",
"public final void mWARNING() throws RecognitionException {\r\n try {\r\n int _type = WARNING;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:24:9: ( '% WARNING:' )\r\n // Satmc.g:24:11: '% WARNING:'\r\n {\r\n match(\"% WARNING:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"private void logWarning(String msgText) {\n System.out.println (\"[WARNING] \" + msgText);\n \n }",
"void notifyWarn(MessageSnapshot snapshot);",
"public void warn(String message, Throwable throwable);",
"public static void warn(Object message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.WARN, message);\n\t\t}\n\t}",
"public void sendWarning(String message) {\n sendMessage(Prefix.WARNING, message);\n }",
"void warn(String messageKey, Object... args);",
"@Override\n\tpublic void warn(String message, Object... params) {\n\n\t}",
"@Override\n\tpublic void warn(Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, Message msg) {\n\n\t}",
"public static void warningln(Object message) {\n\t\tSystem.out.println(\"WARNING: \" + message);\n\t}",
"public synchronized void warning(String message) {\n if (shouldWarn()) {\n putMessage(message);\n }\n }",
"public static void warn(final String msg) {\n logger.warn(msg);\n }",
"abstract void warn(String warning);",
"@CommandHandler(commandName = \"warn\",\n description = \"Give an official warning to a user. The user will receive a direct message informing them of the reason.\",\n perms = AbstractPermission.ADMINISTRATOR)\n public static void warn(MessageReceivedEvent e, DSLContext dsl, ReasonRequest req) {\n Warn warn = new Warn(e, dsl, req);\n warn.getMentionedMember().ifPresentOrElse(warn::warnMember, warn::userError);\n }",
"@Override\n public void warn(String message) {\n if (Level.WARN.getPriority() <= level.getPriority()) {\n print(\"WARNING: \" + message);\n }\n }",
"public static void logWarning(String message)\n {\n log(IStatus.WARNING, message);\n }",
"@JRubyMethod(name = \"warn\")\n public IRubyObject warn(final ThreadContext context,\n final IRubyObject msg, final Block block) {\n return context.runtime.newBoolean( add(WARN, context, msg, block) );\n }",
"@Override\n\tpublic void warn(Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void warn(Object message, Throwable t) {\n\n\t}",
"public void warn(Object message)\n/* */ {\n/* 172 */ if (message != null) {\n/* 173 */ getLogger().warn(String.valueOf(message));\n/* */ }\n/* */ }",
"public void warn(CommandSender sender, String message) {\n\t\tsender.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"] \" + ChatColor.RED + message);\n\t}",
"public void warn(Player player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"] \" + ChatColor.RED + message);\n\t}",
"void warn(String tag, String msg);",
"public static void warn( String message ) {\n\tSystem.err.println( \"Logic: \" + message );\n\terrorCount = errorCount + 1;\n }",
"void warn (String msg, RootException ex) throws RootException;",
"abstract void consoleWarn(String warning);",
"public static void warn(String message) {\n LOGGER.warn(message);\n }",
"@Override\n\tpublic void warn(Marker marker, String message) {\n\n\t}",
"public static void w(String message, Object... args) {\n log(WARN, null, null, message, args);\n }",
"abstract void warn(String warning, Exception[] exceptions);",
"@Override\n\tpublic void warn(Marker marker, String message, Object... params) {\n\n\t}",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier) {\n\n\t}",
"public void warn(String message) {\n if (mLoggable) {\n try {\n Log.w(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"public void warningPermit();",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void warn(Object message, Throwable t)\n/* */ {\n/* 186 */ if (message != null) {\n/* 187 */ getLogger().warn(String.valueOf(message), t);\n/* */ }\n/* */ }",
"public static void w(Throwable t) {\n log(WARN, null, t, \"\");\n }",
"public static void w(String str) {\n if (Log.isLoggable(TAG, Log.WARN)) {\n Log.w(TAG, str);\n }\n }",
"public static void warning(String msg) {\n\t\tlog.warning(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void warn(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n\tpublic void warn(String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void warn(CharSequence message) {\n\n\t}",
"public void appendWarning(String err) {\n warnMessages.append(err);\n }",
"public static void logWarnMessages(ADFLogger logObject, String logMsg) {\r\n if (logObject.isWarning()) {\r\n logObject.warning(logMsg);\r\n }\r\n }",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"public void writeWarning(String message){\n final String output = getTimeString() + \" WARNING: \" + message+ ENTER;\n switch (PreferencesHelper.getConsolePopupLevel()) {\n case ALL:\n popConsoleView();\n break;\n default:\n break;\n }\n UIBundlingThread.getInstance().addRunnable(new Runnable() {\n\n public void run() {\n if(warningStream == null){\n warningStream = console.newOutputStream();\n warningStream.setColor(CustomMediaFactory.getInstance().getColor(\n CustomMediaFactory.COLOR_ORANGE));\n }\n writeToConsole(warningStream, output);\n }\n });\n\n }",
"@Override\n\tpublic void warn(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public synchronized void warning(int warningNumber, String message) {\n if (shouldWarn()) {\n putMessage(warningNumber, message);\n }\n }",
"public static void warning(Object message) {\n\t\tSystem.out.print(\"WARNING: \" + message);\n\t}",
"@Override\n\tpublic void warn(Marker marker, Object message, Throwable t) {\n\n\t}",
"protected final void warning(String warning) {\r\n //System.err.format(\"[\" + name + \"] @%4.9f: WARNING: %s\", Harness.getTime().getFracSeconds(), warning);\r\n //System.err.println();\r\n Harness.log(name, \"WARNING: \" + warning);\r\n warningCount++;\r\n }",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0) {\n\n\t}",
"@Override\n\tpublic void warn(CharSequence message, Throwable t) {\n\n\t}",
"public void warning(String message) {\r\n\t\treport(WARNING, message, null);\r\n\t}",
"protected void warn(String msg, Throwable ex) {\n log.log(Level.WARNING, msg, ex);\n }",
"public final void warn(Component reporter, String message)\n\t{\n\t\tadd(new FeedbackMessage(reporter, message, FeedbackMessage.WARNING));\n\t}",
"@SuppressWarnings(\"unused\")\n protected void warn(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isWarnEnabled()) {\n this.getContainer().getLogger().warn(msg);\n }\n }",
"@Override\n\tpublic void warn(Marker marker, CharSequence message) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void warn(String message, Object p0) {\n\n\t}",
"public void publishTiancheWarn(String errorMsg) {\n }",
"public final static void warning(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.warning(message);\n\t}",
"@Override\n\tpublic void warn(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.warn(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.warn(message);\n\t\t}\n\t}",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Throwable t) {\n\n\t}",
"@SuppressWarnings(\"unused\")\n public static void warn(String message) {\n FacesContext.getCurrentInstance()\n .addMessage(null,\n new FacesMessage(FacesMessage.SEVERITY_WARN,\n FacesUtils.getlocalizedString(ResourceBundles.GENERAL, \"warning\") + \"!\",\n message));\n }",
"void writeWarn(String outDir, String simpleFileName, String warnMessages);",
"abstract void errorLogWarn(String warning);",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"protected void addWarnDiagnostic(String message) {\n addDiagnostic(Diagnostic.warn(message));\n }",
"@Override\n\tpublic void warn(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"public void warning(String msg, Throwable t) {\n log(Level.WARNING, msg, t);\n }",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"void warn(String message, @Nullable Element element);",
"public void addWarning(String warning);",
"public static void warn(String arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.warn(MessageCodes.GENERAL_WARNING, arg0);\n }",
"@Override\n\tpublic void warn(Supplier<?> msgSupplier) {\n\n\t}",
"public final void printWarnings() {\n for (ShadowException exception : warningList) LOGGER.warn(exception.getMessage());\n }",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public static void w(Throwable t, String message, Object... args) {\n log(WARN, null, t, message, args);\n }",
"@Override\n\tpublic void warn(Marker marker, CharSequence message, Throwable t) {\n\n\t}"
]
| [
"0.73214984",
"0.73214984",
"0.7127798",
"0.70651585",
"0.7056616",
"0.70106655",
"0.70045227",
"0.68257964",
"0.6797749",
"0.6779799",
"0.6764164",
"0.6742467",
"0.6720362",
"0.6717806",
"0.6706645",
"0.6675946",
"0.66607463",
"0.66605544",
"0.6588809",
"0.6586998",
"0.6570831",
"0.6540123",
"0.65366316",
"0.6527754",
"0.65024775",
"0.6469203",
"0.6465204",
"0.6441486",
"0.64371675",
"0.6436291",
"0.6431077",
"0.6429681",
"0.63969433",
"0.6395331",
"0.638772",
"0.6386127",
"0.6369124",
"0.6341269",
"0.632735",
"0.63122994",
"0.62907875",
"0.6289441",
"0.62862515",
"0.62741613",
"0.626661",
"0.6253311",
"0.6247002",
"0.62248266",
"0.62207973",
"0.6189524",
"0.6181369",
"0.6155989",
"0.61346537",
"0.6126829",
"0.6124343",
"0.6109348",
"0.6092542",
"0.6090922",
"0.60883605",
"0.60822237",
"0.6073741",
"0.6065722",
"0.6062375",
"0.6062189",
"0.60423785",
"0.60308516",
"0.6027888",
"0.60235804",
"0.60148406",
"0.6003575",
"0.5999172",
"0.5987211",
"0.5986744",
"0.59864193",
"0.5975274",
"0.5975045",
"0.5968305",
"0.594125",
"0.59369123",
"0.5915121",
"0.58967507",
"0.58966696",
"0.5896139",
"0.58937114",
"0.5891663",
"0.58841956",
"0.58591217",
"0.58365345",
"0.5833887",
"0.5823385",
"0.58214384",
"0.58210444",
"0.5819892",
"0.58175856",
"0.5813993",
"0.5808107",
"0.5795467",
"0.57860506",
"0.5783768",
"0.5781139"
]
| 0.6199063 | 49 |
Send a WARN message and log the exception. | public static void w(String tag, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
logger.w(tag, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void warn (String msg) throws RootException;",
"public void warn(String message, Throwable throwable);",
"public void logWarn(String logMsg, Exception e) {\n logger.warn(logMsg, e);\n }",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n\t\t\tSystem.out.println(\"WARN \" + msg);\n\t\t}\n\t}",
"protected void warn(String msg, Throwable ex) {\n log.log(Level.WARNING, msg, ex);\n }",
"void warn (String channel, String msg, RootException ex) throws RootException;",
"public final void setWarn() {\r\n setLevel(org.apache.log4j.Level.WARN);\r\n }",
"public static void warn(Object message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.WARN, message);\n\t\t}\n\t}",
"public static void w(Throwable t) {\n log(WARN, null, t, \"\");\n }",
"void warn (String channel,String msg) throws RootException;",
"public void warn(String message);",
"public void warn(String message);",
"public void warn(String msg) {\n LOGGER_BASE.warn(msg);\n }",
"void warn (String msg, RootException ex) throws RootException;",
"public void logWarn(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.WARN,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}",
"@Override\n\tpublic void warn(Message msg, Throwable t) {\n\n\t}",
"protected void warn(String msg) {\n log.log(Level.WARNING, msg);\n }",
"@Override\n\tpublic void warn(Object message, Throwable t) {\n\n\t}",
"public void warning(String msg) {\n log(WARNING, msg);\n }",
"public static void warn(final String msg) {\n logger.warn(msg);\n }",
"public static void warn(String message) {\n LOGGER.warn(message);\n }",
"abstract void logWarn(String warning);",
"public void warning(String msg) {\n log(Level.WARNING, msg, null);\n }",
"@Override\n\tpublic void warn(Message msg) {\n\n\t}",
"public void warn(String message) {\n if (mLoggable) {\n try {\n Log.w(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"public void warn(Object message, Throwable t)\n/* */ {\n/* 186 */ if (message != null) {\n/* 187 */ getLogger().warn(String.valueOf(message), t);\n/* */ }\n/* */ }",
"public static void logWarning(String message)\n {\n log(IStatus.WARNING, message);\n }",
"public static void w(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, WARN)) {\n logger.w(tag, msg);\n }\n }",
"@Override\n\tpublic void warn(Object message) {\n\n\t}",
"public void warn(Object message)\n/* */ {\n/* 172 */ if (message != null) {\n/* 173 */ getLogger().warn(String.valueOf(message));\n/* */ }\n/* */ }",
"private void logWarning(String msgText) {\n System.out.println (\"[WARNING] \" + msgText);\n \n }",
"public static void w(String tag, String msg, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, WARN)) {\n logger.w(tag, msg, tr);\n }\n }",
"abstract void warn(String warning, Exception[] exceptions);",
"@Override\n\tpublic void warn(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.warn(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.warn(message);\n\t\t}\n\t}",
"public static void w(Throwable t, String message, Object... args) {\n log(WARN, null, t, message, args);\n }",
"public static void logWarnMessages(ADFLogger logObject, String logMsg) {\r\n if (logObject.isWarning()) {\r\n logObject.warning(logMsg);\r\n }\r\n }",
"public void warn(String message) {\n\tSystem.err.println(\"Warning: \" + message);\n }",
"@Override\n\tpublic void warn(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public static void w(String message, Object... args) {\n log(WARN, null, null, message, args);\n }",
"@Override\n\tpublic void warn(String message, Object... params) {\n\n\t}",
"public void warning(String msg, Throwable t) {\n log(Level.WARNING, msg, t);\n }",
"@Override\n\tpublic void warn(Marker marker, Object message, Throwable t) {\n\n\t}",
"@Override\n public void warn(String message) {\n if (Level.WARN.getPriority() <= level.getPriority()) {\n print(\"WARNING: \" + message);\n }\n }",
"public final static void warning(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.warning(message);\n\t}",
"public static void warn(String message, Throwable t) {\n LOGGER.warn(message, t);\n }",
"static void logWarning(Throwable t) {\n }",
"void warn(String messageKey, Object... args);",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public static void w(String str) {\n if (Log.isLoggable(TAG, Log.WARN)) {\n Log.w(TAG, str);\n }\n }",
"public static void warning(String msg) {\n\t\tlog.warning(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void warn(CharSequence message, Throwable t) {\n\n\t}",
"public static void warn( String message ) {\n\tSystem.err.println( \"Logic: \" + message );\n\terrorCount = errorCount + 1;\n }",
"@CommandHandler(commandName = \"warn\",\n description = \"Give an official warning to a user. The user will receive a direct message informing them of the reason.\",\n perms = AbstractPermission.ADMINISTRATOR)\n public static void warn(MessageReceivedEvent e, DSLContext dsl, ReasonRequest req) {\n Warn warn = new Warn(e, dsl, req);\n warn.getMentionedMember().ifPresentOrElse(warn::warnMember, warn::userError);\n }",
"public static void warningln(Object message) {\n\t\tSystem.out.println(\"WARNING: \" + message);\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Throwable t) {\n\n\t}",
"public static void warn(Exception e, String msg) {\r\n e.printStackTrace();\r\n System.out.println(msg);\r\n }",
"public final void mWARNING() throws RecognitionException {\r\n try {\r\n int _type = WARNING;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:24:9: ( '% WARNING:' )\r\n // Satmc.g:24:11: '% WARNING:'\r\n {\r\n match(\"% WARNING:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"public static void log(Throwable e) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(e.toString());\r\n\t\tfor (StackTraceElement el : e.getStackTrace()) {\r\n\t\t\tsb.append(\"\\n\" + el);\r\n\t\t}\r\n\t\tsb.append(\"\\n-----------------------------------------------------------------\\n\");\r\n\t\tlog(sb.toString(), LoggerLevel.WARNING);\r\n\t}",
"@Override\n\tpublic void warn(Marker marker, Message msg) {\n\n\t}",
"public synchronized void warning(String message) {\n if (shouldWarn()) {\n putMessage(message);\n }\n }",
"@Override\n\tpublic void warn(Marker marker, Object message) {\n\n\t}",
"abstract void errorLogWarn(String warning);",
"@Override\n\tpublic void warn(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public void sendWarning(String message) {\n sendMessage(Prefix.WARNING, message);\n }",
"@SuppressWarnings(\"unused\")\n protected void warn(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isWarnEnabled()) {\n this.getContainer().getLogger().warn(msg);\n }\n }",
"abstract void warn(String warning);",
"public static void logWarn(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isWarnEnabled())\n return;\n\n if (exchange == null) {\n logger.warn(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.warn(msg, args);\n }\n }\n }",
"private void MinorException(Exception ex) {\n logger.logException(ex);\n }",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier) {\n\n\t}",
"void warn(String tag, String msg);",
"@JRubyMethod(name = \"warn\")\n public IRubyObject warn(final ThreadContext context,\n final IRubyObject msg, final Block block) {\n return context.runtime.newBoolean( add(WARN, context, msg, block) );\n }",
"@Override\n\tpublic void warn(Marker marker, String message) {\n\n\t}",
"public final void printWarnings() {\n for (ShadowException exception : warningList) LOGGER.warn(exception.getMessage());\n }",
"@Override\n\tpublic void warn(Marker marker, String message, Object... params) {\n\n\t}",
"void notifyWarn(MessageSnapshot snapshot);",
"@Override\n\tpublic void warn(Marker marker, CharSequence message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@LogLevel(\"=WARN\") \n public void testDeprecatedBaseClassMethods() throws Exception {\n final ListAppender rootSanityCheck = new ListAppender(\"sanity-checker\");\n try {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().addAppender(rootSanityCheck, Level.WARN, null);\n LoggerContext.getContext(false).updateLoggers();\n \n log.error(\"this matches the default ignore_exception pattern\");\n log.error(\"something matching foo that should make it\"); // 1\n assertEquals(1, rootSanityCheck.getEvents().size());\n ignoreException(\"foo\");\n log.error(\"something matching foo that should NOT make it\");\n ignoreException(\"foo\");\n ignoreException(\"ba+r\");\n log.error(\"something matching foo that should still NOT make it\");\n log.error(\"something matching baaaar that should NOT make it\");\n log.warn(\"A warning should be fine even if it matches ignore_exception and foo and bar\"); // 2\n assertEquals(2, rootSanityCheck.getEvents().size());\n unIgnoreException(\"foo\");\n log.error(\"another thing matching foo that should make it\"); // 3\n assertEquals(3, rootSanityCheck.getEvents().size());\n log.error(\"something matching baaaar that should still NOT make it\");\n resetExceptionIgnores();\n log.error(\"this still matches the default ignore_exception pattern\");\n log.error(\"but something matching baaaar should make it now\"); // 4\n assertEquals(4, rootSanityCheck.getEvents().size());\n\n } finally {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().removeAppender(rootSanityCheck.getName());\n LoggerContext.getContext(false).updateLoggers();\n }\n assertEquals(4, rootSanityCheck.getEvents().size());\n }",
"@Override\n\tpublic void warn(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void warning(String message) {\r\n\t\treport(WARNING, message, null);\r\n\t}",
"@Override\n\tpublic void warn(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"void warn(String message, @Nullable Element element);",
"protected final void warning(String warning) {\r\n //System.err.format(\"[\" + name + \"] @%4.9f: WARNING: %s\", Harness.getTime().getFracSeconds(), warning);\r\n //System.err.println();\r\n Harness.log(name, \"WARNING: \" + warning);\r\n warningCount++;\r\n }",
"public void addWarning(ShadowException exception) {\n if (Loggers.warningsAreErrors()) addError(exception);\n else if (exception != null) warningList.add(exception);\n }",
"protected void addWarnDiagnostic(String message) {\n addDiagnostic(Diagnostic.warn(message));\n }",
"public void warningPermit();",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void warn( String methodName, String message )\n {\n getLogger().warn( methodName + \"():\" + message );\n }",
"public void warn(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 177 */ this.logger.warn(loggerFqcn, message, t);\n/* */ }",
"@Override\n\tpublic void warn(String message, Object p0, Object p1) {\n\n\t}",
"public static void warn(String arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.warn(MessageCodes.GENERAL_WARNING, arg0);\n }",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@ExceptionHandler(LoginException.class)\n public void logLoginException(LoginException e) throws LoginException {\n securityLogger.logWarn(e.getMessage(), e);\n throw e;\n }",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"public void warn(final String message, final Object... args) {\n log.warning(supplier(message, args));\n }",
"@Override\n\tpublic void warn(Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void warn(CharSequence message) {\n\n\t}",
"public static void warning(Object message) {\n\t\tSystem.out.print(\"WARNING: \" + message);\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0) {\n\n\t}"
]
| [
"0.6745808",
"0.6734788",
"0.6697526",
"0.6631236",
"0.6587497",
"0.65784603",
"0.65762883",
"0.65670645",
"0.65572184",
"0.65218395",
"0.6515477",
"0.6515477",
"0.6507434",
"0.6505077",
"0.6448459",
"0.64482784",
"0.64183366",
"0.635114",
"0.6342238",
"0.6306439",
"0.6293448",
"0.62769276",
"0.6272794",
"0.6199247",
"0.6181095",
"0.6152351",
"0.61290115",
"0.6099371",
"0.60925186",
"0.6041508",
"0.60393053",
"0.600389",
"0.59931624",
"0.59868264",
"0.59810233",
"0.59808433",
"0.59727603",
"0.5881814",
"0.58799994",
"0.58728737",
"0.58612424",
"0.5856083",
"0.5854072",
"0.58370054",
"0.58355486",
"0.5808715",
"0.58086234",
"0.58025676",
"0.57926446",
"0.57855564",
"0.577176",
"0.57692647",
"0.5747937",
"0.5735739",
"0.57197165",
"0.571713",
"0.57128674",
"0.56892854",
"0.56713486",
"0.56648976",
"0.5663957",
"0.5651078",
"0.5650042",
"0.5642794",
"0.5614036",
"0.5604226",
"0.5602978",
"0.55922973",
"0.5586686",
"0.558164",
"0.5571706",
"0.5540615",
"0.55377287",
"0.55210066",
"0.55164725",
"0.5515512",
"0.5460164",
"0.5440331",
"0.54311603",
"0.5407518",
"0.5400905",
"0.5398766",
"0.53731966",
"0.536727",
"0.53436315",
"0.53350645",
"0.5323295",
"0.531293",
"0.5292248",
"0.52816886",
"0.52749187",
"0.5268492",
"0.5260502",
"0.5258781",
"0.52472645",
"0.5229245",
"0.5221317",
"0.5213323",
"0.5213155",
"0.5196814"
]
| 0.57563955 | 52 |
Send a WARN message and log the exception. | public static void w(String tag, String msg, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
logger.w(tag, msg, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void warn (String msg) throws RootException;",
"public void warn(String message, Throwable throwable);",
"public void logWarn(String logMsg, Exception e) {\n logger.warn(logMsg, e);\n }",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n\t\t\tSystem.out.println(\"WARN \" + msg);\n\t\t}\n\t}",
"protected void warn(String msg, Throwable ex) {\n log.log(Level.WARNING, msg, ex);\n }",
"void warn (String channel, String msg, RootException ex) throws RootException;",
"public final void setWarn() {\r\n setLevel(org.apache.log4j.Level.WARN);\r\n }",
"public static void warn(Object message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.WARN, message);\n\t\t}\n\t}",
"public static void w(Throwable t) {\n log(WARN, null, t, \"\");\n }",
"void warn (String channel,String msg) throws RootException;",
"public void warn(String message);",
"public void warn(String message);",
"public void warn(String msg) {\n LOGGER_BASE.warn(msg);\n }",
"void warn (String msg, RootException ex) throws RootException;",
"public void logWarn(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.WARN,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}",
"@Override\n\tpublic void warn(Message msg, Throwable t) {\n\n\t}",
"protected void warn(String msg) {\n log.log(Level.WARNING, msg);\n }",
"@Override\n\tpublic void warn(Object message, Throwable t) {\n\n\t}",
"public void warning(String msg) {\n log(WARNING, msg);\n }",
"public static void warn(final String msg) {\n logger.warn(msg);\n }",
"public static void warn(String message) {\n LOGGER.warn(message);\n }",
"abstract void logWarn(String warning);",
"public void warning(String msg) {\n log(Level.WARNING, msg, null);\n }",
"@Override\n\tpublic void warn(Message msg) {\n\n\t}",
"public void warn(String message) {\n if (mLoggable) {\n try {\n Log.w(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"public void warn(Object message, Throwable t)\n/* */ {\n/* 186 */ if (message != null) {\n/* 187 */ getLogger().warn(String.valueOf(message), t);\n/* */ }\n/* */ }",
"public static void logWarning(String message)\n {\n log(IStatus.WARNING, message);\n }",
"public static void w(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, WARN)) {\n logger.w(tag, msg);\n }\n }",
"@Override\n\tpublic void warn(Object message) {\n\n\t}",
"public void warn(Object message)\n/* */ {\n/* 172 */ if (message != null) {\n/* 173 */ getLogger().warn(String.valueOf(message));\n/* */ }\n/* */ }",
"private void logWarning(String msgText) {\n System.out.println (\"[WARNING] \" + msgText);\n \n }",
"abstract void warn(String warning, Exception[] exceptions);",
"@Override\n\tpublic void warn(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.warn(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.warn(message);\n\t\t}\n\t}",
"public static void w(Throwable t, String message, Object... args) {\n log(WARN, null, t, message, args);\n }",
"public static void logWarnMessages(ADFLogger logObject, String logMsg) {\r\n if (logObject.isWarning()) {\r\n logObject.warning(logMsg);\r\n }\r\n }",
"public void warn(String message) {\n\tSystem.err.println(\"Warning: \" + message);\n }",
"@Override\n\tpublic void warn(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public static void w(String message, Object... args) {\n log(WARN, null, null, message, args);\n }",
"@Override\n\tpublic void warn(String message, Object... params) {\n\n\t}",
"public void warning(String msg, Throwable t) {\n log(Level.WARNING, msg, t);\n }",
"@Override\n\tpublic void warn(Marker marker, Object message, Throwable t) {\n\n\t}",
"@Override\n public void warn(String message) {\n if (Level.WARN.getPriority() <= level.getPriority()) {\n print(\"WARNING: \" + message);\n }\n }",
"public final static void warning(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.warning(message);\n\t}",
"public static void warn(String message, Throwable t) {\n LOGGER.warn(message, t);\n }",
"static void logWarning(Throwable t) {\n }",
"void warn(String messageKey, Object... args);",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public static void w(String str) {\n if (Log.isLoggable(TAG, Log.WARN)) {\n Log.w(TAG, str);\n }\n }",
"public static void warning(String msg) {\n\t\tlog.warning(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void warn(CharSequence message, Throwable t) {\n\n\t}",
"public static void warn( String message ) {\n\tSystem.err.println( \"Logic: \" + message );\n\terrorCount = errorCount + 1;\n }",
"public static void w(String tag, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, WARN)) {\n logger.w(tag, tr);\n }\n }",
"@CommandHandler(commandName = \"warn\",\n description = \"Give an official warning to a user. The user will receive a direct message informing them of the reason.\",\n perms = AbstractPermission.ADMINISTRATOR)\n public static void warn(MessageReceivedEvent e, DSLContext dsl, ReasonRequest req) {\n Warn warn = new Warn(e, dsl, req);\n warn.getMentionedMember().ifPresentOrElse(warn::warnMember, warn::userError);\n }",
"public static void warningln(Object message) {\n\t\tSystem.out.println(\"WARNING: \" + message);\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Throwable t) {\n\n\t}",
"public static void warn(Exception e, String msg) {\r\n e.printStackTrace();\r\n System.out.println(msg);\r\n }",
"public final void mWARNING() throws RecognitionException {\r\n try {\r\n int _type = WARNING;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:24:9: ( '% WARNING:' )\r\n // Satmc.g:24:11: '% WARNING:'\r\n {\r\n match(\"% WARNING:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"public static void log(Throwable e) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(e.toString());\r\n\t\tfor (StackTraceElement el : e.getStackTrace()) {\r\n\t\t\tsb.append(\"\\n\" + el);\r\n\t\t}\r\n\t\tsb.append(\"\\n-----------------------------------------------------------------\\n\");\r\n\t\tlog(sb.toString(), LoggerLevel.WARNING);\r\n\t}",
"@Override\n\tpublic void warn(Marker marker, Message msg) {\n\n\t}",
"public synchronized void warning(String message) {\n if (shouldWarn()) {\n putMessage(message);\n }\n }",
"@Override\n\tpublic void warn(Marker marker, Object message) {\n\n\t}",
"abstract void errorLogWarn(String warning);",
"@Override\n\tpublic void warn(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public void sendWarning(String message) {\n sendMessage(Prefix.WARNING, message);\n }",
"@SuppressWarnings(\"unused\")\n protected void warn(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isWarnEnabled()) {\n this.getContainer().getLogger().warn(msg);\n }\n }",
"abstract void warn(String warning);",
"public static void logWarn(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isWarnEnabled())\n return;\n\n if (exchange == null) {\n logger.warn(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.warn(msg, args);\n }\n }\n }",
"private void MinorException(Exception ex) {\n logger.logException(ex);\n }",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier) {\n\n\t}",
"void warn(String tag, String msg);",
"@JRubyMethod(name = \"warn\")\n public IRubyObject warn(final ThreadContext context,\n final IRubyObject msg, final Block block) {\n return context.runtime.newBoolean( add(WARN, context, msg, block) );\n }",
"@Override\n\tpublic void warn(Marker marker, String message) {\n\n\t}",
"public final void printWarnings() {\n for (ShadowException exception : warningList) LOGGER.warn(exception.getMessage());\n }",
"@Override\n\tpublic void warn(Marker marker, String message, Object... params) {\n\n\t}",
"void notifyWarn(MessageSnapshot snapshot);",
"@Override\n\tpublic void warn(Marker marker, CharSequence message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@LogLevel(\"=WARN\") \n public void testDeprecatedBaseClassMethods() throws Exception {\n final ListAppender rootSanityCheck = new ListAppender(\"sanity-checker\");\n try {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().addAppender(rootSanityCheck, Level.WARN, null);\n LoggerContext.getContext(false).updateLoggers();\n \n log.error(\"this matches the default ignore_exception pattern\");\n log.error(\"something matching foo that should make it\"); // 1\n assertEquals(1, rootSanityCheck.getEvents().size());\n ignoreException(\"foo\");\n log.error(\"something matching foo that should NOT make it\");\n ignoreException(\"foo\");\n ignoreException(\"ba+r\");\n log.error(\"something matching foo that should still NOT make it\");\n log.error(\"something matching baaaar that should NOT make it\");\n log.warn(\"A warning should be fine even if it matches ignore_exception and foo and bar\"); // 2\n assertEquals(2, rootSanityCheck.getEvents().size());\n unIgnoreException(\"foo\");\n log.error(\"another thing matching foo that should make it\"); // 3\n assertEquals(3, rootSanityCheck.getEvents().size());\n log.error(\"something matching baaaar that should still NOT make it\");\n resetExceptionIgnores();\n log.error(\"this still matches the default ignore_exception pattern\");\n log.error(\"but something matching baaaar should make it now\"); // 4\n assertEquals(4, rootSanityCheck.getEvents().size());\n\n } finally {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().removeAppender(rootSanityCheck.getName());\n LoggerContext.getContext(false).updateLoggers();\n }\n assertEquals(4, rootSanityCheck.getEvents().size());\n }",
"@Override\n\tpublic void warn(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void warning(String message) {\r\n\t\treport(WARNING, message, null);\r\n\t}",
"@Override\n\tpublic void warn(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"void warn(String message, @Nullable Element element);",
"protected final void warning(String warning) {\r\n //System.err.format(\"[\" + name + \"] @%4.9f: WARNING: %s\", Harness.getTime().getFracSeconds(), warning);\r\n //System.err.println();\r\n Harness.log(name, \"WARNING: \" + warning);\r\n warningCount++;\r\n }",
"public void addWarning(ShadowException exception) {\n if (Loggers.warningsAreErrors()) addError(exception);\n else if (exception != null) warningList.add(exception);\n }",
"protected void addWarnDiagnostic(String message) {\n addDiagnostic(Diagnostic.warn(message));\n }",
"public void warningPermit();",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void warn( String methodName, String message )\n {\n getLogger().warn( methodName + \"():\" + message );\n }",
"public void warn(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 177 */ this.logger.warn(loggerFqcn, message, t);\n/* */ }",
"@Override\n\tpublic void warn(String message, Object p0, Object p1) {\n\n\t}",
"public static void warn(String arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.warn(MessageCodes.GENERAL_WARNING, arg0);\n }",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@ExceptionHandler(LoginException.class)\n public void logLoginException(LoginException e) throws LoginException {\n securityLogger.logWarn(e.getMessage(), e);\n throw e;\n }",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"public void warn(final String message, final Object... args) {\n log.warning(supplier(message, args));\n }",
"@Override\n\tpublic void warn(Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void warn(CharSequence message) {\n\n\t}",
"public static void warning(Object message) {\n\t\tSystem.out.print(\"WARNING: \" + message);\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0) {\n\n\t}"
]
| [
"0.6745808",
"0.6734788",
"0.6697526",
"0.6631236",
"0.6587497",
"0.65784603",
"0.65762883",
"0.65670645",
"0.65572184",
"0.65218395",
"0.6515477",
"0.6515477",
"0.6507434",
"0.6505077",
"0.6448459",
"0.64482784",
"0.64183366",
"0.635114",
"0.6342238",
"0.6306439",
"0.6293448",
"0.62769276",
"0.6272794",
"0.6199247",
"0.6181095",
"0.6152351",
"0.61290115",
"0.6099371",
"0.60925186",
"0.6041508",
"0.60393053",
"0.59931624",
"0.59868264",
"0.59810233",
"0.59808433",
"0.59727603",
"0.5881814",
"0.58799994",
"0.58728737",
"0.58612424",
"0.5856083",
"0.5854072",
"0.58370054",
"0.58355486",
"0.5808715",
"0.58086234",
"0.58025676",
"0.57926446",
"0.57855564",
"0.577176",
"0.57692647",
"0.57563955",
"0.5747937",
"0.5735739",
"0.57197165",
"0.571713",
"0.57128674",
"0.56892854",
"0.56713486",
"0.56648976",
"0.5663957",
"0.5651078",
"0.5650042",
"0.5642794",
"0.5614036",
"0.5604226",
"0.5602978",
"0.55922973",
"0.5586686",
"0.558164",
"0.5571706",
"0.5540615",
"0.55377287",
"0.55210066",
"0.55164725",
"0.5515512",
"0.5460164",
"0.5440331",
"0.54311603",
"0.5407518",
"0.5400905",
"0.5398766",
"0.53731966",
"0.536727",
"0.53436315",
"0.53350645",
"0.5323295",
"0.531293",
"0.5292248",
"0.52816886",
"0.52749187",
"0.5268492",
"0.5260502",
"0.5258781",
"0.52472645",
"0.5229245",
"0.5221317",
"0.5213323",
"0.5213155",
"0.5196814"
]
| 0.600389 | 31 |
Send a WARN message. | public static void w(String tag, String formatString, Object... args) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
try {
logger.w(tag, String.format(Locale.ENGLISH, formatString, args));
} catch (Exception e) {
logger.w(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void warn(String message);",
"public void warn(String message);",
"void warn (String channel,String msg) throws RootException;",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n\t\t\tSystem.out.println(\"WARN \" + msg);\n\t\t}\n\t}",
"public final void setWarn() {\r\n setLevel(org.apache.log4j.Level.WARN);\r\n }",
"@Override\n\tpublic void warn(Message msg) {\n\n\t}",
"void warn (String msg) throws RootException;",
"public void warning(String msg) {\n log(WARNING, msg);\n }",
"@Override\n\tpublic void warn(Object message) {\n\n\t}",
"void warn (String channel, String msg, RootException ex) throws RootException;",
"protected void warn(String msg) {\n log.log(Level.WARNING, msg);\n }",
"public void warning(String msg) {\n log(Level.WARNING, msg, null);\n }",
"public void logWarn(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.WARN,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}",
"public void warn(String msg) {\n LOGGER_BASE.warn(msg);\n }",
"public void warn(String message) {\n\tSystem.err.println(\"Warning: \" + message);\n }",
"abstract void logWarn(String warning);",
"public final void mWARNING() throws RecognitionException {\r\n try {\r\n int _type = WARNING;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:24:9: ( '% WARNING:' )\r\n // Satmc.g:24:11: '% WARNING:'\r\n {\r\n match(\"% WARNING:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"private void logWarning(String msgText) {\n System.out.println (\"[WARNING] \" + msgText);\n \n }",
"void notifyWarn(MessageSnapshot snapshot);",
"public void warn(String message, Throwable throwable);",
"public static void warn(Object message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.WARN, message);\n\t\t}\n\t}",
"public void sendWarning(String message) {\n sendMessage(Prefix.WARNING, message);\n }",
"void warn(String messageKey, Object... args);",
"@Override\n\tpublic void warn(String message, Object... params) {\n\n\t}",
"@Override\n\tpublic void warn(Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, Message msg) {\n\n\t}",
"public static void warningln(Object message) {\n\t\tSystem.out.println(\"WARNING: \" + message);\n\t}",
"public synchronized void warning(String message) {\n if (shouldWarn()) {\n putMessage(message);\n }\n }",
"public static void warn(final String msg) {\n logger.warn(msg);\n }",
"abstract void warn(String warning);",
"@CommandHandler(commandName = \"warn\",\n description = \"Give an official warning to a user. The user will receive a direct message informing them of the reason.\",\n perms = AbstractPermission.ADMINISTRATOR)\n public static void warn(MessageReceivedEvent e, DSLContext dsl, ReasonRequest req) {\n Warn warn = new Warn(e, dsl, req);\n warn.getMentionedMember().ifPresentOrElse(warn::warnMember, warn::userError);\n }",
"@Override\n public void warn(String message) {\n if (Level.WARN.getPriority() <= level.getPriority()) {\n print(\"WARNING: \" + message);\n }\n }",
"public static void logWarning(String message)\n {\n log(IStatus.WARNING, message);\n }",
"@JRubyMethod(name = \"warn\")\n public IRubyObject warn(final ThreadContext context,\n final IRubyObject msg, final Block block) {\n return context.runtime.newBoolean( add(WARN, context, msg, block) );\n }",
"@Override\n\tpublic void warn(Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void warn(Object message, Throwable t) {\n\n\t}",
"public void warn(Object message)\n/* */ {\n/* 172 */ if (message != null) {\n/* 173 */ getLogger().warn(String.valueOf(message));\n/* */ }\n/* */ }",
"public void warn(CommandSender sender, String message) {\n\t\tsender.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"] \" + ChatColor.RED + message);\n\t}",
"public void warn(Player player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"] \" + ChatColor.RED + message);\n\t}",
"void warn(String tag, String msg);",
"public static void warn( String message ) {\n\tSystem.err.println( \"Logic: \" + message );\n\terrorCount = errorCount + 1;\n }",
"void warn (String msg, RootException ex) throws RootException;",
"abstract void consoleWarn(String warning);",
"public static void warn(String message) {\n LOGGER.warn(message);\n }",
"@Override\n\tpublic void warn(Marker marker, String message) {\n\n\t}",
"public static void w(String message, Object... args) {\n log(WARN, null, null, message, args);\n }",
"abstract void warn(String warning, Exception[] exceptions);",
"@Override\n\tpublic void warn(Marker marker, String message, Object... params) {\n\n\t}",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier) {\n\n\t}",
"public static void w(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, WARN)) {\n logger.w(tag, msg);\n }\n }",
"public void warn(String message) {\n if (mLoggable) {\n try {\n Log.w(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"public void warningPermit();",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void warn(Object message, Throwable t)\n/* */ {\n/* 186 */ if (message != null) {\n/* 187 */ getLogger().warn(String.valueOf(message), t);\n/* */ }\n/* */ }",
"public static void w(Throwable t) {\n log(WARN, null, t, \"\");\n }",
"public static void w(String str) {\n if (Log.isLoggable(TAG, Log.WARN)) {\n Log.w(TAG, str);\n }\n }",
"public static void warning(String msg) {\n\t\tlog.warning(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void warn(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n\tpublic void warn(String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void warn(CharSequence message) {\n\n\t}",
"public void appendWarning(String err) {\n warnMessages.append(err);\n }",
"public static void logWarnMessages(ADFLogger logObject, String logMsg) {\r\n if (logObject.isWarning()) {\r\n logObject.warning(logMsg);\r\n }\r\n }",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"public void writeWarning(String message){\n final String output = getTimeString() + \" WARNING: \" + message+ ENTER;\n switch (PreferencesHelper.getConsolePopupLevel()) {\n case ALL:\n popConsoleView();\n break;\n default:\n break;\n }\n UIBundlingThread.getInstance().addRunnable(new Runnable() {\n\n public void run() {\n if(warningStream == null){\n warningStream = console.newOutputStream();\n warningStream.setColor(CustomMediaFactory.getInstance().getColor(\n CustomMediaFactory.COLOR_ORANGE));\n }\n writeToConsole(warningStream, output);\n }\n });\n\n }",
"@Override\n\tpublic void warn(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public synchronized void warning(int warningNumber, String message) {\n if (shouldWarn()) {\n putMessage(warningNumber, message);\n }\n }",
"public static void warning(Object message) {\n\t\tSystem.out.print(\"WARNING: \" + message);\n\t}",
"@Override\n\tpublic void warn(Marker marker, Object message, Throwable t) {\n\n\t}",
"protected final void warning(String warning) {\r\n //System.err.format(\"[\" + name + \"] @%4.9f: WARNING: %s\", Harness.getTime().getFracSeconds(), warning);\r\n //System.err.println();\r\n Harness.log(name, \"WARNING: \" + warning);\r\n warningCount++;\r\n }",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0) {\n\n\t}",
"@Override\n\tpublic void warn(CharSequence message, Throwable t) {\n\n\t}",
"public void warning(String message) {\r\n\t\treport(WARNING, message, null);\r\n\t}",
"protected void warn(String msg, Throwable ex) {\n log.log(Level.WARNING, msg, ex);\n }",
"public final void warn(Component reporter, String message)\n\t{\n\t\tadd(new FeedbackMessage(reporter, message, FeedbackMessage.WARNING));\n\t}",
"@SuppressWarnings(\"unused\")\n protected void warn(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isWarnEnabled()) {\n this.getContainer().getLogger().warn(msg);\n }\n }",
"@Override\n\tpublic void warn(Marker marker, CharSequence message) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void warn(String message, Object p0) {\n\n\t}",
"public void publishTiancheWarn(String errorMsg) {\n }",
"public final static void warning(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.warning(message);\n\t}",
"@Override\n\tpublic void warn(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.warn(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.warn(message);\n\t\t}\n\t}",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Throwable t) {\n\n\t}",
"@SuppressWarnings(\"unused\")\n public static void warn(String message) {\n FacesContext.getCurrentInstance()\n .addMessage(null,\n new FacesMessage(FacesMessage.SEVERITY_WARN,\n FacesUtils.getlocalizedString(ResourceBundles.GENERAL, \"warning\") + \"!\",\n message));\n }",
"void writeWarn(String outDir, String simpleFileName, String warnMessages);",
"abstract void errorLogWarn(String warning);",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"protected void addWarnDiagnostic(String message) {\n addDiagnostic(Diagnostic.warn(message));\n }",
"@Override\n\tpublic void warn(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"public void warning(String msg, Throwable t) {\n log(Level.WARNING, msg, t);\n }",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"void warn(String message, @Nullable Element element);",
"public void addWarning(String warning);",
"public static void warn(String arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.warn(MessageCodes.GENERAL_WARNING, arg0);\n }",
"@Override\n\tpublic void warn(Supplier<?> msgSupplier) {\n\n\t}",
"public final void printWarnings() {\n for (ShadowException exception : warningList) LOGGER.warn(exception.getMessage());\n }",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public static void w(Throwable t, String message, Object... args) {\n log(WARN, null, t, message, args);\n }",
"@Override\n\tpublic void warn(Marker marker, CharSequence message, Throwable t) {\n\n\t}"
]
| [
"0.73214984",
"0.73214984",
"0.7127798",
"0.70651585",
"0.7056616",
"0.70106655",
"0.70045227",
"0.68257964",
"0.6797749",
"0.6779799",
"0.6764164",
"0.6742467",
"0.6720362",
"0.6717806",
"0.6706645",
"0.6675946",
"0.66607463",
"0.66605544",
"0.6588809",
"0.6586998",
"0.6570831",
"0.6540123",
"0.65366316",
"0.6527754",
"0.65024775",
"0.6469203",
"0.6465204",
"0.6441486",
"0.64371675",
"0.6436291",
"0.6431077",
"0.6429681",
"0.63969433",
"0.6395331",
"0.638772",
"0.6386127",
"0.6369124",
"0.6341269",
"0.632735",
"0.63122994",
"0.62907875",
"0.6289441",
"0.62862515",
"0.62741613",
"0.626661",
"0.6253311",
"0.6247002",
"0.62248266",
"0.62207973",
"0.6199063",
"0.6189524",
"0.6181369",
"0.6155989",
"0.61346537",
"0.6126829",
"0.6124343",
"0.6109348",
"0.6092542",
"0.6090922",
"0.60883605",
"0.60822237",
"0.6073741",
"0.6065722",
"0.6062375",
"0.6062189",
"0.60423785",
"0.60308516",
"0.6027888",
"0.60235804",
"0.60148406",
"0.6003575",
"0.5999172",
"0.5987211",
"0.5986744",
"0.59864193",
"0.5975274",
"0.5975045",
"0.5968305",
"0.594125",
"0.59369123",
"0.5915121",
"0.58967507",
"0.58966696",
"0.5896139",
"0.58937114",
"0.5891663",
"0.58841956",
"0.58591217",
"0.58365345",
"0.5833887",
"0.5823385",
"0.58214384",
"0.58210444",
"0.5819892",
"0.58175856",
"0.5813993",
"0.5808107",
"0.5795467",
"0.57860506",
"0.5783768",
"0.5781139"
]
| 0.0 | -1 |
Send a WARN message and log the exception. | public static void w(String tag, String formatString, Throwable tr, Object... args) {
if (logger != null && isLoggingEnabled(tag, WARN)) {
try {
logger.w(tag, String.format(Locale.ENGLISH, formatString, args), tr);
} catch (Exception e) {
logger.w(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void warn (String msg) throws RootException;",
"public void warn(String message, Throwable throwable);",
"public void logWarn(String logMsg, Exception e) {\n logger.warn(logMsg, e);\n }",
"public void warn(String msg) {\n\t\tif (this.logLevel <= BackupLogger.WARN) {\n\t\t\twrite(\"WARN \" + msg);\n\t\t\tSystem.out.println(\"WARN \" + msg);\n\t\t}\n\t}",
"protected void warn(String msg, Throwable ex) {\n log.log(Level.WARNING, msg, ex);\n }",
"void warn (String channel, String msg, RootException ex) throws RootException;",
"public final void setWarn() {\r\n setLevel(org.apache.log4j.Level.WARN);\r\n }",
"public static void warn(Object message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.WARN, message);\n\t\t}\n\t}",
"public static void w(Throwable t) {\n log(WARN, null, t, \"\");\n }",
"void warn (String channel,String msg) throws RootException;",
"public void warn(String message);",
"public void warn(String message);",
"public void warn(String msg) {\n LOGGER_BASE.warn(msg);\n }",
"void warn (String msg, RootException ex) throws RootException;",
"public void logWarn(final String message) {\n\n\t\t\tMSULogger.internalLogger.log(\n\t\t\t\tMSULogger.WRAPPER_FQN,\n\t\t\t\tLevel.WARN,\n\t\t\t\tmessage,\n\t\t\t\tnull);\n\t\t}",
"@Override\n\tpublic void warn(Message msg, Throwable t) {\n\n\t}",
"protected void warn(String msg) {\n log.log(Level.WARNING, msg);\n }",
"@Override\n\tpublic void warn(Object message, Throwable t) {\n\n\t}",
"public void warning(String msg) {\n log(WARNING, msg);\n }",
"public static void warn(final String msg) {\n logger.warn(msg);\n }",
"public static void warn(String message) {\n LOGGER.warn(message);\n }",
"abstract void logWarn(String warning);",
"public void warning(String msg) {\n log(Level.WARNING, msg, null);\n }",
"@Override\n\tpublic void warn(Message msg) {\n\n\t}",
"public void warn(String message) {\n if (mLoggable) {\n try {\n Log.w(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"public void warn(Object message, Throwable t)\n/* */ {\n/* 186 */ if (message != null) {\n/* 187 */ getLogger().warn(String.valueOf(message), t);\n/* */ }\n/* */ }",
"public static void logWarning(String message)\n {\n log(IStatus.WARNING, message);\n }",
"public static void w(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, WARN)) {\n logger.w(tag, msg);\n }\n }",
"@Override\n\tpublic void warn(Object message) {\n\n\t}",
"public void warn(Object message)\n/* */ {\n/* 172 */ if (message != null) {\n/* 173 */ getLogger().warn(String.valueOf(message));\n/* */ }\n/* */ }",
"private void logWarning(String msgText) {\n System.out.println (\"[WARNING] \" + msgText);\n \n }",
"public static void w(String tag, String msg, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, WARN)) {\n logger.w(tag, msg, tr);\n }\n }",
"abstract void warn(String warning, Exception[] exceptions);",
"@Override\n\tpublic void warn(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.warn(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.warn(message);\n\t\t}\n\t}",
"public static void w(Throwable t, String message, Object... args) {\n log(WARN, null, t, message, args);\n }",
"public static void logWarnMessages(ADFLogger logObject, String logMsg) {\r\n if (logObject.isWarning()) {\r\n logObject.warning(logMsg);\r\n }\r\n }",
"public void warn(String message) {\n\tSystem.err.println(\"Warning: \" + message);\n }",
"@Override\n\tpublic void warn(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public static void w(String message, Object... args) {\n log(WARN, null, null, message, args);\n }",
"@Override\n\tpublic void warn(String message, Object... params) {\n\n\t}",
"public void warning(String msg, Throwable t) {\n log(Level.WARNING, msg, t);\n }",
"@Override\n\tpublic void warn(Marker marker, Object message, Throwable t) {\n\n\t}",
"@Override\n public void warn(String message) {\n if (Level.WARN.getPriority() <= level.getPriority()) {\n print(\"WARNING: \" + message);\n }\n }",
"public final static void warning(String message)\n\t{\n\t\tif (logger != null)\n\t\t\tlogger.warning(message);\n\t}",
"public static void warn(String message, Throwable t) {\n LOGGER.warn(message, t);\n }",
"static void logWarning(Throwable t) {\n }",
"void warn(String messageKey, Object... args);",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public static void w(String str) {\n if (Log.isLoggable(TAG, Log.WARN)) {\n Log.w(TAG, str);\n }\n }",
"public static void warning(String msg) {\n\t\tlog.warning(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void warn(CharSequence message, Throwable t) {\n\n\t}",
"public static void warn( String message ) {\n\tSystem.err.println( \"Logic: \" + message );\n\terrorCount = errorCount + 1;\n }",
"public static void w(String tag, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, WARN)) {\n logger.w(tag, tr);\n }\n }",
"@CommandHandler(commandName = \"warn\",\n description = \"Give an official warning to a user. The user will receive a direct message informing them of the reason.\",\n perms = AbstractPermission.ADMINISTRATOR)\n public static void warn(MessageReceivedEvent e, DSLContext dsl, ReasonRequest req) {\n Warn warn = new Warn(e, dsl, req);\n warn.getMentionedMember().ifPresentOrElse(warn::warnMember, warn::userError);\n }",
"public static void warningln(Object message) {\n\t\tSystem.out.println(\"WARNING: \" + message);\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Throwable t) {\n\n\t}",
"public static void warn(Exception e, String msg) {\r\n e.printStackTrace();\r\n System.out.println(msg);\r\n }",
"public final void mWARNING() throws RecognitionException {\r\n try {\r\n int _type = WARNING;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:24:9: ( '% WARNING:' )\r\n // Satmc.g:24:11: '% WARNING:'\r\n {\r\n match(\"% WARNING:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"public static void log(Throwable e) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(e.toString());\r\n\t\tfor (StackTraceElement el : e.getStackTrace()) {\r\n\t\t\tsb.append(\"\\n\" + el);\r\n\t\t}\r\n\t\tsb.append(\"\\n-----------------------------------------------------------------\\n\");\r\n\t\tlog(sb.toString(), LoggerLevel.WARNING);\r\n\t}",
"@Override\n\tpublic void warn(Marker marker, Message msg) {\n\n\t}",
"public synchronized void warning(String message) {\n if (shouldWarn()) {\n putMessage(message);\n }\n }",
"@Override\n\tpublic void warn(Marker marker, Object message) {\n\n\t}",
"abstract void errorLogWarn(String warning);",
"@Override\n\tpublic void warn(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public void sendWarning(String message) {\n sendMessage(Prefix.WARNING, message);\n }",
"@SuppressWarnings(\"unused\")\n protected void warn(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isWarnEnabled()) {\n this.getContainer().getLogger().warn(msg);\n }\n }",
"abstract void warn(String warning);",
"public static void logWarn(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isWarnEnabled())\n return;\n\n if (exchange == null) {\n logger.warn(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.warn(msg, args);\n }\n }\n }",
"private void MinorException(Exception ex) {\n logger.logException(ex);\n }",
"@Override\n\tpublic void warn(MessageSupplier msgSupplier) {\n\n\t}",
"void warn(String tag, String msg);",
"@JRubyMethod(name = \"warn\")\n public IRubyObject warn(final ThreadContext context,\n final IRubyObject msg, final Block block) {\n return context.runtime.newBoolean( add(WARN, context, msg, block) );\n }",
"@Override\n\tpublic void warn(Marker marker, String message) {\n\n\t}",
"public final void printWarnings() {\n for (ShadowException exception : warningList) LOGGER.warn(exception.getMessage());\n }",
"@Override\n\tpublic void warn(Marker marker, String message, Object... params) {\n\n\t}",
"void notifyWarn(MessageSnapshot snapshot);",
"@Override\n\tpublic void warn(Marker marker, CharSequence message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@LogLevel(\"=WARN\") \n public void testDeprecatedBaseClassMethods() throws Exception {\n final ListAppender rootSanityCheck = new ListAppender(\"sanity-checker\");\n try {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().addAppender(rootSanityCheck, Level.WARN, null);\n LoggerContext.getContext(false).updateLoggers();\n \n log.error(\"this matches the default ignore_exception pattern\");\n log.error(\"something matching foo that should make it\"); // 1\n assertEquals(1, rootSanityCheck.getEvents().size());\n ignoreException(\"foo\");\n log.error(\"something matching foo that should NOT make it\");\n ignoreException(\"foo\");\n ignoreException(\"ba+r\");\n log.error(\"something matching foo that should still NOT make it\");\n log.error(\"something matching baaaar that should NOT make it\");\n log.warn(\"A warning should be fine even if it matches ignore_exception and foo and bar\"); // 2\n assertEquals(2, rootSanityCheck.getEvents().size());\n unIgnoreException(\"foo\");\n log.error(\"another thing matching foo that should make it\"); // 3\n assertEquals(3, rootSanityCheck.getEvents().size());\n log.error(\"something matching baaaar that should still NOT make it\");\n resetExceptionIgnores();\n log.error(\"this still matches the default ignore_exception pattern\");\n log.error(\"but something matching baaaar should make it now\"); // 4\n assertEquals(4, rootSanityCheck.getEvents().size());\n\n } finally {\n LoggerContext.getContext(false).getConfiguration().getRootLogger().removeAppender(rootSanityCheck.getName());\n LoggerContext.getContext(false).updateLoggers();\n }\n assertEquals(4, rootSanityCheck.getEvents().size());\n }",
"@Override\n\tpublic void warn(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void warning(String message) {\r\n\t\treport(WARNING, message, null);\r\n\t}",
"@Override\n\tpublic void warn(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"void warn(String message, @Nullable Element element);",
"protected final void warning(String warning) {\r\n //System.err.format(\"[\" + name + \"] @%4.9f: WARNING: %s\", Harness.getTime().getFracSeconds(), warning);\r\n //System.err.println();\r\n Harness.log(name, \"WARNING: \" + warning);\r\n warningCount++;\r\n }",
"public void addWarning(ShadowException exception) {\n if (Loggers.warningsAreErrors()) addError(exception);\n else if (exception != null) warningList.add(exception);\n }",
"protected void addWarnDiagnostic(String message) {\n addDiagnostic(Diagnostic.warn(message));\n }",
"public void warningPermit();",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void warn( String methodName, String message )\n {\n getLogger().warn( methodName + \"():\" + message );\n }",
"public void warn(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 177 */ this.logger.warn(loggerFqcn, message, t);\n/* */ }",
"@Override\n\tpublic void warn(String message, Object p0, Object p1) {\n\n\t}",
"public static void warn(String arg0) {\n MDC.put(classNameProp, \"\");\n debugLogger.warn(MessageCodes.GENERAL_WARNING, arg0);\n }",
"@Override\n\tpublic void warn(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@ExceptionHandler(LoginException.class)\n public void logLoginException(LoginException e) throws LoginException {\n securityLogger.logWarn(e.getMessage(), e);\n throw e;\n }",
"@Test\n\tpublic final void testWriteException() {\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our test assertion exception\"), \"Unit Tests\",\n\t\t\t\t\"Test of logging exception attachment.\", null);\n\n\t\tLog.write(LogMessageSeverity.WARNING, LogWriteMode.QUEUED,\n\t\t\t\tnew RuntimeException(\"This is our top exception\",\n\t\t\t\t\t\tnew RuntimeException(\"This is our middle exception\",\n\t\t\t\t\t\t\t\tnew RuntimeException(\"This is our bottom exception\"))),\n\t\t\t\t\"Unit Tests\", \"Test of logging exception attachment with nested exceptions.\", null);\n\t}",
"public void warn(final String message, final Object... args) {\n log.warning(supplier(message, args));\n }",
"@Override\n\tpublic void warn(Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void warn(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void warn(CharSequence message) {\n\n\t}",
"public static void warning(Object message) {\n\t\tSystem.out.print(\"WARNING: \" + message);\n\t}",
"@Override\n\tpublic void warn(Marker marker, String message, Object p0) {\n\n\t}"
]
| [
"0.6745808",
"0.6734788",
"0.6697526",
"0.6631236",
"0.6587497",
"0.65784603",
"0.65762883",
"0.65670645",
"0.65572184",
"0.65218395",
"0.6515477",
"0.6515477",
"0.6507434",
"0.6505077",
"0.6448459",
"0.64482784",
"0.64183366",
"0.635114",
"0.6342238",
"0.6306439",
"0.6293448",
"0.62769276",
"0.6272794",
"0.6199247",
"0.6181095",
"0.6152351",
"0.61290115",
"0.6099371",
"0.60925186",
"0.6041508",
"0.60393053",
"0.600389",
"0.59931624",
"0.59868264",
"0.59810233",
"0.59808433",
"0.59727603",
"0.5881814",
"0.58799994",
"0.58728737",
"0.58612424",
"0.5856083",
"0.5854072",
"0.58370054",
"0.58355486",
"0.5808715",
"0.58086234",
"0.58025676",
"0.57926446",
"0.57855564",
"0.577176",
"0.57692647",
"0.57563955",
"0.5747937",
"0.5735739",
"0.57197165",
"0.571713",
"0.57128674",
"0.56892854",
"0.56713486",
"0.56648976",
"0.5663957",
"0.5651078",
"0.5650042",
"0.5642794",
"0.5614036",
"0.5604226",
"0.5602978",
"0.55922973",
"0.5586686",
"0.558164",
"0.5571706",
"0.5540615",
"0.55377287",
"0.55210066",
"0.55164725",
"0.5515512",
"0.5460164",
"0.5440331",
"0.54311603",
"0.5407518",
"0.5400905",
"0.5398766",
"0.53731966",
"0.536727",
"0.53436315",
"0.53350645",
"0.5323295",
"0.531293",
"0.5292248",
"0.52816886",
"0.52749187",
"0.5268492",
"0.5260502",
"0.5258781",
"0.52472645",
"0.5229245",
"0.5221317",
"0.5213323",
"0.5213155",
"0.5196814"
]
| 0.0 | -1 |
Send an ERROR message. | public static void e(String tag, String msg) {
if (logger != null && isLoggingEnabled(tag, ERROR)) {
logger.e(tag, msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }",
"public void sendError(String message) { \r\n this.send(\"Error:\" + message);\t//remember a String IS-A Object!\r\n }",
"public void sendError(String message) { \n\t\tthis.send(\"Error:\" + message); //remember a String IS-A Object!\n\t}",
"@Override\n public void sendError(int arg0, String arg1) throws IOException {\n\n }",
"public void sendError(int i) throws IOException {\n\t\t\n\t}",
"public void sendError(int i, String s) throws IOException {\n\t\t\n\t}",
"public void error(String message);",
"@Override\n public void sendError(int arg0) throws IOException {\n\n }",
"@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}",
"public void sendErr() {\n Datagram errDatagram = makeFIN(datagram);\n PayLoad payLoad = (PayLoad) (errDatagram.getData());\n payLoad.setERR(true);\n payLoad.setActualData(\"File not found on server.\".getBytes());\n errDatagram.setChecksum(CheckSumService.generateCheckSum(errDatagram));\n\n try {\n ttpService.sendDatagram(errDatagram);\n } catch (IOException i) {\n i.printStackTrace();\n }\n System.out.println(\"TTPServer: ERR datagram sent to client.\");\n if (connections.containsKey(curKey)) {\n ttpService.closeConnection(connections, curKey);\n }\n System.out.println(\"TTPServer: Connection with client closed\");\n }",
"void error (String channel, String msg) throws RootException;",
"public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }",
"private void sendError(HttpExchange exchange, java.lang.String error, int errorCode) throws IOException {\n\n\t\tlogger.debug(\"Illegal request from \" + exchange.getRemoteAddress().getHostName() + \": \" + error);\n\t\texchange.sendResponseHeaders(errorCode, 0);\n\t\texchange.close();\n\t\treturn;\n\n\t}",
"@Override\n\tpublic void error(Message msg) {\n\n\t}",
"public void error(String error)\n\t\t\t{\n\t\t\t\tsend(\"<error>\", false);\n\t\t\t\tsend(error, true);\n\t\t\t\tsend(\"</error>\", false);\n\t\t\t}",
"public void writeErrorMessageToClient(String errMessage) throws IOException {\n writeToClient(\"ERROR: \" + errMessage);\n }",
"public boolean sendError(XMPPBean bean, String error){\n\t\tSystem.out.println(\"Player.sendError() \" + bean.getNamespace());\n\t\tbean.setFrom(fromJID);\n\t\tbean.setTo(jid);\n\t\tbean.setType(XMPPBean.TYPE_ERROR);\n\t\tbean.errorCondition = \"a\";\n\t\tbean.errorText = \"error\";\n\t\tbean.errorType = \"a\";\n\t\t\n\t\tconnection.sendPacket(new BeanIQAdapter(bean));\n\t\treturn true;\n\t}",
"void error (String msg) throws RootException;",
"private void sendOldError(Exception e) {\n }",
"public static void error(Object message) {\n\t\tSystem.out.print(\"! ERROR: \" + message);\n\t}",
"public void error(Exception e);",
"void error (String channel, String msg, RootException ex) throws RootException;",
"public void error(String message, Throwable throwable);",
"@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}",
"public void error(String message) {\n ui.say(\"ERROR: \" + message);\n }",
"void sendError(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Throwable ex) throws IOException;",
"@Override\n\tpublic void error(Object message) {\n\n\t}",
"private void sendNotificationError(Exception e) {\n logger.error(e.getMessage());\n \n }",
"public void sendErrorNotification(String msg){\n this.sendNotification(1, ATTENTION, msg, R.drawable.ic_stat_error_outline);\n }",
"public void error(String msg) {\n LOGGER_BASE.error(msg);\n }",
"protected void serverError() throws IOException {\n cleanup();\n throw new IOException(\"Recieved error message from server:\\n\" + new String(_text_buffer));\n }",
"public void error(String message) {\n\tSystem.err.println(\"Error: \" + message);\n\tthrow new Error(message);\n }",
"public void error();",
"@Override\n\tpublic void error(CharSequence message, Throwable t) {\n\n\t}",
"public void error(Throwable e);",
"public void sendError(String xml, PrintWriter out) throws Exception {\n send(new StringReader(xml), out, m_errorTemplates);\n }",
"public void errorOccured(String errorMessage, Exception e);",
"public void sendErrorResponse(MessageExchange exchange) {\n\t\tdoSend(exchange);\n\t}",
"void err( Object msg );",
"protected abstract void error(String err);",
"public void replyError(String teller, Throwable t) {\n t.printStackTrace(System.err);\n command.tell(teller, \"Error - \" + t.getMessage());\n }",
"public void replyError(User teller, Throwable t) {\n t.printStackTrace(System.err);\n command.tell(teller, \"Error - \" + t.getMessage());\n }",
"public void error(String msg) {\n boolean doit = level == Level.NONE || level == Level.INFO;\n if (log != System.err || !doit) {\n System.err.println(msg);\n }\n if (!doit) return;\n write(\"ERROR\", msg); \n }",
"public void sendErrorMessage( int statusCode ) {\r\n\r\n\t\tString httpVersion = HttpdConf.DEFAULT_HTTP_VERSION;\r\n\t\tif ( request != null && request.getHttpVersion() != null )\r\n\t\t\thttpVersion = request.getHttpVersion();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tFile errorFile = new File( ERROR_FILE_PATH + Integer.toString( statusCode ) + \".html\" );\r\n\t\t\tHeaderBuilder builder = new HeaderBuilder();\r\n\t\t\tString headerMessage = builder.buildHeaderBegin( statusCode, httpVersion )\r\n\t\t\t\t\t.buildContentTypeAndLength( errorFile ).toString();\r\n\t\t\twriteHeaderMessage( headerMessage );\r\n\t\t\tserveFile( errorFile );\r\n\r\n\t\t} catch ( ServerException se ) {\r\n\t\t\tse.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"protected void reply_error(String message) {\n try {\n byte[] err = PushCacheProtocol.instance().errorPacket(message);\n _socket.getOutputStream().write(err, 0, err.length);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void onReceivedError();",
"public void errorFromKernel (String error) {\n clientCommunicationManager.sendErrorToAll(\"NETWORK\", \"[ERROR JUPYTER] \" + error);\n }",
"@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}",
"public void requestError(java.lang.String msg){\r\n\t\tIterator <RobotEngineObserver> robOb = this.iterator();\r\n\t\twhile (robOb.hasNext()){\r\n\t\t\trobOb.next().raiseError(msg);\r\n\t\t}\r\n\t}",
"public static void errorln(Object message) {\n\t\tSystem.out.println(\"! ERROR: \" + message);\n\t}",
"public abstract void errWrite(final String msg);",
"private void logError(String msgText) {\n System.out.println (\"[ERROR] \" + msgText);\n \n }",
"public void sendError(int errorCode, String msg) {\n\t\t\tif (isCloseOnSendingError || ((errorCode >= 500) && IS_CLOSE_CONNECTION_ON_5XX_RESPONSE)) {\n\t\t\t\tsetPersistent(false);\n\t\t\t}\n\t\t\t\n\t\t\tif (isResponseCommitted()) {\n\t\t\t\tthrow new IllegalStateException(\"response is already committed\"); \n\t\t\t}\n\n\t\t\tsuper.sendError(errorCode, msg);\n\t\t}",
"protected void sendError(final Throwable t) {\n main.post(new Runnable() {\n @Override\n public void run() {\n for (ErrWatcher ew : errWatchers) {\n try {\n Log.e(PULSE, \"Sending error to UI\", t);\n ew.onError(t);\n } catch (Error | Exception t) {\n Log.e(PULSE, \"Error while reporting error.\", t);\n }\n }\n }\n });\n }",
"public void error(Object message)\n/* */ {\n/* 199 */ if (message != null) {\n/* 200 */ getLogger().error(String.valueOf(message));\n/* */ }\n/* */ }",
"private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }",
"public void Error(String error) throws RemoteException;",
"void error (String msg, RootException ex) throws RootException;",
"private void error(WebSocketSession session, String message) {\n\t\tJsonObject response = new JsonObject();\n\t\tresponse.addProperty(\"id\", \"error\");\n\t\tresponse.addProperty(\"message\", message);\n\t\tsendMessage(session, new TextMessage(response.toString()));\n\n\t\t// Release media session\n\t\trelease(session);\n\t}",
"abstract void error(String error);",
"@Override\n\tpublic void error(Marker marker, Message msg, Throwable t) {\n\n\t}",
"private void err(Messenger replyTo, int encoderId, Bundle info) {\n\n // obtain new message\n Message message = obtainMessage(Geotracer.MESSAGE_TYPE_ERROR, encoderId, 0);\n message.setData(info);\n\n // send response\n send(replyTo, message);\n }",
"void showError(String message);",
"void showError(String message);",
"public abstract void setError(String message);",
"public void sendError(PrintWriter pWriter, String sessionId, String errorMsg) {\n XML message = new XML(\"Message\");\n XML reply = new XML(\"Reply\"); \n XML error = new XML(\"Error\");\n \n error.addAttribute(\"elements\", errorMsg);\n reply.addElement(error);\n message.addElement(reply);\n \n // If there is an error before the session has started then\n // the sessionId is null\n if (sessionId != null) {\n error.addAttribute(\"windowId\", sessionId);\n }\n else {\n error.addAttribute(\"windowId\", \"None\");\n }\n \n sendReply(pWriter, buildHeader(\"Message\") + message.toString());\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"public void onError(String errorMessage);",
"public void error(Throwable error) {\n\n }",
"public void error(Throwable error) {\n\n }",
"public void showError(String error);",
"protected void initError(String message, COMMAND command) {\t\n\t String id = (command != null ? command.getId() : \"no-command\");\t \n\t \n\t COMMAND_DONE done = new COMMAND_DONE(id);\n\t done.setSuccessful(false);\n\t done.setErrorNum(SERVER_INITIALIZATION_ERROR);\n\t done.setErrorString(\"Command: [\"+id+\"]: CAMP::\"+message);\n\t \n\t try { \t\n\t\tif (connection != null)\n\t\t connection.send(done); \n\t } catch (IOException e) {\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Failed to send error: \"+e);\n\t }\n\t \n\t if (handler != null)\n\t\thandler.dispose();\n\t if (connection != null)\n\t\tconnection.close();\n\t connection = null;\n\t command = null;\n\t \n\t}",
"private void sendResultError(CallbackContext callbackContext, String payload) {\n // Compone el mensaje de respuesta.\n PluginResult pluginResult = new PluginResult(PluginResult.Status.ERROR, payload);\n\n // Envia la respuesta a la llamada.\n callbackContext.sendPluginResult(pluginResult);\n }",
"public void onError(String err, String nick);",
"public void respondToError(Object source, String msg);",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"abstract void consoleError(String error);",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"void messageSendFailed(IMSession session, String messageId, ReasonInfo reason);",
"abstract void errorLogMessage(String message);",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"protected void ERROR(String message)\n\t{\n\t\t//allow children to modify output\n\t\tPRINT(message);\n\t\tSystem.exit(1);\n\t}",
"void errorResponse( String error );",
"@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}",
"public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }",
"private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void playerError(Player player, String message){\n\t\tplayer.sendMessage(ChatColor.RED + message);\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1) {\n\n\t}",
"public void sendErrorMessage(String message){\n JOptionPane.showMessageDialog(this,\n message,\n \"error\",\n JOptionPane.ERROR_MESSAGE);\n }",
"public void doError (int status, String message) {\n\tthis.statusCode = Integer.toString (status);\n\tHttpHeader header = responseHandler.getHeader (\"HTTP/1.0 400 Bad Request\");\n\tStringBuilder error = \n\t new StringBuilder (HtmlPage.getPageHeader (this, \"400 Bad Request\") +\n\t\t\t \"Unable to handle request:<br><b>\" + \n\t\t\t message +\n\t\t\t \"</b></body></html>\\n\");\n\theader.setContent (error.toString ());\n\tsendAndClose (header);\n }",
"void errorOccurred(@Nonnull String errorMessage);",
"void error(String messageKey, Object... args);",
"@Override\n public void errorReceived(String msg, Exception t) {\n abort();\n // abort() calls sendError() which calls unregister()\n // so don't bother\n // unregister();\n }",
"public final void mERROR() throws RecognitionException {\r\n try {\r\n int _type = ERROR;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:12:7: ( '% ERROR:' )\r\n // Satmc.g:12:9: '% ERROR:'\r\n {\r\n match(\"% ERROR:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"protected void errorMessage( String message, OutputStream out ) throws IOException {\n out.write( message.getBytes() );\n error(message);\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object... params) {\n\n\t}",
"public void socketError(Exception arg0) {\n\t\t\r\n\t}",
"public void error() {\n throw new RuntimeException(getClass().getName() + \" error\");\n }",
"@Override\n\tpublic void error(Marker marker, Object message) {\n\n\t}"
]
| [
"0.7786287",
"0.7625356",
"0.75121045",
"0.72041523",
"0.71131325",
"0.71098626",
"0.710952",
"0.7033039",
"0.68925893",
"0.6863916",
"0.6844212",
"0.68351865",
"0.67898315",
"0.6761605",
"0.67296535",
"0.6726494",
"0.6725593",
"0.66880935",
"0.6670428",
"0.6641273",
"0.6616683",
"0.6593299",
"0.6585617",
"0.65840936",
"0.6535973",
"0.6531898",
"0.6510833",
"0.6496062",
"0.64887214",
"0.64875996",
"0.6461955",
"0.6439793",
"0.6439364",
"0.6426836",
"0.6424453",
"0.6414064",
"0.6410493",
"0.63970494",
"0.6388806",
"0.6383897",
"0.6351341",
"0.63414806",
"0.6331789",
"0.63111657",
"0.6298881",
"0.6292217",
"0.62786657",
"0.62684107",
"0.6267713",
"0.6264218",
"0.6252962",
"0.6249675",
"0.6247835",
"0.6241092",
"0.623994",
"0.6235795",
"0.62336475",
"0.62321526",
"0.622396",
"0.6213708",
"0.6206684",
"0.6202722",
"0.6199623",
"0.6199623",
"0.6184704",
"0.6177338",
"0.6174153",
"0.61662734",
"0.6163898",
"0.6163898",
"0.6163117",
"0.61578405",
"0.61524796",
"0.61407965",
"0.61404884",
"0.61400574",
"0.6121166",
"0.61155784",
"0.61106384",
"0.6108744",
"0.6099634",
"0.6089242",
"0.60755086",
"0.6067614",
"0.60646164",
"0.60608375",
"0.6046741",
"0.60361433",
"0.6013668",
"0.60131377",
"0.6009796",
"0.6007248",
"0.5995483",
"0.59903544",
"0.5988717",
"0.5980497",
"0.5977483",
"0.5974547",
"0.5968357",
"0.59626997",
"0.5947964"
]
| 0.0 | -1 |
Send a ERROR message and log the exception. | public static void e(String tag, String msg, Throwable tr) {
if (logger != null && isLoggingEnabled(tag, ERROR)) {
logger.e(tag, msg, tr);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendNotificationError(Exception e) {\n logger.error(e.getMessage());\n \n }",
"protected abstract void logError(Exception e);",
"private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }",
"public void error(String msg) {\n LOGGER_BASE.error(msg);\n }",
"public void error(String msg) {\n boolean doit = level == Level.NONE || level == Level.INFO;\n if (log != System.err || !doit) {\n System.err.println(msg);\n }\n if (!doit) return;\n write(\"ERROR\", msg); \n }",
"public void sendError(String message) { \r\n this.send(\"Error:\" + message);\t//remember a String IS-A Object!\r\n }",
"@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}",
"public static void error(Object message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.ERROR, message);\n\t\t}\n\t}",
"public static synchronized void logError(Exception e) {\n\t\te.printStackTrace();\r\n\t}",
"protected void error(String msg, Throwable ex) {\n log.log(Level.SEVERE, msg, ex);\n }",
"private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }",
"public void error(Throwable e);",
"public void sendError(String message) { \n\t\tthis.send(\"Error:\" + message); //remember a String IS-A Object!\n\t}",
"public void error(String message, Throwable throwable);",
"public void logError(String logMsg, Exception e) {\n logger.error(logMsg, e);\n }",
"public static void logError(String message, Throwable e)\n {\n log(IStatus.ERROR, message, e);\n }",
"public static void logError(String message)\n {\n log(IStatus.ERROR, message);\n }",
"static void logError(Throwable t) {\n }",
"private void logError(String msgText) {\n System.out.println (\"[ERROR] \" + msgText);\n \n }",
"public static void error(String message) {\n LOGGER.error(message);\n }",
"public void logError(String message, Throwable throwable) {\n\t\tlogger.log(Level.SEVERE, message, throwable);\n\t\tif (myNode != null) {\n\t\t\tmyNode.observerNotice(MonitoringEvent.CONNECTOR_ERROR, myNode.getNodeId(), WEB_CONNECTOR + message);\n\t\t}\n\t\tif (logHandler != null) { // StreamHandler don't auto flush\n\t\t\tlogHandler.flush();\n\t\t}\n\t}",
"public void error(Object message, Throwable t)\n/* */ {\n/* 213 */ if (message != null) {\n/* 214 */ getLogger().error(String.valueOf(message), t);\n/* */ }\n/* */ }",
"void sendError(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Throwable ex) throws IOException;",
"@ExceptionHandler(Exception.class)\n public void logErrors(Exception e) {\n errorLogger.logError(e.getMessage(), e);\n }",
"public void error(Object message)\n/* */ {\n/* 199 */ if (message != null) {\n/* 200 */ getLogger().error(String.valueOf(message));\n/* */ }\n/* */ }",
"protected void error(String msg) {\n log.log(Level.SEVERE, msg);\n }",
"@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}",
"public static void e(Throwable t) {\n log(ERROR, null, t, \"\");\n }",
"public void error(Exception e);",
"@Override\n\tpublic void error(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.error(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.error(message);\n\t\t}\t\t\t\t\n\t}",
"public static void error(String message, Throwable t) {\n LOGGER.error(message, t);\n }",
"public void error(String message) {\n\tSystem.err.println(\"Error: \" + message);\n\tthrow new Error(message);\n }",
"abstract void logError(String error);",
"@Override\r\n\tprotected void logError(String message, Throwable throwable) {\n\t\t\r\n\t}",
"void error (String channel, String msg, RootException ex) throws RootException;",
"void error (String channel, String msg) throws RootException;",
"public void logError(String message) {\n logger.logError(\"[\" + game.getName() + \"] \" + message);\n }",
"public void log(ErrorLevel el, String message, Throwable t);",
"public void error(String message) {\n if (mLoggable) {\n try {\n Log.e(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"@Override\n public void error(final Object message) {\n this.logger.error(this.prepareDefaultMessage(message));\n }",
"protected void sendError(final Throwable t) {\n main.post(new Runnable() {\n @Override\n public void run() {\n for (ErrWatcher ew : errWatchers) {\n try {\n Log.e(PULSE, \"Sending error to UI\", t);\n ew.onError(t);\n } catch (Error | Exception t) {\n Log.e(PULSE, \"Error while reporting error.\", t);\n }\n }\n }\n });\n }",
"protected void serverError() throws IOException {\n cleanup();\n throw new IOException(\"Recieved error message from server:\\n\" + new String(_text_buffer));\n }",
"private static void error(@NotNull final org.slf4j.Logger logger, @NotNull @NotBlank @NotEmpty final String key,\r\n\t\t\tfinal Throwable exp, final Object... args) {\r\n\t\tif (logger.isErrorEnabled()) {\r\n\t\t\tfinal String message = format(key, args);\r\n\t\t\tif (null == exp) {\r\n\t\t\t\tlogger.error(message);\r\n\t\t\t} else {\r\n\t\t\t\t// Distinguish from JVM error and Defined error\r\n\t\t\t\tif (exp instanceof AbstractException) {\r\n\t\t\t\t\tfinal AbstractException error = (AbstractException) exp;\r\n\t\t\t\t\tlogger.error(\"[ *** ERROR\" + error.getErrorCode() + \" *** ] \" + message);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlogger.error(\"[ *** JVM ERROR *** ]: \" + message);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void logError(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isErrorEnabled())\n return;\n\n if (exchange == null) {\n logger.error(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.error(msg, args);\n }\n }\n }",
"public static void error(String tag, String msg, Throwable ex) {\n if (BuildConfig.DEBUG) {\n Log.e(tag, msg, ex);\n }\n }",
"private void sendOldError(Exception e) {\n }",
"public static void error(Object message) {\n\t\tSystem.out.print(\"! ERROR: \" + message);\n\t}",
"public void logException(Throwable t){\n\t\tSpagoBITracer.debug(SpagoBIConstants.NAME_MODULE, this.getClass().getName(), \n\t\t\t\t \"logException\", t.getClass().getName() + \":\" + t.getMessage());\n\t}",
"private static void error(final ILogger aLogger, final String aMethod,\r\n final String aMessage, final Exception aException) {\r\n ExceptionUtil.error(aLogger, pCLASS_NAME, aMethod, aMessage, aException);\r\n }",
"public void logErr(String msg) {\r\n if (this.logger != null) {\r\n logger.severe(msg);\r\n }\r\n }",
"public static void logErrorMessages(ADFLogger logObject, String logMsg) {\r\n if (logObject.isSevere()) {\r\n logObject.severe(logMsg);\r\n }\r\n }",
"protected void Error(String message) {\n logger.logError(message);\n }",
"@Override\n public void sendError(int arg0, String arg1) throws IOException {\n\n }",
"public void error(Throwable error) {\n\n }",
"public void error(Throwable error) {\n\n }",
"abstract void errorLogMessage(String message);",
"void error (String msg) throws RootException;",
"public void sendError(int i) throws IOException {\n\t\t\n\t}",
"public void sendErrorResponse(MessageExchange exchange) {\n\t\tdoSend(exchange);\n\t}",
"@Override\n\tpublic void error(Message msg) {\n\n\t}",
"@Override\n public void sendError(int arg0) throws IOException {\n\n }",
"void error(ProxyException e) {\n RequestContext.getCurrentContext().setThrowable(e);\n proxyRunner.error();\n logger.warn(e.getMessage(), e);\n }",
"public void error(String message);",
"public void error(String callingObject, Exception e) {\n date = java.util.Calendar.getInstance().getTime();\n String currDebugLog = (date+\" : CRITICAL ERROR!: \" +callingObject+ \" : \" + e.getMessage());\n debugLog.push(currDebugLog);\n System.out.println(currDebugLog);\n }",
"public void sendError(int i, String s) throws IOException {\n\t\t\n\t}",
"private static void logExceptionAndExit(Throwable e) {\n LOGGER.error(\"Got exception when invoked by Mesos, shutting down.\");\n ProcessExit.exit(ProcessExit.ERROR, e);\n }",
"private void logException(TestStepRunner testStepRunner)\n\t\t\tthrows AFTException {\n\t\tLOGGER.error(errorMessage);\n\n\t\tString onDbErrorValue = setOnDbErrorValue(testStepRunner);\n\n\t\tLOGGER.info(\"User has defined '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION\n\t\t\t\t+ \"' to [\"\n\t\t\t\t+ onDbErrorValue\n\t\t\t\t+ \"]. This test case execution will be stopped and test execution will continue as per '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION + \"' configuration.\");\n\t\tthrow new AFTException(errorMessage);\n\t}",
"void error (String msg, RootException ex) throws RootException;",
"private void sendError(HttpExchange exchange, java.lang.String error, int errorCode) throws IOException {\n\n\t\tlogger.debug(\"Illegal request from \" + exchange.getRemoteAddress().getHostName() + \": \" + error);\n\t\texchange.sendResponseHeaders(errorCode, 0);\n\t\texchange.close();\n\t\treturn;\n\n\t}",
"protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }",
"public void replyError(User teller, Throwable t) {\n t.printStackTrace(System.err);\n command.tell(teller, \"Error - \" + t.getMessage());\n }",
"public static void errorln(Object message) {\n\t\tSystem.out.println(\"! ERROR: \" + message);\n\t}",
"public void error(String message, String sysid, int line, int column)\n\t\t\t\tthrows Exception {\n\t\t\tif (sysid != null) {\n\t\t\t\tlogError(\"[\" + sysid + \"] \" + message);\n\t\t\t} else {\n\t\t\t\tlogError(message);\n\t\t\t}\n\t\t}",
"public void replyError(String teller, Throwable t) {\n t.printStackTrace(System.err);\n command.tell(teller, \"Error - \" + t.getMessage());\n }",
"private void sendErrorEmail(FlowRunner runner) {\n \t\tExecutableFlow flow = runner.getFlow();\n \t\tList<String> emailList = flow.getFailureEmails();\n \t\tif (emailList != null && !emailList.isEmpty() && mailer != null) {\n \n \t\t\ttry {\n \n \t\t\t\tString subject = \"Flow '\" + flow.getFlowId() + \"' has completed on \"\n \t\t\t\t\t\t+ InetAddress.getLocalHost().getHostName() + \"!\";\n \t\t\t\tString body = \"The Flow '\" + flow.getFlowId() + \"' failed. \\n See logs below: \\n\";\n \t\t\t\tfor (String URL : getLogURLs(runner)) {\n \t\t\t\t\tbody += (URL + \"\\n\");\n \t\t\t\t}\n \n \t\t\t\tmailer.sendEmailIfPossible(senderAddress, emailList, subject, body);\n \t\t\t} catch (UnknownHostException uhe) {\n \t\t\t\tlogger.error(uhe);\n \t\t\t} catch (Exception e) {\n \t\t\t\tlogger.error(e);\n \t\t\t}\n \t\t}\n \t}",
"public static void logError(Context context, Exception e, String message){\n if(logging){\n String tag = context.getClass().getName();\n if(e == null) android.util.Log.e(tag, message);\n else if(message == null) android.util.Log.e(tag, e.getMessage(), e.getCause());\n else android.util.Log.e(tag, message, e.getCause());\n }\n }",
"public void error(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 71 */ this.logger.error(loggerFqcn, message, t);\n/* */ }",
"public void error() {\n throw new RuntimeException(getClass().getName() + \" error\");\n }",
"public void socketError(Exception arg0) {\n\t\t\r\n\t}",
"@SuppressWarnings(\"unused\")\n protected void error(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isErrorEnabled()) {\n this.getContainer().getLogger().error(msg);\n }\n }",
"@Override\n\tpublic void error(Marker marker, Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void error(CharSequence message, Throwable t) {\n\n\t}",
"public void writeError( Exception e\n , String errorString) {\n writeError(e, errorString, null);\n }",
"public boolean sendError(XMPPBean bean, String error){\n\t\tSystem.out.println(\"Player.sendError() \" + bean.getNamespace());\n\t\tbean.setFrom(fromJID);\n\t\tbean.setTo(jid);\n\t\tbean.setType(XMPPBean.TYPE_ERROR);\n\t\tbean.errorCondition = \"a\";\n\t\tbean.errorText = \"error\";\n\t\tbean.errorType = \"a\";\n\t\t\n\t\tconnection.sendPacket(new BeanIQAdapter(bean));\n\t\treturn true;\n\t}",
"private static void error(String msg) {\r\n\t\tlogger.severe(msg);\r\n\t\tSystem.exit(0);\r\n\t}",
"public static void e(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, ERROR)) {\n logger.e(tag, msg);\n }\n }",
"@Override\n\tpublic void error(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"private void sendInternalError(Exception e) {\n LOG.error(\"Error after vertex manager callback \" + managedVertex.getLogIdentifier(), e);\n appContext.getEventHandler().handle(\n (new DAGEventInternalError(managedVertex.getVertexId().getDAGID(),\n \"Error in VertexManager for vertex: \" + managedVertex.getLogIdentifier()\n + \", error=\" + ExceptionUtils.getStackTrace(e))));\n }",
"abstract void errorLogError(String error);",
"@Override\n\tpublic void error(Object message) {\n\n\t}",
"@Override\n public void logError(String message) {\n Log.e(_projectName, message);\n }",
"public static void error(Object arg0) {\n MDC.put(classNameProp, \"\");\n setErrorCode(MessageCodes.GENERAL_ERROR);\n errorLogger.error(MessageCodes.GENERAL_ERROR, \"\" + arg0);\n }",
"public static void logError(Class clz, Exception e, String message){\n if(logging){\n String tag = clz.getName();\n if(e == null) android.util.Log.e(tag, message);\n else if(message == null) android.util.Log.e(tag, e.getMessage(), e.getCause());\n else android.util.Log.e(tag, message, e.getCause());\n }\n }",
"public static void logServiceError(AmazonServiceException ase) {\n\t\tlogger.error(\"Caught an AmazonServiceException, which means your request made it \"\n\t\t\t\t+ \"to Amazon , but was rejected with an error response for some reason.\");\n\t\tlogger.error(\"Error Message: \" + ase.getMessage());\n\t\tlogger.error(\"HTTP Status Code: \" + ase.getStatusCode());\n\t\tlogger.error(\"AWS Error Code: \" + ase.getErrorCode());\n\t\tlogger.error(\"Error Type: \" + ase.getErrorType());\n\t\tlogger.error(\"Request ID: \" + ase.getRequestId());\n\t}",
"private static final void log(Throwable e) {\n\t\tlog.println(e);\n\t}",
"public void errorOccured(String errorMessage, Exception e);",
"public static void error(String arg0) {\n MDC.put(classNameProp, \"\");\n setErrorCode(MessageCodes.GENERAL_ERROR);\n errorLogger.error(MessageCodes.GENERAL_ERROR, arg0);\n }",
"protected void logError( HttpServletRequest req, HttpServletResponse resp, Exception ex, String str ) {\r\n\ttry {\r\n\t StringBuffer sb = new StringBuffer();\r\n\t sb.append(\"\\n---------- Gateway error:\\n\");\r\n\t sb.append(\"Error message: \" + str + \"\\n\");\r\n\t sb.append(\"Request method: \" + req.getMethod() + \"\\n\");\r\n\t sb.append(\"Query string: \" + req.getQueryString() + \"\\n\");\r\n\t sb.append(\"Content length: \" + req.getContentLength() + \"\\n\");\r\n\t sb.append(\"Cookies: ( session info )\\n\");\r\n\t Cookie[] cookies = req.getCookies();\r\n\t if (cookies == null || cookies.length == 0)\r\n\t\tsb.append(\"No cookies in the HTTP request\\n\");\r\n\t else {\r\n\t\tfor (int i = 0; i < cookies.length; i++) {\r\n\t\t sb.append(\"\\tName: \" + cookies[i].getName() + \"\\t\" + \"Value: \" + cookies[i].getValue() + \"\\n\");\r\n\t\t}\r\n\t }\r\n\t sb.append(\"\\n\");\r\n\t m_ctx.log( sb.toString(), ex );\r\n\t} catch (Exception e) {\r\n\t System.err.println(\"Error logging a message\");\r\n\t}\r\n }",
"public void sendErr() {\n Datagram errDatagram = makeFIN(datagram);\n PayLoad payLoad = (PayLoad) (errDatagram.getData());\n payLoad.setERR(true);\n payLoad.setActualData(\"File not found on server.\".getBytes());\n errDatagram.setChecksum(CheckSumService.generateCheckSum(errDatagram));\n\n try {\n ttpService.sendDatagram(errDatagram);\n } catch (IOException i) {\n i.printStackTrace();\n }\n System.out.println(\"TTPServer: ERR datagram sent to client.\");\n if (connections.containsKey(curKey)) {\n ttpService.closeConnection(connections, curKey);\n }\n System.out.println(\"TTPServer: Connection with client closed\");\n }",
"public static void logClientError(AmazonClientException ace) {\n\t\tlogger.error(\"Caught an AmazonClientException, which means the client encountered \"\n\t\t\t\t+ \"a serious internal problem while trying to communicate with , \"\n\t\t\t\t+ \"such as not being able to access the network.\");\n\t\tlogger.error(\"Error Message: \" + ace.getMessage());\n\t}"
]
| [
"0.70564556",
"0.6940762",
"0.6725827",
"0.65844864",
"0.6569879",
"0.65481734",
"0.65316206",
"0.6530325",
"0.6466465",
"0.64509684",
"0.6432705",
"0.64268893",
"0.6425053",
"0.6420613",
"0.6418762",
"0.6391024",
"0.6384096",
"0.63747203",
"0.6372607",
"0.63412845",
"0.6339653",
"0.6329081",
"0.6293193",
"0.6282365",
"0.6272889",
"0.62501496",
"0.62423784",
"0.6237778",
"0.62362844",
"0.62179404",
"0.61837286",
"0.6171979",
"0.6155463",
"0.6149248",
"0.6147653",
"0.6136822",
"0.61036384",
"0.6103049",
"0.61010504",
"0.6098251",
"0.60931903",
"0.6070257",
"0.60699064",
"0.6068057",
"0.6014262",
"0.60119784",
"0.5992632",
"0.59846365",
"0.5983612",
"0.5980621",
"0.59760475",
"0.59689885",
"0.59678215",
"0.5953737",
"0.5953737",
"0.59484786",
"0.59405965",
"0.5929952",
"0.59203666",
"0.5920316",
"0.5906352",
"0.5903661",
"0.5895684",
"0.5871596",
"0.5862085",
"0.5860881",
"0.58607453",
"0.5854057",
"0.5849453",
"0.5841281",
"0.5828622",
"0.58147794",
"0.5813355",
"0.58106923",
"0.5807655",
"0.5797353",
"0.57913476",
"0.576729",
"0.57473683",
"0.5743384",
"0.57361096",
"0.5720869",
"0.5720626",
"0.57153124",
"0.5713614",
"0.57124513",
"0.57078165",
"0.5705518",
"0.56985044",
"0.5693155",
"0.56881034",
"0.5679456",
"0.567853",
"0.5671866",
"0.5671265",
"0.5668012",
"0.5663784",
"0.5655269",
"0.56411934",
"0.56326294"
]
| 0.5733645 | 81 |
Send a ERROR message and log the exception. | public static void e(String tag, String formatString, Throwable tr, Object... args) {
if (logger != null && isLoggingEnabled(tag, ERROR)) {
try {
logger.e(tag, String.format(Locale.ENGLISH, formatString, args), tr);
} catch (Exception e) {
logger.e(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendNotificationError(Exception e) {\n logger.error(e.getMessage());\n \n }",
"protected abstract void logError(Exception e);",
"private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }",
"public void error(String msg) {\n LOGGER_BASE.error(msg);\n }",
"public void error(String msg) {\n boolean doit = level == Level.NONE || level == Level.INFO;\n if (log != System.err || !doit) {\n System.err.println(msg);\n }\n if (!doit) return;\n write(\"ERROR\", msg); \n }",
"public void sendError(String message) { \r\n this.send(\"Error:\" + message);\t//remember a String IS-A Object!\r\n }",
"@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}",
"public static void error(Object message) {\n\t\tif (logger != null) {\n\t\t\tlogger.log(Level.ERROR, message);\n\t\t}\n\t}",
"public static synchronized void logError(Exception e) {\n\t\te.printStackTrace();\r\n\t}",
"protected void error(String msg, Throwable ex) {\n log.log(Level.SEVERE, msg, ex);\n }",
"private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }",
"public void error(Throwable e);",
"public void sendError(String message) { \n\t\tthis.send(\"Error:\" + message); //remember a String IS-A Object!\n\t}",
"public void error(String message, Throwable throwable);",
"public void logError(String logMsg, Exception e) {\n logger.error(logMsg, e);\n }",
"public static void logError(String message, Throwable e)\n {\n log(IStatus.ERROR, message, e);\n }",
"public static void logError(String message)\n {\n log(IStatus.ERROR, message);\n }",
"static void logError(Throwable t) {\n }",
"private void logError(String msgText) {\n System.out.println (\"[ERROR] \" + msgText);\n \n }",
"public static void error(String message) {\n LOGGER.error(message);\n }",
"public void logError(String message, Throwable throwable) {\n\t\tlogger.log(Level.SEVERE, message, throwable);\n\t\tif (myNode != null) {\n\t\t\tmyNode.observerNotice(MonitoringEvent.CONNECTOR_ERROR, myNode.getNodeId(), WEB_CONNECTOR + message);\n\t\t}\n\t\tif (logHandler != null) { // StreamHandler don't auto flush\n\t\t\tlogHandler.flush();\n\t\t}\n\t}",
"public void error(Object message, Throwable t)\n/* */ {\n/* 213 */ if (message != null) {\n/* 214 */ getLogger().error(String.valueOf(message), t);\n/* */ }\n/* */ }",
"void sendError(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Throwable ex) throws IOException;",
"@ExceptionHandler(Exception.class)\n public void logErrors(Exception e) {\n errorLogger.logError(e.getMessage(), e);\n }",
"public void error(Object message)\n/* */ {\n/* 199 */ if (message != null) {\n/* 200 */ getLogger().error(String.valueOf(message));\n/* */ }\n/* */ }",
"protected void error(String msg) {\n log.log(Level.SEVERE, msg);\n }",
"@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}",
"public static void e(Throwable t) {\n log(ERROR, null, t, \"\");\n }",
"public void error(Exception e);",
"@Override\n\tpublic void error(final Object message) {\n\t\tif (message != null && message instanceof Throwable) {\n\t\t\tlogger.error(\"\", (Throwable) message);\n\t\t} else {\n\t\t\tlogger.error(message);\n\t\t}\t\t\t\t\n\t}",
"public static void error(String message, Throwable t) {\n LOGGER.error(message, t);\n }",
"public void error(String message) {\n\tSystem.err.println(\"Error: \" + message);\n\tthrow new Error(message);\n }",
"abstract void logError(String error);",
"@Override\r\n\tprotected void logError(String message, Throwable throwable) {\n\t\t\r\n\t}",
"void error (String channel, String msg, RootException ex) throws RootException;",
"void error (String channel, String msg) throws RootException;",
"public void logError(String message) {\n logger.logError(\"[\" + game.getName() + \"] \" + message);\n }",
"public void log(ErrorLevel el, String message, Throwable t);",
"public void error(String message) {\n if (mLoggable) {\n try {\n Log.e(mClassName, message);\n } catch (Exception e) {\n Log.e(TAG, e.getMessage());\n }\n }\n }",
"@Override\n public void error(final Object message) {\n this.logger.error(this.prepareDefaultMessage(message));\n }",
"protected void sendError(final Throwable t) {\n main.post(new Runnable() {\n @Override\n public void run() {\n for (ErrWatcher ew : errWatchers) {\n try {\n Log.e(PULSE, \"Sending error to UI\", t);\n ew.onError(t);\n } catch (Error | Exception t) {\n Log.e(PULSE, \"Error while reporting error.\", t);\n }\n }\n }\n });\n }",
"protected void serverError() throws IOException {\n cleanup();\n throw new IOException(\"Recieved error message from server:\\n\" + new String(_text_buffer));\n }",
"private static void error(@NotNull final org.slf4j.Logger logger, @NotNull @NotBlank @NotEmpty final String key,\r\n\t\t\tfinal Throwable exp, final Object... args) {\r\n\t\tif (logger.isErrorEnabled()) {\r\n\t\t\tfinal String message = format(key, args);\r\n\t\t\tif (null == exp) {\r\n\t\t\t\tlogger.error(message);\r\n\t\t\t} else {\r\n\t\t\t\t// Distinguish from JVM error and Defined error\r\n\t\t\t\tif (exp instanceof AbstractException) {\r\n\t\t\t\t\tfinal AbstractException error = (AbstractException) exp;\r\n\t\t\t\t\tlogger.error(\"[ *** ERROR\" + error.getErrorCode() + \" *** ] \" + message);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tlogger.error(\"[ *** JVM ERROR *** ]: \" + message);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void logError(Logger logger, ServerWebExchange exchange, String msg, Object... args) {\n\n if (!logger.isErrorEnabled())\n return;\n\n if (exchange == null) {\n logger.error(msg, args);\n } else {\n String context = exchange.getAttribute(TRACE_ID_CONTEXT_KEY);\n try (MDC.MDCCloseable cMdc = MDC.putCloseable(TRACE_ID_CONTEXT_KEY, context)) {\n logger.error(msg, args);\n }\n }\n }",
"public static void error(String tag, String msg, Throwable ex) {\n if (BuildConfig.DEBUG) {\n Log.e(tag, msg, ex);\n }\n }",
"private void sendOldError(Exception e) {\n }",
"public static void error(Object message) {\n\t\tSystem.out.print(\"! ERROR: \" + message);\n\t}",
"public void logException(Throwable t){\n\t\tSpagoBITracer.debug(SpagoBIConstants.NAME_MODULE, this.getClass().getName(), \n\t\t\t\t \"logException\", t.getClass().getName() + \":\" + t.getMessage());\n\t}",
"private static void error(final ILogger aLogger, final String aMethod,\r\n final String aMessage, final Exception aException) {\r\n ExceptionUtil.error(aLogger, pCLASS_NAME, aMethod, aMessage, aException);\r\n }",
"public void logErr(String msg) {\r\n if (this.logger != null) {\r\n logger.severe(msg);\r\n }\r\n }",
"public static void logErrorMessages(ADFLogger logObject, String logMsg) {\r\n if (logObject.isSevere()) {\r\n logObject.severe(logMsg);\r\n }\r\n }",
"protected void Error(String message) {\n logger.logError(message);\n }",
"@Override\n public void sendError(int arg0, String arg1) throws IOException {\n\n }",
"public void error(Throwable error) {\n\n }",
"public void error(Throwable error) {\n\n }",
"abstract void errorLogMessage(String message);",
"void error (String msg) throws RootException;",
"public void sendError(int i) throws IOException {\n\t\t\n\t}",
"public void sendErrorResponse(MessageExchange exchange) {\n\t\tdoSend(exchange);\n\t}",
"@Override\n\tpublic void error(Message msg) {\n\n\t}",
"@Override\n public void sendError(int arg0) throws IOException {\n\n }",
"void error(ProxyException e) {\n RequestContext.getCurrentContext().setThrowable(e);\n proxyRunner.error();\n logger.warn(e.getMessage(), e);\n }",
"public void error(String message);",
"public void error(String callingObject, Exception e) {\n date = java.util.Calendar.getInstance().getTime();\n String currDebugLog = (date+\" : CRITICAL ERROR!: \" +callingObject+ \" : \" + e.getMessage());\n debugLog.push(currDebugLog);\n System.out.println(currDebugLog);\n }",
"public void sendError(int i, String s) throws IOException {\n\t\t\n\t}",
"private static void logExceptionAndExit(Throwable e) {\n LOGGER.error(\"Got exception when invoked by Mesos, shutting down.\");\n ProcessExit.exit(ProcessExit.ERROR, e);\n }",
"private void logException(TestStepRunner testStepRunner)\n\t\t\tthrows AFTException {\n\t\tLOGGER.error(errorMessage);\n\n\t\tString onDbErrorValue = setOnDbErrorValue(testStepRunner);\n\n\t\tLOGGER.info(\"User has defined '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION\n\t\t\t\t+ \"' to [\"\n\t\t\t\t+ onDbErrorValue\n\t\t\t\t+ \"]. This test case execution will be stopped and test execution will continue as per '\"\n\t\t\t\t+ ConfigProperties.ONERROR_DB_CONNECTION + \"' configuration.\");\n\t\tthrow new AFTException(errorMessage);\n\t}",
"void error (String msg, RootException ex) throws RootException;",
"private void sendError(HttpExchange exchange, java.lang.String error, int errorCode) throws IOException {\n\n\t\tlogger.debug(\"Illegal request from \" + exchange.getRemoteAddress().getHostName() + \": \" + error);\n\t\texchange.sendResponseHeaders(errorCode, 0);\n\t\texchange.close();\n\t\treturn;\n\n\t}",
"protected void logException(Exception e) {\r\n if (log.isErrorEnabled()) {\r\n log.logError(LogCodes.WPH2004E, e, e.getClass().getName() + \" processing field \");\r\n }\r\n }",
"public void replyError(User teller, Throwable t) {\n t.printStackTrace(System.err);\n command.tell(teller, \"Error - \" + t.getMessage());\n }",
"public static void errorln(Object message) {\n\t\tSystem.out.println(\"! ERROR: \" + message);\n\t}",
"public void error(String message, String sysid, int line, int column)\n\t\t\t\tthrows Exception {\n\t\t\tif (sysid != null) {\n\t\t\t\tlogError(\"[\" + sysid + \"] \" + message);\n\t\t\t} else {\n\t\t\t\tlogError(message);\n\t\t\t}\n\t\t}",
"public void replyError(String teller, Throwable t) {\n t.printStackTrace(System.err);\n command.tell(teller, \"Error - \" + t.getMessage());\n }",
"private void sendErrorEmail(FlowRunner runner) {\n \t\tExecutableFlow flow = runner.getFlow();\n \t\tList<String> emailList = flow.getFailureEmails();\n \t\tif (emailList != null && !emailList.isEmpty() && mailer != null) {\n \n \t\t\ttry {\n \n \t\t\t\tString subject = \"Flow '\" + flow.getFlowId() + \"' has completed on \"\n \t\t\t\t\t\t+ InetAddress.getLocalHost().getHostName() + \"!\";\n \t\t\t\tString body = \"The Flow '\" + flow.getFlowId() + \"' failed. \\n See logs below: \\n\";\n \t\t\t\tfor (String URL : getLogURLs(runner)) {\n \t\t\t\t\tbody += (URL + \"\\n\");\n \t\t\t\t}\n \n \t\t\t\tmailer.sendEmailIfPossible(senderAddress, emailList, subject, body);\n \t\t\t} catch (UnknownHostException uhe) {\n \t\t\t\tlogger.error(uhe);\n \t\t\t} catch (Exception e) {\n \t\t\t\tlogger.error(e);\n \t\t\t}\n \t\t}\n \t}",
"public static void logError(Context context, Exception e, String message){\n if(logging){\n String tag = context.getClass().getName();\n if(e == null) android.util.Log.e(tag, message);\n else if(message == null) android.util.Log.e(tag, e.getMessage(), e.getCause());\n else android.util.Log.e(tag, message, e.getCause());\n }\n }",
"public void error(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 71 */ this.logger.error(loggerFqcn, message, t);\n/* */ }",
"public void error() {\n throw new RuntimeException(getClass().getName() + \" error\");\n }",
"public void socketError(Exception arg0) {\n\t\t\r\n\t}",
"@SuppressWarnings(\"unused\")\n protected void error(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isErrorEnabled()) {\n this.getContainer().getLogger().error(msg);\n }\n }",
"@Override\n\tpublic void error(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public static void e(String tag, String msg, Throwable tr) {\n if (logger != null && isLoggingEnabled(tag, ERROR)) {\n logger.e(tag, msg, tr);\n }\n }",
"@Override\n\tpublic void error(CharSequence message, Throwable t) {\n\n\t}",
"public void writeError( Exception e\n , String errorString) {\n writeError(e, errorString, null);\n }",
"public boolean sendError(XMPPBean bean, String error){\n\t\tSystem.out.println(\"Player.sendError() \" + bean.getNamespace());\n\t\tbean.setFrom(fromJID);\n\t\tbean.setTo(jid);\n\t\tbean.setType(XMPPBean.TYPE_ERROR);\n\t\tbean.errorCondition = \"a\";\n\t\tbean.errorText = \"error\";\n\t\tbean.errorType = \"a\";\n\t\t\n\t\tconnection.sendPacket(new BeanIQAdapter(bean));\n\t\treturn true;\n\t}",
"private static void error(String msg) {\r\n\t\tlogger.severe(msg);\r\n\t\tSystem.exit(0);\r\n\t}",
"public static void e(String tag, String msg) {\n if (logger != null && isLoggingEnabled(tag, ERROR)) {\n logger.e(tag, msg);\n }\n }",
"@Override\n\tpublic void error(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"private void sendInternalError(Exception e) {\n LOG.error(\"Error after vertex manager callback \" + managedVertex.getLogIdentifier(), e);\n appContext.getEventHandler().handle(\n (new DAGEventInternalError(managedVertex.getVertexId().getDAGID(),\n \"Error in VertexManager for vertex: \" + managedVertex.getLogIdentifier()\n + \", error=\" + ExceptionUtils.getStackTrace(e))));\n }",
"abstract void errorLogError(String error);",
"@Override\n\tpublic void error(Object message) {\n\n\t}",
"@Override\n public void logError(String message) {\n Log.e(_projectName, message);\n }",
"public static void error(Object arg0) {\n MDC.put(classNameProp, \"\");\n setErrorCode(MessageCodes.GENERAL_ERROR);\n errorLogger.error(MessageCodes.GENERAL_ERROR, \"\" + arg0);\n }",
"public static void logError(Class clz, Exception e, String message){\n if(logging){\n String tag = clz.getName();\n if(e == null) android.util.Log.e(tag, message);\n else if(message == null) android.util.Log.e(tag, e.getMessage(), e.getCause());\n else android.util.Log.e(tag, message, e.getCause());\n }\n }",
"public static void logServiceError(AmazonServiceException ase) {\n\t\tlogger.error(\"Caught an AmazonServiceException, which means your request made it \"\n\t\t\t\t+ \"to Amazon , but was rejected with an error response for some reason.\");\n\t\tlogger.error(\"Error Message: \" + ase.getMessage());\n\t\tlogger.error(\"HTTP Status Code: \" + ase.getStatusCode());\n\t\tlogger.error(\"AWS Error Code: \" + ase.getErrorCode());\n\t\tlogger.error(\"Error Type: \" + ase.getErrorType());\n\t\tlogger.error(\"Request ID: \" + ase.getRequestId());\n\t}",
"private static final void log(Throwable e) {\n\t\tlog.println(e);\n\t}",
"public void errorOccured(String errorMessage, Exception e);",
"public static void error(String arg0) {\n MDC.put(classNameProp, \"\");\n setErrorCode(MessageCodes.GENERAL_ERROR);\n errorLogger.error(MessageCodes.GENERAL_ERROR, arg0);\n }",
"protected void logError( HttpServletRequest req, HttpServletResponse resp, Exception ex, String str ) {\r\n\ttry {\r\n\t StringBuffer sb = new StringBuffer();\r\n\t sb.append(\"\\n---------- Gateway error:\\n\");\r\n\t sb.append(\"Error message: \" + str + \"\\n\");\r\n\t sb.append(\"Request method: \" + req.getMethod() + \"\\n\");\r\n\t sb.append(\"Query string: \" + req.getQueryString() + \"\\n\");\r\n\t sb.append(\"Content length: \" + req.getContentLength() + \"\\n\");\r\n\t sb.append(\"Cookies: ( session info )\\n\");\r\n\t Cookie[] cookies = req.getCookies();\r\n\t if (cookies == null || cookies.length == 0)\r\n\t\tsb.append(\"No cookies in the HTTP request\\n\");\r\n\t else {\r\n\t\tfor (int i = 0; i < cookies.length; i++) {\r\n\t\t sb.append(\"\\tName: \" + cookies[i].getName() + \"\\t\" + \"Value: \" + cookies[i].getValue() + \"\\n\");\r\n\t\t}\r\n\t }\r\n\t sb.append(\"\\n\");\r\n\t m_ctx.log( sb.toString(), ex );\r\n\t} catch (Exception e) {\r\n\t System.err.println(\"Error logging a message\");\r\n\t}\r\n }",
"public void sendErr() {\n Datagram errDatagram = makeFIN(datagram);\n PayLoad payLoad = (PayLoad) (errDatagram.getData());\n payLoad.setERR(true);\n payLoad.setActualData(\"File not found on server.\".getBytes());\n errDatagram.setChecksum(CheckSumService.generateCheckSum(errDatagram));\n\n try {\n ttpService.sendDatagram(errDatagram);\n } catch (IOException i) {\n i.printStackTrace();\n }\n System.out.println(\"TTPServer: ERR datagram sent to client.\");\n if (connections.containsKey(curKey)) {\n ttpService.closeConnection(connections, curKey);\n }\n System.out.println(\"TTPServer: Connection with client closed\");\n }",
"public static void logClientError(AmazonClientException ace) {\n\t\tlogger.error(\"Caught an AmazonClientException, which means the client encountered \"\n\t\t\t\t+ \"a serious internal problem while trying to communicate with , \"\n\t\t\t\t+ \"such as not being able to access the network.\");\n\t\tlogger.error(\"Error Message: \" + ace.getMessage());\n\t}"
]
| [
"0.70564556",
"0.6940762",
"0.6725827",
"0.65844864",
"0.6569879",
"0.65481734",
"0.65316206",
"0.6530325",
"0.6466465",
"0.64509684",
"0.6432705",
"0.64268893",
"0.6425053",
"0.6420613",
"0.6418762",
"0.6391024",
"0.6384096",
"0.63747203",
"0.6372607",
"0.63412845",
"0.6339653",
"0.6329081",
"0.6293193",
"0.6282365",
"0.6272889",
"0.62501496",
"0.62423784",
"0.6237778",
"0.62362844",
"0.62179404",
"0.61837286",
"0.6171979",
"0.6155463",
"0.6149248",
"0.6147653",
"0.6136822",
"0.61036384",
"0.6103049",
"0.61010504",
"0.6098251",
"0.60931903",
"0.6070257",
"0.60699064",
"0.6068057",
"0.6014262",
"0.60119784",
"0.5992632",
"0.59846365",
"0.5983612",
"0.5980621",
"0.59760475",
"0.59689885",
"0.59678215",
"0.5953737",
"0.5953737",
"0.59484786",
"0.59405965",
"0.5929952",
"0.59203666",
"0.5920316",
"0.5906352",
"0.5903661",
"0.5895684",
"0.5871596",
"0.5862085",
"0.5860881",
"0.58607453",
"0.5854057",
"0.5849453",
"0.5841281",
"0.5828622",
"0.58147794",
"0.5813355",
"0.58106923",
"0.5807655",
"0.5797353",
"0.57913476",
"0.576729",
"0.57473683",
"0.5743384",
"0.57361096",
"0.5733645",
"0.5720869",
"0.5720626",
"0.57153124",
"0.5713614",
"0.57124513",
"0.57078165",
"0.5705518",
"0.56985044",
"0.5693155",
"0.56881034",
"0.5679456",
"0.567853",
"0.5671866",
"0.5671265",
"0.5668012",
"0.5663784",
"0.5655269",
"0.56411934",
"0.56326294"
]
| 0.0 | -1 |
Send a ERROR message. | public static void e(String tag, String formatString, Object... args) {
if (logger != null && isLoggingEnabled(tag, ERROR)) {
try {
logger.e(tag, String.format(Locale.ENGLISH, formatString, args));
} catch (Exception e) {
logger.e(tag, String.format(Locale.ENGLISH, "Unable to format log: %s", formatString), e);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }",
"public void sendError(String message) { \r\n this.send(\"Error:\" + message);\t//remember a String IS-A Object!\r\n }",
"public void sendError(String message) { \n\t\tthis.send(\"Error:\" + message); //remember a String IS-A Object!\n\t}",
"@Override\n public void sendError(int arg0, String arg1) throws IOException {\n\n }",
"public void sendError(int i, String s) throws IOException {\n\t\t\n\t}",
"public void sendError(int i) throws IOException {\n\t\t\n\t}",
"public void error(String message);",
"@Override\n public void sendError(int arg0) throws IOException {\n\n }",
"@Override\n\tpublic void error(Message msg, Throwable t) {\n\n\t}",
"public void sendErr() {\n Datagram errDatagram = makeFIN(datagram);\n PayLoad payLoad = (PayLoad) (errDatagram.getData());\n payLoad.setERR(true);\n payLoad.setActualData(\"File not found on server.\".getBytes());\n errDatagram.setChecksum(CheckSumService.generateCheckSum(errDatagram));\n\n try {\n ttpService.sendDatagram(errDatagram);\n } catch (IOException i) {\n i.printStackTrace();\n }\n System.out.println(\"TTPServer: ERR datagram sent to client.\");\n if (connections.containsKey(curKey)) {\n ttpService.closeConnection(connections, curKey);\n }\n System.out.println(\"TTPServer: Connection with client closed\");\n }",
"void error (String channel, String msg) throws RootException;",
"public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }",
"private void sendError(HttpExchange exchange, java.lang.String error, int errorCode) throws IOException {\n\n\t\tlogger.debug(\"Illegal request from \" + exchange.getRemoteAddress().getHostName() + \": \" + error);\n\t\texchange.sendResponseHeaders(errorCode, 0);\n\t\texchange.close();\n\t\treturn;\n\n\t}",
"public void error(String error)\n\t\t\t{\n\t\t\t\tsend(\"<error>\", false);\n\t\t\t\tsend(error, true);\n\t\t\t\tsend(\"</error>\", false);\n\t\t\t}",
"public void writeErrorMessageToClient(String errMessage) throws IOException {\n writeToClient(\"ERROR: \" + errMessage);\n }",
"public boolean sendError(XMPPBean bean, String error){\n\t\tSystem.out.println(\"Player.sendError() \" + bean.getNamespace());\n\t\tbean.setFrom(fromJID);\n\t\tbean.setTo(jid);\n\t\tbean.setType(XMPPBean.TYPE_ERROR);\n\t\tbean.errorCondition = \"a\";\n\t\tbean.errorText = \"error\";\n\t\tbean.errorType = \"a\";\n\t\t\n\t\tconnection.sendPacket(new BeanIQAdapter(bean));\n\t\treturn true;\n\t}",
"@Override\n\tpublic void error(Message msg) {\n\n\t}",
"void error (String msg) throws RootException;",
"private void sendOldError(Exception e) {\n }",
"public static void error(Object message) {\n\t\tSystem.out.print(\"! ERROR: \" + message);\n\t}",
"public void error(String message, Throwable throwable);",
"void error (String channel, String msg, RootException ex) throws RootException;",
"@Override\n\tpublic void error(Object message, Throwable t) {\n\n\t}",
"public void error(Exception e);",
"private void sendNotificationError(Exception e) {\n logger.error(e.getMessage());\n \n }",
"void sendError(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Throwable ex) throws IOException;",
"public void sendErrorNotification(String msg){\n this.sendNotification(1, ATTENTION, msg, R.drawable.ic_stat_error_outline);\n }",
"public void error(String message) {\n ui.say(\"ERROR: \" + message);\n }",
"public void error(String msg) {\n LOGGER_BASE.error(msg);\n }",
"public void sendError(String xml, PrintWriter out) throws Exception {\n send(new StringReader(xml), out, m_errorTemplates);\n }",
"protected void serverError() throws IOException {\n cleanup();\n throw new IOException(\"Recieved error message from server:\\n\" + new String(_text_buffer));\n }",
"@Override\n\tpublic void error(Object message) {\n\n\t}",
"@Override\n\tpublic void error(CharSequence message, Throwable t) {\n\n\t}",
"public void error(String message) {\n\tSystem.err.println(\"Error: \" + message);\n\tthrow new Error(message);\n }",
"public void error(Throwable e);",
"public void sendErrorResponse(MessageExchange exchange) {\n\t\tdoSend(exchange);\n\t}",
"public void sendErrorMessage( int statusCode ) {\r\n\r\n\t\tString httpVersion = HttpdConf.DEFAULT_HTTP_VERSION;\r\n\t\tif ( request != null && request.getHttpVersion() != null )\r\n\t\t\thttpVersion = request.getHttpVersion();\r\n\r\n\t\ttry {\r\n\r\n\t\t\tFile errorFile = new File( ERROR_FILE_PATH + Integer.toString( statusCode ) + \".html\" );\r\n\t\t\tHeaderBuilder builder = new HeaderBuilder();\r\n\t\t\tString headerMessage = builder.buildHeaderBegin( statusCode, httpVersion )\r\n\t\t\t\t\t.buildContentTypeAndLength( errorFile ).toString();\r\n\t\t\twriteHeaderMessage( headerMessage );\r\n\t\t\tserveFile( errorFile );\r\n\r\n\t\t} catch ( ServerException se ) {\r\n\t\t\tse.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"public void error();",
"public void replyError(String teller, Throwable t) {\n t.printStackTrace(System.err);\n command.tell(teller, \"Error - \" + t.getMessage());\n }",
"public void errorOccured(String errorMessage, Exception e);",
"protected abstract void error(String err);",
"public void replyError(User teller, Throwable t) {\n t.printStackTrace(System.err);\n command.tell(teller, \"Error - \" + t.getMessage());\n }",
"void err( Object msg );",
"public void error(String msg) {\n boolean doit = level == Level.NONE || level == Level.INFO;\n if (log != System.err || !doit) {\n System.err.println(msg);\n }\n if (!doit) return;\n write(\"ERROR\", msg); \n }",
"public void errorFromKernel (String error) {\n clientCommunicationManager.sendErrorToAll(\"NETWORK\", \"[ERROR JUPYTER] \" + error);\n }",
"protected void reply_error(String message) {\n try {\n byte[] err = PushCacheProtocol.instance().errorPacket(message);\n _socket.getOutputStream().write(err, 0, err.length);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"protected void sendError(final Throwable t) {\n main.post(new Runnable() {\n @Override\n public void run() {\n for (ErrWatcher ew : errWatchers) {\n try {\n Log.e(PULSE, \"Sending error to UI\", t);\n ew.onError(t);\n } catch (Error | Exception t) {\n Log.e(PULSE, \"Error while reporting error.\", t);\n }\n }\n }\n });\n }",
"public void sendError(int errorCode, String msg) {\n\t\t\tif (isCloseOnSendingError || ((errorCode >= 500) && IS_CLOSE_CONNECTION_ON_5XX_RESPONSE)) {\n\t\t\t\tsetPersistent(false);\n\t\t\t}\n\t\t\t\n\t\t\tif (isResponseCommitted()) {\n\t\t\t\tthrow new IllegalStateException(\"response is already committed\"); \n\t\t\t}\n\n\t\t\tsuper.sendError(errorCode, msg);\n\t\t}",
"public abstract void errWrite(final String msg);",
"private void logError(String msgText) {\n System.out.println (\"[ERROR] \" + msgText);\n \n }",
"public static void errorln(Object message) {\n\t\tSystem.out.println(\"! ERROR: \" + message);\n\t}",
"public void Error(String error) throws RemoteException;",
"public void onReceivedError();",
"private void error(WebSocketSession session, String message) {\n\t\tJsonObject response = new JsonObject();\n\t\tresponse.addProperty(\"id\", \"error\");\n\t\tresponse.addProperty(\"message\", message);\n\t\tsendMessage(session, new TextMessage(response.toString()));\n\n\t\t// Release media session\n\t\trelease(session);\n\t}",
"void error (String msg, RootException ex) throws RootException;",
"@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}",
"public void error(Object message)\n/* */ {\n/* 199 */ if (message != null) {\n/* 200 */ getLogger().error(String.valueOf(message));\n/* */ }\n/* */ }",
"abstract void error(String error);",
"public void sendError(PrintWriter pWriter, String sessionId, String errorMsg) {\n XML message = new XML(\"Message\");\n XML reply = new XML(\"Reply\"); \n XML error = new XML(\"Error\");\n \n error.addAttribute(\"elements\", errorMsg);\n reply.addElement(error);\n message.addElement(reply);\n \n // If there is an error before the session has started then\n // the sessionId is null\n if (sessionId != null) {\n error.addAttribute(\"windowId\", sessionId);\n }\n else {\n error.addAttribute(\"windowId\", \"None\");\n }\n \n sendReply(pWriter, buildHeader(\"Message\") + message.toString());\n }",
"public void requestError(java.lang.String msg){\r\n\t\tIterator <RobotEngineObserver> robOb = this.iterator();\r\n\t\twhile (robOb.hasNext()){\r\n\t\t\trobOb.next().raiseError(msg);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void error(Marker marker, Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"protected void initError(String message, COMMAND command) {\t\n\t String id = (command != null ? command.getId() : \"no-command\");\t \n\t \n\t COMMAND_DONE done = new COMMAND_DONE(id);\n\t done.setSuccessful(false);\n\t done.setErrorNum(SERVER_INITIALIZATION_ERROR);\n\t done.setErrorString(\"Command: [\"+id+\"]: CAMP::\"+message);\n\t \n\t try { \t\n\t\tif (connection != null)\n\t\t connection.send(done); \n\t } catch (IOException e) {\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Failed to send error: \"+e);\n\t }\n\t \n\t if (handler != null)\n\t\thandler.dispose();\n\t if (connection != null)\n\t\tconnection.close();\n\t connection = null;\n\t command = null;\n\t \n\t}",
"private void err(Messenger replyTo, int encoderId, Bundle info) {\n\n // obtain new message\n Message message = obtainMessage(Geotracer.MESSAGE_TYPE_ERROR, encoderId, 0);\n message.setData(info);\n\n // send response\n send(replyTo, message);\n }",
"public abstract void setError(String message);",
"public void error(Throwable error) {\n\n }",
"public void error(Throwable error) {\n\n }",
"void showError(String message);",
"void showError(String message);",
"public void showError(String error);",
"private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"abstract void consoleError(String error);",
"private void sendResultError(CallbackContext callbackContext, String payload) {\n // Compone el mensaje de respuesta.\n PluginResult pluginResult = new PluginResult(PluginResult.Status.ERROR, payload);\n\n // Envia la respuesta a la llamada.\n callbackContext.sendPluginResult(pluginResult);\n }",
"abstract void errorLogMessage(String message);",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"public void respondToError(Object source, String msg);",
"void messageSendFailed(IMSession session, String messageId, ReasonInfo reason);",
"public void onError(String errorMessage);",
"@Then(\"^Mostrara mensaje de error$\")\n\tpublic void Mostrara_mensaje_de_error() throws Throwable {\n\t System.out.println(\"El email o la contrase�a es erronea\");\n\t assert(true);\n\t}",
"public void onError(String err, String nick);",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"private void logError(String msg)\n {\n GlobeRedirector.errorLog.write(msg);\n }",
"void errorResponse( String error );",
"protected void ERROR(String message)\n\t{\n\t\t//allow children to modify output\n\t\tPRINT(message);\n\t\tSystem.exit(1);\n\t}",
"public final void mERROR() throws RecognitionException {\r\n try {\r\n int _type = ERROR;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // Satmc.g:12:7: ( '% ERROR:' )\r\n // Satmc.g:12:9: '% ERROR:'\r\n {\r\n match(\"% ERROR:\"); \r\n\r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public void sendErrorMessage(String message){\n JOptionPane.showMessageDialog(this,\n message,\n \"error\",\n JOptionPane.ERROR_MESSAGE);\n }",
"void error(String messageKey, Object... args);",
"@Override\n public void errorReceived(String msg, Exception t) {\n abort();\n // abort() calls sendError() which calls unregister()\n // so don't bother\n // unregister();\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1) {\n\n\t}",
"public static void sendErrorMessageToClient(GameServer server, ChannelHandlerContext ctx, String message) {\n Command displayErrorCommand = new Command();\n displayErrorCommand.setCommandName(\"displayError\");\n displayErrorCommand.setCommandArgs(new Object[] {message});\n server.sendCommandToClient(displayErrorCommand, ctx.getChannel());\n }",
"@Override\n\tpublic void error(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"public static int error () {\n System.out.println(\"ERROR\");\n hasError = true;\n return -1;\n }",
"public void playerError(Player player, String message){\n\t\tplayer.sendMessage(ChatColor.RED + message);\n\t}",
"protected void errorMessage( String message, OutputStream out ) throws IOException {\n out.write( message.getBytes() );\n error(message);\n }",
"public void doError (int status, String message) {\n\tthis.statusCode = Integer.toString (status);\n\tHttpHeader header = responseHandler.getHeader (\"HTTP/1.0 400 Bad Request\");\n\tStringBuilder error = \n\t new StringBuilder (HtmlPage.getPageHeader (this, \"400 Bad Request\") +\n\t\t\t \"Unable to handle request:<br><b>\" + \n\t\t\t message +\n\t\t\t \"</b></body></html>\\n\");\n\theader.setContent (error.toString ());\n\tsendAndClose (header);\n }",
"void errorOccurred(@Nonnull String errorMessage);",
"public void socketError(Exception arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void error(String message, Object... params) {\n\n\t}",
"public void error(String errCond, Expression place, String msg)\n {\n ModuleContext module = place.module;\n if(module == null)\n module = this;\n module.error(errCond, place.offset, msg);\n }"
]
| [
"0.7754052",
"0.7651604",
"0.7534466",
"0.7182982",
"0.71062297",
"0.70660836",
"0.70261765",
"0.6972262",
"0.6839237",
"0.6820049",
"0.6795015",
"0.6752878",
"0.67525667",
"0.6726144",
"0.67162687",
"0.66982776",
"0.66602004",
"0.6613069",
"0.66100997",
"0.6568051",
"0.65511566",
"0.6547882",
"0.65230125",
"0.6510877",
"0.64862317",
"0.64781755",
"0.6464842",
"0.64289665",
"0.6426575",
"0.64134896",
"0.6410103",
"0.6397974",
"0.6376524",
"0.63692164",
"0.63623905",
"0.63471293",
"0.6326903",
"0.63247114",
"0.6324559",
"0.63221514",
"0.63214266",
"0.6305775",
"0.62987185",
"0.6289295",
"0.6249213",
"0.62462205",
"0.62362236",
"0.62128323",
"0.6212549",
"0.6211944",
"0.62104416",
"0.6200441",
"0.6199513",
"0.61847115",
"0.6179788",
"0.6173688",
"0.61628217",
"0.6158655",
"0.6149937",
"0.6143409",
"0.6141847",
"0.61409",
"0.6131714",
"0.6127897",
"0.61235",
"0.61224735",
"0.61224735",
"0.6115927",
"0.6115927",
"0.611073",
"0.6110186",
"0.60947454",
"0.6092095",
"0.6087022",
"0.60747117",
"0.6062555",
"0.6059953",
"0.60474735",
"0.604483",
"0.6034492",
"0.60343015",
"0.60254467",
"0.6024869",
"0.6022954",
"0.6007933",
"0.59882605",
"0.59810024",
"0.5971438",
"0.59686136",
"0.5956997",
"0.59499687",
"0.5946831",
"0.5943203",
"0.5941782",
"0.5938986",
"0.5937104",
"0.593419",
"0.59234184",
"0.5923238",
"0.5899025",
"0.5864395"
]
| 0.0 | -1 |
Function sets the Join status error message and sets the status to FAILED. | public JoinStatusImpl(String errorMessage) {
this.errorMessage = errorMessage;
status = Status.FAILED;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFailStatus(java.lang.String newFailStatus) {\n\tfailStatus = newFailStatus;\n}",
"@Override\n\tpublic void onJoinFailed() {\n\n\t}",
"public EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus,\n\t\t\tString aReason) {\n\t\tthis.status = aStatus;\n\t\tthis.reason = aReason;\n\t}",
"public void setError(Long messageUid, String notificationLocalId, String errorMessage, String status);",
"@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}",
"public void engineFailureStatus() {\n \tthis.engineFailureActive = this.trainModelGUI.engineFailStatus();\n }",
"public void setStatusMessage(IStatus status);",
"public void setErrorStatus(String errorStatus) {\r\n this.errorStatus = errorStatus;\r\n }",
"@Then(\"^user gets login failed error message$\")\r\n public void user_gets_login_failed_error_message() throws Throwable {\n throw new PendingException();\r\n }",
"public void sendFailed(LinkLayerMessage message) {\n\t\t\n\t}",
"public void setStatus(String status) throws ValidateException {\n\n this.status = status;\n }",
"@Override\n public void fail(String status, String msg, Object object) {\n\n }",
"@CrossOrigin\n\t@RequestMapping(value=\"/setFailure\", method= RequestMethod.POST)\n\tpublic JSONObject setFailure(@RequestBody StatusRequestBodyMessage requestBody, @RequestHeader HttpHeaders headers) {\n\t\tHeadersManager.setHeaders(headers);\n\t\ttry {\n\t\t String jobId = requestBody.jobId;\n\t\t \n\t\t SimpleResultSet res = new SimpleResultSet();\n\t\t LoggerRestClient logger = LoggerRestClient.getInstance(log_prop);\n\t \tLoggerRestClient.easyLog(logger, \"Status Service\", \"setFailure start\", \"JobId\", jobId, \"Message\", requestBody.message);\n\t \tLocalLogger.logToStdOut(\"Status Service setFailure start JobId=\" + jobId + \" Message=\" + requestBody.message);\n\t \t\n\t\t try {\n\t\t \t\n\t\t \tJobTracker tracker = this.getTracker();\n\t\t \ttracker.setJobFailure(jobId, requestBody.message);\n\t\t\t res.setSuccess(true);\n\t\t\t \n\t\t } catch (Exception e) {\n\t\t \tres.setSuccess(false);\n\t\t \tres.addRationaleMessage(SERVICE_NAME, \"setFailure\", e);\n\t\t\t LoggerRestClient.easyLog(logger, \"Status Service\", \"setFailure exception\", \"message\", e.toString());\n\t\t\t LocalLogger.logToStdOut(\"Status Service setFailure exception message=\" + e.toString());\n\t\t } \n\t\t \n\t\t return res.toJson();\n\t\t \n\t\t} finally {\n\t \tHeadersManager.clearHeaders();\n\t }\n\t\t \n\t}",
"public void setStatus(String newStatus)throws Exception{\n\t\t\n\t\tthis.status = newStatus;\n\t\toverWriteLine(\"Status\", newStatus);\n\t}",
"SendFailure() {\n super(ACLMessage.FAILURE);\n }",
"void setContainerStatusError(RuleContextContainer rccContext, String sStatusInfo)\r\n throws StorageProviderException;",
"public void setStatus(JobStatus status);",
"private static void setFailed() {\n HealthCheck.failed = true;\n }",
"void setContainerStatusActionError(RuleContextContainer rccContext, String sStatusInfo)\r\n throws StorageProviderException;",
"protected void error(String status) {\n // If we were aborted, just dismiss.\n if(mWasAborted)\n dismiss();\n else {\n // First, display the fail text. This uses the plain addStatus.\n // This will, of course, be taken down right away, but it's best to\n // put up at least the \"failed\" text.\n addStatusAndNewline(R.string.wiki_conn_failure);\n \n // Second, add the specific error text. This will add in the error\n // flag. This won't use the addStatus family of methods because we\n // need that flag in there.\n Message msg = mHandler.obtainMessage(DIALOG_ERROR, status);\n mHandler.sendMessage(msg);\n }\n }",
"public void brakeFailureStatus() {\n \tthis.brakeFailureActive = this.trainModelGUI.brakeFailStatus();\n }",
"public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }",
"public void signalFailureStatus() {\n \tthis.signalFailureActive = this.trainModelGUI.signalFailStatus();\n \tif(this.signalFailureActive) {\n \tthis.setGPSAntenna(true);\n \tthis.setMBOAntenna(true);\n \t} else {\n \t\tthis.setGPSAntenna(false);\n \tthis.setMBOAntenna(false);\n \t}\n\n \t\n }",
"private void updatestatuscode() {\r\n String error = null;\r\n if (inValidStatus()) {\r\n error = getJson(\"msg\");\r\n }\r\n if (error != null) {\r\n if (error.equals(\"Cannot login Check your username or pass\")) {\r\n statuscode = 1;\r\n } else if (error.equals(\"Your account is not premium\")) {\r\n statuscode = 2;\r\n } else {\r\n /* TODO: Enable code below once all known errors are correctly handled */\r\n // statuscode = 666;\r\n }\r\n } else {\r\n if (inValidStatus() && \"null\".equalsIgnoreCase(getJson(\"link\"))) {\r\n statuscode = 3;\r\n } else {\r\n /* Everything should be ok */\r\n statuscode = 0;\r\n }\r\n }\r\n }",
"public EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus,\n\t\t\tString aReason, String aLanguage) {\n\t\tthis.status = aStatus;\n\t\tthis.reason = aReason;\n\t\tthis.language = aLanguage;\n\t}",
"public void setStatus(EPPNameVerificationStatus aStatus) {\n\t\tthis.status = aStatus;\n\t}",
"public void doError (int status, String message) {\n\tthis.statusCode = Integer.toString (status);\n\tHttpHeader header = responseHandler.getHeader (\"HTTP/1.0 400 Bad Request\");\n\tStringBuilder error = \n\t new StringBuilder (HtmlPage.getPageHeader (this, \"400 Bad Request\") +\n\t\t\t \"Unable to handle request:<br><b>\" + \n\t\t\t message +\n\t\t\t \"</b></body></html>\\n\");\n\theader.setContent (error.toString ());\n\tsendAndClose (header);\n }",
"private void handleSignInFailure( String statusMessage ) {\n\t\tgpAccessToken = null;\n\t\tString msg = \"Unsuccessful login.\\nStatus message:\\n\" + statusMessage;\n\t\tsocialAccountInfo.setTextColor(getColor(android.R.color.holo_red_dark));\n\t\tsocialAccountInfo.setText(msg);\n\t\tisLoggedInGoogle = false;\n\t}",
"protected void setStatus(LDBException e) throws LRException\n\t{\n\t\tgetBackground();\n\t\tbackground.setStatus(e);\n\t}",
"public void setStatus(Long messageUid, String status);",
"public void testSetSubmissionStatus() {\n try {\n sub.setSubmissionStatus(null);\n } catch (Exception e) {\n fail(\"Should not throw anything.\");\n }\n }",
"protected void logStatusMessage(int status) {\n switch (status) {\n case EXIT_OK:\n logger.info(\"SCHEMA CHANGE: OK\");\n break;\n case EXIT_BAD_ARGS:\n logger.severe(\"SCHEMA CHANGE: BAD ARGS\");\n break;\n case EXIT_RUNTIME_ERROR:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n case EXIT_VALIDATION_FAILED:\n logger.warning(\"SCHEMA CHANGE: FAILED\");\n break;\n default:\n logger.severe(\"SCHEMA CHANGE: RUNTIME ERROR\");\n break;\n }\n }",
"public Problem status(String status) {\n this.status = status;\n return this;\n }",
"public void failed(String msg) {\n failureMsg = msg;\n }",
"public Status createFailedResult(Status status) {\n return status;\n }",
"public void setStatus(StatusOfCause status) {\n\t\tthis.statusValue = status.value;\n\t}",
"public abstract void setStatus(String message);",
"private void setStatus(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n status_ = value;\n }",
"public UnifiedFormat setErrorStatus(String message, Integer code) {\n setErrorStatus(message, code, null, null);\n return this;\n }",
"private int handleJoin(int pid, int status){\n\t\tSystem.out.print(\"JOINING...\");\n\t\tif(pid < 0 || status < 0) return INVALID;\n\n\t\tif(!childProcesses.containsKey(pid)) {\n\t\t\tSystem.out.println(\"No child with id:\" + pid);\n\t\t\treturn INVALID;\n\t\t}\n\t\tUserProcess child = childProcesses.remove(pid);\n\n\t\t//Not living thread\n\t\tif(child == null) return INVALID;\n\n\t\tchild.thread.join();\n\n\t\tchild.parentProcess = null;\n\n\t\tlock.acquire();\n\t\tint exStatus = child.exitStatus;\n\t\tlock.release();\n\n\t\tbyte[] buffer;\n\n\t\t//maybe add a check here\n\t\tbuffer=Lib.bytesFromInt(exStatus);\n\n\t\treturn(writeVirtualMemory(status, buffer) != 4) ? EXCEPTION : 1;\n\t}",
"public RavelloException(int status, Object errorMessage) {\n this.status = status;\n this.errorMessage = errorMessage;\n }",
"private void addTransitionsToFailed() {\n List<ReplicateStatus> abortable = getFailableStatuses();\n addTransition(abortable, FAILED);\n addTransition(WORKER_LOST, FAILED); // when <status> -> WORKER_LOST -> FAILED\n addTransition(RECOVERING, FAILED); // when <status> -> RECOVERING -> FAILED\n }",
"public final void setStatus(int sts, String msg)\n\t{\n\t\tm_status = sts;\n\t\tm_statusMsg = msg;\n\t}",
"public void setStatusMessage(java.lang.String statusMessage) {\r\n this.statusMessage = statusMessage;\r\n }",
"protected void status(String status) throws InvalidKeyException {\n task.setStatus(status);\n }",
"public void setError(String parseStatus) {\n this.parseStatus = parseStatus;\n }",
"void setStatus(java.lang.String status);",
"private String getStatusMessage() {\n\t\treturn (m_isTestPassed == true) ? \" successfully...\" : \" with failures...\";\n\t}",
"public ScriptingException(IStatus status){\n\t\tsuper(status.getMessage());\n\t\tthis.status = status;\n\t}",
"void error() {\n status = ERROR;\n System.out.println(\"error\");\n stateChanged();\n }",
"@Override\n\t\tpublic void setStatus(int status) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void setStatus(int status);",
"public abstract void updateStatus() throws Throwable;",
"public void setStatus(String status) { this.status = status; }",
"public void setStatus(java.lang.String status) {\r\n this.status = status;\r\n }",
"public ValidationErrorEmerson(Long timestamp, Integer status, String error, String message, String path) {\n\t\tsuper(timestamp, status, error, message, path);\n\t}",
"public void setStatus(java.lang.Object status) {\n this.status = status;\n }",
"public void updateStatus(int status) {\n switch (status) {\n case STATE_CHILD_SA_DOWN:\n if(!mIsDisconnecting) {\n setState(State.CONNECTING, ErrorState.NO_ERROR);\n }\n break;\n case STATE_CHILD_SA_UP:\n setState(State.CONNECTED, ErrorState.NO_ERROR);\n break;\n case STATE_AUTH_ERROR:\n setState(State.DISABLED, ErrorState.AUTH_FAILED);\n break;\n case STATE_PEER_AUTH_ERROR:\n setState(State.DISABLED, ErrorState.PEER_AUTH_FAILED);\n break;\n case STATE_LOOKUP_ERROR:\n setState(State.DISABLED, ErrorState.LOOKUP_FAILED);\n break;\n case STATE_UNREACHABLE_ERROR:\n setState(State.DISABLED, ErrorState.UNREACHABLE);\n break;\n case STATE_GENERIC_ERROR:\n setState(State.DISABLED, ErrorState.GENERIC_ERROR);\n break;\n default:\n Log.e(TAG, \"Unknown status code received\");\n setState(State.DISABLED, ErrorState.UNKONE_ERROR);\n break;\n }\n }",
"public void setStatus(@NotNull Status status) {\n this.status = status;\n }",
"public void setStatus(Status.State state) throws Throwable {\n \t// Don't update terminated transforms. Leave them terminated\n \tif ( _status.state() != Status.State.TERMINATED ) {\n \t\t_status = new Status(state, new Date());\n \t}\n \n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}",
"public void setStatus(StatusEnum status) {\n this.status = status;\n }",
"void setStatusMessage(String message);",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"public void setJobStatus(String jobStatus) {\n this.jobStatus = jobStatus;\n }",
"@Override\n\t\tpublic void OnFailed(int status, String info, NetSceneBase<?> netScene) {\n\t\t\tHideProgress();\n\t\t\tErrorAlert(status, info);\n\t\t}",
"public void setStatus(java.lang.String status) {\n this.status = status;\n }",
"public void setStatus(java.lang.String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(String Status) {\n this.Status = Status;\n }",
"public void setStatus(String Status) {\n this.Status = Status;\n }",
"@Override\n\tpublic void onFailed(String status, String msg, Object result) {\n\t\tsuper.onFailed(status, msg, result);\n if(back!=null){\n \t back.fail(status, msg, result);\n\t\t}\n\t}",
"@Override\n\tpublic void onFailed(String status, String msg, Object result) {\n\t\tsuper.onFailed(status, msg, result);\n if(back!=null){\n \t back.fail(status, msg, result);\n\t\t}\n\t}",
"@Override\n\tpublic void onFailed(String status, String msg, Object result) {\n\t\tsuper.onFailed(status, msg, result);\n if(back!=null){\n \t back.fail(status, msg, result);\n\t\t}\n\t}",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setMessageStatus(Integer messageStatus) {\n this.messageStatus = messageStatus;\n }",
"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}",
"public void setStatus(final String status) {\n this.status = status;\n }",
"public void setStatus(String _status) {\n this._status = _status;\n }",
"@Override\n\t\t\tpublic void onFailure(Throwable t, String errorMsg, int statusCode) {\n\t\t\t}"
]
| [
"0.6135412",
"0.5990864",
"0.5777381",
"0.57055545",
"0.562434",
"0.5623595",
"0.55772823",
"0.55285126",
"0.5510096",
"0.5488819",
"0.54753244",
"0.54438084",
"0.54407334",
"0.54324573",
"0.5426113",
"0.54196435",
"0.5417687",
"0.54089093",
"0.54031515",
"0.5384218",
"0.5382335",
"0.5348821",
"0.53404593",
"0.53325415",
"0.53215355",
"0.5320601",
"0.530939",
"0.5308854",
"0.52868813",
"0.52789116",
"0.52767384",
"0.52668554",
"0.52660936",
"0.52619016",
"0.5248985",
"0.5239411",
"0.52321464",
"0.52293134",
"0.52261215",
"0.52236813",
"0.5222441",
"0.5219092",
"0.5215487",
"0.5207453",
"0.5186623",
"0.5175281",
"0.5175177",
"0.51740843",
"0.5172711",
"0.51680857",
"0.516351",
"0.5158435",
"0.5142856",
"0.51345134",
"0.5129721",
"0.5128962",
"0.51277906",
"0.5127439",
"0.5125927",
"0.51204526",
"0.5109998",
"0.510915",
"0.5106625",
"0.51056755",
"0.5105504",
"0.5105504",
"0.51038307",
"0.51012224",
"0.51012224",
"0.5099494",
"0.5099494",
"0.5097565",
"0.5097565",
"0.509698",
"0.509698",
"0.508665",
"0.508665",
"0.508665",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5084746",
"0.5070431",
"0.50685096",
"0.50533694",
"0.5048922",
"0.5048368",
"0.5042855"
]
| 0.7622225 | 0 |
Sets the current activity. | public synchronized void setCurrentActivity(String currentActivity) {
this.currentActivity = currentActivity;
currentProgress.set(0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}",
"public void setAct(Activity act) {\r\n\t\tthis.act = act;\r\n\t}",
"@Override\n public void setLatestActivity(IActivity activity) {\n }",
"public void setActivity(Activity activity) {\n lastNeuron().setActivity(activity);\n }",
"public void setActivity(AppCompatActivity activity) {\n this.activity = activity;\n }",
"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 }",
"public void setActivity(Activity activity) {\n if (activity != null) {\n service = (BleTrackerService) activity.getApplicationContext();\n }\n }",
"public void setActivity(Activity addnew) {\n\tthis.addActivity(addnew);\n\t\t\n\t}",
"public void changeActivity(Activity Current, Class Target) {\n Intent intent = new Intent(Current, Target);\n startActivity(intent);\n }",
"protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}",
"public final void setTest_Activity(ugs.proxies.Test test_activity)\n\t{\n\t\tsetTest_Activity(getContext(), test_activity);\n\t}",
"public void setActivityReference(@NonNull NotepadActivity activity)\n\t{\n\t\tthis.activity = activity;\n\t}",
"public void setActivity(BaseActivity act)\n {\n this.activity = act;\n\n if (act == null) {\n //dismiss the dialog if there is no\n //activity associated with this task\n dismissProgressDialog();\n }\n else\n {\n //activity is being attached to the background thread.\n //Check if the task is already completed\n if (taskCompleted && getStatus().equals(AsyncTask.Status.FINISHED)\n && updateOnActivityAttach) {\n \tif (!isCancelled()) {\n\t //yes, notify about completion of task\n\t notifyTaskCompletion(null);\n \t}\n \telse {\n \t\tnotifyTaskCancelled(null);\n \t}\n }\n else\n {\n //no, display the progress dialog indicating the\n //background task is still running.\n showProgressDialog();\n }\n }\n }",
"public final void setTest_Activity(com.mendix.systemwideinterfaces.core.IContext context, ugs.proxies.Test test_activity)\n\t{\n\t\tif (test_activity == null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Test_Activity.toString(), null);\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Test_Activity.toString(), test_activity.getMendixObject().getId());\n\t}",
"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}",
"public final void setActivity_Interview(com.mendix.systemwideinterfaces.core.IContext context, ugs.proxies.Interview activity_interview)\n\t{\n\t\tif (activity_interview == null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Activity_Interview.toString(), null);\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Activity_Interview.toString(), activity_interview.getMendixObject().getId());\n\t}",
"@VisibleForTesting\n public void setActivity(int i) {\n T t = this.mCurrentState;\n boolean z = false;\n ((WifiState) t).activityIn = i == 3 || i == 1;\n WifiState wifiState = (WifiState) t;\n if (i == 3 || i == 2) {\n z = true;\n }\n wifiState.activityOut = z;\n notifyListenersIfNecessary();\n }",
"private void setTopActivity(final Activity activity) {\n if (mActivityList.contains(activity)) {\n if (!mActivityList.getFirst().equals(activity)) {\n mActivityList.remove(activity);\n mActivityList.addFirst(activity);\n }\n } else {\n mActivityList.addFirst(activity);\n }\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 }",
"public void setCurrent(Prompt current) {\n\t\t\tthis.current = current;\n\t\t}",
"public final void setActivity_Interview(ugs.proxies.Interview activity_interview)\n\t{\n\t\tsetActivity_Interview(getContext(), activity_interview);\n\t}",
"public final void setActivityName(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String activityname)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.ActivityName.toString(), activityname);\n\t}",
"public void setActivityRoot(ActivityRoot activityRoot) {\r\n this.activityRoot = activityRoot;\r\n }",
"public void setCurrentAppointment(Appointment currentAppointment) {\n System.out.println(\"Recieved appointment with \" + currentAppointment.getDoctor().iD);\n this.currentAppointment = currentAppointment;\n }",
"public final void setActivityName(java.lang.String activityname)\n\t{\n\t\tsetActivityName(getContext(), activityname);\n\t}",
"@Override\n\tpublic void setActivity(Activity activity)\n\t{\n\t\tsuper.setActivity(activity);\n\n\t\tif (hasPropertyAndNotNull(TiC.PROPERTY_SEARCH)) {\n\t\t\tfinal TiViewProxy search = (TiViewProxy) getProperty(TiC.PROPERTY_SEARCH);\n\t\t\tsearch.setActivity(activity);\n\t\t}\n\n\t\tfor (TableViewSectionProxy section : this.sections) {\n\t\t\tsection.setActivity(activity);\n\t\t}\n\t}",
"public void setSessionActivity(PendingIntent param1) {\n }",
"public void setC_Activity_ID (int C_Activity_ID);",
"@Override\n\tpublic void initContext(Activity act) {\n\t\tthis._activity = act;\n\t}",
"public void changeWindowTo(Class activity){\n Intent guestActivity = new Intent(this,activity);\n startActivity(guestActivity);\n }",
"public S(Activity activity){\n\t\tthis.activity = activity;\n\t\t\n\t}",
"public void switchActivity(Class<?> destinationActivity) {\n startActivity(new Intent(this, destinationActivity));\n }",
"public void setActivity(Context newCtx){\n\t r = (IReportBack)newCtx;\n\t ctx = newCtx;\n\t pd = newPDinstance(pd_progress);\n\t pd.show();\n }",
"public void startActivity(Activity activity, final String activityName, final Bundle extras)\n {\n EngagementActivityManager.getInstance().setCurrentActivity(activity, activityName);\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.startActivity(activityName, extras);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }",
"@Override\n\tpublic Activity updateActivity(Activity activity) {\n\t\treturn activity;\n\t\t\n\t}",
"protected void activityStart(String act){\r\n Class c = Constants.getClass(act);\r\n if(c!=null){\r\n startActivity(new Intent(Main.this, c ));\r\n }\r\n }",
"public void setActivity(InCallActivity inCallActivity) {\n if (inCallActivity == null) {\n throw new IllegalArgumentException(\"registerActivity cannot be called with null\");\n }\n if (mInCallActivity != null && mInCallActivity != inCallActivity) {\n Log.w(this, \"Setting a second activity before destroying the first.\");\n }\n updateActivity(inCallActivity);\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 }",
"public void setCurrent(SchedulerInterface current) {\n this.current = current;\n }",
"public void setActivityName(Integer activityName) {\n this.activityName = activityName;\n }",
"public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}",
"public void iniciarActivity() {\n\n Intent intent = new Intent(ActivityA.this, ActivityB.class);\n startActivity(intent);\n }",
"public static void startActivity(Context context, Class activity) {\n Intent thisIntent = new Intent(context, activity);\n context.startActivity(thisIntent);\n }",
"public void setCurrentInst(boolean tv){\n\t\tif (tv)\n\t\t\tcurrentInst = 1;\n\t\telse\n\t\t\tcurrentInst = 0;\n\t}",
"private void activate_previous_activity(){\n\n Intent intent = new Intent(this,MainActivity.class);\n startActivity(intent);\n\n }",
"public static void openActivity(Activity fromActivity, Class toActivity, boolean finishThis) {\r\n openActivity(fromActivity, toActivity, null, finishThis);\r\n }",
"public void setOb( MainActivity obA){\n\t this.ob=obA;\n\t }",
"public static void currentAty(){\n Logger logger = Logger.getLogger(InitialDriver.class);\n logger.info(\"Current Activity --> \" + driver.currentActivity());\n }",
"public void setApplication(ClickCounter app) {\r\n theCounter = app;\r\n }",
"public void onClick(View v) {\n Intent activityChangeIntent = new Intent(MainActivity.this, Activity1.class);\n\n // currentContext.startActivity(activityChangeIntent);\n\n MainActivity.this.startActivity(activityChangeIntent);\n }",
"public void setCurrentChatPrimaryKey(String currentChatPrimaryKey) {\n this.currentChatPrimaryKey = currentChatPrimaryKey;\n }",
"static void setCurrentSettingTab(int currentIdx) {\n currentSettingTab = currentIdx;\n }",
"private void openActivity() {\n }",
"public void setCharitableActivity(CharitableActivity charitableActivity) {\r\n this.charitableActivity = charitableActivity;\r\n }",
"public void transferActivity() {\n Intent intent = new Intent(this, AddInfoActivity.class);\n this.startActivity(intent);\n }",
"void setActivityStore(ActivityStore activityStore) {\n this.activityStore = activityStore;\n }",
"private void setActiveHistory(History activeHistory) {\n\t\tthis.activeHistory = activeHistory;\n\t\tactiveHistory.activate();\n\t}",
"@Override\n public void onActivityStarted(@NonNull final Activity activity) {\n sActivity.set(activity);\n\n if (isAccessToLocationAllowed() && mStartStopCounter.incrementAndGet() == 1)\n\n addTask(ActivityLifecycle.STARTED, new Runnable() {\n @Override\n public void run() {\n final LocationClient locationClient = getLocationClient();\n if (locationClient != null && mStartStopCounter.get() == 1) {\n\n CoreLogger.log(\"LocationClient.onStart()\");\n locationClient.onStart(activity);\n }\n }\n });\n }",
"public void setActivityType(ActivityType activityType) {\n this.activityType = activityType;\n }",
"public void setCurrentTime(String currentTime) {\n this.currentTime = currentTime;\n }",
"@objid (\"34f4b366-450c-42c4-945e-4b5c3c0b4165\")\r\n public void setCurrentFile(final File currentFile) {\r\n this.currentFile = currentFile;\r\n }",
"public void onClick(View v) {\n Intent intent = new Intent(SettingsActivity.this, TemperatureActivity.class);\n startActivity(intent);\n\n // MainActivity.this.startActivity(activityChangeIntent);\n }",
"public void setCurrentTime(long currentTime) {\n this.currentTime = currentTime;\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\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\tthis.mActivity = activity;\r\n\t}",
"public static void start(GameActivity a) {\n\t\tact = a;\n\t\tgame.start();\n\t}",
"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 }",
"public void setActivityStr(String str){\r\n this.activityStr = str; \r\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 }",
"private synchronized void setCurrentChannel(String currentChannel) {\n\n this.currentChannel = currentChannel;\n }",
"@Override\n\tpublic void onAttach(Activity activity) {\n\t\tthis.activity = activity;\n\t\tsuper.onAttach(activity);\n\t}",
"protected void setCurrentCounter(int currentCounter) {\n this.currentCounter = currentCounter;\n }",
"private void settings() {\n\t\tIntent intent = new Intent(this, ActivitySettings.class);\n\t\tstartActivity(intent);\n\t}",
"private void setActivityType(int value) {\n this.bitField0_ |= 4;\n this.activityType_ = value;\n }",
"@Override\n\tpublic void starctActivity(Context context) {\n\t\t\n\t}",
"public void setCurrent(Integer id) {\n this.current = id;\n }",
"public void setIntent(Intent intent) {\n this.mInviteIntent = intent;\n }",
"protected void volverInicio() {\n\t\tIntent i = new Intent(this, ImcActivity.class);\n\t\tthis.startActivity(i);\n\t\t\n\t}",
"public static void setCurrentMode(Modes mode){\n\t\tcurrentMode = mode;\n\t}",
"private void startControlRobotActivity(){\n Intent intent = new Intent(this, ControlRobotActivity.class );\n startActivity(intent);\n finish();\n }",
"@Override\n\tpublic void starctActivity(Context context) {\n\n\t}",
"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}",
"private void trySupplyCurrentActivity(){\n // Provides the current activity to the mMapView when a callback is requested.\n mMapView.setOnSupplyCurrentActivityListener(new MapView.OnSupplyCurrentActivityListener() {\n @Override\n public Activity onSupplyCurrentActivity() {\n return MapActivity.this;\n }\n });\n }",
"void changeWindowTo(Class activity,TypesManager.obsType _type){\n Intent guestActivity = new Intent(this,activity);\n guestActivity.putExtra(\"obsType\",_type.getValue());\n startActivity(guestActivity);\n }",
"@Override\r\n\tpublic Activity getActivity() {\n\t\treturn this;\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(parentAct,UserSetingActivity.class);\n\t\t\t\tparentAct.startActivity(intent);\n\t\t\t}",
"public void onResume() {\n super.onResume();\n MiStatInterface.recordPageStart((Activity) this, \"SetMyOtherInfoActivity\");\n }",
"@Override\n public void startActivity(Intent intent) {\n startActivity(intent, null);\n }",
"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 onClick(View v) {\n Intent activityChangeIntent = new Intent(MainActivity.this, Activity2.class);\n\n // currentContext.startActivity(activityChangeIntent);\n\n MainActivity.this.startActivity(activityChangeIntent);\n }",
"private void setStatus(int resId) {\n Activity activity = this;\n if (null == activity) {\n return;\n }\n }",
"@Override\n public void onClick(View view) {\n Intent screenChange = new Intent(getApplicationContext(), settings.class);\n //creating a bundle to store the variables that will be passed into the next\n //activity\n //starting our activity for a result\n startActivity(screenChange);\n }",
"@Override\n\tpublic Activity getActivity() {\n\t\treturn this;\n\t}",
"public void onClick(View v) {\n Intent activityChangeIntent = new Intent(MainActivity.this, Activity3.class);\n\n // currentContext.startActivity(activityChangeIntent);\n\n MainActivity.this.startActivity(activityChangeIntent);\n }",
"public void from(IXActivity from);",
"public void SetCurrent(Account a)\n\t{\n\t\tif(current != null)\n\t\t\tcurrent.SetStatus(AccountStatus.LOGOFF);\n\t\t//log in current\n\t\tcurrent = a;\n\t\tcurrent.SetStatus(AccountStatus.LOGIN);\n\t}",
"public void setCurrentTimesheet(Timesheet currentTimesheet) {\n\t\tthis.currentTimesheet = currentTimesheet;\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n activeActivity();\n this.finish();\n }",
"private void startCameraActivity(){\n if (checkPermissions() && !startingActivity) {\n startingActivity = true;\n goodVibes.vibrate(200);\n Intent intent = new Intent(this, CameraActivity.class);\n intent.putExtra(\"EYE_COLOR\", eyeColorSelection);\n startActivity(intent);\n }else{\n getPermissions();\n }\n }",
"SetupTask(KaldiActivity activity) {\n this.activityReference = new WeakReference<>(activity);\n }"
]
| [
"0.7034889",
"0.68357533",
"0.67702466",
"0.67098093",
"0.6637748",
"0.6601357",
"0.6534056",
"0.64228565",
"0.6413057",
"0.63738286",
"0.6324434",
"0.6323762",
"0.63057107",
"0.6264861",
"0.6244525",
"0.61480606",
"0.6122215",
"0.60751736",
"0.60307974",
"0.59694314",
"0.5923673",
"0.592316",
"0.5868798",
"0.5852022",
"0.5845265",
"0.58141166",
"0.5806848",
"0.5733371",
"0.5707906",
"0.56683874",
"0.5654177",
"0.56171626",
"0.55895716",
"0.55747306",
"0.5553531",
"0.5549041",
"0.554365",
"0.5529196",
"0.55013406",
"0.5495543",
"0.5490794",
"0.54905313",
"0.5484243",
"0.54533166",
"0.5451697",
"0.54360086",
"0.5424443",
"0.53960645",
"0.53927463",
"0.53900343",
"0.53852385",
"0.5380041",
"0.5379829",
"0.5377567",
"0.53767556",
"0.53730917",
"0.5372897",
"0.5359114",
"0.5335645",
"0.5334891",
"0.532803",
"0.5326041",
"0.5324247",
"0.5322886",
"0.53175277",
"0.5316605",
"0.529712",
"0.5293987",
"0.52919704",
"0.52861166",
"0.52851176",
"0.52836007",
"0.5282589",
"0.5280623",
"0.52780414",
"0.5262917",
"0.5255829",
"0.52494675",
"0.52387106",
"0.5232422",
"0.5217395",
"0.521556",
"0.5214999",
"0.5213929",
"0.5206118",
"0.52039194",
"0.52010816",
"0.5199154",
"0.5198883",
"0.5193607",
"0.518527",
"0.5185002",
"0.5179296",
"0.51790124",
"0.5178854",
"0.5177955",
"0.5169766",
"0.5167055",
"0.5162416",
"0.51617706"
]
| 0.8002573 | 0 |
Sets the current error message. | public synchronized void setErrorMessage(String errorMessage) {
this.errorMessage = errorMessage;
status = Status.FAILED;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void setError(String message);",
"public void setErrorMessage(String msg) {\r\n\t\terrorMessage.setText(msg);\r\n\t}",
"protected void setError(String message) {\n\t\tif (message == null)\n\t\t\tthrow new IllegalArgumentException(\"null error message\");\n\t\tif (hasError()) \n\t\t\tthrow new IllegalStateException(\"An error was already detected.\");\n\t\texpression = null;\n\t\terror = message;\n\t}",
"void setErrorMessage(String errorMessage);",
"private void setErrorMessage() {\n messageLabel.setText(NbBundle.getMessage(JavaFXPlatformCustomizer.class, \"Customizer_Invalid_Platform_Msg\")); // NOI18N\n }",
"public Builder setErrmsg(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n errmsg_ = value;\n onChanged();\n return this;\n }",
"@SuppressWarnings(\"WeakerAccess\")\n public void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tprotected void setErrorMessage(String errorMessage) {\n\t\tsuper.setErrorMessage(errorMessage);\n\t}",
"@Override\n\t\tpublic void setInvalidMess(String errmess) {\n\n\t\t}",
"public void setErrorMessage(\r\n\t\tString errorMessage)\r\n\t{\r\n\t\terrorMessageText.setText(errorMessage == null ? \"\" : errorMessage); // $NON-NLS-1$\r\n\t\tokButton.setEnabled(errorMessage == null);\r\n\t\terrorMessageText.getParent().update();\r\n\t}",
"void setError();",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }",
"public void setErrorText(String errorText) {\n this.m_ErrorText = errorText;\n }",
"public void ErrorMessage(String error) {\n \tJOptionPane.showMessageDialog(parent, error);\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorMessage_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic String getMessage()\n\t{\n\t\treturn errMessage;\n\t}",
"public Builder setError(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n error_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }",
"public void setErrorMessage(java.lang.String errorMessage) {\r\n this.errorMessage = errorMessage;\r\n }",
"private void setError(String code, String message) {\r\n recentErrorCode = code;\r\n recentErrorMessage = message;\r\n recentServerErrorCode = \"\";\r\n recentServerErrorMessage = \"\";\r\n\r\n if (consoleLog && !\"\".equals(message)) {\r\n System.out.println(\"[E!:\" + code + \"] \" + message);\r\n }\r\n }",
"public void setInvalidMessage(String message) {\n isValid.setMessage(message);\n }",
"private void setMessage(final String message) {\n }",
"void setMessage(String message);",
"void setMessage(String message);",
"public void putError(String message) {\n errorData.postValue(message);\n }",
"public void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage;\n }",
"public void setError(final String pError) {\n\t\tthis.mError = pError;\n\t\ttry {\n\t\t\tthis.mErrorData = this.mError.getBytes(\"utf-8\");\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.mErrorSize = this.mErrorData.length;\n\t}",
"public void setErrorMessage(java.lang.String errorMessage) {\n this.errorMessage = errorMessage;\n }",
"public void error(String message);",
"public void setCurrentMessage(String currentMessage) { this.currentMessage = currentMessage; }",
"public void setError() {\n _hasError = true;\n _highlight = HighlightMode.ERROR;\n _error = NodeError.ERROR;\n }",
"public void setMessage(String message);",
"public void setMessage(String message);",
"public void setMessage(String message);",
"public void setMessage(final String message) {\n mMessage.setText(Preconditions.checkNotNull(message));\n }",
"public Builder setError(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n error_ = value;\n onChanged();\n return this;\n }",
"void errorMsg(String msg) {\n Alert errorAlert = new Alert(\"error\", msg, null, AlertType.ERROR);\n errorAlert.setCommandListener(this);\n errorAlert.setTimeout(Alert.FOREVER);\n Display.getDisplay(this).setCurrent(errorAlert);\n }",
"public void setError(Long messageUid, String notificationLocalId, String errorMessage, String status);",
"public Builder setErr(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n err_ = value;\n onChanged();\n return this;\n }",
"protected void setToolTipErrorMessage() {\n\t\tString toolTipErrorMessage = null;\n\t\tsetToolTipMessage(toolTipErrorMessage);\n\t}",
"private void errorMessage(String message) {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tAlertDialog dialog = builder.setMessage(message).setTitle(\"Error\").create();\n \tdialog.show();\n }",
"public void error(String message) {\n ui.say(\"ERROR: \" + message);\n }",
"public void setMessage(String message) {\n\t\tthis.message = message;\n\t\trepaint();\n\t}",
"public final void setMessage(java.lang.String message)\n\t{\n\t\tsetMessage(getContext(), message);\n\t}",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"protected void setMessage(java.lang.String newMessage)\r\n {\r\n if (message == null)\r\n {\r\n message = newMessage;\r\n }\r\n else\r\n {\r\n message += \"\\n\" + newMessage;\r\n }\r\n }",
"public void addError(String message);",
"public ErrorMessage(String nickname, String errorString) {\n super(nickname, MessageType.ERROR);\n this.errorString = errorString;\n }",
"public void setMessage (String msg)\n\t{\n\t\tmessageArea.setText (msg);\n\t}",
"public void setMsg(String msg){\n messageLabel.setText(msg);\n }",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"public void setErrorMessage(String errorMessage) {\n this.errorMessage = errorMessage == null ? null : errorMessage.trim();\n }",
"public void setError(int errorCase) {\n\n\t\tswitch (errorCase) {\n\n\t\tcase 1: {\n\t\t\tthis.error = \"Number should be from 0 to N\";\n\t\t\tbreak;\n\t\t}\n\t\tcase 2: {\n\t\t\tthis.error = \"Base should be from 2 to 25\";\n\t\t\tbreak;\n\t\t}\n\n\t\tdefault: {\n\t\t\tthis.error = null;\n\t\t\tbreak;\n\t\t}\n\n\t\t}\n\t}",
"void setErrorUsername();",
"public String getErrorMessage() {\n\t\treturn this.message;\n\t}",
"public void setError(String error) {\n this.error = error;\n }",
"public void setError(String error) {\n this.error = error;\n }",
"public void setError(String error) {\n this.error = error;\n }",
"@Accessor(qualifier = \"message\", type = Accessor.Type.SETTER)\n\tpublic void setMessage(final String value)\n\t{\n\t\tsetMessage(value,null);\n\t}",
"void setErrorAppTag(String errorMessage);",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n message_ = value;\n onChanged();\n return this;\n }",
"public void setMessage(@NonNull final String message) {\n this.message = Preconditions.checkNotNull(message, \"message\");\n }",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n message_ = value;\n onChanged();\n return this;\n }",
"public void mostrarMensaje(String error) {\r\n\t\tthis.lblError.setText(error);\r\n\t}",
"public void setError(java.lang.String error) {\n this.error = error;\n }",
"public BaseDialog setMessage(CharSequence message) {\n if (message == null) {\n return this;\n }\n dialogBuilder.setMessage(message);\n return this;\n }",
"public void setMessage(CharSequence message) {\r\n\t\t//\tmMessage.setText(message);\r\n\t\t//\tmMessage.setMovementMethod(ScrollingMovementMethod.getInstance());\r\n\t\t}",
"public Builder setMessage(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessage(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void setComputationError (\n\t\tString title, String message, String stackTrace)\n\t{\n\t\n\t\tmFinishedPanel.setErrorOccured(true);\n\t\tmFinishedPanel.setErrorMessage(title, message, stackTrace);\n\t\n\t}",
"public void setError(int value) {\n this.error = value;\n }",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }",
"public void setFatalError(String message) {\n\t\tloadingInfo.setInnerText(message);\n\t}",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }",
"public Builder setMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n message_ = value;\n onChanged();\n return this;\n }",
"public void setError(String error) {\n\t\tthis.error = error;\n\t}",
"public void setErrorTextDefault(String errorTextDefault)\n {\n this.errorTextDefault = errorTextDefault;\n }",
"public String getMessage() {\n\t\treturn mErrorMessageString;\n\t}",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}"
]
| [
"0.78686154",
"0.74637866",
"0.7322358",
"0.7320176",
"0.70225704",
"0.7008962",
"0.69727534",
"0.6905185",
"0.687336",
"0.6848655",
"0.67642266",
"0.67081004",
"0.6698778",
"0.6692322",
"0.6641736",
"0.66260546",
"0.6595177",
"0.6588952",
"0.6534977",
"0.6515865",
"0.6515865",
"0.6515865",
"0.6515865",
"0.6515865",
"0.6515865",
"0.6515865",
"0.6515865",
"0.6515865",
"0.65135026",
"0.650949",
"0.6498606",
"0.64866346",
"0.64843285",
"0.6476758",
"0.6436964",
"0.6436964",
"0.64159185",
"0.64128184",
"0.6409615",
"0.63809407",
"0.6352322",
"0.63350475",
"0.6334745",
"0.63310295",
"0.63310295",
"0.63310295",
"0.631107",
"0.6304057",
"0.6299971",
"0.6299707",
"0.62874603",
"0.62845385",
"0.6250259",
"0.62380713",
"0.6218982",
"0.6202495",
"0.618914",
"0.618914",
"0.618914",
"0.618914",
"0.61889213",
"0.6188104",
"0.6163652",
"0.6163532",
"0.6145987",
"0.61400676",
"0.6131987",
"0.6127386",
"0.61158806",
"0.6114941",
"0.61020285",
"0.61020285",
"0.61020285",
"0.6092247",
"0.60916525",
"0.60871446",
"0.60871446",
"0.6085579",
"0.6085462",
"0.6085462",
"0.6085462",
"0.6085462",
"0.6079506",
"0.6071154",
"0.60691035",
"0.6065541",
"0.60585207",
"0.60585207",
"0.60496885",
"0.60390735",
"0.60386276",
"0.60386276",
"0.6032404",
"0.60308945",
"0.60308945",
"0.60308945",
"0.6026438",
"0.6022938",
"0.60146457",
"0.6010713"
]
| 0.6559049 | 18 |
Sets the Join Status as complete. | public synchronized void setComplete() {
status = Status.COMPLETE;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void complete()\n {\n isComplete = true;\n }",
"public void completed(final Status status);",
"public void setComplete(Boolean complete){\n this.complete = complete;\n }",
"public void setComplete(boolean complete) {\n\t\t\n\t}",
"public void setCompleted() {\n this.completed = true;\n }",
"public void setComplete(boolean complete) {\n }",
"public void setCompleted(){\r\n\t\tisCompleted = true;\r\n\t}",
"public void setStateComplete() {state = STATUS_COMPLETE;}",
"public void markComplete()\n {\n setCount(getGoal());\n }",
"public void setCompleted(boolean achievementCompleted) {\n\t\t\n\t\tcompleted = achievementCompleted;\n\t\t\n\t}",
"public void setCompleted(boolean flag) {\r\n completed = flag;\r\n }",
"public void setComplete()\n\t{\n\t\texisting.set(0, pieces.length);\n\t}",
"public void markAsDone() {\n this.isDone = true;\n this.completed = \"1\";\n }",
"public void setComplete(boolean value) {\n\t\tif (value) {\n\t\t\tcountdown = EXIT_COUNT;\n\t\t}\n\t\tcomplete = value;\n\t\t//\t\tif (value) waitSeconds(3);\n\t}",
"public void setJoined() {\n\t\tstate = State.JOINED;\n\t}",
"public void setDone(){\n this.status = \"Done\";\n }",
"public void set_completed();",
"public void setComplete(boolean isComplete) { \n this.isComplete = isComplete; \n }",
"public void complete() {\n\t}",
"@Override\n\tpublic void eventFinished() {\n\t\tstatus=EventCompleted;\n\t}",
"public void setIncomplete() throws Exception {\n\t\tthis.isComplete = false;\n\t\tsetIfOverdue();\n\t}",
"public boolean isComplete()\n {\n return getStatus() == STATUS_COMPLETE;\n }",
"public void setComplete(boolean param){\n \n // setting primitive attribute tracker to true\n localCompleteTracker =\n true;\n \n this.localComplete=param;\n \n\n }",
"public void completeTask() {\n completed = true;\n }",
"public void setCompleted (boolean isCompleted) {\n this.isCompleted = isCompleted;\n }",
"public Boolean isComplete() {\n return true;\n }",
"public void completeLevel() {\n\n this.getCurrentRoom().setIsDoorLocked(false);\n levelsCompleted++;\n this.setCurrentRoom(currentRoom.getNextRoom());\n inventory.clearContainer();\n }",
"public void setDone() {\n this.isDone = true;\n }",
"public void setDone() {\n this.isDone = true;\n }",
"public void setDone() {\n this.isDone = true;\n }",
"public void markAsDone() {\r\n this.isDone = true;\r\n }",
"public void markAsDone() {\n this.isDone = true;\n }",
"public void markAsDone() {\n this.isDone = true;\n }",
"public void markAsDone() {\n this.isDone = true;\n }",
"@Override\n public String markComplete() {\n if (this.isDone) {\n return Ui.getTaskAlrCompletedMessage(this);\n } else {\n this.isDone = true;\n return Ui.getMarkCompleteEventMessage(this);\n }\n }",
"@IcalProperty(pindex = PropertyInfoIndex.COMPLETED,\n todoProperty = true)\n public void setCompleted(final String val) {\n completed = val;\n }",
"public void markAsDone() {\n this.isDone = true;\n\n }",
"public boolean checkComplete(){\n return Status;\n }",
"public boolean isComplete( ) {\n\t\treturn complete;\n\t}",
"public void SetDone(){\n this.isDone = true;\n }",
"public void setCompleteConcurrency(boolean b) {\r\n\t\tthis.completeConcurrency = b;\r\n\t}",
"public void markAsDone() {\n this.done = true;\n }",
"public void setIsJoin (Boolean isJoin) {\r\n\t\tthis.isJoin = isJoin;\r\n\t}",
"private synchronized void join() {\n\t\ttry {\n\t\t\tlog.debug(\"Waiting for work...\");\n\n\t\t\twhile (pending > 0) {\n\t\t\t\t// if we put a wait() here... where does the notifyAll() go?\n\t\t\t\tthis.wait();\n\t\t\t\tlog.debug(\"Woke up with pending at {}.\", pending);\n\t\t\t}\n\n\t\t\tlog.debug(\"Work finished.\");\n\t\t}\n\t\tcatch (InterruptedException ex) {\n\t\t\tlog.debug(ex.getMessage(), ex);\n\t\t}\n\t}",
"public void setFinished(Boolean finished) {\n this.finished = finished;\n }",
"@Override\n\tpublic void complete()\n\t{\n\t}",
"public boolean isComplete() {\r\n\t\treturn complete;\r\n\t}",
"protected void setFinished(boolean finished) {\n this.finished = finished;\n }",
"public final void updatesComplete()\r\n\t\t{\r\n\t\t\t// get the builder to build itself\r\n\t\t\tCreate();\r\n\r\n\t\t\t// inform the parent\r\n\t\t\tsuper.updatesComplete();\r\n\t\t}",
"@Override\n public void setFinished() {\n finishedBanking = true;\n }",
"public void setDeliveryStatus(int Id,String status,boolean pending,boolean completed);",
"public void fire() {\n // operation finished\n dfStatus |= DF_STATUS_READY;\n }",
"@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}",
"public boolean isComplete() {\n\t\treturn false;\n\t}",
"public boolean isComplete();",
"synchronized public void jobDone(){ // l'action a été réalisée\n\t\tdone = true; // changement d'état\n\t\tthis.notifyAll(); // on notifie tout le monde\n\t}",
"void onComplete(String status);",
"public boolean isComplete() {\n return complete;\n }",
"public boolean isComplete() {\n return complete;\n }",
"public void completeJob(View v) {\n // FIXME save that it is completed somehow\n Log.w(\"MA\", \"completeJob\");\n setContentView(R.layout.activity_sitter_page);\n allJobsList();\n }",
"@Override\n\tpublic void onJoinLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onJoinLobbyDone\");\n\t}",
"void completeTurn() {\n\n\t\tremoveNotification();\n\n\t\tString matchId = match.getMatchId();// The Id for our match\n\t\tString pendingParticipant = GPGHelper.getOpponentId(\n\t\t\t\tgameHelper.getApiClient(), match);// We set who's turn it\n\t\t// is next since\n\t\t// we're done,\n\t\t// should always be\n\t\t// opponents turn\n\t\t// for us.\n\t\tbyte[] gameState = writeGameState(match);// We build the game state\n\t\t\t\t\t\t\t\t\t\t\t\t\t// bytes from the current\n\t\t\t\t\t\t\t\t\t\t\t\t\t// game state.\n\n\t\t// This actually tries to send our data to Google.\n\t\tGames.TurnBasedMultiplayer.takeTurn(gameHelper.getApiClient(), matchId,\n\t\t\t\tgameState, pendingParticipant).setResultCallback(\n\t\t\t\tnew ResultCallback<TurnBasedMultiplayer.UpdateMatchResult>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResult(UpdateMatchResult result) {\n\t\t\t\t\t\tturnUsed = true;\n\n\t\t\t\t\t\t// TODO:Handle this better\n\t\t\t\t\t\tif (!GooglePlayGameFragment.this.checkStatusCode(match,\n\t\t\t\t\t\t\t\tresult.getStatus().getStatusCode())) {\n\t\t\t\t\t\t\tLog.d(\"test\", result.getStatus().getStatusCode()\n\t\t\t\t\t\t\t\t\t+ \" Something went wrong\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t}",
"public void markReady() {\n\t\tsetState(State.READY);\n\t\tthis.statusCode = StatusCode.Success.code;\n\t}",
"private void concede() {\n this.claimStatus = new ClaimOrConcession(); // conceded claim\n }",
"public void markAsDone() {\n isDone = true;\n }",
"public void markAsDone() {\n isDone = true;\n }",
"public void markAsDone() {\n isDone = true;\n }",
"private void complete(boolean complete) {\n if (completed)\n return;\n \n drawingPad.getSelectedItems().finalizeMovement();\n \n if (complete) {\n iFrameOperator.enableCopyCut(false);\n iFrameOperator.enableAdvanceTools(false);\n drawingPad.finalizeSelectedItems();\n }\n \n drawingPad.repaint();\n }",
"public boolean getComplete(){\n return localComplete;\n }",
"public void CompleteTask() {\n\t\tCompletionDate = new Date();\n\t}",
"@Override\n\tpublic void completed() {\n\t\tSystem.out.println(\"Message Completed: \" + toString());\n\t\tscheduler.putResourceIdle();\n\t\ttry {\n\t\t\tscheduler.applyScheduling();\n\t\t} catch (Exception e) {\n\t\t\t// this should be logged or on a GUI show a dialog of the error\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setDone() {\n isDone = true;\n }",
"public void markAsDone() {\n // TODO consider adding assertion here\n isDone = true;\n }",
"public boolean completed() {\n return completed;\n }",
"@Override\n public void onCompleted() {\n System.out.println(\n \"\\n\\tServer is finished!\"\n );\n\n this.latch.countDown();\n }",
"public boolean isComplete() { \n return isComplete; \n }",
"public void markDone() {\n isDone = true;\n }",
"void complete();",
"void complete();",
"boolean complete();",
"public void showComplete() {\r\n showCompleted = !showCompleted;\r\n todoListGui();\r\n }",
"synchronized public void markDone() {\n this.done = true;\n }",
"public void setStatus(JobStatus status);",
"protected void markAsDone() {\n isDone = true;\n }",
"public synchronized void setFinished(boolean f){\n finished = f;\n }",
"public Boolean getComplete(){\n return complete;\n }",
"boolean isComplete();",
"boolean isComplete();",
"public void setStatus(Long Status) {\n this.Status = Status;\n }",
"@Override\r\n\tpublic void complete() {\n\r\n\t}",
"void Complete(boolean complete) {\n\n if(complete) {\n\n Toast.makeText(this, \"Story saved to object.\", Toast.LENGTH_LONG ).show();\n Intent intent = new Intent(this, HomeScreen.class);\n intent.putExtra(\"PreviousActivity\", \"RecordStory\");\n intent.putExtra(\"Authenticated\", authenticated);\n intent.putExtra(\"NewStory\", true);\n intent.putExtra(\"storyRef\", tag_data);\n this.startActivity(intent);\n }\n }",
"public boolean isCompleted() {\n\t\t\n\t\treturn completed;\n\t\t\n\t}",
"@Override\n\tpublic void complete(Door d) {\n\t}",
"public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }",
"void completeJob();",
"public void setStatus(StatusOfCause status) {\n\t\tthis.statusValue = status.value;\n\t}",
"public synchronized void join() {\n try {\n connection.close();\n listener.join();\n } catch (Exception io) {\n System.err.println(io.getMessage());\n io.printStackTrace();\n } \n }",
"public boolean isCompleted() {\r\n return completed;\r\n }",
"public synchronized final void setStatus(int sts) {\n\t\tm_status = sts;\n\t\tnotifyAll();\n\t}",
"private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}"
]
| [
"0.670739",
"0.66478974",
"0.6574009",
"0.65623",
"0.65581864",
"0.6513919",
"0.64478993",
"0.64444894",
"0.6231222",
"0.616962",
"0.61182326",
"0.6102703",
"0.6046074",
"0.6021528",
"0.6002609",
"0.5998607",
"0.5978841",
"0.59721667",
"0.5941825",
"0.5940937",
"0.5912215",
"0.5902156",
"0.58690774",
"0.5860233",
"0.580673",
"0.5792965",
"0.577433",
"0.57649153",
"0.57649153",
"0.57649153",
"0.5725334",
"0.57229203",
"0.57229203",
"0.57229203",
"0.56987244",
"0.56747276",
"0.56610376",
"0.56569314",
"0.56275713",
"0.56165373",
"0.5614541",
"0.55862397",
"0.5566992",
"0.55592585",
"0.5543848",
"0.5541442",
"0.55128115",
"0.5505939",
"0.5475399",
"0.5469963",
"0.54694337",
"0.5467759",
"0.5460247",
"0.5455636",
"0.54473376",
"0.5446293",
"0.5440546",
"0.54302466",
"0.54302466",
"0.5423695",
"0.541339",
"0.54084295",
"0.54065996",
"0.53950036",
"0.5391323",
"0.5391323",
"0.5391323",
"0.5387472",
"0.53844476",
"0.53422797",
"0.53418195",
"0.5340445",
"0.5339427",
"0.53260577",
"0.5320612",
"0.5319995",
"0.53127915",
"0.5310279",
"0.5310279",
"0.5303296",
"0.5296653",
"0.5293981",
"0.52884513",
"0.52865666",
"0.5286535",
"0.52857405",
"0.5276142",
"0.5276142",
"0.5275424",
"0.52716464",
"0.5270158",
"0.5258727",
"0.5253212",
"0.52498055",
"0.52463025",
"0.5245675",
"0.52405405",
"0.5239795",
"0.5229679",
"0.52266926"
]
| 0.7784398 | 0 |
TO STRING Returns a string representation of the import queue id. | public String idToString() {
StringBuffer buffer = new StringBuffer();
buffer.append("IQ id(");
buffer.append(importQueueId);
buffer.append(").");
return buffer.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getImportQueueId() {\r\n return importQueueId;\r\n }",
"public String toString() {\r\n StringBuffer buffer = new StringBuffer();\r\n buffer.append(\"IQ id(\");\r\n buffer.append(importQueueId);\r\n buffer.append(\"), uploaded by \");\r\n buffer.append(uploadedByName);\r\n buffer.append(\" on \");\r\n buffer.append(uploadedTime);\r\n buffer.append(\", last updated \");\r\n buffer.append(getLastUpdateString());\r\n buffer.append(\".\");\r\n return buffer.toString();\r\n }",
"private String getNextQueueIdentifier() {\n String qid = PropertyUtils.genGUID(25);\n updateCachedCounts();\n return qid;\n }",
"public java.lang.Object getQueueID() {\n return queueID;\n }",
"@DISPID(62)\r\n\t// = 0x3e. The runtime will prefer the VTID if present\r\n\t@VTID(67)\r\n\tint queueId();",
"@DISPID(113)\r\n\t// = 0x71. The runtime will prefer the VTID if present\r\n\t@VTID(108)\r\n\tint queueId();",
"java.lang.String getQueueName();",
"public String queueName();",
"com.google.protobuf.ByteString\n getQueueNameBytes();",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n jobId_ = s;\n }\n return s;\n }\n }",
"public String getTaskId() {\n Object ref = taskId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskId_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String fieldIdToString() {\r\n\t\treturn new String(String.format(\"%02d\", getID()));\r\n\t}",
"public String getTaskId() {\n Object ref = taskId_;\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 taskId_ = s;\n return s;\n }\n }",
"public String toStringID()\r\n\t{\r\n\t\treturn nodeIdString;\r\n\t}",
"public java.lang.String getJobId() {\n java.lang.Object ref = jobId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n jobId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@DISPID(7)\r\n\t// = 0x7. The runtime will prefer the VTID if present\r\n\t@VTID(13)\r\n\tjava.lang.String queueName();",
"String getBaseQueueName();",
"public static long m3717b(Object obj) {\n return ((QueueItem) obj).getQueueId();\n }",
"public String toString() {\n return id;\n }",
"public String getIdString() {\n return Server.getChunkIdString(this.parent.getSourceFile().getId(), this.chunkID);\n }",
"public String toString() {\r\n\r\n\t\tStringBuilder buffer = new StringBuilder();\r\n\r\n\t\tbuffer.append(\"id=[\").append(id).append(\"] \");\r\n\r\n\t\treturn buffer.toString();\r\n\t}",
"@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(32)\r\n\tjava.lang.String submissionQueue();",
"@Override\n\tpublic String getQueueName() {\n\t\treturn model.getQueueName();\n\t}",
"public com.google.protobuf.ByteString\n getTaskIdBytes() {\n Object ref = taskId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n taskId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public final int getId() {\n\t return icqID;\n }",
"java.lang.String getWorkerId();",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTaskIdBytes() {\n Object ref = taskId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n taskId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n\t\t\t\t\tjava.lang.Object ref = id_;\n\t\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\t\tid_ = s;\n\t\t\t\t\t\treturn s;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t\t}\n\t\t\t\t}",
"public String getThreadPoolStringId(int numericIdForThreadpool);",
"public java.lang.String getTxid() {\n java.lang.Object ref = txid_;\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 txid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@DISPID(26)\r\n\t// = 0x1a. The runtime will prefer the VTID if present\r\n\t@VTID(31)\r\n\tjava.lang.String submissionQueue();",
"@Override\n\tpublic String toString() {\n\t\treturn String.valueOf(this.getId());\n\t}",
"@DISPID(112)\r\n\t// = 0x70. The runtime will prefer the VTID if present\r\n\t@VTID(107)\r\n\tjava.lang.String queue();",
"java.lang.String getStringId();",
"java.lang.String getStringId();",
"public static String getTransactionIDString(final TransactionID transID) {\n\t\treturn accountIDToString(transID.getAccountID()) + \"_\" + timestampToString(transID.getTransactionValidStart());\n\t}",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public abstract String getQueueDisplayName();",
"public String getIdString() {\n return idString;\n }",
"public String toString() {\n\t\tString s = \"(\" + emptyQueueTime + \"ms)_Q[\" + this.id + \"](\" + queueEfficency + \"score)= \";\n\t\tfor (Client a : queue) {\n\t\t\ts += a.toString();\n\t\t}\n\t\ts += \"\\n\";\n\t\treturn s;\n\t}",
"public String toString(){\n\t\treturn \"\"+getId();\n\t}",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public UUID getQueuedMessageId() {\n\t\treturn queuedMessageId;\n\t}",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n id_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getToUid() {\n java.lang.Object ref = toUid_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n toUid_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getJobNoStr(){\n \n // return zero\n if (this.getJobNumber()==0){\n return \"00000000\";\n }\n // for job numbers less than 6 digits pad\n else if (this.getJobNumber() < 100000){\n return \"000\" + Integer.toString(this.getJobNumber()); \n }\n // assume 7 digit job number\n else {\n return \"00\" + Integer.toString(this.getJobNumber()); \n }\n\n }",
"public java.lang.String getProjectId() {\n java.lang.Object ref = projectId_;\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 projectId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\n public String getToID()\n {\n \tStringBuilder sb = new StringBuilder();\n\n\t\tint prefix = getPrefix();\n \tint ident = getIdent1();\n\n \tswitch( IdentType.fromIdent( ident ) )\n \t{\n \t\tcase IPFIXI:\n \t\t\tsb.append( \"INTER-PREFIX\" );\n \t\t\tbreak;\n \t\tcase ALLI:\n \t\t\tsb.append( \"ALL RADIOS\" );\n \t\t\tbreak;\n \t\tcase PABXI:\n \t\t\tsb.append( \"PABX EXT\" );\n \t\t\tbreak;\n \t\tcase PSTNSI1:\n \t\tcase PSTNSI2:\n \t\tcase PSTNSI3:\n \t\tcase PSTNSI4:\n \t\tcase PSTNSI5:\n \t\tcase PSTNSI6:\n \t\tcase PSTNSI7:\n \t\tcase PSTNSI8:\n \t\tcase PSTNSI9:\n \t\tcase PSTNSI10:\n \t\tcase PSTNSI11:\n \t\tcase PSTNSI12:\n \t\tcase PSTNSI13:\n \t\tcase PSTNSI14:\n \t\tcase PSTNSI15:\n \t\t\tsb.append( \"PRE-DEFINED PSTN\" );\n \t\t\tbreak;\n \t\tcase PSTNGI:\n \t\t\tsb.append( \"PSTN GATEWAY\" );\n \t\t\tbreak;\n \t\tcase TSCI:\n \t\t\tsb.append( \"SYSTEM CONTROLLER\" );\n \t\t\tbreak;\n \t\tcase DIVERTI:\n \t\t\tsb.append( \"CALL DIVERT\" );\n \t\t\tbreak;\n \t\tcase USER:\n\t\t\tdefault:\n\t\t\t\tif( prefix != 0 || ident != 0 )\n\t\t\t\t{\n\t \tsb.append( format( prefix, 3 ) );\n\t \tsb.append( \"-\" );\n\t \tsb.append( format( ident, 4) );\n\t\t\t\t}\n \tbreak;\n \t}\n\n \treturn sb.toString();\n }",
"public String getStringID() {\r\n\t\treturn uri.getPath();\r\n\t}",
"public java.lang.String getId() {\n\t\t\t\tjava.lang.Object ref = id_;\n\t\t\t\tif (ref instanceof java.lang.String) {\n\t\t\t\t\treturn (java.lang.String) ref;\n\t\t\t\t} else {\n\t\t\t\t\tcom.google.protobuf.ByteString bs =\n\t\t\t\t\t\t\t(com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tid_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t}\n\t\t\t}",
"public String getId() {\n return this.getClass().getSimpleName() + \"@\" + this.hashCode();\n }",
"public com.google.protobuf.ByteString\n getJobIdBytes() {\n java.lang.Object ref = jobId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n jobId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String toString()\n\t{\n\t\tString queueAsString = \"\";\n\t\tint index = front - 1;\n\t\tfor (int i = 0; i < counter; i++)\n\t\t{\n\t\t\tindex = next(index);\n\t\t\tqueueAsString += list[index] + \" \";\n\t\t}\n\t\treturn queueAsString;\n\t}",
"java.lang.String getJobId();",
"public final synchronized String mo47204a() {\n return this.f49750a.getString(\"topic_operaion_queue\", \"\");\n }",
"@Override\n public String toString() {\n return \"Task no \"+id ;\n }",
"com.google.protobuf.ByteString\n getTaskIdBytes();",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 if (bs.isValidUtf8()) {\n id_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getToUid() {\n java.lang.Object ref = toUid_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n toUid_ = s;\n }\n return s;\n }\n }",
"@Override \r\n\tpublic String toString(){\r\n\t\t\r\n\t\treturn transCode + id;\r\n\t}",
"public String getIDString() {\n return idString;\n }",
"@Override\n public String getFromID()\n {\n \tStringBuilder sb = new StringBuilder();\n\n \tint ident2 = getIdent2();\n \t\n \tIdentType type = IdentType.fromIdent( ident2 );\n\n \t/* Inter-Prefix - the from and to idents are different prefixes */\n \tif( type == IdentType.IPFIXI )\n \t{\n \tsb.append( format( getBlock2Prefix(), 3 ) );\n \tsb.append( \"-\" );\n \tsb.append( format( getBlock2Ident2(), 4) );\n \t}\n \telse\n \t{\n \tsb.append( format( getPrefix(), 3 ) );\n \tsb.append( \"-\" );\n \tsb.append( format( ident2, 4) );\n \t}\n \t\n \treturn sb.toString();\n }",
"public com.google.protobuf.ByteString\n getJobIdBytes() {\n java.lang.Object ref = jobId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n jobId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private String getCorrelationIdFromTask(String TaskContext) {\n String msgContext = TaskContext.substring(TaskContext.indexOf(\":\") + 1);\n logger.debug(String.format(\"msgContext: %s\", msgContext));\n Map msgMap = JSONObjectUtil.toObject(msgContext, LinkedHashMap.class);\n return (String) msgMap.get(ID);\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n id_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n id_ = s;\n }\n return s;\n }\n }",
"@Override\n\tpublic String toString() {\n\t\treturn id;\n\t}",
"public String getString_entries_id() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,11)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_entries_id(i) == (char)0) break;\n carr[i] = (char)getElement_entries_id(i);\n }\n return new String(carr,0,i);\n }",
"public java.lang.String getTxId() {\n java.lang.Object ref = txId_;\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 txId_ = s;\n return s;\n }\n }",
"@Override\n public String toString() {\n return id.toString();\n }",
"protected abstract String getJobSubmitId();",
"@Override\n public String toString() {\n return id.toString();\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn Long.toString(id);\r\n\t}",
"public String getIdAsString(String key) {\n Object obj = ids.get(key);\n if (obj == null) {\n return \"\";\n }\n return String.valueOf(obj);\n }",
"protected String getTaskId() {\n\t\tDisplay.debug(\"getTaskId() devuelve %s\", taskId);\n\t\treturn taskId;\n\t}",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:50:58.282 -0400\", hash_original_method = \"2053F7A68C82ABE32C2AF1BAEC4B5064\", hash_generated_method = \"ADA06475869C2F7BC91A27631CA3BF7E\")\n \npublic PrintJobId getId() {\n return mCachedInfo.getId();\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }",
"public java.lang.String getId() {\n java.lang.Object ref = id_;\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 id_ = s;\n return s;\n }\n }"
]
| [
"0.70178735",
"0.69959074",
"0.61209035",
"0.60745853",
"0.6022758",
"0.6006631",
"0.56569684",
"0.5652425",
"0.5645566",
"0.5618373",
"0.5603432",
"0.55978066",
"0.5590619",
"0.5570643",
"0.5545553",
"0.55148846",
"0.55105495",
"0.54742754",
"0.5445468",
"0.54276556",
"0.5361736",
"0.53252155",
"0.53053105",
"0.5303426",
"0.5281302",
"0.5274614",
"0.5269531",
"0.5269531",
"0.52645874",
"0.5264043",
"0.5264043",
"0.5263689",
"0.52552915",
"0.52454984",
"0.5241652",
"0.5241652",
"0.5241652",
"0.5241652",
"0.5241652",
"0.5241652",
"0.5241652",
"0.5241652",
"0.5241124",
"0.5240382",
"0.52382255",
"0.5236947",
"0.5236849",
"0.52338815",
"0.52338815",
"0.52327913",
"0.5217183",
"0.5215584",
"0.52139676",
"0.5213802",
"0.5199084",
"0.51966864",
"0.5192328",
"0.5177637",
"0.5177627",
"0.51709914",
"0.5165281",
"0.5165281",
"0.5165281",
"0.5165281",
"0.5165281",
"0.5162211",
"0.51612306",
"0.5154086",
"0.51522803",
"0.5143739",
"0.5143145",
"0.51376486",
"0.5134666",
"0.5133485",
"0.51325035",
"0.512432",
"0.5123009",
"0.51146215",
"0.5102372",
"0.50984913",
"0.5094043",
"0.50922847",
"0.50920635",
"0.5079377",
"0.50724643",
"0.50724643",
"0.5071044",
"0.5067256",
"0.5058901",
"0.5048184",
"0.50444955",
"0.50435805",
"0.50408214",
"0.5023544",
"0.50189084",
"0.50172824",
"0.50089157",
"0.50078195",
"0.50078195",
"0.50078195"
]
| 0.810022 | 0 |
Returns a string representation of this object. | public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("IQ id(");
buffer.append(importQueueId);
buffer.append("), uploaded by ");
buffer.append(uploadedByName);
buffer.append(" on ");
buffer.append(uploadedTime);
buffer.append(", last updated ");
buffer.append(getLastUpdateString());
buffer.append(".");
return buffer.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"public String toString() { return stringify(this, true); }",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}",
"public String toString() {\n\t\treturn toString(this);\n\t}",
"public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }",
"public String toString() {\n\t\treturn toString(true);\n\t}",
"@Override\n public String toString() {\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}",
"@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }",
"@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"public String toString() {\n\t\treturn toString(0, 0);\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"@Override\n public String toString() {\n return toString(false, true, true, null);\n }",
"@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }",
"@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}",
"public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }",
"@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }",
"public String toString() {\n return toDisplayString();\n }",
"@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }",
"@Override\n public String toString()\n {\n return this.toLsString();\n }",
"public String toString() {\n\t\treturn this;\n\t}",
"@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }",
"public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}",
"public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}",
"public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}",
"@Override public String toString();",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}",
"@Override\n\tpublic String toString() {\n\t\tif (repr == null)\n\t\t\trepr = toString(null);\n\n\t\treturn repr;\n\t}",
"public String toString() {\n return \"\" + data;\n }",
"public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}",
"@Override\n public String toString() {\n return (this.str);\n }",
"public String toString() {\n\t\treturn data.toString();\n\t}",
"public String toString() {\n\t\treturn data.toString();\n\t}",
"public String toString() {\n\t\treturn super.toString();\n\t}",
"public String toString() {\n\t\treturn super.toString();\n\t}",
"public String toString(){\r\n\t\tString output=\"\";\r\n\t\toutput+=super.toString();\r\n\t\treturn output;\r\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn this.str;\n\t}",
"public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToStringFK(\"Project\", getProject()));\n buffer.append(objectToStringFK(\"User\", getUser()));\n buffer.append(objectToString(\"Status\", getStatus()));\n buffer.append(objectToString(\"LastActivityDate\", getLastActivityDate()));\n buffer.append(objectToString(\"HasPiSeen\", getHasPiSeen()));\n buffer.append(objectToString(\"HasDpSeen\", getHasDpSeen()));\n buffer.append(objectToString(\"HasAdminSeen\", getHasAdminSeen()));\n buffer.append(objectToString(\"HasRequestorSeen\", getHasRequestorSeen()));\n buffer.append(objectToString(\"EmailStatus\", getEmailStatus()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}",
"public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}",
"@Override String toString();",
"public synchronized String toString() {\n StringBuffer oBuffer = new StringBuffer();\n\n oBuffer\n .append(\"Preprocessing params: \").append(this.oPreprocessingParams).append(\"\\n\")\n .append(\"Feature extraction params: \").append(this.oFeatureExtractionParams).append(\"\\n\")\n .append(\"Classification params: \").append(this.oClassificationParams);\n\n return oBuffer.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.toAnticipatedString();\n\t}",
"public String toString() {\n return \"\";\n }",
"public String toString() {\n return \"\";\n }",
"@Override\r\n\tpublic String toString();",
"public String toString() {\t\t\t\t\t\r\n\t\treturn super.toString();\r\n\t}",
"public String toString()\r\n\t{\r\n\t\treturn toCharSequence().toString();\r\n\t}",
"public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tthis.createSpecSection(buffer);\n\t\tthis.createOperatorSection(buffer);\n\t\treturn buffer.toString();\n\t}",
"@Override\n public String toString() {\n return value();\n }",
"public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"ProjectName\", getProjectName()));\n buffer.append(objectToStringFK(\"DataProvider\", getDataProvider()));\n buffer.append(objectToStringFK(\"PrimaryInvestigator\", getPrimaryInvestigator()));\n buffer.append(objectToStringFK(\"CreatedBy\", getCreatedBy()));\n buffer.append(objectToString(\"CreatedTime\", getCreatedTime()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }",
"public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tsb.append(\"<div>\");\r\n\t\tsb.append(\"Names: \").append(this.getNames().toString()).append(\",<br/>\");\r\n\t\tsb.append(\"Addresses: \").append(this.getAddresses().toString()).append(\",<br/>\");\r\n\t\tsb.append(\"Contacts: \").append(this.getContacts().toString()).append (\",<br/>\");\r\n\t\tsb.append(\"Identifiers: \").append(this.getIdentifiers().toString()).append(\",<br/>\");\r\n\t\tsb.append(\"</div>\");\r\n\t\treturn sb.toString();\r\n\t}",
"public String toString() {\r\n return ToStringBuilder.reflectionToString(this,\r\n ToStringStyle.MULTI_LINE_STYLE);\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}",
"public String toString(){\n return XMLParser.parseObject(this);\n }",
"public java.lang.String toString() {\n return this.stringValue;\n }",
"@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }",
"@Override\r\n String toString();",
"public String toString() {\r\n return \"\";\r\n }",
"public String getAsString() {\n\t\treturn new String(this.getAsBytes());\n\t}",
"public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}",
"public String toString() {\n if (this.data.isEmpty()) {\n return super.toString();\n }\n return BytesUtil.bytes2HexString(toBinary());\n }",
"public String toString() {\n\n return this.getClass().getName() + \" -- \" \n\n + \" [Id:\" + this.getSequenceNumber()\n\n + \", ts:\" + this.getTimeStamp() + \"]\";\n\n }",
"public String toString() {\n\t\treturn (getValue().toString());\r\n\t}",
"public String toString() {\n\t\treturn str;\n\t}",
"public String toString() {\n \t\treturn super.toString();\n \t}",
"public String toString() {\n\t String outPut = \"byteValue(): \" + byteValue()\n\t \t\t+ \"\\nshortValue(): \" + shortValue()\n\t \t\t+ \"\\nintValue(): \" + intValue()\n\t \t\t+ \"\\nlongValue(): \" + longValue()\n\t \t\t+ \"\\nfloatValue(): \" + floatValue()\n\t \t\t+ \"\\ndoubleValue(): \" + doubleValue();\n\t \n\t return outPut;\n }",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}",
"@Override\r\n public String toString();",
"@Override\n public String toString() {\n return string;\n }",
"@Override\n public String toString() {\n return MoreObjects.toStringHelper(this) //\n .add(\"name\", getName()) //\n .add(\"phNumber\", getPhNumber()) //\n .add(\"emailId\", getEmailId()) //\n .add(\"parent\", getParent()) //\n .toString();\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}"
]
| [
"0.8588885",
"0.85858077",
"0.85741955",
"0.85741955",
"0.84884495",
"0.8370555",
"0.8355477",
"0.83117306",
"0.8287743",
"0.82361394",
"0.82195556",
"0.8179197",
"0.8171024",
"0.8171024",
"0.8151153",
"0.80986273",
"0.80929124",
"0.8052724",
"0.80428773",
"0.8037916",
"0.8037916",
"0.8037916",
"0.80324763",
"0.8010507",
"0.8008957",
"0.8008957",
"0.8008816",
"0.80084944",
"0.7994164",
"0.79594713",
"0.79296243",
"0.7925066",
"0.79026943",
"0.789226",
"0.78910375",
"0.78872377",
"0.7856525",
"0.78245646",
"0.7823316",
"0.782052",
"0.7817973",
"0.7814104",
"0.78032017",
"0.77849156",
"0.77822554",
"0.77749646",
"0.77738136",
"0.77731824",
"0.7769787",
"0.7754192",
"0.7746969",
"0.77325994",
"0.7718416",
"0.7710317",
"0.7710317",
"0.77074206",
"0.77074206",
"0.7699879",
"0.7696308",
"0.76952016",
"0.7690136",
"0.76887864",
"0.7687781",
"0.7683982",
"0.7672713",
"0.76704085",
"0.76704085",
"0.76698774",
"0.76689374",
"0.7663413",
"0.7662847",
"0.7658029",
"0.7657524",
"0.76440215",
"0.7641139",
"0.7637668",
"0.76371086",
"0.7631131",
"0.76255614",
"0.76220256",
"0.7613265",
"0.7612111",
"0.7593829",
"0.7589029",
"0.7585389",
"0.75820595",
"0.75762576",
"0.7573104",
"0.75690323",
"0.756528",
"0.7562444",
"0.7562338",
"0.7562022",
"0.7562014",
"0.75593764",
"0.7558962",
"0.7558962",
"0.7558962",
"0.7558962",
"0.7558962",
"0.7558962"
]
| 0.0 | -1 |
GETTERS and SETTERS Gets importQueueId. | public Integer getImportQueueId() {
return importQueueId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DISPID(113)\r\n\t// = 0x71. The runtime will prefer the VTID if present\r\n\t@VTID(108)\r\n\tint queueId();",
"@DISPID(62)\r\n\t// = 0x3e. The runtime will prefer the VTID if present\r\n\t@VTID(67)\r\n\tint queueId();",
"public java.lang.Object getQueueID() {\n return queueID;\n }",
"public gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId getGiimportId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId target = null;\r\n target = (gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId)get_store().find_element_user(GIIMPORTID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public Integer getTpImportId() {\r\n\t\treturn tpImportId;\r\n\t}",
"private String getNextQueueIdentifier() {\n String qid = PropertyUtils.genGUID(25);\n updateCachedCounts();\n return qid;\n }",
"@Override\n protected String getQueueName() {return _queueName;}",
"public void setQueueID(java.lang.Object queueID) {\n this.queueID = queueID;\n }",
"public int getQueuePosition();",
"public String idToString() {\r\n StringBuffer buffer = new StringBuffer();\r\n buffer.append(\"IQ id(\");\r\n buffer.append(importQueueId);\r\n buffer.append(\").\");\r\n return buffer.toString();\r\n }",
"public String getImportBatchno() {\r\n return importBatchno;\r\n }",
"public int getJobId() ;",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-06 12:50:58.282 -0400\", hash_original_method = \"2053F7A68C82ABE32C2AF1BAEC4B5064\", hash_generated_method = \"ADA06475869C2F7BC91A27631CA3BF7E\")\n \npublic PrintJobId getId() {\n return mCachedInfo.getId();\n }",
"public final int getId() {\n\t return icqID;\n }",
"public long getBucketID(){\n return localBucketID;\n }",
"QueueDto lookupClientQueue(long clientId) throws IOException, MlmqException;",
"Queue getQueue() throws NamingException;",
"@Transactional(readOnly = true)\n public int getQueueNumber(Long id) {\n log.debug(\"Request to get getQueueNumber : {}\", id);\n return findByFoodJoint_Id(id).size();\n }",
"public int getQueuePosition() {\n\t\treturn mPlayPos;\n\t}",
"public int getJobId() {\r\n\t\treturn jobId;\r\n\t}",
"java.lang.String getQueueName();",
"protected abstract String getJobSubmitId();",
"public GetACDHistoryRequest setAcdQueueId(MultiArgument<Long> d) {\n this.acdQueueId = d;\n return this;\n }",
"QueueDto lookupClientQueue(String queueName) throws IOException, MlmqException;",
"public String getImportArn() {\n return this.importArn;\n }",
"String getBaseQueueName();",
"long getJobIDSource();",
"@Import(\"id\")\n\tint getId();",
"public Integer getId() {\n\t\treturn orderPickListId;\n\t}",
"public String queueName();",
"public synchronized int getStockId() {\n\t\treturn stockId;\n\t}",
"public Integer getUploadId() {\n\t\treturn uploadId;\n\t}",
"public int getImportedMaxId();",
"public TpImportBatch getTpImportBatch() {\r\n\t\treturn tpImportBatch;\r\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"support\", value = \"The name of the queue\")\n @JsonProperty(JSON_PROPERTY_QUEUE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getQueue() {\n return queue;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"support\", value = \"The name of the queue\")\n @JsonProperty(JSON_PROPERTY_QUEUE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getQueue() {\n return queue;\n }",
"public String getUploadId() {\n return uploadId;\n }",
"long getJobIDTarget();",
"public static long m3717b(Object obj) {\n return ((QueueItem) obj).getQueueId();\n }",
"public String getJobId() {\n return jobId;\n }",
"java.lang.String getJobId();",
"public static Queue getQueue(){\r\n\t\treturn queueInstance;\r\n\t}",
"@Override\n\tpublic String getQueueName() {\n\t\treturn model.getQueueName();\n\t}",
"public String getJobId();",
"public int getBigId () { return bigId; }",
"@Override\n\tpublic long getJobId() {\n\t\treturn model.getJobId();\n\t}",
"public List<MediaSessionCompat.QueueItem> getQueue() {\n }",
"public String getIdPrefix() {\n \t\treturn idPrefix;\n \t}",
"public void loadQueue(){\n for (Block block : this.blocks) {\n this.queue.add(block.getID());\n }\n this.queue_set = true;\n }",
"@DISPID(32)\r\n\t// = 0x20. The runtime will prefer the VTID if present\r\n\t@VTID(32)\r\n\tjava.lang.String submissionQueue();",
"public void setRequestQueue(BlockingQueue q)\n {\n queue = q;\n }",
"public long getJobIDSource() {\n return jobIDSource_;\n }",
"public void setJobId( int jobId ) ;",
"@javax.annotation.Nullable\n @ApiModelProperty(example = \"7\", value = \"Last position of the call in the queue.\")\n @JsonProperty(JSON_PROPERTY_QUEUE_POSITION)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public Integer getQueuePosition() {\n return queuePosition;\n }",
"String getBaseQueueManagerName();",
"public Integer getBatch_id() {\n\t\treturn batch_id;\n\t}",
"public java.lang.Integer getJobsInQueue() {\n return jobsInQueue;\n }",
"@SuppressWarnings(\"WeakerAccess\")\n public void importField(Field field, RecordIterator iterator, ImportOptions options, final BlockingQueue<ImportStatusUpdate> statusQueue) {\n Span span = this.tracer.buildSpan(\"Client.ImportField\").start();\n try {\n BitImportManager manager = new BitImportManager(options);\n manager.run(this, field, iterator, statusQueue);\n } finally {\n span.finish();\n }\n }",
"@DISPID(112)\r\n\t// = 0x70. The runtime will prefer the VTID if present\r\n\t@VTID(107)\r\n\tjava.lang.String queue();",
"String nameOfListenQueue();",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public String getJobId() {\n return this.jobId;\n }",
"public long getJobIDSource() {\n return jobIDSource_;\n }",
"public void setGiimportId(gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId giimportId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId target = null;\r\n target = (gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId)get_store().find_element_user(GIIMPORTID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId)get_store().add_element_user(GIIMPORTID$0);\r\n }\r\n target.set(giimportId);\r\n }\r\n }",
"public interface QueueManager {\n List<Message> messages = null;\n\n int insertQueue(String queueId, Message message);\n\n List<Message> getQueue(String queueId, int num);\n}",
"public String getJobReqID() {\n\t\treturn jobReqID;\n\t}",
"public int getId(){\r\n return localId;\r\n }",
"public Integer getFromId() {\n return fromId;\n }",
"public gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId addNewGiimportId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId target = null;\r\n target = (gov.nih.nlm.ncbi.www.GiimportIdDocument.GiimportId)get_store().add_element_user(GIIMPORTID$0);\r\n return target;\r\n }\r\n }",
"public abstract int getBucketID();",
"Collection<QueuedPrintJob> getQueue();",
"public int getTaskId() {\n return mTaskId;\n }",
"public String getExchangeCaseMgrQueue() {\n\t\treturn exchangeCaseMgrQueue;\n\t}",
"@DISPID(7)\r\n\t// = 0x7. The runtime will prefer the VTID if present\r\n\t@VTID(13)\r\n\tjava.lang.String queueName();",
"java.lang.String getWorkerId();",
"public String getBatchId() {\r\n return batchId;\r\n }",
"public String getJobId() {\n\t\treturn this.jobId;\n\t}",
"public AppQueue getQueue()\r\n {\r\n return event_q;\r\n }",
"@Pure\n\tprotected ImportManager getImportManager() {\n\t\treturn this.importManager;\n\t}",
"@Override\n public String getTypeID() {\n return job_id;\n }",
"public Integer getBatchId() {\r\n\t\treturn batchId;\r\n\t}",
"public String getBatchId() {\n return batchId;\n }",
"void setID(int id){\n\t\tthis.qID = id;\n\t}",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"private Integer getId() { return this.id; }",
"@DISPID(26)\r\n\t// = 0x1a. The runtime will prefer the VTID if present\r\n\t@VTID(31)\r\n\tjava.lang.String submissionQueue();",
"public UUID getQueuedMessageId() {\n\t\treturn queuedMessageId;\n\t}",
"public int getExchangeId() {\n return exchangeId_;\n }",
"public static List<Integer> getQueueMessageList() {\n\t\treturn queueMessageList;\n\t}",
"public Long getJobID() {\n return jobID;\n }",
"public java.lang.String getQueueName() {\n return queueName;\n }",
"public void setQueue ( Queue queue )\r\n {\r\n setDestination ( queue );\r\n }",
"String getQueueManagerPort();",
"protected void assignTransmissionId(AeB4PQueueObject aQueueObject,\r\n IAeTransmission aTransmission) throws AeBusinessProcessException\r\n {\r\n long transmissionId = removeInvokeTransmittedEntry(aQueueObject.getLocationId());\r\n if (transmissionId != IAeTransmissionTracker.NULL_TRANSREC_ID)\r\n {\r\n // Restore the invoke's transmission.\r\n aTransmission.setTransmissionId(transmissionId);\r\n }\r\n }",
"public int getTaskId() {\n return taskId;\n }",
"public abstract String getQueueDisplayName();",
"public void setBucketID(long param){\n localBucketIDTracker = true;\n \n this.localBucketID=param;\n \n\n }",
"public Integer getStockId() {\r\n\t\treturn stockId;\r\n\t}",
"public String getImportStatus() {\n return this.importStatus;\n }"
]
| [
"0.6148324",
"0.611376",
"0.61108613",
"0.5640607",
"0.56372315",
"0.55822253",
"0.55546695",
"0.5456872",
"0.5421816",
"0.5401166",
"0.5342461",
"0.5331725",
"0.53241265",
"0.5321204",
"0.53129166",
"0.52422047",
"0.5239382",
"0.5239325",
"0.51975256",
"0.5185351",
"0.5119994",
"0.5103065",
"0.50961673",
"0.5094173",
"0.505505",
"0.50351715",
"0.5025656",
"0.5018011",
"0.49914286",
"0.49904576",
"0.4982532",
"0.49821132",
"0.49775976",
"0.4966987",
"0.49614805",
"0.49614805",
"0.49218172",
"0.4913889",
"0.4905954",
"0.49013802",
"0.48855662",
"0.48799267",
"0.48660445",
"0.48556873",
"0.48471022",
"0.48422948",
"0.48322913",
"0.48302516",
"0.4826758",
"0.48232517",
"0.4817044",
"0.48149252",
"0.48134044",
"0.4792904",
"0.47922298",
"0.4783218",
"0.47780108",
"0.4775946",
"0.4769327",
"0.47592577",
"0.47536692",
"0.47536692",
"0.47536692",
"0.47493094",
"0.47489715",
"0.47353506",
"0.47207975",
"0.47167397",
"0.47130594",
"0.47066334",
"0.47011456",
"0.4700851",
"0.46981752",
"0.46930668",
"0.46907192",
"0.4690658",
"0.469047",
"0.46900225",
"0.46892095",
"0.4675355",
"0.46655405",
"0.46647823",
"0.46629345",
"0.46582007",
"0.46522674",
"0.46493453",
"0.46474472",
"0.46436214",
"0.46394977",
"0.46372876",
"0.4626648",
"0.46167547",
"0.46145657",
"0.46097153",
"0.46096915",
"0.46082753",
"0.46005556",
"0.45939612",
"0.45934212",
"0.45931017"
]
| 0.83937705 | 0 |
Whether or not the import queue item includes usercreated KCMs. If null, then the import queue item was not created from an existing sample. | public Boolean getFromSampleWithUserKCs() {
return fromSampleWithUserKCs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSetImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IMPORT$0) != 0;\n }\n }",
"private boolean getIsImported(String productName) {\n\t\treturn productName.contains(AppConstants.IMPORTED_TOKEN);\n\t}",
"public boolean isImported()\n\t{\n\t\treturn imported;\n\t}",
"public boolean hasImportConfiguration() {\n return importConfiguration_ != null;\n }",
"public boolean hasUploadRequest() {\n return uploadRequestBuilder_ != null || uploadRequest_ != null;\n }",
"@Override\n\tprotected boolean itemExists() {\n\t\treturn false;\n\t}",
"public boolean isImageNotPresent() {\n if (addingItem) {\n if (picturePath == null) {\n if (makeImageMandatory) {\n return true;\n //true creates toast\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n }",
"public void setFromSampleWithUserKCs(Boolean fromSampleWithUserKCs) {\r\n this.fromSampleWithUserKCs = fromSampleWithUserKCs;\r\n }",
"boolean hasItemStorage();",
"public boolean isImported();",
"@java.lang.Override\n public boolean hasUploadRequest() {\n return uploadRequest_ != null;\n }",
"public boolean hasImportConfiguration() {\n return importConfigurationBuilder_ != null || importConfiguration_ != null;\n }",
"@java.lang.Override\n public boolean hasDeletedItemKey() {\n return inventoryItemCase_ == 2;\n }",
"@java.lang.Override\n public boolean hasDeletedItemKey() {\n return inventoryItemCase_ == 2;\n }",
"public boolean needAddToMediaSaver() {\n return true;\n }",
"public boolean hasCreateTaskPack() {\n return packCase_ == 3;\n }",
"boolean hasFeedItemSet();",
"public boolean hasCreateTaskPack() {\n return packCase_ == 3;\n }",
"public boolean getIsImport() {\n return getAsBoolean(\"isImport\");\n }",
"boolean hasImported();",
"protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}",
"public boolean isExisting() throws Exception\r\n\t\t{\r\n\t\tRouteGroup myR = (RouteGroup) myRouteGroup.get();\r\n\t\tthis.UUID = myR.getUUID();\r\n\t\t\r\n\t\tVariables.getLogger().debug(\"Item \"+this.name+\" already exist in the CUCM\");\r\n\t\treturn true;\r\n\t\t}",
"public static boolean hasNonDefaultParams(Item itemToAdd) {\n return itemToAdd.getQuantity().equals(DEFAULT_QUANTITY_TYPED)\n && (itemToAdd.getDescription().equals(DEFAULT_DESCRIPTION));\n }",
"@Override\n public boolean hasUploadedFiles(Item item) throws SQLException\n {\n List<Bundle> bundles = getBundles(item, \"ORIGINAL\");\n for (Bundle bundle : bundles) {\n if (CollectionUtils.isNotEmpty(bundle.getBitstreams())) {\n return true;\n }\n }\n return false;\n }",
"boolean hasCreateTaskPack();",
"public boolean hasItem() {\n return this.item != null;\n }",
"@Override\r\n\t\tpublic boolean createItem() {\n\t\t\treturn false;\r\n\t\t}",
"public boolean hasItem() {\n return null != item;\n }",
"boolean hasFeedItemTarget();",
"public boolean canDrop(){\n return this.collectedItems < STORAGE_AMOUNT && System.currentTimeMillis() - lastDrop >= delayInMillis;\n }",
"private boolean fieldQualifiesForImport(ActionImportField actionField) {\n return (actionField.hasRequiredImport() && actionField.getValue() == null) || actionField.isOptionalImportRequest();\n }",
"public boolean isSetKin() {\n return this.kin != null;\n }",
"boolean hasUploadRequest();",
"boolean hasImportConfiguration();",
"public boolean isCreated() {\n\t\treturn mqttClient != null;\n\t}",
"public boolean isInitial() {\n return currentItemState == ItemProcessingState.INITIAL;\n }",
"public synchronized boolean hasSpamFolder() {\n return !K9.FOLDER_NONE.equalsIgnoreCase(mSpamFolderName);\n }",
"boolean getImported();",
"public boolean isSetInsertTime() {\n return this.insertTime != null;\n }",
"public boolean hasMediaAssetFileHolder() {\n return mediaAssetFileHolder_ != null;\n }",
"public boolean isSetItems() {\n return this.items != null;\n }",
"public boolean isSetStartTime() {\n return this.startTime != null;\n }",
"public boolean isSetBuycardate() {\n return this.buycardate != null;\n }",
"public boolean hasChunkRequest() {\n return chunkRequestBuilder_ != null || chunkRequest_ != null;\n }",
"public boolean getImported();",
"@Override\r\n\tpublic boolean isExisting() {\n\t\treturn false;\r\n\t}",
"public boolean isAllowAddsWhileDeprovisioned() {\r\n return GrouperUtil.booleanValue(this.allowAddsWhileDeprovisionedString, false);\r\n }",
"public boolean isSetStartTime() {\n return this.startTime != null;\n }",
"public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"protected boolean isItemSupported(String topic, String item, int uFmt)\n {\n return isTopicSupported(topic);\n }",
"public Boolean getCurrentItemBOMTreeHasOptionalItems() {\n if (current != null && currentItemBOMTreeHasOptionalItems == null) {\n currentItemBOMTreeHasOptionalItems = itemHasOptionalsInBOM(current); \n if (!currentItemBOMTreeHasOptionalItems) {\n for (Item item : newItemsToAdd) {\n currentItemBOMTreeHasOptionalItems = itemHasOptionalsInBOM(item);\n if (currentItemBOMTreeHasOptionalItems) {\n return true; \n }\n }\n }\n\n }\n return currentItemBOMTreeHasOptionalItems;\n }",
"boolean getImportConfigurationNull();",
"public boolean importable()\r\n\t{\r\n\t\treturn isImportable(getInputStream());\r\n\t}",
"public boolean hasItemStorage() {\n return ((bitField0_ & 0x00000040) == 0x00000040);\n }",
"boolean hasFeedItem();",
"public boolean isMissingData() {\n return myModel.getRealtimeTimestamp() == 0;\n }",
"public boolean isI_IsImported();",
"public synchronized boolean isEmpty(){\n boolean isEmpty = true;\n for(ShoppingCartItem item : getItems()){\n if(item!=null)\n isEmpty=false;\n }\n return isEmpty;\n }",
"boolean hasCampaignAsset();",
"public boolean hasObjectFileKey() {\n return objectFileKey_ != null;\n }",
"boolean hasDeleteTaskPack();",
"public boolean getImportConfigurationNull() {\n return importConfigurationNull_;\n }",
"boolean hasPkiData();",
"public boolean istKorrupt() {\n\t\tif (this.korrupt) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isMASCUsed() {\n return usedMASC;\n }",
"protected boolean isCreateMessageIds() {\n\t\treturn this.createMessageIds;\n\t}",
"public boolean isSetStartTime()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(STARTTIME$22) != null;\r\n }\r\n }",
"public boolean hasProducerTime() {\n return fieldSetFlags()[1];\n }",
"public boolean getImportConfigurationNull() {\n return importConfigurationNull_;\n }",
"public boolean hasMediaAssetFileHolder() {\n return instance.hasMediaAssetFileHolder();\n }",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn lvConsumerIndex() == lvProducerIndex();\r\n\t}",
"private boolean isPackValid() {\n\t\treturn (logData != null\n\t\t\t\t&& logData.entries != null\n\t\t\t\t&& logData.entries.size() > 1);\n\t}",
"boolean hasPlainImport();",
"public boolean hasVariable(Generator producer) {\n boolean isNew = producer.getAttribute(AlgorithmConstants.IS_NEW_MICROGRID_KEY) != null && producer.getAttribute(AlgorithmConstants.IS_NEW_MICROGRID_KEY, Boolean.class); \n return producer.getStatus() && isNew;\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isMTBTypesKeyInitialized() {\n return MTBTypesKey_is_initialized; \n }",
"public synchronized boolean hasSentFolder() {\n return !K9.FOLDER_NONE.equalsIgnoreCase(mSentFolderName);\n }",
"public boolean hasInput() {\n return basePackage != DEFAULT_BASE_PACKAGE\n || !basePackages.isEmpty()\n || bannedImport != null\n || !bannedImports.isEmpty()\n || allowedImport != null\n || !allowedImports.isEmpty()\n || exclusion != null\n || !exclusions.isEmpty();\n }",
"public boolean containsNoItems() {\n\t\treturn (this.items.size() == 0);\n\t}",
"@java.lang.Override\n public boolean hasChunkRequest() {\n return chunkRequest_ != null;\n }",
"boolean hasCampaignSharedSet();",
"public boolean isIs_pre_hgk_published() {\n return is_pre_hgk_published;\n }",
"boolean hasExtensionFeedItem();",
"public boolean hasSampleId() {\n return fieldSetFlags()[2];\n }",
"public boolean isSetContextItems() {\r\n return this.contextItems != null;\r\n }",
"boolean hasItemId();",
"boolean hasItemId();",
"boolean hasItemId();",
"boolean hasItemId();",
"boolean hasItemId();",
"boolean hasItemId();",
"boolean hasItemId();",
"public boolean shouldRenderUpload() {\r\n if (recipe != null && ui.isIsUserAuthenticated()) {\r\n return recipe.getCreator().getUserName().equals(ui.getUser().getUserName());\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean isSetCreatetime() {\n return this.createtime != null;\n }",
"public boolean isImportMessageDisplayed()\n {\n try\n {\n\n waitForElement(By.xpath(\".//span[contains(text(),'Website data import successful')]\"), SECONDS.convert(getDefaultWaitTime(), MILLISECONDS));\n WebElement importMessage = driver.findElement(By.xpath(\".//span[contains(text(),'Website data import successful')]\"));\n if (importMessage != null)\n return true;\n }\n catch (NoSuchElementException nse)\n {\n return false;\n }\n\n return false;\n }",
"public boolean hasDeleteTaskPack() {\n return packCase_ == 4;\n }",
"java.lang.Boolean hasUploadDownloadConfig(java.lang.String userName) throws com.ctb.exception.CTBBusinessException;",
"public boolean isSuccessful() {\r\n return isTargetTemplateSetPresent() && missing.isEmpty();\r\n }",
"public boolean isPickedUp() {\r\n return pickedUp;\r\n }",
"@Override\r\n\tpublic boolean canTakeItems() {\n\t\treturn false;\r\n\t}"
]
| [
"0.5450416",
"0.53791016",
"0.5350446",
"0.5228468",
"0.52206814",
"0.5218513",
"0.52158207",
"0.52124894",
"0.5152817",
"0.5125662",
"0.51075196",
"0.5091686",
"0.5075013",
"0.5049191",
"0.5041587",
"0.50260913",
"0.5018502",
"0.5010784",
"0.49426565",
"0.4940601",
"0.4934728",
"0.49258792",
"0.49090695",
"0.48930258",
"0.48202193",
"0.48054284",
"0.48048383",
"0.48040345",
"0.47897843",
"0.47872803",
"0.47855684",
"0.47652254",
"0.47556788",
"0.47414047",
"0.4737539",
"0.47352305",
"0.47317052",
"0.4730499",
"0.47235107",
"0.47203538",
"0.4708838",
"0.46848804",
"0.46812406",
"0.4674662",
"0.46728623",
"0.466893",
"0.4654775",
"0.46547616",
"0.46516818",
"0.46403328",
"0.46366897",
"0.46364963",
"0.46362516",
"0.46314004",
"0.4629686",
"0.46227947",
"0.46189046",
"0.46158382",
"0.4609037",
"0.46033236",
"0.4593824",
"0.45883474",
"0.45849806",
"0.45840454",
"0.45825714",
"0.45728177",
"0.45692167",
"0.45683298",
"0.45634747",
"0.4548845",
"0.4543203",
"0.4542202",
"0.45395097",
"0.45238492",
"0.45227715",
"0.4518798",
"0.45164314",
"0.45138848",
"0.45130086",
"0.45108625",
"0.450402",
"0.45034215",
"0.44913396",
"0.4490415",
"0.44892466",
"0.44887024",
"0.44887024",
"0.44887024",
"0.44887024",
"0.44887024",
"0.44887024",
"0.44887024",
"0.448796",
"0.4486332",
"0.44845894",
"0.44844684",
"0.44811618",
"0.44797763",
"0.44779408",
"0.44760153"
]
| 0.564917 | 0 |
Set whether or not the import queue item includes usercreated KCMss. | public void setFromSampleWithUserKCs(Boolean fromSampleWithUserKCs) {
this.fromSampleWithUserKCs = fromSampleWithUserKCs;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getFromSampleWithUserKCs() {\r\n return fromSampleWithUserKCs;\r\n }",
"public void setImported(boolean imported);",
"public void setImported(boolean imported)\n\t{\n\t\tthis.imported = imported;\n\t}",
"public void setI_IsImported (boolean I_IsImported);",
"public void setK(boolean k) {\n\tthis.k = k;\n }",
"public void setCtUser(String ctUser) {\n this.ctUser = ctUser;\n }",
"public void setKs(java.lang.String param) {\r\n localKsTracker = param != null;\r\n\r\n this.localKs = param;\r\n }",
"public void assignUserMaintOK(final boolean val) {\n userMaintOK = val;\n }",
"public void setMASCUsed(boolean used) {\n usedMASC = used;\n }",
"public void markCannotBeKept() {\n cannotBeKept = true;\n }",
"public Builder setIsPartitionKey(boolean value) {\n\n isPartitionKey_ = value;\n onChanged();\n return this;\n }",
"public boolean isSetKin() {\n return this.kin != null;\n }",
"public boolean isSetKeff() {\r\n return isSetAttribute(MEConstants.keff);\r\n }",
"public void setExistingUser(boolean isExistingUser) {\r\n this.isExistingUser = isExistingUser;\r\n }",
"public void setImportTime(String importTime) {\r\n this.importTime = importTime == null ? null : importTime.trim();\r\n }",
"public void setCurrentUserPremium() {\n\t\tcurrentUser.setPremium(true);\n\t\tuserCatalog.modifyUser(currentUser);\n\t}",
"public boolean isSetKau() {\n return this.kau != null;\n }",
"public boolean isSetKau() {\n return this.kau != null;\n }",
"public void setKerberosToken(boolean value) {\n\t\tthis.kerberosToken = value;\n\t}",
"public void setIsFromMassUpdate (boolean IsFromMassUpdate);",
"@NoProxy\n @NoDump\n public void setSuppressed(final boolean val) {\n if (val) {\n setStatus(statusMasterSuppressed);\n } else {\n setStatus(null);\n }\n }",
"public boolean isSetImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(IMPORT$0) != 0;\n }\n }",
"public boolean isSetRequesting_user() {\n return this.requesting_user != null;\n }",
"public boolean isMASCUsed() {\n return usedMASC;\n }",
"public void setSetuped(boolean isSetupped){\r\n\t\tinitialSetuped = isSetupped;\r\n\t}",
"public void setIs_pre_hgk_published(boolean is_pre_hgk_published) {\n this.is_pre_hgk_published = is_pre_hgk_published;\n }",
"boolean isSetCurrentrun();",
"public void setMandatory(String isMandatory) {\n\t\tif (isMandatory != null) {\n\t\t\tif (\"N\".equals(isMandatory) || \"n\".equals(isMandatory)) {\n\t\t\t\tthis.mandatory = false;\n\t\t\t} else if (\"Y\".equals(isMandatory) || \"y\".equals(isMandatory)) {\n\t\t\t\tthis.mandatory = true;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(dataItemName + \" mandatory flag is \" + this.mandatory);\n\t}",
"public void setToGridPermanently(){\n this.isPermanent = true;\n }",
"public void setUsed() {\n used = true;\n }",
"public void setInstantTicket(boolean value) {\n this.instantTicket = value;\n }",
"@FXML\n public void updateExcludeCupboardStores(){\n if (cupboardCheckBox.isSelected()){\n settings.setExcludeCupboard(true);\n } else {\n settings.setExcludeCupboard(false);\n }\n }",
"public void setNotSupplied(final boolean value) {\n this.notSupplied = value;\n }",
"public void markCriticalOnsetCreate() throws JNCException {\n markLeafCreate(\"criticalOnset\");\n }",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void setProcessed (boolean Processed);",
"public void set()\r\n {\r\n isSet = true;\r\n }",
"public Builder setIsClusteringKey(boolean value) {\n\n isClusteringKey_ = value;\n onChanged();\n return this;\n }",
"public void assignAuthorisedUser(final boolean val) {\n authorisedUser = val;\n }",
"@JsonIgnore\n public boolean isPreemptibleSet() {\n return isSet.contains(\"preemptible\");\n }",
"public void setManagingUser(String managingUser, boolean isManagingUser) {\n this.managingUserDisplay.setText(managingUser);\n if (!isManagingUser) {\n btnResetGame.setEnabled(false);\n btnLockGame.setEnabled(false);\n } else {\n if (isLocked) {\n btnLockGame.setEnabled(false);\n btnResetGame.setEnabled(true);\n } else {\n btnLockGame.setEnabled(true);\n btnResetGame.setEnabled(true);\n }\n }\n }",
"void setIfCanRemove(boolean set);",
"public void setPickedUp(boolean pickedUp) {\r\n this.pickedUp = pickedUp;\r\n }",
"public void setRetentionMFlag(String value) {\n setAttributeInternal(RETENTIONMFLAG, value);\n }",
"public boolean isSetTotalTimeSpentMaterializingFilesFromCASMillis() {\n return EncodingUtils.testBit(__isset_bitfield, __TOTALTIMESPENTMATERIALIZINGFILESFROMCASMILLIS_ISSET_ID);\n }",
"public void setUsed(){\n\t\talreadyUsed = true;\n\t}",
"public void setEntryUserTime( Date entryUserTime ) {\n this.entryUserTime = entryUserTime;\n }",
"public void setKSDM(java.lang.String param) {\r\n localKSDMTracker = param != null;\r\n\r\n this.localKSDM = param;\r\n }",
"public void setCmUser(final CmUser cmUser) {\n\t\tthis.cmUser = cmUser;\n\t}",
"public void setIsSc(boolean isSc) {\n\t\tthis.isSc = isSc;\n\t}",
"public boolean isVtkUser( ) {\n\t\treturn chomboSolverSpec != null;\n\t}",
"public void setCompressPut(boolean value) {\r\n this.compressPut = value;\r\n }",
"@Override\n public void syncProductSkuValidity(boolean isProductSkuValid) {\n //Saving the state\n mIsProductSkuValid = isProductSkuValid;\n }",
"public void setWishOfUser(boolean wish) {\n this.wishOfUSer = wish;\n }",
"public boolean getIsImport() {\n return getAsBoolean(\"isImport\");\n }",
"public void setProcessed(boolean Processed) {\n\t\tset_Value(\"Processed\", new Boolean(Processed));\n\t}",
"public void setProcessed(boolean Processed) {\n\t\tset_Value(\"Processed\", new Boolean(Processed));\n\t}",
"public void setRemoteJwkSetCache(final RemoteJwkSetCache jwkSetCache) {\n ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);\n ComponentSupport.ifDestroyedThrowDestroyedComponentException(this);\n remoteJwkSetCache = Constraint.isNotNull(jwkSetCache, \"The remote JWK set cache cannot be null\");\n }",
"public boolean hasKdMk() {\n return fieldSetFlags()[7];\n }",
"protected void setIsRequiredFiles(boolean iRequiredFilesResult) {\r\n\t\tmIsRequiredFiles = iRequiredFilesResult;\r\n\t}",
"@Override\n\tpublic void setIsUsed(boolean arg0) {\n\n\t}",
"public void setIsSystem(String isSystem) {\n this.isSystem = isSystem == null ? null : isSystem.trim();\n }",
"public void setUserCreated(java.lang.String userCreated) {\n\t\t_tempNoTiceShipMessage.setUserCreated(userCreated);\n\t}",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public void setBGKSMC(java.lang.String param) {\r\n localBGKSMCTracker = param != null;\r\n\r\n this.localBGKSMC = param;\r\n }",
"public void setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}",
"public void setProcessed (boolean processed)\r\n {\r\n super.setProcessed (processed);\r\n if (get_ID() == 0)\r\n return;\r\n String set = \"SET Processed='\"\r\n + (processed ? \"Y\" : \"N\")\r\n + \"' WHERE C_Hes_ID=\" + getC_Hes_ID();\r\n int noLine = DB.executeUpdate(\"UPDATE C_HesLine \" + set, get_TrxName());\r\n \r\n \r\n log.fine(processed + \" - Lines=\" + noLine);\r\n }",
"public void setValid(boolean value)\r\n {\r\n //Override this method in MediaItem object\r\n getSemanticObject().setBooleanProperty(swb_valid, value,false);\r\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isSetKey() {\n return this.key != null;\n }",
"public boolean isSetCreatetime() {\n return this.createtime != null;\n }",
"public void setCanPickupItems ( boolean pickup ) {\n\t\texecute ( handle -> handle.setCanPickupItems ( pickup ) );\n\t}",
"boolean isSetIssued();",
"private boolean hasUserImportantView() {\n int userID = this.sharedPreferences.getInt(Constants.SP_USER_ID_KEY, 0);\n return this.sharedPreferences.getBoolean(serverName + \"_\" + userID, false);\n }",
"public boolean getUserMaintOK() {\n return userMaintOK;\n }",
"boolean isSetIsManaged();",
"public void assignUploadingTimezones(final boolean val) {\n uploadingTimeZones = val;\n }",
"public void setIsPremium(final Boolean isPremiumValue) {\n this.isPremium = isPremiumValue;\n }",
"java.lang.Boolean hasUploadDownloadConfig(java.lang.String userName) throws com.ctb.exception.CTBBusinessException;",
"public boolean needAddToMediaSaver() {\n return true;\n }",
"public void setIsPremium(final Boolean isPremiumValue) {\n this.isPremium = isPremiumValue;\n }",
"public boolean isImported()\n\t{\n\t\treturn imported;\n\t}",
"public void setU(boolean u) {\n\tthis.u = u;\n }",
"public boolean isSetMinTemperatureC()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(MINTEMPERATUREC$10) != 0;\n }\n }",
"public boolean isSetSnsUserId() {\n return this.snsUserId != null;\n }",
"public void setImportBatchno(String importBatchno) {\r\n this.importBatchno = importBatchno == null ? null : importBatchno.trim();\r\n }",
"public UserSetingRecord() {\n super(UserSeting.USER_SETING);\n }",
"public void setRetentionFlag(String value) {\n setAttributeInternal(RETENTIONFLAG, value);\n }",
"public void setC3(Boolean c3) {\n\t\tthis.c3 = c3;\n\t}",
"public static void set_IsForcePackagePrefixGeneration(boolean v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaForcePackageGenCmd, (v) ? (byte) 1 : (byte) 0);\n UmlCom.check();\n _is_force_package_gen = v;\n }",
"public void setIsCurrentlyProcessed(boolean isCurrentlyProcessed) {\n this.isCurrentlyProcessed = isCurrentlyProcessed;\n }",
"public void setImportedItemCount(Long importedItemCount) {\n this.importedItemCount = importedItemCount;\n }",
"@JsonIgnore\n public boolean isOndemandSet() {\n return isSet.contains(\"ondemand\");\n }",
"public void setIsCpeProvisioningNeeded(String isCpeProvisioningNeeded) {\n this.isCpeProvisioningNeeded = isCpeProvisioningNeeded == null ? null : isCpeProvisioningNeeded.trim();\n }",
"public void setOnboardKeyGeneration(boolean value) {\n\t\tthis.onboardKeyGeneration = value;\n\t}"
]
| [
"0.54387003",
"0.5284322",
"0.51786894",
"0.50365",
"0.5010647",
"0.49581203",
"0.4913954",
"0.4903549",
"0.48975205",
"0.48938614",
"0.48789936",
"0.47892886",
"0.47836667",
"0.4780497",
"0.4778337",
"0.47712976",
"0.47552195",
"0.47552195",
"0.47523445",
"0.47202614",
"0.4712574",
"0.4656648",
"0.46529144",
"0.4591494",
"0.45868918",
"0.45854902",
"0.4576022",
"0.4569214",
"0.45680663",
"0.45624718",
"0.4550532",
"0.45350167",
"0.45205733",
"0.4515445",
"0.45132867",
"0.45132867",
"0.45132867",
"0.45132867",
"0.45132867",
"0.45132867",
"0.45088857",
"0.45033705",
"0.4494853",
"0.44926122",
"0.44895512",
"0.44726807",
"0.4468998",
"0.44663095",
"0.44645736",
"0.44573343",
"0.44501245",
"0.4438732",
"0.44241402",
"0.44184712",
"0.441563",
"0.44151732",
"0.44122544",
"0.44047564",
"0.43995017",
"0.43963963",
"0.43963963",
"0.43892047",
"0.43870354",
"0.43682942",
"0.43505135",
"0.43503267",
"0.4332328",
"0.4331946",
"0.43297762",
"0.43290094",
"0.4327687",
"0.43258318",
"0.43216124",
"0.43216124",
"0.43216124",
"0.4303993",
"0.4301984",
"0.42961115",
"0.4294529",
"0.42930126",
"0.42877683",
"0.4282913",
"0.42826083",
"0.4281498",
"0.42786598",
"0.42767638",
"0.42728493",
"0.42726254",
"0.42716128",
"0.42706904",
"0.42677805",
"0.42654964",
"0.42616892",
"0.42568934",
"0.42558",
"0.4251473",
"0.42475742",
"0.4245685",
"0.424292",
"0.42386454"
]
| 0.56923646 | 0 |
Get the source dataset id. | public Integer getSrcDatasetId() {
return srcDatasetId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDatasetId() {\n return (attributes.containsKey(KEY_DATASET_ID) ? (String) attributes\n .get(KEY_DATASET_ID) : null);\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"protected String getDataSourceId() {\n return getDataSourceId(sourceComboBox);\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"long getSourceId();",
"String getSourceID();",
"public int getDatasetId() {\n return datasetId;\n }",
"public Entity.ID getSourceID() {\n return sourceID;\n }",
"int getSrcId();",
"int getSrcId();",
"public String sourceUniqueId() {\n return this.sourceUniqueId;\n }",
"public String getSrcDatasetName() {\r\n return srcDatasetName;\r\n }",
"public java.lang.Object getSourceID() {\n return sourceID;\n }",
"public int getSrcId() {\n return srcId_;\n }",
"public int getSrcId() {\n return instance.getSrcId();\n }",
"public String getSourceId() {\n return sourceId;\n }",
"public int getSrcId() {\n return instance.getSrcId();\n }",
"public Number getSrcId() {\r\n return (Number) getAttributeInternal(SRCID);\r\n }",
"@Override\n\tpublic String getId()\n\t{\n\t\treturn source.getId();\n\t}",
"java.lang.String getDataId();",
"java.lang.String getDataId();",
"public Long getDatasetId() {\n return this.datasetId;\n }",
"public int getSrcId() {\n return srcId_;\n }",
"public void setSrcDatasetId(Integer srcDatasetId) {\r\n this.srcDatasetId = srcDatasetId;\r\n }",
"public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }",
"public int getSrcId(int index) {\n return srcId_.getInt(index);\n }",
"public Integer getSrcSampleId() {\r\n return srcSampleId;\r\n }",
"DatasetFileService getSource();",
"public String getSourceAttributeId() {\n\t\treturn sourceAttribute;\n\t}",
"public String getSourceFileName() {\n\t\tStringIdMsType stringIdType =\n\t\t\tpdb.getTypeRecord(getSourceFileNameStringIdRecordNumber(), StringIdMsType.class);\n\t\tif (stringIdType == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn stringIdType.getString();\n\t}",
"public String getSourceIdentifier() {\n return sourceIdentifier;\n }",
"int getSourceSnId();",
"Source createDatasourceZ3950IdFile(Source ds, Provider prov) throws RepoxException;",
"public int getDatasetId() {\n return expId;\n }",
"public String getSrcId()\n\t\t{\n\t\t\tElement srcIdElement = XMLUtils.findChild(mediaElement, SRC_ID_ELEMENT_NAME);\n\t\t\treturn srcIdElement == null ? null : srcIdElement.getTextContent();\n\t\t}",
"String artifactSourceId();",
"Source createDatasourceZ3950IdSequence(Source ds, Provider prov) throws RepoxException;",
"public String getSourceFigNodeId() {\n return sourceFigNodeId;\n }",
"public long getJobIDSource() {\n return jobIDSource_;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String getPidSourceAttributeId() {\n return pidSourceAttributeId;\n }",
"public long getJobIDSource() {\n return jobIDSource_;\n }",
"public String getId() {\n\t\t\t\t\treturn ContentTypeIdForXML.ContentTypeID_XML + \".source\"; //$NON-NLS-1$;\n\t\t\t\t}",
"@Override\n\tpublic Object getId() {\n\t\treturn Arrays.asList(name, source);\n\t}",
"public int getSrcId(int index) {\n return instance.getSrcId(index);\n }",
"int getSrcId(int index);",
"public EndpointID source() {\r\n\t\treturn source_;\r\n\t}",
"protected String getLocalId(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException {\n Collection<Object> sourceIdValues = getValuesFromAllDependencies(resolutionContext, getPidSourceAttributeId());\n if (sourceIdValues == null || sourceIdValues.isEmpty()) {\n log.error(\"Source attribute {} for connector {} provide no values\", getPidSourceAttributeId(), getId());\n throw new AttributeResolutionException(\"Source attribute \" + getPidSourceAttributeId() + \" for connector \"\n + getId() + \" provided no values\");\n }\n\n if (sourceIdValues.size() > 1) {\n log.warn(\"Source attribute {} for connector {} has more than one value, only the first value is used\",\n getPidSourceAttributeId(), getId());\n }\n\n return sourceIdValues.iterator().next().toString();\n }",
"public java.lang.Integer getSource_code_id() {\n return source_code_id;\n }",
"long getJobIDSource();",
"public String getSrcLoginId()\r\n\t{\r\n\t\treturn (String) queryParams.get(AUTH_SRC_LOGIN_ID);\r\n\t}",
"@java.lang.Override\n public com.clarifai.grpc.api.Dataset getDataset() {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }",
"@Path(\"sourceId/\")\n public SourceResource getSourceIdResource() {\n SourceIdResourceSub resource = resourceContext.getResource(SourceIdResourceSub.class);\n resource.setParent(getEntity());\n return resource;\n }",
"public RecordNumber getSourceFileNameStringIdRecordNumber() {\n\t\treturn sourceFileNameStringIdRecordNumber;\n\t}",
"public String getId() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"n=\");\n\t\tif ( nodeId != null ) {\n\t\t\tbuilder.append(nodeId);\n\t\t}\n\t\tbuilder.append(\";c=\");\n\t\tif ( created != null ) {\n\t\t\tbuilder.append(created);\n\t\t}\n\t\tbuilder.append(\";s=\");\n\t\tif ( sourceId != null ) {\n\t\t\tbuilder.append(sourceId);\n\t\t}\n\t\treturn DigestUtils.sha1Hex(builder.toString());\n\t}",
"public int getId() {\n\t\treturn this.data.getId();\n\t}",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"public int getSource() {\n\t\treturn source;\n\t}",
"public String getSourcePortFigId() {\n return sourcePortFigId;\n }",
"java.lang.String getDataInfoId();",
"public String getDatasetName(){\n return this.dataset.getName();\n }",
"private static DataSourceId createDataSourceId(double scalingFactor) {\n return createDataSourceId(TPCDSAllTablesDataGeneratorRewriter.TPCDS_ALL_TABLES_DATA_GENERATOR,\n Double.toString(scalingFactor));\n }",
"public long getSource()\r\n { return src; }",
"public int getSourceSnId() {\n return sourceSnId_;\n }",
"public int getSource(){\r\n\t\treturn this.source;\r\n\t}",
"@java.lang.Override\n public com.clarifai.grpc.api.Dataset getDataset() {\n if (datasetBuilder_ == null) {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n } else {\n if (inputSourceCase_ == 11) {\n return datasetBuilder_.getMessage();\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }",
"private String getLocalId(ShibbolethResolutionContext resolutionContext)\n\t\t\tthrows AttributeResolutionException {\n\n\t\tlog.info(\"gets local ID ...\");\n\n\t\tString[] ids = getSourceAttributeId().split(SEPARATOR);\n\n\t\tStringBuffer localIdValue = new StringBuffer();\n\t\tfor (int i = 0; i < ids.length; i++) {\n\n\t\t\tCollection<Object> sourceIdValues = getValuesFromAllDependencies(\n\t\t\t\t\tresolutionContext, ids[i]);\n\t\t\tif (sourceIdValues == null || sourceIdValues.isEmpty()) {\n\t\t\t\tlog\n\t\t\t\t\t\t.error(\n\t\t\t\t\t\t\t\t\"Source attribute {} for connector {} provide no values\",\n\t\t\t\t\t\t\t\tgetSourceAttributeId(), getId());\n\t\t\t\tthrow new AttributeResolutionException(\"Source attribute \"\n\t\t\t\t\t\t+ getSourceAttributeId() + \" for connector \" + getId()\n\t\t\t\t\t\t+ \" provided no values\");\n\t\t\t}\n\n\t\t\tif (sourceIdValues.size() > 1) {\n\t\t\t\tlog\n\t\t\t\t\t\t.warn(\n\t\t\t\t\t\t\t\t\"Source attribute {} for connector {} has more than one value, only the first value is used\",\n\t\t\t\t\t\t\t\tgetSourceAttributeId(), getId());\n\t\t\t}\n\t\t\tlocalIdValue.append(sourceIdValues.iterator().next().toString());\n\t\t}\n\t\tlog.info(\"local ID: \" + localIdValue.toString());\n\n\t\treturn localIdValue.toString();\n\t}",
"public Object getIdmapSource() {\n\t\treturn idmapSourceComboBox.getSelectedItem();\n\t}",
"Source updateDatasourceZ3950IdFile(Source ds) throws RepoxException;",
"public String getDatasetName() {\r\n return _datasetName;\r\n }",
"public String getBigQueryDatasetId() {\n return bigQueryDatasetId;\n }",
"public DataSourceId(DataverseName dataverseName, String datasourceName) {\n this(dataverseName, datasourceName, null);\n }",
"public String getDataSrc() {\n return dataSrc;\n }",
"public int getSourceSnId() {\n return sourceSnId_;\n }",
"public StrColumn getScatterId() {\n return delegate.getColumn(\"scatter_id\", DelegatingStrColumn::new);\n }",
"public String getDataSetName() {\r\n return _datasetname;\r\n }",
"com.google.protobuf.ByteString getDataIdBytes();",
"public Long getSourceNumber() {\n return this.sourceNumber;\n }",
"public static String generateDatasetName() {\n return DATASET_NAME_PREFIX + UUID.randomUUID().toString().replace('-', '_');\n }",
"public void setSrcDatasetName(String srcDatasetName) {\r\n this.srcDatasetName = srcDatasetName;\r\n }",
"public int sourceToDatabase(Source source) throws ClassNotFoundException, SQLException\n\t{\n\t\tint sourceId; //Variable used for returning value of source's id.\n\t\t\n\t\ttry\n\t\t{\n\t\t\tClass.forName(\"org.postgresql.Driver\"); //Getting driver from \"org.postgresql.Driver\".\n\t\t\tconn = DriverManager.getConnection(\"jdbc:postgresql://localhost/postgres\", \"postgres\", \"postgres\"); //Connecting to a database.\n\t\t\tstatement = conn.createStatement();\n\t\t\t\n\t\t\tcheckIfExists = \"SELECT id_src FROM sources WHERE link = '\" + source.link + \"'\"; //Checking if specified source.\n\t\t\t\n\t\t\tstatement.execute(checkIfExists);\n\t\t\tresultSet = statement.getResultSet();\n\t\t\t\n\t\t\tif (resultSet.next()) //If source already exists method should return its id.\n\t\t\t\tsourceId = resultSet.getInt(1);\n\t\t\t\n\t\t\telse //If source doesn't exist yet, it has to be created and method should return its id.\n\t\t\t{\n\t\t\t\tstatement.execute(\"INSERT INTO sources (type, abstract, link) VALUES (\" + source.sourceToSave() + \");\"); //Inserting source into database.\n\t\t\t\tstatement.execute(checkIfExists);\n\t\t\t\tresultSet = statement.getResultSet();\n\t\t\t\tresultSet.next();\n\t\t\t\tsourceId = resultSet.getInt(1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfinally\n\t\t{\n\t\t\tif (conn != null) conn.close();\n\t\t}\n\t\t\n\t\treturn sourceId;\n\t}",
"public java.util.List<Integer>\n getSrcIdList() {\n return srcId_;\n }",
"public java.lang.String getDatasetIds(int index) {\n return datasetIds_.get(index);\n }",
"public String getSourceSnapshotId() {\n return this.sourceSnapshotId;\n }",
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"public java.lang.String getDatasetIds(int index) {\n return datasetIds_.get(index);\n }",
"public Integer getBillSourceId() {\n return billSourceId;\n }",
"public int getSrc() {\n\t\treturn src;\n\t}",
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"public String getDatasetKey() { return null; }",
"Source updateDatasourceZ3950IdSequence(Source ds) throws RepoxException;",
"public String getDatasourceName()\n {\n return m_dsName;\n }",
"public long getClassPK() {\n\t\treturn _dataset.getDatasetId();\n\t}",
"public void setSourceAttribute(String id) {\n this.sourceAttribute = id;\n }",
"public Integer getAccountSrcId() {\n return accountSrcId;\n }",
"public Long getSourceAccountId() {\n return sourceAccountId;\n }",
"public int getDatasource() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"datasource\")).intValue());\n }",
"public Builder setSourceId(long value) {\n bitField0_ |= 0x00000001;\n sourceId_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getId() {\n return localId;\n }"
]
| [
"0.73397094",
"0.7059779",
"0.705378",
"0.70018125",
"0.69743395",
"0.6946063",
"0.68384236",
"0.6824288",
"0.6794537",
"0.6794537",
"0.67769754",
"0.67642695",
"0.6751744",
"0.67434496",
"0.6733054",
"0.67224413",
"0.6720218",
"0.6699966",
"0.66874444",
"0.667559",
"0.667559",
"0.66737366",
"0.6672077",
"0.64829063",
"0.6474267",
"0.64042145",
"0.6396469",
"0.63570875",
"0.6355067",
"0.63044846",
"0.62585",
"0.625215",
"0.62439775",
"0.6210401",
"0.6199593",
"0.6199502",
"0.6182528",
"0.6171567",
"0.6150169",
"0.6149147",
"0.6149147",
"0.61132795",
"0.6109628",
"0.60847545",
"0.608243",
"0.6081705",
"0.60802406",
"0.60488355",
"0.6047924",
"0.60410523",
"0.60147285",
"0.6003329",
"0.598846",
"0.594164",
"0.5936184",
"0.59287643",
"0.5927494",
"0.5925236",
"0.5907633",
"0.5904449",
"0.58854043",
"0.5853573",
"0.57980645",
"0.5788249",
"0.57820153",
"0.57753795",
"0.5759209",
"0.5758495",
"0.57539815",
"0.5738074",
"0.5717549",
"0.57065743",
"0.57025164",
"0.5699609",
"0.5693014",
"0.5678425",
"0.5628486",
"0.56265503",
"0.5614923",
"0.56131804",
"0.560825",
"0.55932045",
"0.558538",
"0.558003",
"0.55683184",
"0.55441904",
"0.55233943",
"0.55184954",
"0.55180085",
"0.5498885",
"0.5498872",
"0.5492733",
"0.54786044",
"0.5468898",
"0.54620814",
"0.54613656",
"0.5451673",
"0.5451208",
"0.54504675",
"0.5448276"
]
| 0.77389634 | 0 |
Set the source dataset id. | public void setSrcDatasetId(Integer srcDatasetId) {
this.srcDatasetId = srcDatasetId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"public void setSourceAttribute(String id) {\n this.sourceAttribute = id;\n }",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"Source updateDatasourceZ3950IdFile(Source ds) throws RepoxException;",
"public Builder setSourceId(long value) {\n bitField0_ |= 0x00000001;\n sourceId_ = value;\n onChanged();\n return this;\n }",
"public Integer getSrcDatasetId() {\r\n return srcDatasetId;\r\n }",
"public void setDatasetId(String datasetid) {\n attributes.put(KEY_DATASET_ID, datasetid);\n this.getHttpRequest().setAttribute(KEY_DATASET_ID, datasetid);\n }",
"public void setDatasetId(int datasetId) {\n this.datasetId = datasetId;\n }",
"Source updateDatasourceZ3950IdSequence(Source ds) throws RepoxException;",
"static public void setDataSource(DataSource source) {\n ds = source;\n }",
"public Builder setSrcId(int value) {\n copyOnWrite();\n instance.setSrcId(value);\n return this;\n }",
"private void setSrcId(\n int index, int value) {\n ensureSrcIdIsMutable();\n srcId_.setInt(index, value);\n }",
"public Builder setSrcId(int value) {\n copyOnWrite();\n instance.setSrcId(value);\n return this;\n }",
"public void setSrcDatasetName(String srcDatasetName) {\r\n this.srcDatasetName = srcDatasetName;\r\n }",
"public void setSourceID(java.lang.Object sourceID) {\n this.sourceID = sourceID;\n }",
"@Override\n\tpublic void setDataSetID(String dataSetID) {\n\t\t\n\t}",
"public void setSrcId(Number value) {\r\n setAttributeInternal(SRCID, value);\r\n }",
"public void setSourceDataArray(int i, org.landxml.schema.landXML11.SourceDataDocument.SourceData sourceData)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.landxml.schema.landXML11.SourceDataDocument.SourceData target = null;\r\n target = (org.landxml.schema.landXML11.SourceDataDocument.SourceData)get_store().find_element_user(SOURCEDATA$0, i);\r\n if (target == null)\r\n {\r\n throw new IndexOutOfBoundsException();\r\n }\r\n target.set(sourceData);\r\n }\r\n }",
"public void setDatasetId(Long datasetId) {\n this.datasetId = datasetId;\n }",
"public DataSourceId(DataverseName dataverseName, String datasourceName) {\n this(dataverseName, datasourceName, null);\n }",
"void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"public void setSrc(String startId) {\r\n\t\tsrc = startId;\r\n\t}",
"public void setSrcId(String srcId)\n\t\t{\n\t\t\tElement srcIdElement = XMLUtils.findChild(mediaElement, SRC_ID_ELEMENT_NAME);\n\t\t\tif (srcId == null || srcId.equals(\"\")) {\n\t\t\t\tif (srcIdElement != null)\n\t\t\t\t\tmediaElement.removeChild(srcIdElement);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (srcIdElement == null) {\n\t\t\t\t\tsrcIdElement = document.createElement(SRC_ID_ELEMENT_NAME);\n\t\t\t\t\tmediaElement.appendChild(srcIdElement);\n\t\t\t\t}\n\t\t\t\tsrcIdElement.setTextContent(srcId);\n\t\t\t}\n\t\t}",
"public Builder setSrcId(\n int index, int value) {\n copyOnWrite();\n instance.setSrcId(index, value);\n return this;\n }",
"public void setDatasource(DataSource source) {\n datasource = source;\n }",
"void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;",
"Source createDatasourceZ3950IdFile(Source ds, Provider prov) throws RepoxException;",
"public void resetSource(String sourceId) {\n\t}",
"void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;",
"void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"Source createDatasourceZ3950IdSequence(Source ds, Provider prov) throws RepoxException;",
"public void setIdSet(int idSet) {\r\n this.idSet = idSet;\r\n }",
"public void setSourceDataArray(org.landxml.schema.landXML11.SourceDataDocument.SourceData[] sourceDataArray)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n arraySetterHelper(sourceDataArray, SOURCEDATA$0);\r\n }\r\n }",
"public void setTestSetId(String testSetId) {\n this.testSetId = testSetId;\n }",
"public void setTestSetId(String testSetId) {\n this.testSetId = testSetId;\n }",
"public void setDatasource( int newValue ) {\n __setCache(\"datasource\", new Integer(newValue));\n }",
"public Builder addSrcId(int value) {\n copyOnWrite();\n instance.addSrcId(value);\n return this;\n }",
"public int getDatasetId() {\n return datasetId;\n }",
"void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;",
"public void setDatasource( String ds )\n {\n datasource = ds;\n }",
"public void setDataSrc(String dataSrc) {\n this.dataSrc = dataSrc == null ? null : dataSrc.trim();\n }",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public DataSourceId(DataverseName dataverseName, String datasourceName, String[] parameters) {\n this.dataverseName = dataverseName;\n this.datasourceName = datasourceName;\n this.parameters = parameters;\n }",
"public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }",
"public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }",
"public Builder setDatasetIds(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureDatasetIdsIsMutable();\n datasetIds_.set(index, value);\n onChanged();\n return this;\n }",
"public Builder setSourceSnId(int value) {\n \n sourceSnId_ = value;\n onChanged();\n return this;\n }",
"void setRenderedSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;",
"public void setSource(String source);",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;",
"public Dataset withSource(String source) {\n setSource(source);\n return this;\n }",
"@Override\n public void setId(int pintId) {\n this.intDynaGraphId = pintId;\n }",
"public void setDatasource(String val)\r\n\t{\r\n\t\t_dataSource = val;\r\n\t}",
"public void setId(String id) {\r\n\t\tsId = id;\r\n\t}",
"void selectDataSource(Long dataSourceId) {\n dataSourcesPanel.selectDataSource(dataSourceId);\n }",
"public void setId(String id)\n {\n data().put(_ID, id);\n }",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"public void setId(String id)\n\t{\n\t\tm_sID=id;\t\n\t}",
"public void setSource (String source);",
"public void setSource (AbstractRelationalDataView v) { \n\t\t\n\t\tdv = v; \n\t\t\n\t\t// obtain number of records in training set\n\t\tmembers = dv.GetCount();\n\t}",
"public void setDatasource(int newDatasource)\n\t\tthrows java.rmi.RemoteException;",
"void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;",
"public void setId(String s) {\n\t\tid = s;\n\t}",
"public void setIdrequest(String idrequest) {\r\n\t\tthis.idrequest = idrequest;\r\n\t}",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setID(Object caller, int id)\n\t{\n\t\tif (caller instanceof DriverManager)\n\t\t{\n\t\t\tdriverID = id;\n\t\t}\n\t}",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public Long getDatasetId() {\n return this.datasetId;\n }",
"public final void setSource(final Integer newSource) {\n this.source = newSource;\n }",
"public Dataset withSource(Source source) {\n this.source = source.toString();\n return this;\n }",
"protected void setId(short id) {\n this.id = id;\n }",
"public void setSourceIdentifier(String sourceIdentifier) {\n this.sourceIdentifier = sourceIdentifier;\n }",
"public Builder setDataset(com.clarifai.grpc.api.Dataset value) {\n if (datasetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n inputSource_ = value;\n onChanged();\n } else {\n datasetBuilder_.setMessage(value);\n }\n inputSourceCase_ = 11;\n return this;\n }",
"void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setDataSetName(String datasetname) {\r\n _datasetname=datasetname;\r\n }",
"private void addSrcId(int value) {\n ensureSrcIdIsMutable();\n srcId_.addInt(value);\n }",
"public final void setDataSetName(String dataSetName)\r\n {\r\n _dataSetName = dataSetName;\r\n setField(DATA_SET, new SimpleString(dataSetName));\r\n }",
"public int getSrcId() {\n return srcId_;\n }",
"public void setsId(Integer sId) {\n this.sId = sId;\n }",
"public void setPidSourceAttributeId(String attributeId) {\n pidSourceAttributeId = attributeId;\n }",
"public String getSrcDatasetName() {\r\n return srcDatasetName;\r\n }",
"public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}",
"public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}",
"public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}",
"public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}",
"public Builder setJobIDSource(long value) {\n bitField0_ |= 0x00000008;\n jobIDSource_ = value;\n onChanged();\n return this;\n }",
"public String getDatasetId() {\n return (attributes.containsKey(KEY_DATASET_ID) ? (String) attributes\n .get(KEY_DATASET_ID) : null);\n }",
"public int getSrcId() {\n return srcId_;\n }",
"@Override\n\tpublic void setDstId(String arg0) {\n\n\t}"
]
| [
"0.69790125",
"0.6946624",
"0.67304856",
"0.6730243",
"0.6688744",
"0.6640681",
"0.660738",
"0.6547602",
"0.65358245",
"0.6485299",
"0.6478527",
"0.642956",
"0.63971716",
"0.63969743",
"0.6393548",
"0.6385207",
"0.63615173",
"0.63472867",
"0.63054216",
"0.6297856",
"0.628609",
"0.6149176",
"0.6127957",
"0.61178553",
"0.6114397",
"0.61127996",
"0.61093915",
"0.60660166",
"0.6055437",
"0.6047144",
"0.6040281",
"0.60244024",
"0.5993641",
"0.59894145",
"0.59788793",
"0.59788793",
"0.5969211",
"0.5945307",
"0.58894384",
"0.58880556",
"0.588416",
"0.5875815",
"0.5855995",
"0.5855995",
"0.5855995",
"0.5855995",
"0.5855995",
"0.5855995",
"0.5846135",
"0.5841617",
"0.5841617",
"0.5824673",
"0.5811315",
"0.5810413",
"0.58072376",
"0.5795787",
"0.57871896",
"0.57747334",
"0.57677996",
"0.5764529",
"0.5755217",
"0.57548547",
"0.57469547",
"0.5736277",
"0.5731733",
"0.5731222",
"0.5720389",
"0.57193905",
"0.57189536",
"0.5713478",
"0.570426",
"0.56758714",
"0.56758714",
"0.56758714",
"0.56740457",
"0.56733406",
"0.56634057",
"0.56581986",
"0.5652618",
"0.56502706",
"0.5648776",
"0.5645475",
"0.5643582",
"0.5641942",
"0.5641942",
"0.5638485",
"0.56382865",
"0.5638265",
"0.5630816",
"0.5621237",
"0.5620769",
"0.56188357",
"0.5610629",
"0.5610629",
"0.5610629",
"0.5610629",
"0.56092036",
"0.56014246",
"0.55972296",
"0.55954367"
]
| 0.7446845 | 0 |
Get the source dataset name. | public String getSrcDatasetName() {
return srcDatasetName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getDatasetName(){\n return this.dataset.getName();\n }",
"public String getDatasetName() {\r\n return _datasetName;\r\n }",
"public String getDataSetName() {\r\n return _datasetname;\r\n }",
"public String getDatasourceName()\n {\n return m_dsName;\n }",
"public String getDataSourceName() {\n\treturn strDSName;\n }",
"public void setSrcDatasetName(String srcDatasetName) {\r\n this.srcDatasetName = srcDatasetName;\r\n }",
"public String getSQLName(){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\treturn name;\n\t\t}\n\t\treturn source.getSQLName();\n\t}",
"public String getSourceFileName() {\n\t\tStringIdMsType stringIdType =\n\t\t\tpdb.getTypeRecord(getSourceFileNameStringIdRecordNumber(), StringIdMsType.class);\n\t\tif (stringIdType == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn stringIdType.getString();\n\t}",
"public static String generateDatasetName() {\n return DATASET_NAME_PREFIX + UUID.randomUUID().toString().replace('-', '_');\n }",
"private String getQualifiedSrcDsTableName() {\n return sourceDB + \".\" + DATASET_TABLE_NAME;\n }",
"protected abstract String getDatasourceName();",
"public String getSourceName() {\n\t\treturn fileName;\n\t}",
"public java.lang.String getSourceName() {\r\n return localSourceName;\r\n }",
"@Override\n public String getName() {\n return source.getName();\n }",
"public String getDataSourceName()\n {\n return dataSourceName;\n }",
"public final String getDataName() {\n if (dataName == null) {\n return this.getClass().getName();\n }\n return dataName;\n }",
"private String getSourceName() {\n return srcFileName;\n }",
"DatasetFileService getSource();",
"public String getSrcSampleName() {\r\n return srcSampleName;\r\n }",
"@VTID(27)\n java.lang.String getSourceName();",
"String getNameInSource(Object metadataID) throws Exception;",
"public String getDatasetId() {\n return (attributes.containsKey(KEY_DATASET_ID) ? (String) attributes\n .get(KEY_DATASET_ID) : null);\n }",
"public Integer getSrcDatasetId() {\r\n return srcDatasetId;\r\n }",
"@Override\n\tpublic java.lang.String getSrcFileName() {\n\t\treturn _scienceApp.getSrcFileName();\n\t}",
"public String toString() {\n return Helper.getShortClassName(getClass()) + ToStringLocalization.buildMessage(\"datasource_name\", (Object[])null) + \"=>\" + getName();\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.Dataset getDataset() {\n if (datasetBuilder_ == null) {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n } else {\n if (inputSourceCase_ == 11) {\n return datasetBuilder_.getMessage();\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.Dataset getDataset() {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }",
"public String getDataSrc() {\n return dataSrc;\n }",
"String getDataSource();",
"public String getDataSetTableName() {\n\t\treturn this.datasetTableName;\n\t}",
"@Nullable\n public String getSourceFileName() {\n return sourceFileName;\n }",
"private String getSourceName(JCas pJCas) {\n \n String sourceURI = getReferenceLocation(pJCas);\n String name = null;\n if (sourceURI != null) {\n File aFile = new File(sourceURI);\n name = aFile.getName();\n \n } else {\n name = \"knowtator_\" + String.valueOf(this.inputFileCounter++);\n }\n \n return name;\n }",
"@Override\n\tpublic String getClassName() {\n\t\treturn Dataset.class.getName();\n\t}",
"public String sourceAttributeName() {\n return this.sourceAttributeName;\n }",
"public String getSourceImageName() {\n return this.sourceImageName;\n }",
"public String getName() {\n\t\treturn this.data.getName();\n\t}",
"SMFTypeRef getSrcName();",
"public String getName() {\n return dtedDir + \"/\" + filename;\n }",
"public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }",
"public String getDatasource()\r\n\t{\r\n\t\treturn _dataSource;\r\n\t}",
"int getNameSourceStart();",
"@Nullable public String getFileName() {\n return getSourceLocation().getFileName();\n }",
"protected String getDataSourceId() {\n return getDataSourceId(sourceComboBox);\n }",
"public String getRepost_source_name() {\n return repost_source_name;\n }",
"public String getDataSetSchemaName() {\n\t\treturn this.datasetSchemaName;\n\t}",
"public String getName() {\r\n if (target != null) {\r\n return target.getName();\r\n }\r\n\r\n if (benchmark != null) {\r\n return benchmark.getName();\r\n }\r\n\r\n return \"\";\r\n }",
"public String getSrcFirstName() {\r\n return (String) getAttributeInternal(SRCFIRSTNAME);\r\n }",
"public String getDataBaseName() {\r\n\t\treturn dataBaseName + \".db\";\r\n\t}",
"public String getSrcLastName() {\r\n return (String) getAttributeInternal(SRCLASTNAME);\r\n }",
"public String getDataFlowName() {\n return dataFlowName;\n }",
"public String getDataFileName() {\n return dataFileName;\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String renameDataset(){\n if(dataset.getRight() == DataConstants.EXECUTIVE_RIGHT){\n RenameDatasetDialog dialog = new RenameDatasetDialog(this, dataset.getName());\n dialog.setVisible(true);\n }\n return this.dataset.getName();\n }",
"public String getSouce() {\n\t\treturn source;\n\t}",
"public Dataset withSource(String source) {\n setSource(source);\n return this;\n }",
"public String getFullSampleName(int column);",
"public NameSource getNameSource() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0a7eceea-d228-42ea-bf8b-7fe5bc03373b\");\n return nameSource;\n }",
"@Override\r\n\tpublic String[] getBindDsName() {\n\t\treturn new String[]{\"supplierSalesPrice_dataSource\"}; \r\n\t}",
"@ApiModelProperty(value = \"The source of the data.\")\n public String getSource() {\n return source;\n }",
"public String getSeparateTestSetDataSource() {\n return m_separateTestSetDataSource;\n }",
"public String getDefaultSourcePropertyName() {\r\n return null;\r\n }",
"public String getSourceFileName() { return sourceFileName; }",
"public void setDataSetName(String datasetname) {\r\n _datasetname=datasetname;\r\n }",
"public java.lang.String getVarSrc() {\n java.lang.Object ref = varSrc_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n varSrc_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}",
"protected String getDataSet(String tagName) {\n\t\tString result = \"\";\n\t\tString testModuleName = new Throwable().getStackTrace()[1].getClassName().replace(\".\", \"/\").split(\"/\")[1];\n\t\tresult = Common.getCommon().getDataSet(testModuleName, tagName);\n\t\treturn result;\n\t}",
"protected String getDataSourceScript(DataSource ds, LocalContainer container)\n {\n ConfigurationBuilder builder = this.createConfigurationBuilder(container);\n String configurationEntry = builder.toConfigurationEntry(ds);\n return configurationEntry;\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }",
"public StrColumn getSource() {\n return delegate.getColumn(\"source\", DelegatingStrColumn::new);\n }",
"String getDataSet();",
"@Override\r\n\tpublic String getName() {\n\t\treturn \"C:/path/to/file/rdfSpecimen_2013-06-28.xml\";\r\n\t}",
"Optional<String> getSource();",
"public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}",
"public java.lang.String getTargetName() {\n java.lang.Object ref = targetName_;\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 targetName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getAssociatedSource();",
"public String getSource() {\r\n return source;\r\n }",
"public String get_source() {\n\t\treturn source;\n\t}",
"public java.lang.String getVarSrc() {\n java.lang.Object ref = varSrc_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n varSrc_ = s;\n }\n return s;\n }\n }",
"public String getSource();",
"public java.lang.String getSource() {\r\n return localSource;\r\n }",
"public String getSource() {\n return source;\n }",
"default String getAliasPrefix() {\n\t\treturn getDataSet() + \"_\";\n\t}",
"public String getSource() {\n\n return source;\n }",
"protected String getFromSource() {\n return sourceTable;\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"java.lang.String getSourceColumnName();",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"@Override\r\n\tpublic String getDataBaseName(String[] sql) {\n\t\treturn UsedDataBase.getUsedDataBase();\r\n\t}",
"public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}",
"public java.lang.String getTargetName() {\n java.lang.Object ref = targetName_;\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 targetName_ = s;\n return s;\n }\n }",
"com.google.protobuf.ByteString\n getSourceColumnNameBytes();",
"@Override\n public String getName() {\n return _data.getName();\n }",
"public String getSourceString() {\n return sourceString;\n }",
"public StrColumn getDataFileName() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"data_file_name\", StrColumn::new) :\n getBinaryColumn(\"data_file_name\"));\n }",
"public String getDataFileName() {\treturn dataFileName;\t}",
"public String getSource() {\n Object ref = source_;\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 source_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"java.lang.String getVarSrc();"
]
| [
"0.7515989",
"0.7235403",
"0.7108782",
"0.69782305",
"0.6870037",
"0.6855083",
"0.6771191",
"0.6730026",
"0.6665847",
"0.6644681",
"0.6611393",
"0.6579353",
"0.65619135",
"0.6531302",
"0.65296775",
"0.64977324",
"0.64664596",
"0.6424993",
"0.6380157",
"0.6355487",
"0.6353422",
"0.63213044",
"0.6296609",
"0.6274923",
"0.6229181",
"0.61632425",
"0.6149802",
"0.604008",
"0.6028892",
"0.60255945",
"0.6009278",
"0.5975895",
"0.5972472",
"0.59405744",
"0.59278166",
"0.5922322",
"0.5880847",
"0.58770216",
"0.5852897",
"0.58380765",
"0.5834009",
"0.5831662",
"0.58290255",
"0.5817911",
"0.57993704",
"0.57983893",
"0.57931215",
"0.5736782",
"0.5728223",
"0.57182425",
"0.5708887",
"0.56945986",
"0.56945986",
"0.56904805",
"0.5684815",
"0.56828403",
"0.5672847",
"0.5671266",
"0.5668727",
"0.56469166",
"0.564547",
"0.5643596",
"0.5642988",
"0.5631722",
"0.56273216",
"0.56239194",
"0.5623142",
"0.5622543",
"0.56210124",
"0.56162643",
"0.56124794",
"0.5606209",
"0.5604453",
"0.5595443",
"0.5589657",
"0.5589572",
"0.5580301",
"0.55710083",
"0.5569022",
"0.5563099",
"0.55628693",
"0.55610096",
"0.555919",
"0.5558991",
"0.5555421",
"0.5553614",
"0.55526143",
"0.5552209",
"0.5552209",
"0.5552209",
"0.5547816",
"0.5546303",
"0.55407697",
"0.55383986",
"0.5537287",
"0.55273145",
"0.5522711",
"0.5521285",
"0.55092627",
"0.5507416"
]
| 0.82012564 | 0 |
Set the source dataset name. | public void setSrcDatasetName(String srcDatasetName) {
this.srcDatasetName = srcDatasetName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void setDataSetName(String dataSetName)\r\n {\r\n _dataSetName = dataSetName;\r\n setField(DATA_SET, new SimpleString(dataSetName));\r\n }",
"public void setDataSetName(String datasetname) {\r\n _datasetname=datasetname;\r\n }",
"public String getSrcDatasetName() {\r\n return srcDatasetName;\r\n }",
"public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }",
"private void setSourceName(String name) {\n srcFileName = name;\n }",
"public void setDataSourceName(String paramDSName) {\n\tstrDSName = paramDSName;\n }",
"public final void setDataName(String dataName) {\n this.dataName = dataName;\n }",
"public void set_source(String name) throws ConnectorConfigException{\n\t\tsource = name.trim();\n\t\tif (source.equals(\"\"))\n\t\t\tthrow new ConnectorConfigException(\"Source of data can't be empty\");\n\t}",
"static public void setDataSource(DataSource source) {\n ds = source;\n }",
"public String getDatasetName() {\r\n return _datasetName;\r\n }",
"public String getDataSetName() {\r\n return _datasetname;\r\n }",
"public void setDatasource( String ds )\n {\n datasource = ds;\n }",
"public abstract void setName( String name ) throws SourceException;",
"public void setName(Identifier name) throws SourceException;",
"public Dataset withSource(String source) {\n setSource(source);\n return this;\n }",
"public void setDataSrc(String dataSrc) {\n this.dataSrc = dataSrc == null ? null : dataSrc.trim();\n }",
"public String getDatasetName(){\n return this.dataset.getName();\n }",
"public void setSource(String source);",
"public synchronized void setDataset(final String newValue) {\n checkWritePermission();\n dataset = newValue;\n }",
"public void setSource (String source);",
"public void setDatasource(String val)\r\n\t{\r\n\t\t_dataSource = val;\r\n\t}",
"public void setDatasource(DataSource source) {\n datasource = source;\n }",
"public Builder setDataset(com.clarifai.grpc.api.Dataset value) {\n if (datasetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n inputSource_ = value;\n onChanged();\n } else {\n datasetBuilder_.setMessage(value);\n }\n inputSourceCase_ = 11;\n return this;\n }",
"public void setNameSource(NameSource nameSource) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"acfe2e92-6b9b-4a4d-962c-3dd62389739d\");\n this.nameSource = nameSource;\n }",
"@Override\n\tpublic void setSrcFileName(java.lang.String srcFileName) {\n\t\t_scienceApp.setSrcFileName(srcFileName);\n\t}",
"public void setDataSourceName(String dataSourceName)\n {\n this.dataSourceName = dataSourceName;\n }",
"public void setDataSource(String newValue) {\n String oldValue = this.dataSource;\n this.dataSource = newValue;\n firePropertyChange(DATA_SOURCE, oldValue, newValue);\n }",
"public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}",
"public Dataset withName(String name) {\n setName(name);\n return this;\n }",
"public void setDataStoreName(String string) {\r\n\t\t_dataStoreName = string;\r\n\t}",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"public Dataset withSource(Source source) {\n this.source = source.toString();\n return this;\n }",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"public void setName(String filename) {\n\t\tthis.filename = filename;\n\t}",
"public void updateDatasetDetails(String newName) {\r\n datasetTitle.setText(newName);\r\n updateDropDownList(newName);\r\n }",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"public void setName(String inName)\n {\n name = inName;\n }",
"@ProgrammaticProperty\n public void setSeparateTestSetDataSource(String spec) {\n m_separateTestSetDataSource = spec;\n }",
"public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"public void setDataSource(DataSource ds);",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 262,\n FQN=\"llvm::Module::setSourceFileName\", NM=\"_ZN4llvm6Module17setSourceFileNameENS_9StringRefE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZN4llvm6Module17setSourceFileNameENS_9StringRefE\")\n //</editor-fold>\n public void setSourceFileName(StringRef Name) {\n SourceFileName.$assignMove(Name.$string());\n }",
"public void setName(String s) {\n this.name = s;\n }",
"public DataSourceId(DataverseName dataverseName, String datasourceName) {\n this(dataverseName, datasourceName, null);\n }",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public final void setName(java.lang.String name)\n\t{\n\t\tsetName(getContext(), name);\n\t}",
"public void setName(Identifier name) throws SourceException {\n getMemberImpl().setName(name);\n updateConstructorsNames(name);\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tcomparedChart.setName(name);\n\t}",
"public Builder dataset(String newDataset) {\n dataset = newDataset;\n return this;\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setSrcDatasetId(Integer srcDatasetId) {\r\n this.srcDatasetId = srcDatasetId;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public String getDatasourceName()\n {\n return m_dsName;\n }",
"public static String generateDatasetName() {\n return DATASET_NAME_PREFIX + UUID.randomUUID().toString().replace('-', '_');\n }",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public Builder setTargetName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n targetName_ = value;\n onChanged();\n return this;\n }",
"public void setName(String nameIn) {\n name = nameIn;\n }",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"public void setSourceImageName(final String sourceImageNameValue) {\n this.sourceImageName = sourceImageNameValue;\n }",
"public void setName(final String name) throws DataException {\n COLLECTION.remap(this, fullName, name);\n fullName = name;\n for (AbstractHistogram hist : histograms.getList()) {\n hist.updateNames(this);\n }\n }",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"public void setName(String name) {\r\n\t\tthis.title = name;\r\n\t}",
"@Override\n\tpublic void setData(String playerName) {\n\t\tthis.currentPlayerName = playerName;\n\t\t\n\t}",
"public void setName(String n) {\r\n name = n;\r\n }",
"public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"public void setName (String n){\n\t\tname = n;\n\t}",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }"
]
| [
"0.72991794",
"0.72857124",
"0.7128114",
"0.69951814",
"0.6978336",
"0.6871661",
"0.67829263",
"0.66050136",
"0.64441234",
"0.64120954",
"0.6411697",
"0.63891184",
"0.63676155",
"0.6353539",
"0.634046",
"0.6266655",
"0.61879754",
"0.61094713",
"0.60949874",
"0.6059961",
"0.60415465",
"0.60188335",
"0.5971794",
"0.59605354",
"0.5957122",
"0.59529287",
"0.5925776",
"0.5919096",
"0.5914063",
"0.5899227",
"0.5871551",
"0.58567876",
"0.5852731",
"0.58461803",
"0.5841571",
"0.583282",
"0.5832135",
"0.58263767",
"0.5804503",
"0.57963926",
"0.57963926",
"0.57963926",
"0.57963926",
"0.57963926",
"0.57963926",
"0.57858294",
"0.57802206",
"0.57794756",
"0.57767546",
"0.57743835",
"0.57706887",
"0.57649606",
"0.5762663",
"0.5756868",
"0.5756868",
"0.5756868",
"0.5756466",
"0.5730917",
"0.5730917",
"0.5730917",
"0.5729078",
"0.57267827",
"0.57245946",
"0.5723727",
"0.5723727",
"0.5723727",
"0.57234365",
"0.5720593",
"0.5719313",
"0.5718418",
"0.57172596",
"0.57153594",
"0.57059556",
"0.57041186",
"0.5696239",
"0.5690432",
"0.5690049",
"0.5687895",
"0.5687355",
"0.5682696",
"0.5681598",
"0.5679091",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175",
"0.56752175"
]
| 0.7939181 | 0 |
Get the source sample id. | public Integer getSrcSampleId() {
return srcSampleId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getSampleId() {\n return sampleId;\n }",
"public java.lang.String getSampleId() {\n return sampleId;\n }",
"String getSourceID();",
"long getSourceId();",
"public long getSourceId() {\n return sourceId_;\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"public java.lang.Object getSourceID() {\n return sourceID;\n }",
"int getSourceSnId();",
"public String sourceUniqueId() {\n return this.sourceUniqueId;\n }",
"int getSrcId();",
"int getSrcId();",
"public String getSourceId() {\n return sourceId;\n }",
"public String getSrcSampleName() {\r\n return srcSampleName;\r\n }",
"public Entity.ID getSourceID() {\n return sourceID;\n }",
"public Integer getSourceID()\r\n\t\t{ return mapping.getSourceId(); }",
"public Number getSrcId() {\r\n return (Number) getAttributeInternal(SRCID);\r\n }",
"public int getSrcId() {\n return instance.getSrcId();\n }",
"public int getSrcId() {\n return instance.getSrcId();\n }",
"public int getSrcId() {\n return srcId_;\n }",
"public int getSrcId() {\n return srcId_;\n }",
"public void setSrcSampleId(Integer srcSampleId) {\r\n this.srcSampleId = srcSampleId;\r\n }",
"public String getSourceIdentifier() {\n return sourceIdentifier;\n }",
"@Override\n\tpublic String getId()\n\t{\n\t\treturn source.getId();\n\t}",
"public String getSrcId()\n\t\t{\n\t\t\tElement srcIdElement = XMLUtils.findChild(mediaElement, SRC_ID_ELEMENT_NAME);\n\t\t\treturn srcIdElement == null ? null : srcIdElement.getTextContent();\n\t\t}",
"public int getSourceSnId() {\n return sourceSnId_;\n }",
"public String getSourceFileName() {\n\t\tStringIdMsType stringIdType =\n\t\t\tpdb.getTypeRecord(getSourceFileNameStringIdRecordNumber(), StringIdMsType.class);\n\t\tif (stringIdType == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn stringIdType.getString();\n\t}",
"public int getSrcId(int index) {\n return srcId_.getInt(index);\n }",
"public int getSource() {\n\t\treturn source;\n\t}",
"public void setSampleId(java.lang.String value) {\n this.sampleId = value;\n }",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"public int getSourceSnId() {\n return sourceSnId_;\n }",
"public int getSource(){\r\n\t\treturn this.source;\r\n\t}",
"int getSrcId(int index);",
"public java.lang.Integer getSource_code_id() {\n return source_code_id;\n }",
"String artifactSourceId();",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public String sourceResourceId() {\n return this.sourceResourceId;\n }",
"public int getSrcId(int index) {\n return instance.getSrcId(index);\n }",
"public EndpointID source() {\r\n\t\treturn source_;\r\n\t}",
"public Long getSourceNumber() {\n return this.sourceNumber;\n }",
"public String getId() {\n\t\t\t\t\treturn ContentTypeIdForXML.ContentTypeID_XML + \".source\"; //$NON-NLS-1$;\n\t\t\t\t}",
"@Column(name=\"event_sampl_id\", nullable=true)\n public Long getSampleId() {\n return sampleId;\n }",
"protected String getDataSourceId() {\n return getDataSourceId(sourceComboBox);\n }",
"public long getSource()\r\n { return src; }",
"public String getSample_path() {\n return sample_path;\n }",
"public String getSourceSnapshotId() {\n return this.sourceSnapshotId;\n }",
"@Path(\"sourceId/\")\n public SourceResource getSourceIdResource() {\n SourceIdResourceSub resource = resourceContext.getResource(SourceIdResourceSub.class);\n resource.setParent(getEntity());\n return resource;\n }",
"public String get_source() {\n\t\treturn source;\n\t}",
"java.lang.String getSetupID();",
"public RecordNumber getSourceFileNameStringIdRecordNumber() {\n\t\treturn sourceFileNameStringIdRecordNumber;\n\t}",
"long getJobIDSource();",
"public String getSourceAttributeId() {\n\t\treturn sourceAttribute;\n\t}",
"public String getSystemId() {\n return this.source.getURI();\n }",
"public String getSampleName();",
"@Override public Sample getSampleByID(int id)\n {\n try\n {\n return clientDoctor.getSampleByID(id);\n }\n catch (RemoteException e)\n {\n throw new RuntimeException(\"Error while fetching sample. Please try again.\");\n }\n }",
"public long getJobIDSource() {\n return jobIDSource_;\n }",
"String experimentId();",
"public String getSource() {\n return source;\n }",
"public String getSource() {\r\n return source;\r\n }",
"public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}",
"public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }",
"public long getJobIDSource() {\n return jobIDSource_;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }",
"public String getPidSourceAttributeId() {\n return pidSourceAttributeId;\n }",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public String getSource() {\n return this.source;\n }",
"public String getCurrentSampleLabelKey();",
"public String getSource() {\n\n return source;\n }",
"@DISPID(-2147417088)\n @PropGet\n int sourceIndex();",
"public int sourceToDatabase(Source source) throws ClassNotFoundException, SQLException\n\t{\n\t\tint sourceId; //Variable used for returning value of source's id.\n\t\t\n\t\ttry\n\t\t{\n\t\t\tClass.forName(\"org.postgresql.Driver\"); //Getting driver from \"org.postgresql.Driver\".\n\t\t\tconn = DriverManager.getConnection(\"jdbc:postgresql://localhost/postgres\", \"postgres\", \"postgres\"); //Connecting to a database.\n\t\t\tstatement = conn.createStatement();\n\t\t\t\n\t\t\tcheckIfExists = \"SELECT id_src FROM sources WHERE link = '\" + source.link + \"'\"; //Checking if specified source.\n\t\t\t\n\t\t\tstatement.execute(checkIfExists);\n\t\t\tresultSet = statement.getResultSet();\n\t\t\t\n\t\t\tif (resultSet.next()) //If source already exists method should return its id.\n\t\t\t\tsourceId = resultSet.getInt(1);\n\t\t\t\n\t\t\telse //If source doesn't exist yet, it has to be created and method should return its id.\n\t\t\t{\n\t\t\t\tstatement.execute(\"INSERT INTO sources (type, abstract, link) VALUES (\" + source.sourceToSave() + \");\"); //Inserting source into database.\n\t\t\t\tstatement.execute(checkIfExists);\n\t\t\t\tresultSet = statement.getResultSet();\n\t\t\t\tresultSet.next();\n\t\t\t\tsourceId = resultSet.getInt(1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tfinally\n\t\t{\n\t\t\tif (conn != null) conn.close();\n\t\t}\n\t\t\n\t\treturn sourceId;\n\t}",
"public String getSource() {\r\n return Source;\r\n }",
"public int getSourceResId() {\n return sourceResId;\n }",
"java.lang.String getRecognitionId();",
"protected String getLocalId(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException {\n Collection<Object> sourceIdValues = getValuesFromAllDependencies(resolutionContext, getPidSourceAttributeId());\n if (sourceIdValues == null || sourceIdValues.isEmpty()) {\n log.error(\"Source attribute {} for connector {} provide no values\", getPidSourceAttributeId(), getId());\n throw new AttributeResolutionException(\"Source attribute \" + getPidSourceAttributeId() + \" for connector \"\n + getId() + \" provided no values\");\n }\n\n if (sourceIdValues.size() > 1) {\n log.warn(\"Source attribute {} for connector {} has more than one value, only the first value is used\",\n getPidSourceAttributeId(), getId());\n }\n\n return sourceIdValues.iterator().next().toString();\n }",
"public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}",
"public Integer getBillSourceId() {\n return billSourceId;\n }",
"public void setSrcSampleName(String srcSampleName) {\r\n this.srcSampleName = srcSampleName;\r\n }",
"Source createDatasourceZ3950IdSequence(Source ds, Provider prov) throws RepoxException;",
"public int getSrc() {\n\t\treturn src;\n\t}",
"public String getSource() {\n return mSource;\n }",
"@Override\n\tpublic Object getId() {\n\t\treturn Arrays.asList(name, source);\n\t}",
"public String getFILE_SAMPLE() {\r\n return FILE_SAMPLE;\r\n }",
"public String getSrcLoginId()\r\n\t{\r\n\t\treturn (String) queryParams.get(AUTH_SRC_LOGIN_ID);\r\n\t}",
"public Object getIdmapSource() {\n\t\treturn idmapSourceComboBox.getSelectedItem();\n\t}",
"public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}",
"public String getSource();",
"String getSource();",
"int clientSourceStationID(final int index);",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getSourceFigNodeId() {\n return sourceFigNodeId;\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"public void setSourceID(java.lang.Object sourceID) {\n this.sourceID = sourceID;\n }",
"public int sourceStart()\n\t{\n\t\treturn sourceStart;\n\t}",
"public String getSource() {\n Object ref = source_;\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 source_ = s;\n }\n return s;\n }\n }",
"@VTID(27)\n java.lang.String getSourceName();",
"String getDest_id();"
]
| [
"0.75534457",
"0.7545017",
"0.7376484",
"0.71558976",
"0.71507907",
"0.7083637",
"0.6984158",
"0.6972893",
"0.6930448",
"0.6889991",
"0.6889991",
"0.68796796",
"0.6726514",
"0.6708031",
"0.6663602",
"0.6659744",
"0.6624265",
"0.65798825",
"0.6574698",
"0.6531248",
"0.6512647",
"0.64501375",
"0.64214605",
"0.63877076",
"0.63814586",
"0.6357069",
"0.6350326",
"0.63501877",
"0.6294059",
"0.6285727",
"0.62790596",
"0.6275936",
"0.62074286",
"0.6206901",
"0.6204064",
"0.6204055",
"0.6204055",
"0.61739486",
"0.6096142",
"0.60841817",
"0.6080082",
"0.6047668",
"0.60284066",
"0.5982483",
"0.5936119",
"0.59231454",
"0.59180397",
"0.59102434",
"0.58848065",
"0.5861464",
"0.5850935",
"0.5846117",
"0.58382344",
"0.58286494",
"0.5827941",
"0.58146745",
"0.5789083",
"0.5784467",
"0.5775795",
"0.5771948",
"0.5771527",
"0.57694274",
"0.5733634",
"0.5733634",
"0.5733634",
"0.573191",
"0.5726248",
"0.57187515",
"0.57135314",
"0.569724",
"0.56930834",
"0.56893337",
"0.5667617",
"0.5658279",
"0.564533",
"0.564072",
"0.56402624",
"0.56312346",
"0.56264764",
"0.5609307",
"0.5607707",
"0.5606657",
"0.56044745",
"0.56009865",
"0.55928975",
"0.5592151",
"0.55778736",
"0.55768245",
"0.5559532",
"0.5558414",
"0.55524164",
"0.5548518",
"0.5548518",
"0.55450505",
"0.5540228",
"0.5525743",
"0.5509999",
"0.54883885",
"0.54844564",
"0.5483919"
]
| 0.77751404 | 0 |
Set the source sample id. | public void setSrcSampleId(Integer srcSampleId) {
this.srcSampleId = srcSampleId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSampleId(java.lang.String value) {\n this.sampleId = value;\n }",
"public org.ga4gh.models.CallSet.Builder setSampleId(java.lang.String value) {\n validate(fields()[2], value);\n this.sampleId = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setSourceId(String source) {\n this.sourceId = sourceId;\n }",
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"private void setSrcId(int value) {\n \n srcId_ = value;\n }",
"public void setSourceID(java.lang.Object sourceID) {\n this.sourceID = sourceID;\n }",
"public Builder setSourceId(long value) {\n bitField0_ |= 0x00000001;\n sourceId_ = value;\n onChanged();\n return this;\n }",
"public Integer getSrcSampleId() {\r\n return srcSampleId;\r\n }",
"public Builder setSourceSnId(int value) {\n \n sourceSnId_ = value;\n onChanged();\n return this;\n }",
"public void setSrcId(Number value) {\r\n setAttributeInternal(SRCID, value);\r\n }",
"public void setSourceAttribute(String id) {\n this.sourceAttribute = id;\n }",
"public Builder setSrcId(int value) {\n copyOnWrite();\n instance.setSrcId(value);\n return this;\n }",
"public void setSrc(String startId) {\r\n\t\tsrc = startId;\r\n\t}",
"private void setSrcId(\n int index, int value) {\n ensureSrcIdIsMutable();\n srcId_.setInt(index, value);\n }",
"void setRenderedSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"public Builder setSrcId(int value) {\n copyOnWrite();\n instance.setSrcId(value);\n return this;\n }",
"public void setSource(String source);",
"public java.lang.String getSampleId() {\n return sampleId;\n }",
"public void resetSource(String sourceId) {\n\t}",
"public java.lang.String getSampleId() {\n return sampleId;\n }",
"public void setSource (String source);",
"public void setConstantSamples(String sourceEntry);",
"void setRenderedSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;",
"public void set_source(EndpointID source) {\r\n\t\tsource_ = source;\r\n\t}",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public void setSrcSampleName(String srcSampleName) {\r\n this.srcSampleName = srcSampleName;\r\n }",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"public final void setSource(final Integer newSource) {\n this.source = newSource;\n }",
"public void setSrcId(String srcId)\n\t\t{\n\t\t\tElement srcIdElement = XMLUtils.findChild(mediaElement, SRC_ID_ELEMENT_NAME);\n\t\t\tif (srcId == null || srcId.equals(\"\")) {\n\t\t\t\tif (srcIdElement != null)\n\t\t\t\t\tmediaElement.removeChild(srcIdElement);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (srcIdElement == null) {\n\t\t\t\t\tsrcIdElement = document.createElement(SRC_ID_ELEMENT_NAME);\n\t\t\t\t\tmediaElement.appendChild(srcIdElement);\n\t\t\t\t}\n\t\t\t\tsrcIdElement.setTextContent(srcId);\n\t\t\t}\n\t\t}",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"public void setSource(String source) {\n _source = source;\n }",
"void setRenderedSource(Long id, RenderedOp source, int index)\n\tthrows RemoteException;",
"void setRenderableSource(Long id, Long sourceId, int index)\n\tthrows RemoteException;",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public Builder setSrcId(\n int index, int value) {\n copyOnWrite();\n instance.setSrcId(index, value);\n return this;\n }",
"void setRenderedSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;",
"public Builder addSrcId(int value) {\n copyOnWrite();\n instance.addSrcId(value);\n return this;\n }",
"public void setSourceIdentifier(String sourceIdentifier) {\n this.sourceIdentifier = sourceIdentifier;\n }",
"void setRenderableSource(Long id, Long sourceId, String serverName,\n\t\t\t String opName, int index) throws RemoteException;",
"public void setSource(String Source) {\r\n this.Source = Source;\r\n }",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"@Override\n\tpublic void setSource(Object arg0) {\n\t\tdefaultEdgle.setSource(arg0);\n\t}",
"private void addSrcId(int value) {\n ensureSrcIdIsMutable();\n srcId_.addInt(value);\n }",
"public void setSourceStart(int x)\n\t{\n\t\tsourceStart = x;\n\t}",
"String getSourceID();",
"Source updateDatasourceZ3950IdSequence(Source ds) throws RepoxException;",
"void setRenderableSource(Long id, RenderedImage source, int index)\n\tthrows RemoteException;",
"Source updateDatasourceZ3950IdFile(Source ds) throws RepoxException;",
"public final void setSample(Object obj)\n { /* setSample */\n this.sample= obj; \n }",
"public void setTestSetId(String testSetId) {\n this.testSetId = testSetId;\n }",
"public void setTestSetId(String testSetId) {\n this.testSetId = testSetId;\n }",
"public void setSource_code_id(java.lang.Integer source_code_id) {\n this.source_code_id = source_code_id;\n }",
"public void setSourceObjectId(String sourceObjectId) {\n this.sourceObjectId = sourceObjectId;\n }",
"long getSourceId();",
"public int getSrcId() {\n return srcId_;\n }",
"public String getSourceId() {\n return sourceId;\n }",
"public void setNoiseSource(String noiseSource) {\n if (NOISE_SOURCES != null) {\n for (int i = 0; i < NOISE_SOURCES.length; i++) {\n if (NOISE_SOURCES[i].equals(noiseSource)) {\n _avTable.set(ATTR_NOISE_SOURCE, NOISE_SOURCES[i]);\n }\n }\n }\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"public String sourceUniqueId() {\n return this.sourceUniqueId;\n }",
"protected void setId(short id) {\n this.id = id;\n }",
"public int getSrcId() {\n return srcId_;\n }",
"public void setsId(Integer sId) {\n this.sId = sId;\n }",
"public void setSrcDatasetId(Integer srcDatasetId) {\r\n this.srcDatasetId = srcDatasetId;\r\n }",
"public void setId(String s) {\n\t\tid = s;\n\t}",
"void setRenderableSource(Long id, RenderableOp source,\n\t\t\t int index) throws RemoteException;",
"void setRenderableRMIServerProxyAsSource(Long id,\n\t\t\t\t\t Long sourceId, \n\t\t\t\t\t String serverName,\n\t\t\t\t\t String opName,\n\t\t\t\t\t int index) throws RemoteException;",
"public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}",
"public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}",
"public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}",
"public void param_id_SET(String src, Bounds.Inside ph)\n {param_id_SET(src.toCharArray(), 0, src.length(), ph);}",
"Source createDatasourceZ3950IdSequence(Source ds, Provider prov) throws RepoxException;",
"private void clearSrcId() {\n \n srcId_ = 0;\n }",
"public void setSampleLabelKey(String key);",
"private void clearSrcId() {\n \n srcId_ = 0;\n }",
"public void setSource(noNamespace.SourceType source)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.SourceType target = null;\r\n target = (noNamespace.SourceType)get_store().find_element_user(SOURCE$0, 0);\r\n if (target == null)\r\n {\r\n target = (noNamespace.SourceType)get_store().add_element_user(SOURCE$0);\r\n }\r\n target.set(source);\r\n }\r\n }",
"public long getSourceId() {\n return sourceId_;\n }",
"public void setSource(edu.umich.icpsr.ddi.FileTxtType.Source.Enum source)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(SOURCE$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(SOURCE$30);\n }\n target.setEnumValue(source);\n }\n }",
"public void setSource(Byte source) {\r\n this.source = source;\r\n }",
"public Builder clearSourceId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n sourceId_ = 0L;\n onChanged();\n return this;\n }",
"@objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(String id)\n\t{\n\t\tm_sID=id;\t\n\t}",
"public void setSource(org.LexGrid.commonTypes.Source[] source) {\n this.source = source;\n }",
"void setSetupID(java.lang.String setupID);",
"public void setSample_path(String sample_path) {\n this.sample_path = sample_path;\n }",
"public void setId(short value) {\n this.id = value;\n }",
"public void setId(String id) {\r\n\t\tsId = id;\r\n\t}",
"public void setSourceRecord(ActivityRecord sourceRecord) {\n }",
"int getSrcId();",
"int getSrcId();",
"public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }",
"public void setId(java.lang.String param) {\n localIdTracker = true;\n\n this.localId = param;\n }",
"public void setSource(String sourceDir)\n {\n this.sourceDir = new File(sourceDir);\n }",
"public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }",
"public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }",
"private void setId(String id) {\r\n\t\tAssert.hasText(id, \"This state must have a valid identifier\");\r\n\t\tthis.id = id;\r\n\t}",
"public java.lang.Object getSourceID() {\n return sourceID;\n }"
]
| [
"0.7454988",
"0.74301404",
"0.7259667",
"0.70569026",
"0.6973912",
"0.6889364",
"0.6836415",
"0.667935",
"0.65974945",
"0.6553493",
"0.6458127",
"0.64283913",
"0.64152426",
"0.641328",
"0.64061356",
"0.64058155",
"0.6358594",
"0.63285816",
"0.62866515",
"0.62821746",
"0.62736666",
"0.6225536",
"0.6209024",
"0.61979854",
"0.61919326",
"0.6173995",
"0.6171498",
"0.6171375",
"0.6154828",
"0.61456907",
"0.61327326",
"0.609588",
"0.6093947",
"0.6093495",
"0.6093495",
"0.60852987",
"0.6023212",
"0.59728676",
"0.5961201",
"0.5936442",
"0.591967",
"0.5891516",
"0.5851147",
"0.58499426",
"0.58427185",
"0.58409846",
"0.5808587",
"0.5797177",
"0.57808125",
"0.5761408",
"0.5745846",
"0.5745846",
"0.5732834",
"0.57170534",
"0.5708993",
"0.57078385",
"0.57061476",
"0.5705974",
"0.56978637",
"0.56973374",
"0.56761324",
"0.5671422",
"0.56700706",
"0.56634676",
"0.56603795",
"0.5659793",
"0.5657041",
"0.56566405",
"0.56566405",
"0.56566405",
"0.56566405",
"0.563665",
"0.5635451",
"0.56316805",
"0.5611653",
"0.5600841",
"0.5591938",
"0.55915517",
"0.55905354",
"0.5587891",
"0.55730706",
"0.5571081",
"0.5571081",
"0.5571081",
"0.55551815",
"0.5553713",
"0.5552682",
"0.55477244",
"0.5535268",
"0.553129",
"0.5530221",
"0.55249184",
"0.55249184",
"0.5522126",
"0.5522126",
"0.5512848",
"0.54963124",
"0.5493017",
"0.5486634",
"0.54807407"
]
| 0.74151605 | 2 |
Get the source sample name. | public String getSrcSampleName() {
return srcSampleName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSampleName();",
"@VTID(27)\n java.lang.String getSourceName();",
"@Override\n public String getName() {\n return source.getName();\n }",
"private String getSourceName() {\n return srcFileName;\n }",
"public void setSrcSampleName(String srcSampleName) {\r\n this.srcSampleName = srcSampleName;\r\n }",
"public String getFullSampleName(int column);",
"public String getSourceName() {\n\t\treturn fileName;\n\t}",
"public java.lang.String getSourceName() {\r\n return localSourceName;\r\n }",
"private String getSourceName(JCas pJCas) {\n \n String sourceURI = getReferenceLocation(pJCas);\n String name = null;\n if (sourceURI != null) {\n File aFile = new File(sourceURI);\n name = aFile.getName();\n \n } else {\n name = \"knowtator_\" + String.valueOf(this.inputFileCounter++);\n }\n \n return name;\n }",
"int getNameSourceStart();",
"public String getSourceFileName() {\n\t\tStringIdMsType stringIdType =\n\t\t\tpdb.getTypeRecord(getSourceFileNameStringIdRecordNumber(), StringIdMsType.class);\n\t\tif (stringIdType == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn stringIdType.getString();\n\t}",
"String getNameInSource(Object metadataID) throws Exception;",
"public java.lang.String getSampleId() {\n return sampleId;\n }",
"public java.lang.String getSampleId() {\n return sampleId;\n }",
"@Override\n\tpublic java.lang.String getSrcFileName() {\n\t\treturn _scienceApp.getSrcFileName();\n\t}",
"SMFTypeRef getSrcName();",
"public String getCurrentSampleLabelKey();",
"public String getFILE_SAMPLE() {\r\n return FILE_SAMPLE;\r\n }",
"@HippoEssentialsGenerated(internalName = \"katharsisexampleshippo:source\")\n public String getSource() {\n return getProperty(SOURCE);\n }",
"@Nullable public String getFileName() {\n return getSourceLocation().getFileName();\n }",
"public String getSourceFileName() { return sourceFileName; }",
"String getSource();",
"@Nullable\n public String getSourceFileName() {\n return sourceFileName;\n }",
"public Integer getSrcSampleId() {\r\n return srcSampleId;\r\n }",
"java.lang.String getSource();",
"java.lang.String getSource();",
"public String getSample_path() {\n return sample_path;\n }",
"public String getSource() {\n/* 312 */ return getValue(\"source\");\n/* */ }",
"public String getRequestUrlName() {\n return \"Source\"; // TODO: parameter\n }",
"public String getSource();",
"public String get_source() {\n\t\treturn source;\n\t}",
"public String getName() {\r\n if (target != null) {\r\n return target.getName();\r\n }\r\n\r\n if (benchmark != null) {\r\n return benchmark.getName();\r\n }\r\n\r\n return \"\";\r\n }",
"public String getSource() {\n return source;\n }",
"public NameSource getNameSource() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0a7eceea-d228-42ea-bf8b-7fe5bc03373b\");\n return nameSource;\n }",
"public String getSource() {\r\n return source;\r\n }",
"public String getSourceImageName() {\n return this.sourceImageName;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSource() {\n return source;\n }",
"public String getSQLName(){\n\t\tif(source==null){\n\t\t\t//no source predicate is associated with this pred\n\t\t\treturn name;\n\t\t}\n\t\treturn source.getSQLName();\n\t}",
"public String getSrcFirstName() {\r\n return (String) getAttributeInternal(SRCFIRSTNAME);\r\n }",
"public String getSource() {\n return this.source;\n }",
"String getSourceString();",
"public String getSource() {\n\n return source;\n }",
"public String getSourceName(RecognitionException e) {\n final IntStream inputStream = e.getInputStream();\n if (inputStream != null) {\n return inputStream.getSourceName();\n } else {\n return getSourceName();\n }\n }",
"public String getSource() {\n\t\treturn (String) _object.get(\"source\");\n\t}",
"public String getRepost_source_name() {\n return repost_source_name;\n }",
"public String getSource ();",
"public String getSource() {\n return JsoHelper.getAttribute(jsObj, \"source\");\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"java.lang.String getAssociatedSource();",
"public String getSource() {\r\n return Source;\r\n }",
"public String getSourceString() {\n return sourceString;\n }",
"public String getSource(){\n\t\treturn source.getEvaluatedValue();\n\t}",
"@ApiModelProperty(required = true, value = \"The program that generated the test results\")\n public String getSource() {\n return source;\n }",
"public String getSrcLastName() {\r\n return (String) getAttributeInternal(SRCLASTNAME);\r\n }",
"java.lang.String getSrc();",
"@java.lang.Override\n public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"public java.lang.String getSource() {\n java.lang.Object ref = source_;\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 source_ = s;\n return s;\n }\n }",
"public abstract String getSource();",
"public String getName() {\n\t\treturn this.recordingProperties.name();\n\t}",
"public String getSrcSuffixTitle() {\r\n return (String) getAttributeInternal(SRCSUFFIXTITLE);\r\n }",
"@Override\n\tpublic String getSource() {\n\t\treturn source;\n\t}",
"public String getSourceString() {\n return null;\n }",
"public java.lang.String getSource() {\r\n return localSource;\r\n }",
"public String getSampleType() {\n return sampleType;\n }",
"public String getSource(){\r\n\t\treturn selectedSource;\r\n\t}",
"public String getSrcDatasetName() {\r\n return srcDatasetName;\r\n }",
"public String getResourceName() {\n return getBaseName() + getNameSuffix();\n }",
"public String getSource() {\n return mSource;\n }",
"public static String sourceExtension()\n {\n read_if_needed_();\n \n return _ext; \n }",
"public String generateStarterName() {\n\t\treturn starterName.get(roll.nextInt(starterName.size()));\n\t}",
"public String getSouce() {\n\t\treturn source;\n\t}",
"public String getSource() {\n Object ref = source_;\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 source_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getSource() {\n Object ref = source_;\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 source_ = s;\n }\n return s;\n }\n }",
"Optional<String> getSource();",
"public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }",
"String getOutputName();",
"private String getPathToSampleSummary() {\n\t\treturn pathToSampleSummary.getText();\n\t}",
"public String getSimpleName() { return FilePathUtils.getFileName(_name); }",
"String getStreamName();",
"@Override\n public String getSource() {\n return this.src;\n }",
"private String getChunkName(ScriptContext context) {\n\t\tif (context != null) {\n\t\t\tObject fileName = context.getAttribute(FILENAME);\n\t\t\tif (fileName != null) {\n\t\t\t\treturn fileName.toString();\n\t\t\t}\n\t\t}\n\t\treturn \"null\";\n\t}",
"public String toString() {\n return getClass().getName() + \"[source=\" + source + \"]\";\n }",
"java.lang.String getSourceFile();",
"@Override\r\n\tpublic String getName() {\n\t\treturn \"C:/path/to/file/rdfSpecimen_2013-06-28.xml\";\r\n\t}",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();"
]
| [
"0.7968457",
"0.7287977",
"0.7029145",
"0.7022049",
"0.70199656",
"0.6982392",
"0.6945899",
"0.68725437",
"0.68486536",
"0.68429667",
"0.67449665",
"0.67089635",
"0.66420096",
"0.66020083",
"0.65838546",
"0.6567652",
"0.64443517",
"0.6381127",
"0.63709384",
"0.63591516",
"0.6333528",
"0.62951475",
"0.623531",
"0.62312484",
"0.6228315",
"0.6228315",
"0.62164813",
"0.6202039",
"0.6196105",
"0.6192428",
"0.61775655",
"0.61752355",
"0.6173724",
"0.61635834",
"0.61557055",
"0.6117482",
"0.6104866",
"0.6104866",
"0.6104866",
"0.61030114",
"0.60850453",
"0.60800546",
"0.60622513",
"0.6054968",
"0.60532403",
"0.60530406",
"0.6048302",
"0.6017806",
"0.6012087",
"0.6002407",
"0.6002407",
"0.5993173",
"0.5984574",
"0.59782726",
"0.59688544",
"0.59667534",
"0.5966514",
"0.5930503",
"0.59242636",
"0.59109724",
"0.5910848",
"0.5909141",
"0.5906589",
"0.5901315",
"0.5891822",
"0.5885518",
"0.5855555",
"0.58508927",
"0.5848991",
"0.58434856",
"0.5843103",
"0.584205",
"0.5838121",
"0.5826314",
"0.57928467",
"0.5784959",
"0.57715213",
"0.576567",
"0.5762118",
"0.57487893",
"0.5735784",
"0.57352406",
"0.57337546",
"0.5724676",
"0.57070905",
"0.5706776",
"0.570353",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687",
"0.5702687"
]
| 0.83875453 | 0 |
Set the source sample name. | public void setSrcSampleName(String srcSampleName) {
this.srcSampleName = srcSampleName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setSourceName(String name) {\n srcFileName = name;\n }",
"public void setSourceName(java.lang.String param) {\r\n localSourceNameTracker = param != null;\r\n\r\n this.localSourceName = param;\r\n }",
"public String getSrcSampleName() {\r\n return srcSampleName;\r\n }",
"public void setSource(String source);",
"public void setSource (String source);",
"public void setDefaultSampleName(String dName) {\n\t\tDEFAULT_NAME = dName;\n\t}",
"public abstract void setName( String name ) throws SourceException;",
"public void setNameSource(NameSource nameSource) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"acfe2e92-6b9b-4a4d-962c-3dd62389739d\");\n this.nameSource = nameSource;\n }",
"public void setSampleId(java.lang.String value) {\n this.sampleId = value;\n }",
"public void setName(Identifier name) throws SourceException;",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"public void setConstantSamples(String sourceEntry);",
"public void setSampleLabelText(String text) {\n\t\tvarTable.getHeader().setSampleName(text);\n\t}",
"public String getSampleName();",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 262,\n FQN=\"llvm::Module::setSourceFileName\", NM=\"_ZN4llvm6Module17setSourceFileNameENS_9StringRefE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZN4llvm6Module17setSourceFileNameENS_9StringRefE\")\n //</editor-fold>\n public void setSourceFileName(StringRef Name) {\n SourceFileName.$assignMove(Name.$string());\n }",
"public void setSource(String source) {\n _source = source;\n }",
"public void setSource(String Source) {\r\n this.Source = Source;\r\n }",
"public void setSource(String value) {\n/* 304 */ setValue(\"source\", value);\n/* */ }",
"public void set_source(String name) throws ConnectorConfigException{\n\t\tsource = name.trim();\n\t\tif (source.equals(\"\"))\n\t\t\tthrow new ConnectorConfigException(\"Source of data can't be empty\");\n\t}",
"@Override\n\tpublic void setSrcFileName(java.lang.String srcFileName) {\n\t\t_scienceApp.setSrcFileName(srcFileName);\n\t}",
"public void setSrcDatasetName(String srcDatasetName) {\r\n this.srcDatasetName = srcDatasetName;\r\n }",
"public org.ga4gh.models.CallSet.Builder setSampleId(java.lang.String value) {\n validate(fields()[2], value);\n this.sampleId = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public void setSourceImageName(final String sourceImageNameValue) {\n this.sourceImageName = sourceImageNameValue;\n }",
"public void setSource(java.lang.String param) {\r\n localSourceTracker = true;\r\n\r\n this.localSource = param;\r\n\r\n\r\n }",
"@Override\n public String getName() {\n return source.getName();\n }",
"public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}",
"public final void setName(java.lang.String name)\n\t{\n\t\tsetName(getContext(), name);\n\t}",
"public void setName(String s) {\n this.name = s;\n }",
"public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public void setSource(Source s)\n\t{\n\t\tsource = s;\n\t}",
"public void setName(String inName)\n {\n name = inName;\n }",
"public void setSampleLabelKey(String key);",
"public void setSource(String value) {\n configuration.put(ConfigTag.SOURCE, value);\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"@VTID(27)\n java.lang.String getSourceName();",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void enterSource(String name) {\n\t\ttf_Source.sendKeys(name);\n\t\tclick_Option.click();\n\t}",
"public void setName(String name) {\n setUserProperty(\"ant.project.name\", name);\n this.name = name;\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(java.lang.String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n\t\tthis.title = name;\r\n\t}",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public void setName(String name) {\r\n this._name = name;\r\n }",
"public void setName(java.lang.String value) {\n this.name = value;\n }",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public void setNameString(String s) {\n nameString = s;\r\n }",
"protected void setName(String name) {\n this._name = name;\n }",
"void setResourceName(String name)\n {\n this.name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"public Builder setTargetName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n targetName_ = value;\n onChanged();\n return this;\n }",
"public void setName(java.lang.String _name)\n {\n name = _name;\n }",
"public void setName(java.lang.String _name)\n {\n name = _name;\n }",
"void setName(String name_);",
"public void setName(String name) {\n _name = name;\n }",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\r\n\t\tthis.name = name;\r\r\n\t}",
"protected void setName(String name) {\r\n this.name = name;\r\n }",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName( final String name )\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}",
"public void setName(java.lang.String name) {\n this.name = name;\n }"
]
| [
"0.76479685",
"0.7261175",
"0.72284925",
"0.6735541",
"0.6684648",
"0.6648813",
"0.649249",
"0.64674747",
"0.6466522",
"0.6462363",
"0.645579",
"0.6430858",
"0.64221764",
"0.64182615",
"0.6371766",
"0.6371766",
"0.6357248",
"0.6356647",
"0.6286499",
"0.62823904",
"0.62735254",
"0.62619215",
"0.61770254",
"0.61692345",
"0.6138536",
"0.6101816",
"0.6097285",
"0.6079138",
"0.60415375",
"0.6037367",
"0.6003379",
"0.5958104",
"0.5958104",
"0.5958104",
"0.5951851",
"0.59405345",
"0.5940132",
"0.58874613",
"0.58848286",
"0.58848286",
"0.58848286",
"0.58791727",
"0.587796",
"0.587796",
"0.587796",
"0.58748007",
"0.58720934",
"0.58679646",
"0.58679646",
"0.58679646",
"0.58679646",
"0.58679646",
"0.5867358",
"0.58535343",
"0.5853277",
"0.585157",
"0.58513016",
"0.58481157",
"0.58454883",
"0.58428633",
"0.5838245",
"0.5833001",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58322185",
"0.58292115",
"0.58281964",
"0.582645",
"0.582645",
"0.58241713",
"0.5821365",
"0.5820398",
"0.5820398",
"0.5820398",
"0.5817359",
"0.58172596",
"0.58172596",
"0.58172596",
"0.5816621",
"0.58153737",
"0.5814551",
"0.58098036",
"0.58067524",
"0.5805903"
]
| 0.7925509 | 0 |
Gets a nice displayable version of the file name including the file size. | public String getDisplayFileName() {
return fileName + " (" + FileItem.getDisplayFileSize(fileSize) + ")";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getFormattedFileSize(long size);",
"public String readableFileSize(long size) {\r\n\t\tif(size <= 0) return \"0\";\r\n\t\tfinal String[] units = new String[] { \"B\", \"kB\", \"MB\", \"GB\", \"TB\" };\r\n\t\tint digitGroups = (int) (Math.log10(size)/Math.log10(1024));\r\n\t\treturn new DecimalFormat(\"#,##0.#\").format(size/Math.pow(1024, digitGroups)) + \" \" + units[digitGroups];\r\n\t}",
"public void showFileSize(long size);",
"private String formatSize(long size) {\n\t return Formatter.formatFileSize(this, size);\n\t}",
"protected static String fileSize(long size) {\n\t\tString[] sizes = { \"B\", \"KB\", \"MB\", \"GB\", \"TB\" };\n\t\tint order = (int) Math.floor(Math.log(size) / Math.log(1024));\n\t\tif (order == 0)\n\t\t\treturn String.format(\"%d %s\", size, sizes[order]);\n\t\treturn String.format(\"%.5g %s\", size / Math.pow(1024, order), sizes[order]);\n\t}",
"protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }",
"String getShortName() {\n final int lastSlash = name.lastIndexOf('/');\n final String fileName = name.substring(lastSlash + 1);\n final int lastDot = fileName.lastIndexOf('.');\n return fileName.substring(0, lastDot);\n }",
"public String formatSize(long size) {\n return Formatter.formatFileSize(mContext, size);\n }",
"String displayableFileName(String path) {\n String result = \"\";\n StringTokenizer tok = new StringTokenizer(path, \"\\\\/\");\n while (tok.hasMoreTokens()) {\n result = tok.nextToken();\n }\n return result;\n }",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"public abstract String toStringForFileName();",
"private static String filename(String longFileName) {\n try {\n return Util.computeStrongName(longFileName.getBytes(Util.DEFAULT_ENCODING));\n } catch (UnsupportedEncodingException e) {\n throw new RuntimeException(e);\n }\n }",
"public static String humanize (long size)\n {\n\n long b = 1;\n long Kb = b * 1024;\n long Mb = Kb * 1024;\n long Gb = Mb * 1024;\n long Tb = Gb * 1024;\n long Pb = Tb * 1024;\n long Eb = Pb * 1024;\n\n if (size < Kb) return format2( size ) + \" byte\";\n if (size >= Kb && size < Mb) return format2((double)size / Kb) + \" Kb\";\n if (size >= Mb && size < Gb) return format2((double)size / Mb) + \" Mb\";\n if (size >= Gb && size < Tb) return format2((double)size / Gb) + \" Gb\";\n if (size >= Tb && size < Pb) return format2((double)size / Tb) + \" Tb\";\n if (size >= Pb && size < Eb) return format2((double)size / Pb) + \" Pb\";\n if (size >= Eb) return format2((double)size / Eb) + \" Eb\";\n\n return \"???\";\n }",
"public String toLsString()\n {\n String sizeOrDeviceId = \"\";\n String name = this.file.getName();\n String realPath = this.isSymLink() ? RootTools.getRealPath(this.file.getPath()) : null;\n\n switch (this.type)\n {\n case File:\n sizeOrDeviceId = String.valueOf(this.size);\n break;\n case CharacterDevice:\n case BlockDevice:\n sizeOrDeviceId = String.format(\"%3d,%4d\", this.deviceIdSpecial >> 8, this.deviceIdSpecial & 0xff);\n break;\n case SymbolicLink:\n name = name + \" -> \" + (realPath == null ? \"(null)\" : new File(realPath).getName());\n break;\n }\n\n return String.format(\"%s %-8s %-8s %8s %s %s\",\n this.mode.getSymbols(),\n //this.hardLinkCount,\n RootTools.getUserName(this.userId),\n RootTools.getUserName(this.groupId),\n sizeOrDeviceId,\n new SimpleDateFormat(\"yyyy-MM-dd HH:mm\").format(this.lastModified),\n name);\n }",
"public String getFileName() {\n return String.format(\"%s%o\", this.fileNamePrefix, getIndex());\n }",
"public String toPrettyString() {\n return getByteCount() + \" bytes\";\n }",
"public String toFileString() {\n return typeIcon() + \" \" + completionIcon() + \" \" + description;\n }",
"String getShortWorkfileName();",
"java.lang.String getFilename();",
"java.lang.String getFilename();",
"public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}",
"public String toFileSuffix() {\n if ( release ) return majlow;\n else return majlow + '-' + commitNumber();\n }",
"public String filename() {\n\t int sep = fullPath.lastIndexOf(pathSeparator);\n\t return fullPath.substring(sep + 1);\n\t }",
"public String filename() {\n int dot = fullPath.lastIndexOf(extensionSeparator);\n int sep = fullPath.lastIndexOf(pathSeparator);\n return fullPath.substring(sep + 1, dot);\n }",
"public String getFileName() {\r\n \t\tif (isFileOpened()) {\r\n \t\t\treturn curFile.getName();\r\n \t\t} else {\r\n \t\t\treturn \"\";\r\n \t\t}\r\n \t}",
"public String toTerseString()\n {\n return TextUtils.join(\" \", new String[] {\n this.file.getPath(),\n String.valueOf(this.size),\n String.valueOf(this.blockCount),\n Integer.toHexString(this.mode.getValue()),\n String.valueOf(this.userId),\n String.valueOf(this.groupId),\n Long.toHexString(this.deviceId),\n String.valueOf(this.inode),\n String.valueOf(this.hardLinkCount),\n Long.toHexString(this.deviceIdSpecial >> 8),\n Long.toHexString(this.deviceIdSpecial & 0xff),\n String.valueOf(this.lastAccessed.getTime() / 1000),\n String.valueOf(this.lastModified.getTime() / 1000),\n String.valueOf(this.lastChanged.getTime() / 1000),\n String.valueOf(this.blockSize)\n });\n }",
"public String getName() {\n return _file.getAbsolutePath();\n }",
"public String getName() { return FilePathUtils.getFileName(getPath()); }",
"public String getFinalFileName()\r\n\t{\r\n\t\treturn this.getFileName() + this.getFileFormat();\r\n\t}",
"public String getName() {\n return dtedDir + \"/\" + filename;\n }",
"public String fullFileName () {\n\t\tif (directory == null || directory.equals(\"\"))\n\t\t\treturn fileName;\n\t\telse\n\t\t\treturn directory + File.separator + fileName;\t//add a '\\' in the path\n\t}",
"public String getFileName() {\n\t\treturn file.getFileName();\n\t}",
"public String getStringFile(){\n return fileView(file);\n }",
"public String getFileName() {\n\t\treturn mItems.getJustFileName();\n\t}",
"public static String getFormattedSize(long size) {\r\n float localSize = (float)(size / Math.pow(2, 30));\r\n Formatter formatter = new Formatter();\r\n if (localSize > 1) {\r\n return formatter.format(\"%.2fG\", Math.round(localSize * 100) / 100f).toString();\r\n } else if ((localSize = (float)(size / Math.pow(2, 20))) > 1) {\r\n return formatter.format(\"%.2fM\", Math.round(localSize * 100) / 100f).toString();\r\n } else if ((localSize = (float)(size / Math.pow(2, 10))) > 1) {\r\n return formatter.format(\"%.2fK\", Math.round(localSize * 100) / 100f).toString();\r\n } else {\r\n return formatter.format(\"%dB\", size).toString();\r\n }\r\n }",
"public static String shortFilename(String filename) {\n\t\tint pos=filename.lastIndexOf(java.io.File.separatorChar);\n\t\tif (pos!=-1) return filename.substring(pos+1);\n\t\telse return filename;\n\t}",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public static String getFilename()\n\t{\n\t\tString s = \"scene \"\n//\t\t\t\t+(LORENTZ_WINDOW?\"through Lorentz Window \":\"\")\n\t\t\t\t+\"with camera with \" + APERTURE_SIZE + \" aperture size \"\n\t\t\t\t+\"focussed at z=\"+FOCUSSING_DISTANCE + \" \"\n\t\t\t\t+\"and focus-surface fixed shutter model \"\n\t\t\t\t+(BETA_0?\"at rest\":(\"moving with beta=\"+beta))\n\t\t\t\t+(TEST?\" (test)\":\"\");\n//\t\tif(!PINHOLE_CAMERA)\n//\t\t{\n//\t\t\ts = s+(FOCUSSED_ON_IMAGE?\"image\":\"object\");\n//\t\t}\n\t\treturn s+\".bmp\";\n\t}",
"public static String getFileName()\r\n\t{\r\n\t\tString name = \"d3_\";\r\n\t\tjava.util.Date tNow = new java.util.Date();\r\n\r\n\t\tjava.text.SimpleDateFormat df = new java.text.SimpleDateFormat(\"mm_ss\");\r\n\r\n\t\tname = name + \"_\" + df.format(tNow) + \".wmf\";\r\n\r\n\t\treturn name;\r\n\t}",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getName() {\n if (filename != null) {\n int index = filename.lastIndexOf(separatorChar);\n\n if (index >= 0) {\n return filename.substring(index + 1);\n } else {\n if (filename == null) {\n return \"\";\n } else {\n return filename;\n }\n }\n } else {\n return \"\";\n }\n }",
"public String getFileName() {\n return getCellContent(FILE).split(FILE_LINE_SEPARATOR)[0];\n }",
"public static String getReadableFileSize(int size) {\n final int BYTES_IN_KILOBYTES = 1024;\n final DecimalFormat dec = new DecimalFormat(\"###.#\");\n final String KILOBYTES = \" KB\";\n final String MEGABYTES = \" MB\";\n final String GIGABYTES = \" GB\";\n float fileSize = 0;\n String suffix = KILOBYTES;\n\n if (size > BYTES_IN_KILOBYTES) {\n fileSize = size / BYTES_IN_KILOBYTES;\n if (fileSize > BYTES_IN_KILOBYTES) {\n fileSize = fileSize / BYTES_IN_KILOBYTES;\n if (fileSize > BYTES_IN_KILOBYTES) {\n fileSize = fileSize / BYTES_IN_KILOBYTES;\n suffix = GIGABYTES;\n } else {\n suffix = MEGABYTES;\n }\n }\n }\n return String.valueOf(dec.format(fileSize) + suffix);\n }",
"public static String getReadableFileSize(int size) {\n final int BYTES_IN_KILOBYTES = 1024;\n final DecimalFormat dec = new DecimalFormat(\"###.#\");\n final String KILOBYTES = \" KB\";\n final String MEGABYTES = \" MB\";\n final String GIGABYTES = \" GB\";\n float fileSize = 0;\n String suffix = KILOBYTES;\n\n if (size > BYTES_IN_KILOBYTES) {\n fileSize = size / BYTES_IN_KILOBYTES;\n if (fileSize > BYTES_IN_KILOBYTES) {\n fileSize = fileSize / BYTES_IN_KILOBYTES;\n if (fileSize > BYTES_IN_KILOBYTES) {\n fileSize = fileSize / BYTES_IN_KILOBYTES;\n suffix = GIGABYTES;\n } else {\n suffix = MEGABYTES;\n }\n }\n }\n return String.valueOf(dec.format(fileSize) + suffix);\n }",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"public String getFileName();",
"public String getFileName();",
"public String getFileName()\n {\n return getString(\"FileName\");\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n }\n }",
"public String getFile_name() {\n\t\treturn file_name;\n\t}",
"private String nakedFileName() {\n return f.getName().split(\"\\\\.\")[0];\n }",
"public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getFilename() {\n\treturn file.getFilename();\n }",
"public String toString()\n\t{\n\t\treturn myFilename;\n\t}",
"public String getName()\n {\n return( file );\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"protected String getExpectedString(ArchiveEntry entry) {\n return entry.getSize() + \" \" + entry.getName();\n }",
"public String getFileName() {\n\t\treturn file.getName();\n\t}",
"String getFilename();",
"public String filename(File f) {\r\n int dot = f.toString().lastIndexOf(\".\");\r\n int sep = f.toString().lastIndexOf(\"\\\\\");\r\n return f.toString().substring(sep + 1, dot);\r\n }",
"public String getSzmainfilename() {\n return szmainfilename;\n }",
"public String getFilename();",
"private String getEditedFilename(File f) {\n \tString name = \"$Corrupted$\";\n \tString s = \"$Corrupted$\";\n \t\n \ttry {\n \t\tBufferedReader br = new BufferedReader( new FileReader(f) );\n \t\ts = br.readLine();\n \t\tbr.close();\n \t\n \t}catch (IOException e) {\n \t\te.printStackTrace();\n \t}\n \t\n\n \tif ( s.substring(0,6).equals(\"title\"+dataSep) ) {\n \t\tname = s.substring(6,s.length());\n \t\t\n \t}\n \t\n \treturn name;\n \t\n }",
"public String getFileName() {\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif(this.exists() && !this.isDirectory())\n\t\t\tresult = this.get(this.lenght - 1);\n\t\t\n\t\treturn result;\n\t}",
"public String getName() {\r\n return mFile.getName();\r\n }",
"public String getNameFile(){\n\t\t\treturn this.nameFile;\n\t\t}",
"private String descFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return f.getPath();\n }\n return StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }",
"public String getFileNamingDetails();",
"public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}",
"public String getSimpleName() { return FilePathUtils.getFileName(_name); }",
"public String getFileName() {\n return ScreenRecordService.getFileName();\n }",
"public static String m576f() {\r\n long j = 0;\r\n try {\r\n StatFs statFs = new StatFs(Environment.getDataDirectory().getPath());\r\n j = ((long) statFs.getBlockCount()) * ((long) statFs.getBlockSize());\r\n } catch (Exception e) {\r\n }\r\n return String.valueOf(j);\r\n }",
"private String getFullName(Path file, int choice) throws Exception {\n\t\tString fullName = \"\";\n\n\t\tswitch (choice) {\n\t\tcase 1:\n\t\t\tfullName = getFileName(file); // name\n\t\t\tbreak;\n\t\tcase 16:\n\t\t\tfullName = getFileSize(file); // size\n\t\t\tbreak;\n\t\tcase 81:\n\t\t\tfullName = getFileHash(file); // hash\n\t\t\tbreak;\n\t\tcase 17:\n\t\t\tfullName = getFileName(file) + getFileSize(file); // name+size\n\t\t\tbreak;\n\t\tcase 82:\n\t\t\tfullName = getFileName(file) + getFileHash(file); // name+hash\n\t\t\tbreak;\n\t\tcase 97:\n\t\t\tfullName = getFileSize(file) + getFileHash(file);\n\t\t\tbreak;\n\t\tcase 98:\n\t\t\tfullName = getFileName(file) + getFileSize(file) + getFileHash(file);\n\t\t\tbreak;\n\t\t}\n\t\treturn fullName;\n\t}",
"public final String getFileName() {\n\n\t\treturn getValue(FILE_NAME);\n\t}",
"public static String fileName(File file)\n {\n if (file == Configuration.STD_OUT)\n {\n return \"standard output\";\n }\n else\n {\n try\n {\n return file.getCanonicalPath();\n }\n catch (IOException ex)\n {\n return file.getPath();\n }\n }\n }"
]
| [
"0.7379023",
"0.6807462",
"0.68016183",
"0.6753923",
"0.6617953",
"0.6522276",
"0.6514109",
"0.6463115",
"0.63740575",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6192788",
"0.6133497",
"0.6129508",
"0.61050886",
"0.61035264",
"0.6102926",
"0.6093927",
"0.60600454",
"0.60491675",
"0.6046864",
"0.6046864",
"0.6046012",
"0.6042073",
"0.6005501",
"0.5975644",
"0.596795",
"0.59549177",
"0.5950108",
"0.59262633",
"0.5924263",
"0.59196424",
"0.5901353",
"0.5900658",
"0.58970743",
"0.5894044",
"0.5884831",
"0.5869519",
"0.5862221",
"0.5862221",
"0.5862221",
"0.5862221",
"0.5862221",
"0.5862221",
"0.5846463",
"0.5841062",
"0.58405083",
"0.58405083",
"0.5838448",
"0.58375853",
"0.58261013",
"0.58261013",
"0.5822609",
"0.5822609",
"0.5822609",
"0.5822609",
"0.5822609",
"0.58116263",
"0.58116263",
"0.5807577",
"0.5803934",
"0.5803934",
"0.5788254",
"0.5783565",
"0.5781446",
"0.5781446",
"0.57792354",
"0.5777366",
"0.57769215",
"0.577149",
"0.577149",
"0.577149",
"0.577149",
"0.577149",
"0.577149",
"0.57663465",
"0.5763146",
"0.57626826",
"0.57555544",
"0.5749961",
"0.57381004",
"0.5736769",
"0.572899",
"0.57261366",
"0.571165",
"0.5699047",
"0.5694368",
"0.56937313",
"0.5673846",
"0.5672366",
"0.56720006",
"0.5667306",
"0.5663765",
"0.56623"
]
| 0.7990609 | 0 |
Gets format, formatted for display. | public String getFormatString() {
if (format == null) { return ""; }
if (format.equals(ImportQueueItem.FORMAT_TAB)) {
return FORMAT_TAB_DISPLAY;
} else if (format.equals(ImportQueueItem.FORMAT_XML)) {
return FORMAT_XML_DISPLAY;
} else if (format.equals(ImportQueueItem.FORMAT_DISCOURSE)) {
return FORMAT_DISCOURSE_DISPLAY;
} else {
return format + " format";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getFormat();",
"String getFormat();",
"String getFormat();",
"public String getFormat() {\n return format;\n }",
"public String getFormat() {\n return format;\n }",
"public String getFormat() {\n return format;\n }",
"public String format () {\n\t\treturn format;\n\t}",
"public String getFormat()\n {\n return format;\n }",
"public String getFormat() {\r\n return _format;\r\n }",
"public String getFormat() {\n\t\treturn formatString;\n\t}",
"public String getFormat() {\n return this.format;\n }",
"public String getFormat() {\n\t\treturn format;\n\t}",
"public String getFormat() {\n/* 206 */ return getValue(\"format\");\n/* */ }",
"Object getFormat();",
"public String getFormat() {\n\t\treturn getAttribute(FORMAT_TAG);\n\t}",
"public int getFormat ()\n {\n return this.format;\n }",
"public String getFormat() {\n Object ref = format_;\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 format_ = s;\n return s;\n }\n }",
"public int getFormat()\n {\n return format;\n }",
"public String getFormat() {\n Object ref = format_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n format_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getFormatString() {\n\t\treturn formatString;\n\t}",
"String getFormatter();",
"public RMFormat getFormat()\n {\n return getStyle().getFormat();\n }",
"Format internalGetFormat()\n {\n return doGetFormat();\n }",
"@VTID(8)\r\n java.lang.String format();",
"public final String getFormatString() {\n final Exp formatExp =\n (Exp) getProperty(Property.FORMAT_EXP_PARSED.name, null);\n if (formatExp == null) {\n return \"Standard\";\n }\n final Calc formatCalc = root.getCompiled(formatExp, true, null);\n final Object o = formatCalc.evaluate(this);\n if (o == null) {\n return \"Standard\";\n }\n return o.toString();\n }",
"public final AdFormat getFormat() {\n\t\treturn impl.getFormat();\n }",
"public Format getFormat()\n {\n return (formatControl == null) ? null : formatControl.getFormat();\n }",
"public com.google.protobuf.ByteString\n getFormatBytes() {\n Object ref = format_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n format_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getValueFormat();",
"public String getFormat() throws Exception {\n\t\treturn doc.selectSingleNode(\"/metadataFieldInfo/field/@metaFormat\").getText();\n\t}",
"public com.google.protobuf.ByteString\n getFormatBytes() {\n Object ref = format_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n format_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"NumberFormat getFormat() {\n\t\t\treturn fmt_result;\n\t\t}",
"public FormatOptions getFormatOptions() {\n return this.formatOptions;\n }",
"protected NumberFormat getFormat() {\n return this.format;\n }",
"protected Format doGetFormat()\n {\n return null;\n }",
"FileFormat getFormat();",
"public String getFormato() {\n\t\treturn formato;\n\t}",
"protected abstract String format();",
"public edu.umich.icpsr.ddi.FormatType getFormat()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FormatType target = null;\n target = (edu.umich.icpsr.ddi.FormatType)get_store().find_element_user(FORMAT$10, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public int getDisplayFormat() {\r\n return insertMode ? 0 : intValue(CONTACTS_DISPLAY_FORMAT);\r\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn toString(Locale.getDefault(Locale.Category.FORMAT));\n\t}",
"public String getLabelFormat() {\n\t\treturn this.labelFormat;\n\t}",
"public String getFormatDesign() {\n return (String)getAttributeInternal(FORMATDESIGN);\n }",
"public Class<F> getFormatType() {\n\t\treturn formatType;\n\t}",
"public String getPresentationFormat()\n {\n return (String) getProperty(PropertyIDMap.PID_PRESFORMAT);\n }",
"public String getFormatCode() {\n if (format == null) return \"MP4\";\n switch(format) {\n case \"Windows Media\": return \"WMV\";\n case \"Flash Video\": return \"FLV\";\n case \"MPEG-4\": return \"MP4\";\n case \"Matroska\": return \"MKV\";\n case \"AVI\": return \"AVI\";\n default: return \"MP4\";\n }\n }",
"public String formatTypeName()\r\n {\r\n return mFormatTypeName;\r\n }",
"public final static String getFormatAsString(int dbIdx, int format) {\n\t\tString formatStr = \"\";\n\n\n\t\tif (format > 0) {\n\t\t\tformatStr = getStandardConversion().getFormatAsString(dbIdx,format);\n\t\t} else {\n\t\t\tformatStr = \"\";\n\t\t}\n\n\t\treturn formatStr;\n\t}",
"public String getFormat()\r\n\t{\r\n\t\treturn (String) queryParams.get(FMT_JSON);\r\n\t}",
"public SurfaceFormat getFormat()\n\t{\n\t\treturn this._format;\n\t}",
"public String getSupportFormat() {\r\n\t\treturn supportFormat;\r\n\t}",
"@Field(0) \n\tpublic int format() {\n\t\treturn this.io.getIntField(this, 0);\n\t}",
"public ProjectTimeFormat getTimeFormat()\r\n {\r\n return (m_timeFormat);\r\n }",
"public RMFormat getFormat()\n{\n // Return format from first binding\n if(getBindingCount()>0)\n return (RMFormat)getBinding(0).getFormat();\n \n // Return null\n return null;\n}",
"@Field(0) \r\n\tpublic ValuedEnum<DXGI_FORMAT> format() {\r\n\t\treturn this.io.getEnumField(this, 0);\r\n\t}",
"public default String getFormat() {\n return Constants.FORMAT_JSON;\n }",
"public String getLogFormat() {\n return this.logFormat;\n }",
"com.google.protobuf.ByteString\n getFormatBytes();",
"public static String getFormatsPrettyPrint() {\n return formatsPrettyPrint;\n }",
"String documentFormat();",
"public AVT getFormat()\n {\n return m_format_avt;\n }",
"public SECSItemFormatCode getFormatCode()\n {\n return formatCode;\n }",
"private String getTimeFormat() {\r\n return mData.getConfiguration(\"x-labels-time-format\", \"yyyy-MM-dd\");\r\n }",
"String getContentFormat();",
"@SuppressWarnings(\"unchecked\")\n public <F> ConverterFormat<F> getFormat(Class<F> formatType) {\n ConverterFormat<F> format = (ConverterFormat<F>) formats.get(formatType);\n\n if (format == null) {\n throw new UnsupportedOperationException(\"The format \" + formatType + \" is not supported.\");\n }\n\n return format;\n }",
"public Format getBestFormat() {\n\t\tif (formats.contains(Format.JSON)) {\n\t\t\treturn Format.JSON;\n\t\t}\n\t\tif (formats.contains(Format.XML)) {\n\t\t\treturn Format.XML;\n\t\t}\n\t\treturn null;\n\t}",
"public String toString()\n {\n return toString((Format) null);\n }",
"DateFormat getDisplayDateFormat();",
"public static Format getTheirDefaultFormat()\n {\n return (Format) theirDefaultFormat.clone();\n }",
"public int getAlFormat()\n {\n return alFormat;\n }",
"String getOutputFormat();",
"private String inFormat() {\n File f = cfg.getReadFromFile();\n if (f != null) {\n return \" in format file \" + f.getPath();\n }\n return \" in format \" + StringUtils.defaultString(cfg.getName(), \"(unnamed)\");\n }",
"String getFormat(Object elementID) throws Exception;",
"private static java.text.SimpleDateFormat getFormatter() {\r\n\r\n\t\treturn getDBLayer().getDateFormatter();\r\n\t}",
"public String getFormatOfRecords() {\n\t\tString t = doc.get(\"formatofrecords\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"public String getGUITimestampFormat();",
"@UML(identifier=\"fileFormat\", obligation=MANDATORY, specification=ISO_19139)\n Format getFileFormat();",
"public String getWriteFormatDescription(int formatIndex);",
"@Override\n public String getFormatName() throws IOException {\n return input == null? myDefaultFormat.getName() : getInfo().getFormat().getName();\n }",
"public String getFormatByExtension(String fileExtenstion) throws DataServiceException{\r\n\t\tString format = \"\";\r\n\t\tformat = (String)queryForObject(\"document.query_format\",fileExtenstion);\r\n\t\treturn format;\r\n\t}",
"protected String getDataFormat() {\n return this.dataFormat;\n }",
"public String getPrintableFormat() {\n String output = new String(\"Articoli del gruppo \" + groupName + \":\\n\");\n for (int i = 0; i < list.size(); i++) {\n Article article = list.get(i);\n output += String.format(\"%2d %s\\n\",i,article.getPrintableFormat());\n }\n return output;\n }",
"public List<Format> getFormats();",
"public String getCurrentValueFormatted()\r\n {\r\n \t/*\r\n \t * If you look at the OpenXML spec or\r\n \t * STNumberFormat.java, you'll see there are some 60 number formats.\r\n \t * \r\n \t * Of these, we currently aim to support:\r\n \t * \r\n\t\t * decimal\r\n\t\t * upperRoman\r\n\t\t * lowerRoman\r\n\t\t * upperLetter\r\n\t\t * lowerLetter\r\n\t\t * bullet\r\n\t\t * none\r\n\t\t * \r\n\t\t * What about?\r\n\t\t * \r\n\t\t * ordinal\r\n\t\t * cardinalText\r\n\t\t * ordinalText\r\n \t * \r\n \t */\r\n \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL ) ) {\r\n \t\treturn this.counter.getCurrentValue().toString();\r\n \t}\r\n \t\r\n \tif (numFmt.equals( NumberFormat.NONE ) ) {\r\n \t\treturn \"\"; \t\t\r\n \t}\r\n\r\n \tif (numFmt.equals( NumberFormat.BULLET ) ) {\r\n \t\t\r\n \t\t// TODO - revisit how this is handled.\r\n \t\t// The code elsewhere for handling bullets\r\n \t\t// overlaps with this numFmt stuff.\r\n \t\treturn \"*\"; \t\t\r\n \t}\r\n \t \t\r\n \tint current = this.counter.getCurrentValue().intValue();\r\n \t\r\n \tif (numFmt.equals( NumberFormat.UPPER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanUpper converter = new NumberFormatRomanUpper(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_ROMAN ) ) { \t\t\r\n \t\tNumberFormatRomanLower converter = new NumberFormatRomanLower(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.LOWER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \tif (numFmt.equals( NumberFormat.UPPER_LETTER ) ) { \t\t\r\n \t\tNumberFormatLowerLetter converter = new NumberFormatLowerLetter(); \r\n \t\treturn converter.format(current).toUpperCase();\r\n \t} \t\r\n \tif (numFmt.equals( NumberFormat.DECIMAL_ZERO ) ) { \t\t\r\n \t\tNumberFormatDecimalZero converter = new NumberFormatDecimalZero(); \r\n \t\treturn converter.format(current);\r\n \t}\r\n \t\r\n \tlog.error(\"Unhandled numFmt: \" + numFmt.name() );\r\n return this.counter.getCurrentValue().toString();\r\n }",
"public String formatStat() {\n return statUse.formatNumerator();\n }",
"@Override\n public com.gensym.util.Symbol getFormatType() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.FORMAT_TYPE_);\n return (com.gensym.util.Symbol)retnValue;\n }",
"void format();",
"public void setFormat(String fmt)\n {\n format = fmt;\n }",
"public Long getReportFormat() {\n return this.reportFormat;\n }",
"public Format getFormat(String bookmark, Object fieldId) {\n\t\t\treturn null;\n\t\t}",
"public String getFileFormat()\r\n\t{\r\n\t\treturn this.getSerializer().getFileFormat();\r\n\t}",
"public static Format getFormat(int format) throws IOException {\r\n\r\n switch (format) {\r\n case Order.FORMAT_FLAT: return new FormatFlat();\r\n case Order.FORMAT_TREE: return new FormatTree();\r\n case Order.FORMAT_NORITSU: return new FormatNoritsu();\r\n case Order.FORMAT_KONICA: return new FormatKonica();\r\n case Order.FORMAT_FUJI: return new FormatFuji();\r\n case Order.FORMAT_FUJI_NEW: return new FormatFujiNew();\r\n case Order.FORMAT_DLS: return new FormatDLSStub();\r\n case Order.FORMAT_KODAK: return new FormatKodak();\r\n case Order.FORMAT_AGFA: return new FormatAgfa();\r\n case Order.FORMAT_LUCIDIOM: return new FormatLucidiom();\r\n case Order.FORMAT_PIXEL: return new FormatPixel();\r\n case Order.FORMAT_DP2: return new FormatDP2();\r\n case Order.FORMAT_BEAUFORT: return new FormatBeaufort();\r\n case Order.FORMAT_DKS3: return new FormatDKS3();\r\n case Order.FORMAT_DIRECT_PDF: return new FormatDirectPDF();\r\n case Order.FORMAT_ZBE: return new FormatZBE();\r\n case Order.FORMAT_FUJI3: return new FormatFuji3();\r\n case Order.FORMAT_HP: return new FormatHP();\r\n case Order.FORMAT_XEROX: return new FormatXerox();\r\n case Order.FORMAT_DIRECT_JPEG: return new FormatDirectJPEG();\r\n case Order.FORMAT_BURN: return new FormatBurn();\r\n case Order.FORMAT_HOT_FOLDER: return new FormatHotFolder();\r\n case Order.FORMAT_DNP: return new FormatDNP();\r\n case Order.FORMAT_PURUS: return new FormatPurus();\r\n case Order.FORMAT_RAW_JPEG: return new FormatRawJPEG();\r\n default:\r\n throw new IOException(Text.get(Format.class,\"e1\"));\r\n }\r\n }",
"public String getFormatName()\n/* */ {\n/* 465 */ if (getClass() == JsonFactory.class) {\n/* 466 */ return \"JSON\";\n/* */ }\n/* 468 */ return null;\n/* */ }",
"public ImageFormatProperties getFormat() {\n return this.format;\n }",
"protected int getFMT() {\n\t\treturn this.itemCount;\n\t}",
"public AudioFormat getFormat() throws AudioSourceException {\n if (format==null){\n AudioInputStream dummyStream=getAudioInputStream();\n try {\n dummyStream.close();\n } catch (IOException e) {\n throw new AudioSourceException(e);\n }\n }\n \n\t\treturn format;\n\t}",
"private RouteFormatter getTravelFormat(){\n \t\n \tint format = jComboBoxFormat.getSelectedIndex();\n \tif(format == 0){\n \t\treturn new DrivingRouteFormatter();\n \t}else if(format == 1){\n \t\treturn new WalkingRouteFormatter();\n \t}\n \treturn null;\n }",
"public String getFormatName() {\n\t\tString name = getName();\n\t\tif (name.startsWith(SpotlessPlugin.EXTENSION)) {\n\t\t\tString after = name.substring(SpotlessPlugin.EXTENSION.length());\n\t\t\tif (after.endsWith(SpotlessPlugin.CHECK)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.CHECK.length()).toLowerCase(Locale.US);\n\t\t\t} else if (after.endsWith(SpotlessPlugin.APPLY)) {\n\t\t\t\treturn after.substring(0, after.length() - SpotlessPlugin.APPLY.length()).toLowerCase(Locale.US);\n\t\t\t}\n\t\t}\n\t\treturn name;\n\t}",
"private TimeZoneFormat tzFormat() {\n\t\tif (tzFormat == null) {\n\t\t\tinitializeTimeZoneFormat(false);\n\t\t}\n\t\treturn tzFormat;\n\t}",
"public DatasetStorageFormat format() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().format();\n }"
]
| [
"0.84338945",
"0.84338945",
"0.84338945",
"0.81713617",
"0.81713617",
"0.81713617",
"0.8152532",
"0.81441575",
"0.81256",
"0.8124774",
"0.81236804",
"0.8100871",
"0.8078563",
"0.78656363",
"0.7771256",
"0.7724739",
"0.76907814",
"0.7689839",
"0.7684723",
"0.7585556",
"0.7583025",
"0.7422023",
"0.7396343",
"0.73460895",
"0.7324943",
"0.7308869",
"0.7275034",
"0.72299176",
"0.7215041",
"0.71992505",
"0.7167527",
"0.71564615",
"0.71355796",
"0.7087958",
"0.7076361",
"0.70414674",
"0.7010086",
"0.6999706",
"0.69824666",
"0.6972709",
"0.6963718",
"0.69249344",
"0.68909043",
"0.6858246",
"0.6855851",
"0.6825448",
"0.68247056",
"0.680227",
"0.67786455",
"0.6755029",
"0.67540514",
"0.6711525",
"0.6699504",
"0.6695582",
"0.6678453",
"0.6656279",
"0.65782976",
"0.6544905",
"0.6495758",
"0.64761794",
"0.64740545",
"0.6462526",
"0.64616096",
"0.6458511",
"0.6431468",
"0.64251673",
"0.6413529",
"0.63843256",
"0.63827926",
"0.6375064",
"0.6373522",
"0.6345172",
"0.63175374",
"0.6307359",
"0.63057524",
"0.6267696",
"0.6242029",
"0.6240636",
"0.6226832",
"0.62261736",
"0.62089795",
"0.62053037",
"0.6174285",
"0.6174104",
"0.61731267",
"0.6171378",
"0.6158103",
"0.613376",
"0.6116924",
"0.6111676",
"0.61051285",
"0.6102939",
"0.609836",
"0.60941184",
"0.6088069",
"0.6080179",
"0.6065667",
"0.6053208",
"0.60456604",
"0.6041029"
]
| 0.8073615 | 13 |
Get the number of transactions, nicely formatted. | public String getNumTransactionsFormatted() {
if (numTransactions == null) { return ""; }
return new DecimalFormat("##,###,##0").format(numTransactions);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getTransactionsCount();",
"public final String getCount() {\n return String.valueOf(count);\n }",
"public int getTxnCount() {\n return txnCount.get();\n }",
"public Integer getTotalNumberOfTransactionLines() {\n return totalNumberOfTransactionLines;\n }",
"public long getAllTransactionsCount(){\n\t\tString sql = \"SELECT COUNT(*) FROM \" + TransactionEntry.TABLE_NAME;\n\t\tSQLiteStatement statement = mDb.compileStatement(sql);\n return statement.simpleQueryForLong();\n\t}",
"@java.lang.Override\n public int getTransactionsCount() {\n return instance.getTransactionsCount();\n }",
"public int getTotalTransactionsCount(){\n String queryCount = \"SELECT COUNT(*) FROM \" + TransactionEntry.TABLE_NAME +\n \" WHERE \" + TransactionEntry.COLUMN_RECURRENCE_PERIOD + \" =0\";\n Cursor cursor = mDb.rawQuery(queryCount, null);\n int count = 0;\n if (cursor != null){\n cursor.moveToFirst();\n count = cursor.getInt(0);\n cursor.close();\n }\n return count;\n }",
"@java.lang.Override\n public int getTransactionsCount() {\n return transactions_.size();\n }",
"public String getCount() {\r\n\t\treturn this.count;\r\n\t}",
"public String get_count() {\n\t\treturn count;\n\t}",
"public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }",
"int getActAmountCount();",
"int getTotalDepositCount();",
"public int getNumTransactionsInBlock() {\r\n return numTransactionsInBlock;\r\n }",
"public String countPayments() throws IOException{\r\n try{\r\n Integer.parseInt(getActualSheet().getName());\r\n }catch(NumberFormatException ex){\r\n return \"ERROR\";\r\n }\r\n return \"Balance: \" + getActualSheet().getCellAt(\"B3\").getTextValue() + \"\\n\";\r\n }",
"public java.lang.String getErrorAffectedTransactionCount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(ERRORAFFECTEDTRANSACTIONCOUNT$6);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"String getCountInt();",
"public int listAmount() {\n return count;\n }",
"int getTransactionNum();",
"@Override\n\tpublic void noOfTransactions() {\n\t\t\n\t}",
"private String marketBuyAmounts() {\r\n\t\tint[] amounts= market.getBuyAmounts();\r\n\t\tString out = \"Buy Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"public static Integer getTransactionNumber() {\n\t\tRandom r = new Random(System.currentTimeMillis());\n\t\treturn r.nextInt(100000) * 00001;\n\n\t}",
"public org.apache.xmlbeans.XmlString xgetErrorAffectedTransactionCount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(ERRORAFFECTEDTRANSACTIONCOUNT$6);\r\n return target;\r\n }\r\n }",
"public int getTotalCount() {\n return totalCount;\n }",
"int getTotalCount();",
"public long getTxnSize() {\n return snapLog.getTotalLogSize();\n }",
"public int getTransac(){\n System.out.println(\"There are altogether \" + transac + \" transactions for \" + this);\n return transac;\n }",
"String getCountString(TransformerImpl transformer, int sourceNode)\n throws TransformerException\n {\n\n long[] list = null;\n XPathContext xctxt = transformer.getXPathContext();\n CountersTable ctable = transformer.getCountersTable();\n\n if (null != m_valueExpr)\n {\n XObject countObj = m_valueExpr.execute(xctxt, sourceNode, this);\n //According to Errata E24\n double d_count = java.lang.Math.floor(countObj.num()+ 0.5);\n if (Double.isNaN(d_count)) return \"NaN\";\n else if (d_count < 0 && Double.isInfinite(d_count)) return \"-Infinity\";\n else if (Double.isInfinite(d_count)) return \"Infinity\";\n else if (d_count == 0) return \"0\";\n else{\n long count = (long)d_count;\n list = new long[1];\n list[0] = count; \n }\n }\n else\n {\n if (Constants.NUMBERLEVEL_ANY == m_level)\n {\n list = new long[1];\n list[0] = ctable.countNode(xctxt, this, sourceNode);\n }\n else\n {\n NodeVector ancestors =\n getMatchingAncestors(xctxt, sourceNode,\n Constants.NUMBERLEVEL_SINGLE == m_level);\n int lastIndex = ancestors.size() - 1;\n\n if (lastIndex >= 0)\n {\n list = new long[lastIndex + 1];\n\n for (int i = lastIndex; i >= 0; i--)\n {\n int target = ancestors.elementAt(i);\n\n list[lastIndex - i] = ctable.countNode(xctxt, this, target);\n }\n }\n }\n }\n\n return (null != list)\n ? formatNumberList(transformer, list, sourceNode) : \"\";\n }",
"public String countsOutput() throws IOException,ArrayIndexOutOfBoundsException{\r\n String payColor = \"green\";\r\n String payments = getActualSheet().getCellAt(\"B3\").getTextValue(); \r\n \r\n \r\n if(payments.contains(\"-\")){\r\n payColor = \"red\";\r\n }\r\n return \"<html>\" + countIncomes()+\"<br/>\"+countExpense() +\"<br/>\"\r\n + \"<font color=\"+payColor+\">\"+countPayments()+\"</font></html>\";\r\n \r\n }",
"public int getTransactionsCount(long accountId){\n\t\tCursor cursor = fetchAllTransactionsForAccount(accountId);\n\t\tint count = 0;\n\t\tif (cursor == null)\n\t\t\treturn count;\n\t\telse {\n\t\t\tcount = cursor.getCount();\n\t\t\tcursor.close();\n\t\t}\n\t\treturn count;\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}",
"public Short getTransactrateCount() {\n return transactrateCount;\n }",
"public String countIncomes() throws IOException{ \r\n return \"Incomes: \" + getActualSheet().getCellAt(\"B1\").getTextValue() + \"\\n\";\r\n }",
"public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}",
"int getNumOfBuyOrders();",
"public int getActAmountCount() {\n if (actAmountBuilder_ == null) {\n return actAmount_.size();\n } else {\n return actAmountBuilder_.getCount();\n }\n }",
"public int getTransactionStateCount() {\n return transactionState_.size();\n }",
"private int getNumberOfCoffees() {\n return Integer.parseInt(((TextView)findViewById(R.id.quantity_text_view)).getText().toString());\n }",
"public String getVerticesCount() {\n long res = 0;\n Iterator<Vertex> itty = g.vertices();\n Vertex v;\n while (itty.hasNext()) {\n v = itty.next();\n res++;\n }\n return Long.toString(res);\n }",
"public long getMaxTransactions() {\n\t\treturn (maxTrans);\n\t}",
"int getFundsCount();",
"int getFundsCount();",
"public int count() {\n\t\treturn sm.selectOne(\"com.lanzhou.entity.Longpay.count\");\n\t}",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"public int getTransmissionCount(){\n return networkTransmitCount + 1;\n }",
"public Long count(DatasetItem dataset) {\n\n logTrace(\"Getting Number of Transactions in Dataset with query :: \" + COUNT_QUERY);\n\n Long numResults = (Long)getHibernateTemplate().find(\n COUNT_QUERY, dataset.getId()).get(0);\n return numResults;\n }",
"int getRefundToCount();",
"public int getTotalCoins() {\r\n\t\treturn goods.get(Resource.COIN);\r\n\t}",
"@Override\n\tpublic int getRowCount() {\n\t\ttry\n\t\t{\n\t\t\tUint256 retval = contractBean.getContract().getCount().get();\n\t\t\treturn retval.getValue().intValue();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.getMessage();\n\t\t}\n\t\t// If something goes wrong, return 1\n\t\treturn 1;\n\t}",
"public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}",
"public long getTotalCount() {\n return _totalCount;\n }",
"@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getCount() {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBCursor cursor = coll.find(QueryCriteria.getByUser(getUserUuid()));\n\t\t\n\t\treturn \"{count: \" + Integer.valueOf(cursor.count()).toString() + \"}\";\n\t}",
"public String getNotificationCount() {\n\t\treturn element(\"li_notificationCount\").getText();\n\t}",
"public int getActAmountCount() {\n return actAmount_.size();\n }",
"public Long getTotalCount() {\r\n return totalCount;\r\n }",
"public int count() {\n\t Query count = getEntityManager().createQuery(\"select count(u) from \" + getEntityClass().getSimpleName() + \" u\");\n\t return Integer.parseInt(count.getSingleResult().toString());\n\t }",
"public int getToalCoins()\n\t{\n\t\treturn CoinCount;\n\t}",
"public Long getTotalCount() {\n\t\treturn this.totalCount;\n\t}",
"public int countNumberClientsTotal() {\n\t\tint counter = 0;\n\t\tfor(int number : numberClients.values())\n\t\t\tcounter += number;\n\t\treturn counter;\n\t}",
"Long getCountTotalRecords(Long transmissionId);",
"public int getTotalCount() {\r\n return root.getTotalCount();\r\n }",
"public String getTotalDeposits(){\n double sum = 0;\n for(Customer record : bank.getName2CustomersMapping().values()){\n for(Account acc: record.getAccounts()){\n sum += acc.getOpeningBalance();\n }\n }\n return \"Total deposits: \"+sum;\n }",
"public int get_count();",
"public int numberOfTires() {\n int tires = 4;\n return tires;\n }",
"@ApiModelProperty(value = \"Count of views, formatted\")\r\n public String getViewCountFormatted() {\r\n return viewCountFormatted;\r\n }",
"public int periodCount() {\n\t\treturn message.getPeriodCount();\n\t}",
"public int getNumLocalTransactions()\n {\n return tx2gtxMap.size();\n }",
"public int getNuevoNumTransaccionBR() throws BaseDeDatosExcepcion, ConexionExcepcion {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNuevoNumTransaccionBR() - start\");\n\t\t}\n\t\t\n\t\tint result = 0;\n\t\t\n\t\tincrementarNumTransBR();\n\t\tresult = numTransaccionBR;\n\t\t\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNuevoNumTransaccionBR() - end\");\n\t\t}\n\t\treturn result;\n\t}",
"public int bookCount() {\r\n\t\tint rowCount = jdbcTemplate.queryForInt(\"select count(1) from persone\");\r\n\t\treturn rowCount;\r\n\t}",
"@Transactional\r\n\tpublic Integer countBudgetAccounts() {\r\n\t\treturn ((Long) budgetAccountDAO.createQuerySingleResult(\"select count(o) from BudgetAccount o\").getSingleResult()).intValue();\r\n\t}",
"public long getCount()\n\t{\n\t\treturn count;\n\t}",
"public Integer getTotalItemCount() {\n return totalItemCount;\n }",
"public int getNumberOfCoins() {\n return coins;\n }",
"public int getNuevoNumTransaccion() throws BaseDeDatosExcepcion, ConexionExcepcion {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNuevoNumTransaccion() - start\");\n\t\t}\n\t\t\n\t\tint result = 0;\n\t\t\n\t\tif (Sesion.impresoraFiscal) {\n\t\t\tif (!numTrBloqueado) {\n\t\t\t\tresult = numTransaccion + 1;\n\t\t\t\tnumTrBloqueado = true;\n\t\t\t} else {\n\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\tlogger\n\t\t\t\t\t\t\t.error(\"getNuevoNumTransaccion() - Estado ilegal - Un número de transacción se encuentra bloqueado en este momento\");\n\t\t\t\t}\n\n\t\t\t\tthrow new IllegalStateException(\"Ya se ha bloqueado un numero \" +\n\t\t\t\t\t\t\"de transacción\");\n\t\t\t}\n\t\t} else {\n\t\t\tincrementarNumTrans();\n\t\t\tresult = numTransaccion;\n\t\t}\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"getNuevoNumTransaccion() - end\");\n\t\t}\n\t\treturn result;\n\t}",
"public int countAll() {\n\t\treturn transactionDAO.countAll();\n\t}",
"int getReaultCount();",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"public Integer getCount() {\n\t\treturn count;\n\t}",
"int getMessageCount();",
"int getMessageCount();",
"int getMessageCount();",
"int getMessageCount();",
"int getMessageCount();",
"public String numTasks() {\n return \"Now you have \" + USER_TASKS.size() + \" tasks in the list.\";\n }",
"public int countTransmission(){\n\t\treturn this.curPackets.size();\n\t}",
"private int getTotalPlayerCount() {\n String baseUrl = \"https://www.runescape.com/player_count.js?varname=iPlayerCount\";\n String url = baseUrl + \"&callback=jQuery33102792551319766081_1618634108386&_=\" + System.currentTimeMillis();\n try {\n String response = new NetworkRequest(url, false).get().body;\n Matcher matcher = Pattern.compile(\"\\\\(\\\\d+\\\\)\").matcher(response);\n if(!matcher.find()) {\n throw new Exception();\n }\n return Integer.parseInt(response.substring(matcher.start() + 1, matcher.end() - 1));\n }\n catch(Exception e) {\n return 0;\n }\n }",
"public int _count() {\n return _count(\"\");\n }",
"public int getTotalProcessTransEntryInArchiveZip()\n {\n ConfigurationStore configStore = ConfigurationStore.getInstance();\n String totalProcessTransInZip = configStore.getProperty(IISATProperty.CATEGORY, IISATProperty.TOTAL_PROCESS_TRANS_IN_ARCHIVE_FILE, null);\n if(totalProcessTransInZip != null)\n {\n return Integer.parseInt(totalProcessTransInZip);\n }\n else\n {\n return 1000;\n }\n }",
"public String getCounter() {\n counter = Integer.valueOf(counterInt++).toString();\n return counter;\n }",
"public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}",
"public int getHistoryCSCount() {\n\n // 1. build the query\n String countQuery = \"SELECT * FROM \" + TABLE_NAME;\n\n // 2. execute the query to search whether the record exists\n Cursor cursor = db.rawQuery(countQuery, null);\n\n // 2. get the count\n int count = cursor.getCount();\n\n cursor.close();\n return count;\n }",
"public int getTotalReturnCount(){\n return totalReturnCount;\n }",
"public long getRecordWrittern() {\n long count = 0;\n for (OutputStats out : outputs) {\n long rec = out.getNumberRecords();\n if (rec > 0) count += rec;\n }\n return count;\n }",
"public int getCoinCount() {\r\n\t\treturn this.coinCount;\r\n\t}",
"public String reportTransaction() {\n String verb = type.equals(\"buy\") ? \"bought\" : \"sold\";\n return volume + \" stocks of \" + symbol + \" \" + verb + \" @\" + price +\n \" USD (total value \" + String.format(\"%.2f\", getTransactionAmount()) + \" USD).\";\n }",
"public int getCoinCount() {\n return coinCount;\n }",
"public int getTotRuptures();",
"public long getCount() {\n long count = 0L;\n \n for (GTSEncoder encoder: chunks) {\n if (null != encoder) {\n count += encoder.getCount();\n }\n }\n \n return count;\n }",
"@Override\n public String getTotalSavings() {\n\n setLogString(\"Get total Savings Amount\", true, CustomLogLevel.HIGH);\n final String savingsValue = getElement(getDriver(), By.className(SAVINGS_DOLLARS),\n TINY_TIMEOUT).getText();\n setLogString(\"Total Savings :\" + savingsValue, true, CustomLogLevel.LOW);\n return savingsValue;\n }"
]
| [
"0.7366654",
"0.6946589",
"0.674464",
"0.66672236",
"0.6637364",
"0.66101354",
"0.6521809",
"0.6395391",
"0.63619065",
"0.6324699",
"0.62602746",
"0.6231586",
"0.6191131",
"0.6179909",
"0.61756456",
"0.6091359",
"0.6075146",
"0.6074506",
"0.6060418",
"0.60343105",
"0.6020791",
"0.6020208",
"0.60138035",
"0.59710044",
"0.5914587",
"0.5897676",
"0.5865531",
"0.5862782",
"0.58614135",
"0.58441335",
"0.5832033",
"0.5832033",
"0.5794641",
"0.57841045",
"0.5780486",
"0.577379",
"0.57698584",
"0.5758248",
"0.5751285",
"0.57499516",
"0.5747475",
"0.5744563",
"0.5744563",
"0.57188463",
"0.5715891",
"0.57146704",
"0.5693987",
"0.5691609",
"0.567443",
"0.5673429",
"0.56673235",
"0.5667185",
"0.56615126",
"0.566012",
"0.56520236",
"0.5642533",
"0.56212527",
"0.56190264",
"0.56027293",
"0.5601407",
"0.55941254",
"0.5591942",
"0.55898434",
"0.5585663",
"0.5583358",
"0.5579705",
"0.5579545",
"0.55678815",
"0.5566567",
"0.55656266",
"0.5558274",
"0.5555968",
"0.55529153",
"0.554704",
"0.55374676",
"0.5536626",
"0.5532816",
"0.5531686",
"0.5531686",
"0.5525069",
"0.5525069",
"0.5525069",
"0.5525069",
"0.5525069",
"0.5524626",
"0.5521697",
"0.5520981",
"0.5518529",
"0.5512159",
"0.55092806",
"0.5499357",
"0.5492068",
"0.5488093",
"0.54879224",
"0.54869324",
"0.5483866",
"0.5480407",
"0.5475526",
"0.5472762",
"0.546871"
]
| 0.7611254 | 0 |
Get display string for the last updated time in the number of seconds/minutes/etc ago. | public String getLastUpdateString() {
return getLastUpdateString(lastUpdatedTime);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getLastUpdateString(Date time) {\r\n if (time == null) {\r\n return \"\";\r\n }\r\n return getAmountOfTime(time) + \" ago\";\r\n }",
"public String getLastUpdatedString() {\n return lastUpdated.toString();\n }",
"public String getLastmodifiedTimeView() {\r\n if (lastmodifiedTime != null) {\r\n lastmodifiedTimeView = DateUtils.dateToStr(lastmodifiedTime, DateUtils.YMD_DASH);\r\n }\r\n return lastmodifiedTimeView;\r\n }",
"String timeModified();",
"long getLastUpdatedTime();",
"public String getLastEditTime() {\n return editedTimeList.get(editedTimeList.size() - 1);\n }",
"public java.lang.String getLastChangedTime() {\n\t\treturn lastChangedTime;\n\t}",
"public String getLastUpdate() {\n return lastUpdate;\n }",
"public String getLastUpdated() {\n return lastUpdated;\n }",
"private void updateRefreshTime(){\n\t\t\trefreshLabel.setText(\"Last Updated: \" + (new Date()).toString());\n\t\t}",
"public String lastupdated() throws Exception{\r\n\t\ttry {\r\n\t\t\telement = driver.findElement(lastupdated);\r\n\t\t\tStr_lastupdated = element.getText();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new Exception(\"LAST UPDATED NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t}\r\n\t\treturn Str_lastupdated;\r\n\t}",
"private String timeToAgo(Long timestamp){\n\n\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n Log.d(TAG, \"timeToAgo:TimeZone :\"+TimeZone.getTimeZone(\"GMT\"));\n long time = cal.getTimeInMillis();\n Log.d(TAG, \"timeToAgo: time with cal : \"+time);\n long curTime = System.currentTimeMillis() / 1000 + 32400;\n Log.d(TAG, \"timeToAgo: curTime : \" + curTime);\n long diffTime = (curTime - timestamp); //1000으로 나눠주는 이유는 millisecond가 아닌 second만 신경을 써줄 것이므로\n Log.d(TAG, \"timeToAgo: diffTime \" + diffTime);\n long hour =diffTime/3600;\n Log.d(TAG, \"timeToAgo: hour \"+ hour);\n Log.d(TAG, \"timeToAgo: timestamp : \"+timestamp);\n diffTime =diffTime%3600;\n long min = diffTime/60;\n long sec = diffTime%60;\n\n String ret = \"\";\n\n\n if(hour > 24){\n ret = new SimpleDateFormat(\"MM/dd\").format(new Date(timestamp));\n\n if (hour>8760){\n ret = new SimpleDateFormat(\"MM/dd/yyyy\").format(new Date(timestamp));\n }\n }\n else if(hour > 0){\n ret = hour+\" hours ago\";\n }\n else if(min > 0){\n ret = min+\" mins ago\";\n }\n else if(sec > 0){\n ret = \"just now!\";\n }\n else{\n ret = new SimpleDateFormat(\"MM/dd\").format(new Date(timestamp));\n }\n\n return ret;\n }",
"public String getUpdated() {\n if(updated == null)\n return \"\";\n return updated.toString();\n }",
"public static String getPrintToTextTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return sdf.format(System.currentTimeMillis());\n }",
"public String getLastUpdTime() {\n return lastUpdTime;\n }",
"public String getTime()\r\n\t{\r\n\t\treturn displayString;\r\n\t}",
"public String getUpdateTime() {\r\n return updateTime;\r\n }",
"public String getCacheLastUpdated() {\n return cacheLastUpdated;\n }",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }",
"public String getUpdateTime() {\n return updateTime;\n }",
"public String getUpdateTime() {\n return updateTime;\n }",
"public String getUpdateTime() {\n return updateTime;\n }",
"public String getUpdateTime() {\n return updateTime;\n }",
"private String getFinalTimeString() {\n double fltTime = (double)(lngTimelineDataAmountInRmsFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime);\n }",
"public String getCreatedAtString() {\n String createdAt = \"\";\n\n // get the time in millis for the created at\n long createdDate = getCreatedAt().getTime();\n\n // get the time in millis for now\n long currentDate = new Date().getTime();\n\n int secondsBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.SEC);\n\n // get the number of minutes in between\n int minutesBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.MIN);\n\n // get the number of hours in between\n int hoursBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.HOUR);\n\n // if less than 1 minute ago return \"minutes ago\n if (secondsBetween < 60) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.SECOND_IN_MILLIS).toString();\n }\n\n // if less than 1 hour ago return \"minutes ago\n if (minutesBetween >= 1 && minutesBetween < 60) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.MINUTE_IN_MILLIS).toString();\n }\n\n // if less than 24 hours ago or greater than 1 return \"hours ago\"\n if (hoursBetween >= 1 && hoursBetween < 24) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.HOUR_IN_MILLIS).toString();\n }\n\n // if more than 24 hours ago return \"days ago\"\n if (hoursBetween >= 24) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.DAY_IN_MILLIS).toString();\n }\n\n return createdAt;\n }",
"private static String getPrettyTimeDiffInMinutes(Calendar c1, Calendar c2) {\n\t\tif (c1.getTimeZone() == null || c2.getTimeZone() == null \n\t\t\t\t|| c1.getTimeZone().getRawOffset() != c2.getTimeZone().getRawOffset()) {\n\t\t\treturn \"N.A.\";\n\t\t}\n\t\telse {\n\t\t\t//Log.d(TAG, \"c2: \" + c2 + \", c1: \" + c1);\n\t\t\tlong diff = c2.getTimeInMillis() - c1.getTimeInMillis();\n\t\t\t\n\t\t\tif (diff / Utils.DAY_SCALE != 0) {\n\t\t\t\treturn \"many days ago\";\n\t\t\t}\n\t\t\telse if (diff / Utils.HOUR_SCALE != 0) {\n\t\t\t\treturn \"many hours ago\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn (diff / Utils.MINUTE_SCALE) + \" min(s) ago\";\n\t\t\t}\n\t\t}\n\t}",
"@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();",
"public String getUpdateTime() {\n\t\t\treturn updateTime;\n\t\t}",
"private String getTimingString() {\n return DateTimeHandler.STANDARD_DATETIME_FORMAT.format(deadline);\n }",
"public String getTimeString()\n\t{\n\t\treturn TimeUtils.getTimeString(this.timesCurrentMillis);\n\t}",
"public String getRelativeTimeAgo() {\n\n String twitterFormat = \"EEE MMM dd HH:mm:ss ZZZZZ yyyy\";\n SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH);\n sf.setLenient(true);\n\n String relativeDate = \"\";\n try {\n long dateMillis = sf.parse(created_at).getTime();\n relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis,\n System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS).toString();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return relativeDate;\n }",
"public java.lang.String getDate_last_update() {\n return date_last_update;\n }",
"public String getModifiedDateTimeString() {\n try {\n return DateFormat.getDateTimeInstance(\n DateFormat.SHORT, DateFormat.SHORT).format(modified);\n } catch (NullPointerException e) {\n }\n return (\"\");\n }",
"public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }",
"long getSince();",
"public String getModifiedString() {\n try {\n return DateFormat.getDateInstance(DateFormat.SHORT).format(modified);\n } catch (NullPointerException e) {\n }\n return (\"\");\n }",
"public static String getElapsedTimeFromNow(Date date) {\n long duration = new Date().getTime() - date.getTime();\n\n long diffInMinutes = TimeUnit.MILLISECONDS.toMinutes(duration);\n long diffInHours = TimeUnit.MILLISECONDS.toHours(duration);\n long diffInDays = TimeUnit.MILLISECONDS.toDays(duration);\n long diffInMonths = diffInDays / 30;\n long diffInYears = diffInMonths / 365;\n\n if (diffInYears > 0) {\n if (diffInYears == 1) return Long.toString(diffInYears) + \" year ago\";\n return Long.toString(diffInYears) + \" years ago\";\n }\n\n else if (diffInMonths > 0) {\n if (diffInMonths == 1) return Long.toString(diffInMonths) + \" month ago\";\n return Long.toString(diffInMonths) + \" months ago\";\n }\n\n else if (diffInDays > 0) {\n if (diffInDays == 1) return Long.toString(diffInDays) + \" day ago\";\n return Long.toString(diffInDays) + \" days ago\";\n }\n\n else if (diffInHours > 0) {\n if (diffInHours == 1) return Long.toString(diffInHours) + \" hour ago\";\n return Long.toString(diffInHours) + \" hours ago\";\n }\n\n else if (diffInMinutes > 0) {\n if (diffInMinutes == 1) return Long.toString(diffInMinutes) + \" minute ago\";\n return Long.toString(diffInMinutes) + \" minutes ago\";\n }\n\n else return \"Just now\";\n }",
"static String getRefreshDate(){\n if (updateTime == null){\n updateTime = \"ERROR RETRIEVING CURRENT RATES\";\n }\n return conversionRates.get(\"date\").getAsString() + \" \" + updateTime;\n\n }",
"public com.google.protobuf.Timestamp getLastRefreshTime() {\n if (lastRefreshTimeBuilder_ == null) {\n return lastRefreshTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : lastRefreshTime_;\n } else {\n return lastRefreshTimeBuilder_.getMessage();\n }\n }",
"public String getLastUpdateDate() {\r\n\t\treturn lastUpdateDate;\r\n\t}",
"private String getCurrentTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n Date date = new Date();\n return dateFormat.format(date);\n }",
"public String getUpdTime() {\n return updTime;\n }",
"public String getLastUpdateUser() {\n return lastUpdateUser;\n }",
"public String getLastUpdateUser() {\n return lastUpdateUser;\n }",
"public long getLastUpdateTs() {\n return lastUpdateTs;\n }",
"private String currentTime()\t{\n\t\tCalendar c = Calendar.getInstance(); \n\n\t\tString seconds;\n\t\tif(c.get(Calendar.SECOND) < 10)\t{\n\t\t\tseconds = \"0\"+Integer.toString(c.get(Calendar.SECOND));\n\t\t} else {\n\t\t\tseconds = Integer.toString(c.get(Calendar.SECOND));\n\t\t}\n\n\t\tString minutes;\n\t\tif(c.get(Calendar.MINUTE) < 10)\t{\n\t\t\tminutes = \"0\"+Integer.toString(c.get(Calendar.MINUTE));\n\t\t} else {\n\t\t\tminutes = Integer.toString(c.get(Calendar.MINUTE));\n\t\t}\n\n\t\tString hours;\n\t\tif(c.get(Calendar.HOUR_OF_DAY) < 10)\t{\n\t\t\thours = \"0\"+Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\t} else {\n\t\t\thours = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\t}\n\n\t\tString day;\n\t\tif(c.get(Calendar.DATE) < 10)\t{\n\t\t\tday = \"0\"+Integer.toString(c.get(Calendar.DATE));\n\t\t} else {\n\t\t\tday = Integer.toString(c.get(Calendar.DATE));\n\t\t}\n\n\t\tString month;\n\t\tif((c.get(Calendar.MONTH)+1) < 10)\t{\n\t\t\tmonth = \"0\"+Integer.toString(c.get(Calendar.MONTH)+1);\n\t\t} else {\n\t\t\tmonth = Integer.toString(c.get(Calendar.MONTH)+1);\n\t\t}\n\n\t\tString year;\n\t\tif(c.get(Calendar.YEAR) < 10)\t{\n\t\t\tyear = \"0\"+Integer.toString(c.get(Calendar.YEAR));\n\t\t} else {\n\t\t\tyear = Integer.toString(c.get(Calendar.YEAR));\n\t\t}\n\n\t\treturn day+\"/\"+month+\"/\"+year + \" \"+hours+\":\"+minutes+\":\"+seconds;\t\n\t}",
"private String getTimeDifference(long actualTime) {\n\t\tlong seconds = actualTime % (1000 * 60);\n\t\tlong minutes = actualTime / (1000 * 60);\n\n\t\tString result = null;\n\n\t\tif (minutes < 10) {\n\t\t\tresult = \"0\" + minutes + \":\";\n\t\t} else {\n\t\t\tresult = minutes + \":\";\n\t\t}\n\n\t\tif (seconds < 10) {\n\t\t\tresult += \"0\" + seconds;\n\t\t} else {\n\t\t\tString sec = seconds + \"\";\n\t\t\tresult += sec.substring(0, 2);\n\t\t}\n\n\t\treturn result;\n\t}",
"public String getLastupdateby() {\n return lastupdateby;\n }",
"public static String getLastLocationTime(ShortLocation location) {\n if (location == null) {\n return \"no location detected\";\n } else {\n return converTimeToReadable(location.getTime());\n // new SimpleDateFormat(\"dd.MM.yyyy HH:mm\").format(new Date(location.getTime()));\n }\n }",
"public String getCurrentDateAndTime(){\n return dateTimeFormatter.format(current);\n }",
"public String fetchRecentChange(){\n\t\treturn recentChange;\n\t}",
"public String getElapsedTime() {\n\n long elapsed;\n int mins;\n int secs;\n int millis;\n\n if (running) {\n elapsed = System.currentTimeMillis() - startTime;\n } else {\n elapsed = stopTime - startTime;\n }\n\n mins = (int) (elapsed / 60000);\n secs = (int) (elapsed - mins * 60000) / 1000;\n millis = (int) (elapsed - mins * 60000 - secs * 1000);\n\n //Keeps 3 digits when a second rolls over. Perhaps find a better way of doing this\n return (String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs) + \":\"\n + String.format(\"%03d\", millis));\n }",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"public String getTotalTime() {\r\n if (recipe != null) {\r\n return readableTime(recipe.getCookTime() + recipe.getPrepTime());\r\n } else {\r\n return \"\";\r\n }\r\n }",
"public String getElapsed() {\n\t\tString timeFormatted = \"\";\n\t\ttimeFormatted = this.formatTime(this.getElapsedTicks());\n\t\treturn timeFormatted;\n\t}",
"public static String getPrintToFileTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmmss\");\n return sdf.format(System.currentTimeMillis());\n }",
"private String getTimingt(Long pastvalue) {\n DateTime zulu = DateTime.now(DateTimeZone.UTC);\n // DateTimeFormatter formatter = DateTimeFormat.forPattern(\"HH:mm:ss am\");\n Date date = new Date(pastvalue);\n// formattter\n SimpleDateFormat formatter= new SimpleDateFormat(\"hh:mm a\");\n formatter.setTimeZone(TimeZone.getDefault());\n// Pass date object\n return formatter.format(date );\n /*\n long mint = TimeUnit.MILLISECONDS.toMinutes(zulu.toInstant().getMillis() - pastvalue);\n\n if (mint < 60) {\n if (mint > 1)\n return \"Hace \" + mint + \" minutos\";\n else\n return \"Hace \" + mint + \" minuto\";\n } else {\n long horas = TimeUnit.MILLISECONDS.toHours(zulu.toDate().getTime() - pastvalue);\n\n if (horas < 24) {\n if (horas > 1)\n return \"Hace \" + horas + \" horas\";\n else\n return \"Hace \" + horas + \" hora\";\n } else {\n long dias = TimeUnit.MILLISECONDS.toDays(zulu.toDate().getTime() - pastvalue);\n\n if (dias > 1) {\n return \"Hace \" + dias + \" dias\";\n } else\n return \"Hace \" + dias + \" dia\";\n }\n\n\n }*/\n }",
"public Date getFlastupdatetime() {\n return flastupdatetime;\n }",
"@java.lang.Override\n public com.google.protobuf.Timestamp getLastRefreshTime() {\n return lastRefreshTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : lastRefreshTime_;\n }",
"java.lang.String getTime();",
"private String createLabelForLastClockLog(ClockLog cl) {\r\n\t\t// return sdf.format(dt);\r\n\t\tif (cl == null) {\r\n\t\t\treturn \"No previous clock information\";\r\n\t\t}\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\");\r\n\t\tString dateTime = sdf.format(cl.getClockTimestamp());\r\n\t\tif (StringUtils.equals(cl.getClockAction(), TkConstants.CLOCK_IN)) {\r\n\t\t\treturn \"Clocked in since: \" + dateTime;\r\n\t\t} else if (StringUtils.equals(cl.getClockAction(),\r\n\t\t\t\tTkConstants.LUNCH_OUT)) {\r\n\t\t\treturn \"At Lunch since: \" + dateTime;\r\n\t\t} else if (StringUtils\r\n\t\t\t\t.equals(cl.getClockAction(), TkConstants.LUNCH_IN)) {\r\n\t\t\treturn \"Returned from Lunch : \" + dateTime;\r\n\t\t} else if (StringUtils.equals(cl.getClockAction(),\r\n\t\t\t\tTkConstants.CLOCK_OUT)) {\r\n\t\t\treturn \"Clocked out since: \" + dateTime;\r\n\t\t} else {\r\n\t\t\treturn \"No previous clock information\";\r\n\t\t}\r\n\r\n\t}",
"public static String getTimeStamp() {\r\n\r\n\t\tlong now = (System.currentTimeMillis() - startTime) / 1000;\r\n\r\n\t\tlong hours = (now / (60 * 60)) % 24;\r\n\t\tnow -= (hours / (60 * 60)) % 24;\r\n\r\n\t\tlong minutes = (now / 60) % 60;\r\n\t\tnow -= (minutes / 60) % 60;\r\n\r\n\t\tlong seconds = now % 60;\r\n\r\n\t return String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\r\n\t}",
"public String getLastUpdatedDateItem() {\n return lastUpdatedDateItem;\n }",
"public java.lang.String getLastChgTime() {\n\t\treturn lastChgTime;\n\t}",
"private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }",
"public String getTime() {\n String show = time;\n return show;\n }",
"public String lastModifiedAll() {\n\t\tNSTimestamp lastMod = null;\n\t\tNSTimestamp\ttoday = new NSTimestamp();\n\n\t\tEnumeration enumer = allChildren().objectEnumerator();\n\t\twhile(enumer.hasMoreElements()) {\n\t\t\tItem anItem = (Item)enumer.nextElement();\n\t\t\tif(lastMod == null) {\n\t\t\t\tlastMod = anItem.lastdiffed();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(lastMod.compare(anItem.lastdiffed()) < 0) {\n\t\t\t\t\tlastMod = anItem.lastdiffed();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn elapsedTimeSimple(lastMod, today);\n\t}",
"private String getcurrentTimeStamp() {\n\t\tDateTimeFormatter format = DateTimeFormatter\n\t\t\t\t.ofPattern(RidGeneratorPropertyConstant.TIMESTAMP_FORMAT.getProperty());\n\t\treturn LocalDateTime.now().format(format);\n\t}",
"long getTsUpdate();",
"public static String getAmountOfTime(Date time) {\r\n if (time == null) {\r\n return \"\";\r\n }\r\n\r\n String agoString;\r\n Date now = new Date();\r\n long diffMilli = now.getTime() - time.getTime();\r\n\r\n long diffSecs = diffMilli / NUM_MILLI;\r\n if (diffSecs == 1) {\r\n agoString = diffSecs + \" second\";\r\n } else if (diffSecs < NUM_SECS) {\r\n agoString = diffSecs + \" seconds\";\r\n } else {\r\n long diffMins = diffSecs / NUM_SECS;\r\n if (diffMins == 1) {\r\n agoString = diffMins + \" minute\";\r\n } else if (diffMins < NUM_MINS) {\r\n agoString = diffMins + \" minutes\";\r\n } else {\r\n long diffHours = diffMins / NUM_MINS;\r\n if (diffHours == 1) {\r\n agoString = diffHours + \" hour\";\r\n } else if (diffHours < NUM_HOURS) {\r\n agoString = diffHours + \" hours\";\r\n } else {\r\n long diffDays = diffHours / NUM_HOURS;\r\n if (diffDays == 1) {\r\n agoString = diffDays + \" day\";\r\n } else if (diffDays < NUM_DAYS) {\r\n agoString = diffDays + \" days\";\r\n } else {\r\n long diffWeeks = diffDays / NUM_DAYS;\r\n if (diffWeeks == 1) {\r\n agoString = diffWeeks + \" week\";\r\n } else {\r\n agoString = diffWeeks + \" weeks\";\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return agoString;\r\n }",
"long getLastChanged();",
"public String getCurrentTime() {\r\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm:ss\"); //https://www.javatpoint.com/java-get-current-date\r\n LocalDateTime now = LocalDateTime.now();\r\n return dtf.format(now);\r\n }",
"public String getEndString() {\n return String.format(\"e» %s ms%s\", getTotalTime(), getFreemarkerFormattedTime());\n }",
"public String toString(){\n\t\tDateTimeFormatter fmt = DateTimeFormat.forPattern(\"dd-MM-yyyy HH:mm\");\n\t\treturn \"Estimated completion: \" + fmt.print(super.getEstimatedEndTime());\n\t}",
"public long getDateRecordLastUpdated(){\n return dateRecordLastUpdated;\n }",
"protected String elapsedTimeAsString(long runTime) {\n return NumberFormat.getInstance().format((double) runTime / 1000);\n }",
"public Instant getLastUpdate() {\n return lastUpdate;\n }",
"long getLastFetchTimeMs();",
"Date getLastTime();",
"public static String fn_GetCurrentTimeStamp() {\n\t\tDate dte = new Date();\n\t\tDateFormat df = DateFormat.getDateTimeInstance();\n\t\tString strdte = df.format(dte);\n\t\tstrdte = strdte.replaceAll(\":\", \"_\");\n\t\treturn strdte;\n\t}",
"public String getEstimatedRemainingTime() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return \"N/A\";\n \n long eta = d-(System.currentTimeMillis()-startTime);\n if(eta<=0) return \"N/A\";\n \n return Util.getTimeSpanString(eta);\n }",
"String getTime(){\n\t\tCalendar c = Calendar.getInstance();\n int mseconds = c.get(Calendar.MILLISECOND);\n String currentDateandTime = mDateFormat.format(new Date()) + String.format(\"-%04d\", mseconds);\n \n return currentDateandTime;\n\t}",
"public static String getTimeString() {\n\t\treturn getTimeString(time);\n\t}",
"public String gameTimeToText()\n {\n // CALCULATE GAME TIME USING HOURS : MINUTES : SECONDS\n if ((startTime == null) || (endTime == null))\n return \"\";\n long timeInMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n return timeToText(timeInMillis);\n }",
"String getUpdated();",
"private static String currentTimestamp()\r\n {\n \r\n long currentTime = System.currentTimeMillis();\r\n sCalendar.setTime(new Date(currentTime));\r\n \r\n String str = \"\";\r\n str += sCalendar.get(Calendar.YEAR) + \"-\";\r\n \r\n final int month = sCalendar.get(Calendar.MONTH) + 1;\r\n if (month < 10)\r\n {\r\n str += 0;\r\n }\r\n str += month + \"-\";\r\n \r\n final int day = sCalendar.get(Calendar.DAY_OF_MONTH);\r\n if (day < 10)\r\n {\r\n str += 0;\r\n }\r\n str += day;\r\n \r\n str += \"T\";\r\n \r\n final int hour = sCalendar.get(Calendar.HOUR_OF_DAY);\r\n if (hour < 10)\r\n {\r\n str += 0;\r\n }\r\n str += hour + \":\";\r\n \r\n final int minute = sCalendar.get(Calendar.MINUTE);\r\n if (minute < 10)\r\n {\r\n str += 0;\r\n }\r\n str += minute + \":\";\r\n \r\n final int second = sCalendar.get(Calendar.SECOND);\r\n if (second < 10)\r\n {\r\n str += 0;\r\n }\r\n str += second + \".\";\r\n \r\n final int milli = sCalendar.get(Calendar.MILLISECOND);\r\n str += milli;\r\n \r\n str += \"Z\";\r\n \r\n return str;\r\n }",
"public String getModifiedTime() {\n return modifiedTime;\n }",
"public static String getTime() {\r\n\r\n\t\t//Gets current date and time\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tDate date = new Date();\r\n\t\tcurrDateTime = dateFormat.format(date);\r\n\t\treturn currDateTime;\r\n\t}",
"public String elapsedTime() {\n return totalWatch.toString();\n }",
"public int getthelastupdate() {\n\t\treturn this.getthelastupdate();\n\t}",
"@ApiModelProperty(required = false, value = \"epoch timestamp in milliseconds\")\n public Long getLastUpdated() {\n return lastUpdated;\n }",
"public String getLastChange() {\n return lastChange;\n }",
"@Override\n public String toString() {\n final StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"[Outbound heartbeat from: \");\n stringBuilder.append(heartbeat.getRole());\n if (heartbeatSentMillis > 0) {\n stringBuilder.append(\", last sent \");\n final long secondsAgo = (System.currentTimeMillis() - heartbeatSentMillis) / 1000;\n stringBuilder.append(secondsAgo);\n stringBuilder.append(\" seconds ago]\");\n }\n return stringBuilder.toString();\n }",
"String getHighScoreTime() {\n return getStringStat(highScoreTime);\n }"
]
| [
"0.76915145",
"0.71566105",
"0.71041477",
"0.6803785",
"0.67233044",
"0.66791296",
"0.6639173",
"0.6616193",
"0.6590972",
"0.65633106",
"0.653335",
"0.6519126",
"0.63911647",
"0.6384181",
"0.63753533",
"0.63385826",
"0.6332585",
"0.6315869",
"0.63151526",
"0.63151526",
"0.62909806",
"0.6282334",
"0.6282334",
"0.6282334",
"0.6282334",
"0.6276142",
"0.6269706",
"0.62587917",
"0.62065285",
"0.6184239",
"0.6181263",
"0.6176451",
"0.61669827",
"0.61618453",
"0.61546236",
"0.61534566",
"0.6142977",
"0.6133477",
"0.61122113",
"0.6110858",
"0.60874474",
"0.6077477",
"0.60719854",
"0.60603863",
"0.60586613",
"0.60586613",
"0.60481876",
"0.6048131",
"0.60480994",
"0.60385597",
"0.6020896",
"0.59956634",
"0.5991853",
"0.59915197",
"0.5987464",
"0.5987464",
"0.5987464",
"0.5987464",
"0.5987464",
"0.59819233",
"0.5978975",
"0.59770256",
"0.5958449",
"0.59548414",
"0.5944352",
"0.5931861",
"0.5922078",
"0.5919053",
"0.591823",
"0.59178734",
"0.59107274",
"0.5905947",
"0.58813816",
"0.58803",
"0.58786273",
"0.58779836",
"0.58775795",
"0.5875869",
"0.58746266",
"0.58694017",
"0.58654964",
"0.58653754",
"0.5862301",
"0.585975",
"0.5858741",
"0.58571905",
"0.5854205",
"0.58432376",
"0.584051",
"0.5834118",
"0.58332956",
"0.5830729",
"0.58302194",
"0.5828291",
"0.58236235",
"0.5819404",
"0.58145463",
"0.58037126",
"0.5800029",
"0.57941896"
]
| 0.7236453 | 1 |
Get display string for the last updated time in the number of seconds/minutes/etc ago. This method should maybe be moved to a utility class. | public static String getLastUpdateString(Date time) {
if (time == null) {
return "";
}
return getAmountOfTime(time) + " ago";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getLastUpdateString() {\r\n return getLastUpdateString(lastUpdatedTime);\r\n }",
"public String getLastmodifiedTimeView() {\r\n if (lastmodifiedTime != null) {\r\n lastmodifiedTimeView = DateUtils.dateToStr(lastmodifiedTime, DateUtils.YMD_DASH);\r\n }\r\n return lastmodifiedTimeView;\r\n }",
"public String getLastUpdatedString() {\n return lastUpdated.toString();\n }",
"private String getFinalTimeString() {\n double fltTime = (double)(lngTimelineDataAmountInRmsFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime);\n }",
"public String getLastEditTime() {\n return editedTimeList.get(editedTimeList.size() - 1);\n }",
"public static String getPrintToTextTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return sdf.format(System.currentTimeMillis());\n }",
"String timeModified();",
"private void updateRefreshTime(){\n\t\t\trefreshLabel.setText(\"Last Updated: \" + (new Date()).toString());\n\t\t}",
"public String getTime()\r\n\t{\r\n\t\treturn displayString;\r\n\t}",
"public java.lang.String getLastChangedTime() {\n\t\treturn lastChangedTime;\n\t}",
"public String lastupdated() throws Exception{\r\n\t\ttry {\r\n\t\t\telement = driver.findElement(lastupdated);\r\n\t\t\tStr_lastupdated = element.getText();\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new Exception(\"LAST UPDATED NOT FOUND:: \"+e.getLocalizedMessage());\r\n\t\t}\r\n\t\treturn Str_lastupdated;\r\n\t}",
"public String getLastUpdate() {\n return lastUpdate;\n }",
"private String timeToAgo(Long timestamp){\n\n\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n Log.d(TAG, \"timeToAgo:TimeZone :\"+TimeZone.getTimeZone(\"GMT\"));\n long time = cal.getTimeInMillis();\n Log.d(TAG, \"timeToAgo: time with cal : \"+time);\n long curTime = System.currentTimeMillis() / 1000 + 32400;\n Log.d(TAG, \"timeToAgo: curTime : \" + curTime);\n long diffTime = (curTime - timestamp); //1000으로 나눠주는 이유는 millisecond가 아닌 second만 신경을 써줄 것이므로\n Log.d(TAG, \"timeToAgo: diffTime \" + diffTime);\n long hour =diffTime/3600;\n Log.d(TAG, \"timeToAgo: hour \"+ hour);\n Log.d(TAG, \"timeToAgo: timestamp : \"+timestamp);\n diffTime =diffTime%3600;\n long min = diffTime/60;\n long sec = diffTime%60;\n\n String ret = \"\";\n\n\n if(hour > 24){\n ret = new SimpleDateFormat(\"MM/dd\").format(new Date(timestamp));\n\n if (hour>8760){\n ret = new SimpleDateFormat(\"MM/dd/yyyy\").format(new Date(timestamp));\n }\n }\n else if(hour > 0){\n ret = hour+\" hours ago\";\n }\n else if(min > 0){\n ret = min+\" mins ago\";\n }\n else if(sec > 0){\n ret = \"just now!\";\n }\n else{\n ret = new SimpleDateFormat(\"MM/dd\").format(new Date(timestamp));\n }\n\n return ret;\n }",
"private static String getPrettyTimeDiffInMinutes(Calendar c1, Calendar c2) {\n\t\tif (c1.getTimeZone() == null || c2.getTimeZone() == null \n\t\t\t\t|| c1.getTimeZone().getRawOffset() != c2.getTimeZone().getRawOffset()) {\n\t\t\treturn \"N.A.\";\n\t\t}\n\t\telse {\n\t\t\t//Log.d(TAG, \"c2: \" + c2 + \", c1: \" + c1);\n\t\t\tlong diff = c2.getTimeInMillis() - c1.getTimeInMillis();\n\t\t\t\n\t\t\tif (diff / Utils.DAY_SCALE != 0) {\n\t\t\t\treturn \"many days ago\";\n\t\t\t}\n\t\t\telse if (diff / Utils.HOUR_SCALE != 0) {\n\t\t\t\treturn \"many hours ago\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn (diff / Utils.MINUTE_SCALE) + \" min(s) ago\";\n\t\t\t}\n\t\t}\n\t}",
"private String getTimeDifference(long actualTime) {\n\t\tlong seconds = actualTime % (1000 * 60);\n\t\tlong minutes = actualTime / (1000 * 60);\n\n\t\tString result = null;\n\n\t\tif (minutes < 10) {\n\t\t\tresult = \"0\" + minutes + \":\";\n\t\t} else {\n\t\t\tresult = minutes + \":\";\n\t\t}\n\n\t\tif (seconds < 10) {\n\t\t\tresult += \"0\" + seconds;\n\t\t} else {\n\t\t\tString sec = seconds + \"\";\n\t\t\tresult += sec.substring(0, 2);\n\t\t}\n\n\t\treturn result;\n\t}",
"private String getTimingString() {\n return DateTimeHandler.STANDARD_DATETIME_FORMAT.format(deadline);\n }",
"public String getTimeString()\n\t{\n\t\treturn TimeUtils.getTimeString(this.timesCurrentMillis);\n\t}",
"long getLastUpdatedTime();",
"public String getLastUpdated() {\n return lastUpdated;\n }",
"public String getElapsedTime() {\n\n long elapsed;\n int mins;\n int secs;\n int millis;\n\n if (running) {\n elapsed = System.currentTimeMillis() - startTime;\n } else {\n elapsed = stopTime - startTime;\n }\n\n mins = (int) (elapsed / 60000);\n secs = (int) (elapsed - mins * 60000) / 1000;\n millis = (int) (elapsed - mins * 60000 - secs * 1000);\n\n //Keeps 3 digits when a second rolls over. Perhaps find a better way of doing this\n return (String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs) + \":\"\n + String.format(\"%03d\", millis));\n }",
"private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }",
"public String getUpdateTime() {\r\n return updateTime;\r\n }",
"private String currentTime()\t{\n\t\tCalendar c = Calendar.getInstance(); \n\n\t\tString seconds;\n\t\tif(c.get(Calendar.SECOND) < 10)\t{\n\t\t\tseconds = \"0\"+Integer.toString(c.get(Calendar.SECOND));\n\t\t} else {\n\t\t\tseconds = Integer.toString(c.get(Calendar.SECOND));\n\t\t}\n\n\t\tString minutes;\n\t\tif(c.get(Calendar.MINUTE) < 10)\t{\n\t\t\tminutes = \"0\"+Integer.toString(c.get(Calendar.MINUTE));\n\t\t} else {\n\t\t\tminutes = Integer.toString(c.get(Calendar.MINUTE));\n\t\t}\n\n\t\tString hours;\n\t\tif(c.get(Calendar.HOUR_OF_DAY) < 10)\t{\n\t\t\thours = \"0\"+Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\t} else {\n\t\t\thours = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\t}\n\n\t\tString day;\n\t\tif(c.get(Calendar.DATE) < 10)\t{\n\t\t\tday = \"0\"+Integer.toString(c.get(Calendar.DATE));\n\t\t} else {\n\t\t\tday = Integer.toString(c.get(Calendar.DATE));\n\t\t}\n\n\t\tString month;\n\t\tif((c.get(Calendar.MONTH)+1) < 10)\t{\n\t\t\tmonth = \"0\"+Integer.toString(c.get(Calendar.MONTH)+1);\n\t\t} else {\n\t\t\tmonth = Integer.toString(c.get(Calendar.MONTH)+1);\n\t\t}\n\n\t\tString year;\n\t\tif(c.get(Calendar.YEAR) < 10)\t{\n\t\t\tyear = \"0\"+Integer.toString(c.get(Calendar.YEAR));\n\t\t} else {\n\t\t\tyear = Integer.toString(c.get(Calendar.YEAR));\n\t\t}\n\n\t\treturn day+\"/\"+month+\"/\"+year + \" \"+hours+\":\"+minutes+\":\"+seconds;\t\n\t}",
"public String getUpdated() {\n if(updated == null)\n return \"\";\n return updated.toString();\n }",
"public String getUpdateTime() {\n return updateTime;\n }",
"public String getUpdateTime() {\n return updateTime;\n }",
"public String getUpdateTime() {\n return updateTime;\n }",
"public String getUpdateTime() {\n return updateTime;\n }",
"public long lastTime()\r\n/* 219: */ {\r\n/* 220:412 */ return this.lastTime.get();\r\n/* 221: */ }",
"public String getLastUpdTime() {\n return lastUpdTime;\n }",
"private String getCurrentTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n Date date = new Date();\n return dateFormat.format(date);\n }",
"public String getModifiedString() {\n try {\n return DateFormat.getDateInstance(DateFormat.SHORT).format(modified);\n } catch (NullPointerException e) {\n }\n return (\"\");\n }",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public String getUpdatetime() {\n\t\treturn updatetime;\n\t}",
"public String getCreatedAtString() {\n String createdAt = \"\";\n\n // get the time in millis for the created at\n long createdDate = getCreatedAt().getTime();\n\n // get the time in millis for now\n long currentDate = new Date().getTime();\n\n int secondsBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.SEC);\n\n // get the number of minutes in between\n int minutesBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.MIN);\n\n // get the number of hours in between\n int hoursBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.HOUR);\n\n // if less than 1 minute ago return \"minutes ago\n if (secondsBetween < 60) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.SECOND_IN_MILLIS).toString();\n }\n\n // if less than 1 hour ago return \"minutes ago\n if (minutesBetween >= 1 && minutesBetween < 60) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.MINUTE_IN_MILLIS).toString();\n }\n\n // if less than 24 hours ago or greater than 1 return \"hours ago\"\n if (hoursBetween >= 1 && hoursBetween < 24) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.HOUR_IN_MILLIS).toString();\n }\n\n // if more than 24 hours ago return \"days ago\"\n if (hoursBetween >= 24) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.DAY_IN_MILLIS).toString();\n }\n\n return createdAt;\n }",
"public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }",
"public String getModifiedDateTimeString() {\n try {\n return DateFormat.getDateTimeInstance(\n DateFormat.SHORT, DateFormat.SHORT).format(modified);\n } catch (NullPointerException e) {\n }\n return (\"\");\n }",
"protected String elapsedTimeAsString(long runTime) {\n return NumberFormat.getInstance().format((double) runTime / 1000);\n }",
"public String getDisplayValue()\n {\n\t\t\t\tString time_str;\n\t\t\t\tif (hours.getValue()<12&&minutes.getValue()<10) {\n time_str = \"0\" + hours.getValue()+ \": 0\" + minutes.getValue();\n }\n\t\t\t\tif (hours.getValue()<12) {\n time_str = \"0\" + hours.getValue()+ \": \" + minutes.getValue();\n } else if (minutes.getValue()<10) {\n time_str = hours.getValue()+\": 0\"+ minutes.getValue();\n } else {\n time_str = hours.getValue()+\":\"+ minutes.getValue();\n }\n\t\t\t\treturn time_str;\n }",
"public String getUpdateTime() {\n\t\t\treturn updateTime;\n\t\t}",
"public String gameTimeToText()\n {\n // CALCULATE GAME TIME USING HOURS : MINUTES : SECONDS\n if ((startTime == null) || (endTime == null))\n return \"\";\n long timeInMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n return timeToText(timeInMillis);\n }",
"public static String getElapsedTimeFromNow(Date date) {\n long duration = new Date().getTime() - date.getTime();\n\n long diffInMinutes = TimeUnit.MILLISECONDS.toMinutes(duration);\n long diffInHours = TimeUnit.MILLISECONDS.toHours(duration);\n long diffInDays = TimeUnit.MILLISECONDS.toDays(duration);\n long diffInMonths = diffInDays / 30;\n long diffInYears = diffInMonths / 365;\n\n if (diffInYears > 0) {\n if (diffInYears == 1) return Long.toString(diffInYears) + \" year ago\";\n return Long.toString(diffInYears) + \" years ago\";\n }\n\n else if (diffInMonths > 0) {\n if (diffInMonths == 1) return Long.toString(diffInMonths) + \" month ago\";\n return Long.toString(diffInMonths) + \" months ago\";\n }\n\n else if (diffInDays > 0) {\n if (diffInDays == 1) return Long.toString(diffInDays) + \" day ago\";\n return Long.toString(diffInDays) + \" days ago\";\n }\n\n else if (diffInHours > 0) {\n if (diffInHours == 1) return Long.toString(diffInHours) + \" hour ago\";\n return Long.toString(diffInHours) + \" hours ago\";\n }\n\n else if (diffInMinutes > 0) {\n if (diffInMinutes == 1) return Long.toString(diffInMinutes) + \" minute ago\";\n return Long.toString(diffInMinutes) + \" minutes ago\";\n }\n\n else return \"Just now\";\n }",
"public String getElapsed() {\n\t\tString timeFormatted = \"\";\n\t\ttimeFormatted = this.formatTime(this.getElapsedTicks());\n\t\treturn timeFormatted;\n\t}",
"public String getTotalTime() {\r\n if (recipe != null) {\r\n return readableTime(recipe.getCookTime() + recipe.getPrepTime());\r\n } else {\r\n return \"\";\r\n }\r\n }",
"public static String getPrintToFileTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyyMMdd_HHmmss\");\n return sdf.format(System.currentTimeMillis());\n }",
"private String getFormattedTime(int totalElapsedSeconds)\n {\n int minutes = totalElapsedSeconds / 60;\n int seconds = totalElapsedSeconds - (minutes * 60);\n String timerText = String.format(\"%02d\", minutes)\n + \":\" + String.format(\"%02d\", seconds);\n return timerText;\n }",
"private String getTimingt(Long pastvalue) {\n DateTime zulu = DateTime.now(DateTimeZone.UTC);\n // DateTimeFormatter formatter = DateTimeFormat.forPattern(\"HH:mm:ss am\");\n Date date = new Date(pastvalue);\n// formattter\n SimpleDateFormat formatter= new SimpleDateFormat(\"hh:mm a\");\n formatter.setTimeZone(TimeZone.getDefault());\n// Pass date object\n return formatter.format(date );\n /*\n long mint = TimeUnit.MILLISECONDS.toMinutes(zulu.toInstant().getMillis() - pastvalue);\n\n if (mint < 60) {\n if (mint > 1)\n return \"Hace \" + mint + \" minutos\";\n else\n return \"Hace \" + mint + \" minuto\";\n } else {\n long horas = TimeUnit.MILLISECONDS.toHours(zulu.toDate().getTime() - pastvalue);\n\n if (horas < 24) {\n if (horas > 1)\n return \"Hace \" + horas + \" horas\";\n else\n return \"Hace \" + horas + \" hora\";\n } else {\n long dias = TimeUnit.MILLISECONDS.toDays(zulu.toDate().getTime() - pastvalue);\n\n if (dias > 1) {\n return \"Hace \" + dias + \" dias\";\n } else\n return \"Hace \" + dias + \" dia\";\n }\n\n\n }*/\n }",
"private String createLabelForLastClockLog(ClockLog cl) {\r\n\t\t// return sdf.format(dt);\r\n\t\tif (cl == null) {\r\n\t\t\treturn \"No previous clock information\";\r\n\t\t}\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\");\r\n\t\tString dateTime = sdf.format(cl.getClockTimestamp());\r\n\t\tif (StringUtils.equals(cl.getClockAction(), TkConstants.CLOCK_IN)) {\r\n\t\t\treturn \"Clocked in since: \" + dateTime;\r\n\t\t} else if (StringUtils.equals(cl.getClockAction(),\r\n\t\t\t\tTkConstants.LUNCH_OUT)) {\r\n\t\t\treturn \"At Lunch since: \" + dateTime;\r\n\t\t} else if (StringUtils\r\n\t\t\t\t.equals(cl.getClockAction(), TkConstants.LUNCH_IN)) {\r\n\t\t\treturn \"Returned from Lunch : \" + dateTime;\r\n\t\t} else if (StringUtils.equals(cl.getClockAction(),\r\n\t\t\t\tTkConstants.CLOCK_OUT)) {\r\n\t\t\treturn \"Clocked out since: \" + dateTime;\r\n\t\t} else {\r\n\t\t\treturn \"No previous clock information\";\r\n\t\t}\r\n\r\n\t}",
"static String getRefreshDate(){\n if (updateTime == null){\n updateTime = \"ERROR RETRIEVING CURRENT RATES\";\n }\n return conversionRates.get(\"date\").getAsString() + \" \" + updateTime;\n\n }",
"public String getTime() {\n String show = time;\n return show;\n }",
"public String getEndString() {\n return String.format(\"e» %s ms%s\", getTotalTime(), getFreemarkerFormattedTime());\n }",
"public static String getTimeStamp() {\r\n\r\n\t\tlong now = (System.currentTimeMillis() - startTime) / 1000;\r\n\r\n\t\tlong hours = (now / (60 * 60)) % 24;\r\n\t\tnow -= (hours / (60 * 60)) % 24;\r\n\r\n\t\tlong minutes = (now / 60) % 60;\r\n\t\tnow -= (minutes / 60) % 60;\r\n\r\n\t\tlong seconds = now % 60;\r\n\r\n\t return String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\r\n\t}",
"public static String getTimeString() {\n\t\treturn getTimeString(time);\n\t}",
"public String getCacheLastUpdated() {\n return cacheLastUpdated;\n }",
"public String getTimeInString() {\n int minutes = (time % 3600) / 60;\n int seconds = time % 60;\n String timeString = String.format(\"%02d:%02d\", minutes, seconds);\n\n return timeString;\n }",
"public static String getAmountOfTime(Date time) {\r\n if (time == null) {\r\n return \"\";\r\n }\r\n\r\n String agoString;\r\n Date now = new Date();\r\n long diffMilli = now.getTime() - time.getTime();\r\n\r\n long diffSecs = diffMilli / NUM_MILLI;\r\n if (diffSecs == 1) {\r\n agoString = diffSecs + \" second\";\r\n } else if (diffSecs < NUM_SECS) {\r\n agoString = diffSecs + \" seconds\";\r\n } else {\r\n long diffMins = diffSecs / NUM_SECS;\r\n if (diffMins == 1) {\r\n agoString = diffMins + \" minute\";\r\n } else if (diffMins < NUM_MINS) {\r\n agoString = diffMins + \" minutes\";\r\n } else {\r\n long diffHours = diffMins / NUM_MINS;\r\n if (diffHours == 1) {\r\n agoString = diffHours + \" hour\";\r\n } else if (diffHours < NUM_HOURS) {\r\n agoString = diffHours + \" hours\";\r\n } else {\r\n long diffDays = diffHours / NUM_HOURS;\r\n if (diffDays == 1) {\r\n agoString = diffDays + \" day\";\r\n } else if (diffDays < NUM_DAYS) {\r\n agoString = diffDays + \" days\";\r\n } else {\r\n long diffWeeks = diffDays / NUM_DAYS;\r\n if (diffWeeks == 1) {\r\n agoString = diffWeeks + \" week\";\r\n } else {\r\n agoString = diffWeeks + \" weeks\";\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n return agoString;\r\n }",
"public String getFormattedTimeFromStart() {\r\n if (history.getNumberOfJumpsSoFar() == 0) {\r\n return \"00:00\";\r\n }\r\n\r\n double time = history.getTimeFromStart();\r\n double maxTime = 59.59;\r\n if (time < maxTime) {\r\n return String.format(\"%02d:%02d\", (int) (time % 60), (int) (time * 100 % 100));\r\n } else {\r\n return \"59:59\";\r\n }\r\n }",
"java.lang.String getTime();",
"public String getEstimatedRemainingTime() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return \"N/A\";\n \n long eta = d-(System.currentTimeMillis()-startTime);\n if(eta<=0) return \"N/A\";\n \n return Util.getTimeSpanString(eta);\n }",
"String getTime(){\n\t\tCalendar c = Calendar.getInstance();\n int mseconds = c.get(Calendar.MILLISECOND);\n String currentDateandTime = mDateFormat.format(new Date()) + String.format(\"-%04d\", mseconds);\n \n return currentDateandTime;\n\t}",
"public String getCurrentDateAndTime(){\n return dateTimeFormatter.format(current);\n }",
"@SuppressWarnings(\"unused\")\n Date getLastUpdateTime();",
"static public String getElapsed(long lTime) {\n // Convert from milliseconds to seconds\n lTime /= 1000;\n\n // Get hours, minutes, seconds\n int nHr = (int) lTime / 3600;\n lTime %= 3600;\n int nMn = (int) lTime / 60;\n lTime %= 60;\n int nSc = (int) lTime;\n\n // Convert to a string and return\n return (((nHr < 10) ? \"0\" + nHr : new Integer(nHr).toString()) + \":\"\n + ((nMn < 10) ? \"0\" + nMn : new Integer(nMn).toString()) + \":\" + ((nSc < 10) ? \"0\"\n + nSc\n : new Integer(nSc).toString()));\n }",
"public String getTime() {\n return String.format(\"%02d\", hours) + \":\" + String.format(\"%02d\", minutes);\n }",
"public String getRelativeTimeAgo() {\n\n String twitterFormat = \"EEE MMM dd HH:mm:ss ZZZZZ yyyy\";\n SimpleDateFormat sf = new SimpleDateFormat(twitterFormat, Locale.ENGLISH);\n sf.setLenient(true);\n\n String relativeDate = \"\";\n try {\n long dateMillis = sf.parse(created_at).getTime();\n relativeDate = DateUtils.getRelativeTimeSpanString(dateMillis,\n System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS).toString();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n return relativeDate;\n }",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"public java.lang.String getLastChgTime () {\n\t\treturn lastChgTime;\n\t}",
"private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }",
"public static String formatTime(long timeDiff){\n StringBuilder buf = new StringBuilder();\n long hours = timeDiff / (60*60*1000);\n long rem = (timeDiff % (60*60*1000));\n long minutes = rem / (60*1000);\n rem = rem % (60*1000);\n long seconds = rem / 1000;\n\n if (hours != 0){\n buf.append(hours);\n buf.append(\" hrs, \");\n }\n if (minutes != 0){\n buf.append(minutes);\n buf.append(\" mins, \");\n }\n\n if (seconds != 0) {\n buf.append(seconds);\n buf.append(\" sec\");\n }\n\n if (timeDiff < 1000) {\n buf.append(timeDiff);\n buf.append(\" msec\");\n }\n return buf.toString();\n }",
"public com.google.protobuf.Timestamp getLastRefreshTime() {\n if (lastRefreshTimeBuilder_ == null) {\n return lastRefreshTime_ == null\n ? com.google.protobuf.Timestamp.getDefaultInstance()\n : lastRefreshTime_;\n } else {\n return lastRefreshTimeBuilder_.getMessage();\n }\n }",
"public String getElapsedTime() {\n /**\n * Joda instruction credit to BalusC @ stackoverflow.com\n * http://stackoverflow.com/posts/2179831/revisions\n */\n Period delta = new Period(getOccurrenceTime(), DateTime.now());\n return\n // 1+ weeks\n (delta.getWeeks() >= 1) ? delta.getWeeks()+\"w\" :\n // 1+ days\n (delta.getDays() >= 1) ? delta.getDays()+\"d\" :\n // 1+ hours\n (delta.getHours() >= 1) ? delta.getHours()+\"h\" :\n // 1+ minutes\n (delta.getMinutes() >= 1) ? delta.getMinutes()+\"m\" :\n // 1+ seconds\n delta.getSeconds()+\"s\";\n }",
"public static String getTime() {\r\n\r\n\t\t//Gets current date and time\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tDate date = new Date();\r\n\t\tcurrDateTime = dateFormat.format(date);\r\n\t\treturn currDateTime;\r\n\t}",
"public String getCurrentTime() {\r\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm:ss\"); //https://www.javatpoint.com/java-get-current-date\r\n LocalDateTime now = LocalDateTime.now();\r\n return dtf.format(now);\r\n }",
"public String getTime() {\n\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tString time = dateFormat.format(cal.getTime());\n\t\t\treturn time;\n\t\t}",
"public String toString(){\n\t\tDateTimeFormatter fmt = DateTimeFormat.forPattern(\"dd-MM-yyyy HH:mm\");\n\t\treturn \"Estimated completion: \" + fmt.print(super.getEstimatedEndTime());\n\t}",
"public String getUpdTime() {\n return updTime;\n }",
"protected String getBottomCenterMessage() {\n\t\treturn \"Time So Far: \" + (gameTime / 1000) + \" seconds\";\n\t}",
"public String elapsedTime() {\n return totalWatch.toString();\n }",
"public String getTimeString(){\n StringBuilder sBuilder = new StringBuilder();\n sBuilder.append(hourPicker.getValue())\n .append(':')\n .append(minutePicker.getValue())\n .append(':')\n .append(secondsPicker.getValue())\n .append('.')\n .append(decimalPicker.getValue());\n return sBuilder.toString();\n }",
"public static String getLastLocationTime(ShortLocation location) {\n if (location == null) {\n return \"no location detected\";\n } else {\n return converTimeToReadable(location.getTime());\n // new SimpleDateFormat(\"dd.MM.yyyy HH:mm\").format(new Date(location.getTime()));\n }\n }",
"public static String fn_GetCurrentTimeStamp() {\n\t\tDate dte = new Date();\n\t\tDateFormat df = DateFormat.getDateTimeInstance();\n\t\tString strdte = df.format(dte);\n\t\tstrdte = strdte.replaceAll(\":\", \"_\");\n\t\treturn strdte;\n\t}",
"public String getCurrentThreadTimeInfo() {\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tThreadMXBean bean = ManagementFactory.getThreadMXBean();\n\t\tif(!bean.isCurrentThreadCpuTimeSupported())\n\t\t\treturn timeInfo;\n\t\tlong userTime = bean.getCurrentThreadUserTime();\n\t\tlong cpuTime = bean.getCurrentThreadCpuTime();\n\n\t\tsb.append(userTime).append(\"#\").append(cpuTime);\n\t\ttimeInfo = sb.toString();\n//\t\tSystem.out.println(\"lib: \" + timeInfo);\n\t\treturn timeInfo;\n\t}",
"private String getcurrentTimeStamp() {\n\t\tDateTimeFormatter format = DateTimeFormatter\n\t\t\t\t.ofPattern(RidGeneratorPropertyConstant.TIMESTAMP_FORMAT.getProperty());\n\t\treturn LocalDateTime.now().format(format);\n\t}",
"public static String getPrintToDirectoryTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"MMdd\");\n return sdf.format(System.currentTimeMillis());\n }",
"public java.lang.String getLastChgTime() {\n\t\treturn lastChgTime;\n\t}",
"public static String getCurrentTime()\n\t{\n\t\treturn getTime(new Date());\n\t}",
"public String getSystemTime() {\n return DateFormat.getDateTimeInstance().format(new Date().getTime());\n }",
"public static final String CurrentTime() {\n\t\t\n\t\tfinal SimpleDateFormat DF = new SimpleDateFormat(\"HH:mm:ss\");\n\t\treturn DF.format(new Date());\n\t}",
"public int readDisplay() {\n\t\treturn payStation.getTimeBoughtInMinutes();\n\t}",
"public static String displayTime(long milliseconds) {\n String displayTime = \"\";\n double seconds = milliseconds / 1000.0;\n int minute = (int) (seconds / 60);\n double second = seconds % 60;\n displayTime = String.format(\"%02d:%06.3f\", minute, second);\n\n return displayTime;\n }",
"public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }",
"public java.lang.String getDate_last_update() {\n return date_last_update;\n }",
"private static String currentTimestamp()\r\n {\n \r\n long currentTime = System.currentTimeMillis();\r\n sCalendar.setTime(new Date(currentTime));\r\n \r\n String str = \"\";\r\n str += sCalendar.get(Calendar.YEAR) + \"-\";\r\n \r\n final int month = sCalendar.get(Calendar.MONTH) + 1;\r\n if (month < 10)\r\n {\r\n str += 0;\r\n }\r\n str += month + \"-\";\r\n \r\n final int day = sCalendar.get(Calendar.DAY_OF_MONTH);\r\n if (day < 10)\r\n {\r\n str += 0;\r\n }\r\n str += day;\r\n \r\n str += \"T\";\r\n \r\n final int hour = sCalendar.get(Calendar.HOUR_OF_DAY);\r\n if (hour < 10)\r\n {\r\n str += 0;\r\n }\r\n str += hour + \":\";\r\n \r\n final int minute = sCalendar.get(Calendar.MINUTE);\r\n if (minute < 10)\r\n {\r\n str += 0;\r\n }\r\n str += minute + \":\";\r\n \r\n final int second = sCalendar.get(Calendar.SECOND);\r\n if (second < 10)\r\n {\r\n str += 0;\r\n }\r\n str += second + \".\";\r\n \r\n final int milli = sCalendar.get(Calendar.MILLISECOND);\r\n str += milli;\r\n \r\n str += \"Z\";\r\n \r\n return str;\r\n }",
"private String msg3() {\n return(\"[\" + (System.currentTimeMillis() - system_start_time) + \"] \");\n }",
"private CharSequence getTimeDifference(String formattedDate) {\n long currentTime = System.currentTimeMillis();\n long publicationTime = getDateInMillis(formattedDate);\n return DateUtils.getRelativeTimeSpanString(publicationTime, currentTime,\n DateUtils.SECOND_IN_MILLIS);\n }",
"public static String getNowTime(){\r\n\t\tDate date = new Date();\r\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tString time = format.format(date);\r\n\t\treturn time;\r\n\t}",
"@SimpleFunction(description = \"Gets the current time.\"\n + \"It is formatted correctly for iSENSE\")\n public String GetTime() {\n Calendar cal = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss.SSSZ\");\n return sdf.format(cal.getTime()).toString();\n }"
]
| [
"0.7125875",
"0.70923877",
"0.6953837",
"0.6633073",
"0.6596259",
"0.65937215",
"0.65640295",
"0.65635",
"0.6511878",
"0.6496538",
"0.64404017",
"0.6402492",
"0.6392036",
"0.63724005",
"0.6350748",
"0.632882",
"0.63280964",
"0.6320477",
"0.63133633",
"0.63022476",
"0.62941045",
"0.62819433",
"0.6280865",
"0.62533003",
"0.62225723",
"0.62225723",
"0.62225723",
"0.62225723",
"0.62185025",
"0.6210579",
"0.61925435",
"0.6191705",
"0.61722803",
"0.61722803",
"0.616985",
"0.6163438",
"0.61575645",
"0.61499727",
"0.6142629",
"0.6137456",
"0.61357445",
"0.6129688",
"0.61187756",
"0.61019045",
"0.60834646",
"0.60804737",
"0.60762817",
"0.60744095",
"0.6074134",
"0.6070242",
"0.6040754",
"0.6038295",
"0.6037239",
"0.6035327",
"0.603185",
"0.60313886",
"0.60254616",
"0.6012401",
"0.5998955",
"0.5993488",
"0.599067",
"0.59906137",
"0.59845567",
"0.5979891",
"0.59796625",
"0.5975539",
"0.5975539",
"0.5975539",
"0.5975539",
"0.5975539",
"0.5955206",
"0.59538275",
"0.5952995",
"0.59468883",
"0.5946124",
"0.5945867",
"0.5939944",
"0.59301555",
"0.59294564",
"0.5924513",
"0.5924481",
"0.5924334",
"0.5914544",
"0.59034836",
"0.59005684",
"0.58995813",
"0.5899262",
"0.58987975",
"0.5895655",
"0.5888965",
"0.5886442",
"0.5884175",
"0.58787626",
"0.58728796",
"0.5863173",
"0.58620656",
"0.5856949",
"0.5854528",
"0.58510417",
"0.5848285"
]
| 0.7554876 | 0 |
Get display string for an amount of time from now since the given date, in seconds/minutes/etc. This method should maybe be moved to a utility class. | public static String getAmountOfTime(Date time) {
if (time == null) {
return "";
}
String agoString;
Date now = new Date();
long diffMilli = now.getTime() - time.getTime();
long diffSecs = diffMilli / NUM_MILLI;
if (diffSecs == 1) {
agoString = diffSecs + " second";
} else if (diffSecs < NUM_SECS) {
agoString = diffSecs + " seconds";
} else {
long diffMins = diffSecs / NUM_SECS;
if (diffMins == 1) {
agoString = diffMins + " minute";
} else if (diffMins < NUM_MINS) {
agoString = diffMins + " minutes";
} else {
long diffHours = diffMins / NUM_MINS;
if (diffHours == 1) {
agoString = diffHours + " hour";
} else if (diffHours < NUM_HOURS) {
agoString = diffHours + " hours";
} else {
long diffDays = diffHours / NUM_HOURS;
if (diffDays == 1) {
agoString = diffDays + " day";
} else if (diffDays < NUM_DAYS) {
agoString = diffDays + " days";
} else {
long diffWeeks = diffDays / NUM_DAYS;
if (diffWeeks == 1) {
agoString = diffWeeks + " week";
} else {
agoString = diffWeeks + " weeks";
}
}
}
}
}
return agoString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getElapsedTimeFromNow(Date date) {\n long duration = new Date().getTime() - date.getTime();\n\n long diffInMinutes = TimeUnit.MILLISECONDS.toMinutes(duration);\n long diffInHours = TimeUnit.MILLISECONDS.toHours(duration);\n long diffInDays = TimeUnit.MILLISECONDS.toDays(duration);\n long diffInMonths = diffInDays / 30;\n long diffInYears = diffInMonths / 365;\n\n if (diffInYears > 0) {\n if (diffInYears == 1) return Long.toString(diffInYears) + \" year ago\";\n return Long.toString(diffInYears) + \" years ago\";\n }\n\n else if (diffInMonths > 0) {\n if (diffInMonths == 1) return Long.toString(diffInMonths) + \" month ago\";\n return Long.toString(diffInMonths) + \" months ago\";\n }\n\n else if (diffInDays > 0) {\n if (diffInDays == 1) return Long.toString(diffInDays) + \" day ago\";\n return Long.toString(diffInDays) + \" days ago\";\n }\n\n else if (diffInHours > 0) {\n if (diffInHours == 1) return Long.toString(diffInHours) + \" hour ago\";\n return Long.toString(diffInHours) + \" hours ago\";\n }\n\n else if (diffInMinutes > 0) {\n if (diffInMinutes == 1) return Long.toString(diffInMinutes) + \" minute ago\";\n return Long.toString(diffInMinutes) + \" minutes ago\";\n }\n\n else return \"Just now\";\n }",
"public CharSequence getCountdownText(Context context, Date futureDate) {\n StringBuilder countdownText = new StringBuilder();\n\n // Calculate the time between now and the future date.\n long timeRemaining = futureDate.getTime() - new Date().getTime();\n\n // If there is no time between (ie. the date is now or in the past), do nothing\n if (timeRemaining > 0) {\n Resources resources = context.getResources();\n // Calculate the days/hours/minutes/seconds within the time difference.\n // It's important to subtract the value from the total time remaining after each is calculated.\n // For example, if we didn't do this and the time was 25 hours from now,\n // we would get `1 day, 25 hours`.\n int days = (int) TimeUnit.MILLISECONDS.toDays(timeRemaining);\n timeRemaining -= TimeUnit.DAYS.toMillis(days);\n int hours = (int) TimeUnit.MILLISECONDS.toHours(timeRemaining);\n timeRemaining -= TimeUnit.HOURS.toMillis(hours);\n int minutes = (int) TimeUnit.MILLISECONDS.toMinutes(timeRemaining);\n timeRemaining -= TimeUnit.MINUTES.toMillis(minutes);\n int seconds = (int) TimeUnit.MILLISECONDS.toSeconds(timeRemaining);\n\n // For each time unit, add the quantity string to the output, with a space.\n if (days > 0) {\n countdownText.append(resources.getQuantityString(R.plurals.days, days, days));\n countdownText.append(\" \");\n }\n if (days > 0 || hours > 0) {\n countdownText.append(resources.getQuantityString(R.plurals.hours, hours, hours));\n countdownText.append(\" \");\n }\n if (days > 0 || hours > 0 || minutes > 0) {\n countdownText.append(resources.getQuantityString(R.plurals.minutes, minutes, minutes));\n countdownText.append(\" \");\n }\n if (days > 0 || hours > 0 || minutes > 0 || seconds > 0) {\n countdownText.append(resources.getQuantityString(R.plurals.seconds, seconds, seconds));\n countdownText.append(\" \");\n }\n }\n return countdownText.toString();\n }",
"private String getTimingt(Long pastvalue) {\n DateTime zulu = DateTime.now(DateTimeZone.UTC);\n // DateTimeFormatter formatter = DateTimeFormat.forPattern(\"HH:mm:ss am\");\n Date date = new Date(pastvalue);\n// formattter\n SimpleDateFormat formatter= new SimpleDateFormat(\"hh:mm a\");\n formatter.setTimeZone(TimeZone.getDefault());\n// Pass date object\n return formatter.format(date );\n /*\n long mint = TimeUnit.MILLISECONDS.toMinutes(zulu.toInstant().getMillis() - pastvalue);\n\n if (mint < 60) {\n if (mint > 1)\n return \"Hace \" + mint + \" minutos\";\n else\n return \"Hace \" + mint + \" minuto\";\n } else {\n long horas = TimeUnit.MILLISECONDS.toHours(zulu.toDate().getTime() - pastvalue);\n\n if (horas < 24) {\n if (horas > 1)\n return \"Hace \" + horas + \" horas\";\n else\n return \"Hace \" + horas + \" hora\";\n } else {\n long dias = TimeUnit.MILLISECONDS.toDays(zulu.toDate().getTime() - pastvalue);\n\n if (dias > 1) {\n return \"Hace \" + dias + \" dias\";\n } else\n return \"Hace \" + dias + \" dia\";\n }\n\n\n }*/\n }",
"public long getTimeDisplay(long nowm) {\n checkRunningExpired(nowm); // Pour éviter le cas (nowm - timeStart) > timeDef, cad nowm > timeExp, pour un timer\n long tacc = timeAcc;\n if (running) {\n tacc = tacc + nowm - timeStart;\n }\n long taus = timeAccUntilSplit;\n if (mode.equals(MODES.TIMER)) {\n tacc = -tacc;\n taus = -taus;\n }\n return (timeDef + (splitted ? taus : tacc)) % TIME_UNITS.DAY.DURATION_MS(); // => Retour à 00:00:00.00 après 23:59:59.99\n }",
"public static String humanReadableDate(Clock clock, LocalDateTime dateTime) {\n final int MINUTE = 60;\n final int TWOMINUTES = 2 * 60;\n final int HOUR = 60 * 60;\n final int TWOHOURS = 2 *60 *60;\n final int DAY = 24 * 60 * 60;\n final int TWODAYS = 2 * 24 * 60 * 60;\n\n final long timeElapsed = dateTime.until(LocalDateTime.now(clock), ChronoUnit.SECONDS);\n\n if (timeElapsed >= TWODAYS) {\n return timeElapsed / DAY + \" days ago\";\n }\n if (timeElapsed >= DAY) {\n return \"1 day ago\";\n }\n if (timeElapsed >= TWOHOURS) {\n return timeElapsed / HOUR + \" hours ago\";\n }\n if (timeElapsed >= HOUR) {\n return \"1 hour ago\";\n }\n if (timeElapsed >= TWOMINUTES) {\n return timeElapsed / MINUTE + \" minutes ago\";\n }\n if (timeElapsed >= MINUTE) {\n return \"1 minute ago\";\n }\n if (timeElapsed >= 2) {\n return timeElapsed + \" seconds ago\";\n }\n if (timeElapsed > 0) {\n return \"1 second ago\";\n }\n return \"just now\";\n }",
"public static String getPrintToTextTime() {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n return sdf.format(System.currentTimeMillis());\n }",
"private String currentTime()\t{\n\t\tCalendar c = Calendar.getInstance(); \n\n\t\tString seconds;\n\t\tif(c.get(Calendar.SECOND) < 10)\t{\n\t\t\tseconds = \"0\"+Integer.toString(c.get(Calendar.SECOND));\n\t\t} else {\n\t\t\tseconds = Integer.toString(c.get(Calendar.SECOND));\n\t\t}\n\n\t\tString minutes;\n\t\tif(c.get(Calendar.MINUTE) < 10)\t{\n\t\t\tminutes = \"0\"+Integer.toString(c.get(Calendar.MINUTE));\n\t\t} else {\n\t\t\tminutes = Integer.toString(c.get(Calendar.MINUTE));\n\t\t}\n\n\t\tString hours;\n\t\tif(c.get(Calendar.HOUR_OF_DAY) < 10)\t{\n\t\t\thours = \"0\"+Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\t} else {\n\t\t\thours = Integer.toString(c.get(Calendar.HOUR_OF_DAY));\n\t\t}\n\n\t\tString day;\n\t\tif(c.get(Calendar.DATE) < 10)\t{\n\t\t\tday = \"0\"+Integer.toString(c.get(Calendar.DATE));\n\t\t} else {\n\t\t\tday = Integer.toString(c.get(Calendar.DATE));\n\t\t}\n\n\t\tString month;\n\t\tif((c.get(Calendar.MONTH)+1) < 10)\t{\n\t\t\tmonth = \"0\"+Integer.toString(c.get(Calendar.MONTH)+1);\n\t\t} else {\n\t\t\tmonth = Integer.toString(c.get(Calendar.MONTH)+1);\n\t\t}\n\n\t\tString year;\n\t\tif(c.get(Calendar.YEAR) < 10)\t{\n\t\t\tyear = \"0\"+Integer.toString(c.get(Calendar.YEAR));\n\t\t} else {\n\t\t\tyear = Integer.toString(c.get(Calendar.YEAR));\n\t\t}\n\n\t\treturn day+\"/\"+month+\"/\"+year + \" \"+hours+\":\"+minutes+\":\"+seconds;\t\n\t}",
"public static String getEstimatedTimeElapsed(Date _DateTime) {\n\n\n String strJustNow,\n strSecsSingle, strSecsMultiple,\n strMinSingle, strMinMultiple,\n strHourSingle, strHourMultiple,\n strDaySingle, strDayMultiple,\n strDayYesterday, strDayTomorrow,\n strWeekSingle, strWeekMultiple,\n strMonthSingle, strMonthMultiple,\n strYearSingle, strYearMultiple,\n titlePast, titleFuture;\n\n if (!AppConfig.getInstance().isEnglishMode) {\n //Arabic mode\n strJustNow = \"الآن\";\n\n strSecsSingle = \"ثانيا\";\n strSecsMultiple = \"ثواني\";\n\n strMinSingle = \"دقيقة\";\n strMinMultiple = \"الدقائق\";\n\n strHourSingle = \"ساعة\";\n strHourMultiple = \"ساعات\";\n\n strDaySingle = \"يوم\";\n strDayMultiple = \"أيام\";\n strDayYesterday = \"في الامس\";\n strDayTomorrow = \"غدا\";\n\n strWeekSingle = \"أسبوع\";\n strWeekMultiple = \"أسابيع\";\n\n strMonthSingle = \"شهر\";\n strMonthMultiple = \"الشهور\";\n\n strYearSingle = \"سنة\";\n strYearMultiple = \"سنوات\";\n\n titlePast = \" منذ\";\n titleFuture = \" متبق\";\n } else {\n //Default mode\n strJustNow = \"Just now\";\n\n strSecsSingle = \"sec\";\n strSecsMultiple = \"secs\";\n\n strMinSingle = \"min\";\n strMinMultiple = \"mins\";\n\n strHourSingle = \"hr\";\n strHourMultiple = \"hrs\";\n\n strDaySingle = \"day\";\n strDayMultiple = \"days\";\n strDayYesterday = \"Yesterday\";\n strDayTomorrow = \"Tomorrow\";\n\n strWeekSingle = \"week\";\n strWeekMultiple = \"weeks\";\n\n strMonthSingle = \"month\";\n strMonthMultiple = \"months\";\n\n strYearSingle = \"year\";\n strYearMultiple = \"years\";\n\n titlePast = \" ago\";\n titleFuture = \" remaining\";\n }\n\n\n long secsPrevious = _DateTime.getTime() / 1000;\n long secsNow = System.currentTimeMillis() / 1000;\n\n // Calculate difference in milliseconds\n long diff = secsNow - secsPrevious;\n boolean isPastTime = diff > 0;\n\n diff = Math.abs(diff);\n\n // Calculate difference in seconds\n long diffSeconds = diff;\n\n // Calculate difference in minutes\n long diffMinutes = diff / (60);\n\n // Calculate difference in hours\n long diffHours = diff / (60 * 60);\n\n // Calculate difference in days\n long diffDays = diff / (60 * 60 * 24);\n\n // Calculate difference in weeks\n long diffWeeks = diff / (60 * 60 * 24 * 7);\n\n // Calculate difference in months\n long diffMonths = diff / (60 * 60 * 24 * 30);\n\n // Calculate difference in years\n long diffYears = diff / (60 * 60 * 24 * 365);\n\n\n String timeElapsed = \"\";\n\n String tempTitle = isPastTime ? titlePast : titleFuture;\n\n if (diffYears > 0) {\n timeElapsed = AppConfig.getInstance().numberToCurrLang(diffYears + \"\") +\n \" \" + (diffYears > 1 ? strYearMultiple : strYearSingle) + tempTitle;\n } else if (diffMonths > 0) {\n timeElapsed = AppConfig.getInstance().numberToCurrLang(diffMonths + \"\") +\n \" \" + (diffMonths > 1 ? strMonthMultiple : strMonthSingle) + tempTitle;\n } else if (diffWeeks > 0) {\n timeElapsed = AppConfig.getInstance().numberToCurrLang(diffWeeks + \"\") +\n \" \" + (diffWeeks > 1 ? strWeekMultiple : strWeekSingle) + tempTitle;\n } else if (diffDays > 0) {\n if (diffDays == 1) {\n timeElapsed = isPastTime ? strDayYesterday : strDayTomorrow;\n } else {\n timeElapsed = AppConfig.getInstance().numberToCurrLang(diffDays + \"\") +\n \" \" + strDayMultiple + tempTitle;\n }\n } else if (diffHours > 0) {\n timeElapsed = AppConfig.getInstance().numberToCurrLang(diffHours + \"\") +\n \" \" + (diffHours > 1 ? strHourMultiple : strHourSingle) + tempTitle;\n } else if (diffMinutes > 0) {\n timeElapsed = AppConfig.getInstance().numberToCurrLang(diffMinutes + \"\") +\n \" \" + (diffMinutes > 1 ? strMinMultiple : strMinSingle) + tempTitle;\n } else if (diffSeconds > 10) {\n timeElapsed = AppConfig.getInstance().numberToCurrLang(diffSeconds + \"\") +\n \" \" + (diffSeconds > 1 ? strSecsMultiple : strSecsSingle) + tempTitle;\n } else {//diff few Seconds\n timeElapsed = strJustNow;\n }\n\n return timeElapsed;\n\n }",
"public static String getNowTime(){\r\n\t\tDate date = new Date();\r\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tString time = format.format(date);\r\n\t\treturn time;\r\n\t}",
"private String getTimingString() {\n return DateTimeHandler.STANDARD_DATETIME_FORMAT.format(deadline);\n }",
"private String getFormattedTime(int totalElapsedSeconds)\n {\n int minutes = totalElapsedSeconds / 60;\n int seconds = totalElapsedSeconds - (minutes * 60);\n String timerText = String.format(\"%02d\", minutes)\n + \":\" + String.format(\"%02d\", seconds);\n return timerText;\n }",
"@NonNull\n private static String formattedDurationFromNow(DateTime dateTime) {\n Duration duration = new Duration(DateTime.now(), dateTime);\n return new StringBuilder().append(\n new DecimalFormat(\"##\").format(duration.getStandardMinutes())).toString();\n }",
"public String far(Date date){\n Date d2 = new Date();\n// 两个日期相减\n long cha = d2.getTime() - date.getTime();\n// 拆分天数,小时,分钟\n long day = cha / (24 * 60 * 60 * 1000);\n long hour = (cha / (60 * 60 * 1000) - day * 24);\n long min = ((cha / (60 * 1000)) - day * 24 * 60 - hour * 60);\n String time = \"出错\";\n int a = 0;\n //显示天\n if (day > 0) {\n a = (int) day;\n time = a + \"天前\";\n } else if (day == 0) {\n// 显示小时\n if (hour > 0) {\n a = (int) hour;\n time = a + \"小时前\";\n }\n //显示分钟\n else if (hour == 0) {\n if (min > 0) {\n a = (int) min;\n time = a + \"分钟前\";\n }\n if(min==0){\n time = \"1分钟前\";\n }\n }\n }\n return time;\n }",
"String getTime(){\n\t\tCalendar c = Calendar.getInstance();\n int mseconds = c.get(Calendar.MILLISECOND);\n String currentDateandTime = mDateFormat.format(new Date()) + String.format(\"-%04d\", mseconds);\n \n return currentDateandTime;\n\t}",
"private CharSequence getTimeDifference(String formattedDate) {\n long currentTime = System.currentTimeMillis();\n long publicationTime = getDateInMillis(formattedDate);\n return DateUtils.getRelativeTimeSpanString(publicationTime, currentTime,\n DateUtils.SECOND_IN_MILLIS);\n }",
"public String getCurrentTime(String timeForm) {\n DateFormat timeFormat = new SimpleDateFormat(timeForm);\n\n //get current date time with Date()\n Date time = new Date();\n\n // Now format the date\n String time1 = timeFormat.format(time);\n\n return time1;\n }",
"public static String getPastTime(int n) {\n Date date = new Date(System.currentTimeMillis());\n SimpleDateFormat df = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n String dt = df.format(date);\n date = new Date(System.currentTimeMillis() - n * 60 * 60 * 1000);\n dt = df.format(date);\n return dt;\n }",
"public void printTimeRemaining() {\n long timeInSeconds = getTimeRemaining();\n long seconds = timeInSeconds % 60;\n long minutes = timeInSeconds / 60;\n System.out.println(\"Time until the oxygen supply runs out: \" + minutes \n + \" minutes and \" + seconds + \" seconds.\");\n }",
"public String getCurrentDateAndTime(){\n return dateTimeFormatter.format(current);\n }",
"private String getCurrentTime() {\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n Date date = new Date();\n return dateFormat.format(date);\n }",
"private static String getFormattedCurrentDateAndTime(){\n StringBuilder dateAndTime = new StringBuilder();\n LocalDateTime now = LocalDateTime.now();\n\n String hour = Integer.toString(now.getHour());\n String minute = Integer.toString(now.getMinute());\n\n if (hour.length() == 1){\n hour = \"0\" + hour;\n }\n if (minute.length() == 1){\n minute = \"0\" + minute;\n }\n\n //Creates \"XX/XX/XX @ XX:XX\" format (24 hours)\n dateAndTime.append(now.getMonthValue()).append(\"/\").\n append(now.getDayOfMonth()).append(\"/\").\n append(now.getYear()).append(\" @ \").\n append(hour).append(\":\").\n append(minute);\n\n return dateAndTime.toString();\n }",
"@Override\n public String toString() {\n StringBuilder elapsedTime = new StringBuilder();\n\n if(days > 0) {\n elapsedTime.append(getDays()).append(\" day\");\n if(days > 1) {\n elapsedTime.append(\"s\");\n }\n \n int remainingElements = 0;\n if(hours> 0) remainingElements++;\n if(minutes> 0) remainingElements++;\n if(seconds> 0) remainingElements++;\n \n if(remainingElements > 0) {\n if(remainingElements == 1) {\n elapsedTime.append(\" and \");\n }\n else elapsedTime.append(\", \");\n }\n }\n \n if (hours > 0) {\n elapsedTime.append(getHours()).append(\" hour\");\n if (hours > 1) {\n elapsedTime.append(\"s\");\n }\n\n int remainingElements = 0;\n if (minutes > 0) remainingElements++;\n if (seconds > 0) remainingElements++;\n\n if (remainingElements > 0) {\n if (remainingElements == 1) {\n elapsedTime.append(\" and \");\n } else {\n elapsedTime.append(\", \");\n }\n }\n \n }\n \n if (minutes > 0) {\n elapsedTime.append(getMinutes()).append(\" minute\");\n if (minutes > 1) {\n elapsedTime.append(\"s\");\n }\n if (seconds > 0) {\n elapsedTime.append(\" and \");\n }\n }\n \n if (seconds > 0) {\n elapsedTime.append(getSeconds()).append(\" second\");\n if (seconds > 1) {\n elapsedTime.append(\"s\");\n }\n }\n \n return elapsedTime.toString();\n }",
"public String getTimeString() {\n int hour = date.get(Calendar.HOUR);\n int minute = date.get(Calendar.MINUTE);\n\n String AM_PM = \"PM\";\n if (date.get(Calendar.AM_PM) == Calendar.AM) AM_PM = \"AM\";\n\n String hour_fixed = String.valueOf(hour);\n if (hour == 0) hour_fixed = \"12\";\n\n String minute_fixed = String.valueOf(minute);\n while (minute_fixed.length() < 2) {\n minute_fixed = \"0\" + minute_fixed;\n }\n\n return hour_fixed + \":\" + minute_fixed + ' ' + AM_PM;\n }",
"public String getTime()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"HH:mm\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }",
"public String getSystemDateTime() {\n\t\tjava.text.SimpleDateFormat sdfDate = new java.text.SimpleDateFormat(\"yyyy/MM/dd\");\n java.text.SimpleDateFormat sdfTime = new java.text.SimpleDateFormat(\"HH:mm\");\n Date now = new Date();\n String strDate = sdfDate.format(now);\n String strTime = sdfTime.format(now);\n System.out.println(\"Date: \" + strDate);\n System.out.println(\"Time: \" + strTime); \n return \"date\"+strDate+\" \"+strTime;\n\t}",
"public static String ShowDate(){\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss.SS a\");\n String HH_MM = sdf.format(date);\n return HH_MM;\n }",
"private String showWasThenNow() {\n if (then1Price == null && then2Price == null)\r\n return showWasNow();\r\n\r\n return String.format(\"Was %s, then %s, now %s\",\r\n getFormattedPrice(wasPrice),\r\n getFormattedPrice((then2Price != null) ? then2Price : then1Price),\r\n getFormattedPrice(nowPrice));\r\n }",
"public String getCurrentTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"String getSpokenDateString(Context context) {\n int flags = DateUtils.FORMAT_SHOW_TIME | DateUtils.FORMAT_SHOW_DATE;\n return DateUtils.formatDateTime(context, mDeliveryTime, flags);\n }",
"public String getFormattedTimeFromStart() {\r\n if (history.getNumberOfJumpsSoFar() == 0) {\r\n return \"00:00\";\r\n }\r\n\r\n double time = history.getTimeFromStart();\r\n double maxTime = 59.59;\r\n if (time < maxTime) {\r\n return String.format(\"%02d:%02d\", (int) (time % 60), (int) (time * 100 % 100));\r\n } else {\r\n return \"59:59\";\r\n }\r\n }",
"public String getCurrentDateTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public String getCurrentTime() {\r\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HH:mm:ss\"); //https://www.javatpoint.com/java-get-current-date\r\n LocalDateTime now = LocalDateTime.now();\r\n return dtf.format(now);\r\n }",
"public String getEstimatedRemainingTime() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return \"N/A\";\n \n long eta = d-(System.currentTimeMillis()-startTime);\n if(eta<=0) return \"N/A\";\n \n return Util.getTimeSpanString(eta);\n }",
"public static String timeCalc(String createdAt){\n String relativeDate = Utility.relativeTime(createdAt);\n String d = Utility.formatDate(createdAt);\n return d;\n\n }",
"public String getTotalTime() {\r\n if (recipe != null) {\r\n return readableTime(recipe.getCookTime() + recipe.getPrepTime());\r\n } else {\r\n return \"\";\r\n }\r\n }",
"public static String timeAgo(Context c, long dateStar, long dateEnd) {\n\n Period p = new Period(dateStar, dateEnd);\n //Log.d(tag, \" periodDefault ---> \" + PeriodFormat.getDefault().print(p));\n\n if (p.getYears() != 0) {\n if (p.getYears() == 1) {\n return p.getYears() + \" \" + c.getString(R.string.date_year)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getYears() + \" \" + c.getString(R.string.date_years)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getMonths() != 0) {\n if (p.getMonths() == 1) {\n return p.getMonths() + \" \" + c.getString(R.string.date_month)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getMonths() + \" \" + c.getString(R.string.date_months)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getWeeks() != 0) {\n if (p.getWeeks() == 1) {\n return p.getWeeks() + \" \" + c.getString(R.string.date_week)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getWeeks() + \" \" + c.getString(R.string.date_week)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getDays() != 0) {\n if (p.getDays() == 1) {\n return p.getDays() + \" \" + c.getString(R.string.date_day)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getDays() + \" \" + c.getString(R.string.date_days)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getHours() != 0) {\n if (p.getHours() == 1) {\n return p.getHours() + \" \" + c.getString(R.string.date_hour)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getHours() + \" \" + c.getString(R.string.date_hours)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getMinutes() != 0) {\n if (p.getMinutes() == 1) {\n return p.getMinutes() + \" \" + c.getString(R.string.date_minute)\n + \" \" + c.getString(R.string.date_suffix_ago);\n } else {\n return p.getMinutes() + \" \" + c.getString(R.string.date_minutes)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n if (p.getMinutes() != 0) {\n if (p.getSeconds() <= 1) {\n return c.getString(R.string.date_just_now);\n } else {\n return p.getSeconds() + \" \" + c.getString(R.string.date_seconds)\n + \" \" + c.getString(R.string.date_suffix_ago);\n }\n }\n\n Calendar calendar = Calendar.getInstance();\n Calendar.getInstance().setTimeInMillis(dateStar);\n return Commons.dateToString(calendar.getTime(), c);\n }",
"public static String getTimeStamp() {\r\n\r\n\t\tlong now = (System.currentTimeMillis() - startTime) / 1000;\r\n\r\n\t\tlong hours = (now / (60 * 60)) % 24;\r\n\t\tnow -= (hours / (60 * 60)) % 24;\r\n\r\n\t\tlong minutes = (now / 60) % 60;\r\n\t\tnow -= (minutes / 60) % 60;\r\n\r\n\t\tlong seconds = now % 60;\r\n\r\n\t return String.format(\"%02d:%02d:%02d\", hours, minutes, seconds);\r\n\t}",
"public static String getTimeDuration(Date _DateTime, String _DefaultFormat, boolean isSingleUnit) {\n\n boolean oneUnitPicked = false;\n\n //TimeZone Offset\n Calendar rightNow = Calendar.getInstance();\n long offset = 0;//rightNow.get(Calendar.ZONE_OFFSET) +rightNow.get(Calendar.DST_OFFSET);\n\n long currTimeStamp = System.currentTimeMillis() - offset;\n\n long duration = currTimeStamp - _DateTime.getTime();\n\n StringBuffer res = new StringBuffer();\n long temp = 0;\n if ((duration) >= NOW && duration < (ONE_DAY * 6)) {\n temp = duration / ONE_DAY;\n if (temp > 0) {\n duration -= temp * ONE_DAY;\n res.append(temp).append(\" day\").append(temp > 1 ? \"s\" : \"\");\n res.append((duration >= ONE_MINUTE && !isSingleUnit) ? \", \" : \"\");\n oneUnitPicked = isSingleUnit ? true : false;\n }\n\n temp = duration / ONE_HOUR;\n if (temp > 0 && !oneUnitPicked) {\n duration -= temp * ONE_HOUR;\n res.append(temp).append(\" hour\").append(temp > 1 ? \"s\" : \"\");\n res.append((duration >= ONE_MINUTE && !isSingleUnit) ? \", \" : \"\");\n oneUnitPicked = isSingleUnit ? true : false;\n }\n\n temp = duration / ONE_MINUTE;\n if (temp > 0 && !oneUnitPicked) {\n duration -= temp * ONE_MINUTE;\n res.append(temp).append(\" minute\").append(temp > 1 ? \"s\" : \"\");\n res.append((duration >= ONE_SECOND && !isSingleUnit) ? \" and \" : \"\");\n oneUnitPicked = isSingleUnit ? true : false;\n }\n\n temp = duration / ONE_SECOND;\n if (temp > 0 && !oneUnitPicked) {\n res.append(temp).append(\" second\").append(temp > 1 ? \"s\" : \"\");\n } else if (temp == 0 && !oneUnitPicked) {\n res.append(\"a moment\");\n }\n res.append(\" ago\");\n return res.toString();\n } else {\n //Ahead of time\n res.append(getFormattedDate(_DateTime, _DefaultFormat));\n return res.toString();\n }\n }",
"private void updateCountdownText() {\r\n int minutes = (int) (timeLeftInMillis / 1000) / 60;\r\n int seconds = (int) (timeLeftInMillis / 1000) % 60;\r\n\r\n String timeFormatted = String.format(Locale.getDefault(), \"%02d:%02d\", minutes, seconds);\r\n\r\n mTimer.setText(timeFormatted);\r\n }",
"public String getTime()\r\n\t{\r\n\t\treturn displayString;\r\n\t}",
"public static String whenFromNow(long whenMillis, long nowMillis) {\n if (whenMillis == nowMillis) {\n return \"now\";\n }\n StringBuilder sb = new StringBuilder();\n String lastWord = (whenMillis > nowMillis) ? \"later\" : \"ago\";\n long diff = Math.abs(whenMillis - nowMillis);\n sb.append(toHumanReadableTime(diff)).append(' ').append(lastWord);\n return sb.toString();\n }",
"long getSince();",
"private static String timeFor(Date date)\n\t{\n\t\tDateFormat df = new InternetDateFormat();\n\t\tString theTime = df.format(date);\n\t\treturn theTime;\n\t}",
"public String getDifference(long now, long then){\n\t\t\n\t\ttry {\n\t if(now > then) {\n\t return DateUtils.formatElapsedTime((now - then)/1000L);\n\t }\n\t else {\n\t return \"Time Error!\";\n\t }\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLog.e(\"Error: \", \"\" + e);\n\t\t\treturn \"Time Error!\";\n\t\t}\n }",
"public String getElapsedTime() {\n /**\n * Joda instruction credit to BalusC @ stackoverflow.com\n * http://stackoverflow.com/posts/2179831/revisions\n */\n Period delta = new Period(getOccurrenceTime(), DateTime.now());\n return\n // 1+ weeks\n (delta.getWeeks() >= 1) ? delta.getWeeks()+\"w\" :\n // 1+ days\n (delta.getDays() >= 1) ? delta.getDays()+\"d\" :\n // 1+ hours\n (delta.getHours() >= 1) ? delta.getHours()+\"h\" :\n // 1+ minutes\n (delta.getMinutes() >= 1) ? delta.getMinutes()+\"m\" :\n // 1+ seconds\n delta.getSeconds()+\"s\";\n }",
"public String getElapsedTime() {\n\n long elapsed;\n int mins;\n int secs;\n int millis;\n\n if (running) {\n elapsed = System.currentTimeMillis() - startTime;\n } else {\n elapsed = stopTime - startTime;\n }\n\n mins = (int) (elapsed / 60000);\n secs = (int) (elapsed - mins * 60000) / 1000;\n millis = (int) (elapsed - mins * 60000 - secs * 1000);\n\n //Keeps 3 digits when a second rolls over. Perhaps find a better way of doing this\n return (String.format(\"%02d\", mins) + \":\" + String.format(\"%02d\", secs) + \":\"\n + String.format(\"%03d\", millis));\n }",
"public static String getCurrentDate() {\n\n long now = System.currentTimeMillis();\n if ((now - currentDateGenerated) > 1000) {\n synchronized (format) {\n if ((now - currentDateGenerated) > 1000) {\n currentDateGenerated = now;\n currentDate = format.format(new Date(now));\n }\n }\n }\n return currentDate;\n\n }",
"public static String currentDateTime() {\r\n Calendar c = Calendar.getInstance();\r\n return String.format(\"%tB %te, %tY%n%tl:%tM %tp%n\", c, c, c, c, c, c);\r\n }",
"public String getCurrentSeconds() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public static String getTime() {\r\n\r\n\t\t//Gets current date and time\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tDate date = new Date();\r\n\t\tcurrDateTime = dateFormat.format(date);\r\n\t\treturn currDateTime;\r\n\t}",
"public static String lagCurrentDate() {\n LocalDate localDate = LocalDate.now();\n return fraEngTilNorskDato(localDate.toString()) + \" \" + getKlokkeSlett();\n }",
"public static String getDateString(){\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd__HH-mm-ss\");\n\t\t\treturn sdf.format(now.getTime());\n\t }",
"public String displayClock()\r\n\t{\r\n\t\treturn stringFormatter(numberDisplay1.getHour()) + \":\"\r\n\t\t\t\t+ stringFormatter(numberDisplay1.getMinute()) + \":\"\r\n\t\t\t\t+ stringFormatter(numberDisplay1.getSecond());\r\n\t}",
"public String getTime() {\n String show = time;\n return show;\n }",
"private void PrintTimeToET() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tjetztStdTxt.setText(Integer.toString(c.get(Calendar.HOUR_OF_DAY)));\n\t\tjetztMinTxt.setText(Integer.toString(c.get(Calendar.MINUTE)));\n\n\t}",
"private String getCurrentDate() {\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\n Calendar cal = Calendar.getInstance();\n return dateFormat.format(cal.getTime());\n }",
"public static void displayCountdown(String dueDate){\n \n System.out.println(\"Today's Date: \" + getCurrentDate());\n System.out.println(\"Due Date: \" + dueDate);\n if(countDaysLeft(getCurrentDate(),dueDate) == 0){\n System.out.println(\"The due date has passed! :( Better luck next time!\");\n }\n else{\n System.out.println(\"You have \" + countDaysLeft(getCurrentDate(),dueDate) + \" days left. You can do it!\");\n }\n }",
"private static String getPrettyTimeDiffInMinutes(Calendar c1, Calendar c2) {\n\t\tif (c1.getTimeZone() == null || c2.getTimeZone() == null \n\t\t\t\t|| c1.getTimeZone().getRawOffset() != c2.getTimeZone().getRawOffset()) {\n\t\t\treturn \"N.A.\";\n\t\t}\n\t\telse {\n\t\t\t//Log.d(TAG, \"c2: \" + c2 + \", c1: \" + c1);\n\t\t\tlong diff = c2.getTimeInMillis() - c1.getTimeInMillis();\n\t\t\t\n\t\t\tif (diff / Utils.DAY_SCALE != 0) {\n\t\t\t\treturn \"many days ago\";\n\t\t\t}\n\t\t\telse if (diff / Utils.HOUR_SCALE != 0) {\n\t\t\t\treturn \"many hours ago\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn (diff / Utils.MINUTE_SCALE) + \" min(s) ago\";\n\t\t\t}\n\t\t}\n\t}",
"public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }",
"public static String formatDateRelative(Date date) {\n return DateUtils.getRelativeTimeSpanString(date.getTime(), System.currentTimeMillis(), DateUtils.SECOND_IN_MILLIS, 0).toString();\n }",
"public String gameTimeToText()\n {\n // CALCULATE GAME TIME USING HOURS : MINUTES : SECONDS\n if ((startTime == null) || (endTime == null))\n return \"\";\n long timeInMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n return timeToText(timeInMillis);\n }",
"public String getTimeString()\n\t{\n\t\treturn TimeUtils.getTimeString(this.timesCurrentMillis);\n\t}",
"public static String getLastUpdateString(Date time) {\r\n if (time == null) {\r\n return \"\";\r\n }\r\n return getAmountOfTime(time) + \" ago\";\r\n }",
"public static String displayTimeDate(Calendar cal)\n\t{\n\t\tString out = \"\";\n\t\tint year = cal.get(Calendar.YEAR);\n\t\tint month = cal.get(Calendar.MONTH) + 1;\n\t\tint day = cal.get(Calendar.DAY_OF_MONTH);\n\t\tint hour = cal.get(Calendar.HOUR_OF_DAY);\n\t\tint minute = cal.get(Calendar.MINUTE);\n\t\tint second = cal.get(Calendar.SECOND);\n\t\tint zone = cal.get(Calendar.ZONE_OFFSET) / (60 * 60 * 1000) * 4;\n\t\t\n\t\tString year_str = String.valueOf(year);\n\t\tString month_str = String.valueOf(month);\n\t\tString day_str = String.valueOf(day);\n\t\tString hour_str = String.valueOf(hour);\n\t\tString minute_str = String.valueOf(minute);\n\t\tString second_str = String.valueOf(second);\n\t\tString zone_str = String.valueOf(zone);\n\t\t\n\t\tif (year_str.length() < 2) year_str = \"0\" + year_str;\n\t\tif (month_str.length() < 2) month_str = \"0\" + month_str;\n\t\tif (day_str.length() < 2) day_str = \"0\" + day_str;\n\t\tif (hour_str.length() < 2) hour_str = \"0\" + hour_str;\n\t\tif (minute_str.length() < 2) minute_str = \"0\" + minute_str;\n\t\tif (second_str.length() < 2) second_str = \"0\" + second_str;\n\t\t\n\t\tout = hour_str + \":\" + minute_str + \":\" + second_str + \" \";\n\t\tout = out + day_str + \"-\" + month_str + \"-\" + year_str; //+\" GMT\"+zone_str ;\n\t\treturn out;\n\t}",
"public String getTimeInString() {\n int minutes = (time % 3600) / 60;\n int seconds = time % 60;\n String timeString = String.format(\"%02d:%02d\", minutes, seconds);\n\n return timeString;\n }",
"private void display(String msg) {\n String time = simpleDateFormat.format(new Date()) + \" | \" + msg;\n System.out.println(time);\n }",
"public static final String CurrentTime() {\n\t\t\n\t\tfinal SimpleDateFormat DF = new SimpleDateFormat(\"HH:mm:ss\");\n\t\treturn DF.format(new Date());\n\t}",
"public String getTimeLeft() {\n return NumberToTimeLeft.convert(_dateExpiration - System.currentTimeMillis(),true);\n }",
"public static String converTimeToReadable(long time) {\n // check if its in the last minute:\n long diff = (new Date()).getTime() - time;\n // TimeUnit.MILLISECONDS.toMinutes(diff)\n\n if (diff / 60000 < 1) {\n return \"now\";\n }\n\n // if its more then a minute, then write time\n String str = \"\";\n Date date = new Date(time);\n\n try {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date currentDay = sdf.parse(sdf.format(new Date()));\n Date lastLocationDay = sdf.parse(sdf.format(time));\n long daysDifference = TimeUnit.MILLISECONDS\n .toDays(currentDay.getTime() - lastLocationDay.getTime());\n\n // ispis:\n str += getNameOfTheDay(daysDifference, lastLocationDay);\n\n } catch (ParseException ex) {\n // if something fails, just write the date\n str += new SimpleDateFormat(\"dd.MM.yyyy\").format(date);\n }\n\n /*\n String dayOfTheWeek = (String) DateFormat.format(\"EEEE\", date); // Thursday\n String day = (String) DateFormat.format(\"dd\", date); // 20\n String monthString = (String) DateFormat.format(\"MMM\", date); // Jun\n String monthNumber = (String) DateFormat.format(\"MM\", date); // 06\n String year = (String) DateFormat.format(\"yyyy\", date); // 2013\n */\n\n str += \", \";\n str += new SimpleDateFormat(\"HH:mm\").format(date);\n\n return str;\n }",
"public String getTimeString() {\n // Converts slot to the minute it starts in the day\n int slotTimeMins =\n SlopeManagerApplication.OPENING_TIME * 60 + SESSION_LENGTHS_MINS * getSlot();\n\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, slotTimeMins/60);\n cal.set(Calendar.MINUTE, slotTimeMins % 60);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm\");\n return sdf.format(cal.getTime());\n }",
"private void showTime()\n {\n showText(\"Time: \" + time, 700, 25);\n }",
"public String getCreatedAtString() {\n String createdAt = \"\";\n\n // get the time in millis for the created at\n long createdDate = getCreatedAt().getTime();\n\n // get the time in millis for now\n long currentDate = new Date().getTime();\n\n int secondsBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.SEC);\n\n // get the number of minutes in between\n int minutesBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.MIN);\n\n // get the number of hours in between\n int hoursBetween = (int) TimeUtils.getTimeSpan(createdDate, currentDate, TimeConstants.HOUR);\n\n // if less than 1 minute ago return \"minutes ago\n if (secondsBetween < 60) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.SECOND_IN_MILLIS).toString();\n }\n\n // if less than 1 hour ago return \"minutes ago\n if (minutesBetween >= 1 && minutesBetween < 60) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.MINUTE_IN_MILLIS).toString();\n }\n\n // if less than 24 hours ago or greater than 1 return \"hours ago\"\n if (hoursBetween >= 1 && hoursBetween < 24) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.HOUR_IN_MILLIS).toString();\n }\n\n // if more than 24 hours ago return \"days ago\"\n if (hoursBetween >= 24) {\n createdAt = DateUtils.getRelativeTimeSpanString(createdDate, currentDate, DateUtils.DAY_IN_MILLIS).toString();\n }\n\n return createdAt;\n }",
"public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }",
"private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }",
"private static String getDate()\n\t{\n\t\tString dateString = null;\n\t\tDate sysDate = new Date( System.currentTimeMillis() );\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yy HH:mm:ss\");\n\t\tdateString = sdf.format(sysDate);\n\t\treturn dateString;\n\t}",
"public static String timeToString(Date date)\r\n/* 24: */ {\r\n/* 25: 31 */ return sdfTime.format(date);\r\n/* 26: */ }",
"public static String getDate()\r\n {\r\n Date now = new Date();\r\n DateFormat df = new SimpleDateFormat (\"yyyy-MM-dd'T'hh-mm-ss\");\r\n String currentTime = df.format(now);\r\n return currentTime; \r\n \r\n }",
"private void advanceTime() {\r\n myCurrentTimeLabel.setText(DateFormat.getDateTimeInstance().format(new Date()));\r\n }",
"public String getTime(){\r\n\t\tDate date = new GregorianCalendar().getTime();\r\n\r\n\t\tString time= new SimpleDateFormat(\"HH:mm:ss\").format(date.getTime());\r\n\t\t\r\n\t\treturn time;\r\n\t}",
"public String getDisplayValue()\n {\n\t\t\t\tString time_str;\n\t\t\t\tif (hours.getValue()<12&&minutes.getValue()<10) {\n time_str = \"0\" + hours.getValue()+ \": 0\" + minutes.getValue();\n }\n\t\t\t\tif (hours.getValue()<12) {\n time_str = \"0\" + hours.getValue()+ \": \" + minutes.getValue();\n } else if (minutes.getValue()<10) {\n time_str = hours.getValue()+\": 0\"+ minutes.getValue();\n } else {\n time_str = hours.getValue()+\":\"+ minutes.getValue();\n }\n\t\t\t\treturn time_str;\n }",
"private void showTime(){\r\n System.out.println(df.format(getHours()) + \":\" + df.format(getMinutes()+ \"\\n\"));\r\n }",
"private static String getTime() {\n\t\tDate getDate = new Date();\n\t\tString timeFormat = \"M/d/yy hh:mma\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(timeFormat);\n\t\treturn \"[\" + sdf.format(getDate) + \"]\\t\";\n\t}",
"public static String getTime(Date date)\n\t{\n\t\treturn getFormatString(date, getTimeFormat());\n\t}",
"public static String now() {\n return dateTimeFormatZ.format(new Date());\n }",
"public static void showMeswithTime(String str){\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\tString date = df.format(new Date());\r\n\t\tSystem.out.println(date+\" : \"+str);\r\n\t}",
"public String getCurrentDateTime(){\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\", Locale.getDefault()\n );\n Date date = new Date();\n return simpleDateFormat.format(date);\n }",
"public static String getCurrentDateTimeFull() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public static String GetRunTime(Date starttime, Date stoptime) {\n String result = \"\";\n long diff = 0;\n long mills = 0;\n long x = 0;\n long seconds = 0;\n long minutes = 0;\n long hours = 0;\n\n diff = stoptime.getTime() - starttime.getTime();\n mills = diff % 1000;\n x = diff / 1000;\n seconds = x % 60;\n x /= 60;\n minutes = x % 60;\n x /= 60;\n hours = x % 24;\n\n result = String.format(\"%d:%d:%d.%d\", hours, minutes, seconds, mills);\n\n return result;\n }",
"java.lang.String getTime();",
"private String formatDuration(long remaining) {\n\t\tif (remaining < 1000) {\n\t\t\treturn \"< 1 second\";\n\t\t} else if (remaining < 60000) {\n\t\t\treturn remaining / 1000 + \" seconds\";\n\t\t} else if (remaining < 3600000) {\n\t\t\treturn remaining / 60000 + \" minutes\";\n\t\t} else if (remaining < 86400000) {\n\t\t\treturn remaining / 3600000 + \" hours\";\n\t\t} else {\n\t\t\treturn remaining / 86400000 + \" days\";\n\t\t}\n\t}",
"private String timeToAgo(Long timestamp){\n\n\n Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\"));\n Log.d(TAG, \"timeToAgo:TimeZone :\"+TimeZone.getTimeZone(\"GMT\"));\n long time = cal.getTimeInMillis();\n Log.d(TAG, \"timeToAgo: time with cal : \"+time);\n long curTime = System.currentTimeMillis() / 1000 + 32400;\n Log.d(TAG, \"timeToAgo: curTime : \" + curTime);\n long diffTime = (curTime - timestamp); //1000으로 나눠주는 이유는 millisecond가 아닌 second만 신경을 써줄 것이므로\n Log.d(TAG, \"timeToAgo: diffTime \" + diffTime);\n long hour =diffTime/3600;\n Log.d(TAG, \"timeToAgo: hour \"+ hour);\n Log.d(TAG, \"timeToAgo: timestamp : \"+timestamp);\n diffTime =diffTime%3600;\n long min = diffTime/60;\n long sec = diffTime%60;\n\n String ret = \"\";\n\n\n if(hour > 24){\n ret = new SimpleDateFormat(\"MM/dd\").format(new Date(timestamp));\n\n if (hour>8760){\n ret = new SimpleDateFormat(\"MM/dd/yyyy\").format(new Date(timestamp));\n }\n }\n else if(hour > 0){\n ret = hour+\" hours ago\";\n }\n else if(min > 0){\n ret = min+\" mins ago\";\n }\n else if(sec > 0){\n ret = \"just now!\";\n }\n else{\n ret = new SimpleDateFormat(\"MM/dd\").format(new Date(timestamp));\n }\n\n return ret;\n }",
"public static String getStrDate(Date date) {\n //TODO get date\n SimpleDateFormat formatter;\n if (DateUtils.isToday(date.getTime())) {\n formatter = new SimpleDateFormat(\"HH:mm\");\n return formatter.format(date);\n }\n formatter = new SimpleDateFormat(\"MMM dd\");\n return formatter.format(date);\n }",
"public String getNiceDate(){\n\t\treturn sDateFormat.format(mTime);\n\t}",
"private String getFinalTimeString() {\n double fltTime = (double)(lngTimelineDataAmountInRmsFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime);\n }",
"public static String formatTime(long timeDiff){\n StringBuilder buf = new StringBuilder();\n long hours = timeDiff / (60*60*1000);\n long rem = (timeDiff % (60*60*1000));\n long minutes = rem / (60*1000);\n rem = rem % (60*1000);\n long seconds = rem / 1000;\n\n if (hours != 0){\n buf.append(hours);\n buf.append(\" hrs, \");\n }\n if (minutes != 0){\n buf.append(minutes);\n buf.append(\" mins, \");\n }\n\n if (seconds != 0) {\n buf.append(seconds);\n buf.append(\" sec\");\n }\n\n if (timeDiff < 1000) {\n buf.append(timeDiff);\n buf.append(\" msec\");\n }\n return buf.toString();\n }",
"private void printDeltaTime\n\t\t(PrintWriter out,\n\t\t long now,\n\t\t long then)\n\t\t{\n\t\tout.print ((now - then + 500L) / 1000L);\n\t\tout.print (\" sec\");\n\t\t}",
"public String getElapsed() {\n\t\tString timeFormatted = \"\";\n\t\ttimeFormatted = this.formatTime(this.getElapsedTicks());\n\t\treturn timeFormatted;\n\t}",
"private static String time() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH-mm-ss \");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}",
"public static String timeAsLabelStr(long totalTime) {\n long second = totalTime / 1000 % 60;\n long minute = totalTime / (1000 * 60) % 60;\n long hour = totalTime / (1000 * 60 * 60);\n\n // build string (checking for zeroes)\n String str = String.format(\"%d sec\", second);\n if (minute > 0) str = String.format(\"%d min \", minute) + str;\n if (hour > 0) str = String.format(\"%d hrs \", hour) + str;\n\n return str;\n }",
"String getSleepTime(long totalSleepTime) {\n\t\tString sleep = String.format(\"%d hr(s), %d min(s)\", \n\t\t\t TimeUnit.MILLISECONDS.toHours(totalSleepTime),\n\t\t\t (TimeUnit.MILLISECONDS.toMinutes(totalSleepTime) - \n\t\t\t TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(totalSleepTime)))\n\t\t\t);\n\t\treturn sleep;\n\t}"
]
| [
"0.7378789",
"0.6860902",
"0.6749931",
"0.66463894",
"0.6628086",
"0.6550822",
"0.65324324",
"0.6510431",
"0.6440539",
"0.6391265",
"0.6378448",
"0.6359724",
"0.634627",
"0.6297798",
"0.62924874",
"0.6262588",
"0.6237157",
"0.62287825",
"0.6218305",
"0.62164426",
"0.6200229",
"0.61989534",
"0.6195355",
"0.6150772",
"0.6140359",
"0.6139362",
"0.6127923",
"0.611723",
"0.60925317",
"0.6090933",
"0.6078774",
"0.6071137",
"0.60686976",
"0.6066929",
"0.60575604",
"0.6031401",
"0.6025142",
"0.5997805",
"0.5988119",
"0.5981385",
"0.5974268",
"0.59742385",
"0.5968423",
"0.59674853",
"0.5965868",
"0.59655887",
"0.59645754",
"0.5959535",
"0.5931492",
"0.5926292",
"0.5926278",
"0.5925557",
"0.5923587",
"0.5921698",
"0.5919934",
"0.59193265",
"0.591739",
"0.59169006",
"0.59107596",
"0.5907669",
"0.5904612",
"0.58945876",
"0.5893297",
"0.5889161",
"0.58831537",
"0.5879847",
"0.58722943",
"0.5869163",
"0.58690065",
"0.5855363",
"0.5851779",
"0.58464134",
"0.5846327",
"0.5844728",
"0.5844013",
"0.5824181",
"0.581521",
"0.58070636",
"0.5799284",
"0.5796572",
"0.5793727",
"0.5793081",
"0.57921284",
"0.5784043",
"0.57734895",
"0.5762424",
"0.57586515",
"0.5747827",
"0.5745332",
"0.57452637",
"0.57417405",
"0.57412666",
"0.57244027",
"0.5718621",
"0.57172364",
"0.57163364",
"0.5715017",
"0.57146484",
"0.5711087",
"0.57099944"
]
| 0.7078616 | 1 |
Gets showUndoFlag. Not from DB, set in Servlet from context info in HttpSession. | public Boolean getShowUndoFlag() {
return showUndoFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isUndo() {\n return false;\n }",
"public boolean canUndo();",
"public boolean canUndo();",
"@Override\n public boolean canUndo() {\n return false;\n }",
"protected boolean showCantUndo ()\n {\n return showConfirm(\"m.cant_undo\", \"t.cant_undo\");\n }",
"public boolean canUndo() {\n return this.isUndoable;\n }",
"public boolean isUndoEnabled() {\n return undoEnabled;\n }",
"public boolean isUndoable() {\n\t\treturn false;\n\t}",
"public String getUndoPresentationName();",
"public String getUndoPresentationName();",
"@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\n\t}",
"public boolean canUndo() {\n/* 834 */ return !Utils.isNullOrEmpty(getNextUndoAction());\n/* */ }",
"@Override\n\t/**\n\t * @return isUndoAble\n\t * \t\t\ttells whether the function is undo able or not;\n\t */\n\tpublic boolean isUndoAble() {\n\t\treturn isUndoAble;\n\t}",
"public String getNextUndoAction() {\n/* 850 */ String result = \"\";\n/* 851 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled() || this.mPdfViewCtrl.getDoc() == null) {\n/* 852 */ return result;\n/* */ }\n/* */ \n/* 855 */ removeUnsafeUndoRedoInfo(true);\n/* 856 */ String info = null;\n/* 857 */ JSONObject jsonObj = null;\n/* */ try {\n/* 859 */ info = this.mPdfViewCtrl.getNextUndoInfo();\n/* 860 */ if (sDebug)\n/* 861 */ Log.d(TAG, \"next undo: \" + info); \n/* 862 */ jsonObj = new JSONObject(info);\n/* 863 */ if (jsonObj.has(\"Action\")) {\n/* 864 */ String action = jsonObj.getString(\"Action\");\n/* 865 */ if (this.mContext != null && !Utils.isNullOrEmpty(action) && isValidAction(this.mContext, action)) {\n/* 866 */ String strUndo = this.mContext.getResources().getString(R.string.undo);\n/* 867 */ result = strUndo + \": \" + action;\n/* */ } \n/* */ } \n/* 870 */ } catch (Exception e) {\n/* 871 */ if (info == null || !info.equals(\"state not found\")) {\n/* 872 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next undo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ } \n/* */ \n/* */ \n/* 877 */ if (Utils.isNullOrEmpty(result) && jsonObj != null) {\n/* */ try {\n/* 879 */ if (jsonObj.has(\"label\")) {\n/* 880 */ String label = jsonObj.getString(\"label\");\n/* 881 */ if (!label.equals(\"initial\")) {\n/* 882 */ result = this.mContext.getResources().getString(R.string.undo) + \"...\";\n/* */ }\n/* */ } \n/* 885 */ } catch (Exception e) {\n/* 886 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }\n/* */ \n/* 890 */ return result;\n/* */ }",
"public String getUndoInformation() {\n return previousActionUndoString;\n }",
"protected long getUndoModificationStamp() {\n \t\t\treturn fUndoModificationStamp;\n \t\t}",
"public boolean canUndo() {\n return statePointer > 0;\n }",
"public void uiVerifyButtonUndoEnable() {\n try {\n getLogger().info(\"Verify button Undo Todo enable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo\")) {\n NXGReports.addStep(\"Verify button Undo Todo enable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo enable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"void setUndoRedoMenu() {\r\n\t\tui.editUndo.setEnabled(undoManager.canUndo());\r\n\t\tui.editRedo.setEnabled(undoManager.canRedo());\r\n\t\tui.toolbarUndo.setEnabled(undoManager.canUndo());\r\n\t\tui.toolbarRedo.setEnabled(undoManager.canRedo());\r\n\t}",
"boolean canUndoExpenseTracker() throws NoUserSelectedException;",
"public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }",
"@Override\n\tpublic void onUndoNotPossible() {\n\n\t}",
"protected abstract void internalUndo();",
"public boolean isUndoPossible() {\n return (roundsHistory.size() > 1);\n }",
"public boolean isNextUndoEditPageAction() {\n/* 934 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* 935 */ return false;\n/* */ }\n/* */ \n/* 938 */ String info = null;\n/* */ try {\n/* 940 */ info = this.mPdfViewCtrl.getNextUndoInfo();\n/* 941 */ if (sDebug)\n/* 942 */ Log.d(TAG, \"next undo: \" + info); \n/* 943 */ return isEditPageAction(this.mContext, info);\n/* 944 */ } catch (Exception e) {\n/* 945 */ if (info == null || !info.equals(\"state not found\")) {\n/* 946 */ AnalyticsHandlerAdapter.getInstance().sendException(e, \"next undo info: \" + ((info == null) ? \"null\" : info));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 951 */ return false;\n/* */ } \n/* */ }",
"public void undoerEnable() { Undoer u = getUndoer(); if(u!=null) u.enable(); }",
"public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"void undo();",
"public boolean canUndo()\n {\n if (undoableChanges == null || undoableChanges.size() > 0)\n return true;\n else\n return false;\n }",
"@Override\n\tpublic List<String> viewUndoData(String userId, String projectId) {\n\t\treturn fileDao.viewUndoData(userId, projectId);\n\t}",
"public void setUndoEnabled(boolean undoEnabled) {\n this.undoEnabled = undoEnabled;\n }",
"public static void jumpToUndoRedo(PDFViewCtrl pdfViewCtrl, String info, boolean isUndo) {\n/* 1259 */ if (pdfViewCtrl == null || Utils.isNullOrEmpty(info)) {\n/* */ return;\n/* */ }\n/* */ \n/* 1263 */ if (sDebug) {\n/* 1264 */ Log.d(TAG, \"jump to \" + info);\n/* */ }\n/* 1266 */ Context context = pdfViewCtrl.getContext();\n/* 1267 */ if (isEditPageAction(context, info)) {\n/* 1268 */ if (isDeletePagesAction(context, info)) {\n/* 1269 */ List<Integer> pageList = getPageList(info);\n/* 1270 */ int minPageNum = ((Integer)Collections.<Integer>min(pageList)).intValue();\n/* 1271 */ if (pageList.size() != 0) {\n/* 1272 */ if (isUndo) {\n/* 1273 */ pdfViewCtrl.setCurrentPage(minPageNum);\n/* */ } else {\n/* 1275 */ pdfViewCtrl.setCurrentPage((minPageNum == 1) ? 1 : (minPageNum - 1));\n/* */ } \n/* */ }\n/* 1278 */ } else if (isAddPagesAction(context, info)) {\n/* 1279 */ List<Integer> pageList = getPageList(info);\n/* 1280 */ if (pageList.size() != 0) {\n/* 1281 */ int minPageNum = ((Integer)Collections.<Integer>min(pageList)).intValue();\n/* 1282 */ if (isUndo) {\n/* 1283 */ pdfViewCtrl.setCurrentPage((minPageNum == 1) ? 1 : (minPageNum - 1));\n/* */ } else {\n/* 1285 */ pdfViewCtrl.setCurrentPage(minPageNum);\n/* */ } \n/* */ } \n/* 1288 */ } else if (isRotatePagesAction(context, info) || isEditPageLabelsAction(context, info)) {\n/* 1289 */ List<Integer> pageList = getPageList(info);\n/* 1290 */ if (pageList.size() != 0) {\n/* 1291 */ int curPage = pdfViewCtrl.getCurrentPage();\n/* 1292 */ if (!pageList.contains(Integer.valueOf(curPage))) {\n/* 1293 */ int minPageNum = ((Integer)Collections.<Integer>min(pageList)).intValue();\n/* 1294 */ pdfViewCtrl.setCurrentPage(minPageNum);\n/* */ } \n/* */ } \n/* 1297 */ } else if (isMovePageAction(context, info)) {\n/* 1298 */ int pageFrom = getPageFrom(info);\n/* 1299 */ int pageTo = getPageTo(info);\n/* 1300 */ if (isUndo) {\n/* 1301 */ pdfViewCtrl.setCurrentPage(pageFrom);\n/* */ } else {\n/* 1303 */ pdfViewCtrl.setCurrentPage(pageTo);\n/* */ } \n/* */ } \n/* */ } else {\n/* 1307 */ boolean isAnnotModify = isModifyAnnotationAction(context, info);\n/* 1308 */ if (isAnnotModify && isUndo) {\n/* 1309 */ int prePageNum = getPreModifiedAnnotPageNumber(info);\n/* 1310 */ Rect preAnnotRect = getPreModifiedAnnotRect(info);\n/* 1311 */ if (prePageNum != 0 && preAnnotRect != null) {\n/* 1312 */ ViewerUtils.animateUndoRedo(pdfViewCtrl, preAnnotRect, prePageNum);\n/* */ }\n/* */ } else {\n/* 1315 */ List<Integer> pageNumbers = getAnnotPageNumbers(info);\n/* 1316 */ List<Rect> annotRects = getAnnotRects(info);\n/* 1317 */ if (pageNumbers != null && annotRects.size() == pageNumbers.size()) {\n/* 1318 */ for (int i = 0, n = annotRects.size(); i < n; i++) {\n/* 1319 */ Rect annotRect = annotRects.get(i);\n/* 1320 */ int pageNum = ((Integer)pageNumbers.get(i)).intValue();\n/* 1321 */ ViewerUtils.animateUndoRedo(pdfViewCtrl, annotRect, pageNum);\n/* */ } \n/* */ }\n/* */ } \n/* */ } \n/* */ }",
"public String getUndoPresentationName() {\n throw new UnsupportedOperationException(\"The getUndoPresentationName() method is not supported.\");\n }",
"public void undo() {\n setExecuted(false);\n }",
"public void doUndo()\n {\n // Get the last thing we did and reverse it, then remove it from the undoable stuff\n // This process is similar to 'Both Tool' being clicked on a hex with old values\n LinkedList\t\t\tlastChange = (LinkedList) undoableChanges.getLast();\n \n if (lastChange != null)\n {\n ListIterator\t\tit = lastChange.listIterator(0);\n ChangedMUXHex\t\tchangedHex;\n \n while (it.hasNext())\n {\n changedHex = (ChangedMUXHex) it.next();\n // We'll assume the hex is valid since it's in this list\n map.setHex(changedHex.getLocation(), changedHex.getPrevTerrain(), changedHex.getPrevElevation());\n mapComponent.repaint(mapComponent.rectForHex(changedHex.getLocation()));\n }\n \n // Repaint the hexes\n //mapComponent.repaint();\n \n // Remove what we just undid from our undoable list\n undoableChanges.removeLast();\n }\n }",
"public static boolean canUndo() {\r\n\t\treturn undoCommands.isEmpty();\r\n\t}",
"void processUndo() {\r\n boardManager.undo();\r\n }",
"@Override\n\tpublic String undo(TDTDataStore data) {\n\t\tdata.setHideList(prevHideList);\n\t\treturn MESSAGE_UNDO_HIDE;\n\t}",
"public void SaveUndo(){\r\n if(!IsFalling() && !IsDisappearing()) {\r\n char[][] x = new char[map.length][map[0].length];\r\n for (int i = 0; i < map.length; i++)\r\n for (int j = 0; j < map[i].length; j++)\r\n x[i][j] = this.map[i][j];\r\n UndoMap.add(x);\r\n }\r\n }",
"public void undo() {\n }",
"public Boolean getEditFlag() {\n return editFlag;\n }",
"protected void updateUndoActions ()\n {\n boolean canUndo = _undomgr.canUndo();\n _undo.setEnabled(canUndo);\n _undo.putValue(Action.SHORT_DESCRIPTION, canUndo ? _undomgr.getUndoPresentationName() : \"\");\n\n boolean canRedo = _undomgr.canRedo();\n _redo.setEnabled(canRedo);\n _redo.putValue(Action.SHORT_DESCRIPTION, canRedo ? _undomgr.getRedoPresentationName() : \"\");\n }",
"@Override\r\n public void undo() {\n\r\n }",
"public abstract void undo();",
"public boolean isUndoAvailable() {\n\t\treturn lastCommand != null;\n\t}",
"private String undo() {\n if (!undos.isEmpty()) {\n History history = undos.pop();\n this.redos.push(History.copy(this));\n pasteHistory(history);\n }\n\n //return sb.toString();\n return printList();\n }",
"static void setNotEdit(){isEditing=false;}",
"@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }",
"@Override\n T undo();",
"private void showUndoSnackbar() {\n View view = ((Activity) this.context).findViewById(R.id.paletteActivity);\n\n Snackbar snackbar = Snackbar.make(view, R.string.undoColorShift,\n Snackbar.LENGTH_LONG);\n\n snackbar.setAction(\"UNDO\", v -> undoChange());\n snackbar.show();\n }",
"private boolean canUndo() {\n return !frozen && !past.isEmpty();\n }",
"public void takeUndoSnapshotForSafety() {\n/* 1222 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* 1226 */ boolean shouldUnlock = false;\n/* */ try {\n/* 1228 */ this.mPdfViewCtrl.docLock(false);\n/* 1229 */ shouldUnlock = true;\n/* 1230 */ if (this.mPdfViewCtrl.getDoc().hasChangesSinceSnapshot()) {\n/* 1231 */ JSONObject jsonObj = new JSONObject();\n/* 1232 */ jsonObj.put(\"Action\", \"safety\");\n/* 1233 */ if (Utils.isNullOrEmpty(jsonObj.toString())) {\n/* 1234 */ AnalyticsHandlerAdapter.getInstance().sendException(new Exception(\"takeUndoSnapshot with an empty string\"));\n/* */ }\n/* */ \n/* 1237 */ this.mPdfViewCtrl.takeUndoSnapshot(jsonObj.toString());\n/* 1238 */ if (sDebug)\n/* 1239 */ Log.d(TAG, \"snapshot for safety\"); \n/* */ } \n/* 1241 */ } catch (PDFNetException|JSONException e) {\n/* 1242 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } finally {\n/* 1244 */ if (shouldUnlock) {\n/* 1245 */ this.mPdfViewCtrl.docUnlock();\n/* */ }\n/* */ } \n/* */ }",
"private Long getSpecialFlags(CustomerTransactionVO ct) {\n Long specialFlags = 0L;\n if (BaseDBType.WTransactionDetails.getCTConverter().willGenerateOutput(ct)) {\n specialFlags |= WXClickConstants.Flags.SAVED_DETAILS.getValue();\n }\n if (BaseDBType.WTransactionURL.getCTConverter().willGenerateOutput(ct)) {\n specialFlags |= WXClickConstants.Flags.SAVED_URL.getValue();\n }\n return specialFlags;\n }",
"public void undo() {\n\t\tif (currentPlayer.getUndos() > 0) {\n\t\t\tcurrentPlayer.updateUndos();\n\t\t\t//System.out.println(\"Current Player's Undos!\" + currentPlayer.getUndos());\n\t\t\tturnEnd = false;\n\t\t\tmadeMove = false;\n\t\t\tboard = cloneForUndo;\n\t\t\t//printBoard();\n\t\t}\n\t}",
"public void undo() {\n\t\t\r\n\t}",
"public void undoAction(){}",
"public void undoerDisable() { Undoer u = getUndoer(); if(u!=null) u.disable(); }",
"public boolean undo(){\n\t\tif(!(undoStack.isEmpty())){\n\t\t\tSystem.out.println(\"Undoing one move...\");\n\t\t\tredoStack.push(undoStack.pop());\n\t\t\tthis.setState(undoStack.pop());\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Undo is not available\");\n\t\t\treturn false;\n\t\t}\n\t}",
"public Byte getShowFlag() {\n return showFlag;\n }",
"@Override\n public void undo() {\n\n }",
"@Override\n public void undo() {\n\n }",
"@Override\n public boolean isRedo(){\n return false;\n }",
"@Override\n\tpublic void undo()\n\t{\n\t}",
"protected boolean showUnsavedChanges ()\n {\n return showConfirm(\"m.unsaved_changes\", \"t.unsaved_changes\");\n }",
"public boolean getNotUndoablePurgesUndoHistory() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic void undo() {\n\t\t\n\t}",
"@Override\n\tpublic boolean undo(Usuario usuario, List<Integer> params) {\n\t\treturn false;\n\t}",
"static void setNotSaved(){saved=false;}",
"public void undoableEditHappened() { }",
"public void undoableEditHappened() { }",
"protected long getRedoModificationStamp() {\n \t\t\treturn fRedoModificationStamp;\n \t\t}",
"void setShowRevokedStatus(boolean b);",
"public void setUndoEnabled(boolean enabled){\n mUndoEnabled = enabled;\n if(mText != null){\n mText.setUndoEnabled(enabled);\n }\n }",
"boolean undoMove();",
"private void addUndoButton() {\n\t\tundoButton = new EAdSimpleButton(EAdSimpleButton.SimpleButton.UNDO);\n undoButton.setEnabled(false);\n\t\ttoolPanel.add(undoButton);\n\t\tredoButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcontroller.getCommandManager().undoCommand();\n\t\t\t}\n\n\t\t});\n\t}",
"@Override\n void undo() {\n assert false;\n }",
"public void updateUndo() {\n\n\t\t// player A clicked undo, special case (freeTurn)\n\t\tif (a.getFreeTurn() == true) {\n\t\t\tif (a.getUndoLimit() == 3)\n\t\t\t\treturn;\n\n\t\t\ta.setTurn(true);\n\t\t\tb.setTurn(false);\n\n\t\t\ta.setFreeTurn(false);\n\t\t\ta.incrementUndo();\n\t\t}\n\n\t\t// player B clicked undo, special case (freeTurn)\n\t\telse if (b.getFreeTurn() == true) {\n\t\t\tif (b.getUndoLimit() == 3)//\n\t\t\t\treturn;\n\n\t\t\tb.setTurn(true);\n\t\t\ta.setTurn(false);\n\n\t\t\tb.setFreeTurn(false);\n\t\t\tb.incrementUndo();\n\t\t}\n\n\t\t// player A clicked undo\n\t\telse if (a.getTurn() == false) {\n\t\t\tif (a.getUndoLimit() == 3)\n\t\t\t\treturn;\n\n\t\t\ta.setTurn(true);\n\t\t\tb.setTurn(false);\n\n\t\t\ta.incrementUndo();\n\t\t}\n\n\t\t// player B clicked undo\n\t\telse {\n\t\t\tif (b.getUndoLimit() == 3)//\n\t\t\t\treturn;\n\n\t\t\tb.setTurn(true);\n\t\t\ta.setTurn(false);\n\n\t\t\tb.incrementUndo();\n\t\t}\n\n\t\tfor (int x = 0; x < 14; x++) {\n\t\t\tint prevNumber = bucket[x].gePrevNumOfRocks();\n\t\t\tbucket[x].setnumOfRocks(prevNumber, false);\n\t\t}\n\t}",
"public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }",
"public void undo() {\n\t\tif (undolist.empty())\n\t\t\treturn;\n\n\t\tIHexEditorCommand comm;\n\t\tcomm = undolist.pop();\n\t\tif (comm == null)\n\t\t\treturn;\n\t\tcomm.revoke();\n\t\tredolist.push(comm);\n\n\t\tupdateStatusPanel();\n\t\tcursor.update();\n\t\tupdateActions();\n\t}",
"@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }",
"public Object execute(Object theFrame) {\n\t\tObjectEditor.setMethodsVisible(HistoryUndoerListener.class, false);\r\n\t\tKeyShortCuts.put(Common.control('z'), \"Edit>Undo\");\r\n\t\tKeyShortCuts.put(Common.control('y'), \"Edit>Redo\");\r\n\t\t //ObjectEditor.setMethodDisplayName(AFileOperationsModel.class, \"open\", \"Open..\");\r\n\t\t //ObjectEditor.setMethodDisplayName(AFileOperationsModel.class, \"load\", \"Load..\");\r\n\t\t return null;\r\n\t}",
"public void onUndo() {\n game.undoLastTurn(player1);\n game.undoLastTurn(computer);\n if (player1.getRollCount() == 0 && computer.getRollCount() == 0) {\n setDefault(\"player\");\n setDefault(\"computer\");\n undoButton.setDisable(true);\n resetButton.setDisable(true);\n } else {\n updateFields(\"player\");\n updateFields(\"computer\");\n }\n }",
"@Override\n public void propertyChange(final PropertyChangeEvent theEvt) {\n if (theEvt.getPropertyName().equals(PaintTool.PROPERTY_END)) {\n myUndo.setEnabled(true);\n }\n if (\"undone\".equals(theEvt.getPropertyName())) {\n myUndo.setEnabled(false);\n }\n }",
"public String undo(int locationId, boolean sendEvent) {\n/* 157 */ this.mLocationId = locationId;\n/* 158 */ this.mLastActionIsUndo = true;\n/* 159 */ if (!sendEvent) {\n/* 160 */ this.mUndoCount++;\n/* */ } else {\n/* 162 */ this.mUndoCount = 0;\n/* */ } \n/* 164 */ return performUndoRedo(true, locationId, sendEvent);\n/* */ }",
"public abstract String getSavedViewState();",
"protected void undoSuccess() {\n this.isRedoable = true;\n this.isUndoable = false;\n }",
"@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}",
"public boolean canRedo();",
"public boolean canRedo();",
"public void setUndoDescription(String desc) {\n description = desc;\n }",
"public boolean hasZoomUndoEntries() {\n\t\treturn false;\n\t}",
"public Byte getAuditFlag() {\n return auditFlag;\n }",
"public void undo(){\r\n\t\tif(!savingList.get(savingList.size() - 1).substring(0, 1).equals(\"P\"))\r\n\t\t\ttextF.setText(\"\" + (Integer.parseInt(textF.getText()) + 1));\r\n\t\telse\r\n\t\t\ttankBut.setEnabled(true);\r\n\t\tsavingList.remove(savingList.size() - 1);\r\n\t\tdrawList.remove(drawList.size() - 1);\r\n\t\tdrawXList.remove(drawXList.size() - 1);\r\n\t\tdrawYList.remove(drawYList.size() - 1);\r\n\t\trepaint();\r\n\t}",
"boolean isEdit();",
"@Override\n public void menuSelected(MenuEvent e) {\n undoMenuItem.setEnabled(view.canUndo());\n redoMenuItem.setEnabled(view.canRedo());\n }",
"@Override\n\tpublic void undo() {\n\t\tsecurity.off();\n\t}",
"public void uiVerifyButtonUndoExist() {\n try {\n getLogger().info(\"Verify button Undo Todo exist.\");\n btnToDoUndo.getAttribute(\"class\");\n NXGReports.addStep(\"Verify button Undo Todo exist.\", LogAs.PASSED, null);\n } catch (Exception ex) {\n getLogger().info(ex);\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo exist.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"public void undo() {\n\t\tcmd = new UndoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}"
]
| [
"0.63945246",
"0.6347863",
"0.6347863",
"0.60641074",
"0.6058793",
"0.5951069",
"0.5933321",
"0.59022754",
"0.58759785",
"0.58759785",
"0.5833695",
"0.57331985",
"0.5671643",
"0.5671543",
"0.56567913",
"0.5644002",
"0.5572533",
"0.5493097",
"0.54832876",
"0.5479294",
"0.54512197",
"0.5402511",
"0.53938794",
"0.5387539",
"0.5383026",
"0.5359319",
"0.53348255",
"0.5329133",
"0.53040105",
"0.5190818",
"0.51900935",
"0.5184784",
"0.5181222",
"0.51758075",
"0.5156002",
"0.51379323",
"0.5130101",
"0.5113017",
"0.50930727",
"0.5090194",
"0.5081907",
"0.50797826",
"0.50737363",
"0.5070857",
"0.506932",
"0.5060976",
"0.5057426",
"0.50561786",
"0.5035256",
"0.5024008",
"0.49947914",
"0.49902207",
"0.49891788",
"0.49847972",
"0.49834317",
"0.49762502",
"0.49633414",
"0.49436444",
"0.4921938",
"0.4921097",
"0.4921097",
"0.49158123",
"0.49114",
"0.48931453",
"0.48898834",
"0.48876134",
"0.48876134",
"0.48876134",
"0.48749694",
"0.48578224",
"0.4825063",
"0.4825063",
"0.4824251",
"0.48041907",
"0.47983095",
"0.47964963",
"0.47902274",
"0.4784706",
"0.47663975",
"0.47633395",
"0.47543055",
"0.47338825",
"0.4730312",
"0.47077227",
"0.47076705",
"0.4695398",
"0.46953335",
"0.46935952",
"0.4692948",
"0.46759474",
"0.46759474",
"0.46754852",
"0.46745974",
"0.46592352",
"0.46485138",
"0.4640408",
"0.46394968",
"0.46373376",
"0.46365598",
"0.46349016"
]
| 0.7664785 | 0 |
Get the discourseId, iff IQ item is mapped to a Discourse. | public Long getDiscourseId() { return discourseId; } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private DiscourseItem getSrcDiscourse(DiscourseItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscourseDao dao = DiscourseDbDaoFactory.DEFAULT.getDiscourseDao();\r\n DiscourseItem result = dao.findBySourceId((Long)item.getId());\r\n return result;\r\n }",
"public void setDiscourseId(Long discourseId) { this.discourseId = discourseId; }",
"public Long getIdCourse() {\n return idCourse;\n }",
"public long getDiscussId() {\n\t\treturn this.id;\r\n\t}",
"public int getCourseId()\n {\n return this.courseId;\n }",
"DUserDiscourseMapItem get(DUserDiscourseMapId id);",
"public int getID() {\n return courseID;\n }",
"public int getCourseID() {\n return courseID;\n }",
"DUserDiscourseMapItem find(DUserDiscourseMapId id);",
"public String getIdCourse() {\n\t\t\treturn idCourse;\n\t\t}",
"public String getCourseId() {\n return courseId;\n }",
"public String getCourseID() {\r\n return COURSE_ID;\r\n }",
"public long getCourseId() {\n return _courseImage.getCourseId();\n }",
"public String getCourseId() {\n\t\treturn courseId;\n\t}",
"java.lang.String getLegacyDiscussionId();",
"public final int getId() {\n\t return icqID;\n }",
"@DynamoDBAttribute(attributeName = \"discordId\")\n public final String getDiscordId() {\n return discordId;\n }",
"protected String getCourseID(){\n sharedPref = getSharedPreferences(AppCSTR.PREF_NAME, Context.MODE_PRIVATE);\n //Log.d(\"ID\", sharedPref.getString(\"id\", null));\n return sharedPref.getString(AppCSTR.ACCOUNT_COURSE, null);\n }",
"public com.walgreens.rxit.ch.cda.II getId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.II target = null;\n target = (com.walgreens.rxit.ch.cda.II)get_store().find_element_user(ID$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"@Override\n\tpublic String getCourseId() \n\t{\n\t\treturn null;\n\t}",
"io.dstore.values.IntegerValue getCampaignId();",
"io.dstore.values.IntegerValue getCampaignId();",
"public final ItemId getId() {\r\n return null;\r\n }",
"public String getcid() {\n\treturn cid;\n }",
"public String getIdDiscord() {\n\t\treturn idDiscord;\n\t}",
"public Object getById(Request request) {\n\t\tDbHandler db = Config.getConfig().getHandler();\n\t\ttry {\n\t\t\treturn db.clinics.queryForId((int) request.getParam(\"cid\"));\n\t\t} catch (SQLException e) {\n\t\t\tConfig.getConfig().getLogger().exception(e);\n\t\t\treturn null;\n\t\t}\n\t}",
"private DiscoursePartItem getSrcDiscoursePart(DiscoursePartItem item) {\r\n if (item == null) { return null; }\r\n\r\n DiscoursePartDao dpDao = DiscourseDbDaoFactory.DEFAULT.getDiscoursePartDao();\r\n DiscoursePartItem result = dpDao.findBySourceId((Long)item.getId());\r\n return result;\r\n }",
"public Integer getcId() {\n return cId;\n }",
"long getID(Object item);",
"public Integer getCid() {\n return cid;\n }",
"public Integer getCid() {\n return cid;\n }",
"public int getID(OrderItem oi){\n int id;\n id=findID(oi);\n return id;\n }",
"public long getCourseImageId() {\n return _courseImage.getCourseImageId();\n }",
"public Object getKey(Movie item) {\n\t return (item == null) ? null : item.getId();\r\n\t }",
"public Integer getdId() {\n return dId;\n }",
"int getItemID();",
"public Integer getCoachid() {\n return coachid;\n }",
"public Integer getItemid() {\n return itemid;\n }",
"public Integer getItemid() {\n return itemid;\n }",
"java.lang.String getConceptId();",
"public java.lang.Integer getCare_id();",
"public int getItemID()\n {\n return itemID;\n }",
"public String getCID(){\n\t\treturn cid;\n\t}",
"java.lang.String getAoisId();",
"public int getId() {\n return decision.getConsensusId();\n }",
"public Course getCourseById(String id);",
"public Integer getCrawlId() {\r\n return crawlId;\r\n }",
"public synchronized int getID(String codeItemID) {\n\n\t\tmaxSequence = this.getIDFromDb(codeItemID);\n\t\treturn maxSequence;\n\t}",
"private Course getCourse(String courseId) {\n MongoCollection<Course> courseMongoCollection = mongoDatabase.getCollection(\"course\", Course.class);\n return courseMongoCollection.find(eq(\"_id\", new ObjectId(courseId))).first();\n }",
"int getQuestId();",
"int getQuestId();",
"int getQuestId();",
"int getQuestId();",
"int getDoctorId();",
"int getDoctorId();",
"public Identificator getId() {\n\t\tIdentificator id = null;\n\t\tif ((getMdht().getIds() != null) && (getMdht().getIds().size() > 0)) {\n\t\t\tid = new Identificator(getMdht().getIds().get(0));\n\t\t}\n\t\treturn id;\n\t}",
"public int getICID() {\n return icid;\n }",
"public long getDossierId();",
"Course selectByPrimaryKey(Integer cid);",
"public int getId() {\n\t\treturn d_id;\n\t}",
"public ID getRestrictedDisclosureIndicator() { \r\n\t\tID retVal = this.getTypedField(21, 0);\r\n\t\treturn retVal;\r\n }",
"public String getCid() {\n return cid;\n }",
"protected abstract String getId(String description);",
"public String getItemID() {\n\t return this.itemID;\n\t}",
"public Long getGradeCourseId() {\n\t\treturn gradeCourseId;\n\t}",
"@Override\n protected String getExistingATGId(ItemData itemData) throws MappingException {\n Object existingConfiguredAttributesObj = getCurrentATGPropertyValue();\n\n if (existingConfiguredAttributesObj == null) {\n return null;\n }\n\n if (!(existingConfiguredAttributesObj instanceof Set<?>)) {\n String[] messageArguments = { \"existingConfiguredAttributesObj\", \"Set\" }; \n String message = formatMappingErrorMessage(INVALID_PROPERTY_TYPE, messageArguments);\n vlogError(message);\n\n String itemId = (String) getSiebelItem().getProperties().get(\n getSiebelParentItemId());\n getMappingService().processMappingError(\n getSiebelItem().getExportItemId(), message, itemId,\n getSiebelItemType(), null, null);\n return null;\n }\n @SuppressWarnings(\"unchecked\")\n Set<RepositoryItem> existingConfiguredAttributes = (Set<RepositoryItem>) existingConfiguredAttributesObj;\n\n // loop thru the configured attributes checking the origId\n String origId = (String) itemData.getProperties().get(SIEBEL_ORIG_ID);\n for (RepositoryItem configAttribute : existingConfiguredAttributes) {\n String repositoryOrigId = (String) configAttribute\n .getPropertyValue(ATG_ORIG_ID);\n if (repositoryOrigId != null && repositoryOrigId.equals(origId)) {\n // if find matching origId in a repository item return the id of that\n // repository item\n return configAttribute.getRepositoryId();\n }\n }\n\n return null;\n }",
"public int getID() {\n return iD_;\n }",
"public int getID() {\n return iD_;\n }",
"public int getID() {\n return iD_;\n }",
"public int getID() {\n return iD_;\n }",
"public int getID() {\n return iD_;\n }",
"public int getID() {\n return iD_;\n }",
"public int getID() {\n return iD_;\n }",
"public int getID() {\n return iD_;\n }",
"public int getID() {\n return iD_;\n }",
"public abstract long getSdiId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"java.lang.String getId();",
"public Discipline getDisciplineById(int id) {\r\n for (Discipline discipline : disciplines) {\r\n if (discipline.getId() == id) {\r\n return discipline;\r\n }\r\n }\r\n return null;\r\n }",
"public Item getItem(String course, Integer i){\n return itemMap.get(course).get(i);\n }",
"public int getiid(){\r\n return Iid;\r\n }",
"private int ricavaID(String itemSelected){\n String ogg = ricavaNome(itemSelected);\n String schema = ricavaSchema(itemSelected);\n int id = -1;\n \n Statement stmt; \n ResultSet rst;\n \n try{\n stmt = Database.getDefaultConnection().createStatement();\n \n if(modalita == TRIGGER)\n rst = stmt.executeQuery(\"SELECT T.id_trigger FROM trigger1 T WHERE T.nomeTrigger = '\" + ogg + \"' AND T.schema = '\" + schema + \"'\");\n else\n rst = stmt.executeQuery(\"SELECT P.ID_procedura FROM Procedura P WHERE P.nomeProcedura = '\" + ogg + \"' AND P.schema = '\" + schema + \"'\");\n \n while(rst.next()){\n id = rst.getInt(1);\n }\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n \n return id;\n }",
"public static String getIdd() {\n return idd;\n }"
]
| [
"0.64463603",
"0.6266961",
"0.59945565",
"0.59868526",
"0.5946326",
"0.5919643",
"0.583901",
"0.57873803",
"0.57822347",
"0.5756892",
"0.5737606",
"0.56568325",
"0.56158453",
"0.5592234",
"0.5590004",
"0.5553991",
"0.5544602",
"0.5539905",
"0.5538778",
"0.55167246",
"0.5489648",
"0.5489648",
"0.5430768",
"0.54061383",
"0.5319864",
"0.53065395",
"0.5286618",
"0.5264993",
"0.5238895",
"0.52170366",
"0.52170366",
"0.5215233",
"0.51674163",
"0.515467",
"0.5150216",
"0.51419353",
"0.51418144",
"0.5141072",
"0.5141072",
"0.5134128",
"0.512664",
"0.5118833",
"0.5118731",
"0.5117314",
"0.511026",
"0.51097405",
"0.5106163",
"0.5104912",
"0.5102178",
"0.50950384",
"0.50950384",
"0.50950384",
"0.50950384",
"0.5089521",
"0.5089521",
"0.50883543",
"0.5085104",
"0.5083357",
"0.5080975",
"0.50776345",
"0.5068301",
"0.50563014",
"0.505502",
"0.5049965",
"0.504194",
"0.50275695",
"0.5023637",
"0.5023637",
"0.5023637",
"0.5023637",
"0.5023637",
"0.5023637",
"0.50225306",
"0.50225306",
"0.50225306",
"0.5021332",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5011655",
"0.5008843",
"0.5005548",
"0.5002846",
"0.49986646",
"0.4992297"
]
| 0.71093976 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.