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 |
|---|---|---|---|---|---|---|
adds all needed pages to the wizard | @Override
public void addPages() {
super.addPages();
page1 = new NewReviewWizardPage();
addPage(page1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addPages() {\n\t\tpage = new NewTotoriWizardPage(selection);\n\t\taddPage(page);\n\t}",
"public void addPages() {\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\t\t\n\t\t\n\t\t\n\t\tDb db = loadDBParams();\n\t\tDBConnection dbConn = new DBConnection();\n\t\tConnection connection = null;\n\t\t\n\t\t\n\t\ttry {\n\t\t\tconnection = dbConn.loadDriver(proj.getLocation()+\"/\"+db.getDriverClassPath(), db.getDriverClass(), db.getDatabaseURL(), db.getUserName(), db.getPassWord());\n\t\t} catch (MalformedURLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tpage = new SmartNewWizardPage(selection, connection, proj.getLocation().toString());\n\t\taddPage(page);\n\n\t}",
"@Override\n\tpublic void addPages() {\n\t\t_fileWizard = new NewPlotFilenameWizardPage(selection);\n\t\t_scaleWizard = new ScaleWizardPage(selection);\n\t\t_coastWizard = new CoastWizardPage(selection);\n\t\t_gridWizard = new GridWizardPage(selection);\n\n\t\t// check there's ETOPO data before we add the page\n\t\t_etopoWizard = new ETOPOWizardPage(selection);\n\n\t\taddPage(_fileWizard);\n\t\taddPage(_scaleWizard);\n\t\taddPage(_coastWizard);\n\t\taddPage(_gridWizard);\n\t\tif (_etopoWizard.isAvailable())\n\t\t\taddPage(_etopoWizard);\n\t}",
"public void addPages() {\t\t\n\t\tpage1 = new Opera2ActionsTransformationWizardPage1(selection, operaModel);\n\t\taddPage(page1);\t\n\t}",
"public void addPages() {\n //super.addPages(); //<--- notice we're overriding here\n mainPage = new NewTargetWizardPage(\"newFilePage1\", getSelection());//$NON-NLS-1$\n mainPage.setTitle(TITLE);\n mainPage.setDescription(DESCRIPTION); \n addPage(mainPage);\n }",
"@Override\r\n\tpublic void addPages() {\n\t\tprojectPage = new NewProjectWizardPage();\r\n\t\taddPage(projectPage);\r\n\t}",
"public void addPages() {\n\t\twizardPage = new WizardNewProjectCreationPage(\n\t\t\"NewExampleComSiteProject\");\n\t\twizardPage.setDescription(\"Create a new Example.com Site Project.\");\n\t\twizardPage.setTitle(\"New Example.com Site Project\");\n\t\taddPage(wizardPage);\n\t}",
"@Override\n\tpublic void addPages() {\n\t\tthis.mainPage = new SNLFilePage(this.workbench, this.selection);\n\t\tthis.addPage(this.mainPage);\n\t}",
"public abstract void addCustomPages();",
"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 void addPage() {\n Context context = App.getContext();\n //get index for new current page\n int index = 0;\n if (currentPage != null) {\n index = currentPage.getIndex() + 1;\n }\n if(currentPage == null || !currentPage.isPageEmpty()){\n //add page to template\n currentPage = new TemplatePage(index);\n currentTemplate.addPage(currentPage);\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View newView = inflater.inflate(R.layout.new_page, null);\n //Add page to the list so we keep track of the pages for printing\n pageViews.add(newView.findViewById(R.id.linearLayoutBody));\n //Add new page under last\n linearLayoutPdf.addView(newView, linearLayoutPdf.getChildCount());\n //focus on new page\n linearLayoutBody = newView.findViewById(R.id.linearLayoutBody);\n //Number the page\n linearLayoutBody.setTag(currentPage);\n TextView footer = linearLayoutBody.findViewById(R.id.footer);\n footer.setText(\"Page \" + (index + 1));\n //log\n LogManager.reportStatus(context, \"INSPECTOR\", \"onAddPage\");\n //add slots\n if(!isLoading){\n isLoading = true;\n int slot = 16;\n while (slot > 0){\n addSpacer(0);\n slot = slot - 1;\n }\n isLoading = false;\n }\n } else{\n //do nothing, current page is empty\n LogManager.reportStatus(context, \"INSPECTOR\", \"pageNotAdded:PageEmpty\");\n }\n }",
"public NewPageWizard(IXWikiSpace sapce)\n {\n super();\n setWindowTitle(\"Add New Page...\");\n setNeedsProgressMonitor(false);\n this.space = sapce;\n }",
"public AddValidatorWizard() {\n super();\n initPages();\n setWindowTitle(Messages.title_newValidator);\n }",
"private void initPages() {\n\t\tloginPage = new LoginPage(driver);\n\t\tflipkart = new FlipkartPage(driver);\n\t\t\n\t}",
"protected void showNextPage() {\n\t\tif (currPageIndex.equals(pages.size() - 1)) {\n\t\t\t// Last page so dispose\n\n\t\t\tcleanup();\n\t\t\treturn;\n\t\t}\n\n\t\tAbstractWizardPanel page = pages.get(currPageIndex);\n\n\t\t// Remove page from ignored list if requested\n\t\tif (page.getEnablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getEnablePageClassArray()) {\n\t\t\t\tignoredPages.remove(ignorePage);\n\t\t\t}\n\t\t}\n\n\t\t// Add page to ignored list if requested\n\t\tif (page.getDisablePageClassArray().size() > 0) {\n\t\t\tfor (Class<? extends AbstractWizardPanel> ignorePage : page\n\t\t\t\t\t.getDisablePageClassArray()) {\n\t\t\t\tif (!ignoredPages.contains(ignorePage)) {\n\t\t\t\t\tignoredPages.add(ignorePage);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tshowPage(currPageIndex + 1, Direction.FORWARD);\n\n\t}",
"public void testWizards() {\n // open new file wizard\n NewFileWizardOperator nfwo = NewFileWizardOperator.invoke();\n nfwo.selectProject(\"SampleProject\");\n nfwo.selectCategory(\"Java\");\n nfwo.selectFileType(\"Java Class\");\n // go to next page\n nfwo.next();\n // create operator for the next page\n NewJavaFileNameLocationStepOperator nfnlso = new NewJavaFileNameLocationStepOperator();\n nfnlso.txtObjectName().typeText(\"MyNewClass\");\n // finish wizard\n //nfnlso.finish();\n // cancel wizard\n nfnlso.cancel();\n }",
"private Wizard(final FXFinder javafxFinder) {\n this.javafxFinder = javafxFinder;\n wizard = new JFrame(\"Apache SIS setup\");\n final Container content = wizard.getContentPane();\n content.setLayout(new BorderLayout());\n /*\n * Back, Next, Cancel button.\n */\n { // For keeping variables in a local scope.\n final Box buttons = Box.createHorizontalBox();\n buttons.setBorder(new EmptyBorder(9, 12, 9, 15)); // Top, left, bottom, right.\n backButton = createButton(buttons, BACK); buttons.add(Box.createHorizontalStrut(10));\n nextButton = createButton(buttons, NEXT); buttons.add(Box.createHorizontalStrut(30));\n cancelButton = createButton(buttons, CANCEL);\n backButton.setEnabled(false);\n\n final JPanel bottom = new JPanel(new BorderLayout());\n bottom.add(new JSeparator(), BorderLayout.NORTH);\n bottom.add(buttons, java.awt.BorderLayout.EAST);\n content.add(bottom, BorderLayout.SOUTH);\n }\n /*\n * Navigation panel on the left side with the following titles\n * (currently shown page is highlighted):\n *\n * - Introduction\n * - Download\n * - Set directory\n * - Summary\n */\n final WizardPage[] pages = WizardPage.values();\n {\n titles = new JLabel[pages.length];\n final EmptyBorder padding = new EmptyBorder(3, 0, 3, 0);\n final Box summary = Box.createVerticalBox();\n for (int i=0; i<pages.length; i++) {\n final String title = (i == 0 ? SELECTED_TITLE_BULLET : TITLE_BULLET) + pages[i].title;\n final JLabel label = new JLabel(title, JLabel.LEFT);\n label.setForeground(i == 0 ? SELECTED_TITLE_COLOR : TITLE_COLOR);\n label.setBorder(padding);\n summary.add(titles[i] = label);\n }\n final JPanel pane = new JPanel();\n pane.setBackground(new Color(169, 204, 227));\n pane.setBorder(new EmptyBorder(40, 15, 9, 24)); // Top, left, bottom, right.\n pane.add(summary);\n content.add(pane, BorderLayout.WEST);\n }\n /*\n * The main content where text is shown, together with download button, directory chooser, etc.\n * The content of each page is created by `createPage(…)`. They all have in common to start with\n * a description text formatted in HTML.\n */\n {\n final Font font = new Font(Font.SERIF, Font.PLAIN, 14);\n javafxPath = new JLabel();\n javafxPath.setBorder(JAVAFX_PATH_BORDER);\n javafxPathError = new JLabel();\n javafxPathError.setForeground(Color.RED);\n javafxPathError.setFont(font);\n inflateProgress = new JProgressBar();\n cardPanel = new JPanel(new CardLayout());\n cardPanel.setBorder(new EmptyBorder(30, 30, 9, 30)); // Top, left, bottom, right.\n cardPanel.setBackground(Color.WHITE);\n for (final WizardPage page : pages) {\n cardPanel.add(createPage(page, font), page.name());\n // The initially visible component is the first added.\n }\n currentPage = pages[0];\n content.add(cardPanel, BorderLayout.CENTER);\n }\n wizard.setSize(WIDTH, 500); // Must be before `setLocationRelativeTo(…)`.\n wizard.setResizable(false);\n wizard.setLocationRelativeTo(null);\n wizard.addWindowListener(new WindowAdapter() {\n @Override public void windowClosing(WindowEvent event) {\n javafxFinder.cancel();\n }\n });\n }",
"public Iterator<WizardPage> getPages()\n {\n java.util.List<WizardPage> pages = new ArrayList<WizardPage>();\n this.firstWizardPage = new FirstWizardPage(this);\n pages.add(this.firstWizardPage);\n return pages.iterator();\n }",
"@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}",
"public IWizardPage getNextPage();",
"private final void createAppPages() {\r\n\t\t//Instantiate Page objects that have no associated test properties\r\n\t\t//Note that if a test DOES need to specify test properties for one of these pages\r\n\t\t// (e.g., search terms), it can create its own local version of the page, and pass\r\n\t\t// the pagePropertiesFilenameKey argument, OR create it here, by calling createPage\r\n\t\t// instead of createStaticPage\r\n\r\n\t\t//Can also instantiate regular (i.e., with associated test properties) DD-specific\r\n\t\t// Page objects here, but typically it is best for the test or utility methods to do that;\r\n\t\t// if we do it here we may end up creating Page objects that never get used.\r\n }",
"protected void doAdditionalPageInitialization(IPage page) {\n }",
"public void setWizard(IWizard newWizard);",
"@Override\r\n\tprotected IWizardPage updatePage(int index) {\r\n\t\tIHeadlessWizardContainer hwc = (IHeadlessWizardContainer) getContainer();\r\n\t\tif(!( hwc instanceof WizardContainer )){\r\n\t\t\thwc.updateButtons();\r\n\t\t\treturn super.updatePage(index);\r\n\t\t}\r\n\t\tWizardContainer container = (WizardContainer) hwc;\t\r\n\r\n\t\tIndexStore is = getIndexStore(index);\r\n\t\tString ts = ( is.titleStyle == null )? this.titleStyle: is.titleStyle;\r\n\t\tsetBarStyle( container.getToolBar(), index, ts );\r\n\t\tString bs = ( is.buttonStyle == null )? this.buttonbarStyle: is.buttonStyle;\r\n\t\tcontainer.setButtons( is.getButtons() );\r\n\t\tsetBarStyle( container.getButtonBar(), index, bs );\r\n\r\n\t\tfor( Buttons button: is.getButtons() ){\r\n\t\t\tcontainer.setButtonEnabled(button, is.isButtonEnabled(button));\r\n\t\t}\r\n\r\n\t\tboolean choice = ( index > 0 );\r\n\t\t\r\n\t\tif( this.needsPreviousAndNextButtons() ){\r\n\t\t\tcontainer.setButtonEnabled( IButtonWizardContainer.Buttons.PREVIOUS, choice);\t\t\r\n\t\t\tchoice = ( index < container.size() - 1 );\r\n\t\t\tcontainer.setButtonEnabled( IButtonWizardContainer.Buttons.NEXT, choice);\r\n\t\t}\r\n\t\tchoice = ( index >= container.getFinishIndex() );\r\n\t\tcontainer.setButtonEnabled( IButtonWizardContainer.Buttons.FINISH, choice);\r\n\t\tcontainer.updateButtons();\r\n\t\tfor( Buttons button: is.getButtons() ){\r\n\t\t\tcontainer.buttonVisible( button, is.isButtonVisible(button));\r\n\t\t}\r\n\r\n\t\treturn super.updatePage(index);\r\n\t}",
"protected abstract AbstractPerfCakeEditWizard createWizard(IStructuredSelection selection);",
"public AbstractWizardPage()\n {\n super(true);\n }",
"public void testGenericWizards() {\n // open new project wizard\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n npwo.selectCategory(\"Java Web\");\n npwo.selectProject(\"Web Application\");\n npwo.next();\n // create operator for next page\n WizardOperator wo = new WizardOperator(\"Web Application\");\n JTextFieldOperator txtName = new JTextFieldOperator((JTextField) new JLabelOperator(wo, \"Project Name:\").getLabelFor());\n txtName.clearText();\n txtName.typeText(\"MyApp\");\n wo.cancel();\n }",
"private void createWizard(String persoName, String persoImage, int persoLife, int attack) {\n\t\tpersoList.add(new Wizard(persoName, persoImage, persoLife, attack));\n\t}",
"public interface IWizardPage extends IDialogPage {\r\n\t/**\r\n\t * Returns whether the next page could be displayed.\r\n\t *\r\n\t * @return <code>true</code> if the next page could be displayed,\r\n\t * and <code>false</code> otherwise\r\n\t */\r\n\tpublic boolean canFlipToNextPage();\r\n\r\n\t/**\r\n\t * Returns this page's name.\r\n\t *\r\n\t * @return the name of this page\r\n\t */\r\n\tpublic String getName();\r\n\r\n\t/**\r\n\t * Returns the wizard page that would to be shown if the user was to\r\n\t * press the Next button.\r\n\t *\r\n\t * @return the next wizard page, or <code>null</code> if none\r\n\t */\r\n\tpublic IWizardPage getNextPage();\r\n\r\n\t/**\r\n\t * Returns the wizard page that would to be shown if the user was to\r\n\t * press the Back button.\r\n\t *\r\n\t * @return the previous wizard page, or <code>null</code> if none\r\n\t */\r\n\tpublic IWizardPage getPreviousPage();\r\n\r\n\t/**\r\n\t * Returns the wizard that hosts this wizard page.\r\n\t *\r\n\t * @return the wizard, or <code>null</code> if this page has not been\r\n\t * added to any wizard\r\n\t * @see #setWizard\r\n\t */\r\n\tpublic IWizard getWizard();\r\n\r\n\t/**\r\n\t * Returns whether this page is complete or not.\r\n\t * <p>\r\n\t * This information is typically used by the wizard to decide\r\n\t * when it is okay to finish.\r\n\t * </p>\r\n\t *\r\n\t * @return <code>true</code> if this page is complete, and\r\n\t * <code>false</code> otherwise\r\n\t */\r\n\tpublic boolean isPageComplete();\r\n\r\n\t/**\r\n\t * Sets the wizard page that would typically be shown\r\n\t * if the user was to press the Back button.\r\n\t * <p>\r\n\t * This method is called by the container.\r\n\t * </p>\r\n\t *\r\n\t * @param page the previous wizard page\r\n\t */\r\n\tpublic void setPreviousPage(IWizardPage page);\r\n\r\n\t/**\r\n\t * Sets the wizard that hosts this wizard page.\r\n\t * Once established, a page's wizard cannot be changed\r\n\t * to a different wizard.\r\n\t *\r\n\t * @param newWizard the wizard\r\n\t * @see #getWizard\r\n\t */\r\n\tpublic void setWizard(IWizard newWizard);\r\n}",
"public IWizard getWizard();",
"public void addPage(String name, String park);",
"public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}",
"@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\t\n\t\tbtnNewButton = new Button(container, SWT.NONE);\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(286, 513, 75, 30);\n\t\tbtnNewButton.setText(\"\\u9996\\u9875\");\n\t\t\n\t\tbutton = new Button(container, SWT.NONE);\n\t\tbutton.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage--;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton.setText(\"\\u4E0A\\u4E00\\u9875\");\n\t\tbutton.setBounds(367, 513, 75, 30);\n\t\t\n\t\tbutton_1 = new Button(container, SWT.NONE);\n\t\tbutton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage = page.getPageCount();\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_1.setText(\"\\u5C3E\\u9875\");\n\t\tbutton_1.setBounds(652, 513, 75, 30);\n\t\t\n\t\tbutton_2 = new Button(container, SWT.NONE);\n\t\tbutton_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tcurrentPage++;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_2.setText(\"\\u4E0B\\u4E00\\u9875\");\n\t\tbutton_2.setBounds(571, 513, 75, 30);\n\t\t\n\t\ttext = new Text(container, SWT.BORDER);\n\t\ttext.setText(\"\"+currentPage);\n\t\ttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\ttext.setBounds(445, 515, 32, 26);\n\t\t\n\t\tLabel label = new Label(container, SWT.NONE);\n\t\tlabel.setText(\"/\");\n\t\tlabel.setBounds(483, 518, 6, 20);\n\t\t\n\t\tlabel_1 = new Label(container, SWT.NONE);\n\t\tlabel_1.setText(\"2\");\n\t\tlabel_1.setBounds(495, 518, 22, 20);\n\t\t\n\t\tButton button_3 = new Button(container, SWT.NONE);\n\t\tbutton_3.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tint want = Integer.parseInt(text.getText());\n\t\t\t\tif(want<1){\n\t\t\t\t\twant = 1;\n\t\t\t\t}else if(want>page.getCurrentPage()){\n\t\t\t\t\twant = page.getPageCount();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentPage = want;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbutton_3.setText(\"->\");\n\t\tbutton_3.setBounds(527, 513, 32, 30);\n\t\t\n\t\ttext_1 = new Text(container, SWT.BORDER);\n\t\ttext_1.setBounds(286, 134, 73, 26);\n\t\t\n\t\tButton btnNewButton_1 = new Button(container, SWT.NONE);\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\tname = text_1.getText();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(367, 134, 55, 30);\n\t\tbtnNewButton_1.setText(\"\\u67E5\\u627E\");\n\t\t\n\t\ttabFolder = new TabFolder(container, SWT.NONE);\n\t\ttabFolder.setBounds(281, 184, 456, 323);\n\t\t\n\t\ttabItem_2 = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem_2.setText(\"\\u672A\\u8BCA\\u65AD\");\n\t\t\n\t\ttable_2 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable_2.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb.update(\"update register set state = 2 where name = '\"+register.getName()+\"'\");\n\t\t\t\tregister.setState(\"诊断中\");\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable_2.setLinesVisible(true);\n\t\ttable_2.setHeaderVisible(true);\n\t\ttabItem_2.setControl(table_2);\n\t\t\n\t\tTableColumn tableColumn_4 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_4.setWidth(100);\n\t\ttableColumn_4.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tableColumn_5 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_5.setWidth(115);\n\t\ttableColumn_5.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tableColumn_6 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_6.setWidth(118);\n\t\ttableColumn_6.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tTableColumn tableColumn_7 = new TableColumn(table_2, SWT.NONE);\n\t\ttableColumn_7.setWidth(108);\n\t\ttableColumn_7.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu_2 = new Menu(table_2);\n\t\ttable_2.setMenu(menu_2);\n\t\t\n\t\tMenuItem menuItem_4 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_2.getItem(table_2.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t}\n\t\t});\n\t\tmenuItem_4.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_5 = new MenuItem(menu_2, SWT.NONE);\n\t\tmenuItem_5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table_2.getItem(table_2.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.NONE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tmenuItem_5.setText(\"\\u5220\\u9664\");\n\t\t\n\t\ttabItem_1 = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem_1.setText(\"\\u8BCA\\u65AD\\u4E2D\");\n\t\t\n\t\ttable_1 = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttable_1.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdb.update(\"update register set state = 2 where name = '\"+register.getName()+\"'\");\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable_1.setLinesVisible(true);\n\t\ttable_1.setHeaderVisible(true);\n\t\ttabItem_1.setControl(table_1);\n\t\t\n\t\tTableColumn tableColumn = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn.setWidth(100);\n\t\ttableColumn.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tableColumn_1 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_1.setWidth(115);\n\t\ttableColumn_1.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tableColumn_2 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_2.setWidth(118);\n\t\ttableColumn_2.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tTableColumn tableColumn_3 = new TableColumn(table_1, SWT.NONE);\n\t\ttableColumn_3.setWidth(108);\n\t\ttableColumn_3.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu_1 = new Menu(table_1);\n\t\ttable_1.setMenu(menu_1);\n\t\t\n\t\tMenuItem menuItem_2 = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuItem_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.CLOSE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table_1.getItem(table_1.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\tmenuItem_2.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_3 = new MenuItem(menu_1, SWT.NONE);\n\t\tmenuItem_3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table_1.getItem(table_1.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.CLOSE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t}\n\t\t});\n\t\tmenuItem_3.setText(\"\\u5220\\u9664\");\n\t\t\n\t\ttabItem = new TabItem(tabFolder, SWT.NONE);\n\t\ttabItem.setText(\"\\u5DF2\\u8BCA\\u65AD\");\n\t\t\n\t\ttable = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);\n\t\ttabItem.setControl(table);\n\t\ttable.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table.getItem(table.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t\tcurrentPage = 1;\n\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t}\n\t\t});\n\t\ttable.setHeaderVisible(true);\n\t\ttable.setLinesVisible(true);\n\t\t\n\t\tTableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn.setWidth(100);\n\t\ttblclmnNewColumn.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tTableColumn tblclmnNewColumn_1 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_1.setWidth(115);\n\t\ttblclmnNewColumn_1.setText(\"\\u7ECF\\u529E\\u4EBA\");\n\t\t\n\t\tTableColumn tblclmnNewColumn_2 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_2.setText(\"\\u7C7B\\u578B\");\n\t\ttblclmnNewColumn_2.setWidth(118);\n\t\t\n\t\tTableColumn tblclmnNewColumn_3 = new TableColumn(table, SWT.NONE);\n\t\ttblclmnNewColumn_3.setWidth(108);\n\t\ttblclmnNewColumn_3.setText(\"\\u4EF7\\u683C\");\n\t\t\n\t\tMenu menu = new Menu(table);\n\t\ttable.setMenu(menu);\n\t\t\n\t\tMenuItem menuItem = new MenuItem(menu, SWT.NONE);\n\t\tmenuItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDetails detail = new Details(new Shell(), SWT.NONE);\n\t\t\t\tfor(HashMap<String, Object> map:page.getList()){\n\t\t\t\t\tif(map.get(\"name\").equals(table.getItem(table.getSelectionIndex()).getText(0))){\n\t\t\t\t\t\tregister = new Register();\n\t\t\t\t\t\tregister.setPatient_id(Integer.parseInt(map.get(\"patient_id\").toString()));\n\t\t\t\t\t\tregister.setName(map.get(\"name\").toString());\n\t\t\t\t\t\tregister.setDepartment(map.get(\"department_name\").toString());\n\t\t\t\t\t\tregister.setKinds(map.get(\"kinds_name\").toString());\n\t\t\t\t\t\tregister.setOperator(map.get(\"operator\").toString());\n\t\t\t\t\t\tregister.setTime(map.get(\"time\").toString());\n\t\t\t\t\t\tregister.setPrice(Double.parseDouble(map.get(\"price\").toString()));\n\t\t\t\t\t\tregister.setResult((map.get(\"result\").toString().equals(\"\") ? \"无\":map.get(\"result\").toString()));\n\t\t\t\t\t\tregister.setState(map.get(\"state_name\").toString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdetail.setRegister(register);\n\t\t\t\tdetail.open();\n\t\t\t}\n\t\t});\n\t\tmenuItem.setText(\"\\u6253\\u5F00\");\n\t\t\n\t\tMenuItem menuItem_1 = new MenuItem(menu, SWT.NONE);\n\t\tmenuItem_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tDbUtils db = new DbUtils();\n\t\t\t\tname = table.getItem(table.getSelectionIndex()).getText(0);\n\t\t\t\tWarning_1 warning = new Warning_1(new Shell(), SWT.NONE);\n\t\t\t\twarning.open();\n\t\t\t\tif(warning.isResult())\n\t\t\t\t\tif(db.update(\"delete from register where name = '\"+name+\"'\")!=0){\n\t\t\t\t\t\tOpenBox.Open(\"操作成功\");\n\t\t\t\t\t\tcurrentPage = 1;\n\t\t\t\t\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\tOpenBox.Open(\"操作失败\");\n\t\t\t}\n\t\t});\n\t\tmenuItem_1.setText(\"\\u5220\\u9664\");\n\t\t\n\t\tgetRegister(currentPage, name, tabFolder.getSelectionIndex());\n\n\t\tcreateActions();\n\t\tinitializeToolBar();\n\t\tinitializeMenu();\n\t}",
"public void onAddPage(View view){\n addPage();\n view.setVisibility(View.GONE);\n Toast.makeText(this, \"Page Added\", Toast.LENGTH_LONG).show();\n }",
"public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}",
"private void loadPages() throws IOException, SQLException {\n\n FXMLLoader settingsLoader = new FXMLLoader(getClass().getResource(\"/com/slackers/inc/Boundary/FXML/settings.fxml\"));\n settings = settingsLoader.load();\n SettingsController settingsController = settingsLoader.getController();\n settingsController.setMainController(this);\n settingsController.setTextBoxes();\n\n if(this.userController.getUser().getUserType() == User.UserType.MANUFACTURER){\n FXMLLoader applicationLoader = new FXMLLoader(getClass().getResource(\"/com/slackers/inc/Boundary/FXML/applications.fxml\"));\n applications = applicationLoader.load();\n ApplicationsController applicationsController = applicationLoader.getController();\n applicationsController.setMainController(this);\n applicationsController.addAccordianChildren();\n\n mainContainer.getChildren().setAll(applications);\n applicationButton.setVisible(true);\n searchButton.setVisible(false);\n\n }else if(this.userController.getUser().getUserType() == User.UserType.US_EMPLOYEE) {\n FXMLLoader usEmployeeLoader = new FXMLLoader(getClass().getResource(\"/com/slackers/inc/Boundary/FXML/USEmployee.fxml\"));\n applications = usEmployeeLoader.load();\n USEmployeeBoundaryController applicationsController = usEmployeeLoader.getController();\n applicationsController.setMainController(this);\n applicationsController.addAccordianChildren();\n\n mainContainer.getChildren().setAll(applications);\n applicationButton.setVisible(true);\n searchButton.setVisible(false);\n\n }else{\n FXMLLoader searchLoader = new FXMLLoader(getClass().getResource(\"/com/slackers/inc/Boundary/FXML/search.fxml\"));\n search = searchLoader.load();\n SearchBoundaryController searchBoundaryController = searchLoader.getController();\n searchBoundaryController.setMainController(this);\n\n mainContainer.getChildren().setAll(search);\n applicationButton.setVisible(false);\n searchButton.setVisible(true);\n }\n }",
"private void setUpPageItem() {\n displaylimit = xmlhandler.getItemDisplayLimit();\n itemrow = inventory.getItemRow();\n Back.setEnabled(false);\n Begin.setEnabled(false);\n if(getPageEnd()==1) {\n Forward.setEnabled(false);\n End.setEnabled(false);\n }\n }",
"public void setUpBalancerPage() {\n\t\t// Reactant Side\n\t\t/* Creates the initial set of textfields that allows for the user to input the data required \n\t\tfor the reactant side */\n\t\treactantTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 150, 0, 35, \"#\"));\n\t\treactant.add(SpeedFormat.textField(new TextField(), balancerPage, 50, 150, 0, 100, \"Formula\"));\n\t\treactantMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 185, 0, 140, \"Moles\"));\t\t\n\n\t\tButton addReactant = SpeedFormat.button(new Button(), balancerPage, 10, 80, \"Add\", \"\");\n\t\t\n\t\t/* Creates an add button that adds more sets of textfields that allow for \n\t\tthe user to input the data required for the reactant side */\n\t\taddReactant.setOnAction(action -> {\n\t\t\tif (intReactant < 5) {\n\t\t\t\treactantTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intReactant * 165), 150, 35, \"#\"));\n\t\t\t\treactant.add(SpeedFormat.textField(new TextField(), balancerPage, 50 + (intReactant * 165), 150, 100, \"Formula\"));\n\t\t\t\treactantMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intReactant * 165), 185, 140, \"Moles\"));\n\n\t\t\t\tplusReactant.add(SpeedFormat.text(new Text(), balancerPage, 155 + ((intReactant - 1) * 165), 170, \"+\", \"\"));\n\t\t\t\tplusReactant.get(plusReactant.size() - 1).setFont(Font.font(\"verdana\", FontPosture.REGULAR, 20));\n\n\t\t\t\tintReactant++;\n\t\t\t}\n\t\t});\n\n\t\t// Creates a remove button that removes the sets of textfields from the reactant side\n\t\tButton removeReactant = SpeedFormat.button(new Button(), balancerPage, 60, 80, \"Remove\", \"\");\n\n\t\tremoveReactant.setOnAction(action -> {\n\t\t\tif (intReactant > 1) {\n\t\t\t\tremove();\n\t\t\t\tbalancerPage.getChildren().removeAll(reactantTextAmt.get(reactantTextAmt.size() - 1), reactant.get(reactant.size() - 1), \n\t\t\t\t\t\treactantMol.get(reactantMol.size() - 1), plusReactant.get(plusReactant.size() - 1));\n\t\t\t\treactantTextAmt.remove(reactantTextAmt.size() - 1);\n\t\t\t\treactant.remove(reactant.size() - 1);\n\t\t\t\treactantMol.remove(reactantMol.size() - 1);\n\t\t\t\tplusReactant.remove(plusReactant.size() - 1);\n\t\t\t\tintReactant--;\n\t\t\t}\n\t\t});\n\n\t\t// Creates the Equation Arrow Text\n\t\tText equationArrow = SpeedFormat.text(new Text(), balancerPage, 50, 290, \"↓\", \"\");\n\t\tequationArrow.setFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 40));\n\n\t\t// Product Side\n\t\t/* Creates the initial set of textfields that allows for the user to input the data required \n\t\tfor the product side */\n\t\tproductTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 400, 35, \"#\"));\n\t\tproduct.add(SpeedFormat.textField(new TextField(), balancerPage, 50, 400, 100, \"Formula\"));\n\t\tproductMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10, 435, 140, \"Moles\"));\n\n\t\t/* Creates an add button that adds more sets of textfields that allow for \n\t\tthe user to input the data required for the product side */\n\t\tButton addProduct = SpeedFormat.button(new Button(), balancerPage, 10, 330, \"Add\", \"\");\n\n\t\taddProduct.setOnAction(action -> {\n\t\t\tif (intProduct < 5) {\n\t\t\t\tproductTextAmt.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intProduct * 165), 400, 35, \"#\"));\n\t\t\t\tproduct.add(SpeedFormat.textField(new TextField(), balancerPage, 50 + (intProduct * 165), 400, 100, \"Formula\"));\n\t\t\t\tproductMol.add(SpeedFormat.textField(new TextField(), balancerPage, 10 + (intProduct * 165), 435, 140, \"Moles\"));\n\n\t\t\t\tplusProduct.add(SpeedFormat.text(new Text(), balancerPage, 155 + ((intProduct - 1) * 165), 420, \"+\", \"\"));\n\t\t\t\tplusProduct.get(plusProduct.size() - 1).setFont(Font.font(\"verdana\", FontPosture.REGULAR, 20));\n\n\t\t\t\tintProduct++;\n\t\t\t}\n\t\t});\n\n\t\t// Creates a remove button that removes the sets of textfields from the product side\n\t\tButton removeProduct = SpeedFormat.button(new Button(), balancerPage, 60, 330, \"Remove\", \"\");\n\n\t\tremoveProduct.setOnAction(action -> {\n\t\t\tif (intProduct > 1) {\n\t\t\t\tremove();\n\t\t\t\tbalancerPage.getChildren().removeAll(productTextAmt.get(productTextAmt.size() - 1), product.get(product.size() - 1), \n\t\t\t\t\t\tproductMol.get(productMol.size() - 1), plusProduct.get(plusProduct.size() - 1));\n\t\t\t\tproductTextAmt.remove(productTextAmt.size() - 1);\n\t\t\t\tproduct.remove(product.size() - 1);\n\t\t\t\tproductMol.remove(productMol.size() - 1);\n\t\t\t\tplusProduct.remove(product.size() - 1);\n\t\t\t\tintProduct--;\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Creates the calculated texts objects\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\trMol[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 230, \"\", \"\");\n\t\t\trGrams[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 250, \"\", \"\");\n\t\t\tpMol[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 480, \"\", \"\");\n\t\t\tpGrams[i] = SpeedFormat.text(new Text(), balancerPage, 50 + (i * 165), 500, \"\", \"\");\n\t\t}\n\t\t\n\t\t/* Creates a button that will calculate the limiting moles and sets the end text \n\t\tto the moles and grams of a given formula */\n\t\tButton go = SpeedFormat.button(new Button(), balancerPage, 10, 520, \"Go\", \"\");\t\n\t\t\n\t\tgo.setOnAction(action -> {\n\t\t\treset();\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\tif(!intChecker(reactantTextAmt.get(i).getText()).equals(\"\")) {\n\t\t\t\t\treactantAmt[i] = Integer.parseInt(intChecker(reactantTextAmt.get(i).getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\tChemical chemR = new Chemical(reactant.get(i).getText());\n\t\t\t\treactantMM[i] = chemR.getMolarMass();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\tif(!doubleChecker(reactantMol.get(i).getText()).equals(\"\")) {\n\t\t\t\t\treactantMoles[i] = Double.parseDouble(doubleChecker(reactantMol.get(i).getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < intProduct; j++) {\n\t\t\t\tif(!intChecker(productTextAmt.get(j).getText()).equals(\"\")) {\n\t\t\t\t\tproductAmt[j] = Integer.parseInt(intChecker(productTextAmt.get(j).getText()));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < intProduct; j++) {\n\t\t\t\tChemical chemP = new Chemical(product.get(j).getText());\n\t\t\t\tproductMM[j] = chemP.getMolarMass();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j = 0; j < intProduct; j++) {\n\t\t\t\tif(!doubleChecker(productMol.get(j).getText()).equals(\"\")) {\n\t\t\t\t\tproductMoles[j] = Double.parseDouble(doubleChecker(productMol.get(j).getText()));\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tmolCalculator();\n\t\t\tend();\n\t\t});\n\t\t\n\t\t// Creates a button that will clear all of the textfields\n\t\tButton clear = SpeedFormat.button(new Button(), balancerPage, 50, 520, \"Clear\", \"\");\t\n\t\t\n\t\tclear.setOnAction(action -> {\n\t\t\treset();\n\t\t\tfor(int i = 0; i < intReactant; i++) {\n\t\t\t\treactantTextAmt.get(i).clear();\n\t\t\t\treactant.get(i).clear();\n\t\t\t\treactantMol.get(i).clear();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < intProduct; i++) {\n\t\t\t\tproductTextAmt.get(i).clear();\n\t\t\t\tproduct.get(i).clear();\n\t\t\t\tproductMol.get(i).clear();\n\t\t\t}\n\t\t});\n\t}",
"public void addPage(PDFPage aPage) { _pages.add(aPage); }",
"Page createPage();",
"private void createFirstPage() {\n BooleanSupplier showWelcomePage = () -> !FirstRunStatus.shouldSkipWelcomePage();\n mPages.add(new FirstRunPage<>(SigninFirstRunFragment.class, showWelcomePage));\n mFreProgressStates.add(MobileFreProgress.WELCOME_SHOWN);\n mPagerAdapter = new FirstRunPagerAdapter(FirstRunActivity.this, mPages);\n mPager.setAdapter(mPagerAdapter);\n // Other pages will be created by createPostNativeAndPoliciesPageSequence() after\n // native and policy service have been initialized.\n }",
"private void appendPages(ArrayList<IPage> pages, Element parentElement) {\r\n // iterate over every page in List\r\n for (IPage page : pages) {\r\n // create element document for page and set attributes\r\n Element pageElement = document.createElement(PAGE_TAG_NAME);\r\n \r\n Set<EvoAttribute> pageAttributeSet = page.getPageAttributeSet();\r\n for(EvoAttribute pageAttribute : pageAttributeSet){\r\n \tif(pageAttribute.isUsed()){\r\n \t\tString pageAttributeName = pageAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = pageAttribute.getAttributeValue();\r\n \t\t//Empty attributes are printed\r\n \t\tpageElement.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t} \t\r\n }\r\n \r\n for(IPageResource pageResource : page.getPageResources()){\r\n \tif(pageResource.isUsed()){\r\n \t\tElement element = document.createElement(pageResource.getName());\r\n\r\n String pathIdentifier = pageResource.getExternalFileLocationAttributeName();\r\n\r\n \t\tSet<EvoAttribute> resourceAttributeSet = pageResource.getAttributeSet();\r\n \t\tfor(EvoAttribute resourceAttribute : resourceAttributeSet){\r\n \t\t\tString pageAttributeName = resourceAttribute.getAttributeName();\r\n \t\tString pageAttributeValue = resourceAttribute.getAttributeValue();\r\n \t\tif(resourceAttribute.isUsed()){\r\n\t \t\t\tif(pathIdentifier.equalsIgnoreCase(pageAttributeName)){\r\n //Empty attributes are NOT printed\r\n if(!pageAttributeValue.isEmpty()){\r\n resources.add(pageAttributeValue);\r\n File f = new File(pageAttributeValue);\r\n pageAttributeValue = \"resources\" + File.separator + f.getName();\r\n }\r\n\t \t\t\t}\r\n element.setAttribute(pageAttributeName, pageAttributeValue);\r\n \t\t}\r\n \t\t}\r\n \t\tif(pageResource.canHaveContent()){\r\n \t\t\telement.appendChild(document.createTextNode(pageResource.getContent()));\r\n \t\t}\r\n \t\tpageElement.appendChild(element);\r\n \t}\r\n }\r\n\r\n // if page has subpages iterate through every one of them\r\n ArrayList<IPage> childPages = gallery.getChildPageList(page.getId());\r\n if (childPages.size() != 0) {\r\n appendPages(childPages, pageElement);\r\n }\r\n // if page don't have subpages append page node to parent node\r\n parentElement.appendChild(pageElement);\r\n }\r\n }",
"public void testRegisterWizardPanel() {\n System.out.println(\"registerWizardPanel\");\n Object id = null;\n WizardPanelDescriptor panel = null;\n Wizard instance = new Wizard();\n instance.registerWizardPanel(id, panel);\n }",
"public void PaymentPage() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"protected DummyWizardPage()\n {\n super( \"\" ); //$NON-NLS-1$\n setTitle( Messages.getString( \"NewEntryWizard.NoConnectonSelected\" ) ); //$NON-NLS-1$\n setDescription( Messages.getString( \"NewEntryWizard.NoConnectonSelectedDescription\" ) ); //$NON-NLS-1$\n setImageDescriptor( BrowserCommonActivator.getDefault().getImageDescriptor(\n BrowserCommonConstants.IMG_ENTRY_WIZARD ) );\n setPageComplete( true );\n }",
"public homePage DadosCadastraisPage() {\n\t\t\n\t\tnavegador.findElement(By.name(\"usernameRegisterPage\")).sendKeys(\"benedito\");\n\n\t\t//preencher o email name(\"emailRegisterPage\")\n\t\tnavegador.findElement(By.name(\"emailRegisterPage\")).sendKeys(\"beneditojose@hotmail.com\");\n\n\t\t//inserir senha name (\"passwordRegisterPage\")\n\t\tnavegador.findElement(By.name(\"passwordRegisterPage\")).sendKeys(\"1Ben\");\n\n\t\t//confirmar a senha (\"confirm_passwordRegisterPage\")\n\t\tnavegador.findElement(By.name(\"confirm_passwordRegisterPage\")).sendKeys(\"1Ben\");\t\n\t\tnavegador.findElement(By.name(\"first_nameRegisterPage\")).sendKeys(\"benedito\");\n\t\tnavegador.findElement(By.name(\"last_nameRegisterPage\")).sendKeys(\"Jose\");\n\t\tnavegador.findElement(By.name(\"phone_numberRegisterPage\")).sendKeys(\"131111111111\");\n\n\t\tnavegador.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\t\n\t\tSelect combobox = new Select(navegador.findElement(By.name(\"countryListboxRegisterPage\")));\n\t\t\t\n\t\t//navegador.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\t\t\n\t\tcombobox.selectByVisibleText(\"Brazil\");\n\n\t\tnavegador.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t\n\t\tnavegador.findElement(By.name(\"cityRegisterPage\")).sendKeys(\"Sao Vicente\");\n\t\t\n\t\tJavascriptExecutor desceRua = (JavascriptExecutor)navegador;\n\t\tdesceRua.executeScript(\"window.scrollBy(0,200)\");\n\t\t\n\t\tnavegador.findElement(By.name(\"addressRegisterPage\")).sendKeys(\"Rua Benigno, N 040\");\n\t\tnavegador.findElement(By.name(\"state_/_province_/_regionRegisterPage\")).sendKeys(\"SP\");\n\t\tnavegador.findElement(By.name(\"postal_codeRegisterPage\")).sendKeys(\"11349440\");\n\n\t\t//Selecionar checkbox name(\"i_agree\")\n\t\tnavegador.findElement(By.name(\"i_agree\")).click();\n\n\t\t//Clicar em register id(\"register_btnundefined\")\t\t\n\t\tnavegador.findElement(By.id(\"register_btnundefined\")).click();\n\t\t\n\t\treturn new homePage (navegador);\n\t}",
"@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}",
"private void setupButtons() {\n\t\tsetupCreateCourse();\n\t\tsetupRemoveCourse();\n\t\tsetupCreateOffering();\n\t\tsetupRemoveOffering();\n\t\tsetupAddPreReq();\n\t\tsetupRemovePreReq();\n\t\tsetupBack();\n\t}",
"private void showPage(Integer index, Direction dir) {\n\t\tAbstractWizardPanel page;\n\t\ttry {\n\t\t\tpage = pages.get(index);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Error setting wizard page to index: \" + index);\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\t// Check to see if page should be ignored\n\t\tif (isIgnoredPageClass(page)) {\n\t\t\tif (dir.equals(Direction.FORWARD)) {\n\t\t\t\tindex++;\n\t\t\t} else {\n\t\t\t\tindex--;\n\t\t\t}\n\n\t\t\tshowPage(index, dir);\n\t\t\treturn;\n\t\t}\n\n\t\tpagePanel.removeAll();\n\t\tpagePanel.add(page);\n\t\tlblTitle.setText(page.getTitle());\n\t\ttxtInstructions.setText(page.getInstructions());\n\t\tcurrPageIndex = index;\n\t\tautoEnableNavButtons();\n\n\t\tpage.initialViewTasks();\n\n\t\tpagePanel.repaint();\n\n\t}",
"private void removeDefaultNewWizards()\n {\n // based on:\n // http://stackoverflow.com/questions/11307367/how-to-remove-default-wizards-from-file-new-menu-in-rcp-application\n // http://www.eclipse.org/forums/index.php/t/261462\n\n AbstractExtensionWizardRegistry wizardRegistry = (AbstractExtensionWizardRegistry) PlatformUI.getWorkbench().getNewWizardRegistry();\n IWizardCategory[] categories = PlatformUI.getWorkbench().getNewWizardRegistry().getRootCategory().getCategories();\n\n for (IWizardDescriptor wizard : getAllWizards(categories))\n {\n if(wizard.getCategory().getId().matches(\"org.eclipse.ui.Basic\"))\n {\n WorkbenchWizardElement wizardElement = (WorkbenchWizardElement) wizard;\n wizardRegistry.removeExtension(wizardElement.getConfigurationElement().getDeclaringExtension(), new Object[] { wizardElement });\n }\n }\n }",
"@Override\n\tprotected void initOwnPageComponents() {\n\t\tLOG.debug(\"###BtpnBasePage:initPageComponents()====> Start\");\n\t\tsuper.initOwnPageComponents();\n\t\taddSelfCarePageComponents();\n\t\tLOG.debug(\"###BtpnBasePage:initPageComponents()====> End\");\n\t}",
"public GuidedWizardPanel()\r\n\t{\t\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\t\r\n\t\twizardPanel = new WizardPanel(panelList, groupLabels);\r\n\t\twizardPanel.addSaveListener(this);\r\n\t\tpanel.add(wizardPanel);\r\n\r\n\t\t// set up listener relationships\r\n\t\tsolvingForPanel.addSolvingForListener(powerPanel);\r\n\t\tsolvingForPanel.addSolvingForListener(perGroupSampleSizePanel);\r\n\t\tsolvingForPanel.addSolvingForListener(resultsPanel);\r\n\t\t// listeners for outcome measures\r\n\t\toutcomesPanel.addOutcomesListener(hypothesisIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(hypothesisRepeatedPanel);\r\n\t\toutcomesPanel.addOutcomesListener(meanDifferencesIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(meanDifferencesPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityIndependentPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityRepeatedPanel);\r\n\t\toutcomesPanel.addOutcomesListener(variabilityCovariateOutcomePanel);\r\n\t\t// listeners for predictor information\r\n\t\tcatPredictorsPanel.addPredictorsListener(relativeGroupSizePanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(hypothesisIndependentPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(hypothesisRepeatedPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(meanDifferencesIndependentPanel);\r\n\t\tcatPredictorsPanel.addPredictorsListener(meanDifferencesPanel);\r\n\t\t// listeners for relative group sizes\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisIndependentPanel);\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisRepeatedPanel);\r\n\t\t// listeners for baseline covariates\r\n\t\tcovariatePanel.addCovariateListener(meanDifferencesIndependentPanel);\r\n\t\tcovariatePanel.addCovariateListener(meanDifferencesPanel);\r\n\t\t// TODO: covariatePanel.addCovariateListener(meanDifferencesRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(hypothesisIndependentPanel);\r\n\t\tcovariatePanel.addCovariateListener(hypothesisRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityIndependentPanel);\r\n\t\t// TODO: covariatePanel.addCovariateListener(variabilityRepeatedPanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityCovariatePanel);\r\n\t\tcovariatePanel.addCovariateListener(variabilityCovariateOutcomePanel);\r\n\t\tcovariatePanel.addCovariateListener(optionsTestsPanel);\r\n\t\tcovariatePanel.addCovariateListener(optionsPowerMethodsPanel);\r\n\t\t// listeners for repeated measures \r\n\t\trepeatedMeasuresPanel.addRepeatedMeasuresListener(hypothesisIndependentPanel);\r\n\t\trepeatedMeasuresPanel.addRepeatedMeasuresListener(hypothesisRepeatedPanel);\r\n\t\t// listeners for hypotheses\r\n\t\thypothesisIndependentPanel.addHypothesisListener(meanDifferencesIndependentPanel);\r\n\t\thypothesisRepeatedPanel.addHypothesisListener(meanDifferencesRepeatedPanel);\r\n\t\t// group size listeners\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(hypothesisIndependentPanel);\r\n\t\t// variability listeners\r\n\t\tvariabilityIndependentPanel.addVariabilityListener(variabilityCovariateOutcomePanel);\r\n\t\tvariabilityCovariatePanel.addVariabilityListener(variabilityCovariateOutcomePanel);\r\n\t\toptionsDisplayPanel.addChartOptionsListener(resultsPanel);\r\n\t\t// callbacks to fill in the power curve options screen\r\n\t\talphaPanel.addAlphaListener(optionsDisplayPanel);\r\n\t\toptionsTestsPanel.addTestListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addPowerMethodListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addQuantileListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addQuantileCheckboxListener(optionsDisplayPanel);\r\n\t\toptionsPowerMethodsPanel.addPowerCheckboxListener(optionsDisplayPanel);\r\n\t\tmeanDifferencesScalePanel.addBetaScaleListener(optionsDisplayPanel);\r\n\t\tperGroupSampleSizePanel.addPerGroupSampleSizeListener(optionsDisplayPanel);\r\n\t\trelativeGroupSizePanel.addRelativeGroupSizeListener(optionsDisplayPanel);\r\n\t\tvariabilityScalePanel.addSigmaScaleListener(optionsDisplayPanel);\r\n\t\t// initialize\r\n\t\tinitWidget(panel);\r\n\t}",
"public Reqif10ModelWizardInitialObjectCreationPage(String pageId) {\r\n \t\t\tsuper(pageId);\r\n \t\t}",
"private void addControl() {\n if(getActivity()!=null){\n ((DrawerLocker ) getActivity()).setDrawerEnabled(true);\n }\n //get Bundle\n Bundle args = getArguments();\n lessonIDItem = 1;\n if(args!=null && args.containsKey(\"lesson_item_id\")){\n lessonIDItem = args.getInt(\"lesson_item_id\");\n lesson_item_name =args.getString(\"lesson_item_name\");\n }\n toolbar = root.findViewById(R.id.contentLesson_toolbar);\n ((AppCompatActivity ) getActivity()).setSupportActionBar(toolbar);\n ((AppCompatActivity) getActivity()).getSupportActionBar().setTitle(\"Lesson\");\n ((AppCompatActivity) getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n\n progressBarContent = root.findViewById(R.id.progressBarContent);\n progressBarContent.setMax(100);\n progressBarContent.setProgress(1);\n progressBarContent.incrementProgressBy(2);\n\n wv_lesson_content = root.findViewById(R.id.wv_lesson_content);\n wv_lesson_content.setWebViewClient(new WebViewClientCustomer());\n WebSettings settings = wv_lesson_content.getSettings();\n settings.setSupportZoom(true);\n settings.setBuiltInZoomControls(true);\n settings.setDisplayZoomControls(false);\n settings.setJavaScriptEnabled(true);\n wv_lesson_content.loadUrl(url + lessonIDItem);\n }",
"public NewEntryWizard()\n {\n setNeedsProgressMonitor( true );\n }",
"protected void addSelfCarePageComponents() {\n\t\tLinkedList<IMenuEntry> menuEntries = getMobiliserWebSession().getLeftMenu();\n\t\tif (menuEntries == null || menuEntries.size() == 0) {\n\t\t\tmenuEntries = buildLeftMenu();\n\t\t\tgetMobiliserWebSession().setLeftMenu(menuEntries);\n\t\t}\n\t\tadd(new LeftMenuView(\"leftMenu\", new Model<LinkedList<IMenuEntry>>(menuEntries), getMobiliserWebSession()\n\t\t\t.getBtpnRoles()).setRenderBodyOnly(true));\n\t}",
"protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"private void initialize() {\n this.setSize(394, 201);\n\n this.addTab(\"看病人基本資料\", null, getSeePatientFoundamentalDataPanel(), null);\n this.addTab(\"看病歷\", null, getSeeCaseHistoryPanel(), null);\n this.addTab(\"查藥品庫存\", null, getSeeMedicinesPanel(), null);\n this.addTab(\"看檢查報告\", null, getSeeInspectionReportPanel(), null);\n this.addTab(\"看掛號病人\", null, getSeeRegisteredPatientFoundamentalDataPanel(), null);\n this.addTab(\"開藥單\", null, getWritePrescriptionPanel(), null);\n this.addTab(\"寫病歷\", null, getWriteCaseHistoryPanel(), null);\n this.addTab(\"決定病人住院\", null, getDecideHospitalizePanel(), null);\n this.addTab(\"急診\", null, getEmergencyTreatmentPanel(), null);\n }",
"public ProcessPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t \n\n\t}",
"public WizardModel(){ \n wp = new HashMap<Object,WizardPanelDescriptor>();\n step = 1;\n }",
"private void setupPager() {\n SectionsPagerAdapter pagerAdapter = new SectionsPagerAdapter(getSupportFragmentManager(), getResources());\n ViewPager pager = findViewById(R.id.pager);\n pager.setAdapter(pagerAdapter);\n TabLayout tabLayout = findViewById(R.id.tabs);\n tabLayout.setupWithViewPager(pager);\n pager.addOnPageChangeListener(addPageChangeListener());\n }",
"public org.biocatalogue.x2009.xml.rest.PageParameter addNewPage()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.PageParameter target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.PageParameter)get_store().add_element_user(PAGE$2);\r\n return target;\r\n }\r\n }",
"private void AddNewScenario(HttpServletRequest request, HttpServletResponse response) {\n XMLTree.getInstance().AddNewScenario();\n }",
"public void setPreviousPage(IWizardPage page);",
"public static void verifyFormPagesAndFill() throws MalformedURLException, InterruptedException, ParseException {\n\t\t// get pages\n\t\tList<MobileElement> pagination = AndroidLocators\n\t\t\t\t.findElements_With_Xpath(\"//*[contains(@content-desc,'Page ')]\");\n\t\t// checkif pagination link exists\n\t\tif (pagination.size() > 0) {\n\t\t\tSystem.out.println(\" ----- pagination exists ----- \");\n\n\t\t\t// click on pagination link\n\t\t\tfor (int i = 0; i < pagination.size(); i++) {\n\t\t\t\tSystem.out.println(\".... Clicking on page .... : \" + pagination.get(i));\n\t\t\t\tpagination.get(i).click();\n\t\t\t\tverifySectionToClickAdd();\n\t\t\t\tfill_Form_With_Pagination(i);\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\" **** pagination not exists **** \");\n\t\t\tverifySectionToClickAdd();\n\t\t\tformfill();\n\t\t}\n//\t\tForms.formSaveButton();\n\t}",
"private void inicialize() {\n\t\t\n\t\t/**\n\t\t * Labels e textField of the page:\n\t\t * Nome\n\t\t * Descrição\n\t\t */\n\n\t\tJLabel lblNome = new JLabel(\"Nome\");\n\t\tlblNome.setBounds(5, 48, 86, 28);\n\t\tlblNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblNome);\n\t\t\n\t\tJLabel lblDescricao = new JLabel(\"Descrição\");\n\t\tlblDescricao.setBounds(5, 117, 86, 51);\n\t\tlblDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblDescricao);\n\t\t\n\t\ttextFieldNome = new JTextField();\n\t\ttextFieldNome.setBounds(103, 45, 290, 35);\n\t\ttextFieldNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldNome.setColumns(10);\n\t\tcontentPanel.add(textFieldNome);\n\t\t\n\t\ttextFieldDescricao = new JTextArea();\n\t\ttextFieldDescricao.setBackground(Color.WHITE);\n\t\ttextFieldDescricao.setLineWrap(true);\n\t\ttextFieldDescricao.setBounds(101, 118, 290, 193);\n\t\ttextFieldDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldDescricao.setColumns(10);\n\t\tcontentPanel.add(textFieldDescricao);\n\n\t\t/**\n\t\t * Confirmation panel\n\t\t * Confirmation button\n\t\t * Cancellation button\n\t\t */\n\n\t\tpainelConfirmacaoSetup();\n\t}",
"CartogramWizardPanelOne (JFrame contentFrame)\n\t{\n\t\t\n\t\tmCartogramWizard = (CartogramWizard)contentFrame;\n\t\n\t\tint width = 440;\n\t\tint height = 340;\n\t\n\t\tthis.setLocation(160, 90);\n\t\tthis.setSize(width, height);\n\t\tthis.setLayout(null);\n\t\t\t\t\n\t\t\n\t\t// Add the Next button\n\t\tmNextButton = new JButton(\"Next >\");\n\t\tmNextButton.setLocation(340, 314);\n\t\tmNextButton.setSize(100, 26);\n\t\tmNextButton.setMnemonic(KeyEvent.VK_ACCEPT);\n\t\t\n\t\tmNextButton.addActionListener(new\n\t\t\tCartogramWizardGoToStepAction(mCartogramWizard, 2));\n\t\t\n\t\tthis.add(mNextButton);\n\t\t\n\t\t\n\t\t// Add the Back button\n\t\tJButton backButton = new JButton(\"< Back\");\n\t\tbackButton.setLocation(235, 314);\n\t\tbackButton.setSize(100, 26);\n\t\t\n\t\tbackButton.addActionListener(new\n\t\t\tCartogramWizardGoToStepAction(mCartogramWizard, 0));\n\t\t\t\n\t\tthis.add(backButton);\n\t\t\n\t\t\n\t\t// Add a pop-up menu with the list of available layers.\n\t\t\n\t\tJLabel layerMenuLabel = new JLabel(\"Spatial coverage:\");\n\t\tlayerMenuLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tlayerMenuLabel.setBounds(0, 0, 190, 14);\n\t\tthis.add(layerMenuLabel);\n\t\t\n\t\tmLayerMenu = new JComboBox();\n\t\tmLayerMenu.setBounds(0, 20, 190, 26);\n\t\tmLayerMenu.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmLayerMenu.setMaximumRowCount(20);\n\t\t\n\t\t// Add all polygon layers to the list.\n\t\tint nlayers = AppContext.layerManager.size();\n\t\t\n\t\t// Check for each layer whether it is a polygon layer or not.\n\t\tfor (int lyrcnt = 0; lyrcnt < nlayers; lyrcnt++)\n\t\t{\n\t\t\tLayer lyr = AppContext.layerManager.getLayer(lyrcnt);\n\t\t\tFeatureCollectionWrapper fcw = lyr.getFeatureCollectionWrapper();\n\t\t\tint nfeat = fcw.size();\n\t\t\tif (nfeat > 0)\n\t\t\t{\n\t\t\t\tFeature feat = (Feature)fcw.getFeatures().get(0);\n\t\t\t\tGeometry geom = feat.getGeometry();\n\t\t\t\tif (geom.getArea() != 0.0)\n\t\t\t\t{\n\t\t\t\t\tmLayerMenu.addItem(lyr.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// If there is no layer for the cartogram deformation,\n\t\t// add a menu item \"<none>\" and disable the \"Next\" button.\n\t\tif (mLayerMenu.getItemCount() == 0)\n\t\t{\n\t\t\tmLayerMenu.addItem(\"<none>\");\n\t\t\tmNextButton.setEnabled(false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmNextButton.setEnabled(true);\n\t\t}\n\t\t\n\t\t\t\n\t\tthis.add(mLayerMenu);\n\t\t\n\t\t\n\t\t\n\t\t// Adding the polygon image\n\t\tClassLoader cldr = this.getClass().getClassLoader();\n\t\tURL iconURL = cldr.getResource(\"Topology.png\");\n\t\tImageIcon topologyImage = new ImageIcon(iconURL);\n\n\t\t// Create a new label containing the image.\n\t\tJLabel iconLabel = new JLabel(topologyImage);\n\t\t\n\t\t// Setting the label parameters.\n\t\ticonLabel.setLayout(null);\n\t\ticonLabel.setSize(192, 239);\n\t\ticonLabel.setLocation(240, 30);\n\t\t\n\t\t// Add the icon label to this panel.\n\t\tthis.add(iconLabel);\n\t\t\n\t\t\n\t\t\n\t\t// Adding the explanatory text.\n\t\t// The message itself is read from a RTF file.\n\t\tJTextPane layerMenuTextPane = new JTextPane();\n\t\n\t\t// Get the content from the text file.\n\t\tString layerMenuText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"LayerMenuText.rtf\").openStream();\n\t\t\t\t\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\t\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\t\n\t\t\tinStream.close();\n\t\t\tlayerMenuText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\t\n\t\tlayerMenuTextPane.setContentType(\"text/rtf\");\n\t\tlayerMenuTextPane.setText(layerMenuText);\n\t\tlayerMenuTextPane.setEditable(false);\n\t\tlayerMenuTextPane.setFont(new Font(null, Font.PLAIN, 11));\n\t\tlayerMenuTextPane.setBackground(null);\n\t\tlayerMenuTextPane.setLocation(0, 60);\n\t\tlayerMenuTextPane.setSize(220, 240);\n\t\tthis.add(layerMenuTextPane);\n\t\t\n\t\t\n\t\t\n\t\t// ADD THE HELP BUTTON\n\t\t\n\t\t//ClassLoader cldr = this.getClass().getClassLoader();\n\t\t\n\t\tjava.net.URL imageURL = cldr.getResource(\"help-22.png\");\n\t\tImageIcon helpIcon = new ImageIcon(imageURL);\n\n\t\tJButton helpButton = \n\t\t\tnew JButton(helpIcon);\n\t\t\n\t\thelpButton.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\thelpButton.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\thelpButton.setSize(30, 30);\n\t\thelpButton.setLocation(0, 312);\n\t\thelpButton.setFocusable(false);\n\t\thelpButton.setContentAreaFilled(false);\n\t\thelpButton.setBorderPainted(false);\n\t\t\n\t\thelpButton.addActionListener(new CartogramWizardShowURL(\n\t\t\t\"http://chorogram.choros.ch/scapetoad/help/a-cartogram-creation.php#cartogram-layer\"));\n\t\t\n\t\tthis.add(helpButton);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"@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 }",
"@Override\n protected void onNextPageRequested(int page) {\n\n }",
"public AbstractSOAProjectWizardPage(String pageName) {\r\n\t\tsuper(pageName);\r\n\t}",
"private PIM_AddEmployeeListPage() {\n\t\tPropertyFileReader propReader = new PropertyFileReader();\n\t\tPIM_AddEmployeePageProperties = propReader.readPropertyFile(\"PIM_AddEmployeeListProperties\");\n\t}",
"public void goToNextPage() {\n nextPageButton.click();\n }",
"@Override\r\n\tpublic void mypage() {\n\t\t\r\n\t}",
"public HomePageActions() {\n\t\tPageFactory.initElements(driver,HomePageObjects.class);\n\t}",
"private void setupTabs() {\n }",
"public interface WizardScenePage {\n int pageBack = -1;\n int pageHere = -1;\n int pageNext = -1;\n\n abstract public boolean allowsPageBack();\n\n abstract public boolean allowsPageNext();\n\n abstract public boolean isPageValidate();\n\n abstract public void doCanceled();\n\n abstract public void doFinished();\n\n abstract public void doPageBack();\n\n abstract public void doPageHelp();\n\n abstract public void doPageNext();\n}",
"public void nextPage() {\n\t\tthis.skipEntries += NUM_PER_PAGE;\n\t\tloadEntries();\n\t}",
"private void updateUi() {\n int index = mCurrentPage.getIndex();\n int pageCount = mPdfRenderer.getPageCount();\n mButtonPrevious.setEnabled(0 != index);\n mButtonNext.setEnabled(index + 1 < pageCount);\n getActivity().setTitle(getString(R.string.app_name_with_index, index + 1, pageCount));\n }",
"@Override\n public void createPageControls(Composite pageContainer) {\n fSelectionPage.createControl(pageContainer);\n }",
"public RegistrationPage(WebDriver wd) {\n\t\tsuper(wd);\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public String showAddPage(String errorMsg) \n throws HttpPresentationException, webschedulePresentationException\n { \n\n String proj_name = this.getComms().request.getParameter(PROJ_NAME);\n String password = this.getComms().request.getParameter(PASSWORD);\n String discrib = this.getComms().request.getParameter(DISCRIB);\n String indexnum = this.getComms().request.getParameter(INDEXNUM);\n String thours = this.getComms().request.getParameter(THOURS);\n String dhours = this.getComms().request.getParameter(DHOURS);\n String projectID = this.getComms().request.getParameter(PROJ_ID);\n String codeofpay = this.getComms().request.getParameter(CODEOFPAY);\n\tString contactname = this.getComms().request.getParameter(CONTACTNAME);\n\tString contactphone = this.getComms().request.getParameter(CONTACTPHONE);\n\tString billaddr1 = this.getComms().request.getParameter(BILLADDR1);\n\tString billaddr2 = this.getComms().request.getParameter(BILLADDR2);\n\tString billaddr3 = this.getComms().request.getParameter(BILLADDR3);\n\tString city = this.getComms().request.getParameter(CITY);\n\tString state = this.getComms().request.getParameter(STATE);\n\tString zip = this.getComms().request.getParameter(ZIP);\n\tString accountid = this.getComms().request.getParameter(ACCOUNTID);\n\tString isoutside = this.getComms().request.getParameter(OUTSIDE);\n\tString exp = this.getComms().request.getParameter(EXP);\n\tString expday = this.getComms().request.getParameter(EXPDAY);\n\tString expmonth = this.getComms().request.getParameter(EXPMONTH);\n\tString expyear = this.getComms().request.getParameter(EXPYEAR);\n\tString notifycontact = this.getComms().request.getParameter(NOTIFYCONTACT);\n\n\n\t // Instantiate the page object\n\t EditHTML page = new EditHTML();\n\n\tHTMLOptionElement templateOption = page.getElementTemplateOption();\n Node PersonSelect = templateOption.getParentNode();\n templateOption.removeAttribute(\"id\");\n templateOption.removeChild(templateOption.getFirstChild());\n\n if(null != this.getComms().request.getParameter(PROJ_NAME)) {\n page.getElementProj_name().setValue(this.getComms().request.getParameter(PROJ_NAME));\n }\n\n try {\n \tPerson[] PersonList = PersonFactory.getPersonsList();\n \tfor (int numPersons = 0; numPersons < PersonList.length; numPersons++) {\n \t Person currentPerson = PersonList[numPersons] ;\n \t HTMLOptionElement clonedOption = (HTMLOptionElement) templateOption.cloneNode(true);\n clonedOption.setValue(currentPerson.getHandle());\n Node optionTextNode = clonedOption.getOwnerDocument().\n createTextNode(currentPerson.getFirstname() + \" \" +\n currentPerson.getLastname());\n clonedOption.appendChild(optionTextNode);\n // Do only a shallow copy of the option as we don't want the text child\n // of the node option\n PersonSelect.appendChild(clonedOption);\n // Alternative way to insert nodes below\n // insertBefore(newNode, oldNode);\n // ProjSelect.insertBefore(clonedOption, templateOption);\n\t }\n\t } catch(Exception ex) {\n\t this.writeDebugMsg(\"Error populating Persons List: \" + ex);\n throw new webschedulePresentationException(\"Error getting Persons List: \", ex);\n\t }\n\t\n templateOption.getParentNode().removeChild(templateOption);\n\n if(null != this.getComms().request.getParameter(PASSWORD)) {\n page.getElementPassword().setValue(this.getComms().request.getParameter(PASSWORD));\n }\n\n if(null != this.getComms().request.getParameter(DISCRIB)) {\n page.getElementDiscrib().setValue(this.getComms().request.getParameter(DISCRIB));\n }\n if(null != this.getComms().request.getParameter(INDEXNUM)) {\n page.getElementIndexnum().setValue(this.getComms().request.getParameter(INDEXNUM));\n }\n\n if(null != this.getComms().request.getParameter(THOURS)) {\n page.getElementThours().setValue(this.getComms().request.getParameter(THOURS));\n }\n\n if(null != this.getComms().request.getParameter(DHOURS)) {\n page.getElementDhours().setValue(this.getComms().request.getParameter(DHOURS));\n }\n\n if(null != this.getComms().request.getParameter(CODEOFPAY)) {\n page.getElementCodeofpay().setValue(this.getComms().request.getParameter(CODEOFPAY));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTNAME)) {\n page.getElementContactname().setValue(this.getComms().request.getParameter(CONTACTNAME));\n }\n\n if(null != this.getComms().request.getParameter(CONTACTPHONE)) {\n \npage.getElementContactphone().setValue(this.getComms().request.getParameter(CONTACTPHONE));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR1)) {\n \npage.getElementBilladdr1().setValue(this.getComms().request.getParameter(BILLADDR1));\n }\n\n\n\nif(null != this.getComms().request.getParameter(BILLADDR2)) {\n \npage.getElementBilladdr2().setValue(this.getComms().request.getParameter(BILLADDR2));\n }\n\n\nif(null != this.getComms().request.getParameter(BILLADDR3)) {\n \npage.getElementBilladdr3().setValue(this.getComms().request.getParameter(BILLADDR3));\n }\n\nif(null != this.getComms().request.getParameter(STATE)) {\n \npage.getElementState().setValue(this.getComms().request.getParameter(STATE));\n }\n\nif(null != this.getComms().request.getParameter(ZIP)) {\n \npage.getElementZip().setValue(this.getComms().request.getParameter(ZIP));\n }\n\n if(null != this.getComms().request.getParameter(OUTSIDE)) {\n page.getElementOutsideBox().setChecked(true);\n } else {\n page.getElementOutsideBox().setChecked(false);\n }\n\t\nif(null != this.getComms().request.getParameter(EXP)) {\n page.getElementExpBox().setChecked(true);\n } else {\n page.getElementExpBox().setChecked(false);\n }\t\n\t\nif(null != this.getComms().request.getParameter(ACCOUNTID)) {\n \npage.getElementAccountid().setValue(this.getComms().request.getParameter(ACCOUNTID));\n }\n\t\n\t\nif(null != this.getComms().request.getParameter(EXPDAY)) {\n \npage.getElementExpday().setValue(this.getComms().request.getParameter(EXPDAY));\n }\n\n\nif(null != this.getComms().request.getParameter(EXPMONTH)) {\n \npage.getElementExpmonth().setValue(this.getComms().request.getParameter(EXPMONTH));\n }\nif(null != this.getComms().request.getParameter(EXPYEAR)) {\n \npage.getElementExpyear().setValue(this.getComms().request.getParameter(EXPYEAR));\n }\n\n if(null != this.getComms().request.getParameter(NOTIFYCONTACT)) {\n page.getElementNotifycontact().setValue(this.getComms().request.getParameter(NOTIFYCONTACT));\n }\n\n if(null == errorMsg) { \n\t page.getElementErrorText().getParentNode().removeChild(page.getElementErrorText());\n } else {\n page.setTextErrorText(errorMsg);\n }\n \n\t return page.toDocument();\n }",
"public StartPage() {\n initComponents();\n \n }",
"public String handleShowAddPage() \n throws HttpPresentationException \n {\n\t return showAddPage(null);\n }",
"public void loadStartPage()\n\t{\n\t}",
"public boolean[] showLinearWizard(List<Admin> admins, AdminService adminService) {\n\n // define pages to show\n Wizard wizard = new Wizard();\n wizard.setTitle(\"System Setup Configuration\");\n\n // --- page 1\n int row = 0;\n\n GridPane page1Grid = new GridPane();\n page1Grid.setVgap(10);\n page1Grid.setHgap(10);\n\n ObservableList<String> adminNames = FXCollections.observableArrayList();\n ChoiceBox<String> allAdmins = new ChoiceBox<>(adminNames);\n\n if (!admins.isEmpty()) {\n page1Grid.add(new Label(\"All Admins :\"), 0, row);\n for (Admin a : admins) {\n adminNames.add(a.getAdminName());\n }\n page1Grid.add(allAdmins, 1, row++);\n }\n\n page1Grid.add(new Label(\"Admin :\"), 0, row);\n final TextField userTF = createTextField(\"adminName\");\n page1Grid.add(userTF, 1, row++);\n\n page1Grid.add(new Label(\"Password :\"), 0, row);\n final TextField passTF = createTextField(\"password\");\n // Set initial state\n passTF.setManaged(false);\n passTF.setVisible(false);\n page1Grid.add(passTF, 1, row);\n\n final PasswordField passPF = new PasswordField();\n passPF.setId(\"password\");\n GridPane.setHgrow(passPF, Priority.ALWAYS);\n page1Grid.add(passPF, 1, row);\n\n CheckBox checkBox = new CheckBox(\"Show/Hide password\");\n page1Grid.add(checkBox, 1, ++row);\n\n // Bind properties. Toggle textField and passwordField\n // visibility and manageability properties mutually when checkbox's state is changed.\n // Because we want to display only one component (textField or passwordField)\n // on the scene at a time.\n passTF.managedProperty().bind(checkBox.selectedProperty());\n passTF.visibleProperty().bind(checkBox.selectedProperty());\n\n passPF.managedProperty().bind(checkBox.selectedProperty().not());\n passPF.visibleProperty().bind(checkBox.selectedProperty().not());\n\n // Bind the textField and passwordField text values bidirectionally.\n passTF.textProperty().bindBidirectional(passPF.textProperty());\n\n WizardPane page1 = new WizardPane() {\n\n @Override\n public void onEnteringPage(Wizard wizard) {\n if (!admins.isEmpty()) {\n System.out.println(\"Skipped!\");\n } else {\n for (ButtonType type : getButtonTypes()) {\n if (type.getButtonData().equals(ButtonBar.ButtonData.NEXT_FORWARD)) {\n Node next = lookupButton(type);\n Platform.runLater(() -> next.setDisable(true));\n userTF.textProperty().addListener((observable, oldValue, newValue) -> next.setDisable(newValue.trim().isEmpty() || passPF.getText().isEmpty()));\n passPF.textProperty().addListener((observable, oldValue, newValue) -> next.setDisable(newValue.trim().isEmpty() || userTF.getText().isEmpty()));\n } else if (type.getButtonData().equals(ButtonBar.ButtonData.CANCEL_CLOSE)) {\n Node cancel = lookupButton(type);\n Platform.runLater(() -> cancel.setVisible(false));\n } else if (type.getButtonData().equals(ButtonBar.ButtonData.BACK_PREVIOUS)) {\n Node previous = lookupButton(type);\n Platform.runLater(() -> previous.setVisible(false));\n }\n }\n }\n }\n\n @Override\n public void onExitingPage(Wizard wizard) {\n\n String adminName = (String) wizard.getSettings().get(\"adminName\");\n String pass = (String) wizard.getSettings().get(\"password\");\n\n Validation validation = new Validation();\n if (!admins.isEmpty() && adminName.isEmpty() && pass.isEmpty()) {\n System.out.println(\"Skipped!\");\n } else {\n if (validation.emptyValidation(userTF, \"Admin\", adminName.isEmpty()) &&\n validation.emptyValidation(passTF, \"Password\", pass.isEmpty())) {\n //save\n if (adminNames.isEmpty()) {\n Admin admin = new Admin();\n admin.setAdminName(adminName);\n admin.setPassword(pass);\n\n adminService.save(admin);\n\n adminNames.add(adminName);\n admins.add(admin);\n } else {\n for (Admin existingAdmin : admins) {\n //update\n if (!existingAdmin.getAdminName().equals(adminName) || !existingAdmin.getPassword().equals(pass)) {\n boolean yesIdo = CommonUtils.confirmMessage(\"Are you Sure?\", \"Warning: Admin Credentials Changed! \", \"Do you really want to update Admin Details?\");\n if (yesIdo) {\n existingAdmin.setAdminName(adminName);\n existingAdmin.setPassword(pass);\n adminService.update(existingAdmin);\n } else {\n userTF.setText(existingAdmin.getAdminName());\n passTF.setText(existingAdmin.getPassword());\n }\n break;\n }\n }\n }\n } else {\n wizard.getSettings().put(\"adminName\", \"\");\n }\n }\n }\n };\n String adminHeaderTest;\n if (admins.isEmpty()) {\n adminHeaderTest = \"No Admin Found. \\nPlease add new Admin Details.\";\n } else {\n adminHeaderTest = \"Admin Details!\";\n }\n page1.setHeaderText(adminHeaderTest);\n page1.setContent(page1Grid);\n\n allAdmins.getSelectionModel().\n\n selectedIndexProperty().\n\n addListener((observableValue, oldIndex, newIndex) ->\n\n {\n if (newIndex != null) {\n Admin existingAdmin = adminService.findByAdminName(allAdmins.getItems().get((Integer) newIndex));\n userTF.setText(existingAdmin.getAdminName());\n passTF.setText(existingAdmin.getPassword());\n }\n });\n\n GridPane page3Grid = new GridPane();\n page3Grid.setVgap(10);\n page3Grid.setHgap(10);\n\n ImageView imageView = new ImageView();\n imageView.setFitHeight(100);\n imageView.setPreserveRatio(true);\n imageView.setImage(CommonUtils.getLogoImage());\n imageView.setSmooth(true);\n\n page3Grid.add(imageView, 0, 0, 1, 3);\n\n page3Grid.add(new\n\n Label(\"Name :\"), 1, 0);\n page3Grid.add(new\n\n Label(\"Address:\"), 1, 1);\n page3Grid.add(new\n\n Label(\"Contact:\"), 1, 2);\n\n\n ChoiceBox<String> systemNameCB = new ChoiceBox<>(systemNames);\n systemNameCB.setId(\"churchName\");\n GridPane.setHgrow(systemNameCB, Priority.ALWAYS);\n systemNameCB.getSelectionModel().select(ConfigReader.getSystemIndex());\n page3Grid.add(systemNameCB, 2, 0);\n\n TextField systemAddress = createTextField(\"churchAddress\");\n systemAddress.setPromptText(\"Eg. Kalanki, Kathmandu\");\n systemAddress.setText(ConfigReader.getSystemAddress());\n page3Grid.add(systemAddress, 2, 1);\n\n TextField systemContact = createTextField(\"churchContact\");\n systemContact.setPromptText(\"Eg. 01-4XXXXXX\");\n systemContact.setText(ConfigReader.getSystemContact());\n page3Grid.add(systemContact, 2, 2);\n\n // --- page 3\n WizardPane page3 = new WizardPane();\n page3.setHeaderText(\"Church Details!\");\n\n page3.setContentText(\"Please provide Church Name and photo!\\nNote: Changes will be active after Restart only.\");\n page3.setContent(page3Grid);\n\n ButtonType photoDialogButton = new ButtonType(\"Change Logo\", ButtonBar.ButtonData.HELP_2);\n page3.getButtonTypes().\n\n add(photoDialogButton);\n\n Button photoButton = (Button) page3.lookupButton(photoDialogButton);\n photoButton.setStyle(\"-fx-background-color: DODGERBLUE;\");\n photoButton.setTextFill(Color.WHITE);\n photoButton.addEventFilter(ActionEvent.ACTION, actionEvent ->\n\n {\n actionEvent.consume(); // stop hello.dialog from closing\n getImage();\n imageView.setImage(CommonUtils.getLogoImage());\n });\n\n // create wizard\n wizard.setFlow(new Wizard.LinearFlow(page1, page3));\n\n // show wizard and wait for response\n wizard.showAndWait().\n\n ifPresent(result ->\n\n {\n if (result == ButtonType.FINISH) {\n try {\n String[] currentChurchDetails = new String[]{String.valueOf(ConfigReader.getSystemIndex()), ConfigReader.getSystemAddress(), ConfigReader.getSystemContact()};\n String[] newChurchDetails = new String[]{String.valueOf(systemNameCB.getSelectionModel().getSelectedIndex()), systemAddress.getText(), systemContact.getText()};\n if (!Arrays.equals(currentChurchDetails, newChurchDetails)) {\n ConfigReader.setSystemDetails(newChurchDetails);\n churchDetailsChanged[1] = true;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n });\n\n return churchDetailsChanged;\n }",
"public void addPage(PDFPageWriter aPage)\n {\n _pages.add(aPage);\n }",
"public void initByEngine( WizardEngine e )\n {\n initDialog();\n\n // Each wizard dialog must contains Next and Back commands\n // A better solution is not to include Back command on the first dialog\n // and not to include Next command on the last dialog\n // This leave as an exercise to readers\n addCommand( NEXT_COMMAND );\n addCommand( BACK_COMMAND );\n\n this.engine = e;\n\n super.setCommandListener( this );\n }",
"@Override\n\tpublic void nextPage() {\n\t\tif ( yesBox.isChecked() ) {\n\t\t\tcore.modelCore.events.remove(core.modelCore.selectedEvent);\n\t\t\t\n\t\t\tcore.currentScreen.thisRemoveScreen();\n\t\t\tcore.currentScreen = null;\n\t\t\tPage_Event12Yes newPage = new Page_Event12Yes(core);\n\t\t} else {\n\t\t\tcore.currentScreen.thisRemoveScreen();\n\t\t\tcore.currentScreen = null;\n\t\t\tPage_Event12No newPage = new Page_Event12No(core);\n\t\t}\n\t\t\n\t\t//core.currentScreen.thisRemoveScreen();\n\t\t//core.currentScreen = null;\n\t\t//Page_Event03 newPage = new Page_Event03(core);\n\t}",
"@Override\n public Page addPage(String title) {\n throw new RuntimeException(\"addPage(String) unimplemented\");\n }",
"public void createPage3(){\n tabAbout = new JPanel();\n tabAbout.setLayout( null );\n \n\n JLabel lblGuidText_syn = new JLabel( \"<html><h1>Useless Dictionary</h1><p>Sulochana Kodituwakku<br>2014/CS/066<br>14000662</p></html>\" ); //html can be used in JLables\n lblGuidText_syn.setHorizontalAlignment(JLabel.LEFT);\n lblGuidText_syn.setVerticalAlignment(JLabel.TOP);\n lblGuidText_syn.setBounds( 10, 200, 750, 380 );\n tabAbout.add( lblGuidText_syn );\n \n btnImport.setBounds(10,10,125,25);\n tabAbout.add(btnImport);\n \n \n //set conlick event for Import button\n event_buttonImport ebd = new event_buttonImport();\n btnImport.addActionListener(ebd);\n }",
"public CartogramWizard ()\n\t{\n\t\n\t\t// Set the window parameters.\n\t\tthis.setTitle(AppContext.shortProgramName + \" _ Cartogram Wizard\");\n\t\tthis.setSize(640, 480);\n\t\tthis.setLocation(30, 40);\n\t\tthis.setResizable(false);\n\t\tthis.setLayout(null);\n\t\t//this.setModal(true);\n\t\tthis.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\t\tthis.addWindowListener(new CartogramWizardWindowListener());\n\t\t\n\t\t\n\t\t// Adding the cartogram wizard to the app context.\n\t\tAppContext.cartogramWizard = this;\n\t\t\n\t\t\n\t\t// Add icon panel at the left of the wizard window.\n\t\t// This panel contains the ScapeToad icon.\n\t\tif (mScapeToadIconPanel == null)\n\t\t{\n\t\t\tmScapeToadIconPanel = new ScapeToadIconPanel(this);\n\t\t}\n\t\t\n\t\tmScapeToadIconPanel.setLocation(30, 90);\n\t\tthis.add(mScapeToadIconPanel);\n\t\t\n\t\t\n\t\t\n\t\t// Add title panel.\n\t\tCartogramWizardTitlePanel titlePanel =\n\t\t\tnew CartogramWizardTitlePanel(this);\n\t\t\n\t\ttitlePanel.setLocation(30, 20);\n\t\tthis.add(titlePanel);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Add icon panel at the left of the wizard window.\n\t\t// This panel contains the ScapeToad icon.\n\t\tmWizardStepIconPanel = new WizardStepIconPanel(this);\n\t\tmWizardStepIconPanel.setLocation(380, 20);\n\t\tthis.add(mWizardStepIconPanel);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Ajouter l'introduction au wizard.\n\t\t// Explication des étapes à suivre :\n\t\t// 1. Sélectionner la couche des polygones (master layer).\n\t\t// 2. Sélectionner l'information statistique.\n\t\t// 3. Sélection des couches à transformer simultanément.\n\t\t\n\t\tmPanelZero = new CartogramWizardPanelZero(this);\n\t\tthis.getContentPane().add(mPanelZero);\n\t\t\n\t\tmCurrentStep = 0;\n\t\t\n\t\t\n\t\t\n\t\t// Add the running panel which is already created.\n\t\tmRunningPanel.setVisible(false);\n\t\tthis.add(mRunningPanel);\n\t\t\n\t\t\n\t\t// Add the finished panel which is already created.\n\t\tmFinishedPanel.setVisible(false);\n\t\tthis.add(mFinishedPanel);\n\t\t\n\t\t\t\t\n\t\t// Add the Cancel button.\n\t\tmCancelButton = new JButton(\"Cancel\");\n\t\tmCancelButton.setLocation(30, 404);\n\t\tmCancelButton.setSize(100, 26);\n\t\tmCancelButton.addActionListener(new CartogramWizardCloseAction());\n\t\tthis.getContentPane().add(mCancelButton);\n\t\t\n\t\t\n\t}",
"private void init()\n {\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n GWikiElement page = wikiContext.getWikiWeb().getElement(pageId);\n WorkflowPopupActionBean.this.page = page;\n\n // check if dependent objects exists\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(page.getElementInfo());\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, 2);\n }\n return null;\n }\n\n /**\n * Recursive fetch of child elements\n */\n private void getSubpagesRec(GWikiElementInfo parent, int curDepth)\n {\n List<GWikiElementInfo> childs = wikiContext.getElementFinder().getAllDirectChilds(parent);\n for (final GWikiElementInfo child : childs) {\n getDepObjects().add(wikiContext.getWikiWeb().getElement(child));\n getSubpagesRec(child, ++curDepth);\n }\n }\n });\n }",
"public SignInStepsDefs() throws IOException {\n\t\tsuper();\n\t\tdriver = StepBaseSetup.driver;\n\t\t\n\t\tif(StepBaseSetup.isMobileUI()){\n\t\t\tlogin = PageFactory.initElements(driver, LoginPageMobile.class); \n\t\t} else {\n\t\t\tlogin = PageFactory.initElements(driver, LoginPage.class); \n\t\t}\n\t}",
"public void initPageComponents() {\n\t\t\n\t\tboolean showMeterID \t= false;\n\t\tboolean showBillerID \t= false;\n\t\tboolean showRegID\t\t= false;\n\t\tboolean fillMeterID\t\t= false;\n\t\tboolean fillBillerID \t= false;\n\t\tboolean fillRegID\t\t= false;\n\t\tif(billPayBean.getBillerId().equals(\"91901\")) { //prepaid\n\t\t\tshowMeterID \t= true;\n\t\t\tshowBillerID \t= true;\n\t\t\tfillMeterID\t\t= true;\n\t\t\tfillBillerID\t= true;\n\t\t} else if(billPayBean.getBillerId().equals(\"91951\")) { //postpaid\n\t\t\tshowBillerID \t= true;\n\t\t\tfillBillerID\t= true;\n\t\t} else if(billPayBean.getBillerId().equals(\"91999\")) { //nontaglis\n\t\t\tshowRegID\t\t= true;\n\t\t\tfillRegID\t\t= true;\n\t\t}\n\t\t\n\t\tfinal Form<BankBillPaymentConfirmPage> form = new Form<BankBillPaymentConfirmPage>(\"confirmBillPay\", \n\t\t\t\tnew CompoundPropertyModel<BankBillPaymentConfirmPage>(this));\n\t\tform.add(new FeedbackPanel(\"errorMessages\"));\n\t\tform.add(new Label(\"billPayBean.billerLabel\")); \n\t\tform.add(new Label(\"billPayBean.productLabel\"));\n\t\tform.add(new Label(\"billPayBean.billAmount\"));\n\t\tform.add(new AmountLabel(\"billPayBean.feeAmount\"));\n\t\tfinal boolean showNameandBillNumber = billPayBankNameList.contains(billPayBean.getBillerId());\n\t\tform.add(new Label(\"label.customer.name\", getLocalizer().getString(\"label.customer.name\", this)).setVisible(showNameandBillNumber)); \n\t\tform.add(new Label(\"billPayBean.customerName\").setVisible(showNameandBillNumber));\n\t\tform.add(new Label(\"label.meter.number\", getLocalizer().getString(\"label.meter.number\", this)).setVisible(showMeterID));\n\t\tform.add(new Label(\"billPayBean.meterNumber\").setVisible(fillMeterID));\n\t\tform.add(new Label(\"label.bill.number\", getLocalizer().getString(\"label.bill.number\", this)).setVisible(showBillerID));\n\t\tform.add(new Label(\"billPayBean.billNumber\").setVisible(fillBillerID));\n\t\tform.add(new Label(\"label.reg.number\", getLocalizer().getString(\"label.reg.number\", this)).setVisible(showRegID));\n\t\tform.add(new Label(\"billPayBean.regNumber\").setVisible(fillRegID));\n\t\t\n\t\tform.add(new PasswordTextField(\"billPayBean.pin\").add(new ErrorIndicator()));\n\t\t\n\t\taddSubmitButton(form);\n\t\t\n\t\tadd(form);\n\t}",
"public interface WizardActions {\n\n /**\n * Return the options back to default\n */\n public void returnDefault();\n\n /**\n * Apply the current settings without closing the wizard page\n */\n public void apply();\n\n /**\n * Save the current settings\n */\n public void save();\n\n}",
"Pages getPages();",
"@BeforeEach\n void setUp() throws Exception {\n context.currentPage(context.create().page(\"/content/unittest/de_test/brand/de/section/page\",\n DummyAppTemplate.CONTENT.getTemplatePath()));\n\n // create internal pages for unit tests\n targetPage = context.create().page(\"/content/unittest/de_test/brand/de/section/content\",\n DummyAppTemplate.CONTENT.getTemplatePath());\n context.create().page(\"/content/unittest/en_test/brand/en/section/content\",\n DummyAppTemplate.CONTENT.getTemplatePath());\n\n }",
"public void initialize(TemplateWizard wiz) {\n this.wizard = wiz;\n }",
"protected static void initializePageActions() throws Exception {\n\t\tloginPageAction = new LoginPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tcomplianceReportsPageAction = new ComplianceReportsPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tmanageLocationPageActions = new ManageLocationPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tsetReportsPage((ComplianceReportsPage)complianceReportsPageAction.getPageObject());\n\t}",
"protected static void initializePageActions() throws Exception {\n\t\tloginPageAction = new LoginPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\tmanageLocationPageAction = ActionBuilder.createManageLocationPageAction();\n\t\teqReportsPageAction = new EQReportsPageActions(getDriver(), getBaseURL(), getTestSetup());\n\t\teqReportsPage = (EQReportsPage)eqReportsPageAction.getPageObject();\n\t\tsetReportsPage(eqReportsPage);\n\t}"
] | [
"0.8638198",
"0.84264386",
"0.83334357",
"0.8307058",
"0.81527466",
"0.7981221",
"0.77797395",
"0.7066763",
"0.68962777",
"0.6708258",
"0.6478707",
"0.63958395",
"0.63934386",
"0.614566",
"0.61270106",
"0.60879123",
"0.6056499",
"0.6041039",
"0.59841186",
"0.59583014",
"0.5904316",
"0.5861094",
"0.58413017",
"0.58024013",
"0.5797435",
"0.5794848",
"0.57000214",
"0.5674064",
"0.5671908",
"0.565777",
"0.56320065",
"0.5589127",
"0.5505923",
"0.5499228",
"0.5498933",
"0.5492192",
"0.54817903",
"0.5474785",
"0.54712296",
"0.54703826",
"0.5456903",
"0.5446817",
"0.54313856",
"0.54248226",
"0.542002",
"0.54158217",
"0.54145366",
"0.5410868",
"0.53951836",
"0.53930414",
"0.53916216",
"0.5370361",
"0.53663987",
"0.5362982",
"0.53490067",
"0.53344387",
"0.53300965",
"0.53293025",
"0.53167915",
"0.53055334",
"0.5299185",
"0.52986276",
"0.5297473",
"0.5295884",
"0.5286743",
"0.52812356",
"0.5279132",
"0.52742505",
"0.5264164",
"0.5258152",
"0.5238443",
"0.5237668",
"0.52298635",
"0.5227552",
"0.52275294",
"0.52268773",
"0.5226327",
"0.5223121",
"0.52173007",
"0.52127874",
"0.52019894",
"0.51962775",
"0.51941943",
"0.519404",
"0.51743966",
"0.5170584",
"0.5165208",
"0.5155164",
"0.5154482",
"0.51529837",
"0.5146457",
"0.5136443",
"0.5119548",
"0.51183033",
"0.5114483",
"0.5113017",
"0.5103491",
"0.5095977",
"0.50853187",
"0.50828195"
] | 0.8196548 | 4 |
Execute the actual wizard command after all information was collected | @Override
public boolean performFinish() {
boolean result = false;
try {
Review newRev = ReviewAccess.getInstance().createNewReview(this.page1.getReviewID());
if (newRev != null) {
newRev.setReferenceId(this.page1.getReviewReference());
newRev.setDescription(this.page1.getReviewDescription());
PersonInCharge piC = PersonInCharge.Factory.newInstance();
piC.setName(this.page1.getReviewResponsibility());
newRev.setPersonInCharge(piC);
if (ViewControl.isOpen(ReviewExplorer.class)) {
ReviewExplorer.getInstance().addReview(newRev);
}
ReviewAccess.getInstance().save(newRev);
result = true;
}
} catch (IOException e) {
PluginLogger.logError(this.getClass().toString(), "performFinish", "Exception thrown while created a new Review", e);
} catch (NoReviewSourceFolderException e) {
ExceptionHandler.handleNoReviewSourceFolderException();
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void runAfterStep() {}",
"@Override\n\tpublic boolean performFinish() {\n\t\tIWizardPage[] pages = this.getPages();\n\t\tBindFlowWizardPage bindpage = (BindFlowWizardPage) pages[0];\n\t\tString flowName = bindpage.getFlowName();\n\t\tcompositeService.setFlowname(flowName);\n\t\tIWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n\t\tString compositeFilePath = (new StringBuilder(\"/\")).append(projectName)\n\t\t\t\t.append(BipConstantUtil.CompositePath).append(compositeService.getBaseinfo().getServiceId()).append(\".composite\").toString();\n\t\tIFile compositeFile = root.getFile(new Path(compositeFilePath));\n\t\tcompositeService.setProject(compositeFile.getProject());\n\t\tHelpUtil.writeObject(compositeService, compositeFile);\n//\t\tShell shell = PlatformUI.getWorkbench().getModalDialogShellProvider().getShell();\n\t\t//给table赋值\n\t\ttable_flow.removeAll();\n\t\tTableItem tableItem = new TableItem(table_flow, SWT.NONE);\n\t\t// 判断是否绑定流程 20160531\n\t\tString flownamePath = \"\";\n\t\t// 判断是否绑定流程\n\t\tif (flowName != null) {\n\t\t\tflownamePath = flowName.substring(0, flowName.indexOf(\".\"));\n\t\t}\n\t\ttableItem.setText(0, flownamePath);\n\t\ttableItem.setText(1, flowName);\n\t\t\n//\t\tMessageDialog.openInformation(shell, \"绑定流程\", \"绑定成功\");\n\t\t//保存流程不用再刷新菜单 20160531\n//\t\tTreeView view = (TreeView) page.findView(\"wizard.view1\");\n//\t\tif (null != view) {\n//\t\t\tview.reload();\n//\t\t}\n\t\treturn true;\n\t}",
"protected boolean wizardhook_validateFinish() {\n return true;\n }",
"protected void finishUp() {\r\n // pushOutput(table, 0);\r\n viewDone(\"Done\");\r\n }",
"protected void execute() {\n \tTmSsAutonomous.getInstance().showAlgInfo();\n \tshowPreferenceSettings(); //P.println(\"[Preferences info TBD]\");\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 }",
"@Override\n public boolean performFinish() {\n String outputDirName = getFinishPage().getOutputDir();\n File statusDir = new File(outputDirName);\n if (!statusDir.exists() || !statusDir.isDirectory()) {\n UIUtils.errorMessageBox(getShell(), Labels.getString(\"LoadWizard.errorValidFolder\")); //$NON-NLS-1$\n return false;\n }\n // set the files for status output\n try {\n getController().setStatusFiles(outputDirName, false, true);\n getController().saveConfig();\n } catch (ProcessInitializationException e) {\n UIUtils.errorMessageBox(getShell(), e);\n return false;\n }\n\n int val = UIUtils.warningConfMessageBox(getShell(), getConfirmationText());\n\n if (val != SWT.YES) { return false; }\n\n if (!wizardhook_validateFinish()) { return false; }\n\n try {\n ProgressMonitorDialog dlg = new ProgressMonitorDialog(getShell());\n dlg.run(true, true, new SWTLoadRunable(getController()));\n\n } catch (InvocationTargetException e) {\n logger.error(Labels.getString(\"LoadWizard.errorAction\"), e); //$NON-NLS-1$\n UIUtils.errorMessageBox(getShell(), e.getCause() != null ? e.getCause() : e);\n return false;\n } catch (InterruptedException e) {\n logger.error(Labels.getString(\"LoadWizard.errorAction\"), e); //$NON-NLS-1$\n UIUtils.errorMessageBox(getShell(), e.getCause() != null ? e.getCause() : e);\n return false;\n }\n\n return true;\n }",
"public void dataUpdated() {\r\n finish = getConfiguration().getTransformTarget() != null;\r\n this.wizardControl.updateView();\r\n }",
"@Override\n\tpublic void goToFinishedPanel ()\n\t{\n\t\tAppContext.sizeErrorLegend.setVisible(true);\n\t\t\n\t\tmRunningPanel.setVisible(false);\n\t\tmFinishedPanel.setVisible(true);\n\t\tmWizardStepIconPanel.setStepIcon(7);\n\t}",
"@Override\n public void onSequenceFinish() {\n // Yay\n mShowingTour = false;\n mPresenter.showCaseFinished();\n }",
"public void testWizards() {\n // open new file wizard\n NewFileWizardOperator nfwo = NewFileWizardOperator.invoke();\n nfwo.selectProject(\"SampleProject\");\n nfwo.selectCategory(\"Java\");\n nfwo.selectFileType(\"Java Class\");\n // go to next page\n nfwo.next();\n // create operator for the next page\n NewJavaFileNameLocationStepOperator nfnlso = new NewJavaFileNameLocationStepOperator();\n nfnlso.txtObjectName().typeText(\"MyNewClass\");\n // finish wizard\n //nfnlso.finish();\n // cancel wizard\n nfnlso.cancel();\n }",
"protected void finishSetup() {\n Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1);\n Settings.Secure.putInt(getContentResolver(), Settings.Secure.USER_SETUP_COMPLETE, 1);\n\n // Add a persistent setting to let other apps know the SetupWizard active state.\n // Value 0: SetupWizard finish\n // Value 1: SetupWizard active\n Settings.Global.putInt(getContentResolver(), SETUP_WIZARD_ACTIVE_STATE, 0);\n\n // remove this activity from the package manager.\n PackageManager pm = getPackageManager();\n ComponentName name = new ComponentName(this, SetupWelcomeActivity.class);\n pm.setComponentEnabledSetting(name, PackageManager.COMPONENT_ENABLED_STATE_DISABLED,\n PackageManager.DONT_KILL_APP);\n\n ((StatusBarManager)getApplication().getSystemService(Context.STATUS_BAR_SERVICE))\n .disable(StatusBarManager.DISABLE_NONE);\n\n //set Launcher3 as the preferred home activity\n setupDefaultLauncher(pm);\n // terminate the activity.\n finish();\n }",
"protected void finishExecution() {\r\n\r\n\t}",
"public void run()\n\t{\n\t\tMSetup ms = new MSetup(Env.getCtx(), m_WindowNo);\n\t\tm_frame.setBusyTimer(45);\n\t\t// Step 1\n\t\tboolean ok = ms.createClient(fClientName.getText(), fOrgName.getText(),\n\t\t\tfUserClient.getText(), fUserOrg.getText());\n\t\tString info = ms.getInfo();\n\n\t\tif (ok)\n\t\t{\n\t\t\t// Generate Accounting\n\t\t\tKeyNamePair currency = (KeyNamePair)fCurrency.getSelectedItem();\n\t\t\tif (!ms.createAccounting(currency,\n\t\t\t\tfProduct.isSelected(), fBPartner.isSelected(), fProject.isSelected(),\n\t\t\t\tfMCampaign.isSelected(), fSRegion.isSelected(),\n\t\t\t\tm_file))\n\t\t\t{\n\t\t\t\tADialog.error(m_WindowNo, this, \"AccountSetupError\");\n\t\t\t\tdispose();\n\t\t\t}\n\t\t\t// Generate Entities\n\t\t\tKeyNamePair p = (KeyNamePair)fCountry.getSelectedItem();\n\t\t\tint C_Country_ID = p.getKey();\n\t\t\tp = (KeyNamePair)fRegion.getSelectedItem();\n\t\t\tint C_Region_ID = p.getKey();\n\t\t\tms.createEntities(C_Country_ID, fCity.getText(), C_Region_ID, currency.getKey());\n\t\t\tinfo += ms.getInfo();\n\t\t\t//\tCreate Print Documents\n\t\t\tPrintUtil.setupPrintForm(ms.getAD_Client_ID());\n\t\t}\n\n\t\tADialog.info(m_WindowNo, this, \"VSetup\", info);\n\t\tdispose();\n\t}",
"@Override\n\t\tprotected void onPreExecute()\n\n\t\t{\n\n\t\t\tthis.dialog.setMessage(\"Exporting database...\");\n\n\t\t\tthis.dialog.show();\n\n\t\t}",
"@Override\n protected void complete()\n {\n // Log the result of the script execution(s)\n logScriptCompletionStatus(associations, isBad);\n\n // Enable the calling dialog's controls\n dialog.setControlsEnabled(true);\n }",
"@Override\n public void fireInitialStateViewEvents() {\n ViewEvents.fireWizardButtonEnabledEvent(getPanelName(), WizardButton.FINISH, false);\n\n }",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\tthis.dialog.setMessage(\"Exporting database...\");\n\t\t\tthis.dialog.show();\n\t\t}",
"public AAAStepUp()\n {\n display = Display.getDisplay(this);\n stepReciver=new StepReciver(this);\n deamonClient= new DeamonClient(this);\n watch=new Watcher(this);\n watch.notifyWatchertoStart();\n watch.notifyWatchertoStepupDeamon();\n \n\n\n startlist=new List(\"StepUp:\", List.IMPLICIT);\n startlist.append(\"Start\", null);\n startlist.append(\"Progress\", null);\n //$$ startlist.append(\"History\", null);\n \n\n\n\n stepview= new StepsView(this);\n proglistview= new ProgressListView(this);\n historyview=new HistoryView(this);\n profileview=new ProfileView(this);\n newgroupview= new newGroupView(this);\n dailyprogress= new DailyProgress (this);\n weeklyprogress= new WeekProgress(this);\n teamprogress= new TeamProgress(this);\n\n\n\n formRunning = new Form(\"Connecting to StepUp Database\");\n formRunning.append(new Gauge(\"Connecting\",false,Gauge.INDEFINITE,Gauge.CONTINUOUS_RUNNING));\n\ncreateCommands();\naddCommands();\n \n }",
"public void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tIWorkbenchWizard wizard = new BasicNewProjectResourceWizard();\r\n\t\t\t\twizard.init(PlatformUI.getWorkbench(), new TreeSelection());\r\n\t\t\t\tWizardDialog dialog = new WizardDialog(getShell(), wizard);\r\n\t\t\t\tdialog.open();\r\n\t\t\t\tif (outputChooserTreeViewer.getTree().getItemCount() == 1) {\t\t\t\t\t\r\n\t\t\t\t\tvalidatePage();\r\n\t\t\t\t}\r\n\t\t\t}",
"public void exitingToRight() throws Exception\r\n {\r\n // Salimos y ponemos en el blackBoard la lista de actividades\r\n wizardContext.setData(\"patron\",tipoBienEJCBox.getSelectedPatron() );\r\n exiting();\r\n }",
"protected abstract AbstractPerfCakeEditWizard createWizard(IStructuredSelection selection);",
"public void execute() throws MojoExecutionException {\n CodeGeneratorLoggerFactory.setLogger(getLog());\n\n // iff baseFolder is null or empty, reset it to the default value\n baseFolder = StringUtils.defaultIfEmpty(baseFolder, \"GUIData\");\n\n // create the helper with our config\n CodeGeneratorHelper helper = new CodeGeneratorHelper(toCodeGeneratorConfig());\n\n if (CodeGeneratorLoggerFactory.getLogger().isDebugEnabled()) {\n helper.displayProjectInformation();\n }\n\n // register all custom element classes\n helper.registerCustomElements();\n\n // create the generated page details file\n helper.createSeLionPageDetailsFile();\n\n // process the files.\n helper.processFiles();\n }",
"public NewEntryWizard()\n {\n setNeedsProgressMonitor( true );\n }",
"private void process() {\n final PluginsDialog dialog = new PluginsDialog();\n dialog.show();\n }",
"public boolean runWizard() throws Exception\n{\n\t// Tells us what came before each state\n\tMap<Wiz,Wiz> prevWizs = new TreeMap();\n\t// v = (xv == null ? new TypedHashMap() : xv);\n\tscreenCache = new TreeMap();\n\tcon = new WizContext();\n\tWiz wiz = nav.getStart();\t\t// Current state\n\tfor (; wiz != null; ) {\n\n\t\t// Get the screen for this Wiz\n\t\tWizScreen screen = screenCache.get(wiz);\n\t\tif (screen == null) {\n\t\t\tscreen = wiz.newScreen(con);\n\t\t\tif (wiz.isCached(Wiz.NAVIGATE_BACK)) screenCache.put(wiz,screen);\n\t\t}\n\n\t\t// Prepare and show the Wiz\n\t\tpreWiz(wiz, con);\n\t\tMap<String,Object> values = new TreeMap();\n\t\tshowScreen(screen, values);\n\n\t\t// Run the post-processing\n\t\twiz.getAllValues(values);\n\t\tcon.localValues = values;\n\t\tString suggestedNextName = postWiz(wiz, con);\n\n\t\t// Figure out where we're going next\n\t\tWiz nextWiz = null;\n\t\tString submit = (String)values.get(\"submit\");\nSystem.out.println(\"submit = \" + submit);\n\t\tif (\"next\".equals(submit)) {\n\t\t\tif (suggestedNextName != null) {\n\t\t\t\tnextWiz = nav.getWiz(suggestedNextName);\n\t\t\t} else {\n\t\t\t\tnextWiz = nav.getNext(wiz, Wiz.NAVIGATE_FWD);\n\t\t\t}\n\t\t\tcon.addValues(values);\n\t\t} else if (\"back\".equals(submit)) {\n\t\t\t// Remove it from the cache so we re-make\n\t\t\t// it going \"forward\" in the Wizard\n\t\t\tif (!wiz.isCached(Wiz.NAVIGATE_FWD)) screenCache.remove(wiz);\n\n\t\t\t// Nav will usually NOT set a NAVIGATE_BACK...\n\t\t\tnextWiz = nav.getNext(wiz, Wiz.NAVIGATE_BACK);\n\n\t\t\t// ... which leaves us free to do it from our history\n\t\t\tif (nextWiz == null) nextWiz = prevWizs.get(wiz);\n\n\t\t\t// Falling off the beginning of our history...\n\t\t\tif (nextWiz == null && reallyCancel()) return false;\n\t\t\tcontinue;\n\t\t} else if (\"cancel\".equals(submit) && reallyCancel()) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\t// Navigation without a \"submit\"; rare but possible...\n\t\t\tif (suggestedNextName != null) {\n\t\t\t\tnextWiz = nav.getWiz(suggestedNextName);\n\t\t\t}\n\t\t\t// Custom navigation!\n\t\t\t// Incorporate the values into the main WizContext\n\t\t\tcon.addValues(values);\n\t\t}\n\n\t\t// ================= Finish up\n\t\twiz.post(con);\n\t\twiz = nextWiz;\n\t}\n\treturn true;\t\t// Won't get here\n}",
"public void run() {\n super.executeStep();\n }",
"public abstract void activateWithConfiguration( WizardPageConfiguration configuration );",
"public IWizard getWizard();",
"@Override\r\n public void doHelpAction() {\n BIReportService.getInstance().traceHelpClick(project.getBasePath(), ConversionHelpEnum.PATH_SETTING);\r\n\r\n ApplicationManager.getApplication().invokeLater(() -> {\r\n BrowserUtil.browse(allianceDomain + HmsConvertorBundle.message(\"directory_url\"));\r\n }, ModalityState.any());\r\n }",
"public interface WizardActions {\n\n /**\n * Return the options back to default\n */\n public void returnDefault();\n\n /**\n * Apply the current settings without closing the wizard page\n */\n public void apply();\n\n /**\n * Save the current settings\n */\n public void save();\n\n}",
"public void run() {\n\t\t\t\tif (actionShowOutputs.isChecked()) {\n\t\t\t\t\torg.openmodelica.modelicaml.common.instantiation.TreeUtls.classInstantiation = null;\n\t\t\t\t\torg.openmodelica.modelicaml.common.instantiation.TreeUtls.componentsTreeRoot = null;\n\t\t\t\t\tshowSelection(par, sel);\n\t\t\t\t}\n\t\t\t}",
"public void testGenericWizards() {\n // open new project wizard\n NewProjectWizardOperator npwo = NewProjectWizardOperator.invoke();\n npwo.selectCategory(\"Java Web\");\n npwo.selectProject(\"Web Application\");\n npwo.next();\n // create operator for next page\n WizardOperator wo = new WizardOperator(\"Web Application\");\n JTextFieldOperator txtName = new JTextFieldOperator((JTextField) new JLabelOperator(wo, \"Project Name:\").getLabelFor());\n txtName.clearText();\n txtName.typeText(\"MyApp\");\n wo.cancel();\n }",
"public CreateProjectPanel() {\n isFinished = true;\n }",
"@Override\n public void afterShow() {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n getCancelButton().requestFocusInWindow();\n // Enable the Send button after showing since there is nothing to stop confirmation\n // It should start disabled to avoid double click skipping the confirmation\n ViewEvents.fireWizardButtonEnabledEvent(getPanelName(), WizardButton.NEXT, true);\n\n }\n });\n\n }",
"public void afterMojoExecutionSuccess()\n throws MojoExecutionException;",
"public void execute() {\n _plugin.openNavigator();\n }",
"protected void runBeforeStep() {}",
"public void done() \r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tif (ok) {\r\n\t\t\t\t\t//resultsTabbedPanel.setEntryPointsData(entryPointsTable);\r\n\t\t\t\t\t// Actualizo la tabla de estadisticas globales\r\n\t\t\t\t\tcreateGlobalStatsTable(0); // XXX TODO\r\n\r\n\t\t\t\t\tregenStatsTree();\r\n\r\n\t\t\t\t\tvalidateTree();\r\n\r\n\r\n\t\t\t\t\ttimeRange.enable();\r\n\r\n\t\t\t\t\tif (!isCached) {\r\n\t\t\t\t\t\ttimeRange.setLimits(minTs, maxTs);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tCommonForms.showError(parent, \"Error showing data\", e);\r\n\t\t\t} finally {\r\n\t\t\t\tdialog.dispose();\r\n\t\t\t\tparent.setEnabled(true);\r\n\t\t\t\tmainPanel.remove(1); \r\n\t\t\t\tJScrollPane treePanelScroll = new JScrollPane();\r\n\t\t\t\tmainPanel.add(treePanelScroll);\r\n\t\t\t\tMainFrame.this.toFront();\r\n\t\t\t}\r\n\t\t}",
"protected void execute() {\n\t\tIQuestionaire doc = ((Questionaire) getApp()).getCurrentDoc();\n\t\tString docTitle = doc.getTitle();\n\t\tString title = getDialog().getQuestionaireTitle();\n\n\t\tsetEnabled(true);\n\n\t\tif ((docTitle == title) || (docTitle.equals(title)))\n\t\t\treturn;\n\n\t\tperformAction(ACTION_SAVE, doc, doc.hashCode(), \"rename\");\n\t\t//non-I18N-NLS\n\n\t\tdoc.setTitle(title);\n\t}",
"@Override\n\tvoid setupAction() {\n\n\t\tgetButton().setOnAction(event -> {\n\t\t\tmainPrevCommandBox.addText(mainTextInput.getText());\n\t\t\tfor (Turtle t : getThisTurtleList()) {\n\n\t\t\t\tlanguage = ((LanguageCombo) mainLanguageComboBox).getLanguage();\n\t\t\t\tCommand test = new Command(mainTextInput.getText(), t, variableMap, userCommandMap, language);\n\t\t\t\ttest.execute();\n\n\t\t\t}\n\t\t\tmainVarTable.updateVars(variableMap);\n\t\t\tmainFuncTable.updateCommandFuncs(userCommandMap);\n\t\t\tmainTurtleTable.updateValues();\n\n\t\t\tmainTextInput.clear();\n\n\t\t});\n\t}",
"protected void prepareToExecuteChildren()\n \t{\n \t\tcollectExecutableElements();\n \t}",
"protected void waitUntilCommandFinished() {\n }",
"public void execute() {\n firstRenameTerminals();\n while (!hasFinished()) {\n phase();\n }\n }",
"protected void performApply() {\n\n for (int i = 0; i < providers.getItemCount(); i++) {\n\n //TODO: The checkboxes are buggy. Sometimes the provider in the table - representation\n // seems not to be the correct VilArgumentProvier.\n if (providers.getItem(i).getChecked()) {\n VilArgumentProvider.getProvider(i).setActive(true);\n } else {\n VilArgumentProvider.getProvider(i).setActive(false);\n }\n \n //the arguments are in column 4..\n try {\n //Set the free arguments\n VilArgumentProvider.getProvider(i).setFreeArguments(providers.getItem(i).getText(4).trim().toString());\n } catch (NullPointerException e) {\n VilArgumentProvider.getProvider(i).setFreeArguments(\"\");\n }\n \n EASyPreferenceStore.persistVilArgumentProviderStates();\n }\n }",
"@Override\n\tpublic void EjecutaGui() {\n\t\tSystem.out.println(\"Ejecucion en ventana del ejercicio 2 del grupo 3\");\n\t}",
"private void wizardChanged() {\r\n\t\t\r\n\t\tboolean valid = true;\r\n\t\t\r\n\t\t// The project name can't be empty\r\n\t\tif (nameText.getText().length() == 0) {\r\n\t\t\tupdateStatus(BundleInternationalization.getString(\"ErrorMessage.NameEmpty\"));\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// The project description can't be empty\r\n\t\tif (valid && descriptionText.getText().length() == 0) {\r\n\t\t\tupdateStatus(BundleInternationalization.getString(\"ErrorMessage.DescriptionEmpty\"));\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\t\r\n\t\t// TODO: validar que la fecha de inicio sea anterior a la de final\r\n\t\t\t\t\r\n\t\t// The project budget can't be empty\r\n\t\tif (valid && budgetText.getText().length() == 0) {\r\n\t\t\tupdateStatus(BundleInternationalization.getString(\"ErrorMessage.BudgetEmpty\"));\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\t\r\n\t\t// The quantity of lines of the project can't be empty\r\n\t\tif (valid && quantityLinesText.getText().length() == 0) {\r\n\t\t\tupdateStatus(BundleInternationalization.getString(\"ErrorMessage.NumberCodeLinesEmpty\"));\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\t\r\n\t\t// The project domain of the project can't be empty\r\n\t\tif (valid && domainText.getText().length() == 0) {\r\n\t\t\tupdateStatus(BundleInternationalization.getString(\"ErrorMessage.DomainEmpty\"));\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\t\r\n\t\tif (valid && progLanguageCombo.getSelectionIndex()==-1) {\r\n\t\t\tupdateStatus(BundleInternationalization.getString(\"ErrorMessage.ProgrammingLanguageNotSelected\"));\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\t\r\n\t\tif (valid && estimatedHoursText.getText().length() == 0) {\r\n\t\t\tupdateStatus(BundleInternationalization.getString(\"ErrorMessage.EstimatedHoursEmpty\"));\r\n\t\t\tvalid = false;\r\n\t\t}\r\n\t\t\r\n\t\tif (valid) \r\n\t\t\tupdateStatus(null);\r\n\t\t\r\n\t}",
"public void finishSetup(){\n setupAllBackgroundColorViews();\n setupAllBorderColorViews();\n setupAllViewsToSetTextColor();\n setupAllSpecialLayoutViews();\n setupAllRegularDataViews();\n setupAllSpecialLayoutViewsToChangeBackgroundColor();\n }",
"private void setupFinishedGUI() {\n getSupportActionBar().setSubtitle(\"finished\");\n findViewById(R.id.countdownpickerlayout).setVisibility(View.GONE);\n findViewById(R.id.start_button).setVisibility(View.GONE);\n findViewById(R.id.ping_button).setVisibility(View.GONE);\n findViewById(R.id.location_card).setVisibility(View.GONE);\n findViewById(R.id.exp_finished_layout).setVisibility(View.VISIBLE);\n }",
"void finishInitialization() throws SetupException;",
"public void shutdownWizard() {\r\n if (frame == null) {\r\n shutdown();\r\n }\r\n }",
"protected void prepare4SaveScript() {\n\t\tMigrationConfiguration cfg = getMigrationWizard().getMigrationConfig();\n\t\tcfg.cleanNoUsedConfigForStart();\n\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\tautInsertScreenByScenario();\r\n\t\t\t}",
"public CartogramWizard ()\n\t{\n\t\n\t\t// Set the window parameters.\n\t\tthis.setTitle(AppContext.shortProgramName + \" _ Cartogram Wizard\");\n\t\tthis.setSize(640, 480);\n\t\tthis.setLocation(30, 40);\n\t\tthis.setResizable(false);\n\t\tthis.setLayout(null);\n\t\t//this.setModal(true);\n\t\tthis.setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\t\tthis.addWindowListener(new CartogramWizardWindowListener());\n\t\t\n\t\t\n\t\t// Adding the cartogram wizard to the app context.\n\t\tAppContext.cartogramWizard = this;\n\t\t\n\t\t\n\t\t// Add icon panel at the left of the wizard window.\n\t\t// This panel contains the ScapeToad icon.\n\t\tif (mScapeToadIconPanel == null)\n\t\t{\n\t\t\tmScapeToadIconPanel = new ScapeToadIconPanel(this);\n\t\t}\n\t\t\n\t\tmScapeToadIconPanel.setLocation(30, 90);\n\t\tthis.add(mScapeToadIconPanel);\n\t\t\n\t\t\n\t\t\n\t\t// Add title panel.\n\t\tCartogramWizardTitlePanel titlePanel =\n\t\t\tnew CartogramWizardTitlePanel(this);\n\t\t\n\t\ttitlePanel.setLocation(30, 20);\n\t\tthis.add(titlePanel);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Add icon panel at the left of the wizard window.\n\t\t// This panel contains the ScapeToad icon.\n\t\tmWizardStepIconPanel = new WizardStepIconPanel(this);\n\t\tmWizardStepIconPanel.setLocation(380, 20);\n\t\tthis.add(mWizardStepIconPanel);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Ajouter l'introduction au wizard.\n\t\t// Explication des étapes à suivre :\n\t\t// 1. Sélectionner la couche des polygones (master layer).\n\t\t// 2. Sélectionner l'information statistique.\n\t\t// 3. Sélection des couches à transformer simultanément.\n\t\t\n\t\tmPanelZero = new CartogramWizardPanelZero(this);\n\t\tthis.getContentPane().add(mPanelZero);\n\t\t\n\t\tmCurrentStep = 0;\n\t\t\n\t\t\n\t\t\n\t\t// Add the running panel which is already created.\n\t\tmRunningPanel.setVisible(false);\n\t\tthis.add(mRunningPanel);\n\t\t\n\t\t\n\t\t// Add the finished panel which is already created.\n\t\tmFinishedPanel.setVisible(false);\n\t\tthis.add(mFinishedPanel);\n\t\t\n\t\t\t\t\n\t\t// Add the Cancel button.\n\t\tmCancelButton = new JButton(\"Cancel\");\n\t\tmCancelButton.setLocation(30, 404);\n\t\tmCancelButton.setSize(100, 26);\n\t\tmCancelButton.addActionListener(new CartogramWizardCloseAction());\n\t\tthis.getContentPane().add(mCancelButton);\n\t\t\n\t\t\n\t}",
"@Override\r\n\tprotected void doExecute(StepExecution stepExecution) throws Exception {\n\t\t\r\n\t}",
"@Override\n\tprotected void onPreExecute() {\n\t\tUtils.showProcessingDialog(_context);\n\t}",
"public void executeScript() throws Exception {\n\t\tnav.SearchFor(\"\");\n\t\tnav.ClickNavigationLinks(TopNavLinks.WOMENSAPPAREL);\n\t\tprp.RefineByColor(\"Black\");\n\t\tprp.RefineBySize(\"Medium\");\n\t\tprp.ClickFirstItem();\n\t}",
"@Override\n public void onExit() {\n if (currStepView != null) {\n showNextStep(0);\n }\n\n clearStep(currStepView);\n UserIQSDKInternal.getScreenTracker().removeCallBack(screenTracker);\n UIManager.getInstance().getUiRootView().setCallback(null);\n uiThreadHandler.removeCallbacksAndMessages(null);\n }",
"public void importFurniture() {\n new ImportedFurnitureWizardController(this.home, this.preferences, this, this.viewFactory, \n this.contentManager, this.undoSupport).displayView(getView());\n }",
"private void processGenerateOutputButton() {\n try {\n if(selectedFile != null) {\n //initialScannerOfDataFile();\n world = new World(\"My World\", 0, 0, selectedFile);\n String myTotalOutput = world.toString();\n dataOutputArea.setText(myTotalOutput);\n createTree();\n\n } else {\n JOptionPane.showMessageDialog(null, \"No selected file!\");\n }\n } catch(Exception e2) {\n System.out.println(\"Something is wrong with output generation!\\n\\n\" + e2.getMessage());\n } //end of catch()\n }",
"public void initByEngine( WizardEngine e )\n {\n initDialog();\n\n // Each wizard dialog must contains Next and Back commands\n // A better solution is not to include Back command on the first dialog\n // and not to include Next command on the last dialog\n // This leave as an exercise to readers\n addCommand( NEXT_COMMAND );\n addCommand( BACK_COMMAND );\n\n this.engine = e;\n\n super.setCommandListener( this );\n }",
"CartogramWizardGoToStepAction (CartogramWizard wizard, int step)\n\t{\n\t\tmWizard = wizard;\n\t\tmStep = step;\n\t}",
"public void process() {\r\n\t\tdisplayMenu();\r\n\t\tint command = getCommand();\r\n\t\twhile (command != EXIT) {\r\n\t\t\tswitch (command) {\r\n\t\t\tcase ADD_CUSTOMER:\r\n\t\t\t\taddCustomer();\r\n\t\t\t\tbreak;\r\n\t\t\tcase ADD_MODEL:\r\n\t\t\t\taddWasher();\r\n\t\t\t\tbreak;\r\n\t\t\tcase ADD_TO_INVENTORY:\r\n\t\t\t\taddToInventory();\r\n\t\t\t\tbreak;\r\n\t\t\tcase PURCHASE:\r\n\t\t\t\tpurchase();\r\n\t\t\t\tbreak;\r\n\t\t\tcase LIST_CUSTOMERS:\r\n\t\t\t\tlistCustomers();\r\n\t\t\t\tbreak;\r\n\t\t\tcase LIST_WASHERS:\r\n\t\t\t\tlistWashers();\r\n\t\t\t\tbreak;\r\n\t\t\tcase DISPLAY_TOTAL:\r\n\t\t\t\tdisplayTotal();\r\n\t\t\t\tbreak;\r\n\t\t\tcase SAVE:\r\n\t\t\t\tsave();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tdisplayMenu();\r\n\t\t\tcommand = getCommand();\r\n\t\t}\r\n\t\tSystem.out.println(\"Goodbye.\");\r\n\t}",
"@Override public void onAfterStateSwitch() {\n assert SwingUtilities.isEventDispatchThread();\n assert isVisible();\n try {\n license = manager().load();\n onLicenseChange();\n manager().verify();\n } catch (final Exception failure) {\n JOptionPane.showMessageDialog(\n this,\n failure instanceof LicenseValidationException\n ? failure.getLocalizedMessage()\n : format(LicenseWizardMessage.display_failure),\n format(LicenseWizardMessage.failure_title),\n JOptionPane.ERROR_MESSAGE);\n }\n }",
"@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\tif (! (getViewer().getSelection() instanceof IStructuredSelection))\n\t\t\treturn;\n\t\t\n\t\tIStructuredSelection selection = (IStructuredSelection) getViewer().getSelection();\n\n\t\tif (selection.getFirstElement() == null)\n\t\t\treturn;\n\n\t\twizard = createWizard(selection);\n\t\tif (WizardUtils.showWizardDialog(wizard) != Window.OK)\n\t\t\treturn;\n\t\t\n\t\t\n\t\tsuper.widgetSelected(e);\n\t\tgetViewer().refresh(selection.getFirstElement());;\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\t\n\t\t// Hide the 3rd wizard panel.\n\t\tmCartogramWizard.getPanelFour().setVisible(false);\n\t\t\n\t\t// Show the running panel.\n\t\tmCartogramWizard.getRunningPanel().setVisible(true);\n\t\t\n\t\tmCartogramWizard.getWizardStepIconPanel().setStepIcon(6);\n\t\t\n\t\t\n\t\t// Get the name of the selected layer.\n\t\tString selectedLayer = mCartogramWizard.getCartogramLayerName();\n\t\t\n\t\t// Get the name of the selected attribute.\n\t\tString selectedAttribute = mCartogramWizard.getCartogramAttributeName();\n\t\t\n\t\t// Get the attribute type (population or density value).\n\t\tboolean isDensityValue = \n\t\t\tmCartogramWizard.getPanelTwo().attributeIsDensityValue();\n\t\t\n\t\t\n\t\tmCartogramWizard.setMissingValue(\n\t\t\tmCartogramWizard.getPanelTwo().getMissingValue());\n\t\t\n\t\t\n\t\t// Create a new cartogram instance and set the parameters.\n\t\tCartogram cg = new Cartogram(mCartogramWizard);\n\t\tcg.setLayerManager(AppContext.layerManager);\n\t\tcg.setMasterLayer(selectedLayer);\n\t\tcg.setMasterAttribute(selectedAttribute);\n\t\tcg.setMasterAttributeIsDensityValue(isDensityValue);\n\t\tcg.setMissingValue(mCartogramWizard.getMissingValue());\n\t\tcg.setSlaveLayers(mCartogramWizard.getSimultaneousLayers());\n\t\tcg.setConstrainedDeformationLayers(\n\t\t\tmCartogramWizard.getConstrainedDeformationLayers());\n\t\t\t\n\t\t\n\t\tcg.setAmountOfDeformation(mCartogramWizard.getAmountOfDeformation());\n\t\t\n\t\tcg.setAdvancedOptionsEnabled(\n\t\t\tmCartogramWizard.getAdvancedOptionsEnabled());\n\t\t\t\n\t\tcg.setGridSize(mCartogramWizard.getCartogramGridSizeInX(),\n\t\t\tmCartogramWizard.getCartogramGridSizeInY());\n\t\t\t\n\t\tcg.setDiffusionGridSize(mCartogramWizard.getDiffusionGridSize());\n\t\tcg.setDiffusionIterations(mCartogramWizard.getDiffusionIterations());\n\t\t\n\t\t\n\t\t\n\t\t// Set the parameters for the deformation grid layer.\n\t\tcg.setCreateGridLayer(mCartogramWizard.getCreateGridLayer());\n\t\tcg.setGridLayerSize(mCartogramWizard.getDeformationGridSize());\n\t\t\n\t\t\n\t\t\n\t\t// Set the parameters for the legend layer.\n\t\t// We have to estimate the legend values.\n\t\tif (isDensityValue)\n\t\t\tcg.setCreateLegendLayer(false);\n\t\telse\n\t\t{\n\t\t\tcg.setCreateLegendLayer(true);\n\t\t}\n\t\t\n\t\tmCartogramWizard.setCartogram(cg);\n\t\t\n\t\t// Start the cartogram computation.\n\t\tcg.start();\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic void addPages() {\n\t\t_fileWizard = new NewPlotFilenameWizardPage(selection);\n\t\t_scaleWizard = new ScaleWizardPage(selection);\n\t\t_coastWizard = new CoastWizardPage(selection);\n\t\t_gridWizard = new GridWizardPage(selection);\n\n\t\t// check there's ETOPO data before we add the page\n\t\t_etopoWizard = new ETOPOWizardPage(selection);\n\n\t\taddPage(_fileWizard);\n\t\taddPage(_scaleWizard);\n\t\taddPage(_coastWizard);\n\t\taddPage(_gridWizard);\n\t\tif (_etopoWizard.isAvailable())\n\t\t\taddPage(_etopoWizard);\n\t}",
"public abstract void performStep();",
"public void setWizard(IWizard newWizard);",
"public void startPage() {\n\t\tthis.dataComposer.startPage();\n\t}",
"public void MyQuotePage()\n\t{\n\t\tbpmqobj.MyQuotesTab().click();\n\t\ttry { Thread.sleep(10000); } catch (InterruptedException e) {e.printStackTrace();}\n\t\tbpmqobj.MyQuoteResultCheckSingleCheckBox().click();\n\t\tnew Select(bpmqobj.MyQuotesQuoteActionsDropDown()).selectByVisibleText(\"Open\");\n\t\tbpmqobj.MyQuoteGOButton().click();\n\t\tSystem.out.println(\"----> Pass <---- My Quotes Screen checks are done!\");\t\n\t}",
"private void beginMyTurn() {\n clientgui.setDisplayVisible(true);\n selectEntity(clientgui.getClient().getFirstDeployableEntityNum());\n setNextEnabled(true);\n setRemoveEnabled(true);\n // mark deployment hexes\n clientgui.bv.markDeploymentHexesFor(ce());\n }",
"@Override\n public void afterFinish() {\n \n }",
"private void doExit() {\n\t\tif (userMadeChanges()) {\n showSaveChangesBeforeExitPrompt();\n\t\t} else {\n\t\t\tfinish();\n\t\t}\n\t}",
"@Override\n protected void onPreExecute() {\n Utils.showProcessingDialog(_context);\n }",
"protected void doPostAlgorithmActions() {\r\n\r\n if (displayLoc == NEW) {\r\n AlgorithmParameters.storeImageInRunner(getResultImage());\r\n }\r\n }",
"@SuppressWarnings(\"static-access\")\n private void fillBBSGui(BBSStep theBBSStep) {\n \n this.stepExplorerStepNameText.setText(theBBSStep.getName());\n BBSStepData stepData = BBSStepDataManager.getInstance().getStepData(theBBSStep.getName());\n BBSStepData inheritedData = BBSStepDataManager.getInstance().getInheritedStepData(theBBSStep);\n \n //sources\n stepExplorerNSources.setBackground(DEFAULT);\n this.fillList(this.stepExplorerNSourcesList,new ArrayList<String>());\n if(stepData.getSources() != null){\n if(stepData.getSources().size()>0){\n this.useAllSourcesCheckbox.setSelected(false);\n this.fillList(this.stepExplorerNSourcesList,stepData.getSources());\n \n }else{\n this.useAllSourcesCheckbox.setSelected(true);\n }\n stepExplorerNSources.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getSources() != null){\n \n if(inheritedData.getSources().size()>0){\n this.useAllSourcesCheckbox.setSelected(false);\n this.fillList(this.stepExplorerNSourcesList,inheritedData.getSources());\n \n }else{\n this.useAllSourcesCheckbox.setSelected(true);\n }\n stepExplorerNSources.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.useAllSourcesCheckbox.setSelected(false);\n stepExplorerNSources.setBackground(NOT_DEFINED);\n }\n }\n\n //instrument model \n stepExplorerInstrumentModel.setBackground(DEFAULT);\n this.fillList(this.stepExplorerInstrumentModelList,new ArrayList<String>());\n if(stepData.getInstrumentModel() != null){\n if(stepData.getInstrumentModel().size()>0){\n this.noInstrumentModelCheckbox.setSelected(false);\n this.fillList(this.stepExplorerInstrumentModelList,stepData.getInstrumentModel());\n \n }else{\n this.noInstrumentModelCheckbox.setSelected(true);\n }\n stepExplorerInstrumentModel.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getInstrumentModel() != null){\n \n if(inheritedData.getInstrumentModel().size()>0){\n this.noInstrumentModelCheckbox.setSelected(false);\n this.fillList(this.stepExplorerInstrumentModelList,inheritedData.getInstrumentModel());\n \n }else{\n this.noInstrumentModelCheckbox.setSelected(true);\n }\n stepExplorerInstrumentModel.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.noInstrumentModelCheckbox.setSelected(false);\n stepExplorerInstrumentModel.setBackground(NOT_DEFINED);\n }\n }\n\n// //extra sources\n// stepExplorerESources.setBackground(DEFAULT);\n// this.stepExplorerModifyESourceText.setText(\"\");\n// this.fillList(this.stepExplorerESourcesList,new ArrayList<String>());\n// if(stepData.getExtraSources() != null){\n// if(stepData.getExtraSources().size()>0){\n// this.useExtraSourcesCheckbox.setSelected(true);\n// this.fillList(this.stepExplorerESourcesList,stepData.getExtraSources());\n \n// }else{\n// this.useExtraSourcesCheckbox.setSelected(false);\n// }\n// stepExplorerESources.setBackground(NOT_INHERITED_FROM_PARENT);\n \n// }else{\n// if(inheritedData.getExtraSources() != null){\n// if(inheritedData.getExtraSources().size()>0){\n// this.useExtraSourcesCheckbox.setSelected(true);\n// this.fillList(this.stepExplorerESourcesList,inheritedData.getExtraSources());\n \n// }else{\n// this.useExtraSourcesCheckbox.setSelected(false);\n// }\n// stepExplorerESources.setBackground(INHERITED_FROM_PARENT);\n// }else{\n// this.useExtraSourcesCheckbox.setSelected(true);\n// stepExplorerESources.setBackground(NOT_DEFINED);\n// }\n// }\n //output data column\n \n this.stepExplorerOutputDataPanel.setBackground(DEFAULT);\n this.stepExplorerOutputDataText.setText(\"\");\n if(stepData.getOutputDataColumn() != null){\n if(!stepData.getOutputDataColumn().equals(\"\")){\n this.writeOutputCheckbox.setSelected(false);\n this.stepExplorerOutputDataText.setText(stepData.getOutputDataColumn());\n \n }else{\n this.writeOutputCheckbox.setSelected(true);\n }\n stepExplorerOutputDataPanel.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getOutputDataColumn() != null){\n if(!inheritedData.getOutputDataColumn().equals(\"\")){\n this.writeOutputCheckbox.setSelected(false);\n this.stepExplorerOutputDataText.setText(inheritedData.getOutputDataColumn());\n \n }else{\n this.writeOutputCheckbox.setSelected(true);\n }\n stepExplorerOutputDataPanel.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.writeOutputCheckbox.setSelected(false);\n stepExplorerOutputDataPanel.setBackground(NOT_DEFINED);\n }\n }\n\n \n //time\n this.integrationTimeText.setBackground(DEFAULT);\n if(stepData.getIntegrationTime() != -1.0){\n this.integrationTimeText.setText(\"\"+stepData.getIntegrationTime());\n this.integrationTimeText.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getIntegrationTime() != -1.0){\n this.integrationTimeText.setText(\"\"+inheritedData.getIntegrationTime());\n integrationTimeText.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.integrationTimeText.setText(\"\");\n integrationTimeText.setBackground(NOT_DEFINED);\n }\n }\n //frequency\n this.integrationFrequencyText.setBackground(DEFAULT);\n if(stepData.getIntegrationFrequency() != -1.0){\n this.integrationFrequencyText.setText(\"\"+stepData.getIntegrationFrequency());\n this.integrationFrequencyText.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getIntegrationFrequency() != -1.0){\n this.integrationFrequencyText.setText(\"\"+inheritedData.getIntegrationFrequency());\n integrationFrequencyText.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.integrationFrequencyText.setText(\"\");\n integrationFrequencyText.setBackground(NOT_DEFINED);\n }\n }\n\n //correlation\n //type\n this.stepExplorerCorrelationTypeList.setBackground(DEFAULT);\n if(stepData.getCorrelationType() != null){\n this.fillSelectionListFromArrayList(stepExplorerCorrelationTypeList,stepData.getCorrelationType());\n this.stepExplorerCorrelationTypeList.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getCorrelationType() != null){\n this.fillSelectionListFromArrayList(stepExplorerCorrelationTypeList,inheritedData.getCorrelationType());\n stepExplorerCorrelationTypeList.setBackground(INHERITED_FROM_PARENT);\n \n }else{\n this.fillSelectionListFromArrayList(stepExplorerCorrelationTypeList,new ArrayList<String>());\n stepExplorerCorrelationTypeList.setBackground(NOT_DEFINED);\n }\n }\n //selection\n this.stepExplorerCorrelationSelectionBox.setBackground(DEFAULT);\n if(stepData.getCorrelationSelection() != null){\n this.stepExplorerCorrelationSelectionBox.setSelectedItem(stepData.getCorrelationSelection());\n this.stepExplorerCorrelationSelectionBox.setBackground(NOT_INHERITED_FROM_PARENT);\n \n }else{\n if(inheritedData.getCorrelationSelection() != null){\n this.stepExplorerCorrelationSelectionBox.setSelectedItem(inheritedData.getCorrelationSelection());\n stepExplorerCorrelationSelectionBox.setBackground(INHERITED_FROM_PARENT);\n }else{\n this.stepExplorerCorrelationSelectionBox.setSelectedIndex(0);\n stepExplorerCorrelationSelectionBox.setBackground(NOT_DEFINED);\n }\n }\n //Baseline Selection\n this.BaselineSelectionPanel.setBackground(DEFAULT);\n this.baselineStation1Text.setText(\"\");\n this.baselineStation2Text.setText(\"\");\n this.fillBaselineTableFromArrayLists(new ArrayList<String>(),new ArrayList<String>());\n \n if(stepData.getStation1Selection() != null && stepData.getStation2Selection() != null){\n ArrayList<String> station1 = stepData.getStation1Selection();\n ArrayList<String> station2 = stepData.getStation2Selection();\n if(station1.size()>0 && station2.size()>0){\n this.baselineUseAllCheckbox.setSelected(false);\n this.fillBaselineTableFromArrayLists(station1,station2);\n }else{\n this.baselineUseAllCheckbox.setSelected(true);\n }\n this.BaselineSelectionPanel.setBackground(NOT_INHERITED_FROM_PARENT);\n }else{\n if(inheritedData.getStation1Selection() != null && inheritedData.getStation2Selection() != null){\n ArrayList<String> station1 = inheritedData.getStation1Selection();\n ArrayList<String> station2 = inheritedData.getStation2Selection();\n if(station1.size()>0 && station2.size()>0){\n this.baselineUseAllCheckbox.setSelected(false);\n this.fillBaselineTableFromArrayLists(station1,station2);\n }else{\n this.baselineUseAllCheckbox.setSelected(true);\n }\n BaselineSelectionPanel.setBackground(INHERITED_FROM_PARENT);\n }else{\n baselineStationsTable.clearSelection();\n this.baselineUseAllCheckbox.setSelected(false);\n this.BaselineSelectionPanel.setBackground(NOT_DEFINED);\n }\n }\n //Operation type\n \n this.stepExplorerOperationComboBox.setBackground(DEFAULT);\n if(stepData.getOperationName() == null){\n if(inheritedData.getOperationName() != null){\n this.stepExplorerOperationComboBox.setSelectedItem(inheritedData.getOperationName());\n stepExplorerOperationComboBox.setBackground(INHERITED_FROM_PARENT);\n this.loadStepOperationsPanel(this.stepOperationPanels.get(inheritedData.getOperationName()),stepData,inheritedData);\n }else{\n this.stepExplorerOperationComboBox.setSelectedItem(\"NOT DEFINED\");\n this.seOperationAttributesScrollPane.getViewport().removeAll();\n stepExplorerOperationComboBox.setBackground(NOT_DEFINED);\n }\n }else{\n this.stepExplorerOperationComboBox.setSelectedItem(stepData.getOperationName());\n this.stepExplorerOperationComboBox.setBackground(NOT_INHERITED_FROM_PARENT);\n this.loadStepOperationsPanel(this.stepOperationPanels.get(stepData.getOperationName()),stepData,inheritedData);\n \n }\n }",
"public void execute() {\n\t\t// get references to bank database and screen\n\t\tatmg.BankDatabase bankDatabase = getBankDatabase();\n\n\t\t// get the available balance for the account involved\n\t\tdouble availableBalance = bankDatabase.getAvailableBalance(getAccountNumber());\n\n\t\t// get the total balance for the account involved\n\t\tdouble totalBalance = bankDatabase.getTotalBalance(getAccountNumber());\n\n\t\t// display the balance information on the screen\n\t\tint input = JOptionPane.showOptionDialog(null,\n\t\t\t\t\"\\nBalance Information:\" + \"\\n\" + \" - Available balance: \" + availableBalance + \"\\n - Total balance:\"\n\t\t\t\t\t\t+ totalBalance + \"\\n\\n\",\n\t\t\t\tnull, JOptionPane.OK_OPTION, JOptionPane.INFORMATION_MESSAGE, null,\n\t\t\t\tnew String[] { \"OK\"}, \"default\");\n\t\tif (input == JOptionPane.OK_OPTION) {\n\t\t\t\n\n\t\t} else {\n\t\t\t//windowT.disable();\n\t\t}\n\n\t}",
"protected void execute() {\n \tSmartDashboard.putBoolean(\"Close?\", isClose());\n \tif (isClose()) {\n \t\tRobotMap.DRIVETRAIN_SUBSYSTEM.drive(0.0, MIN_SPEED, 0.0);\n \t}\n }",
"@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Adding workouts...\");\n this.progressDialog.show();\n }",
"public void checkPairsAndNextStep() {\r\n\t\tsetPairs();\r\n\t\tif (this.criticalPairs != null || this.criticalPairGraGra != null) {\r\n\t\t\tthis.stepPanel.setStep(StepPanel.STEP_FINISH);\r\n\t\t\tthis.nextButton.setText(\"Finish\");\r\n\t\t\tif (this.criticalPairs != null) {\r\n\t\t\t\tthis.criticalPairGraGra = null;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected void setupUI() {\n\n }",
"@Override\r\n\tpublic void onFinish(ITestContext arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onFinish(ITestContext arg0) {\n\t\t\r\n\t}",
"@Override\n public void onFinish() {\n WorldEdit.getInstance().getEventBus().register(new me.ddevil.mineme.mines.MineManager.WorldEditManager());\n registerBaseCommands();\n if (useMVdWPlaceholderAPI) {\n try {\n MVdWPlaceholderManager.setupPlaceholders();\n } catch (Exception ex) {\n printException(\"There was an error creting MVdWPlaceholder! Skipping\", ex);\n }\n }\n if (convertMineResetLite) {\n MineMe.instance.debug(\"Converting MineResetLite...\", true);\n MRLConverter.convert();\n MineMe.instance.debug(\"Converted MineResetLite!\", true);\n }\n debug(\"Starting metrics...\", 3);\n try {\n Metrics metrics = new Metrics(MineMe.this);\n metrics.start();\n debug(\"Metrics started!\", 3);\n } catch (IOException ex) {\n printException(\"There was an error start metrics! Skipping\", ex);\n }\n Bukkit.getScheduler().scheduleSyncDelayedTask(instance, new Runnable() {\n\n @Override\n public void run() {\n debug(\"Starting MineEditorGUI...\", 3);\n GUIManager.setup();\n debug(\"MineEditorGUI started!\", 3);\n }\n }, 2l);\n }",
"CartogramWizardFinishedPanel (JFrame contentFrame)\n\t{\n\t\tthis.setLocation(160, 90);\n\t\tthis.setSize(440, 340);\n\t\tthis.setLayout(null);\n\t\t\n\t\t\n\t\t\n\t\t// ADD THE HELP BUTTON\n\t\t\n\t\tClassLoader cldr = this.getClass().getClassLoader();\n\t\t\n\t\tjava.net.URL imageURL = cldr.getResource(\"help-22.png\");\n\t\tImageIcon helpIcon = new ImageIcon(imageURL);\n\n\t\tmHelpButton = new JButton(helpIcon);\n\t\tmHelpButton.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\tmHelpButton.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tmHelpButton.setSize(30, 30);\n\t\tmHelpButton.setLocation(0, 312);\n\t\tmHelpButton.setFocusable(false);\n\t\tmHelpButton.setContentAreaFilled(false);\n\t\tmHelpButton.setBorderPainted(false);\n\t\t\n\t\tmHelpButton.addActionListener(new CartogramWizardShowURL(\n\t\t\t\"http://chorogram.choros.ch/scapetoad/help/d-computation-report.php\"));\n\n\n\n\n\t\tmSaveReportButton = new JButton(\"Save report...\");\n\t\tmSaveReportButton.setBounds(300, 312, 130, 26);\n\t\tmSaveReportButton.setVisible(false);\n\t\tmSaveReportButton.addActionListener(\n\t\t\tnew CartogramWizardSaveReportAction());\n\t\t\n\t\t\n\t\t\t\t\n\t}",
"CartogramWizardPanelOne (JFrame contentFrame)\n\t{\n\t\t\n\t\tmCartogramWizard = (CartogramWizard)contentFrame;\n\t\n\t\tint width = 440;\n\t\tint height = 340;\n\t\n\t\tthis.setLocation(160, 90);\n\t\tthis.setSize(width, height);\n\t\tthis.setLayout(null);\n\t\t\t\t\n\t\t\n\t\t// Add the Next button\n\t\tmNextButton = new JButton(\"Next >\");\n\t\tmNextButton.setLocation(340, 314);\n\t\tmNextButton.setSize(100, 26);\n\t\tmNextButton.setMnemonic(KeyEvent.VK_ACCEPT);\n\t\t\n\t\tmNextButton.addActionListener(new\n\t\t\tCartogramWizardGoToStepAction(mCartogramWizard, 2));\n\t\t\n\t\tthis.add(mNextButton);\n\t\t\n\t\t\n\t\t// Add the Back button\n\t\tJButton backButton = new JButton(\"< Back\");\n\t\tbackButton.setLocation(235, 314);\n\t\tbackButton.setSize(100, 26);\n\t\t\n\t\tbackButton.addActionListener(new\n\t\t\tCartogramWizardGoToStepAction(mCartogramWizard, 0));\n\t\t\t\n\t\tthis.add(backButton);\n\t\t\n\t\t\n\t\t// Add a pop-up menu with the list of available layers.\n\t\t\n\t\tJLabel layerMenuLabel = new JLabel(\"Spatial coverage:\");\n\t\tlayerMenuLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tlayerMenuLabel.setBounds(0, 0, 190, 14);\n\t\tthis.add(layerMenuLabel);\n\t\t\n\t\tmLayerMenu = new JComboBox();\n\t\tmLayerMenu.setBounds(0, 20, 190, 26);\n\t\tmLayerMenu.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmLayerMenu.setMaximumRowCount(20);\n\t\t\n\t\t// Add all polygon layers to the list.\n\t\tint nlayers = AppContext.layerManager.size();\n\t\t\n\t\t// Check for each layer whether it is a polygon layer or not.\n\t\tfor (int lyrcnt = 0; lyrcnt < nlayers; lyrcnt++)\n\t\t{\n\t\t\tLayer lyr = AppContext.layerManager.getLayer(lyrcnt);\n\t\t\tFeatureCollectionWrapper fcw = lyr.getFeatureCollectionWrapper();\n\t\t\tint nfeat = fcw.size();\n\t\t\tif (nfeat > 0)\n\t\t\t{\n\t\t\t\tFeature feat = (Feature)fcw.getFeatures().get(0);\n\t\t\t\tGeometry geom = feat.getGeometry();\n\t\t\t\tif (geom.getArea() != 0.0)\n\t\t\t\t{\n\t\t\t\t\tmLayerMenu.addItem(lyr.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t// If there is no layer for the cartogram deformation,\n\t\t// add a menu item \"<none>\" and disable the \"Next\" button.\n\t\tif (mLayerMenu.getItemCount() == 0)\n\t\t{\n\t\t\tmLayerMenu.addItem(\"<none>\");\n\t\t\tmNextButton.setEnabled(false);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tmNextButton.setEnabled(true);\n\t\t}\n\t\t\n\t\t\t\n\t\tthis.add(mLayerMenu);\n\t\t\n\t\t\n\t\t\n\t\t// Adding the polygon image\n\t\tClassLoader cldr = this.getClass().getClassLoader();\n\t\tURL iconURL = cldr.getResource(\"Topology.png\");\n\t\tImageIcon topologyImage = new ImageIcon(iconURL);\n\n\t\t// Create a new label containing the image.\n\t\tJLabel iconLabel = new JLabel(topologyImage);\n\t\t\n\t\t// Setting the label parameters.\n\t\ticonLabel.setLayout(null);\n\t\ticonLabel.setSize(192, 239);\n\t\ticonLabel.setLocation(240, 30);\n\t\t\n\t\t// Add the icon label to this panel.\n\t\tthis.add(iconLabel);\n\t\t\n\t\t\n\t\t\n\t\t// Adding the explanatory text.\n\t\t// The message itself is read from a RTF file.\n\t\tJTextPane layerMenuTextPane = new JTextPane();\n\t\n\t\t// Get the content from the text file.\n\t\tString layerMenuText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"LayerMenuText.rtf\").openStream();\n\t\t\t\t\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\t\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\t\n\t\t\tinStream.close();\n\t\t\tlayerMenuText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\t\n\t\tlayerMenuTextPane.setContentType(\"text/rtf\");\n\t\tlayerMenuTextPane.setText(layerMenuText);\n\t\tlayerMenuTextPane.setEditable(false);\n\t\tlayerMenuTextPane.setFont(new Font(null, Font.PLAIN, 11));\n\t\tlayerMenuTextPane.setBackground(null);\n\t\tlayerMenuTextPane.setLocation(0, 60);\n\t\tlayerMenuTextPane.setSize(220, 240);\n\t\tthis.add(layerMenuTextPane);\n\t\t\n\t\t\n\t\t\n\t\t// ADD THE HELP BUTTON\n\t\t\n\t\t//ClassLoader cldr = this.getClass().getClassLoader();\n\t\t\n\t\tjava.net.URL imageURL = cldr.getResource(\"help-22.png\");\n\t\tImageIcon helpIcon = new ImageIcon(imageURL);\n\n\t\tJButton helpButton = \n\t\t\tnew JButton(helpIcon);\n\t\t\n\t\thelpButton.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\thelpButton.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\thelpButton.setSize(30, 30);\n\t\thelpButton.setLocation(0, 312);\n\t\thelpButton.setFocusable(false);\n\t\thelpButton.setContentAreaFilled(false);\n\t\thelpButton.setBorderPainted(false);\n\t\t\n\t\thelpButton.addActionListener(new CartogramWizardShowURL(\n\t\t\t\"http://chorogram.choros.ch/scapetoad/help/a-cartogram-creation.php#cartogram-layer\"));\n\t\t\n\t\tthis.add(helpButton);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private void finish() {\n }",
"public void executeCallback(DragonField field)\n {\n File scriptFile = null;\n lastScriptFileName = field.getLabelText();\n if (lastScriptFileName != null) // see if this is a file\n\t // put there by cmd line\n\t {\n scriptFile = new File(lastScriptFileName);\n if (!scriptFile.exists())\n\t {\n scriptFile = null;\n\t\t lastScriptFileName = null;\n\t\t }\n }\n if (scriptFile == null)\n\t {\n\t if (scriptFileChooser == null)\n\t {\n scriptFileChooser = new DragonFileChooser(\n\t\t\t\t\t DragonUI.currentApplication,\n\t\t\t\t\t DragonUI.textSource,\n\t\t\t\t\t false, true, false);\n\t }\n\t scriptFile = scriptFileChooser.chooseFile(filetypes,\n\t\t\t\t\t\t null,\n\t\t\t\t\t\t null,\n\t\t\t\t\t\t chooserTitle,\n\t\t\t\t\t\t lastScriptFileName);\n \t lastScriptFileName = null;\n\t if (scriptFile != null)\n\t {\n\t lastScriptFileName = scriptFile.getAbsolutePath();\n }\n }\n if (lastScriptFileName != null)\n\t {\n\t DragonUI mainApp = DragonUI.currentApplication;\n CommandLine cmdLine = mainApp.getCommandLine(); \n\t // put command lines into the history list.\n String command = \"RUN \"+ lastScriptFileName;\n\t cmdLine.addToHistory(command);\n cmdLine.getCmdLogger().logMessage(command, true);\n\t mainApp.getCommandForwarder().sendCommandToServer(\n\t\t\t\t CommandLine.CMDPROMPT + \" \" +\n\t\t\t\t command);\n mainApp.refreshHistoryDisplay();\n\t }\n\t}",
"public String resetWizard() {\n\t\treturn reset();\n\t}",
"@Override\n\tprotected void done()\n\t{\n\t\tgetController().done();\n\t}",
"public void onIabSetupFinished(IabResult result) {\n \t \t Logger.d(TAG, \"In-app Billing is ready to go...almost \");\n \t \t onSetupFinished(result);\n \t \t }",
"public void step()\n {\n status = stepInternal();\n }",
"public void mainCommands() {\n\t\tint inputId = taskController.getInt(\"Please input the number of your option: \", \"You must input an integer!\");\n\t\tswitch (inputId) {\n\t\tcase 1:\n\t\t\tthis.taskController.showTaskByTime();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.taskController.filterAProject();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.taskController.addTask();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.taskController.EditTask();\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tthis.taskController.removeTask();\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Thank you for coming, Bye!\");\n\t\t\tthis.exit = true;\n\t\t\t// save the task list before exit all the time.\n\t\t\tthis.taskController.saveTaskList();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"This is not a valid option, please input 1 ~ 7.\");\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }",
"@Override\r\n\tpublic void onFinish(ITestContext arg0) {\n\t}",
"private void showExecutionEnd() {\n log.info(\"##############################################################\");\n log.info(\"Application created: Press Cancel to end dialog\");\n log.info(\"##############################################################\");\n }",
"public NewTargetFileWizard() {\n super();\n }",
"@Override\n\t\tpublic void done() {\n\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t\t//JOptionPane.showMessageDialog(panel,\n\t\t\t//\t\t\"Rotina concluída com sucesso\",\n\t\t\t//\t\t\"Atualização de Grupos de Documentos\", JOptionPane.OK_OPTION);\n\t\t\tjButtonConsulta.setEnabled(true);\n\t\t\tjButtonFechar.setEnabled(true);\n\t\t\tsetCursor(null); //turn off the wait cursor\n\n\t\t}",
"public boolean performFinish() {\n\t\tfinal String containerName = page.getContainerName();\n\t\tfinal String fileName = \"aaaaaa.txt\";\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\n\t\t\n\t\tProjectRelationsDefsDao projectRelationsDefsDao = new ProjectRelationsDefsDao(proj.getLocation().toString()+\"/.vespene/vespenedb\");\n\t\tprojectRelationsDefsDao.deleteRelationsDefs( page.getSelectTableName() );\n\t\tprojectRelationsDefsDao.persistRelationsDefs( page.getCustomRelations() );\n\t\t\n\t\tProjectTemplatesDao projectTemplatesDao = new ProjectTemplatesDao(proj.getLocation().toString()+\"/.vespene/vespenedb\");\n\t\tprojectTemplatesDao.updateTemplatesProject( page.getTemplatesOutputPathList() );\n\t\t\n\t\t\n\t\tfinal String selectedTableName = page.getSelectTableName().toUpperCase();\n\t\tfinal List<Template> templateList = projectTemplatesDao.loadTemplatesProject();\n\t\tfinal PojoConfig pojoConfig = new PojoConfig();\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\n\t\t\tpublic void run(IProgressMonitor monitor) throws InvocationTargetException {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tdoFinish(pojoConfig, containerName, selectedTableName, templateList , monitor);\n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\tthrow new InvocationTargetException(e);\n\t\t\t\t} finally {\n\t\t\t\t\tmonitor.done();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\ttry {\n\t\t\tgetContainer().run(true, false, op);\n\t\t} catch (InterruptedException e) {\n\t\t\treturn false;\n\t\t} catch (InvocationTargetException e) {\n\t\t\tThrowable realException = e.getTargetException();\n\t\t\tMessageDialog.openError(getShell(), \"Error\", realException.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public void goToStep (int step)\n\t{\n\t\tif (step < 0 || step > 4)\n\t\t\treturn;\n\t\t\t\n\t\tif (mCurrentStep == step)\n\t\t\treturn;\n\t\t\n\t\t\n\t\t// Hide the current step.\n\t\tswitch (mCurrentStep)\n\t\t{\n\t\t\tcase 0:\n\t\t\t\tmPanelZero.setVisible(false);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1:\n\t\t\t\tmPanelOne.setVisible(false);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2:\n\t\t\t\tmPanelTwo.setVisible(false);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 3:\n\t\t\t\tmPanelThree.setVisible(false);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 4:\n\t\t\t\tmPanelFour.setVisible(false);\n\t\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t// Show the new step.\n\t\tswitch (step)\n\t\t{\n\t\t\tcase 0:\n\t\t\t\tif (mPanelZero == null)\n\t\t\t\t{\n\t\t\t\t\tmPanelZero = new CartogramWizardPanelZero(this);\n\t\t\t\t\tthis.getContentPane().add(mPanelZero);\n\t\t\t\t}\n\t\t\t\tmPanelZero.setVisible(true);\n\t\t\t\tmCurrentStep = 0;\n\t\t\t\tmWizardStepIconPanel.setStepIcon(1);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1:\n\t\t\t\tif (mPanelOne == null)\n\t\t\t\t{\n\t\t\t\t\tmPanelOne = new CartogramWizardPanelOne(this);\n\t\t\t\t\tthis.getContentPane().add(mPanelOne);\n\t\t\t\t}\n\t\t\t\tmPanelOne.setVisible(true);\n\t\t\t\tmCurrentStep = 1;\n\t\t\t\tmWizardStepIconPanel.setStepIcon(2);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2:\n\t\t\t\tif (mPanelTwo == null)\n\t\t\t\t{\n\t\t\t\t\tmPanelTwo = new CartogramWizardPanelTwo(this);\n\t\t\t\t\tthis.getContentPane().add(mPanelTwo);\n\t\t\t\t}\n\t\t\t\tmPanelTwo.setVisible(true);\n\t\t\t\tmCurrentStep = 2;\n\t\t\t\tmWizardStepIconPanel.setStepIcon(3);\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tif (mPanelThree == null)\n\t\t\t\t{\n\t\t\t\t\tmPanelThree = new CartogramWizardPanelThree(this);\n\t\t\t\t\tthis.getContentPane().add(mPanelThree);\n\t\t\t\t}\n\t\t\t\tmPanelThree.setVisible(true);\n\t\t\t\tmCurrentStep = 3;\n\t\t\t\tmWizardStepIconPanel.setStepIcon(4);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 4:\n\t\t\t\tif (mPanelFour == null)\n\t\t\t\t{\n\t\t\t\t\tmPanelFour = new CartogramWizardPanelFour(this);\n\t\t\t\t\tthis.getContentPane().add(mPanelFour);\n\t\t\t\t}\n\t\t\t\tmPanelFour.setVisible(true);\n\t\t\t\tmCurrentStep = 4;\n\t\t\t\tmWizardStepIconPanel.setStepIcon(5);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}"
] | [
"0.66812074",
"0.6450394",
"0.63233685",
"0.62334025",
"0.616961",
"0.61651415",
"0.6162697",
"0.6104862",
"0.60598326",
"0.595039",
"0.5875062",
"0.58549815",
"0.5850369",
"0.5840452",
"0.579423",
"0.57891184",
"0.57528645",
"0.5695875",
"0.5688407",
"0.5653565",
"0.5645086",
"0.5635494",
"0.56351423",
"0.5626377",
"0.56202775",
"0.55790246",
"0.5577221",
"0.55759513",
"0.5568381",
"0.5546856",
"0.5529304",
"0.5519381",
"0.5514983",
"0.55062485",
"0.5502945",
"0.54862154",
"0.5485248",
"0.5476657",
"0.5472842",
"0.54711753",
"0.54398537",
"0.5437397",
"0.5437061",
"0.54365003",
"0.54257554",
"0.5422312",
"0.5415462",
"0.5407497",
"0.540371",
"0.54036856",
"0.5396631",
"0.5395379",
"0.5394319",
"0.5384978",
"0.53826773",
"0.53815186",
"0.53791624",
"0.5375303",
"0.5375123",
"0.5365621",
"0.5365032",
"0.5359716",
"0.5345425",
"0.5345163",
"0.53387195",
"0.5336357",
"0.5329917",
"0.53295887",
"0.5328084",
"0.53271264",
"0.53236365",
"0.53172904",
"0.53088856",
"0.53088546",
"0.53037953",
"0.53032243",
"0.52899647",
"0.52803",
"0.5277476",
"0.5275884",
"0.5269513",
"0.5266361",
"0.5262776",
"0.5262776",
"0.5259157",
"0.52589446",
"0.5255308",
"0.5254601",
"0.52418363",
"0.52381486",
"0.52344227",
"0.5233808",
"0.5229224",
"0.52213764",
"0.5219849",
"0.5216509",
"0.521161",
"0.52005166",
"0.51976335",
"0.51949626",
"0.5192054"
] | 0.0 | -1 |
============================================================================= MINIMAL IMPLEMENTATION ============================================================================= | public OwSimpleUserInfo(String user_p, String password_p)
{
m_username = user_p;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private MetallicityUtils() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"Petunia() {\r\n\t\t}",
"Reproducible newInstance();",
"@Override\n public void perish() {\n \n }",
"private SBomCombiner()\n\t{}",
"private Main() {\n\n super();\n }",
"private MApi() {}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"private Main ()\n {\n super ();\n }",
"Simple createSimple();",
"public void smell() {\n\t\t\n\t}",
"Consumable() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"protected Doodler() {\n\t}",
"public abstract Object mo26777y();",
"private Infer() {\n\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"abstract int pregnancy();",
"@Override\n\tpublic void anular() {\n\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n public void memoria() {\n \n }",
"private NfkjBasic()\n\t\t{\n\t\t\t\n\t\t}",
"public Fun_yet_extremely_useless()\n {\n\n }",
"private TMCourse() {\n\t}",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"private Util() { }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public Main() {\n\t\tsuper();\n\t}",
"private DiscretePotentialOperations() {\r\n\t}",
"private ExpressionTools(){\n\t\t\n\t}",
"public abstract void mo70713b();",
"private Marinator() {\n }",
"private Marinator() {\n }",
"private SingleTon() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"private AlgorithmTools() {}",
"public abstract Object mo1771a();",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"protected FanisamBato(){\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private test5() {\r\n\t\r\n\t}",
"public Main() {\n \n \n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"protected abstract void construct();",
"private Cat() {\n\t\t\n\t}",
"private CompressionTools() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public Basic() {}",
"protected void h() {}",
"public abstract Object mo1185b();",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private HyperplaneSubsets() {\n }",
"public static void main(String args[]) throws Exception\n {\n \n \n \n }",
"public Main() {\r\n\t}",
"protected CombinatoricsUtils() {\n super();\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public static void main() {\n \n }",
"Traditional createTraditional();",
"private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}",
"public static void main(String[]args) {\n\t\n\t\t\n\n}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public abstract void mo56925d();",
"public static void main(String[] args)\r\t{",
"private Add() {}",
"private Add() {}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public Pitonyak_09_02() {\r\n }",
"public final void mo51373a() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n public void init() {}",
"private JadTool() { }",
"@Override\n public void init() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n void init() {\n }",
"private MakeACaptain() {\n }",
"public abstract void mo42331g();",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"protected GeneTAG() {/* intentionally empty block */}",
"private OMUtil() { }",
"@Override\n protected void prot() {\n }",
"private void __sep__Constructors__() {}",
"@Override\n\tprotected void initialise() {\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"protected TestBench() {}",
"protected void mo6255a() {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"private static void addShapeless()\n {}",
"public static void thisDemo() {\n\t}"
] | [
"0.6470129",
"0.6267546",
"0.62115824",
"0.619868",
"0.6119777",
"0.60920554",
"0.6066129",
"0.6062243",
"0.6055374",
"0.59958565",
"0.5985451",
"0.59669614",
"0.5953932",
"0.59385633",
"0.5936971",
"0.59218854",
"0.59146804",
"0.58827955",
"0.5880886",
"0.58779824",
"0.5864151",
"0.5858382",
"0.58488333",
"0.583751",
"0.58337843",
"0.5827486",
"0.58141786",
"0.58054876",
"0.5805121",
"0.580409",
"0.5796379",
"0.5792529",
"0.5790352",
"0.57821375",
"0.57821375",
"0.5779661",
"0.5779656",
"0.57772636",
"0.5775522",
"0.5774323",
"0.5762008",
"0.5750529",
"0.57343423",
"0.57343423",
"0.57341486",
"0.57235014",
"0.571547",
"0.571547",
"0.571547",
"0.571547",
"0.571547",
"0.5709831",
"0.57021844",
"0.57015246",
"0.5696518",
"0.56929785",
"0.56827325",
"0.5682349",
"0.5679",
"0.56784683",
"0.567295",
"0.56617135",
"0.56577265",
"0.56557983",
"0.56544554",
"0.56506455",
"0.56476116",
"0.56476074",
"0.5646191",
"0.56406313",
"0.56370735",
"0.56363815",
"0.56333804",
"0.5623976",
"0.56216663",
"0.56216663",
"0.5621493",
"0.5617999",
"0.5615969",
"0.5611531",
"0.5611531",
"0.5610637",
"0.560961",
"0.5609391",
"0.5608832",
"0.56087667",
"0.5607047",
"0.56016284",
"0.5599662",
"0.55893564",
"0.5585277",
"0.558474",
"0.55837494",
"0.5581031",
"0.5580293",
"0.55760336",
"0.5572139",
"0.5568544",
"0.5568544",
"0.55683887",
"0.5565729"
] | 0.0 | -1 |
============================================================================= OPTIONAL IMPLEMENTATION ============================================================================= | public Collection getGroups() throws Exception
{
// TODO Auto-generated method stub
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public abstract void mo70713b();",
"@Override\n protected void init() {\n }",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n }",
"@Override\n public void init() {\n\n }",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void init() {}",
"Consumable() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"private MetallicityUtils() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"private NativeSupport() {\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"private void m50366E() {\n }",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"public abstract Object mo26777y();",
"private TMCourse() {\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public void gored() {\n\t\t\n\t}",
"protected Doodler() {\n\t}",
"protected void h() {}",
"@Override public int describeContents() { return 0; }",
"private void strin() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private Util() { }",
"private void init() {\n\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 public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"public abstract void mo27386d();",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void jugar() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private void kk12() {\n\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public abstract void mo27385c();",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}"
] | [
"0.64054745",
"0.63164645",
"0.63164127",
"0.62808937",
"0.6189956",
"0.61822927",
"0.6168661",
"0.6131931",
"0.6110878",
"0.6014687",
"0.6014687",
"0.6005092",
"0.5993368",
"0.5993368",
"0.59825945",
"0.59187",
"0.59144396",
"0.589905",
"0.589905",
"0.589905",
"0.589905",
"0.589905",
"0.589905",
"0.587691",
"0.58551407",
"0.58545166",
"0.58441657",
"0.58430475",
"0.58421284",
"0.583868",
"0.58378595",
"0.582468",
"0.58178836",
"0.5812007",
"0.5805278",
"0.5805278",
"0.5794579",
"0.578015",
"0.57758313",
"0.57628226",
"0.57626414",
"0.5751182",
"0.5751096",
"0.5738479",
"0.5737232",
"0.5736074",
"0.5732957",
"0.57322234",
"0.57322234",
"0.57322234",
"0.57322234",
"0.57322234",
"0.57298064",
"0.572712",
"0.5715683",
"0.57093173",
"0.57015896",
"0.5700966",
"0.56913674",
"0.568524",
"0.56788594",
"0.56784415",
"0.5675331",
"0.5660912",
"0.5658377",
"0.56529945",
"0.5652745",
"0.56514376",
"0.56500375",
"0.56489617",
"0.56485724",
"0.56424516",
"0.56351256",
"0.56335217",
"0.56292206",
"0.56178975",
"0.56178975",
"0.56178975",
"0.56087834",
"0.56087834",
"0.5606993",
"0.5606993",
"0.56029326",
"0.5602274",
"0.55955315",
"0.55943006",
"0.55940324",
"0.5592252",
"0.5592252",
"0.5592252",
"0.55919755",
"0.55885893",
"0.55869156",
"0.5586364",
"0.55857074",
"0.5582111",
"0.5582111",
"0.5581735",
"0.55777395",
"0.55777395",
"0.55777395"
] | 0.0 | -1 |
TODO Autogenerated method stub | public Collection getRoleNames() throws Exception
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public String getUserEmailAdress() throws Exception
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | public String getUserDisplayName() throws Exception
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | public String getUserShortName() throws Exception
{
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Add function to get sessions for customer and for service | public Map<Long, Session> list() throws DAOException {
HashMap<Long, Session> result = new HashMap<Long, Session>();
TypedQuery<Session> query = em.createQuery(SQL_SELECT, Session.class);
try {
List<Session> sessions = query.getResultList();
for (Session session : sessions)
result.put(session.getId(), session);
} catch (NoResultException e) {
e.printStackTrace();
return null;
} catch (Exception e) {
e.printStackTrace();
throw new DAOException(e);
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract I_SessionInfo[] getSessions();",
"int getActiveSessions();",
"@Override\n\tpublic void createSession(String customer) {\n\t\t\n\t}",
"public Session[] findSessions();",
"public int getActiveSessions();",
"List<Session> getAllSessions();",
"@RequestMapping(method = RequestMethod.GET)\n public Sessions retrieve(@RequestHeader(\"X-CS-Auth\") String auth,\n @RequestHeader(\"X-CS-Session\") String sessionId) {\n return sessionService.retrieve();\n }",
"SessionManager get();",
"public abstract I_SessionInfo getSession(I_SessionName sessionName);",
"private static void sessionFromCurrentSession(final Context context) {\n\n \t// The session itself\n final Session newSession = Session.getInstance();\n \n // The service\n Service newService = new Service();\n newSession.setService(newService);\n\n // The shared preferences\n Preferences preferences = new Preferences(context);\n newSession.setPreferences(preferences);\n\n // The database\n RestaurantDBAdapter restaurantDBAdapter = new RestaurantDBAdapter(context);\n newSession.setRestaurantDBAdapter(restaurantDBAdapter);\n\n // The hashmap of all the restaurants\n HashMap<String, Restaurant> restaurants = restaurantDBAdapter.getAllRestaurants();\n newSession.setRestaurants(restaurants);\n\n //Save the current session\n Session.setCurrentSession(newSession);\n Session.currentSession.saveAsCurrentSession(context);\n }",
"@GetMapping(\"/getSession\")\n\tpublic ResponseEntity<?> getUserSesssion(HttpSession session) {\n\t\t//ProductOwner loggedInOwner = productOwnerService.authenticateProductOwner(\"owner\", \"owner\", session);\n\t\t\n\t\tHashMap<String, String> sessionMap = new HashMap<>();\n\t\tif(session.getAttribute(\"userType\") != null) {\n\t\t\tString userType = (String)session.getAttribute(\"userType\"); \n\t\t\t\n\t\t\tswitch (userType) {\n\t\t\tcase \"ProductOwner\":\n\t\t\t\tsessionMap.put(\"userType\", \"ProductOwner\");\n\t\t\t\tsessionMap.put(\"loginName\", (String) session.getAttribute(\"loginName\"));\n\t\t\t\tbreak;\n\t\n\t\t\tcase \"TeamLeader\":\n\t\t\t\tsessionMap.put(\"userType\", \"TeamLeader\");\n\t\t\t\tsessionMap.put(\"loginName\", (String) session.getAttribute(\"teamLeaderLoginName\"));\n\t\t\t\tbreak;\n\t\n\t\t\tcase \"Developer\":\n\t\t\t\tsessionMap.put(\"userType\", \"Developer\");\n\t\t\t\tsessionMap.put(\"loginName\", (String) session.getAttribute(\"developerLoginName\"));\n\t\t\t\tbreak;\n\t\n\t\t\tcase \"Client\":\n\t\t\t\tsessionMap.put(\"userType\", \"Client\");\n\t\t\t\tsessionMap.put(\"loginName\", (String) session.getAttribute(\"loginName\"));\n\t\t\t\tbreak;\n\t\n\n\t\t\tdefault:\n\t\t\t\tsessionMap.put(\"userType\", \"notLoggedIn\");\n\t\t\t\tsessionMap.put(\"loginName\",\"notLoggedIn\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\treturn new ResponseEntity<HashMap<String, String>>(sessionMap, HttpStatus.OK);\t\n\t\t}\n\t\telse {\n\t\t\tsessionMap.put(\"userType\", \"notLoggedIn\");\n\t\t\tsessionMap.put(\"loginName\",\"notLoggedIn\");\n\t\t\treturn new ResponseEntity<HashMap<String, String>>(sessionMap, HttpStatus.OK);\n\t\t}\n\n\t}",
"public List<SessionDetails> getSessionDetails(JobStep js);",
"public SessionDetails getSessionDetails(JobStep js, Sessions s);",
"@Override\n\tpublic Session sessionFindByCustomer(String customer) {\n\t\treturn null;\n\t}",
"public ArrayList<UserSessionInfo> getAllSessionInfo() throws SessionManagementException {\n ArrayList<UserSessionInfo> userSessionInfoList = null;\n try {\n userSessionInfoList = SessionContextCache.getInstance(0).getSessionDetails();\n } catch (Exception e) {\n String errorMsg = \"Error is occurred while getting session details \";\n log.error(errorMsg, e);\n throw new SessionManagementException(errorMsg, e);\n }\n return userSessionInfoList;\n }",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Session> \n getSessionsList();",
"private static List<String> getSessionsWithPurchases(\r\n Map<String, List<String>> sessionsFromCustomer,\r\n Map<String, List<Buy>> buysFromSessions\r\n )\r\n {\r\n // Initializes the session list.\r\n List<String> sessionList = new LinkedList<>();\r\n\r\n // Loops over all possible sessions, and finds ones for which purchases exist.\r\n for (Map.Entry<String, List<String>> entry: sessionsFromCustomer.entrySet()) {\r\n\r\n for (String sessionId: entry.getValue()) {\r\n if (buysFromSessions.containsKey(sessionId)) {\r\n sessionList.add(sessionId);\r\n }\r\n }\r\n\r\n }\r\n return sessionList;\r\n }",
"public static List getAllSessions() {\n\t\tsynchronized (FQN) {\n\t\t\tList<MemberSession> msList = new ArrayList<MemberSession>();\n//\t\t\tObject object = cache.getValues(FQN);\n\t\t\tObject object = null;\n\t\t\tif (object != null) {\n\t\t\t\tmsList = (List<MemberSession>) object;\n\t\t\t\treturn new ArrayList(msList);\n\t\t\t} else {\n\t\t\t\tCollection list = new ArrayList();\n\t\t\t\tobject = cache.getValues(FQN);\n\t\t\t\tif(object != null){\n\t\t\t\t\tlist = (Collection) object;\n\t\t\t\t}\n\t\t\t\tmsList = new ArrayList(list);\n//\t\t\t\tfor (MemberSession ms : msList) {\n//\t\t\t\t\tcache.add(FQN, ms.getSessionId(), ms);\n//\t\t\t\t}\n\t\t\t\treturn msList;\n\t\t\t}\n\n\t\t}\n\t}",
"public abstract String getSessionList();",
"public static List<CourseSession> createSessions() {\n List<CourseSession> list = new ArrayList<CourseSession>();\n list.add(createSession(\"1\"));\n list.add(createSession(\"2\"));\n return list;\n }",
"@GET(\"sdk/v5/sessions\")\n Call<SessionResponse> getSession(@Header(\"Authorization\") String Authorization);",
"public PSUserSession getSession();",
"@GetMapping(\"tv_watching_sessions\")\n\tpublic List<TvWatchingSession> listSessions(){\n\t\treturn svc.allActiveSessionsByUser(userName);\n\t}",
"public abstract I_SessionInfo getSessionInfo(I_SessionName sessionName);",
"public interface SessionService {\n\n Session addSession(Session session);\n Session getSession(Long id);\n boolean deleteSession(Long id);\n List<Session> getSessions();\n boolean updateRecord(Long id, String record);\n}",
"Session getCurrentSession();",
"Session getCurrentSession();",
"public static ArrayList<Session> getSessions() {\r\n\t\treturn sessions;\r\n\t}",
"String getAssociatedSession();",
"public UserSession[] getUserSessions() throws SessionQueryException\n {\n UserSession[] userArray = null;\n\n \n // Get all of the users from the SMS\n UserLoginStruct[] userStructs;\n try {\n userStructs = getSessionManagementAdminService().getUsers(false);\n\n GUILoggerHome.find().debug(\"AbstractSessionInfoManager\", GUILoggerSABusinessProperty.USER_SESSION,\n userStructs);\n if (GUILoggerHome.find().isInformationOn()) {\n GUILoggerHome.find().information(\"AbstractSessionInfoManager\",\n GUILoggerSABusinessProperty.USER_SESSION, \"Found \" + userStructs.length + \" User Sessions\");\n }\n\n userArray = new UserSession[userStructs.length];\n UserSession userSession = null;\n\n for (int i = 0; i < userStructs.length; i++) {\n if (userStructs[i].sourceComponents != null && userStructs[i].sourceComponents.length == 1\n && userStructs[i].sourceComponents[0].length() == 0) {\n userSession = new UserSession(new User(userStructs[i].userId, userStructs[i].loggedIn),\n new String[0]);\n } else {\n userSession = new UserSession(new User(userStructs[i].userId, userStructs[i].loggedIn),\n userStructs[i].sourceComponents);\n }\n userArray[i] = userSession;\n }\n\n // Sort the list of users in alphabetical order by Name\n Arrays.sort(userArray, getNameComparator());\n\n } catch (Exception e) {\n throw new SessionQueryException(\"Could not acquire user sessions information.\" ,e);\n }\n \n return userArray;\n }",
"@Override\n\tpublic CacheHttpSession getSession(String sessionId) {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}",
"@RequestMapping(value = {\"/session/{sessionId}\"}, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n @Transactional\n /*if justClient send true -> just session instruction and number of the repeat of it for client type of this session id comes to result*/\n /*else if justServer send true -> just session instruction and number of the repeat of it for server type of this session id comes to result*/\n /*else if justServer send false and justClient false or dont sent -> session instruction and number of the repeat of it for all type of this session id comes to result*/\n public ResponseEntity<?> getSessionPixys(@PathVariable String sessionId, Boolean justClient, Boolean justServer) throws PixyException {\n return new ResponseEntity<>(sessionPixyService.getSessionPixyById(sessionId, justClient, justServer), HttpStatus.OK);\n }",
"RunningTasks getActiveHarvestingSessions() throws RepoxException;",
"Session getSession();",
"Session getSession();",
"public long getSessionCounter();",
"com.weizhu.proto.WeizhuProtos.Session getSession();",
"@Override\r\n \t\t\tpublic SSession getSession(long sessionId) throws SSessionNotFoundException {\n \t\t\t\treturn null;\r\n \t\t\t}",
"public SessionService session() {\n return service;\n }",
"public interface SessionManager {\n void getSession(String request);\n}",
"@Override\n\tpublic List<Session> getAssaignedSession(int agentid) {\n\t\treturn null;\n\t}",
"public Session getSessionbyCookie(int cookie);",
"private Session getSession(String type) {\n String hostUrl = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_HOST_URL);\n String user = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_USER);\n String password = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_PASSWORD);\n String cmisUrl = MigrationProperties.get(type + \".\" + MigrationProperties.PROP_ALFRESCO_CMIS_URL);\n logger.info(\"Getting session \" + type + \": \" + hostUrl + \", user: \" + user);\n\n return CmisHelper.getSession(hostUrl, user, password, cmisUrl);\n }",
"public Session getSession();",
"public Collection<RaftSession> getSessions(PrimitiveId primitiveId) {\n return sessions.values().stream()\n .filter(session -> session.getService().serviceId().equals(primitiveId))\n .collect(Collectors.toSet());\n }",
"private List<? extends Map<String, ?>> getSessions() {\n List<Map<String, String>> list = new ArrayList<Map<String, String>>();\n sessions = MXChatManager.getInstance().getGroupChatSessions();\n for (MXGroupChatSession session : sessions) {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"topic\", session.getTopic());\n map.put(\"type\", session.isAChat() ? \"Chat\" : \"Meet\");\n\n list.add(map);\n }\n\n return list;\n }",
"@Path(\"/{id}\")\n @GET\n public Response getSession(@PathParam(\"id\") Long id) {\n log.debug(\"REST request to get Session : {}\", id);\n Session session = sessionRepository.find(id);\n return Optional.ofNullable(session)\n .map(result -> Response.status(Response.Status.OK).entity(session).build())\n .orElse(Response.status(Response.Status.NOT_FOUND).build());\n }",
"@Override\n\tpublic Session getSession(String appKey,String contextpath, String sessionid) {\n\t\tSession session = this.sessionStore.getSession(appKey, contextpath, sessionid);\n\t\tif(session != null)\n\t\t\tsession._setSessionStore(this);\n\t\treturn session;\n\t}",
"@Override\n\tpublic Session getLastSession(String customer) {\n\t\treturn null;\n\t}",
"public synchronized Session[] getVisibleSessions(Session session) {\n return session.isAdmin() ? getAllSessions()\n : new Session[]{ session };\n }",
"com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();",
"private void setupCustomerSession() {\n CustomerSession.initCustomerSession(\n new SampleStoreEphemeralKeyProvider(\n new SampleStoreEphemeralKeyProvider.ProgressListener() {\n @Override\n public void onStringResponse(String string) {\n if (string.startsWith(\"Error: \")) {\n new AlertDialog.Builder(StoreActivity.this).setMessage(string).show();\n }\n }\n }));\n }",
"@Override\n public void getAllSystemsInSession() {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"getAllSystemsInSession\");\n }\n\n List<SystemInSession> listOfSiS = null;\n EntityManager em = EntityManagerService.provideEntityManager();\n if (Role.isLoggedUserAdmin() || Role.isLoggedUserProjectManager() || Role.isLoggedUserMonitor()) {\n choosenInstitutionForAdmin = (Institution) Component.getInstance(CHOOSEN_INSTITUTION_FOR_ADMIN);\n\n if (choosenInstitutionForAdmin != null) {\n listOfSiS = SystemInSession.getSystemsInSessionForCompanyForSession(em, choosenInstitutionForAdmin);\n } else {\n listOfSiS = SystemInSession.getSystemsInSessionForActivatedTestingSession();\n }\n } else {\n listOfSiS = SystemInSession.getSystemsInSessionForCompanyForSession(em,\n Institution.getLoggedInInstitution());\n }\n foundSystemsInSession = listOfSiS;\n }",
"public List<String> getSessionList(){\r\n \t\r\n \tList<String> sessionIds = new ArrayList<String>();\r\n \tfor (Entry<String, AccessDetailVO> curPage : pageAccess.entrySet()) {\r\n \t\tAccessDetailVO currLock = curPage.getValue();\r\n \t\tif(!sessionIds.contains(currLock.getSessionId())){\r\n \t\t\tsessionIds.add(currLock.getSessionId());\r\n \t\t}\t\r\n \t}\r\n \t\r\n \treturn sessionIds;\r\n }",
"static void startSession() {\n /*if(ZeTarget.isDebuggingOn()){\n Log.d(TAG,\"startSession() called\");\n }*/\n if (!isContextAndApiKeySet(\"startSession()\")) {\n return;\n }\n final long now = System.currentTimeMillis();\n\n runOnLogWorker(new Runnable() {\n @Override\n public void run() {\n logWorker.removeCallbacks(endSessionRunnable);\n long previousEndSessionId = getEndSessionId();\n long lastEndSessionTime = getEndSessionTime();\n if (previousEndSessionId != -1\n && now - lastEndSessionTime < Constants.Z_MIN_TIME_BETWEEN_SESSIONS_MILLIS) {\n DbHelper dbHelper = DbHelper.getDatabaseHelper(context);\n dbHelper.removeEvent(previousEndSessionId);\n }\n //startSession() can be called in every activity by developer, hence upload events and sync datastore\n // only if it is a new session\n //syncToServerIfNeeded(now);\n startNewSessionIfNeeded(now);\n\n openSession();\n\n // Update last event time\n setLastEventTime(now);\n //syncDataStore();\n //uploadEvents();\n\n }\n });\n }",
"@GET\n public List<Session> getAllSessions() {\n log.debug(\"REST request to get all Sessions\");\n List<Session> sessions = sessionRepository.findAll();\n return sessions;\n }",
"@Override\n\tpublic HttpSession getSession(boolean flag) {\n\t\tboolean sessionInStock = false;\n if (flag) {\n if (!hasSession()) {\n for (Cookie c : cookieList) {\n if (c.getName().equalsIgnoreCase(\"JSESSIONID\")) {\n if (SessionContainer.getSession(c.getValue()) != null) {\n sessionInStock = true;\n m_session = SessionContainer.getSession(c.getValue());\n return m_session;\n }\n }\n }\n if (!sessionInStock) {\n m_session = new MyHttpSession();\n Cookie sessionCookie = new Cookie(\"JSESSIONID\",\n m_session.getSessoinId());\n buffer.addCookie(sessionCookie);\n SessionContainer.addSession(m_session);\n }\n }\n } else {\n if (!hasSession()) {\n m_session = null;\n }\n }\n return m_session;\n\t}",
"public interface Session {\n\n String API_KEY = \"kooloco\";\n String USER_SESSION = \"szg9wyUj6z0hbVDU6nM2vuEmbyigN3PgC5q8EksKTs25\";\n String USER_ID = \"24\";\n String DEVICE_TYPE = \"A\";\n\n String getApiKey();\n\n String getUserSession();\n\n String getUserId();\n\n void setApiKey(String apiKey);\n\n void setUserSession(String userSession);\n\n void setUserId(String userId);\n\n String getDeviceId();\n\n void setUser(User user);\n\n User getUser();\n\n void clearSession();\n\n String getLanguage();\n\n String getCurrency();\n\n String getAppLanguage();\n\n void setCurrency(String currency, String lCurrency);\n\n}",
"public List<Session> getEndpointSessions(String endpoint) throws SessionManagerException {\n\t\tList<Session> sessions;\n\n\t\tif (sessionMap.get(endpoint) != null)\n\t\t\tsessions = sessionMap.get(endpoint);\n\t\telse\n\t\t\tthrow new SessionManagerException(\"Endpoint \" + endpoint + \" does not exist.\");\n\n\t\treturn sessions;\n\t}",
"public Collection<Long> getSessions() {\n return dataTree.getSessions();\n }",
"User getBySession(String session);",
"protected Session getSession() { return session; }",
"com.google.spanner.v1.Session getSessionTemplate();",
"public static void getSession (HttpServletRequest request, HttpServletResponse response) throws IOException {\n PrintWriter out = response.getWriter();\n ObjectMapper objM = new ObjectMapper();\n HttpSession session = request.getSession();\n Response<LoginData> res = new Response<>();\n LoginData loginData = new LoginData();\n String r;\n\n if (session.isNew()){\n System.out.println(\"Session not started!\");\n res.setMessage(\"Session not started!\");\n loginData.setAdmin(true);\n res.setStatus(403);\n loginData.setName(\"\");\n res.setData(loginData);\n session.invalidate();\n\n } else {\n System.out.println(\"Session started\");\n res.setMessage(\"Session started\");\n res.setStatus(200);\n loginData.setAdmin(true);\n loginData.setName((String) session.getAttribute(\"name\"));\n res.setData(loginData);\n }\n\n r = objM.writeValueAsString(res);\n System.out.println(r);\n out.print(r);\n }",
"public final List<MediaSession2> getSessions() {\n ArrayList<MediaSession2> arrayList = new ArrayList<MediaSession2>();\n Object object = this.mLock;\n synchronized (object) {\n arrayList.addAll(this.mSessions.values());\n return arrayList;\n }\n }",
"synchronized Session getSession(long id) {\n return (Session) sessionMap.get(id);\n }",
"public Collection<RaftSession> getSessions() {\n return sessions.values();\n }",
"int getAccessCounterForSession();",
"AuthenticationSessionModel getAuthenticationSession();",
"int getSessionCount();",
"@Override\n\tpublic UserSessionBean getSessionDao(String input) {\n\t\tUserSessionBean data=null;\n\t\tfor(UserSessionBean obj: this.userDao.getSessionDao(input)){\n\t\t\tdata=obj;\n\t\t}\n\t\treturn data;\n\t}",
"public SessionList() { \n sessions = ExpiringMap.builder().variableExpiration().build();\n }",
"Session get(int id);",
"List<OrderModel> getAllLoggedInCustomerTickets() {\r\n final List<PurchasingOrder> purchasingOrders = getLoggedInCustomerAirlineTicketOrders();\r\n return OrderModel.mapFromPurchasingOrders(purchasingOrders);\r\n }",
"public interface SessionManager {\n\n /**\n * Return the distributable flag for the sessions supported by\n * this SessionManager.\n */\n public boolean getDistributable();\n\n\n /**\n * Set the distributable flag for the sessions supported by this\n * SessionManager. If this flag is set, all user data objects added to\n * sessions associated with this manager must implement Serializable.\n *\n * @param distributable The new distributable flag\n */\n public void setDistributable(boolean distributable);\n\n /**\n * Return the default maximum inactive interval (in seconds)\n * for Sessions created by this SessionManager.\n */\n public int getMaxInactiveInterval();\n\n /**\n * Set the default maximum inactive interval (in seconds)\n * for Sessions created by this SessionManager.\n *\n * @param interval The new default value\n */\n public void setMaxInactiveInterval(int interval);\n\n /**\n * Returns the total number of sessions created by this manager.\n *\n * @return Total number of sessions created by this manager.\n */\n public long getSessionCounter();\n\n\n /**\n * Sets the total number of sessions created by this manager.\n *\n * @param sessionCounter Total number of sessions created by this manager.\n */\n public void setSessionCounter(long sessionCounter);\n\n\n /**\n * Gets the maximum number of sessions that have been active at the same\n * time.\n *\n * @return Maximum number of sessions that have been active at the same\n * time\n */\n public int getMaxActive();\n\n\n /**\n * (Re)sets the maximum number of sessions that have been active at the\n * same time.\n *\n * @param maxActive Maximum number of sessions that have been active at\n * the same time.\n */\n public void setMaxActive(int maxActive);\n\n\n /**\n * Gets the number of currently active sessions.\n *\n * @return Number of currently active sessions\n */\n public int getActiveSessions();\n\n\n /**\n * Gets the number of sessions that have expired.\n *\n * @return Number of sessions that have expired\n */\n public long getExpiredSessions();\n\n\n /**\n * Sets the number of sessions that have expired.\n *\n * @param expiredSessions Number of sessions that have expired\n */\n public void setExpiredSessions(long expiredSessions);\n\n\n /**\n * Gets the number of sessions that were not created because the maximum\n * number of active sessions was reached.\n *\n * @return Number of rejected sessions\n */\n public int getRejectedSessions();\n\n\n /**\n * Gets the longest time (in seconds) that an expired session had been\n * alive.\n *\n * @return Longest time (in seconds) that an expired session had been\n * alive.\n */\n public int getSessionMaxAliveTime();\n\n\n /**\n * Sets the longest time (in seconds) that an expired session had been\n * alive.\n *\n * @param sessionMaxAliveTime Longest time (in seconds) that an expired\n * session had been alive.\n */\n public void setSessionMaxAliveTime(int sessionMaxAliveTime);\n\n\n /**\n * Gets the average time (in seconds) that expired sessions had been\n * alive. This may be based on sample data.\n *\n * @return Average time (in seconds) that expired sessions had been\n * alive.\n */\n public int getSessionAverageAliveTime();\n\n\n /**\n * Gets the current rate of session creation (in session per minute). This\n * may be based on sample data.\n *\n * @return The current rate (in sessions per minute) of session creation\n */\n public int getSessionCreateRate();\n\n\n /**\n * Gets the current rate of session expiration (in session per minute). This\n * may be based on sample data\n *\n * @return The current rate (in sessions per minute) of session expiration\n */\n public int getSessionExpireRate();\n // --------------------------------------------------------- Public Methods\n\n\n /**\n * Add this Session to the set of active Sessions for this SessionManager.\n *\n * @param session Session to be added\n */\n public void add(Session session);\n\n /**\n * Change the session ID of the current session to a new randomly generated\n * session ID.\n *\n * @param session The session to change the session ID for\n */\n public void changeSessionId(Session session);\n\n\n /**\n * Get a session from the recycled ones or create a new empty one.\n * The PersistentManager manager does not need to create session data\n * because it reads it from the Store.\n */\n public Session createEmptySession();\n\n\n /**\n * Construct and return a new session object, based on the default\n * settings specified by this SessionManager's properties. The session\n * id specified will be used as the session id.\n * If a new session cannot be created for any reason, return\n * <code>null</code>.\n *\n * @param sessionId The session id which should be used to create the\n * new session; if <code>null</code>, the session\n * id will be assigned by this method, and available via the getId()\n * method of the returned session.\n * @exception IllegalStateException if a new session cannot be\n * instantiated for any reason\n */\n public Session createSession(String sessionId);\n\n\n /**\n * Return the active Session, associated with this SessionManager, with the\n * specified session id (if any); otherwise return <code>null</code>.\n *\n * @param id The session id for the session to be returned\n *\n * @exception IllegalStateException if a new session cannot be\n * instantiated for any reason\n * @exception IOException if an input/output error occurs while\n * processing this request\n */\n public Session findSession(String id) throws IOException;\n\n\n /**\n * Return the set of active Sessions associated with this SessionManager.\n * If this SessionManager has no active Sessions, a zero-length array is returned.\n */\n public Session[] findSessions();\n\n\n /**\n * Load any currently active sessions that were previously unloaded\n * to the appropriate persistence mechanism, if any. If persistence is not\n * supported, this method returns without doing anything.\n *\n * @exception ClassNotFoundException if a serialized class cannot be\n * found during the reload\n * @exception IOException if an input/output error occurs\n */\n public void load() throws ClassNotFoundException, IOException;\n\n\n /**\n * Remove this Session from the active Sessions for this SessionManager.\n *\n * @param session Session to be removed\n */\n public void remove(Session session);\n\n\n /**\n * Remove this Session from the active Sessions for this SessionManager.\n *\n * @param session Session to be removed\n * @param update Should the expiration statistics be updated\n */\n public void remove(Session session, boolean update);\n\n /**\n * Save any currently active sessions in the appropriate persistence\n * mechanism, if any. If persistence is not supported, this method\n * returns without doing anything.\n *\n * @exception IOException if an input/output error occurs\n */\n public void unload() throws IOException;\n\n /**\n * This method will be invoked by the context/container on a periodic\n * basis and allows the manager to implement\n * a method that executes periodic tasks, such as expiring sessions etc.\n */\n public void backgroundProcess();\n\n}",
"Object getNativeSession();",
"DefaultSession getSession(String id);",
"private Set<Session> getOpenServerSessions(){\n ClientContainer jettySocketServer = getWebSocketsContainer();\n return jettySocketServer.getOpenSessions();\n }",
"private void getCustomer() {\n final LoginGet loginget = new LoginGet();\n loginget.setLoginGetListener(new LoginGetListener() {\n\n @Override\n public void getMember(ArrayList<Customer> list) {\n\n }\n\n @Override\n public void getCustomer(ArrayList<Customer> list) {\n customerList = new ArrayList<Customer>();\n customerList.addAll(list);\n if (customerList.size() > 0) {\n defaultPage.setVisibility(View.GONE);\n ll.setVisibility(View.VISIBLE);\n myNewCustomersAdapter = new MyNewCustomersAdapter(\n NewFriendsActivity.this, customerList);\n listView.setAdapter(myNewCustomersAdapter);\n } else {\n tv2.setText(\"You haven't friends for a long time\");\n }\n\n }\n });\n loginget.CustomerRequest(NewFriendsActivity.this);\n\n }",
"public abstract int getNumSessions();",
"boolean hasSession();",
"@GET\n @Path(\"/session\")\n @Produces(MediaType.TEXT_PLAIN)\n public Response getSessionInfo(@Context HttpServletRequest request) {\n try {\n BlahguaSession.ensureAdmin(request);\n return Response.ok(BlahguaSession.getSessionInfo(request)).build();\n } catch (Exception e) {\n return RestUtilities.make500AndLogSystemErrorResponse(request, e);\n }\n }",
"@Override\r\n\tpublic HttpSession getSession()\r\n\t{\r\n\t\t// This method was implemented as a workaround to __CR3668__ and Vignette Support ticket __247976__.\r\n\t\t// The issue seems to be due to the fact that both local and remote portlets try to retrieve\r\n\t\t// the session object in the same request. Invoking getSession during local portlets\r\n\t\t// processing results in a new session being allocated. Unfortunately, as remote portlets\r\n\t\t// use non-WebLogic thread pool for rendering, WebLogic seems to get confused and associates\r\n\t\t// the session created during local portlet processing with the portal request.\r\n\t\t// As a result none of the information stored originally in the session can be found\r\n\t\t// and this results in errors.\r\n\t\t// To work around the issue we maintain a reference to original session (captured on the\r\n\t\t// first invocation of this method during the request) and return it any time this method\r\n\t\t// is called. This seems to prevent the issue.\r\n\t\t// In addition, to isolate SPF code from the session retrieval issue performed by Axis\r\n\t\t// handlers used during WSRP request processing (e.g. StickyHandler), we also store\r\n\t\t// a reference to the session as request attribute. Newly added com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t// can then use the request attribute value instead of calling request.getSession()\r\n\t\t// which before this change resulted in new session being allocated and associated with\r\n\t\t// the portal request.\r\n\r\n\t\tif (mSession == null) {\r\n\t\t\tmSession = ((HttpServletRequest)getRequest()).getSession();\r\n\r\n\t\t\t// Store session in request attribute for com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t\tgetRequest().setAttribute(ORIGINAL_SESSION, mSession);\r\n\t\t}\r\n\r\n\t\treturn mSession;\r\n\t}",
"@Override\n\tpublic <T, S> List<T> getRecords(S session) {\n\t\treturn null;\n\t}",
"private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}",
"protected final Session getSession() {\n return sessionTracker.getSession();\n }",
"public interface SessionService {\n\n /**\n * Create and start new ComapiImpl session.\n *\n * @param callback Callback with the result.\n */\n void startSession(@Nullable Callback<Session> callback);\n\n /**\n * Ends currently active session.\n *\n * @param callback Callback with the result.\n */\n void endSession(@Nullable Callback<ComapiResult<Void>> callback);\n }",
"@Override\n\t\tpublic HttpSession getSession(boolean create) {\n\t\t\treturn null;\n\t\t}",
"public Session getSession() { return session; }",
"private static void getFromCache(Session session) {\n\t\tCacheManager cm=CacheManager.getInstance();\n\t\tCache cache=cm.getCache(\"namanCache\");\n\t\tfor(int i=0;i<2;i++){\n\t\t\tif(cache.get(i)!=null){\n\t\t\t\tSystem.out.println(((UserDetails)cache.get(1).getObjectValue()).getName());\n\t\t\t}else{\n\t\t\t\tUserDetails user1=(UserDetails)session.get(UserDetails.class, i);\n\t\t\t\tSystem.out.println(user1.getName());\n\t\t\t\tcache.put(new Element(i+1,user1));\n\t\t\t}\n\t\t}\n\t\tcm.shutdown();\n\t}",
"public abstract I_SessionInfo getSessionByPublicId(long publicSessionId);",
"private Chat getChatSession(Intent intent) {\n ApiManager instance = ApiManager.getInstance();\n String sessionId = intent\n .getStringExtra(ChatIntent.EXTRA_CONTACT);\n if (instance == null) {\n Logger.i(TAG, \"ApiManager instance is null\");\n return null;\n }\n ChatService chatApi = instance.getChatApi();\n if (chatApi == null) {\n Logger.d(TAG, \"MessageingApi instance is null\");\n return null;\n }\n Chat chatSession = null;\n Logger.d(TAG, \"The chat session is null1\");\n try {\n chatSession = chatApi.getChat(sessionId);\n } catch (JoynServiceException e) {\n Logger.e(TAG, \"Get chat session failed\");\n Logger.d(TAG, \"The chat session is null2\");\n e.printStackTrace();\n chatSession = null;\n }\n if (chatSession != null) {\n return chatSession;\n }\n try {\n // Set<Chat> totalChats = null;\n Set<Chat> totalChats = chatApi.getChats();\n if (totalChats != null) {\n Logger.w(TAG, \"aaa getChatSession size: \"\n + totalChats.size());\n Logger.d(TAG, \"The chat session is null3 : \"\n + totalChats.size());\n for (Chat setElement : totalChats) {\n if (setElement.getRemoteContact().equals(\n sessionId)) {\n Logger.e(TAG, \"Get chat session finally\");\n // might work or might throw exception, Java calls it\n // indefined behaviour:\n chatSession = setElement;\n break;\n }\n }\n } else {\n Logger.w(TAG, \"aaa getChatSession size: null\");\n }\n } catch (JoynServiceException e) {\n Logger.e(TAG, \"Get chat session xyz\");\n e.printStackTrace();\n }\n return chatSession;\n }",
"int getClientSessionID();",
"public ConcurrentHashMap<Long, Integer> getSessionWithTimeOuts() {\n return sessionsWithTimeouts;\n }",
"public ArrayList<Session> getActiveSessions()\r\n\t{\r\n\t\treturn this.activeSessions;\r\n\t}",
"public static CustomSession get() {\r\n\t\treturn (CustomSession) Session.get();\r\n\t}",
"@Test\r\n public void testGetSession() {\r\n System.out.println(\"getSession\");\r\n assertNotNull(sm);\r\n \r\n ISimulationSessionInfo result = sm.getSession(\"test1\");\r\n assertNotNull(result);\r\n assertEquals(result.getRequester(), \"junit\");\r\n }",
"public interface ISessionService {\n\n /**\n * Indicates what's the current server's bank.\n * @return\n */\n shared.data.Bank getBank();\n\n /**\n * Sets the current server's bank at startup.\n * Should not be changed once server is online.\n * @param bank\n */\n void setBank(shared.data.Bank bank);\n\n /**\n * Returns a file logger where to write the logs for the server.\n * @return\n */\n IFileLogger log();\n}",
"public interface SessionDecorator\n{\n \n /**\n * Decorates the session and returns another decorated session.\n * \n * @param session\n */\n Session decorate(Session session);\n \n /**\n * Decorates the session and returns another decorated session\n * with the user ID used to acquire the session\n * \n * @param session\n * @param userID\n */\n Session decorate(Session session, String userID);\n \n}",
"public WebServiceConfig()\n {\n// session1 = new sessionmanager(getApplicationContext);\n\n }",
"public interface AccessSessionLocal\n extends javax.ejb.EJBLocalObject\n{\n /**\n * Business Method\n */\n public boolean authenticateUser( java.security.cert.X509Certificate[] certificates ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.interfaces.ServiceSessionLocal[] getAllServiceSessions( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.interfaces.ServiceSessionLocal getServiceSession( java.lang.String ssid ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String startServiceSession( java.lang.String serviceId,boolean isForwarded,java.lang.String xmlDoc,java.lang.String docSig ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String startServiceSession( java.lang.String serviceId,java.lang.String requestDocument ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stopServiceSession( java.lang.String ssid ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stopAllServiceSessions( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.kernel.ServiceInfo[] listAvailableServices( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stop( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.eMayor.PolicyEnforcement.C_UserProfile getUserProfile( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String getSessionId( ) throws org.emayor.servicehandling.kernel.SessionException;\n\n /**\n * Business Method\n */\n public java.lang.String getUserId( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public void setUserId( java.lang.String userId ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.util.Date getStartDate( ) throws org.emayor.servicehandling.kernel.SessionException;\n\n}"
] | [
"0.6478293",
"0.6470507",
"0.64123064",
"0.6383367",
"0.635591",
"0.62945986",
"0.6122754",
"0.6098324",
"0.60268265",
"0.5951479",
"0.5926686",
"0.59111094",
"0.58414024",
"0.58403635",
"0.58288985",
"0.5825845",
"0.5824936",
"0.5752939",
"0.57460123",
"0.57361674",
"0.5729269",
"0.57284075",
"0.5704688",
"0.5704369",
"0.56924784",
"0.56911296",
"0.56911296",
"0.5687578",
"0.56861883",
"0.5673762",
"0.5666031",
"0.56642085",
"0.56610703",
"0.5642651",
"0.5642651",
"0.5637795",
"0.56194997",
"0.5607402",
"0.5601844",
"0.55938995",
"0.5583105",
"0.5582205",
"0.5576657",
"0.55673885",
"0.55562955",
"0.55506635",
"0.5545874",
"0.55385363",
"0.5516342",
"0.55102986",
"0.55066854",
"0.5502597",
"0.54884183",
"0.5487514",
"0.54684174",
"0.54592144",
"0.54588145",
"0.54476106",
"0.5438076",
"0.54308367",
"0.5408603",
"0.5408462",
"0.5383594",
"0.5377752",
"0.53623164",
"0.53565574",
"0.53412914",
"0.5340845",
"0.53399754",
"0.53335655",
"0.5333114",
"0.53272724",
"0.53236747",
"0.5323517",
"0.5317492",
"0.53172785",
"0.5309483",
"0.53067935",
"0.5286605",
"0.52852875",
"0.52839726",
"0.5282876",
"0.5277417",
"0.52685857",
"0.5267541",
"0.5264107",
"0.52562916",
"0.5255501",
"0.5255441",
"0.52542174",
"0.5247371",
"0.52467954",
"0.5245031",
"0.5244986",
"0.52376676",
"0.5232588",
"0.52148044",
"0.5200399",
"0.5200122",
"0.5198623",
"0.51985484"
] | 0.0 | -1 |
this method is a singleton that creates a unique (single) instance of this class | public static OOoCombinedChartController getInstance() {
return instance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static SingleObject getInstance(){\n return instance;\n }",
"public static MySingleTon getInstance(){\n if(myObj == null){\n myObj = new MySingleTon();\n }\n return myObj;\n }",
"private Singleton(){}",
"public static Uniqueid getInstance() {\n if (uniqueid == null) {\n uniqueid = new Uniqueid();\n }\n return uniqueid;\n }",
"private Singleton()\n\t\t{\n\t\t}",
"Instance createInstance();",
"public static SingleObject getInstance(){\n\t\treturn instance;\n\t}",
"private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}",
"public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }",
"private SingletonSigar(){}",
"private Singleton() {\n\t}",
"private MySingleton() {\r\n\t\tSystem.out.println(\"Only 1 object will be created\");\r\n\t}",
"private Singleton() { }",
"@Override\n public T getInstance() {\n return instance;\n }",
"private SingletonObject() {\n\n\t}",
"@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}",
"private SingletonSample() {}",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }",
"public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}",
"private Singleton(){\n }",
"private SingleTon() {\n\t}",
"private static void createSingletonObject() {\n\t\tSingleton s1 = Singleton.getInstance();\n\t\tSingleton s2 = Singleton.getInstance();\n\n\t\tprint(\"S1\", s1);\n\t\tprint(\"S2\", s2);\n\t}",
"public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ms_instance = new PSUniqueObjectGenerator();\n return ms_instance;\n }",
"public static Singleton getInstance( ) {\n return singleton;\n }",
"private SingletonTextureFactory(){\n\t\tRandom rand = new Random();\n\t\tfactoryID = rand.nextInt(10000); \n\t}",
"private SingletonEager(){\n \n }",
"private SingletonAR() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonAR\");\n }",
"public static Replica1Singleton getInstance() {\r\n\t\tif (instance==null){\r\n\t\t/*System.err.println(\"Istanza creata\");*/\r\n\t\tinstance = new Replica1Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t\r\n\t}",
"public static Main getInstance() {\r\n return instance;\r\n }",
"public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }",
"T getInstance();",
"private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}",
"public static Main getInstance() {\n return instance;\n }",
"private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }",
"Reproducible newInstance();",
"public T getInstance() {\n return instance;\n }",
"private SingleObject(){}",
"private J2_Singleton() {}",
"public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }",
"public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}",
"private SingleObject()\r\n {\r\n }",
"private LazySingleton(){}",
"public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }",
"synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }",
"public Single() {\n }",
"synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }",
"public static synchronized Singleton getInstance() {\n\t\tif(instance ==null) {\n\t\t\tinstance= new Singleton();\n\t\t\t\n\t\t}\n\t\treturn instance;\n\t}",
"private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }",
"private static void createInstance() {\n if (mApiInterface == null) {\n synchronized(APIClient.class) {\n if (mApiInterface == null) {\n mApiInterface = buildApiClient();\n }\n }\n }\n }",
"public static synchronized N_ThreadSafeSingalton getInstance() throws InterruptedException{\n\t\t\n\t\tif (uniqueInstance == null){\n\t\t\tThread.sleep(1000);// just to show multithreading issue.\n\t\t\tuniqueInstance=new N_ThreadSafeSingalton();\n\t\t}\t\t\n\t\t\n\t\treturn uniqueInstance;\n\t}",
"private Singleton() {\n if (instance != null){\n throw new RuntimeException(\"Use getInstance() to create Singleton\");\n }\n }",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static AsteroidFactory getInstance() {\r\n\t\treturn instance;\r\n\t}",
"public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\n return _instance;\n }",
"public SharedObject() {}",
"public static synchronized Singleton getInstanceTS() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"public static User getInstance(){\n if(singleton == null){\n singleton = new User();\n }\n return singleton;\n }",
"public static synchronized SingletonThreadSave getInstance(){\n if(uniqueThreadSaveInstance == null){\n uniqueThreadSaveInstance = new SingletonThreadSave();\n }\n return uniqueThreadSaveInstance;\n }",
"private SingleObject(){\n }",
"private SingleTon() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"public static synchronized TowerManager getUniqueInstance() {\n if (uniqueInstance == null) {\n uniqueInstance = new TowerManager();\n }\n return uniqueInstance;\n }",
"public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }",
"private SingletonH() {\n System.out.println(Thread.currentThread().getName()\n + \": creating SingletonH\");\n }",
"public static SingleTon createSingleTonObject() {\r\n\t\tif(ston == null) {\r\n\t\t\tston=new SingleTon();\r\n\t\t}\r\n\t\treturn ston;\r\n\t}",
"public static Casino getInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tcreateInstance();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public abstract Instance duplicate();",
"public synchronized static Incremental getInstance1() {\n\t\tif (instance == null) {\n\t\t\tinstance = new Incremental();\n\t\t}\n\t\treturn instance;\n\t}",
"private SingletonColorFactory() {\n\t\tRandom rand = new Random();\n\t\tfactoryID = rand.nextInt(10000);\n\t}",
"public Instance() {\n }",
"public static class_config getinstance(){\n\t\tif (instance==null){\n\t\t\tinstance = new class_config();\n\t\t\t\n singleton.mongo=new Mongo_DB();\n singleton.nom_bd=singleton.mongo.getNom_bd();\n singleton.nom_table=singleton.mongo.getNom_table();\n singleton.client = Mongo_DB.connect();\n if (singleton.client != null) {\n singleton.db = singleton.mongo.getDb();\n singleton.collection = singleton.mongo.getCollection();\n }\n \n\t\t\tsingleton_admin.admin= new ArrayList<admin_class>();\n\t\t\tsingleton_client.client= new ArrayList<client_class>();\n\t\t\tsingleton_reg.reg= new ArrayList<reg_user_class>();\n\t\t\t\n// A_auto_json.auto_openjson_admin();\n// C_auto_json.auto_openjson_client();\n R_auto_json.auto_openjson_reg();\n //funtions_files.auto_open();\n\t\t\tauto_config.auto_openconfig();\n //class_language.getinstance();\n\t\t\tsingleton_config.lang=new class_language();\n \n connectionDB.init_BasicDataSourceFactory();\n \n\t\t}\n\t\treturn instance;\n\t}",
"private Instantiation(){}",
"private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }",
"public static Singleton getInstance() {\t\t//getInstance nam omogucava da instanciramo klasu jedinstveno ako vec nismo!\r\n\t\tif (instance == null) {\t\t\t\t\t// inace nam vraca instancu ako je vec napravljena!\r\n\t\t\tinstance = new Singleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static Singleton instance() {\n return Holder.instance;\n }",
"public static Singleton getInstance() {\n return mSing;\n }",
"public static HierarchyFactory getSingleton ()\n {\n return HierarchyFactorySingleton._singleton;\n }",
"private SparkeyServiceSingleton(){}",
"public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }",
"public static LinkList instance() {\n\t\tif(singleton == null) \n\t\t\tsingleton = new LinkList();\n\t\t\t\t\n\t\t\n\t\treturn singleton;\n\t}",
"private InstanceUtil() {\n }",
"public static GroundItemParser getInstance() {\r\n return SINGLETON;\r\n }",
"private LoggerSingleton() {\n\n }",
"public static Singleton getInstance(){\n if(instance == null)\n {\n synchronized (Singleton.class) {\n if (instance == null) {\n instance = new Singleton();\n Log.d(\"***\", \"made new Singleton\");\n }\n }\n }\n return instance;\n }",
"public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}",
"public static MySingleton getInstance() {\r\n\t\tif(instance==null){\r\n\t\t\tinstance= new MySingleton();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"private OpenSimDB() {\n instance = this;\n }",
"public Singleton(){\n userID = 1;\n reportID = 1;\n purityReportID = 1;\n c = Calendar.getInstance();\n dateTime = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n dateTime.format(c.getTime());\n }",
"public static synchronized MainModel getInstance() {\n\n if (instance == null)\n instance = new MainModel();\n\n return instance;\n\n }",
"public static synchronized MoodsCreator getInstance(){\n return moodsCreator;\n }",
"public static Log getInstance() {\r\n if (firstInstance == null) {\r\n firstInstance = new Log();\r\n }\r\n return firstInstance;\r\n }",
"public static Empty getInstance() {\n return instance;\n }",
"public static synchronized Model getInstance() {\n if (instance == null) {\n instance = new Model();\n }\n return instance;\n }",
"Shared shared();",
"public SingleRequest<?> create() {\n return new SingleRequest<>();\n }",
"public static synchronized OwBootstrapToIdMapping getInstance()\r\n {\r\n if (instance == null)\r\n {\r\n instance = new OwBootstrapToIdMapping();\r\n }\r\n return instance;\r\n }",
"public static SerializerFactory getInstance() {\r\n return INSTANCE;\r\n }",
"public static Singleton getInstance() {\n\t\tif (_instance == null) {\n\t\t\t_instance = new Singleton();\n\t\t}\n\t\treturn _instance;\n\t}",
"private Singleton()\r\n\t{\r\n\t\tSystem.out.println(\"1st instance of class Singleton created\");\r\n\t\tstr = \"Constructor init\";\r\n\t}",
"public static SingletonEager get_instance(){\n }",
"public static InspectorManager getInstance() {\n if (instance==null) instance = new InspectorManager();\n return instance;\n}"
] | [
"0.74347955",
"0.7412178",
"0.73736405",
"0.7282143",
"0.7279669",
"0.72777706",
"0.7259854",
"0.7257833",
"0.72122484",
"0.7162431",
"0.7126441",
"0.71200126",
"0.71161056",
"0.7057867",
"0.69879663",
"0.6964696",
"0.69313353",
"0.69134974",
"0.6906668",
"0.6906165",
"0.6898782",
"0.6896567",
"0.6869856",
"0.6854957",
"0.6853132",
"0.6804181",
"0.6771988",
"0.6765874",
"0.6761861",
"0.6761688",
"0.6757687",
"0.67421037",
"0.6736554",
"0.67075723",
"0.6698461",
"0.66799074",
"0.66754794",
"0.6664247",
"0.66502845",
"0.6643997",
"0.66420406",
"0.6638908",
"0.66357654",
"0.6628679",
"0.662863",
"0.6604951",
"0.6602741",
"0.6584766",
"0.6580749",
"0.65777135",
"0.6563224",
"0.6562363",
"0.655674",
"0.65485436",
"0.6542787",
"0.65352166",
"0.6532398",
"0.6529336",
"0.6528736",
"0.650652",
"0.6503582",
"0.65025795",
"0.6493601",
"0.64805806",
"0.64781785",
"0.64739347",
"0.6472887",
"0.6472885",
"0.6472349",
"0.646151",
"0.6461266",
"0.645819",
"0.64543784",
"0.6450035",
"0.6449138",
"0.64445806",
"0.64242965",
"0.64025426",
"0.63919157",
"0.63868773",
"0.63851666",
"0.6383495",
"0.6382542",
"0.63741654",
"0.6368733",
"0.63638884",
"0.63618666",
"0.63612485",
"0.63591063",
"0.63574344",
"0.63566613",
"0.63516164",
"0.63449615",
"0.6342639",
"0.63380426",
"0.63328195",
"0.6331658",
"0.6323554",
"0.63201714",
"0.6320151",
"0.6317206"
] | 0.0 | -1 |
controller method dispatchs path execution to specific methods depending on openoffice path | public void execute(String path) {
if (path.equals("OpenOfficeCombinedChart")) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
try {
SpreadsheetInfo sheetInfo = document.getRangeSelection();
// UnoDialog dlg=new UnoDialog(m_xContext);
// dlg.showDialog();
CombinedChart chart = new CombinedChart(m_xContext, document, sheetInfo);
chart.createChart();
} catch (RangeException ex) {
Logger.getLogger(OOoCombinedChartController.class.getName()).log(Level.SEVERE, null, ex);
new MessageBox(m_xContext, "Error", ex.getMessage()).start();
return;
} catch (com.sun.star.uno.Exception ex) {
Logger.getLogger(OOoCombinedChartController.class.getName()).log(Level.SEVERE, null, ex);
new MessageBox(m_xContext, "Error", ex.getMessage()).start();
return;
}
}
});
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void dispatch(CallContext context, HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n\n CmisService service = null;\n try {\n // get the service\n service = getServiceFactory().getService(context);\n\n // analyze the path\n String[] pathFragments = HttpUtils.splitPath(request);\n\n if (pathFragments.length < 2) {\n // root -> service document\n dispatcher.dispatch(\"\", METHOD_GET, context, service, null, request, response);\n return;\n }\n\n String method = request.getMethod();\n String repositoryId = pathFragments[0];\n String resource = pathFragments[1];\n\n // dispatch\n boolean callServiceFound = dispatcher.dispatch(resource, method, context, service, repositoryId, request,\n response);\n\n // if the dispatcher couldn't find a matching service\n // -> return an error message\n if (!callServiceFound) {\n response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, \"Unknown operation\");\n }\n } finally {\n if (service != null) {\n service.close();\n }\n }\n }",
"private void callHandler(String method, HttpServletRequest request, HttpServletResponse response) throws IOException {\n JsonElement payload = getPayload(request, response);\n RequestContext context = new RequestContext(\n request, response, urlVariables, request.getParameterMap(), payload);\n PathNode apiStructure = getApiStructure(method);\n\n if (request.getPathInfo() == null) {\n logger.warn(\"Received \" + method + \" request with empty path.\");\n return;\n }\n\n PathNode.PathNodeResult result = apiStructure.getBindingForSubPath(request.getPathInfo());\n if (result != null) {\n urlVariables.putAll(result.getArgValues());\n result.getApiSpec().apiInterface.call(context);\n }\n }",
"void dispatchRequest(String urlPath) throws Exception;",
"@Override\n\tpublic HttpRespModel methodDispatch(String method, String body) {\n\t\tSituationMethod requestMethod = SituationMethod.fromString(method);\n\t\tHttpRespModel respModel = new HttpRespModel();\n\t\t\n\t\t\n\t\tswitch (requestMethod) {\n\t\tcase AddMealSituationMethod:\n\t\t{\n\t\t\t//添加吃饭记录\n\t\t\trespModel = addMealSituationHandler(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase TodayMealSituationMethod:{\n\t\t\t//获取当天吃饭记录\n\t\t\trespModel = getTodayMealSituations(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase AddSleepSituationMethod:{\n\t\t\t//添加睡觉情况记录\n\t\t\trespModel = addSleepSituation(body);\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\tcase TodaySleepSituationMethod:{\n\t\t\t//获取当天睡觉情况记录\n\t\t\trespModel = getTodaySleepSituations(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase InterestCateList:{\n\t\t\t//获取兴趣分类列表\n\t\t\tInterestUtil util = new InterestUtil();\n\t\t\trespModel = util.getAllInterestList();\n\t\t\tbreak;\n\t\t}\n\t\tcase TodayInterestSituationMethod:{\n\t\t\trespModel = getTodayInterestSituations(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase AddInterestSituationMethod:{\n\t\t\t//添加兴趣学习清理\n\t\t\trespModel = addInterestSituation(body);\n\t\t\tbreak;\n\t\t}\n\t\tcase UnkonwnMethod:\n\t\tdefault:{\n\t\t\trespModel.setCode(RespError.urlMethodError);\n\t\t\trespModel.setMessage(\"对不起, method: \" + method + \"没有找到。\");\n\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\treturn respModel;\n\t}",
"@Override\n\tpublic ActionForward doExecute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString action = request.getParameter(\"action1\");\n\t\tif (action == null) action = LIST;\n\t\tif (log.isDebugEnabled()) log.debug(\"action:\" + action);\n\t\tActionForward forward = null;\n\t\tUserDefinedQueryForm theForm = (UserDefinedQueryForm) form;\n\t\ttry {\n\t\t\tif (LIST.equalsIgnoreCase(action)) forward = listAdvanceBacth(mapping, theForm, request, response); // 打开复杂查询列表页面\n\t\t\telse if (\"LISTSIMPLE\".equalsIgnoreCase(action)) forward = listSimpleBacth(mapping, theForm, request, response); // 打开简单查询列表页面\n\t\t\telse if (\"SHOWQUERY\".equalsIgnoreCase(action)) forward = queryAdvance(mapping, theForm, request, response);\n\t\t\telse if (\"SHOWSIMPLE\".equalsIgnoreCase(action)) forward = querySimple(mapping, theForm, request, response);\n\t\t\telse if (\"VALID\".equalsIgnoreCase(action)) forward = validate(mapping, theForm, request, response);\n\t\t\telse if (\"PREVIEWSQL\".equalsIgnoreCase(action)) forward = getSQLForPreview(mapping, theForm, request, response);\n\t\t\telse if (\"VALIDSIMPLE\".equalsIgnoreCase(action)) forward = validateSimple(mapping, theForm, request, response);\n\t\t\telse if (\"ADVANCEOVERVIEW\".equalsIgnoreCase(action)) forward = queryAdvanceOverview(mapping, theForm, request, response);\n\t\t\telse if (\"SIMPLEOVERVIEW\".equalsIgnoreCase(action)) forward = querySimpleOverview(mapping, theForm, request, response);\n\t\t\telse if (\"SAVERESULT\".equalsIgnoreCase(action)) forward = saveResult(mapping, theForm, request, response);\n\t\t\telse if (\"SHOWEXPORTEXCEL\".equalsIgnoreCase(action)) forward = showExportExcel(mapping, theForm, request, response);\n\t\t\telse if (\"EXPORTEXCEL\".equalsIgnoreCase(action)) forward = exportExcel(mapping, theForm, request, response);\n\t\t\telse {\n\t\t\t\trequest.setAttribute(\"err\", new WebException(\"找不到该action方法:\" + action));\n\t\t\t\tforward = mapping.findForward(ERROR);// 找不到合适的action\n\t\t\t}\n\n\t\t\t// else if(\"SAVEPARAM\".equalsIgnoreCase(action))\n\t\t\t// forward=saveQueryParam(mapping, theForm, request, response);\n\t\t\t// //保存查询条件到个人空间\n\t\t}\n\t\tcatch (Exception e) {// 其他系统出错\n\t\t\trequest.setAttribute(\"err\", e);\n\t\t\tforward = mapping.findForward(ERROR);\n\t\t}\n\t\treturn forward;\n\t}",
"@Override\n \tpublic String execute(final HttpServletRequest request,\n \t\t\tfinal HttpServletResponse response) throws ControllerException\n \t{\n \t\tint lastSlash = request.getRequestURI().lastIndexOf(\"/\");\n \t\tString methodName = request.getRequestURI().substring(lastSlash + 1);\n \n \t\t// Find the target method\n \t\tMethod targetMethod = null;\n \n \t\tfor (Method method : this.getClass().getMethods())\n \t\t{\n \t\t\tif (method.getName().equals(methodName))\n \t\t\t{\n \t\t\t\ttargetMethod = method;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \n \t\tif (targetMethod == null)\n \t\t{\n \t\t\tthrow new ControllerException(\n \t\t\t\t\t\"Could not find a Controller method with name \"\n \t\t\t\t\t\t\t+ methodName + \" in class \"\n \t\t\t\t\t\t\t+ this.getClass().getName());\n \t\t}\n \n \t\t// Execute the target method\n \t\ttry\n \t\t{\n \t\t\terrors.clear();\n \n \t\t\ttargetMethod.invoke(this, request, response);\n \n \t\t\trequest.setAttribute(\"errors\", errors);\n \t\t}\n \t\tcatch (Exception ex)\n \t\t{\n \t\t\tif (ex.getCause() instanceof ControllerException)\n \t\t\t{\n \t\t\t\t// If it is a Controller exception, just propagate it\n \t\t\t\tthrow (ControllerException) ex.getCause();\n \t\t\t}\n \n \t\t\tthrow new ControllerException(\n \t\t\t\t\t\"Could not execute the Controller method \" + methodName\n \t\t\t\t\t\t\t+ \" from class \" + this.getClass().getName(), ex);\n \t\t}\n \n \t\t// The view name is the same than the method\n \t\treturn methodName;\n \t}",
"public static String dispatch(HttpServletRequest request, HttpServletResponse response, Map<String, String> params) \n\t{\t\t\n\t\tString[] guts = request.getRequestURI().split(\"/\");\n\t\tswitch (guts[3]) {\n\t\t\tcase \"loginE.do\": // employee home\n\t\t\t\tboolean res = EmployeeDispatcher.signIn(params.get(\"username\"), params.get(\"password\"));\n\t\t\t\tif (res) return \"SUCCESS\";\n\t\t\t\telse return \"FAILED\";\n\t\t\t\t\n\t\t\tcase \"loginM.do\": // manager home\n\t\t\t\tres = ManagerDispatcher.signIn(params.get(\"username\"), params.get(\"password\"));\n\t\t\t\tif (res) return \"SUCCESS\";\n\t\t\t\telse return \"FAILED\";\n\t\t\t\t\n\t\t\tcase \"create.do\":// create employee\n\t\t\t\tres = ManagerDispatcher.createEmp(params);\n\t\t\t\tif (res) return \"SUCCESS\";\n\t\t\t\telse return \"FAILED\";\n\t\t\t\t\n\t\t\tcase \"pending.do\":// view reimbursement pending\n\t\t\t\tif (params.get(\"eid\") != null) //TODO revise\n\t\t\t\t{ return EmployeeDispatcher.viewEmployeePending(Integer.parseInt(params.get(\"eid\"))); }\n\t\t\t\telse { return ManagerDispatcher.getAllPending(); }\n\t\t\t\t\n\t\t\tcase \"resolved.do\":// view reimbursement resolved \n\t\t\t\tif (params.get(\"eid\") != null) //TODO revise\n\t\t\t\t{ return EmployeeDispatcher.viewEmployeeResolved(Integer.parseInt(params.get(\"eid\"))); }\n\t\t\t\telse { return ManagerDispatcher.getAllResolved(); }\n\t\t\t\t\n\t\t\tcase \"profiles.do\":// view employees\n\t\t\t\treturn ManagerDispatcher.getAllEmployees();\n\t\t\t\t\n\t\t\tcase \"logout.do\": // logout\n\t\t\t\treturn \"Successfully Logged out of ERS\";\n\t\t\t\t\n\t\t\tcase \"subReq.do\": //submit request\n\t\t\t\treturn EmployeeDispatcher.createReimbursementRequest(params);\n\t\t\t\t\n\t\t\tcase \"update.do\": //update employee\n\t\t\t\treturn CommonDispatcher.updateEmployeeInformation(params);\n\t\t\t\t\n\t\t\tcase \"viewE.do\": //view employee\n\t\t\t\treturn CommonDispatcher.viewEmployeeProfile(10000);//TODO remove value\n\t\t\t\t\n\t\t\tcase \"aprv.do\": //approve request\n\t\t\t\tparams.put(\"apr\", \"true\");\n\t\t\t\tManagerDispatcher.respond(params);\n\t\t\t\treturn \"Approve Completed\";\n\t\t\t\t\n\t\t\tcase \"deny.do\": //deny request\n\t\t\t\tparams.put(\"apr\", \"false\");\n\t\t\t\tManagerDispatcher.respond(params);\n\t\t\t\treturn \"Deny Completed\";\n\t\t}//end switch\n\t\treturn \"THIS IS A MESSAGE\";//TODO replace\n\t}",
"public abstract interface PathfindController extends Controller {\n // Public Abstract Methods\n \n /**\n * Block next coordinate in path.\n */\n public abstract void blockNext();\n \n /**\n * Calculate pathfinding and the states for visited and blocked of the\n * back, front, left, right respectively.\n *\n * @return the array of states\n */\n public abstract boolean[] calculate();\n \n /**\n * Go to next coordinate in path.\n */\n public abstract void goNext();\n \n /**\n * Checks if next coordinate in path is blocked.\n *\n * @return true, if next coordinate in path is blocked\n */\n public abstract boolean isNextBlocked();\n \n /**\n * Checks if next coordinate in path is visited.\n *\n * @return true, if next coordinate in path is visited\n */\n public abstract boolean isNextVisited();\n \n /**\n * String representation of the raw graph.\n *\n * @return the string\n */\n public abstract String rawGraphToString();\n \n /**\n * Reset pathfinding.\n */\n public abstract void reset();\n \n /**\n * Rotate to the left coordinate in path.\n */\n public abstract void rotateLeft();\n \n /**\n * Rotate to the right coordinate in path.\n */\n public abstract void rotateRight();\n \n /**\n * Unblock next coordinate in path.\n */\n public abstract void unblockNext();\n \n /**\n * Visit current coordinate in path.\n */\n public abstract void visit();\n}",
"void invokeAppLogic(IMenu fromMenu, Map<String, String> formData);",
"public void process(HttpServletRequest req, HttpServletResponse resp, IDataAccessor access) throws DataAccessException {\n if(req.getParameter(\"id\") != null) {\n try {\n IOffice office = access.getOfficeByID(new BigInteger(req.getParameter(\"id\")));\n Collection<IWorker> workers = access.getAllWorkers(null);\n \tHashMap<BigInteger,String> managersname = new HashMap<BigInteger,String>();\n \tfor(IWorker worker: workers) {\n \t\tmanagersname.put(worker.getID(), worker.getLastName()); \t\n \t}\n req.getSession().setAttribute(\"o_offices\", null);\n req.getSession().setAttribute(\"o_office\", office);\n req.getSession().setAttribute(\"o_manager\", managersname);\n try {\n resp.sendRedirect(\"index.jsp?action_id=view_office\");\n } catch (IOException e) {\n log.error(\"can't redirect on the showoffices.jsp\",e);\n }\n } catch (DataAccessException e) {\n log.error(\"can't gets data from IDataAccessor\",e);\n }\n return;\n } else if(req.getParameter(\"title\") != null) {\n try {\n IOffice office = access.getOfficeByTitle(req.getParameter(\"title\"));\n req.getSession().setAttribute(\"o_offices\", null);\n req.getSession().setAttribute(\"o_office\", office);\n try {\n resp.sendRedirect(\"showoffices.jsp\");\n } catch (IOException e) {\n log.error(\"can't redirect on the showoffices.jsp\",e);\n }\n } catch (DataAccessException e) {\n log.error(\"can't gets data from IDataAccessor\",e);\n }\n return;\n } else {\n try {\n \t Collection<IOffice> offices = null;\n \tif (req.getParameter(\"sort\") != null) {\n \t\toffices = access.getAllOffices(req.getParameter(\"sort\"));\n \t} else {\n \t\toffices = access.getAllOffices(null);\n \t}\n \tCollection<IWorker> workers = access.getAllWorkers(null);\n \tHashMap<BigInteger,String> managersname = new HashMap<BigInteger,String>();\n \tfor(IWorker worker: workers) {\n \t\tmanagersname.put(worker.getID(), worker.getLastName()); \t\n \t}\n \tfor (IOffice office: offices) {\n \t\tif (office.getManagerID() != null ) {\n \t\t\t\tif (access.getWorkerByID(office.getManagerID()) == null) {\n \t\t\t\t\toffice.setManagerID(null);\n \t\t\t\t}\n \t\t\t}\n \t}\n req.getSession().setAttribute(\"o_offices\", offices);\n req.getSession().setAttribute(\"o_manager\", managersname);\n try {\n if (req.getParameter(\"select\") == null) {\n \t if(req.getParameter(\"sort\") == null) {\n \t\t resp.sendRedirect(\"index.jsp?action_id=view_office\");\n \t } else {\n \t\t resp.sendRedirect(\"index.jsp?action_id=view_office&sort=\"+req.getParameter(\"sort\"));\n \t }\n \t} else {\n \t\tif(req.getParameter(\"sort\") == null) {\n \t\t\tresp.sendRedirect(\"index.jsp?action_id=view_office&select=true\");\n \t\t} else {\n \t\t\tresp.sendRedirect(\"index.jsp?action_id=view_office&select=true&sort=\"+req.getParameter(\"sort\"));\n \t\t}\n \t}\n } catch (IOException e) {\n log.error(\"can't redirect on the showoffices.jsp\",e);\n }\n } catch (DataAccessException e) {\n log.error(\"can't gets data from IDataAccessor\",e);\n } return;\n }\n }",
"public abstract boolean processRouteDocument(Document document);",
"private void startProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{\n \tSystem.out.println(\"Board startProcess 시작\");\r\n \tString RequestURI=request.getRequestURI();\r\n \tString ContextPath=request.getContextPath();\r\n \tString command=RequestURI.substring(ContextPath.length());\r\n \tActionForward forward=null;\r\n \tAction action=null;\r\n \tSystem.out.println(RequestURI +\" : command : \"+command);\r\n \t\r\n \t//공지 게시판 초기화면\r\n \tif(command.equals(\"/MainBoardAction.bo\")){\r\n \t\taction=new MainBoardAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 검색 리스트\r\n \telse if(command.equals(\"/MainBoardSearch.bo\")){\r\n \t\taction=new MainBoardSearchAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 작성 뷰\r\n \telse if(command.equals(\"/MainBoardWrite.bo\")){\r\n \t\tforward=new ActionForward();\r\n \t\tforward.setRedirect(false);\r\n \t\tforward.setPath(\"./mainboard/boardwriteview.jsp\");\r\n \t}\r\n \t//공지 게시판 글 작성 실행시\r\n \telse if(command.equals(\"/MainBoardWriteAction.bo\")){\r\n \t\taction=new MainBoardWriteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 뷰\r\n \telse if(command.equals(\"/MainBoardDetailAction.bo\")){\r\n \t\taction= new MainBoardDetailAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 수정용 내용 보기\r\n \telse if(command.equals(\"/MainBoardModifyView.bo\")){\r\n \t\taction=new MainBoardModifyView();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 내용 수정\r\n \telse if(command.equals(\"/MainBoardModifyAction.bo\")){\r\n \t\taction=new MainBoardModifyAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//공지 게시판 글 삭제\r\n \telse if(command.equals(\"/MainBoardDeleteAction.bo\")){\r\n \t\taction=new MainBoardDeleteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t//댓글 가져오기\r\n \telse if(command.equals(\"/ReplyView.bo\")){\r\n \t\taction=new ReplyView();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//댓글 작성\r\n \telse if(command.equals(\"/ReplyWriteAction.bo\")){\r\n \t\taction=new ReplyWriteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//댓글 삭제\r\n \telse if(command.equals(\"/ReplyDeleteAction.bo\")){\r\n \t\taction=new ReplyDeleteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t//댓글 수정\r\n \telse if(command.equals(\"/ReplyChangeAction.bo\")){\r\n \t\taction=new MainBoardDeleteAction();\r\n \t\ttry{\r\n \t\t\tforward=action.execute(request, response);\r\n \t\t}catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n \t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t\r\n \t//---------처리--------\r\n \tif(forward!=null){\r\n \t\tSystem.out.println(\"forward값 : \"+forward);\r\n \t\tif(forward.isRedirect()){\r\n \t\t\t//내용을 넘겨줄때\r\n \t\t\tresponse.sendRedirect(forward.getPath());\r\n \t\t}else{\r\n \t\t\t//내용을 넘겨주지 않고 초기화 시킬때\r\n \t\t\tRequestDispatcher dispatcher=request.getRequestDispatcher(forward.getPath());\r\n \t\t\tdispatcher.forward(request, response);\r\n \t\t}\r\n \t}\r\n \t\r\n\t}",
"@Override\n\t\t\tpublic void handle(Request req, Response res) throws Exception {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String username = req.queryParams(\"user\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t\n\t\t\t\t//--- framework access ---//\n\t\t\t\tif (!Results.hasFrameworkAccess(op, path)) halt(404);\n\t\t\t\t//--- path exists? ---//\n\t\t\t\tif (!Directories.isExist(path)) halt(404);\n\t\t\t\t//--- section and path access ---//\n\t\t\t\tif (!AccessManager.hasAccess(username, path)) halt(401);\n\n\t\t\t}",
"protected abstract String invoke(HttpServletRequest request) throws DriverException, WorkflowException;",
"@RequestMapping(\"/home\")\n\tpublic String home() throws FileNotFoundException, IOException {\n\t\tlog.info(\"accessed info\");\n\t\tlog.warn(\"accessed warn\");\n\t\tlog.error(\"accessed error\");\n\t\tlog.debug(\"accessed debug\");\n\t\tlog.trace(\"accessed trace\");\n\t\treturn \"home\";\n\n\t}",
"public interface Route {\n boolean match(AreaPath path);\n\n Map<String, Object> getParameterValues();\n\n /**\n * target action path\n */\n ActionPath getActionPath();\n\n /**\n * target action processor\n */\n String getProcessor();\n\n /**\n * target action task\n */\n String getTask();\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n String str = request.getPathInfo();\r\n String vec[] = str.split(\"/\");\r\n String controller = vec[1];\r\n String action = vec[2];\r\n\r\n //composing the controller class name\r\n String controllerClassName = controller.substring(0,1).toUpperCase()+ controller.substring(1)+\"Controller\";\r\n try {\r\n Class clazz = Class.forName(pkg+\".\"+controllerClassName);\r\n Object object = clazz.newInstance();\r\n Method method = clazz.getMethod(action,HttpServletRequest.class,HttpServletResponse.class);\r\n method.invoke(object,request,response);\r\n LOGGER.info(\"GET:controller-\"+str);\r\n getServletContext().getRequestDispatcher(\"/\"+action+\".jsp\").forward(request,response);\r\n\r\n\r\n }catch (ClassNotFoundException| InstantiationException |IllegalAccessException| NoSuchMethodException| InvocationTargetException e){\r\n e.getMessage();\r\n }\r\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String contextPath = req.getContextPath();\n// String path = uri.replaceAll(contextPath, \"\");\n Method method = urlMethodMap.get(contextPath);\n if (method != null) {\n String packageName = methodPackageMap.get(method);\n String controllerName = nameMap.get(packageName);\n UserController userController = (UserController) instanceMap.get(controllerName);\n try {\n method.setAccessible(true);\n method.invoke(userController);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n }\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tfinal String URI = request.getRequestURI().replace(\"/HelloFrontController/\", \"\"); // this is the name of the root project folder\n\t\t\n\t\tswitch(URI) {\n\t\tcase \"login\":\n\t\t\t// call a method from a request helper......\t\n\t\t\tRequestHelper.processLogin(request, response);\n\t\t\tbreak;\n\t\tcase \"employees\":\n\t\t\t// call method show all employees -- this means we'll be querying our DB...\n\t\t\tRequestHelper.processEmployees(request, response);\n\t\t\tbreak;\n\t\tcase \"error\":\n\t\t\tRequestHelper.processError(request, response);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tRequestHelper.processError(request, response);\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"protected void service(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tString actionType=req.getParameter(\"actionType\");\n\t\tif(actionType.equals(\"query\"))\n\t\t{\n\t\t\tquery(req,resp);\n\t\t}\n\t\tif(actionType.equals(\"kanweizhang\"))\n\t\t{\n\t\t\tkanweizhang(req,resp);\n\t\t}\n\t\tif(actionType.equals(\"tuiweizhang\"))\n\t\t{\n\t\t\ttuiweizhang(req,resp);\n\t\t}\n\t\t\n\t\tif(actionType.equals(\"querywenlei\"))\n\t\t{\n\t\t\tquerywenlei(req,resp);\n\t\t}\n\t}",
"protected void doSystemMethod(HttpServletRequest request, HttpServletResponse response, String action) throws ServletException, IOException {\n String _action = request.getParameter(\"$action\");\n // if we didn't get an action via parameter lets use the default for the GET/POST/PUT/DELETE operation\n if (_action == null || _action.length() == 0)\n _action = action;\n // now if the default action was delete only allow deletions (delete only allows delete)\n if (action.equalsIgnoreCase(\"delete\"))\n _action = action;\n // if we have a default action of update then we don't want to query or delete (put only allows insert & update)\n if (action.equalsIgnoreCase(\"update\") && (_action.equalsIgnoreCase(\"delete\") || _action.equalsIgnoreCase(\"query\")))\n _action = \"update\";\n // just incase someone passes something stupid lets reset it to query\n if (!(_action.equalsIgnoreCase(\"query\") || _action.equalsIgnoreCase(\"insert\") || _action.equalsIgnoreCase(\"update\") || _action.equalsIgnoreCase(\"delete\")))\n _action = \"query\";\n\n // now get our path and configuration needed for sql calls\n String dsPath = (String) request.getAttribute(\"_DS_PATH\");\n log.debug(\"attribute dsPath: \" + dsPath);\n if (dsPath == null || dsPath.length() == 0) {\n response.sendError(404);\n return;\n }\n\n // we have a good action and path so lets load the sql based on path and then call the appropriate sql action\n if (dsPath.equalsIgnoreCase(\"/_system/connections\")) {\n Configuration configuration = ConfigurationHandler.getConfiguration(\"/connections\");\n if (configuration == null) {\n response.sendError(404, \"Configuration error: /connections configuration was not found!\");\n return;\n }\n if (action.equalsIgnoreCase(\"query\"))\n response.getOutputStream().println(ConnectionHandler.toJSON());\n else {\n // attempt to execute the connection requested action\n try {response.getOutputStream().println(configuration.execute(request, _action));}\n catch (Throwable ex)\n {\n ex.printStackTrace();\n response.sendError(500, ex.toString());\n }\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/connections/test\")) {\n // attempt to get the parameters (assume always GET)\n try {\n String name = request.getParameter(\"name\");\n String type = request.getParameter(\"type\");\n if (name == null || name.length() == 0 || type == null || type.length() == 0)\n throw new RuntimeException(\"name or type parameter was not passed! connection is invalid!\");\n ConnectionHandler.test(name, type, request.getParameter(\"jndi-context\"),\n request.getParameter(\"jndi-name\"), request.getParameter(\"driver\"), request.getParameter(\"url\"),\n request.getParameter(\"login\"), request.getParameter(\"password\"));\n response.setContentType(\"application/json\");\n String sresult = \"{\\\"status\\\": \\\"Connection Successful\\\"}\";\n response.getOutputStream().write(sresult.getBytes(\"UTF-8\"));\n response.flushBuffer();\n }\n catch (Exception ex) {response.sendError(500, ex.toString());}\n response.flushBuffer();\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/connections/refresh\")) {\n try {ConnectionHandler.destroy(); ConnectionHandler.init();}\n catch (Exception ex) {log.fatal(\"Exception trying to refresh connection list: \" + ex);}\n response.getOutputStream().print(\"refreshed\");\n response.flushBuffer();\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/connections/download\")) {\n try {\n String nameFilter = request.getParameter(\"nameFilter\");\n response.setContentType(\"application/xml\");\n StringBuffer extension = new StringBuffer();\n String xml = ConnectionHandler.toXML(nameFilter);\n // we tack on the filter part to the end of the filename to later identify the download better\n if (nameFilter == null || nameFilter.equalsIgnoreCase(\"*\") || nameFilter.equalsIgnoreCase(\"all\"))\n nameFilter = \"\";\n // name filter just replace the spaces and special chars with underscores\n if (nameFilter.length() > 0) {\n nameFilter = nameFilter.replaceAll(\" \", \"_\").toLowerCase();\n nameFilter = nameFilter.replaceAll(\"[^a-zA-Z0-9.-]\", \"_\");\n // few other tricks:\n // cant start or end with a dot; while valid in unix we don't want our export files to ever be hidden\n if (nameFilter.startsWith(\".\"))\n nameFilter = nameFilter.substring(1);\n if (nameFilter.endsWith(\".\"))\n nameFilter = nameFilter.substring(0, nameFilter.length() - 2);\n extension.append(\"-\").append(nameFilter.toLowerCase());\n }\n // Last: cant be more than 240 characters - the static text for the filename\n int staticLength = \"connections\".length() + \".xml\".length();\n if (extension.length() > (240 - staticLength))\n extension.setLength((240 - staticLength));\n\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"connections\" + extension.toString() + \".xml\\\"\");\n response.setContentLength(xml.length());\n response.getOutputStream().print(xml);\n response.flushBuffer();\n }\n catch (Exception ex) {\n ex.printStackTrace();\n response.sendError(500, \"Exception downloading connections: \" + ex);\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/connections/upload\")) {\n try {\n// InputSource is = new InputSource(new StringReader(xml));\n// is.setEncoding(\"UTF-8\");\n// DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n// DocumentBuilder db = dbf.newDocumentBuilder();\n// Document doc = db.parse(is);\n// NodeList connections = doc.getElementsByTagName(\"connection\");\n// String name;\n// for (int conct=0; conct < connections.getLength(); conct++) {\n// name = getNode(\"name\");\n// System.out.println(\"name: \" + name);\n// }\n\n // read in and parse the body content\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n XMLConnectionUploader2 handler = new XMLConnectionUploader2();\n String xml = request.getParameter(\"file\");\n //log.info(\"using string: \" + xml);\n InputSource is = new InputSource(new StringReader(xml));\n is.setEncoding(\"UTF-8\");\n saxParser.parse(is, handler);\n response.getOutputStream().print(handler.getStatus());\n response.flushBuffer();\n }\n catch (SAXParseException err) {\n err.printStackTrace();\n response.sendError(500, \"Exception parsing connections upload file: \" + err);\n }\n catch (Throwable t) {\n t.printStackTrace();\n response.sendError(500, \"Exception uploading connections: \" + t);\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/configurations\")) {\n Configuration configuration = ConfigurationHandler.getConfiguration(\"/configurations\");\n if (configuration == null) {\n response.sendError(404, \"Configuration error: /configurations configuration was not found!\");\n return;\n }\n try {response.getOutputStream().println(configuration.execute(request, _action));}\n catch (Throwable ex)\n {\n ex.printStackTrace();\n response.sendError(500, ex.toString());\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/configurations/refresh\")) {\n try {ConfigurationHandler.init();}\n catch (Exception ex) {log.fatal(\"Exception trying to refresh configuration list: \" + ex);}\n response.getOutputStream().print(\"refreshed\");\n response.flushBuffer();\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/configurations/download\")) {\n try {\n String pathFilter = request.getParameter(\"pathFilter\");\n String tagFilter = request.getParameter(\"tagFilter\");\n response.setContentType(\"application/xml\");\n StringBuffer extension = new StringBuffer();\n String xml = ConfigurationHandler.toXML(pathFilter, tagFilter);\n // we tack on the filter part to the end of the filename to later identify the download better\n if (pathFilter == null || pathFilter.equalsIgnoreCase(\"*\") || pathFilter.equalsIgnoreCase(\"all\"))\n pathFilter = \"\";\n if (pathFilter.length() > 0) {\n // path filter just replace the spaces and special chars with underscores\n pathFilter = pathFilter.replaceAll(\" \", \"_\").toLowerCase();\n pathFilter = pathFilter.replaceAll(\"[^a-zA-Z0-9.-]\", \"_\");\n // few other tricks:\n // cant start or end with a dot; while valid in unix we don't want our export files to ever be hidden\n if (pathFilter.startsWith(\".\"))\n pathFilter = pathFilter.substring(1);\n if (pathFilter.endsWith(\".\"))\n pathFilter = pathFilter.substring(0, pathFilter.length() - 2);\n extension.append(\"-\").append(pathFilter.toLowerCase());\n }\n // tag filter is a bit more complicated as we have to only use directory approved characters\n // we need to obfuscate && and || so they work. we will use underscores for spaces and\n // words for the && and || or.\n if (tagFilter == null)\n tagFilter = \"\";\n if (tagFilter.length() > 0) {\n tagFilter = tagFilter.replaceAll(\" \", \"_\").toLowerCase();\n tagFilter = tagFilter.replaceAll(\"&&\", \"and\");\n tagFilter = tagFilter.replaceAll(\"\\\\|\\\\|\", \"or\");\n tagFilter = tagFilter.replaceAll(\":\", \"#\");\n tagFilter = tagFilter.replaceAll(\"[^a-zA-Z0-9.-\\\\\\\\!#]\", \"_\");\n // few other tricks:\n // cant start or end with a dot; while valid in unix we don't want our export files to ever be hidden\n if (tagFilter.startsWith(\".\"))\n tagFilter = tagFilter.substring(1);\n if (tagFilter.endsWith(\".\"))\n tagFilter = tagFilter.substring(0, tagFilter.length() - 2);\n extension.append(\"-\").append(tagFilter);\n }\n // Last: cant be more than 240 characters - the static text for the filename\n int staticLength = \"configurations\".length() + \".xml\".length();\n if (extension.length() > (240 - staticLength))\n extension.setLength(240 - staticLength);\n\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"configurations\" + extension.toString() + \".xml\\\"\");\n response.setContentLength(xml.length());\n response.getOutputStream().print(xml);\n response.flushBuffer();\n }\n catch (Exception ex) {\n ex.printStackTrace();\n response.sendError(500, \"Exception downloading configurations: \" + ex);\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/configurations/upload\")) {\n try {\n // read in and parse the body content\n SAXParserFactory factory = SAXParserFactory.newInstance();\n \tSAXParser saxParser = factory.newSAXParser();\n \tXMLConfigurationUploader handler = new XMLConfigurationUploader();\n String xml = request.getParameter(\"file\");\n// log.debug(\"using string: \" + xml);\n InputSource is = new InputSource(new StringReader(xml));\n is.setEncoding(\"UTF-8\");\n saxParser.parse(is, handler);\n response.getOutputStream().print(handler.getStatus());\n response.flushBuffer();\n }\n catch (SAXParseException err) {\n err.printStackTrace();\n response.sendError(500, \"Exception parsing configurations: \" + err);\n }\n catch (Throwable t) {\n t.printStackTrace ();\n response.sendError(500, \"Exception uploading configurations: \" + t);\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/sql/execute\")) {\n try {\n // look for $sql to attempt to execute\n String con = request.getParameter(\"$con\");\n String sql = request.getParameter(\"$sql\");\n log.debug(\"found [\" + con + \"] connection request...\");\n log.debug(\"found [\" + sql + \"] execute request...\");\n if (con == null || sql == null || con.length() == 0 || sql.length() == 0)\n throw new Exception(\"Reqeusted sql execution but didn't provide required parameters.\");\n Connection connection = null;\n Statement stmt = null;\n try {\n connection = ConnectionHandler.getConnection(con);\n if (connection == null)\n throw new SQLException(\"Connection [\" + con + \"] was not found or set up!\");\n stmt = connection.createStatement();\n stmt.execute(sql);\n }\n finally {\n if (stmt != null)\n stmt.close();\n if (connection != null)\n connection.close();\n }\n\n response.getOutputStream().print(\"Statment Executed Successfully\");\n response.flushBuffer();\n }\n catch (Throwable t) {\n t.printStackTrace ();\n response.sendError(500, t.toString());\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/log/level/set\")) {\n // attempt to set the global log level runtime for the server\n String requestLevel = request.getParameter(\"log_level\");\n if (requestLevel != null && (requestLevel.equalsIgnoreCase(\"debug\") || requestLevel.equalsIgnoreCase(\"info\") || requestLevel.equalsIgnoreCase(\"warn\"))) {\n Logger rootLogger = Logger.getRootLogger();\n if (requestLevel.equalsIgnoreCase(\"debug\"))\n rootLogger.setLevel(Level.DEBUG);\n else if(requestLevel.equalsIgnoreCase(\"info\"))\n rootLogger.setLevel(Level.INFO);\n else if(requestLevel.equalsIgnoreCase(\"warn\"))\n rootLogger.setLevel(Level.WARN);\n response.getOutputStream().print(\"log level: \" + rootLogger.getLevel());\n }\n else\n response.sendError(404, \"Missing log_level parameter; must be one of ['debug', 'info', 'warn']\");\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/boom\")) {\n response.sendError(500, \"Test Exception \");\n }\n else\n response.sendError(404);\n }",
"void invokeAppLogic(IMenu fromMenu);",
"@RequestMapping(value = \"/home\", method = RequestMethod.GET)\n\tpublic String openhomePage() {\n/*\t\tlogger.debug(\"Inside Instruction page\");\n*/\t\treturn \"home\";\n\t}",
"@RequestMapping(\"/test2.do\")\n\tpublic void test2() {}",
"@Timed\n @RequestMapping(\n method = RequestMethod.GET,\n value = \"/views/**\"\n )\n public String handleViewsSubpaths(\n @Nonnull Model model\n ) {\n LOGGER.debug(\n \"handleViewsSubpaths called: {}\",\n HandlerMapping.PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE\n );\n return handleSinglePageApp(model);\n }",
"public interface WorkflowPathHandler {\n\n /**\n * Validate tracking record.\n *\n * @param trackingRecord the tracking record\n * @return the validation result\n * @throws Exception the exception\n */\n public ValidationResult validateTrackingRecord(TrackingRecord trackingRecord) throws Exception;\n \n /**\n * Validate tracking record for action and user.\n *\n * @param trackingRecord the tracking record\n * @param action the action\n * @param mapUser the map user\n * @return the validation result\n * @throws Exception the exception\n */\n public ValidationResult validateTrackingRecordForActionAndUser(\n TrackingRecord trackingRecord, WorkflowAction action, MapUser mapUser)\n throws Exception;\n\n}",
"@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString uri = req.getRequestURI();\r\n\t\tString action = uri.substring(uri.lastIndexOf('/') + 1);\r\n\t\tsession = req.getSession();\r\n\t\tpath = req.getContextPath();\r\n\t\tpw = resp.getWriter();\r\n\t\tSystem.out.println(uri);\r\n\t\tswitch (action) {\r\n\t\tcase \"check\":\r\n\t\t\ttry {\r\n\t\t\t\tthis.checkAction(req,resp);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"index\":\r\n\t\t\tthis.checkSessionAction(req,resp);\r\n\t\t\tbreak;\r\n\t\tcase \"logout\":\r\n\t\t\tthis.logoutAction(req,resp);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t\treturn;\r\n\t}",
"public static Object dispatch(Object object){\n RPCCommonReqDTO rpcCommonReqDTO = (RPCCommonReqDTO)object;\n String methodName = rpcCommonReqDTO.getMethodName();\n String classPath = rpcCommonReqDTO.getClassPath();\n Object[] args = rpcCommonReqDTO.getArgs();\n Class[] types = null;\n Object resObject = null;\n if(args != null && args.length > 0) {\n types = new Class[args.length];\n for (int i = 0; i < types.length; i++) {\n types[i] = args[i].getClass();\n }\n }\n //\n try {\n Class<?> aClass = Class.forName(classPath);\n Method method = aClass.getDeclaredMethod(methodName, types);\n resObject = method.invoke(aClass.newInstance(), args);\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n return resObject;\n }",
"@Override\n protected ModelAndView handleRequestInternal(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\t\t\n\t\tString result = \"indexAdmin\";\n\t\ttry {\n\t\t\tif(action.doWork(request))\n\t\t\t\tresult = \"viewFonti\";\n\t\t}catch(Exception e){e.printStackTrace();}\n\t\t\n\t\t/*Aggiungo la lista delle fonti alla pagina*/\n\t\tList<Fonte> listaFonti = (List<Fonte>)request.getAttribute(\"listaFonti\");\n\t\tList<Statistics> listaStatistiche = (List<Statistics>) request.getAttribute(\"listaStatistiche\");\n\t\tModelAndView m = new ModelAndView(result);\n\t\tm.addObject(\"listaFonti\", listaFonti);\n\t\tm.addObject(\"listaStatistiche\", listaStatistiche);\n\t\treturn m;\n\t}",
"protected abstract boolean invokable(FileObjectView f);",
"public ActionForward execute(ActionMapping mapping, ActionForm form,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows Exception {\r\n\t\tif (isCancelled(request)) {\r\n\t\t\tActionForward af = cancelled(mapping, form, request, response);\r\n\r\n\t\t\tif (af != null) {\r\n\t\t\t\treturn af;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tMessageResources resources = getResources(request);\r\n\r\n\t\t// Identify the localized message for the cancel button\r\n\t\tString edit = resources.getMessage(Locale.ENGLISH, \"button.edit\")\r\n\t\t\t\t.toLowerCase();\r\n\t\tString save = resources.getMessage(Locale.ENGLISH, \"button.save\")\r\n\t\t\t\t.toLowerCase();\r\n\t\tString search = resources.getMessage(Locale.ENGLISH, \"button.search\")\r\n\t\t\t\t.toLowerCase();\r\n\t\tString view = resources.getMessage(Locale.ENGLISH, \"button.view\")\r\n\t\t\t\t.toLowerCase();\r\n\t\tString[] rules = { edit, save, search, view };\r\n\r\n\t\t// Identify the request parameter containing the method name\r\n\t\t// 得到字符串method,制定变量method中存放的是方法名称\r\n\t\tString parameter = mapping.getParameter();\r\n\r\n\t\t// don't set keyName unless it's defined on the action-mapping\r\n\t\t// no keyName -> unspecified will be called\r\n\t\tString keyName = null;\r\n\r\n\t\tif (parameter != null) {\r\n\t\t\t// 从变量method中取出方法名\r\n\t\t\tkeyName = request.getParameter(parameter);\r\n\t\t}\r\n\r\n\t\tif ((keyName == null) || (keyName.length() == 0)) {\r\n\t\t\tfor (int i = 0; i < rules.length; i++) {\r\n\t\t\t\t// apply the rules for automatically appending the method name\r\n\t\t\t\t// 根据请求路径中的信息,来选择处理方法。\r\n\t\t\t\tif (request.getServletPath().indexOf(rules[i]) > -1) {\r\n\t\t\t\t\treturn dispatchMethod(mapping, form, request, response,\r\n\t\t\t\t\t\t\trules[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn this.unspecified(mapping, form, request, response);\r\n\t\t}\r\n\r\n\t\t// Identify the string to lookup\r\n\t\tString methodName = getMethodName(mapping, form, request, response,\r\n\t\t\t\tparameter);\r\n\r\n\t\treturn dispatchMethod(mapping, form, request, response, methodName);\r\n\t}",
"@RequestMapping(\"/editRepPage\")\r\n\tpublic String callEditRep(){\r\n\t\treturn \"editRepPage\";\r\n\t}",
"public abstract void dispatch(ExchangeContext context);",
"@GetMapping ( \"/patient/officeVisit/viewOfficeVisits\" )\r\n @PreAuthorize ( \"hasRole('ROLE_PATIENT')\" )\r\n public String viewOfficeVisits ( final Model model ) {\r\n return \"/patient/officeVisit/viewOfficeVisits\";\r\n }",
"private String performTheAction(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tString servletPath = request.getServletPath();\r\n\t\tString action = getActionName(servletPath);\r\n\t\t// Let the logged in user run his chosen action\r\n\t\treturn Action.perform(action, request);\r\n\t}",
"@Override\n\t\t\tprotected void invokeApplication() {\n\t\t\t\tinvokeMethod(\"#{testAction.testActionMethod}\");\n\t\t\t}",
"@Override\n\t/*\n\t * (non-Javadoc)\n\t * @see AbCommand#dispatch(java.lang.String)\n\t */\n\t// @param request\n\tpublic void dispatch(String request) throws Exception {\n\t\t{\n\t\t\t \n\t\t\t if(request.equalsIgnoreCase(\"Admin\"))\n\t\t\t {\n\t\t\t\t admin.showView();\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t System.out.println(\"Enter only specified options\");\n\t\t\t }\n\t\t }\n\t}",
"@Override\n protected Response handleRequest(Request request) throws IOException {\n String path = request.getParameter(PATH);\n Resource res = request.getResource();\n String type = res.getValueMap().get(TYPE, String.class);\n Response answer;\n if(COMPONENTS.equals(type)) {\n answer = findComponents(request);\n } else if(TEMPLATES.equals(type)) {\n answer = findTemplates(request);\n } else if(OBJECTS.equals(type)) {\n answer = findObjects(request);\n } else {\n answer = new ErrorResponse().setHttpErrorCode(SC_BAD_REQUEST).setErrorMessage(UNKNOWN_TYPE + type);\n }\n return answer;\n }",
"@FXML\n public void getDirections(ActionEvent event) throws IOException {\n\n if (selectedBtnStart == null) {\n errorLabel.setText(\"Please Choose Start\");\n } else if (selectedBtnDest == null) {\n errorLabel.setText(\"Please Choose Destination\");\n } else if (selectedBtnStart.equals(selectedBtnDest)) {\n errorLabel.setText(\"Please Choose Different Locations\");\n } else {\n //create path finding object\n PathFinding pf = PathFindingFactory.makePathFinding((ArrayList<Node>) nodes,\n selectedBtnStart, selectedBtnDest);\n pf.pathFind();\n PathFindController.setPath(pf.getPath());\n\n\n if (pf.getPath().size() < 2) {\n errorLabel.setText(\"Invalid Path\");\n } else {\n KioskApplication.getHistory().push(() -> {\n KioskApplication.getMainScreenController().changeToDirections(\n pf.getStart(), pf.getDest());\n Platform.runLater(() -> {\n try {\n ((PathFindStartController) KioskApplication.getController())\n .getDirections(null);\n } catch (IOException ex) {\n //wont\n }\n });\n });\n KioskApplication.getMapController().drawPath(PathFindController.getPath());\n\n AnchorPane pathFindText = FXMLLoader.load(getClass()\n .getResource(\"/layout/UI_SoftEng_PathFindText.fxml\"));\n\n KioskApplication.switchPanel(mainAnchorPane, pathFindText);\n }\n }\n }",
"@RequestMapping \npublic String ForwardToCompanyMainPage (Model model)\n{\n\treturn \"company\";\t\n}",
"@Override\n\tpublic boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)\n\t\t\tthrows Exception {\n\n\t\tList<String> driver_urls = new ArrayList<String>();\n\t\tList<String> officer_urls = new ArrayList<String>();\n\n\t\t// TODO add url for driver can access\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*$\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/validate\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/manual_validate\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/manual_extend\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/not_extend\");\n\t\tdriver_urls.add(\"/api/notice/uuid/[^\\\\/]*/archive\");\n\t\tdriver_urls.add(\"/api/payment/uuid/[^\\\\/]*$\");\n\t\tdriver_urls.add(\"/api/payment/\\\\d+/paid$\");\n\n\t\tofficer_urls = driver_urls;\n\t\t// TODO add url for officer can access\n\t\tofficer_urls.add(\"/api/notice/initiate\");\n\t\tofficer_urls.add(\"/api/license/\\\\d+\");\n\t\tofficer_urls.add(\"/api/payment\");\n\t\tofficer_urls.add(\"/api/payment/[^\\\\/]*$\");\n\t\tofficer_urls.add(\"/api/notice\");\n\t\tofficer_urls.add(\"/api/notice/[^\\\\/]*$\");\n\t\tofficer_urls.add(\"/api/notice/status/manual_validate\");\n\t\tofficer_urls.add(\"/api/notice/status/manual_extend\");\n\t\tofficer_urls.add(\"/api/notice/uuid/[^\\\\/]*/officer/\\\\d+$\");\n\t\tofficer_urls.add(\"/api/notice/officer/\\\\d+/claimed\");\n\t\tofficer_urls.add(\"/api/notice/uuid/[^\\\\/]*/officer/\\\\d+/approve/amount/\\\\d+$\");\n\t\tofficer_urls.add(\"/api/notice/uuid/[^\\\\/]*/officer/\\\\d+/reject$\");\n\n\t\tofficer_urls.add(\"/api/license/Renewable\");\n\n\t\tString authorization_token = null;\n\t\tauthorization_token = request.getHeader(\"Authorization\");\n\t\tSystem.out.println(\"authorization_token: \" + authorization_token);\n\t\tString requestPath = request.getRequestURI();\n\t\tSystem.out.println(\"requestPath: \" + requestPath);\n\n\t\tSystem.out.println(request.getRequestURL());\n\n\t\tif (authorization_token == null) {\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"authorization required\");\n\t\t\treturn false;\n\n\t\t} else if (authorization_token.equals(Constant.DRIVER_AUTHORIZATION_TOKEN)) {\n\n\t\t\tfor (String driver_url : driver_urls) {\n\t\t\t\tif (requestPath.matches(driver_url)) {\n\t\t\t\t\tSystem.out.println(driver_url);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"failure of authorization of driver\");\n\t\t\treturn false;\n\n\t\t} else if (authorization_token.equals(Constant.OFFICER_AUTHORIZATION_TOKEN)) {\n\n\t\t\tfor (String officer_url : officer_urls) {\n\t\t\t\tif (requestPath.matches(officer_url)) {\n\t\t\t\t\tSystem.out.println(officer_url);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"failure of authorization of officer\");\n\t\t\treturn false;\n\n\t\t} else {\n\t\t\tresponse.setStatus(401);\n\t\t\tresponse.getWriter().append(\"authorization required\");\n\t\t\treturn false;\n\t\t}\n\n\t}",
"public interface ICommonAction {\n\n void obtainData(Object data, String methodIndex, int status,Map<String, String> parameterMap);\n\n\n}",
"Object executeMethodCall(ActionType actionType, String actionName, Map<String, Object> inParams) throws APIException;",
"protected ActionForward suite(ActionMapping mapping,ActionForm form , HttpServletRequest request, HttpServletResponse response, ActionErrors errors,Hashtable hParamProc ) throws ServletException{\r\n \tString signatureMethode =\r\n\t\t\t\"CompocfAction-suite(paramProc, mapping, form , request, response, errors )\";\r\n\r\n\t\tlogBipUser.entry(signatureMethode);\r\n \t//((CentrefraisForm)form).setLibcfrais(libCentreFrais);\r\n logBipUser.exit(signatureMethode);\r\n return mapping.findForward(\"initial\") ;\r\n\t}",
"@Override\n protected String getViewBasePath() {\n //region your codes 2\n return \"/operation/activityHall\";\n //endregion your codes 2\n }",
"public void dispatch();",
"public ActionForward exec(ActionMapping mapping, ActionForm form,\n HttpServletRequest request, HttpServletResponse response)\n throws Exception {\n \n \n String mode = request.getParameter(\"mode\");\n String action = request.getParameter(\"action\");\n RequestContext.setPageContext(request);\n\n InstaReportBean reportBean = (InstaReportBean) form;\n if (reportBean==null) {\n reportBean = new InstaReportBean();\n }\n ReportDTO newReportDto = new ReportDTO();\n if ((\"controller\").equalsIgnoreCase(mode)\n && (\"input\").equalsIgnoreCase(action)) {\n \n try {\n //reportBean.resetBean();\n reportBean.resetAll();\n reportBean.setListOfTranType(null);\n reportBean.subTypeMap.clear();\n reportBean.setListOfTranType(reportBean.getListOfTranType());\n reportBean.setTranTypeList(reportBean.getTransactionListForExcel());\n reportBean.setSubTypeMap(reportBean.getMsgSubTypeMapForExcel());\n reportBean.setNewReportDto(newReportDto);\n String appDate = InstaReportUtil.reportDisplayDateFormat(getBusinessDate());\n reportBean.getNewReportDto().setValueDate(appDate);\n return mapping.findForward(\"controllerInput\");\n \n } catch (Exception e) {\n \n logger.error(e.getMessage());\n reportBean.setMessage(e.getMessage());\n reportBean.setMessageType(InstaULC.MSG_TYPE_INFO);\n return mapping.findForward(\"controllerFailure\");\n }\n } else if ((\"controller\").equalsIgnoreCase(mode)\n && (\"submit\").equalsIgnoreCase(action)) {\n try {\n reportBean.generateExcelSheetReport(request);\n String appDate = InstaReportUtil.reportDisplayDateFormat(getBusinessDate());\n reportBean.getNewReportDto().setValueDate(appDate); \n \n return mapping.findForward(\"excelSubmit\");\n } catch (Exception e) {\n logger.error(e.getMessage());\n reportBean.setMessage(e.getMessage());\n reportBean.setMessageType(InstaULC.MSG_TYPE_INFO);\n return mapping.findForward(\"controllerFailure\");\n }\n } else if ((\"controller\").equalsIgnoreCase(mode)\n && (\"reset\").equalsIgnoreCase(action)) {\n try {\n reportBean.resetAll();\n return mapping.findForward(\"controllerInput\");\n } catch (Exception e) {\n logger.error(e.getMessage());\n reportBean.setMessage(e.getMessage());\n reportBean.setMessageType(InstaULC.MSG_TYPE_INFO);\n return mapping.findForward(\"controllerFailure\");\n }\n }\n return mapping.findForward(\"controllerFailure\");\n }",
"private void handleActionFoo(String param1, String param2){\n\t// TODO: Handle action Foo\n\tthrow new UnsupportedOperationException(\"Not yet implemented\");\n }",
"Object executeMethodCall(String actionName, String inMainParamValue) throws APIException;",
"public interface CalendarForTodayController {\n /**\n * Method doWork realizes view calendar for today.\n *\n * @param list of type AbstractTaskList\n */\n void doWork(AbstractTaskList list);\n}",
"@Pointcut(\"forControllerPackage() || forServicePackage() || forDaoPackage()\")\n private void forAppFlow() {}",
"@RequestMapping(value = \"/dispatchService\")\n\t@ResponseBody\n\tpublic void dispatchService() throws ServiceException {\n\t\tif(checkAccessSecurity()) {\n\t\t\tString model = \"\";\n\t\t\tString serviceName = \"\";\n\t\t\tdispatchServiceController.run(model, serviceName);\n\t\t}\n\t\t\n\t}",
"@Pointcut(\"execution(* com.bharath.spring.mvc.aop.controller.*.*(..))\")\n private void forControllerPackage() {}",
"@SneakyThrows\n private void invokeRequestRouting(Class<?> clazz, Injector injector) {\n log.info(MODULE_NAME + clazz.getName());\n Route route = clazz.getAnnotation(Route.class);\n String prefix = route.value();\n Object instance = injector.getInstance(clazz);\n clazz.getMethod(ROUTE_METHOD_NAME, String.class).invoke(instance, prefix);\n Method[] methods = clazz.getMethods();\n for (Method method : Arrays.asList(methods)) {\n if (method.isAnnotationPresent(RequestRouting.class)) {\n RequestRouting requestRouting = method.getAnnotation(RequestRouting.class);\n String path = requestRouting.path();\n int order = requestRouting.order();\n path = (StringUtils.isNotEmpty(prefix)) ? prefix + path : path;\n router.route(requestRouting.method(), path).order(order).handler(rc -> {\n try {\n method.invoke(instance, rc);\n } catch (Exception e) {\n log.error(MODULE_NAME + e.getMessage());\n }\n });\n }\n }\n }",
"@Override\n public String handleRoute(String requestBody) {\n Gson gson = new Gson();\n Wrap sessionWrap = null;\n try {\n sessionWrap = gson.fromJson(requestBody, Wrap.class);\n } catch (JsonSyntaxException e) {\n logger.log(Level.WARNING, \"Failed to unwrap Json wrapper\", e);\n }\n Expression expression = sessionWrap.getExpression();\n // Extract protocol from expression\n String protocol = expression.getProtocol();\n // Forward to correct protocol application\n String protocolServicePath = \"NotSet\";\n if (protocolMap.containsKey(protocol)) {\n protocolServicePath = protocolMap.get(protocol);\n logger.log(Level.INFO, \"Sending packet to a protocol service..\");\n return transmissionHandler.handleTransmission(sessionWrap, protocolServicePath);\n } else {// Else inform service is down\n logger.log(Level.WARNING, \"Protocolservice: \" + protocol\n + \" not found, either it is down, or the service reference is wrong.\");\n }\n return protocolServicePath; // returns string NotSet\n }",
"@RequestMapping(\"/drawingBoard\")\n public String drawingBoard(HttpServletRequest request, Model model, DrawingBoardType drawingBoardType, String processType) {\n String load = request.getParameter(\"load\");\n //set parentAccessPath\n String parentAccessPath = request.getParameter(\"parentAccessPath\");\n model.addAttribute(\"parentAccessPath\", parentAccessPath);\n // set current user\n UserVo user = SessionUserUtil.getCurrentUser();\n model.addAttribute(\"currentUser\", user);\n //set drawingBoardType\n model.addAttribute(\"drawingBoardType\", drawingBoardType);\n\n String pagePath = \"errorPage\";\n // Determine whether there is an'id'('load') of'Flow', and if there is, load it, otherwise generate'UUID' to return to the return page.\n if (StringUtils.isBlank(load)) {\n return \"errorPage\";\n }\n switch (drawingBoardType) {\n case GROUP: {\n Model groupHandleModel = groupHandle(model, load);\n if (null != groupHandleModel) {\n model = groupHandleModel;\n pagePath = \"mxGraph/index\";\n }\n break;\n }\n case TASK: {\n Model taskHandleModel = taskHandle(model, load);\n if (null != taskHandleModel) {\n model = taskHandleModel;\n pagePath = \"mxGraph/index\";\n }\n break;\n }\n case PROCESS: {\n Model processHandleModel = processHandle(model, load, processType);\n if (null != processHandleModel) {\n model = processHandleModel;\n pagePath = \"mxGraph/index\";\n }\n break;\n }\n }\n return pagePath;\n }",
"public abstract String getRequestPathInfo();",
"@RequestMapping\n public void othersRooms() throws MethodNotAllowedException {\n throw new MethodNotAllowedException();\n }",
"abstract protected QaIOReporter performAction(Node[] nodes);",
"@RequestMapping(\"org/open_company.shtm\")\n public ModelAndView openCompany(HttpServletRequest req,\n HttpServletResponse resp) {\n LOG.info(\"open company list page start...\");\n \n ModelAndView mv = createOpenPageMV(req);\n\n String module = req.getParameter(\"m\");\n if (MODULE_ADD.equals(module)) {\n initAddCompanyPage(mv);\n } else if (MODULE_MODIFY.equals(module)) {\n initModifyCompanyPage(req, mv);\n } else if (MODULE_QUERY.equals(module)) {\n // nothing here.\n } else {\n LOG.warn(\"no module found!\");\n }\n\n // set view\n mv.setViewName(\"org/p_company_\" + module + \".jsp\");\n\n LOG.info(\"open company list page end.\");\n return mv;\n }",
"public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException\n {\n try\n {\n String pathInfo = request.getPathInfo();\n String servletPath = request.getServletPath();\n String contextPath = request.getContextPath();\n \n if (nullPathInfoWorkaround && pathInfo == null)\n {\n pathInfo = request.getServletPath();\n servletPath = PathConstants.PATH_ROOT;\n log.debug(\"Default servlet suspected. pathInfo=\" + pathInfo + \"; contextPath=\" + contextPath + \"; servletPath=\" + servletPath); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n }\n \n if (pathInfo == null ||\n pathInfo.length() == 0 ||\n pathInfo.equals(PathConstants.PATH_ROOT))\n {\n response.sendRedirect(contextPath + servletPath + PathConstants.FILE_INDEX);\n }\n else if (pathInfo.startsWith(PathConstants.FILE_INDEX))\n {\n String page = debugPageGenerator.generateIndexPage(contextPath + servletPath);\n \n response.setContentType(MimeConstants.MIME_HTML);\n PrintWriter out = response.getWriter();\n out.print(page);\n response.flushBuffer();\n }\n else if (pathInfo.startsWith(PathConstants.PATH_TEST))\n {\n String scriptName = pathInfo;\n scriptName = LocalUtil.replace(scriptName, PathConstants.PATH_TEST, \"\"); //$NON-NLS-1$\n scriptName = LocalUtil.replace(scriptName, PathConstants.PATH_ROOT, \"\"); //$NON-NLS-1$\n \n String page = debugPageGenerator.generateTestPage(contextPath + servletPath, scriptName);\n \n response.setContentType(MimeConstants.MIME_HTML);\n PrintWriter out = response.getWriter();\n out.print(page);\n response.flushBuffer();\n }\n else if (pathInfo.startsWith(PathConstants.PATH_INTERFACE))\n {\n String scriptName = pathInfo;\n scriptName = LocalUtil.replace(scriptName, PathConstants.PATH_INTERFACE, \"\"); //$NON-NLS-1$\n scriptName = LocalUtil.replace(scriptName, PathConstants.EXTENSION_JS, \"\"); //$NON-NLS-1$\n String path = contextPath + servletPath;\n \n String script = remoter.generateInterfaceScript(scriptName, path);\n \n // Officially we should use MimeConstants.MIME_JS, but if we cheat and\n // use MimeConstants.MIME_PLAIN then it will be easier to read in a\n // browser window, and will still work just fine.\n response.setContentType(MimeConstants.MIME_PLAIN);\n PrintWriter out = response.getWriter();\n out.print(script);\n response.flushBuffer();\n }\n else if (pathInfo.startsWith(PathConstants.PATH_PLAINJS))\n {\n Calls calls = plainJsMarshaller.marshallInbound(request, response);\n Replies replies = remoter.execute(calls);\n plainJsMarshaller.marshallOutbound(replies, request, response);\n }\n else if (pathInfo.startsWith(PathConstants.PATH_HTMLJS))\n {\n Calls calls = htmlJsMarshaller.marshallInbound(request, response);\n Replies replies = remoter.execute(calls);\n htmlJsMarshaller.marshallOutbound(replies, request, response);\n }\n else if (pathInfo.equalsIgnoreCase(PathConstants.FILE_ENGINE))\n {\n doFile(request, response, PathConstants.FILE_ENGINE, MimeConstants.MIME_JS, true);\n }\n else if (pathInfo.equalsIgnoreCase(PathConstants.FILE_UTIL))\n {\n doFile(request, response, PathConstants.FILE_UTIL, MimeConstants.MIME_JS, false);\n }\n else if (pathInfo.startsWith(PathConstants.PATH_STATUS))\n {\n Container container = WebContextFactory.get().getContainer();\n ScriptSessionManager manager = (ScriptSessionManager) container.getBean(ScriptSessionManager.class.getName());\n if (manager instanceof DefaultScriptSessionManager)\n {\n DefaultScriptSessionManager dssm = (DefaultScriptSessionManager) manager;\n dssm.debug();\n }\n }\n else\n {\n log.warn(\"Page not found (\" + pathInfo + \"). In debug/test mode try viewing /[WEB-APP]/dwr/\"); //$NON-NLS-1$ //$NON-NLS-2$\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\n }\n }\n catch (Exception ex)\n {\n log.warn(\"Error: \" + ex); //$NON-NLS-1$\n if (ex instanceof SecurityException && log.isDebugEnabled())\n {\n log.debug(\"- User Agent: \" + request.getHeader(HttpConstants.HEADER_USER_AGENT)); //$NON-NLS-1$\n log.debug(\"- Remote IP: \" + request.getRemoteAddr()); //$NON-NLS-1$\n log.debug(\"- Request URL:\" + request.getRequestURL()); //$NON-NLS-1$\n log.debug(\"- Query: \" + request.getQueryString()); //$NON-NLS-1$\n log.debug(\"- Method: \" + request.getMethod()); //$NON-NLS-1$\n \n ex.printStackTrace();\n }\n \n response.setContentType(MimeConstants.MIME_HTML);\n response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n PrintWriter out = response.getWriter();\n out.println(\"<html><head><title>Error</title</head><body>\"); //$NON-NLS-1$\n out.println(\"<p><b>Error</b>: \" + ex.getMessage() + \"</p>\"); //$NON-NLS-1$ //$NON-NLS-2$\n out.println(\"<p>For further information about DWR see:</p><ul>\"); //$NON-NLS-1$\n out.println(\"<li><a href='http://getahead.ltd.uk/dwr/documentation'>DWR Documentation</a></li>\"); //$NON-NLS-1$\n out.println(\"<li><a href='http://getahead.ltd.uk/dwr/support'>DWR Mailing List</a></li>\"); //$NON-NLS-1$\n out.println(\"</ul>\"); //$NON-NLS-1$\n out.println(\"<script type='text/javascript'>\"); //$NON-NLS-1$\n out.println(\"alert('\" + ex.getMessage() + \"');\"); //$NON-NLS-1$ //$NON-NLS-2$\n out.println(\"</script>\"); //$NON-NLS-1$\n out.println(\"</body></html>\"); //$NON-NLS-1$\n out.flush();\n }\n }",
"public interface FileHandler\n{\n /**\n *\n */\n public void setNext(RouteSegment nextInChain);\n\n /**\n * @return next RouteSegment type to be checked in chain of responsibility\n */\n public RouteSegment getNext();\n\n /**\n * @param file_path path to CSV file to import\n * @return the created route segment\n */\n public RouteSegment importRouteSegment(String filePath) throws FileNotFoundException, IOException;\n\n /**\n * @param route_to_export the route to export to CSV\n */\n public String exportRoute(Route route_to_export) throws IOException;\n\n}",
"@Override\r\n \tpublic ActionForward executeSecureAction(ActionMapping mapping, ActionForm form,\r\n \t\t\tHttpServletRequest request, HttpServletResponse response) throws IOException,\r\n \t\t\tServletException\r\n \t{\r\n \t\tsaveActionErrors(form, request);\r\n \t\t// //Gets the value of the operation parameter.\r\n \t\t// String operation = request.getParameter(Constants.OPERATION);\r\n \t\t//\r\n \t\t// //Sets the operation attribute to be used in the Add/Edit Institute\r\n \t\t// Page.\r\n \t\t// request.setAttribute(Constants.OPERATION, operation);\r\n \t\ttry\r\n \t\t{\r\n \t\t\tfinal IFactory factory = AbstractFactoryConfig.getInstance().getBizLogicFactory();\r\n \t\t\tfinal IBizLogic bizLogic = factory.getBizLogic(Constants.DEFAULT_BIZ_LOGIC);\r\n \r\n \t\t\t// ************* ForwardTo implementation *************\r\n \t\t\t// forwarded from Specimen page\r\n \t\t\tfinal HashMap forwardToHashMap = (HashMap) request.getAttribute(\"forwardToHashMap\");\r\n \t\t\tString specimenId = null;\r\n \t\t\tString specimenLabel = null;\r\n \t\t\tString specimenClass = null;\r\n \t\t\t// -------------Mandar 04-July-06 QuickEvents start\r\n \t\t\tString fromQuickEvent = (String) request.getAttribute(\"isQuickEvent\");\r\n \t\t\tif (fromQuickEvent == null)\r\n \t\t\t{\r\n \t\t\t\tfromQuickEvent = request.getParameter(\"isQuickEvent\");\r\n \t\t\t}\r\n \t\t\tString eventSelected = \"\";\r\n \t\t\tif (fromQuickEvent != null)\r\n \t\t\t{\r\n \t\t\t\tspecimenId = (String) request.getAttribute(Constants.SPECIMEN_ID);\r\n \t\t\t\teventSelected = (String) request.getAttribute(Constants.EVENT_SELECTED);\r\n \t\t\t\tif (eventSelected == null && forwardToHashMap != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tspecimenClass = (String) forwardToHashMap.get(\"specimenClass\");\r\n \t\t\t\t\tspecimenId = (String) forwardToHashMap.get(\"specimenId\");\r\n \t\t\t\t\tif (specimenClass.equalsIgnoreCase(\"Tissue\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[14];\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if (specimenClass.equalsIgnoreCase(\"Molecular\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[9];\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if (specimenClass.equalsIgnoreCase(\"Cell\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[1];\r\n \t\t\t\t\t}\r\n \t\t\t\t\telse if (specimenClass.equalsIgnoreCase(\"Fluid\"))\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\teventSelected = Constants.EVENT_PARAMETERS[7];\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t}\r\n \t\t\t\trequest.setAttribute(Constants.EVENT_SELECTED, eventSelected);\r\n \t\t\t\t// System.out.println(\"::::::::::::::\\n\\n\\n\\n\"+form.getClass().\r\n \t\t\t\t// getName() );\r\n \t\t\t\tListSpecimenEventParametersForm eventForm = (ListSpecimenEventParametersForm) form;\r\n \t\t\t\tif (eventForm == null)\r\n \t\t\t\t{\r\n \t\t\t\t\teventForm = new ListSpecimenEventParametersForm();\r\n \t\t\t\t}\r\n \t\t\t\teventForm.setSpecimenEventParameter(eventSelected);\r\n \t\t\t\teventForm.setSpecimenId(specimenId.trim());\r\n \r\n \t\t\t}\r\n \t\t\t// -------------Mandar 04-July-06 QuickEvents end\r\n \t\t\tif (forwardToHashMap != null)\r\n \t\t\t{\r\n \t\t\t\t// Fetching SpecimenId from HashMap generated by\r\n \t\t\t\t// ForwardToProcessor\r\n \t\t\t\tspecimenId = (String) forwardToHashMap.get(\"specimenId\");\r\n \t\t\t\tspecimenLabel = (String) forwardToHashMap.get(Constants.SPECIMEN_LABEL);\r\n \t\t\t\tLogger.out.debug(\"SpecimenID found in \" + \"forwardToHashMap========>>>>>>\"\r\n \t\t\t\t\t\t+ specimenId);\r\n \t\t\t}\r\n \t\t\t// ************* ForwardTo implementation *************\r\n \r\n \t\t\t// If new SpecimenEvent is added, specimenId in forwardToHashMap\r\n \t\t\t// will be null, following code handles that case\r\n \t\t\tif (specimenId == null)\r\n \t\t\t{\r\n \t\t\t\tfinal String eventId = request.getParameter(\"eventId\");\r\n \r\n \t\t\t\t// Added by Vijay Pande. While cliking on events tab both\r\n \t\t\t\t// specimenId and eventId are getting null. Since there was no\r\n \t\t\t\t// check on eventId it was throwing error for following retrieve\r\n \t\t\t\t// call.\r\n \t\t\t\t// Null check is added for eventId. Fix for bug Id: 4731\r\n \t\t\t\tif (eventId != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tLogger.out.debug(\"Event ID added===>\" + eventId);\r\n \t\t\t\t\t// Retrieving list of SpecimenEvents for added\r\n \t\t\t\t\t// SpecimenEventId\r\n \t\t\t\t\tfinal Object object = bizLogic.retrieve(\r\n \t\t\t\t\t\t\tSpecimenEventParameters.class.getName(), new Long(eventId));\r\n \r\n \t\t\t\t\tif (object != null)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t// Getting object of specimenEventParameters from the\r\n \t\t\t\t\t\t// list of SepcimenEvents\r\n \t\t\t\t\t\tfinal SpecimenEventParameters specimenEventParameters = (SpecimenEventParameters) object;\r\n \r\n \t\t\t\t\t\t// getting SpecimenId of SpecimenEventParameters\r\n \t\t\t\t\t\tfinal AbstractSpecimen specimen = specimenEventParameters.getSpecimen();\r\n \t\t\t\t\t\tspecimenId = specimen.getId().toString();\r\n \t\t\t\t\t\t// specimenLabel = specimen.getLabel();\r\n \t\t\t\t\t\tLogger.out.debug(\"Specimen of Event Added====>\"\r\n \t\t\t\t\t\t\t\t+ (specimenEventParameters.getSpecimen()).getId());\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \r\n \t\t\tif (specimenId == null)\r\n \t\t\t{\r\n \t\t\t\tspecimenId = request.getParameter(Constants.SPECIMEN_ID);\r\n \t\t\t\tspecimenLabel = request.getParameter(Constants.SPECIMEN_LABEL);\r\n \t\t\t}\r\n \t\t\tif (specimenId == null)\r\n \t\t\t{\r\n \t\t\t\tspecimenId = (String) request.getAttribute(Constants.SPECIMEN_ID);\r\n \t\t\t}\r\n \r\n \t\t\trequest.setAttribute(Constants.SPECIMEN_ID, specimenId);\r\n \r\n \t\t\tfinal Object object = bizLogic.retrieve(Specimen.class.getName(), new Long(specimenId));\r\n \r\n \t\t\tif (object != null)\r\n \t\t\t{\r\n \t\t\t\tfinal Specimen specimen = (Specimen) object;\r\n \t\t\t\tif (specimenLabel == null)\r\n \t\t\t\t{\r\n \t\t\t\t\tspecimenLabel = specimen.getLabel();\r\n \t\t\t\t}\r\n \t\t\t\t// Setting Specimen Event Parameters' Grid\r\n \r\n \t\t\t\t// Ashish - 4/6/07 --- Since lazy=true, retriving the events\r\n \t\t\t\t// collection.\r\n \t\t\t\tfinal Collection<SpecimenEventParameters> specimenEventCollection = this\r\n \t\t\t\t\t\t.getSpecimenEventParametersColl(specimenId, bizLogic);\r\n \t\t\t\tfinal Collection<ActionApplication> dynamicEventCollection = this\r\n \t\t\t\t\t\t.getDynamicEventColl(specimenId, bizLogic);\r\n \t\t\t\t/**\r\n \t\t\t\t * Name: Chetan Patil Reviewer: Sachin Lale Bug ID: Bug#4180\r\n \t\t\t\t * Patch ID: Bug#4180_1 Description: The values of event\r\n \t\t\t\t * parameter is stored in a Map and in turn the Map is stored in\r\n \t\t\t\t * a List. This is then sorted chronologically, using a date\r\n \t\t\t\t * value form the Map. After sorting the List of Map is\r\n \t\t\t\t * converted into the List of List, which is used on the UI for\r\n \t\t\t\t * displaying values form List on the grid.\r\n \t\t\t\t */\r\n \t\t\t\tif (dynamicEventCollection != null)\r\n \t\t\t\t{\r\n \t\t\t\t\tfinal List<Map<String, Object>> gridData = new ArrayList<Map<String, Object>>();\r\n \r\n \t\t\t\t\tfor (final ActionApplication actionApp : dynamicEventCollection)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tfinal Map<String, Object> rowDataMap = new HashMap<String, Object>();\r\n \t\t\t\t\t\tif (actionApp != null)\r\n \t\t\t\t\t\t{\r\n \t\t\t\t\t\t\t//final String[] events = EventsUtil\r\n \t\t\t\t\t\t\t//\t\t.getEvent(eventParameters);\r\n \t\t\t\t\t\t\tlong contId = actionApp.getApplicationRecordEntry().getFormContext()\r\n \t\t\t\t\t\t\t\t\t.getContainerId();\r\n \t\t\t\t\t\t\tList contList = AppUtility\r\n \t\t\t\t\t\t\t\t\t.executeSQLQuery(\"select caption from dyextn_container where identifier=\"\r\n \t\t\t\t\t\t\t\t\t\t\t+ contId);\r\n \t\t\t\t\t\t\tString container = (String) ((List) contList.get(0)).get(0);\r\n \t\t\t\t\t\t\t//final Object container =bizLogic.retrieve(Container.class.getName(),new Long(contId));\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.ID, String.valueOf(actionApp.getId()));\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.EVENT_NAME,\r\n \t\t\t\t\t\t\t\t\tedu.wustl.cab2b.common.util.Utility\r\n \t\t\t\t\t\t\t\t\t\t\t.getFormattedString(container));\r\n \r\n \t\t\t\t\t\t\t// Ashish - 4/6/07 - retrieving User\r\n \t\t\t\t\t\t\t// User user = eventParameters.getUser();\r\n \t\t\t\t\t\t\tfinal User user = this.getUser(actionApp.getId(), bizLogic);\r\n \r\n \t\t\t\t\t\t\trowDataMap.put(Constants.USER_NAME, user.getLastName() + \", \"\r\n \t\t\t\t\t\t\t\t\t+ user.getFirstName());\r\n \r\n \t\t\t\t\t\t\t// rowDataMap.put(Constants.EVENT_DATE,\r\n \t\t\t\t\t\t\t// Utility.parseDateToString\r\n \t\t\t\t\t\t\t// (eventParameters.getTimestamp(),\r\n \t\t\t\t\t\t\t// Constants.TIMESTAMP_PATTERN)); // Sri: Changed\r\n \t\t\t\t\t\t\t// format for bug #463\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.EVENT_DATE, actionApp.getTimestamp());\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.PAGE_OF, \"pageOfDynamicEvent\");// pageOf\r\n \t\t\t\t\t\t\trowDataMap.put(Constants.SPECIMEN_ID, request\r\n \t\t\t\t\t\t\t\t\t.getAttribute(Constants.SPECIMEN_ID));// pageOf\r\n \t\t\t\t\t\t\tgridData.add(rowDataMap);\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \r\n \t\t\t\t\tfinal List<List<String>> gridDataList = this.getSortedGridDataList(gridData);\r\n \t\t\t\t\tfinal String[] columnList1 = Constants.EVENT_PARAMETERS_COLUMNS;\r\n \t\t\t\t\tfinal List<String> columnList = new ArrayList<String>();\r\n \t\t\t\t\tfor (final String element : columnList1)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tcolumnList.add(element);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tAppUtility.setGridData(gridDataList, columnList, request);\r\n \t\t\t\t\trequest.setAttribute(\r\n \t\t\t\t\t\t\tedu.wustl.simplequery.global.Constants.SPREADSHEET_DATA_LIST,\r\n \t\t\t\t\t\t\tgridDataList);\r\n \t\t\t\t\tfinal Integer identifierFieldIndex = new Integer(0);\r\n \t\t\t\t\trequest.setAttribute(\"identifierFieldIndex\", identifierFieldIndex.intValue());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tif (request.getAttribute(Constants.SPECIMEN_LABEL) == null)\r\n \t\t\t{\r\n \t\t\t\trequest.setAttribute(Constants.SPECIMEN_LABEL, specimenLabel);\r\n \t\t\t}\r\n \t\t\trequest.setAttribute(Constants.EVENT_PARAMETERS_LIST, new SOPBizLogic()\r\n \t\t\t\t\t.getAllSOPEventFormNames(dynamicEventMap));\r\n \t\t\trequest.getSession().setAttribute(\"dynamicEventMap\", dynamicEventMap);\r\n \r\n \t\t}\r\n \t\tcatch (final Exception e)\r\n \t\t{\r\n \t\t\tthis.logger.error(e.getMessage(), e);\r\n \t\t}\r\n \t\trequest.setAttribute(Constants.MENU_SELECTED, new String(\"15\"));\r\n \t\tString pageOf = (String) request.getParameter(Constants.PAGE_OF);\r\n \t\tif (pageOf == null)\r\n \t\t\tpageOf = (String) request.getAttribute(Constants.PAGE_OF);\r\n \t\trequest.setAttribute(Constants.PAGE_OF, pageOf);\r\n \r\n \t\tif (pageOf.equals(Constants.PAGE_OF_LIST_SPECIMEN_EVENT_PARAMETERS_CP_QUERY))\r\n \t\t{\r\n \t\t\trequest.getSession().setAttribute(\"CPQuery\", \"CPQuery\");\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\tif (request.getSession().getAttribute(\"CPQuery\") != null)\r\n \t\t\t{\r\n \t\t\t\trequest.getSession().removeAttribute(\"CPQuery\");\r\n \t\t\t}\r\n \t\t}\r\n \t\tLong specimenRecEntryEntityId = null;\r\n \t\ttry\r\n \t\t{\r\n \t\t\tif (CatissueCoreCacheManager.getInstance().getObjectFromCache(\r\n \t\t\t\t\tAnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID) != null)\r\n \t\t\t{\r\n \t\t\t\tspecimenRecEntryEntityId = (Long) CatissueCoreCacheManager.getInstance()\r\n \t\t\t\t\t\t.getObjectFromCache(AnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID);\r\n \t\t\t}\r\n \t\t\telse\r\n \t\t\t{\r\n \t\t\t\tspecimenRecEntryEntityId = AnnotationUtil\r\n \t\t\t\t\t\t.getEntityId(AnnotationConstants.ENTITY_NAME_SPECIMEN_REC_ENTRY);\r\n \t\t\t\tCatissueCoreCacheManager.getInstance().addObjectToCache(\r\n \t\t\t\t\t\tAnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID, specimenRecEntryEntityId);\r\n \t\t\t}\r\n \r\n \t\t}\r\n \t\tcatch (final Exception e)\r\n \t\t{\r\n \t\t\tthis.logger.error(e.getMessage(), e);\r\n \t\t}\r\n \t\t// request.setAttribute(\"specimenEntityId\", specimenEntityId);\r\n \t\trequest.setAttribute(AnnotationConstants.SPECIMEN_REC_ENTRY_ENTITY_ID,\r\n \t\t\t\tspecimenRecEntryEntityId);\r\n \t\treturn mapping.findForward(request.getParameter(Constants.PAGE_OF));\r\n \t}",
"protected void service(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\tString path = request.getServletPath();\r\n\t\ttry {\r\n\r\n\t\t\tif (path.equals(\"/newpd\")) {\r\n\t\t\t\tdestino = \"createpd.jsp\";\r\n\t\t\t\tSystem.out.println(\"create new\");\r\n\t\t\t} else if (path.equals(\"/insertpd\")) {\r\n\t\t\t\tinsert(request);\r\n\t\t\t\tmensaje = list(request, pdmodel);\r\n\t\t\t\tdestino = \"/panelpd.jsp\";\r\n\t\t\t\tSystem.out.println(\"panelpd\");\r\n\r\n\t\t\t} else if (path.equals(\"/editpd\")) {\r\n\t\t\t\tread(request,pdmodel);\r\n\t\t\t\tdestino = \"/updatepd.jsp\";\r\n\t\t\t} else if (path.equals(\"/updatepd\")) {\r\n\t\t\t\tupdate(request);\r\n\t\t\t\tmensaje = list(request, pdmodel);\r\n\t\t\t\tdestino = \"/panelpd.jsp\";\r\n\r\n\t\t\t} else if (path.equals(\"/removepd\")) {\r\n\t\t\t\tread(request, pdmodel);\r\n\t\t\t\tdestino = \"/deletepd.jsp\";\r\n\t\t\t} else if (path.equals(\"/deletepd\")) {\r\n\t\t\t\tdelete(request);\r\n\t\t\t\tmensaje = list(request, pdmodel);\r\n\t\t\t\tdestino = \"/panelpd.jsp\";\r\n\r\n\t\t\t} else if (path.equals(\"/listpd\")) {\r\n\t\t\t\tmensaje = list(request, pdmodel);\r\n\t\t\t\tdestino = \"/panelpd.jsp\";\r\n\t\t\t} else if (path.equals(\"/readpd\")) {\r\n\t\t\t\tread(request, pdmodel);\r\n\t\t\t\tdestino = \"/readpd.jsp\";\r\n\t\t\t}\r\n\r\n\t\t\tif (mensaje != null) {\r\n\t\t\t\trequest.setAttribute(\"mensaje\", mensaje);\r\n\t\t\t} else {\r\n\t\t\t\trequest.removeAttribute(\"mensaje\");\r\n\t\t\t}\r\n\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t} \r\n\t\t\r\n\t\tRequestDispatcher rd = request.getRequestDispatcher(destino);\r\n\t\trd.forward(request, response);\r\n\r\n\t}",
"public ActionForward execute(ActionMapping mapping,ActionForm form,HttpServletRequest request,HttpServletResponse response)\r\n\t\tthrows Exception {\r\n\t\t//DataSource ds = (DataSource) getDataSource(request, \"dbaccounting\");\r\n\t\t//Connection conn = null;\r\n\t\tBankReconcileForm bankReconcileForm = (BankReconcileForm) form;\r\n\t\tActionForward forward = null;\r\n\t\tString action = mapping.getParameter();\r\n\t\tHttpSession session = request.getSession();\r\n\t\tUsers users = (Users)session.getAttribute(CommonConstants.USER);\r\n\t\tSet lst = (Set)session.getAttribute(CommonConstants.VIEWACCESS);\r\n\t\t\tif (users!=null) {\r\n\t\t\t\tif (CommonUtil.isHasRoleAccess(lst,request.getServletPath())) {\r\n\t\t\t\t\trequest.setAttribute(\"VIEWS\",lst);\r\n\t\t\t\t\tif (\"\".equalsIgnoreCase(action)) {\r\n\t\t\t\t\t\tforward = mapping.findForward(\"home\");\r\n\t\t\t\t\t} else if (\"LIST\".equalsIgnoreCase(action)) {\r\n\t\t\t\t\t\tforward = performPartialList(mapping, form, request, response);\r\n\t\t\t\t\t} else if (\"FORM\".equalsIgnoreCase(action)) {\r\n\t\t\t\t\t\tforward = performForm(mapping, form, request, response);\r\n\t\t\t\t\t} else if (\"SAVE\".equalsIgnoreCase(action)) {\r\n\t\t\t\t\t\tif (bankReconcileForm.getString(\"subaction\")!=null && bankReconcileForm.getString(\"subaction\").length()>0 && bankReconcileForm.getString(\"subaction\").equalsIgnoreCase(\"refresh\")) {\r\n\t\t\t\t\t\t\tforward = performForm(mapping, form, request, response);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tforward = performSave(mapping, form, request, response);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (\"DETAIL\".equalsIgnoreCase(action)) { \r\n\t\t\t\t\t\tforward = performDetail(mapping, form, request, response);\r\n\t\t\t\t\t} else if (\"DELETE\".equalsIgnoreCase(action)) {\r\n\t\t\t\t\t\tforward = performDelete(mapping, form, request, response);\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn forward;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tActionMessages errors = new ActionMessages();\r\n\t\t\t\t\terrors.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage(\"error.privilage\",request.getContextPath()+mapping.getPath()));\r\n\t\t\t\t\tsaveMessages(request,errors);\t\t\t\t\r\n\t\t\t\t\treturn mapping.findForward(\"home\");\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\treturn mapping.findForward(\"index\");\r\n\t\t\t}\r\n\t}",
"@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) {\n\t\tSystem.out.println(\"View1Model execute(HttpServletRequest request, HttpServletResponse response) 호출\");\n\t}",
"protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\treq.setCharacterEncoding(\"utf-8\");\n\t\tString method = req.getParameter(\"method\");\n//\t\tSystem.out.println(\"PPPPPPPPPPPPPPP\");\n\t\tif (\"Time_qunee\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee(req, resp);\n\t\t\t} catch (SQLException 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\telse if (\"Time_qunee_pre\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee_pre(req, resp);\n\t\t\t} catch (SQLException 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\telse if (\"Time_qunee_fold\".equals(method)) {\n\t\t\ttry {\n\t\t\t\tTime_qunee_fold(req, resp);\n\t\t\t} catch (SQLException 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\telse if(\"Create_root_json\".equals(method)) {\n\t\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\t\tresp.getWriter().write(DataServlet.createRootInfoJson());\n\t\t}\n\t\telse if(\"Create_montior_json\".equals(method)) {\n\t\t\tresp.setCharacterEncoding(\"utf-8\");\n\t\t\tresp.getWriter().write(DataServlet.createMontiorInfoJson());\n\t\t}\n\t}",
"protected abstract void action(Object obj);",
"private void openView(String viewToOpen)\n throws IOException, InterruptedException, URISyntaxException {\n Parent root = null;\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(viewToOpen + \"/\" + viewToOpen + \".fxml\"));\n root = loader.load();\n\n if (\"view0\".equals(viewToOpen)) {\n view0Controller = loader.getController();\n view0Controller.init(getVmFactory());\n }\n\n Scene s;\n s = new Scene(root);\n primaryStage.setScene(s);\n primaryStage.initStyle(StageStyle.UNDECORATED);\n primaryStage.initStyle(StageStyle.TRANSPARENT);\n primaryStage.show();\n\n // getcounter/iteratorvalue\n\n }",
"final public void startFor(final VRL location,final String optionalMethodName,final ActionContext actionContext)\n throws VrsException\n {\n // === \n // Pre: Context: Startup environmnet \n // === \n \n if (this.startTask!=null)\n {\n throw new nl.esciencecenter.vbrowser.vrs.exceptions.VrsException(\"Viewer Exception: Cannot start viewer twice\"); \n }\n \n // check viewer context: \n if (viewer.getViewContext()==null) \n {\n UILogger.errorPrintf(this,\"Warning: Viewer context not set: creating default for:%s\\n\",this); \n viewer.setViewContext(new ViewContext(null)); \n }\n \n // update viewer and context whith startup VRL\n if (location!=null) \n viewer.setVRL(location);\n viewer.getViewContext().setStartupLocation(location);\n \n // update dynamic action context into viewer context \n if (optionalMethodName!=null)\n {\n // put dynamic action + action context in ViewerContext.\n viewer.getViewContext().setDynamicAction(optionalMethodName,actionContext); \n \n }\n \n // ======\n // Initialize Viewer during CURRENT thread \n // ======\n \n initViewer();\n \n if (viewer.getViewContext().getStartInStandaloneWindow()==true)\n {\n // Disconnect from MasterBrowser ActionTasks and redirect to (external) \n // viewer watcher \n this.taskSource=getExternalViewerWatcher(); \n }\n // ===\n // Start Viewer in background task ! \n // ===\n \n this.startTask = new ActionTask(taskSource, \"Starting viewer for:\"\n + location)\n\n {\n public void doTask()\n {\n try\n {\n // \n // Really start viewer :\n //\n \n if (StringUtil.isEmpty(optionalMethodName)==false)\n {\n viewer.startViewer(location,optionalMethodName,actionContext); \n }\n else\n {\n viewer.startViewer(location,null,null);\n }\n //\n // Dynamic Action ! \n //\n }\n catch (Throwable t)\n {\n if (taskSource!=null)\n taskSource.notifyTaskException(this,t); \n }\n }\n\n public void stopTask()\n {\n // applet: stop();\n // applet: destroy(); \n viewer.stopViewer(); \n };\n };\n\n startTask.startTask();\n }",
"@RequestMapping(method=RequestMethod.GET, path=\"/k\")\n\tpublic String goToXmlViewRsolverRedirect(Model model){\n\t\treturn \"bean/defined_xml_redirect\";\n\t}",
"private void doDispatch(RoutingContext context, String path, HttpClient client, Future<Object> cbFuture) {\n HttpClientRequest toReq = client\n .request(context.request().method(), path, response -> {\n response.bodyHandler(body -> {\n if (response.statusCode() >= 500) { // api endpoint server error, circuit breaker should fail\n cbFuture.fail(response.statusCode() + \": \" + body.toString());\n } else {\n HttpServerResponse toRsp = context.response()\n .setStatusCode(response.statusCode());\n response.headers().forEach(header -> {\n toRsp.putHeader(header.getKey(), header.getValue());\n });\n // send response\n toRsp.end(body);\n cbFuture.complete();\n }\n ServiceDiscovery.releaseServiceObject(discovery, client);\n });\n });\n // set headers\n context.request().headers().forEach(header -> {\n toReq.putHeader(header.getKey(), header.getValue());\n });\n if (context.user() != null) {\n toReq.putHeader(\"user-principal\", context.user().principal().encode());\n }\n // send request\n if (context.getBody() == null) {\n toReq.end();\n } else {\n toReq.end(context.getBody());\n }\n }",
"protected void service(HttpServletRequest aRequest, HttpServletResponse aResponse) throws ServletException, IOException {\n\tif (aRequest.getAttribute(\"EXTRANET_METHOD\") == null) {\n\t\tsuper.service(aRequest, aResponse);\n\t} else {\n\t\t// If comming from a forward, determine if GET method should be invoked\n\t\tString lMethod = (String) aRequest.getAttribute(\"EXTRANET_METHOD\");\n\t\tif (lMethod != null && lMethod.equals(\"GET\")) {\n\t\t\tdoGet(aRequest, aResponse);\n\t\t} else {\n\t\t\tsuper.service(aRequest, aResponse);\n\t\t}\n\t}\n}",
"abstract String getFileRoute() throws IOException;",
"protected abstract boolean actionImplementation(iNamedObject node);",
"public AppDisRecomReply invoke(AppDisRecomReq params)\n\t\t\tthrows AppDisException {\n\t\tswitch(params.getInterType()){\n\t\t\t\tcase APP_LIST_SEARCH:\n\t\t\t\t\t\n\t\t\t\t\treturn appListSearch(params);\n\t\t\t\tcase KEY_WORD_SEARCH:\n\t\t\t\t\treturn appKwdSearch(params);\n\t\t\t\tcase HOT_WORD_SEARCH:\n\t\t\t\t\treturn appKwdSearch(params);\n\t\t\t\tcase PKG_SEARCH:\n\t\t\t\t\treturn appPkgSearch(params);\n\t\t\t\tdefault:\n\t\t\t\t throw new AppDisException(ErrorCode.PARAM_ERROR,\"can not find the mapping interface:\"+params.getInterType().name());\n\t\t \n\t\t}\n\t}",
"public interface Action {\r\n\r\n /**\r\n * Execute the Action based on http request and response\r\n *\r\n * @param req the request\r\n * @param res the response\r\n * @return the jsp page to redirect the user\r\n */\r\n String execute(HttpServletRequest req, HttpServletResponse res);\r\n}",
"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 }",
"private void handleActionFoo(String param1, String param2) {\n // TODO: Handle action Foo\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"private void handleActionFoo(String param1, String param2) {\n // TODO: Handle action Foo\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"private void handleActionFoo(String param1, String param2) {\n // TODO: Handle action Foo\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"private void handleActionFoo(String param1, String param2) {\n // TODO: Handle action Foo\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"@Override\r\n protected void generateControllerPaths() {\r\n\r\n controllerPaths = new HashMap<>();\r\n\r\n controllerPaths.put( \"index\", pathRoot );\r\n controllerPaths.put( \"add\", pathRoot + \"/add\" );\r\n controllerPaths.put( \"edit\", pathRoot + \"/edit?id=\" );\r\n controllerPaths.put( \"delete\", pathRoot + \"/delete?id=\" );\r\n controllerPaths.put( \"manage\", pathRoot + \"/manage\" ); \r\n \r\n \r\n \r\n }",
"public interface Command {\n String index = \"mainPage.jsp\";\n\n String execute(HttpServletRequest request, Entity model);\n}",
"protected ModelAndView handleRequestInternal(HttpServletRequest arg0, HttpServletResponse arg1) throws Exception {\n\t\t\n\t\tSystem.out.println(\"IN CourceController\");\n\t\tcs=new CourseService();\n\t\tArrayList<String>courseList=cs.getCourses();\n\t\tSystem.out.println(\"ArrayList get0 \"+courseList.get(0));\n\t\t\n\t\treturn new ModelAndView(\"show\", \"AL\", courseList);\n\t}",
"public ModelAndView mostrarPaginaOp1(HttpServletRequest arg0, HttpServletResponse arg1) {\r\n\t\treturn new ModelAndView(\"index_op1\");\t}",
"public String handle(String path, HttpRequest req, HttpResponse resp){\n\n if(route.containsKey(path)){\n try {\n if(path.equals(\"/prueba\")){\n return httpOk() + \"prueba pasada\";\n }else if (path.equals(\"/dogs.jpg\")){\n return doDogs();\n }else if(path.equals(\"/cats.png\")){\n return doCats();\n }else if(path.equals(\"/js\")){\n return js();\n }else if(path.equals(\"/css\")){\n return doCss();\n }else{\n return httpOk() + route.get(path).invoke(null,null).toString();\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return httpNotOk() + \"Error\";\n }",
"@Override\n public String invoke(Event event, RequestMap requestMap, HttpServletRequest request, HttpServletResponse response) throws EventHandlerException {\n LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute(\"dispatcher\");\n if (dispatcher == null) {\n throw new EventHandlerException(\"The local service dispatcher is null\");\n }\n DispatchContext dctx = dispatcher.getDispatchContext();\n if (dctx == null) {\n throw new EventHandlerException(\"Dispatch context cannot be found\");\n }\n\n // get the details for the service(s) to call\n String mode = SYNC;\n String serviceName = null;\n\n if (UtilValidate.isEmpty(event.getPath())) {\n mode = SYNC;\n } else {\n mode = event.getPath();\n }\n\n // we only support SYNC mode in this handler\n if (!SYNC.equals(mode)) {\n throw new EventHandlerException(\"Async mode is not supported\");\n }\n\n // nake sure we have a defined service to call\n serviceName = event.getInvoke();\n if (serviceName == null) {\n throw new EventHandlerException(\"Service name (eventMethod) cannot be null\");\n }\n if (Debug.verboseOn()) {\n Debug.logVerbose(\"[Set mode/service]: \" + mode + \"/\" + serviceName, MODULE);\n }\n\n // some needed info for when running the service\n Locale locale = UtilHttp.getLocale(request);\n TimeZone timeZone = UtilHttp.getTimeZone(request);\n HttpSession session = request.getSession();\n GenericValue userLogin = (GenericValue) session.getAttribute(\"userLogin\");\n\n // get the service model to generate context(s)\n ModelService modelService = null;\n\n try {\n modelService = dctx.getModelService(serviceName);\n } catch (GenericServiceException e) {\n throw new EventHandlerException(\"Problems getting the service model\", e);\n }\n\n if (modelService == null) {\n throw new EventHandlerException(\"Problems getting the service model\");\n }\n\n if (Debug.verboseOn()) {\n Debug.logVerbose(\"[Processing]: SERVICE Event\", MODULE);\n }\n if (Debug.verboseOn()) {\n Debug.logVerbose(\"[Using delegator]: \" + dispatcher.getDelegator().getDelegatorName(), MODULE);\n }\n\n // check if we are using per row submit\n boolean useRowSubmit = request.getParameter(\"_useRowSubmit\") == null ? false\n : \"Y\".equalsIgnoreCase(request.getParameter(\"_useRowSubmit\"));\n\n // check if we are to also look in a global scope (no delimiter)\n boolean checkGlobalScope = request.getParameter(\"_checkGlobalScope\") == null ? true\n : !\"N\".equalsIgnoreCase(request.getParameter(\"_checkGlobalScope\"));\n\n // The number of multi form rows is retrieved\n int rowCount = UtilHttp.getMultiFormRowCount(request);\n if (rowCount < 1) {\n throw new EventHandlerException(\"No rows to process\");\n }\n\n // some default message settings\n String errorPrefixStr = UtilProperties.getMessage(\"DefaultMessagesUiLabels\", \"service.error.prefix\", locale);\n String errorSuffixStr = UtilProperties.getMessage(\"DefaultMessagesUiLabels\", \"service.error.suffix\", locale);\n String messagePrefixStr = UtilProperties.getMessage(\"DefaultMessagesUiLabels\", \"service.message.prefix\", locale);\n String messageSuffixStr = UtilProperties.getMessage(\"DefaultMessagesUiLabels\", \"service.message.suffix\", locale);\n\n // prepare the error message and success message lists\n List<Object> errorMessages = new LinkedList<>();\n List<String> successMessages = new LinkedList<>();\n\n boolean eventGlobalTransaction = event.isGlobalTransaction();\n\n // big try/finally to make sure commit or rollback are run\n boolean beganTrans = false;\n String returnString = null;\n try {\n if (eventGlobalTransaction) {\n // start the global transaction\n try {\n beganTrans = TransactionUtil.begin(modelService.getTransactionTimeout() * rowCount);\n } catch (GenericTransactionException e) {\n throw new EventHandlerException(\"Problem starting multi-service global transaction\", e);\n }\n }\n\n // now loop throw the rows and prepare/invoke the service for each\n for (int i = 0; i < rowCount; i++) {\n String curSuffix = UtilHttp.getMultiRowDelimiter() + i;\n boolean rowSelected = false;\n if (UtilValidate.isNotEmpty(request.getAttribute(UtilHttp.getRowSubmitPrefix() + i))) {\n rowSelected = request.getAttribute(UtilHttp.getRowSubmitPrefix() + i) == null ? false\n : \"Y\".equalsIgnoreCase((String) request.getAttribute(UtilHttp.getRowSubmitPrefix() + i));\n } else {\n rowSelected = request.getParameter(UtilHttp.getRowSubmitPrefix() + i) == null ? false\n : \"Y\".equalsIgnoreCase(request.getParameter(UtilHttp.getRowSubmitPrefix() + i));\n }\n\n // make sure we are to process this row\n if (useRowSubmit && !rowSelected) {\n continue;\n }\n\n // build the context\n Map<String, Object> serviceContext = new HashMap<>();\n for (ModelParam modelParam: modelService.getInModelParamList()) {\n String paramName = modelParam.getName();\n\n // Debug.logInfo(\"In ServiceMultiEventHandler processing input parameter [\" + modelParam.name +\n // (modelParam.optional?\"(optional):\":\"(required):\") + modelParam.mode + \"] for service [\" + serviceName + \"]\", MODULE);\n\n // don't include userLogin, that's taken care of below\n if (\"userLogin\".equals(paramName)) continue;\n // don't include locale, that is also taken care of below\n if (\"locale\".equals(paramName)) continue;\n // don't include timeZone, that is also taken care of below\n if (\"timeZone\".equals(paramName)) continue;\n\n Object value = null;\n if (UtilValidate.isNotEmpty(modelParam.getStringMapPrefix())) {\n Map<String, Object> paramMap = UtilHttp.makeParamMapWithPrefix(request, modelParam.getStringMapPrefix(), curSuffix);\n value = paramMap;\n } else if (UtilValidate.isNotEmpty(modelParam.getStringListSuffix())) {\n List<Object> paramList = UtilHttp.makeParamListWithSuffix(request, modelParam.getStringListSuffix(), null);\n value = paramList;\n } else {\n // check attributes; do this before parameters so that attribute which can be changed by code can\n // override parameters which can't\n value = request.getAttribute(paramName + curSuffix);\n\n // first check for request parameters\n if (value == null) {\n String name = paramName + curSuffix;\n\n String[] paramArr = request.getParameterValues(name);\n if (paramArr != null) {\n if (paramArr.length > 1) {\n value = Arrays.asList(paramArr);\n } else {\n value = paramArr[0];\n }\n }\n }\n\n // if the parameter wasn't passed and no other value found, check the session\n if (value == null) {\n value = session.getAttribute(paramName + curSuffix);\n }\n\n // now check global scope\n if (value == null) {\n if (checkGlobalScope) {\n String[] gParamArr = request.getParameterValues(paramName);\n if (gParamArr != null) {\n if (gParamArr.length > 1) {\n value = Arrays.asList(gParamArr);\n } else {\n value = gParamArr[0];\n }\n }\n if (value == null) {\n value = request.getAttribute(paramName);\n }\n if (value == null) {\n value = session.getAttribute(paramName);\n }\n }\n }\n\n // make any composite parameter data (e.g., from a set of parameters {name_c_date, name_c_hour, name_c_minutes})\n if (value == null) {\n value = UtilHttp.makeParamValueFromComposite(request, paramName + curSuffix);\n }\n\n if (value == null) {\n // still null, give up for this one\n continue;\n }\n\n if (value instanceof String && ((String) value).isEmpty()) {\n // interpreting empty fields as null values for each in back end handling...\n value = null;\n }\n }\n // set even if null so that values will get nulled in the db later on\n serviceContext.put(paramName, value);\n\n // Debug.logInfo(\"In ServiceMultiEventHandler got value [\" + value + \"] for input parameter [\" + paramName + \"] for service [\"\n // + serviceName + \"]\", MODULE);\n }\n\n // get only the parameters for this service - converted to proper type\n serviceContext = modelService.makeValid(serviceContext, ModelService.IN_PARAM, true, null, timeZone, locale);\n\n // include the UserLogin value object\n if (userLogin != null) {\n serviceContext.put(\"userLogin\", userLogin);\n }\n\n // include the Locale object\n if (locale != null) {\n serviceContext.put(\"locale\", locale);\n }\n\n // include the TimeZone object\n if (timeZone != null) {\n serviceContext.put(\"timeZone\", timeZone);\n }\n\n // Debug.logInfo(\"ready to call \" + serviceName + \" with context \" + serviceContext, MODULE);\n\n // invoke the service\n Map<String, Object> result = null;\n try {\n result = dispatcher.runSync(serviceName, serviceContext);\n } catch (ServiceAuthException e) {\n // not logging since the service engine already did\n errorMessages.add(messagePrefixStr + \"Service invocation error on row (\" + i + \"): \" + e.getNonNestedMessage());\n } catch (ServiceValidationException e) {\n // not logging since the service engine already did\n request.setAttribute(\"serviceValidationException\", e);\n List<String> errors = e.getMessageList();\n if (errors != null) {\n for (String message: errors) {\n errorMessages.add(\"Service invocation error on row (\" + i + \"): \" + message);\n }\n } else {\n errorMessages.add(messagePrefixStr + \"Service invocation error on row (\" + i + \"): \" + e.getNonNestedMessage());\n }\n } catch (GenericServiceException e) {\n Debug.logError(e, \"Service invocation error\", MODULE);\n errorMessages.add(messagePrefixStr + \"Service invocation error on row (\" + i + \"): \" + e.getNested() + messageSuffixStr);\n }\n\n if (result == null) {\n returnString = ModelService.RESPOND_SUCCESS;\n } else {\n // check for an error message\n String errorMessage = ServiceUtil.makeErrorMessage(result, messagePrefixStr, messageSuffixStr, \"\", \"\");\n if (UtilValidate.isNotEmpty(errorMessage)) {\n errorMessages.add(errorMessage);\n }\n\n // get the success messages\n if (UtilValidate.isNotEmpty(result.get(ModelService.SUCCESS_MESSAGE))) {\n String newSuccessMessage = (String) result.get(ModelService.SUCCESS_MESSAGE);\n if (!successMessages.contains(newSuccessMessage)) {\n successMessages.add(newSuccessMessage);\n }\n }\n if (UtilValidate.isNotEmpty(result.get(ModelService.SUCCESS_MESSAGE_LIST))) {\n List<String> newSuccessMessages = UtilGenerics.cast(result.get(ModelService.SUCCESS_MESSAGE_LIST));\n for (int j = 0; j < newSuccessMessages.size(); j++) {\n String newSuccessMessage = newSuccessMessages.get(j);\n if (!successMessages.contains(newSuccessMessage)) {\n successMessages.add(newSuccessMessage);\n }\n }\n }\n }\n // set the results in the request\n if ((result != null) && (result.entrySet() != null)) {\n for (Map.Entry<String, Object> rme: result.entrySet()) {\n String resultKey = rme.getKey();\n Object resultValue = rme.getValue();\n\n if (resultKey != null && !ModelService.RESPONSE_MESSAGE.equals(resultKey) && !ModelService.ERROR_MESSAGE.equals(resultKey)\n && !ModelService.ERROR_MESSAGE_LIST.equals(resultKey) && !ModelService.ERROR_MESSAGE_MAP.equals(resultKey)\n && !ModelService.SUCCESS_MESSAGE.equals(resultKey) && !ModelService.SUCCESS_MESSAGE_LIST.equals(resultKey)) {\n //set the result to request w/ and w/o a suffix to handle both cases: to have the result in each iteration and to prevent\n // its overriding\n request.setAttribute(resultKey + curSuffix, resultValue);\n request.setAttribute(resultKey, resultValue);\n }\n }\n }\n }\n } finally {\n if (!errorMessages.isEmpty()) {\n if (eventGlobalTransaction) {\n // rollback the global transaction\n try {\n TransactionUtil.rollback(beganTrans, \"Error in multi-service event handling: \" + errorMessages.toString(), null);\n } catch (GenericTransactionException e) {\n Debug.logError(e, \"Could not rollback multi-service global transaction\", MODULE);\n }\n }\n errorMessages.add(0, errorPrefixStr);\n errorMessages.add(errorSuffixStr);\n StringBuilder errorBuf = new StringBuilder();\n for (Object em: errorMessages) {\n errorBuf.append(em + \"\\n\");\n }\n request.setAttribute(\"_ERROR_MESSAGE_\", errorBuf.toString());\n returnString = \"error\";\n } else {\n if (eventGlobalTransaction) {\n // commit the global transaction\n try {\n TransactionUtil.commit(beganTrans);\n } catch (GenericTransactionException e) {\n Debug.logError(e, \"Could not commit multi-service global transaction\", MODULE);\n throw new EventHandlerException(\"Commit multi-service global transaction failed\");\n }\n }\n if (!successMessages.isEmpty()) {\n request.setAttribute(\"_EVENT_MESSAGE_LIST_\", successMessages);\n }\n returnString = \"success\";\n }\n }\n\n return returnString;\n }",
"public void transform(IPath operaModel, String actionModel) {\n\n\tURI inURI = URI.createPlatformResourceURI(operaModel.toString(), true);\n\tResource inResource = new ResourceSetImpl().getResource(inURI, true);\n\t\n\tURI outURI1 = URI.createPlatformResourceURI(actionModel, true);\t\n\tResource outResource1 = new ResourceSetImpl().createResource(outURI1);\n\t\n\tURI outURI2 = outURI1.trimFileExtension().appendFileExtension(\"OLCLMap\");\n\tResource outResource2 = new ResourceSetImpl().createResource(outURI2);\n\t\n\ttry {\n\t\tConvertOpera2Actions.convertOpera2Actions(inResource, outResource1, outResource2);\t\t\t\n\t\toutResource1.save(Collections.emptyMap());\n\t\toutResource2.save(Collections.emptyMap());\n\t\t\n\t} catch (Exception e) {\n\t\tDiagnostic diagnostic = BasicDiagnostic.toDiagnostic(e);\n\t\tInvokeActivator.getDefault().getLog().log(BasicDiagnostic.toIStatus(diagnostic));\n\t}\t\t\n\t\t\n\t\n}",
"@Timed\n @RequestMapping(\n method = RequestMethod.GET,\n value = \"/views\"\n )\n public String handleViews(\n @Nonnull Model model\n ) {\n LOGGER.debug(\"handleViews called\");\n return handleSinglePageApp(model);\n }",
"Route route(String path);",
"@RequestMapping(value = \"/opsgis\", method = RequestMethod.GET)\r\n public String opsgis(HttpServletRequest request, ModelMap model) throws ServletException, IOException {\r\n return(\"redirect:/restricted/opsgis\"); \r\n }",
"@Override\n\tpublic ActionResult defaultMethod(PortalForm form, HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}",
"@Override public void doAction(int option)\r\n{\r\n switch(option)\r\n {\r\n case 1: //view the map\r\n viewMap();\r\n break;\r\n case 2: //view/print a list\r\n viewList();\r\n break;\r\n case 3: // Move to a new location\r\n moveToNewLocation();\r\n break;\r\n case 4: // Manage the crops\r\n manageCrops();\r\n break;\r\n case 5: // Return to Main Menu\r\n System.out.println(\"You will return to the Main Menu now\");\r\n \r\n }\r\n}",
"@Override\n\tpublic void openDocument(String path, String name) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}",
"@Override\n\t\t\tpublic Object handle(Request req, Response res) {\n\t\t\t\tfinal String op = req.params(\":op\");\n\t\t\t\tfinal String path = req.queryParams(\"path\");\n\t\t\t\t//--- list will list down all available results for a course ---//\n\t\t\t\tif (op.equals(\"list\")) return Results.list(path);\n\t\t\t\t//--- get will display one single result ---//\n\t\t\t\telse if (op.equals(\"get\")) return Results.get(path);\n\t\t\t\telse return null;\n\t\t\t}",
"protected void doProcess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\trequest.setCharacterEncoding(\"utf-8\");\r\n\t\tString requestURI = request.getRequestURI();\r\n\t\tString contextPath = request.getContextPath();\r\n\t\tString command = requestURI.substring(contextPath.length());\r\n\t\tAction action = null;\r\n\t\tActionForward forward = null;\r\n\t\t\r\n\t\tif (command.equals(\"/managerLogin.ma\")) {\r\n\t\t\taction = new ManagerLogInAction();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tforward = action.execute(request, response);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (command.equals(\"/managerLogOut.ma\")) {\r\n\t\t\taction = new ManagerLogOutAction();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tforward = action.execute(request, response);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (command.equals(\"/memberList.ma\")) {\r\n\t\t\taction = new MemberListAction();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tforward = action.execute(request, response);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (command.equals(\"/managerDelete.ma\")) {\r\n\t\t\taction = new ManagerDeleteFromMemberAction();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tforward = action.execute(request, response);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\tif (forward != null) {\r\n\t\t\tif (forward.isRedirect()) {\r\n\t\t\t\tresponse.sendRedirect(forward.getPath());\r\n\t\t\t} else {\r\n\t\t\t\tRequestDispatcher dispatcher = request.getRequestDispatcher(forward.getPath());\r\n\t\t\t\tdispatcher.forward(request, response);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@RequestMapping(\"/to_index\")\n\tpublic String to_index(HttpServletRequest request,\n\t\t\tHttpServletResponse response,Integer jump) throws Exception {\n\t\tHttpSession session = request.getSession();\n\t\tsession.removeAttribute(\"currentFunc\");\n//\t\tEhrUser user = userService.selectUserById(Long.valueOf(userId));\n//\t\tHashMap map = userService.login(user.getUserCode(), password);\n//\t\tuser = (EhrUser) map.get(Constants.LOGIN_USER);\n//\t\tsession.setAttribute(Constants.LOGIN_USER, user);\n\t\t\n\t\t//if(user != null && user.getUserType() == 2){\n\t\tif(RequestUtil.hasRoleOfName(\"企业管理员\")){\n\t\t\t//if(jump == null || jump.intValue() != 1){\n\t\t\t//\t//如果未选择跳过,则判断是否转向完善信息页面\t\n\t\t\t//\tEhrUser user = RequestUtil.getLoginUser(request);\n\t\t\t//\tif(user.getCompany().getPerfectDate() == null){\n\t\t\t//\t\tresponse.sendRedirect(request.getContextPath() + \"/to_perfect\");\n\t\t\t//\t\treturn null;\n\t\t\t//\t}\n\t\t\t//}\n\t\t\treturn \"index/company_index\";\n\t\t}else if(RequestUtil.hasRoleOfName(\"HR\")){\n\t\t\t//return \"index/hr_index\";\n\t\t\treturn \"common/index\";\n\t\t}else{\n\t\t\treturn \"common/index\";\n\t\t}\n\t}",
"private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}",
"@Override\n\tpublic ModelAndView index(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\tString optype=request.getParameter(\"optype\");\n\t\tEcAccssMode ecAccssMode=new EcAccssMode();\n\t\tbindObject(request, ecAccssMode);\n\t\tint extjsPage[]=getExtJsPage(request);\n\t\tif(StringUtils.isNotBlank(optype)){\n\t\t\textjsPage[1]=500;\n\t\t}\n\t\t//Page<EcAccssMode> page= getEcAccssModeDao().findAll(new PageRequest(0, 2));\n\t\t//logger.info(page.getNumber()+\":\"+page.getSize()+\":\"+page.getTotalElements()+\":\"+page.getTotalPages());\n\t\tPageBean pageBean=getEcAccssModeDao().findPageCondition(ecAccssMode, extjsPage[0], extjsPage[1]);\n\t\t//renderExtjsList(response, page.getContent(), page.getTotalElements(), new String[]{\"ecOperators\"});\n\t\trenderExtjsList(response, pageBean.getDataList(), pageBean.getTotalSize(), new String[]{\"ecOperators\"});\n\t\treturn null;\n\t}"
] | [
"0.55777013",
"0.5482914",
"0.5422192",
"0.5364552",
"0.5273891",
"0.5236953",
"0.5215377",
"0.5206222",
"0.5153383",
"0.5122118",
"0.5083921",
"0.5076866",
"0.5074371",
"0.50721794",
"0.50696146",
"0.5054322",
"0.50515825",
"0.5040245",
"0.49980715",
"0.49685207",
"0.49585804",
"0.49461097",
"0.4946024",
"0.49304196",
"0.49264014",
"0.49186414",
"0.49049765",
"0.48975724",
"0.48816654",
"0.48581058",
"0.48545572",
"0.48516846",
"0.48506558",
"0.4839277",
"0.4838918",
"0.4836061",
"0.48288232",
"0.48254418",
"0.48202366",
"0.4815575",
"0.48106584",
"0.48070055",
"0.47968337",
"0.4785195",
"0.47771543",
"0.47721797",
"0.47604",
"0.47389197",
"0.47380704",
"0.47311744",
"0.47310084",
"0.47307616",
"0.47274372",
"0.4718864",
"0.47133812",
"0.47013366",
"0.47000825",
"0.4694274",
"0.46895325",
"0.46892002",
"0.4682818",
"0.46689165",
"0.46674976",
"0.46594703",
"0.46499017",
"0.46490157",
"0.46480146",
"0.46471804",
"0.46466514",
"0.4645827",
"0.46453518",
"0.4641389",
"0.46384096",
"0.4626835",
"0.4624597",
"0.46238366",
"0.46227634",
"0.46106455",
"0.4601515",
"0.4601515",
"0.4601515",
"0.4601515",
"0.4594626",
"0.4589619",
"0.45852792",
"0.45838764",
"0.45816946",
"0.45807382",
"0.45652318",
"0.45614675",
"0.4561369",
"0.4561104",
"0.4555766",
"0.45412636",
"0.45408368",
"0.45346102",
"0.45346102",
"0.45282093",
"0.45271882",
"0.4524015",
"0.45238173"
] | 0.0 | -1 |
Creates a new instance. | public FilmCategoryId() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Instance createInstance();",
"public void create(){}",
"public Instance() {\n }",
"private Instantiation(){}",
"private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}",
"void create(T instance) throws IOException;",
"public void create() {\n\t\t\n\t}",
"Reproducible newInstance();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public T newInstance();",
"public void makeInstance() {\n\t\t// Create the attributes, class and text\n\t\tFastVector fvNominalVal = new FastVector(2);\n\t\tfvNominalVal.addElement(\"ad1\");\n\t\tfvNominalVal.addElement(\"ad2\");\n\t\tAttribute attribute1 = new Attribute(\"class\", fvNominalVal);\n\t\tAttribute attribute2 = new Attribute(\"text\",(FastVector) null);\n\t\t// Create list of instances with one element\n\t\tFastVector fvWekaAttributes = new FastVector(2);\n\t\tfvWekaAttributes.addElement(attribute1);\n\t\tfvWekaAttributes.addElement(attribute2);\n\t\tinstances = new Instances(\"Test relation\", fvWekaAttributes, 1); \n\t\t// Set class index\n\t\tinstances.setClassIndex(0);\n\t\t// Create and add the instance\n\t\tInstance instance = new Instance(2);\n\t\tinstance.setValue(attribute2, text);\n\t\t// Another way to do it:\n\t\t// instance.setValue((Attribute)fvWekaAttributes.elementAt(1), text);\n\t\tinstances.add(instance);\n \t\tSystem.out.println(\"===== Instance created with reference dataset =====\");\n\t\tSystem.out.println(instances);\n\t}",
"@Override\n\tpublic void create() {\n\n\t}",
"T create();",
"T create();",
"@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }",
"public CMObject newInstance();",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"@Override\n\tpublic void create () {\n\n\t}",
"void createNewInstance(String filename)\n {\n iIncomingLobsFactory = new incomingLobsFactory();\n iIncomingLobsFactory.setPackageName(\"com.loadSample\");\n \n // include schemaLocation hint for validation\n iIncomingLobsFactory.setXSDFileName(\"LoadSample.xsd\");\n \n // encoding for output document\n iIncomingLobsFactory.setEncoding(\"UTF8\");\n \n // encoding tag for xml declaration\n iIncomingLobsFactory.setEncodingTag(\"UTF-8\");\n \n // Create the root element in the document using the specified root element name\n iIncomingLobs = (incomingLobs) iIncomingLobsFactory.createRoot(\"incomingLobs\");\n createincomingLobs();\n \n iIncomingLobsFactory.save(filename);\n }",
"private synchronized static void createInstance(){\r\n\t\tif (instance == null){\r\n\t\t\tinstance = new Casino();\r\n\t\t}\r\n\t}",
"public abstract void create();",
"InstanceModel createInstanceOfInstanceModel();",
"public static void createInstance()\n {\n if (instance == null) {\n // Create the instance\n instance = new SalesOrderDataSingleton();\n }\n }",
"public Instance() {\n super(Routing.NAMESPACE, \"instance\");\n }",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"private Vehicle createNewVehicle() {\n\t\tString make = generateMake();\n\t\tString model = generateModel();\n\t\tdouble weight = generateWeight(model);\n\t\tdouble engineSize = generateEngineSize(model);\n\t\tint numberOfDoors = generateNumberOfDoors(model);\n\t\tboolean isImport = generateIsImport(make);\n\t\t\n\t\tVehicle vehicle = new Vehicle(make, model, weight, engineSize, numberOfDoors, isImport);\n\t\treturn vehicle;\t\t\n\t}",
"public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }",
"public Factory() {\n\t\tsuper();\n\t}",
"private synchronized static void createInstance() {\n if (INSTANCE == null) { \n INSTANCE = new DataConnection();\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public T newInstance()\n throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n if (constructor_ == null) {\n constructor_ = getRawClass().getConstructor();\n }\n\n return (T)constructor_.newInstance();\n }",
"public static void createInstance(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}",
"@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}",
"public abstract boolean create(T newInstance);",
"private static synchronized void createInstance() {\r\n\t\tif (instance == null)\r\n\t\t\tinstance = new LOCFacade();\r\n\t}",
"public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}",
"@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}",
"<T> T newInstance(URI description) throws EnvironmentException;",
"public Idea create() {\n \t\t\tIdea idea = new Idea();\n \n \t\t\treturn idea;\n \t\t}",
"public static void createInstance(Model model, Resource instanceResource) {\r\n\t\tBase.createInstance(model, RDFS_CLASS, instanceResource);\r\n\t}",
"public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}",
"@Override\n\tpublic ModIndexedInstance createNewInstance() {\n\t\tModIndexedInstance newInst = new ModIndexedInstance(); // create the new instance\n\t\tnewInst.setRegComp(this); // set component type of new instance\n\t\taddInstanceOf(newInst); // add instance to list for this comp\n\t\treturn newInst;\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public Factory() {\n this(getInternalClient());\n }",
"For createFor();",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"public Game getNewInstance() {\n try {\n return classObj.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n throw new RuntimeException(\"Error generating \" + this + \" game\");\n }\n }",
"T create() throws PersistException;",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public ApplicationCreator() {\n }",
"@Override\r\n public void instantiate() {\r\n }",
"public void create () {\n // TODO random generation of a ~100 x 100 x 100 world\n }",
"public SingleRequest<?> create() {\n return new SingleRequest<>();\n }",
"public ObjectFactory() {\n\t}",
"public ObjectFactory() {\r\n\t}",
"public Open() {\n //creates a new open instance\n }",
"protected abstract void construct();",
"public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }",
"@Override\r\n\tpublic ItemInstance createItemInstance() {\n\t\treturn new HpInstance();\r\n\t}",
"private static void createInstance() {\n if (mApiInterface == null) {\n synchronized(APIClient.class) {\n if (mApiInterface == null) {\n mApiInterface = buildApiClient();\n }\n }\n }\n }",
"Klassenstufe createKlassenstufe();",
"Snapshot create();",
"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 }",
"public static synchronized void constructInstance()\n {\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, false );\n\n if ( ourInstance != null )\n {\n throw new IllegalStateException( myName + \" Already Constructed\" );\n }\n ourInstance = new ElbowSubsystem();\n\n SmartDashboard.putBoolean( TelemetryNames.Elbow.status, true );\n }",
"public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }",
"public Object createNew(String typename, Object... args) \n\t\tthrows \tIllegalAccessException, \n\t\t\tInstantiationException, \n\t\t\tClassNotFoundException,\n\t\t\tNoSuchMethodException,\n\t\t\tInvocationTargetException \n\t{\n\t\tswitch(args.length) \n\t\t{\n\t\tcase 1 : return Class.forName(typename).getConstructor(args[0].getClass()).newInstance(args[0]);\n\t\tcase 2 : return Class.forName(typename).getConstructor(args[0].getClass(), args[1].getClass()).\n\t\t\tnewInstance(args[0], args[1]);\n\t\t}\n\t\treturn null;\n\t}",
"public static IPCGCallDetailCreator instance()\r\n {\r\n if (instance == null)\r\n {\r\n instance = new IPCGCallDetailCreator();\r\n }\r\n return instance;\r\n }",
"public Object buildNewInstance() throws DescriptorException {\n if (this.isUsingDefaultConstructor()) {\n return this.buildNewInstanceUsingDefaultConstructor();\n } else {\n return this.buildNewInstanceUsingFactory();\n }\n }",
"void create(T t);",
"void create( State state );",
"public Activator() {\r\n\t}",
"OBJECT createOBJECT();",
"public Produto() {}",
"public T safeNewInstance() {\n try {\n return newInstance();\n } catch (NoSuchMethodException e) {\n throw new IllegalArgumentException(e);\n } catch (IllegalAccessException e) {\n throw new IllegalArgumentException(e);\n } catch (InvocationTargetException e) {\n throw new IllegalArgumentException(e);\n } catch (InstantiationException e) {\n throw new IllegalArgumentException(e);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic AnalysisGraph createNewInstance() {\n\t\tAnalysisGraph graph = new AnalysisGraph();\n\t\tgraph.currentIndex = currentIndex;\n\t\t\n\t\tgraph.nodes = (HashMap<String, Node>) nodes.clone();\n\t\tgraph.nodeList = (ArrayList<Node>)((ArrayList<Node>) nodeList).clone();\n\t\tgraph.links = (ArrayList<Link>)((ArrayList<Link>) links).clone();\n\t\treturn graph;\n\t}",
"DynamicInstance createDynamicInstance();",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] | [
"0.7834167",
"0.72893584",
"0.70771503",
"0.7048765",
"0.70209944",
"0.6839274",
"0.67782235",
"0.6770133",
"0.67429745",
"0.6701039",
"0.6690158",
"0.6630354",
"0.66046286",
"0.6600776",
"0.6600776",
"0.6597608",
"0.6592152",
"0.6564594",
"0.65268713",
"0.652679",
"0.6475239",
"0.6442598",
"0.63414943",
"0.63365746",
"0.63303816",
"0.63249475",
"0.627689",
"0.627521",
"0.6227869",
"0.620804",
"0.6167403",
"0.6164787",
"0.610737",
"0.6102229",
"0.60939527",
"0.60640883",
"0.60597515",
"0.60330635",
"0.60064733",
"0.600185",
"0.59933734",
"0.59891814",
"0.5978862",
"0.5975761",
"0.59642875",
"0.59642875",
"0.59642875",
"0.595006",
"0.5948986",
"0.5939949",
"0.5935609",
"0.59320545",
"0.5930863",
"0.5930863",
"0.5930808",
"0.59303784",
"0.59288776",
"0.59219015",
"0.5912657",
"0.5900076",
"0.58830214",
"0.5879637",
"0.5878685",
"0.58779675",
"0.58684635",
"0.5859659",
"0.5852349",
"0.5844357",
"0.5844119",
"0.58357304",
"0.582402",
"0.581462",
"0.58129567",
"0.5803098",
"0.58003926",
"0.5787434",
"0.5786469",
"0.57835597",
"0.578337",
"0.5780014",
"0.57761306",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006",
"0.5772006"
] | 0.0 | -1 |
Returns a string representation of the object. | @Override
public String toString() {
return super.toString() + "{"
+ "film=" + film
+ ",category=" + category
+ "}";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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}",
"public String toString() { return stringify(this, true); }",
"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}",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"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 }",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}",
"public String objectToString() {\n \n StringBuilder s = new StringBuilder(new String(\"\"));\n if(aggressor instanceof Town) {\n s.append(((Town) aggressor).getName()).append(\" \");\n } else {\n s.append(((Nation) aggressor).getName()).append(\" \");\n }\n if(defender instanceof Town) {\n s.append(((Town) defender).getName()).append(\" \");\n } else {\n s.append(((Nation) defender).getName()).append(\" \");\n }\n s.append(aggressorPoints).append(\" \");\n s.append(defenderPoints).append(\" \");\n for (Town town : towns.keySet()) {\n s.append(town.getName()).append(\" \");\n s.append(towns.get(town)).append(\" \");\n }\n\n if (rebelwar != null)\n s.append(\" \").append(rebelwar.getName());\n else\n s.append(\" \" + \"n u l l\");\n\n return s.toString();\n }",
"public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }",
"@Override\n public String toString() {\n return stringBuilder.toString() + OBJECT_SUFFIX;\n }",
"public String toString() {\n\t\treturn toString(true);\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\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"Object [name = \" + name.get() + \", typ = \" + typ.get() + \"]\";\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(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() {\n\treturn createString(data);\n }",
"public String toString() {\n\t\treturn toString(this);\n\t}",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"@Override\r\n\tpublic String toString();",
"public String toString(){\n \treturn \"todo: use serialize() method\";\r\n }",
"public String toString() ;",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }",
"@Override public String toString();",
"String objectWrite();",
"@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 }",
"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 }",
"public String toString() {\n return toDisplayString();\n }",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}",
"@Override\n public String toString() {\n return toString(false, true, true, null);\n }",
"@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\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\n public final String toString() {\n return asString(0, 4);\n }",
"@Override\r\n public String toString();",
"public String toString() {\n\t\treturn toString(0, 0);\n\t}",
"@Override\n public String toString() {\n return gson.toJson(this);\n }",
"@Override\n\tpublic String toString();",
"@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}",
"@Override\n public String toString() {\n return ObjectContracts.toString(this, \"objectType\", \"name\", \"atPath\");\n }",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"@Override\r\n String toString();",
"public String toString(Object o) { return Objects.toString(o,null); }",
"@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 }",
"@Override\n String toString();",
"@Override\n String toString();",
"public String toString(){\n return XMLParser.parseObject(this);\n }",
"@Override\n public String toString();",
"@Override\n public String toString();",
"@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\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\t\tStringBuffer buffer = new StringBuffer();\n\t\tthis.createSpecSection(buffer);\n\t\tthis.createOperatorSection(buffer);\n\t\treturn buffer.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }",
"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 }",
"public String toString()\n {\n return Native.getNumeralString(getContext().nCtx(), getNativeObject());\n }",
"public static String dump(Object object) {\n return dump(object, null, 0);\n }",
"@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 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\tString toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();",
"String toString();"
] | [
"0.81259614",
"0.79603577",
"0.7928343",
"0.7912789",
"0.78890985",
"0.78890985",
"0.77969325",
"0.7732954",
"0.7731923",
"0.765436",
"0.7644027",
"0.7640679",
"0.7614636",
"0.7579365",
"0.75507635",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7524767",
"0.7523658",
"0.75223196",
"0.7517211",
"0.7489221",
"0.74728787",
"0.7467952",
"0.7440227",
"0.74384296",
"0.742534",
"0.74206084",
"0.74206084",
"0.74206084",
"0.74173605",
"0.7401851",
"0.74004936",
"0.7392208",
"0.73906434",
"0.7388386",
"0.7388296",
"0.7386606",
"0.7383917",
"0.73793674",
"0.7370523",
"0.7367732",
"0.73669744",
"0.73662686",
"0.735713",
"0.7337204",
"0.73363405",
"0.73289216",
"0.7321754",
"0.7321754",
"0.7321559",
"0.7299995",
"0.7290664",
"0.72745425",
"0.72745425",
"0.7268704",
"0.7268234",
"0.7268234",
"0.72679454",
"0.72570616",
"0.72538424",
"0.7252531",
"0.7244466",
"0.7236616",
"0.72344327",
"0.7227799",
"0.7221114",
"0.7216103",
"0.72116655",
"0.72116655",
"0.7211518",
"0.7200916",
"0.7200916",
"0.7200916",
"0.7200916",
"0.7200916",
"0.7200916",
"0.7200916",
"0.7200916",
"0.7200916",
"0.7200916",
"0.7200916"
] | 0.0 | -1 |
Returns a hash code value for the object. | @Override
public int hashCode() {
return Objects.hash(getFilm(), getCategory());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int hashcode();",
"public String getHashCode();",
"int computeHashCode(byte val);",
"public native int __hashCode( long __swiftObject );",
"static int getHash(Object obj) {\n return getHash(new HashSet<Class>(), obj, 0);\n }",
"public int hashCode() {\n\t\treturn hash(objects); //return the hash code of the objects\n\t}",
"public int generateHashCode() {\n int code = getClass().hashCode();\n ASTSpanInfo temp_info = getInfo();\n code ^= temp_info.hashCode();\n LHS temp_obj = getObj();\n code ^= temp_obj.hashCode();\n Expr temp_index = getIndex();\n code ^= temp_index.hashCode();\n return code;\n }",
"public int getHashCode(){\n return hashCode();\n }",
"final int hash(E object)\n {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins hash.\n int h = object.hashCode();\n h += (h << 15) ^ 0xffffcd7d;\n h ^= (h >>> 10);\n h += (h << 3);\n h ^= (h >>> 6);\n h += (h << 2) + (h << 14);\n h = h ^ (h >>> 16);\n return h;\n }",
"protected int computeHashCode() {\n return flags * 17\n + (var != null ? var.hashCode() : 0)\n + (num != null ? num.hashCode() : 0)\n + (str != null ? str.hashCode() : 0)\n + (object_labels != null ? object_labels.hashCode() : 0)\n + (getters != null ? getters.hashCode() : 0)\n + (setters != null ? setters.hashCode() : 0)\n + (excluded_strings != null ? excluded_strings.hashCode() : 0)\n + (included_strings != null ? included_strings.hashCode() : 0)\n + (functionPartitions != null ? functionPartitions.hashCode() : 0)\n + (functionTypeSignatures != null ? functionTypeSignatures.hashCode() : 0);\n }",
"public int hashCode() {\n long hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getProjectName());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getDataProvider());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getPrimaryInvestigator());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getCreatedBy());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getCreatedTime());\n return (int)(hash % Integer.MAX_VALUE);\n }",
"public int hashCode()\n {\n int code = 0;\n int i;\n int shift = 0;\n \n \t\tint byteLength = getLengthInBytes();\n for( i = 0; i < byteLength; i++)\n {\n code ^= (value[i] & 0xff)<<shift;\n shift += 8;\n if( 32 <= shift)\n shift = 0;\n }\n return code;\n }",
"public final int hashCode() {\r\n return _value;\r\n }",
"int getHash();",
"public int hashCode() {\n int hash = 104473;\n if (token_ != null) {\n // Obtain unencrypted form as common base for comparison\n byte[] tkn = getToken();\n for (int i=0; i<tkn.length; i++)\n hash ^= (int)tkn[i];\n }\n hash ^= (type_ ^ 14401);\n hash ^= (timeoutInterval_ ^ 21327);\n hash ^= (isPrivate() ? 15501 : 12003);\n if (getPrincipal() != null)\n hash ^= getPrincipal().hashCode();\n if (getSystem() != null)\n hash ^= getSystem().getSystemName().hashCode();\n return hash;\n }",
"public int hashCode() {\r\n\t\treturn this.value().hashCode();\r\n\t}",
"public int hashCode();",
"public int hashCode();",
"public int hashCode();",
"public int hashCode();",
"@Override // com.google.common.base.Equivalence\n public int doHash(Object o) {\n return System.identityHashCode(o);\n }",
"int hashCode();",
"int hashCode();",
"@Override // com.google.common.base.Equivalence\n public int doHash(Object o) {\n return o.hashCode();\n }",
"int\thashCode();",
"public int hashCode() {\n long hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getProject());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCodeFK(getUser());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getStatus());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getLastActivityDate());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasPiSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasDpSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasAdminSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getHasRequestorSeen());\n hash = hash * UtilConstants.HASH_PRIME + objectHashCode(getEmailStatus());\n return (int)(hash % Integer.MAX_VALUE);\n }",
"public int hashCode() {\n if (getInternalValue() == null) {\n return -3;\n }\n else {\n return super.hashCode();\n }\n }",
"public int\thashCode() { return value; }",
"public abstract int getHash();",
"public int hashCode()\n\t{\n\t\treturn System.identityHashCode(userObject);\n\t}",
"protected abstract int hashOfObject(Object key);",
"public int hashCode() {\n return (name.ordinal() + 5) * 51;\n }",
"public int hashCode()\n {\n int i = 0;\n if ( hasCode() )\n i ^= getCode().hashCode();\n return i;\n }",
"public int hashCode()\n {\n return hash;\n }",
"public int hashCode() {\n\t\treturn BeanTools.createHashcode(id, consultContent, consultTime);\r\n\t}",
"public int getHash() {\n return hash_;\n }",
"public int hashCode() {\n return m_value;\n }",
"public int getHash() {\n return hash_;\n }",
"public int generateHashCode() {\n int code = getClass().hashCode();\n boolean temp_fromSource = isFromSource();\n code ^= temp_fromSource ? 1231 : 1237;\n IRId temp_name = getName();\n code ^= temp_name.hashCode();\n List<IRId> temp_params = getParams();\n code ^= temp_params.hashCode();\n List<IRStmt> temp_args = getArgs();\n code ^= temp_args.hashCode();\n List<IRFunDecl> temp_fds = getFds();\n code ^= temp_fds.hashCode();\n List<IRVarStmt> temp_vds = getVds();\n code ^= temp_vds.hashCode();\n List<IRStmt> temp_body = getBody();\n code ^= temp_body.hashCode();\n return code;\n }",
"@Override\n public int hashCode() {\n return Objects.hash(this.getValue());\n }",
"public int hashCode() {\n\t\tlong code = 0;\n\t\tint elements = _rowCount * _columnCount;\n\n\t\tfor (int i = 0; i < elements; i++) {\n\t\t\tcode += _value[i];\n\t\t}\n\n\t\treturn (int) code;\n\t}",
"public static int defaultHashCode(DataValue obj) {\r\n final int prime = 31;\r\n int result = 1;\r\n result = prime * result + obj.getName().hashCode();\r\n if (obj.getObject() == null) {\r\n result = prime * result;\r\n } else if (obj.getObject().getClass().isArray()) {\r\n result = prime * result + Arrays.hashCode((byte[]) obj.getObject());\r\n } else {\r\n result = prime * result + obj.getObject().hashCode();\r\n }\r\n return result;\r\n }",
"public static int hashCode(Object obj)\n {\n return System.identityHashCode(obj);\n }",
"public int hashCode() {\n int result;\n result = (this.time != null ? this.time.hashCode() : 0);\n result = 29 * result + (this.value != null ? this.value.hashCode() : 0);\n return result;\n }",
"public int hashCode() {\n try {\n int res = 0;\n byte[] array = getEncoded();\n for (int i=0; i<array.length; i++) {\n res += array[i] & 0xFF;\n }\n return res;\n } catch (CRLException e) {\n return 0;\n }\n }",
"public int hashCode()\n {\n return (int)(swigCPtr^(swigCPtr>>>32));\n }",
"public int hashCode() {\n\t\treturn new HashCodeBuilder().append(obox).append(wordOffsets).append(occlusions).toHashCode();\n\t}",
"public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (role != null ? role.hashCode() : 0);\n return hash;\n }",
"public int hashCode() {\n final int HASH_MULTIPLIER = 29;\n int h = HASH_MULTIPLIER * FName.hashCode() + LName.hashCode();\n h = HASH_MULTIPLIER * h + ((Integer)ID).hashCode();\n return h;\n }",
"@Override\n public int hashCode() {\n return value;\n }",
"public int hashCode(){\n int hash = HashCodeUtil.SEED;\n\n hash = HashCodeUtil.hash(hash,getEventTimeMillis());\n hash = HashCodeUtil.hash(hash,getEventId());\n hash = HashCodeUtil.hash(hash,getAuthenticationType());\n hash = HashCodeUtil.hash(hash,getServiceHost());\n hash = HashCodeUtil.hash(hash,getRequesterIp());\n hash = HashCodeUtil.hash(hash,getSessionId());\n hash = HashCodeUtil.hash(hash,getResourceHost());\n hash = HashCodeUtil.hash(hash,getPrincipalName());\n hash = HashCodeUtil.hash(hash,getEventType());\n hash = HashCodeUtil.hash(hash,getServiceId());\n hash = HashCodeUtil.hash(hash,getResourceId());\n\n\n return hash;\n\n }",
"public int hashCode() {\n return c;\n }",
"@Override\n\tpublic int hashCode() {\n\t\t\n\t\treturn (int)id * name.hashCode() * email.hashCode();\n\t\t//int hash = new HashCodeBuilder(17,37).append(id).append(name); //can be added from Apache Commons Lang's HashCodeBuilder class\n\t}",
"public abstract int hashCode();",
"public int hashCode() {\n return hash.hashCode();\n }",
"@Override\n public int hashCode() {\n int B = 31, M = 1000000007, code = 0;\n for(int pos = 0; pos < this.objectA.length(); pos++) {\n code = ((this.objectA.charAt(pos) - 'a') + B * code) % M;\n }\n return (code * this.objectB) % M;\n }",
"public int hashCode() {\n\t\treturn toString().hashCode();\n\t}",
"public int hashCode() {\n return Objects.hashCode(this);\n }",
"public int hashCode() {\n return _ordinal;\n }",
"@Override\n\t\tpublic int hashCode()\n\t\t{\n\t\t\treturn absorber.getObjectId();\n\t\t}",
"public int hashCode() {\n if (hashCode != 0){\n return hashCode;\n }\n return hashCode = computeHash();\n }",
"@Override\n public int hashCode() {\n \n final int code = 24;\n int result = 1;\n result = code * result + ((id == null) ? 0 : id.hashCode());\n return result;\n }",
"public int hashCode() {\n return 37 * 17;\n }",
"public static int hashCode(final Object object)\n {\n if (object instanceof Enum)\n {\n return object.toString().hashCode();\n }\n\n return object == null ? 0 : object.hashCode();\n }",
"@Override\n public int hashCode() {\n if (hash == 0)\n hash = MD5.getHash(owner.getLogin() + description).hashCode();\n return hash;\n }",
"public int hashcode(){\r\n\t\t\r\n\t\treturn last_Name.hashcode();\r\n\t}",
"public int hashCode()\n {\n if (this.hashValue == 0)\n {\n int result = 17;\n int wsidValue = this.getWsid() == null ? 0 : this.getWsid().hashCode();\n result = result * 37 + wsidValue;\n this.hashValue = result;\n }\n return this.hashValue;\n }",
"public static int safeHashcode(Object o)\n {\n if (o == null)\n {\n return 0;\n }\n else\n {\n return o.hashCode();\n }\n }",
"@Override\n public int hashCode()\n {\n return this.value.hashCode();\n }",
"@Override\n public int hashCode() {\n return new HashCodeBuilder(17, 37)\n .append(getName())\n .append(getType())\n .toHashCode();\n }",
"public int hashCode() {\n // For speed, this hash code relies only on the hash codes of its select\n // and criteria clauses, not on the from, order by, or option clauses\n int myHash = 0;\n myHash = HashCodeUtil.hashCode(myHash, this.operation);\n myHash = HashCodeUtil.hashCode(myHash, getProjectedQuery());\n return myHash;\n }",
"public int hashCode() {\n\t\t// simple recipe for generating hashCode given by\n\t\t// Effective Java (Addison-Wesley, 2001)\n\t\tint result = 17;\n\t\tresult = 37 * result + methodName.hashCode();\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic int hashCode() {\n\t\tint result = 17;\r\n\t\tresult = 37*result+(int) (id ^ (id>>>32));\r\n\t\t//result = 37*result+(name==null?0:name.hashCode());\r\n\t\t//result = 37*result+displayOrder;\r\n\t\t//result = 37*result+(this.url==null?0:url.hashCode());\r\n\t\treturn result;\r\n\t}",
"public int hashCode()\n {\n int hash = 7;\n hash = 83 * hash + (counter != null ? counter.hashCode() : 0);\n return hash;\n }",
"public int hashCode() {\r\n\t\treturn this.iD;\r\n\t}",
"public String getHashValue() {\n return hashValue;\n }",
"@Override\n public int hashCode() {\n // name's hashCode is multiplied by an arbitrary prime number (13)\n // in order to make sure there is a difference in the hashCode between\n // these two parameters:\n // name: a value: aa\n // name: aa value: a\n return key.hashCode() * 13 + (value == null ? 0 : value.hashCode());\n }",
"@Override\n public int hashCode() {\n\n if (this.hashCode == null) {\n int hashCode = this.symbol.hashCode();\n\n if (this.isLookahead) {\n hashCode *= 109;\n }\n\n this.hashCode = hashCode;\n }\n\n return this.hashCode;\n }",
"@Override\n public int hashCode() {\n // Declare hash and assign value\n int hash = 7;\n // Generate hash integer\n hash = 31 * hash + (int) this.getCrossingTime();\n hash = 31 * hash + (this.getName() == null ? 0 : this.getName().hashCode());\n return hash;\n }",
"public int hashCode() {\n int result = 1;\n Object $pageSize = this.getPageSize();\n result = result * 59 + ($pageSize == null ? 43 : $pageSize.hashCode());\n Object $pageNo = this.getPageNo();\n result = result * 59 + ($pageNo == null ? 43 : $pageNo.hashCode());\n Object $sort = this.getSort();\n result = result * 59 + ($sort == null ? 43 : $sort.hashCode());\n Object $orderByField = this.getOrderByField();\n result = result * 59 + ($orderByField == null ? 43 : $orderByField.hashCode());\n return result;\n }",
"@Override\n public int hashCode() {\n int hash = 7;\n hash = 29 * hash + Objects.hashCode(this.id);\n hash = 29 * hash + Objects.hashCode(this.name);\n return hash;\n }",
"public int hashCode() {\n int hash = UtilConstants.HASH_INITIAL;\n hash = hash * UtilConstants.HASH_PRIME + (userId != null ? userId.hashCode() : 0);\n hash = hash * UtilConstants.HASH_PRIME + (projectId != null ? projectId.hashCode() : 0);\n return hash;\n }",
"com.google.protobuf.ByteString getHash();",
"com.google.protobuf.ByteString getHash();",
"@Override\n public int hashCode()\n {\n return Objects.hash(value);\n }",
"public int hashCode() {\n return new HashCodeBuilder(7, 29)\n .append(meaning)\n .append(type)\n .append(target)\n .toHashCode(); \n }",
"public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_name );\r\n hash ^= hashValue( m_classname );\r\n if( m_implicit )\r\n {\r\n hash ^= 35;\r\n }\r\n hash ^= hashValue( m_production );\r\n hash ^= hashArray( m_dependencies );\r\n hash ^= hashArray( m_inputs );\r\n hash ^= hashArray( m_validators );\r\n hash ^= hashValue( m_data );\r\n return hash;\r\n }",
"public int hash(T input);",
"@Override\r\n\tpublic int hashCode() {\r\n\t\treturn Objects.hashCode(value);\r\n\t}",
"public int hashCode(){\n\t\treturn toString().hashCode();\n\t}",
"public int hashCode() {\n if (myhash == -1) {\n myhash = timestamp.hashCode() + signerCertPath.hashCode();\n }\n return myhash;\n }",
"@Override\r\n public int hashCode() {\r\n return this.number;\r\n }",
"@Override\r\n public int hashCode() {\r\n return jsObject.hashCode();\r\n }",
"public int hashCode()\n\t{\n\t\treturn y<<16+x;\n\t}",
"public int hashCode()\n {\n int hash = this.getClass().hashCode();\n\n hash = ( hash << 1 | hash >>> 31 ) ^ Arrays.hashCode(genome);\n\n return hash;\n }",
"private int getHash(Object key) {\n return key.hashCode();\n }",
"String getHash();",
"String getHash();",
"public int hashCode(){\n \n long code;\n\n // Values in linear combination with two\n // prime numbers.\n\n code = ((21599*(long)value)+(20507*(long)n.value));\n code = code%(long)prime;\n return (int)code;\n }",
"public int hashCode()\r\n/* */ {\r\n/* 89 */ int hash = 3;\r\n/* 90 */ hash = 19 * hash + Objects.hashCode(this.id);\r\n/* 91 */ return hash;\r\n/* */ }",
"public int hashCode()\n\t{\n\t\tint result = 17;\n\n\t\tlong tmp;\n\t\tif (_rsHeader != null && !org.castor.core.util.CycleBreaker.startingToCycle(_rsHeader))\n\t\t{\n\t\t\tresult = 37 * result + _rsHeader.hashCode();\n\t\t\torg.castor.core.util.CycleBreaker.releaseCycleHandle(_rsHeader);\n\t\t}\n\n\t\treturn result;\n\t}"
] | [
"0.76449054",
"0.73088753",
"0.7261483",
"0.71133703",
"0.7103625",
"0.7090243",
"0.70857835",
"0.70527387",
"0.7048462",
"0.7046565",
"0.70438284",
"0.70373434",
"0.7036318",
"0.7023926",
"0.702284",
"0.6984816",
"0.6976884",
"0.6976884",
"0.6976884",
"0.6976884",
"0.6933037",
"0.69314635",
"0.69314635",
"0.6926999",
"0.6926684",
"0.6918128",
"0.69059426",
"0.690265",
"0.6890656",
"0.6875044",
"0.687464",
"0.6868424",
"0.68616855",
"0.68544465",
"0.6836704",
"0.68328494",
"0.6820321",
"0.6817775",
"0.680952",
"0.6808213",
"0.68057394",
"0.6802989",
"0.6777707",
"0.6769314",
"0.67550015",
"0.67349315",
"0.6732423",
"0.67307353",
"0.6730112",
"0.6729456",
"0.67248076",
"0.6712016",
"0.67014956",
"0.6695741",
"0.66891044",
"0.66760826",
"0.6658926",
"0.6656678",
"0.66534704",
"0.6652674",
"0.66498995",
"0.6649533",
"0.66422457",
"0.66411066",
"0.6637379",
"0.6621431",
"0.66180193",
"0.6617997",
"0.6608587",
"0.66064715",
"0.6603229",
"0.65950966",
"0.65907043",
"0.6585745",
"0.6585039",
"0.6575289",
"0.65645117",
"0.656118",
"0.6552553",
"0.65484846",
"0.6543915",
"0.65409845",
"0.6539377",
"0.6539377",
"0.65342236",
"0.6532087",
"0.6526698",
"0.65154177",
"0.6510392",
"0.6509805",
"0.6508231",
"0.6507229",
"0.65029395",
"0.6502528",
"0.64990634",
"0.64978415",
"0.64962393",
"0.64962393",
"0.64935726",
"0.6485754",
"0.648353"
] | 0.0 | -1 |
/BaseClass b=new BaseClass(); b.show(); System.out.println(b.age); | public static void main(String[] args) {
System.out.println("------------------");
/*IntermediateClass i =new IntermediateClass();
i.insert();
i.show();
System.out.println(i.age);*/
DerivedClass d = new DerivedClass();
d.display();
d.insert();
d.show();
System.out.println(d.age);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args){\n System.out.println(SubClass.age);\n }",
"public static void display() {\n System.out.println(\"Static or class method from Base\");\n }",
"public static void main(String[] args) {\n Test.show();\n// t.fun();\n/*System.out.println(t.age1);*/\n }",
"public static void display() {\n System.out.println(\"Static or class method from Derived\");\n }",
"public void display(){\n System.out.println(\"B class Show method\");\n }",
"public static void main(String[] args) {\n \r\n\t\tPerson person1 = new Person(\"Ravali\",\"Springfield\");\r\n\t\tSystem.out.println(person1);\r\n\t\t\r\n\t\tString[] arr = new String[3];\r\n\t\tarr[0] = \"Computer Network Principles\";\r\n\t\tarr[1] = \"GRS\";\r\n\t\tarr[2] = \"Computer Organization\";\r\n\t\t\r\n\t\tPerson person2 = new Teacher(3,arr);\r\n\t\tperson2.setName(\"Renuka\");\r\n\t\tperson2.setAddress(\"India\");\r\n\t\t//Here toString method of Teacher class is being called and overrides the parent class method at runtime.Hence Runtime Polymorphism\r\n\t\tSystem.out.println(person2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void showGarage() {\n\t\tSystem.out.println(this);\n\t}",
"public static void main(String[] args) {\nABC d= new ABC()\n{\n\tpublic void show() \n\t{\n\t\tSystem.out.println(\" i am in the B\"); \n\t}\n};\nd.show();\n\n\t}",
"public static void main(String[] args) {\nChild c = new Child();\nc.display();// here the object c which is created for child class poses the property of parent class\nc.displayOne();\n\t}",
"private static void LessonInheritance() {\n Employee employee1 = new Employee();\n\n //Set Id , firstName and lastName of Employee from Person Class and BaseBO\n employee1.setId(13);\n employee1.setFirstName(\"Jordan(e)\");\n employee1.setLastName(\"Walker(e)\");\n\n //Print info out\n System.out.println(\"Id#\" + employee1.getId() + \" \" + employee1.getFirstName() + \" \" + employee1.getLastName());\n\n //create a Person object and inherit from BaseBO class Id\n Person person3 = new Person();\n person3.setId(7);\n person3.setFirstName(\"Jordan(p)\");\n person3.setLastName(\"Walker(p)\");\n\n System.out.println(\"Id#\" + person3.getId() + \" \" + person3.getFirstName() + \" \" + person3.getLastName());\n }",
"public static void main(String[] args) {\n\t\tInheritence a=new Inheritence();\r\n\t\t\r\n\t\t country();\r\n\tcity();\r\n\tage();\r\n\r\n\ta.flower();\t\r\n\tSystem.out.println(l);\r\n\tSystem.out.println(a.d);\r\n\r\n\t}",
"@Override\n void show() {\n System.out.println(\"Child's show()\"); }",
"@Override\n public void information() {\n System.out.println(\"\");\n System.out.println(\"Dog :\");\n System.out.println(\"Age : \" + getAge());\n System.out.println(\"Name : \" + getName());\n System.out.println(\"\");\n }",
"@Override\r\n void show() \r\n { \r\n super.show(); \r\n System.out.println(\"Child's show()\"); \r\n }",
"public void display() {\r\n System.out.println(\"<<Person>>>\" + this); \r\n }",
"public static void main(String[] args) {\n\t\t\nA aobj = new A();\naobj.a=10;\naobj.display();\n\nB bobj = new B();\nbobj.b=20;\nbobj.print();\naobj.a=100;\naobj.display();\n\t}",
"public static void main(String[] args) {\nSubClass obj = new SubClass();\r\n\t\t\r\n\t\tobj.display();\r\n\t}",
"void show() {\n super.show();\n System.out.println(\"i am in Flavor1Demo class\"); // remember\n }",
"public void print(){\n System.out.println(getBrain());//The value of brain passed in the main as parameter is rejected.\n super.print(); //However, if the same method is declared in Animal class, and called in main\n System.out.println(getBrain()); //the value of brain passed in main as parameter is printed.\n //It is basically a overridden method. The super.print() calls the superclass method\n }",
"@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }",
"@Override\n\tprotected void show() {\n\t\tsuper.show();\n\t\tSystem.out.println(\"BBBBBBBBBBBBBBBBBBB\");\n\t}",
"public void show() \n{\n\tSystem.out.println(this.getContenido().toString());//NOSONAR\n\t\n}",
"public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}",
"public void show() {\n\tSystem.out.println(\"show-method\");\t\n\t}",
"public static void main(String[] str){\n\n Father father = new Child();\n father.getWealthStatus();\n //father.name;\n //father.getProfession();\n }",
"public void xxx() {\n System.out.println(\"Salary: \" + salary);\n printInfo();\n\n Employee e = new Employee(\"Andy\", \"123\", 26);\n// System.out.println(\"Name: \" + e.name + \"; Age: \" + e.age + \";ID: \" + e.id);\n\n Manager m = new Manager(\"Andylee\", \"124\", 27);\n// System.out.println(\"Name: \" + m.name + \"; Age: \" + m.age + \";ID: \" + m.id);\n\n }",
"public static void main(String[] args) {\n Derived d=new Derived();\r\n d.Cricket();\r\n d.Motor();\r\n\t}",
"public void print() {\n\t\tSystem.out.println(\\u000a);\n\t\tSystem.out.println(this.getClass().getName());\n\t\tClassB classB = new ClassB();\n\t\tclassB.print();\n\t}",
"public static void main(String[] args) {\n\t\tAge oj1 = new Age() { \n\t\t\t@Override\n\t\t\tpublic void getAge() { \n\t\t\t\t// printing age \n\t\t\t\tSystem.out.print(\"Age is \"+x); \n\t\t\t} \n\t\t}; \n\t\toj1.getAge(); \n\t}",
"public void showInfomation()\n {\n\t System.out.println(\"\\nSide\"+\"\\n\\tnumber: \"+ super.getNumber() +\"\\n\\tdishName: \" + super.getDishName() + \"\\n\\tmaker: \"+maker+\"\\n\\tprice : \" + super.getPrice()+\"$\");\n }",
"ParentClassTwo() {\n\t\tint i = 100;\n\t\tSystem.out.println(i);\n\t}",
"public static void main(String[] args) {\n Baap b = new Beta(); //Here, b refers to an object of class Beta\n //so b.getH() will always call the overridden (subclass's method)\n System.out.println(\"Baap b = new Beta(): \" + b.h/*2*/ + \" \" + b.getH())/*1*/;\n // also 1) prints getH(), 2) prints diese mit b.h und b.getH() mit Return Wert\n Beta bb = (Beta) b;\n System.out.println(\"Beta bb = (Beta) b : \" + bb.h/*4*/ + \" \" + bb.getH()/*3*/);\n }",
"public static void main(String[] args) {\n Teacher phyTeacher1 = new PhyTeacher(\"Binod Sir\",\"Physics\", 56.78);//java: cannot find symbol symbol: method display()\n //PhysicsTeacher chemTeacher = new PhysicsTeacher(\"Chemistry\");\n //PhysicsTeacher matTeacher = new PhysicsTeacher(\"Maths\");\n phyTeacher1.display();\n BioTeacher bioTeacher = new BioTeacher(\"Vivek Sir\",\"Biology\",100.25);\n bioTeacher.display();\n /*Dynamic Polymorphism through method overriding\n School physics= new PhyTeacher(\"Adv. Physics\");\n physics.display();\n School biology= new BioTeacher(\"Adv. Biology\");\n physics.display();\n */\n }",
"public static void main(String[] args) {\nConstructor x=new Constructor(32,10000,2,\"lavanya\");\r\nSystem.out.println(\"age is\"+a);\r\n\r\n\t}",
"@Override\n\tvoid show() {\n\t\tSystem.out.println(\"Test\");\n\t}",
"public static void show() {\n\t\t\n\t}",
"void displayInnnerClass() {\r\n\t\tNestedClass nestedClassObj = new NestedClass();\r\n\t\tnestedClassObj.displayPrint();\r\n\t}",
"@Override\n\t\t\t\tpublic void displayB() {\n\t\t\t\t\tSystem.out.println(\"DisplayB class Y\");\n\n\t\t\t\t}",
"public static void main(String[] args) {\n BaseClass myBase = new BaseClass();\n\n myBase.PlaySound();\n myBase.PlaySound();\n myBase.EditSound();\n\n// System.out.println(myBase.PlaySound());\n\n// myBase.EditSound();\n// myBase.RecordSound();\n\n\n }",
"public void afficher() {\n System.out.println(this.toString());\n }",
"@Override\n public String toString(){\n return name + \":\" + age;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tInstitude i1=new Institude(10,\"Pune\",new Branch(11,\"Bas\",new Subject(20,\"Java\",new Topic\r\n\t\t\t\t(30,\"Method Overloading\",new SubTopic(40,\"Method Overriding\",new Question(50,\"What is class\"))))));\r\n\t\t\r\n\t\tSystem.out.println(i1);\r\n\t\t\r\n\t\t\r\n//\t\tInstitude i1=new Institude();\r\n//\t\ti1.setId(10);\r\n//\t\ti1.setName(\"Pune\");\r\n//\t\t\r\n//\t\tBranch b1=new Branch();\r\n//\t\tb1.setId(11);\r\n//\t\tb1.setName(\"Bsc\");\r\n//\t\t\r\n//\t\tSubject s1=new Subject();\r\n//\t\ts1.setId(20);\r\n//\t\ts1.setName(\"Java\");\r\n//\t\t\r\n//\t\tTopic t1=new Topic();\r\n//\t\tt1.setId(30);\r\n//\t\tt1.setName(\"Method Overloading\");\r\n//\t\t\r\n//\t\tSubTopic s2=new SubTopic();\r\n//\t\ts2.setId(40);\r\n//\t\ts2.setName(\"Method overriding\");\r\n//\t\t\r\n//\t\tQuestion q1=new Question();\r\n//\t\tq1.setId(50);\r\n//\t\tq1.setName(\"What is Class ?\");\r\n//\t\t\r\n//\t\t\r\n//\t\ti1.setB1(b1);\r\n//\t\tb1.setS1(s1);\r\n//\t\ts1.setT1(t1);\r\n//\t\tt1.setSt(s2);\r\n//\t\ts2.setQ1(q1);\r\n//\t\t\r\n//\t\tSystem.out.println(i1);\r\n\t\r\n\t\t}",
"@Override\n\tpublic void show()\n\t{\n\t\tsuper.show();\n\t\tSystem.out.println(\"with a pistol\");\n\t}",
"public static void main(String[] args) {\n MyClass m;\n m= new MyClass();\nm.display();\n\t}",
"public void show() {\n\n System.out.println(a);\n System.out.println(b);\n System.out.println(c);\n System.out.println(\"In a nested class method\");\n }",
"@Override\r\n public String speak(){\r\n System.out.println(\"Breed: \" + this.Breed + \"\\nName: \"+ super.name + \"\\nPrimary Color: \" +this.PrimaryColor + \"\\nSize: \" + this.Size);\r\n return \"Bork Bark\";\r\n\r\n }",
"public static void main(String[] args) {\n\t \tAnimal an = new Animal();\r\n\t \tSystem.out.println(\"1: \"+(an instanceof Dog));//true \r\n\t \tDog d= new Dog();\r\n\t \tSystem.out.println(\"2: \"+(d instanceof Dog));\r\n\t \tAnimal b = new Dog();\r\n\t \tSystem.out.println(\"3: \"+(b instanceof Animal));\r\n\t \tSystem.out.println(\"4: \"+(b instanceof Dog));\r\n\t b.show();\r\n\t \t//Animal a = new Animal();\r\n\t \t\r\n\t \t\r\n\t \t//d.derivedfun();\r\n\t \tb.derivedfun();\r\n\t d.show();\r\n\t d.derivedfun();\r\n\t }",
"public static void main(String[] args) {\n\t\tSuper2 objSuper2=new Super2(); \r\n\t\t\r\n\t\tobjSuper2.details();\r\n\t\tobjSuper2.display(); \r\n\t\tobjSuper2.verifyDetails(); //With and Without Super Keyword\r\n\t}",
"@Override\n\tpublic void attaquer() {\n\t\tSystem.out.println(\"Je suis \" + this.nom + \", j'ai \" + this.age + \" ans et je cueille le gui !\");\n\t}",
"private static void Demo1() {\n\t\tPerson person = new Person();\r\n\t\tSystem.out.println(\"类名:\" + person.getClass().getName());\r\n\t\tSystem.out.println(\"包名:\" + person.getClass().getPackage().getName());\r\n\r\n\t}",
"private static void showValues(Derived derived) {\n\t\tSystem.out.println(\"\\n\\tX = \" + derived.getX()\n\t\t+ \";\\tY = \" + derived.getY() + \";\\tZ = \"\n\t\t+ derived.getZ() + \";\\tThe Largest Value Is : \"\n\t\t+ derived.getLargestValue());\n\t}",
"public static void main(String[] args) {\n Address address = new Address(\"Jitu\", \"Kolkata\", \"jenyns road\") ;\n Address address1 = new Address(\"Priya\", \"Araah\", \"pakdi road\") ;\n \n address.displayaddress();\n address1.displayaddress();\n //passing the object reference to the child class constructor \n Aggregationexample01 obj = new Aggregationexample01(450, \"WB\", address1) ;\n address = new Address(\"Khushi\", \"Pune\", \"Wakad\");\n address.displayaddress();\n \n double areacal = obj.calculatearea(5);\n System.out.println(\"area calculate :\" + areacal);\n \n obj.displaychildclass();\n \n\t}",
"void display() {\n System.out.println(id + \" \" + name + \" \" + age);\n }",
"public static void main(String[] args) {\n ChildOfderived1 cd = new ChildOfderived1(10,20,30);\r\n }",
"public Animal(int age){\n this.age = age;\n System.out.println(\"An animal has been created!\");\n }",
"public abstract String display();",
"public String toString(){\r\n return \"Breed: \" + this.Breed + \"\\nName: \"+ super.name + \"\\nPrimary Color: \" +this.PrimaryColor + \"\\nSize: \" + this.Size + \"\\nAge: \" + super.age;\r\n }",
"public void show() {\n\t\tSystem.out.println(\"show..\");\n\t}",
"@Override\n\t\tpublic void displayB() {\n\t\t\tSystem.out.println(\"Display B class X\");\n\t\t}",
"public void show() {\n System.out.println(\"I am the best\");\n }",
"public void doSomething(Object str){\n System.out.println(\"Base impl:\"+str);\n }",
"abstract public void printInfo();",
"@Override\n\tprotected void 装入大象() {\n\t\tSystem.out.println(\"我是张飞,我叫喊着粗鲁的把大象放进去\");\n\t\t\n\t}",
"public void printYourself(){\n\t}",
"public static void main(String args[]) { \r\n\tCW27FebClass dog =new CW27FebClass(); //Constructor declaration\r\n\tdog.bark(); // Object creation & Calling the Class method execution \r\n\tdog.walk();\r\n\tSystem.out.println(\"Print the Class Method Declaration tail variable :\" +dog.tail);\r\n\tSystem.out.println(\"Print the Class Method Declaration legs variable :\" +dog.legs);\r\n\t\r\n}",
"void printInfo() {\n\t\tdouble salary=120000;\n\t System.out.println(salary);\n\t\tSystem.out.println(name+\" \"+age);\n\t}",
"public static void main(String[] args) {\n\t\tSuperStatement2 ref=new SuperStatement2();\n\t\tSystem.out.println(ref.a);\n\t\tSystem.out.println(ref.b);\n\n\t}",
"public static void main(String[] args) {\n\r\n\r\n Employee e1=new Employee();\r\n\r\n e1.name=\"avinash\";\r\n e1.city=\"ongole\";\r\n e1.age=58;\r\n\r\n e1.display();\r\n }",
"public static void main(String[] args){\r\n\t\tB b=new B();\r\n\t\tSystem.out.println(b.x);\r\n\t}",
"public static void show() {\n\n\t}",
"public static void main(String args[])\r\n {\r\n \r\n abc obj=new abc() \r\n {\r\n public void show()\r\n {\r\n System.out.println(\"In Demo1 show...!\");\r\n }\r\n \r\n };\r\n obj.show();\r\n \r\n }",
"abstract public void display();",
"@Override\r\n public void display() { //implements abstract display() method from Division.java\r\n System.out.println(\"Division Name: \" + getDivisionName());\r\n System.out.println(\"Account Number: \" + getAccountNumber());\r\n\r\n System.out.println(\"Country: \" + getCountry());\r\n System.out.println(\"Language Spoken: \" + getLanguageSpoken() + \"\\n\");\r\n\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\t//static polymorphism//compile time polymorphism\n\t\t\n\t\tBmw b= new Bmw();//Overridden method\n\t\tb.start();\n\t\tb.stop();\n\t\tb.AutoStart();\n\t\tb.fuel();\n\t\t\n\t\tSystem.out.println(\"*****************************\");\n\t\tCar c= new Car();\n\t\tc.start();\n\t\tc.stop();\n\t\tc.fuel();\n\t\tSystem.out.println(\"*****************************\");\n//Child class object can be refereed by parent class reference variable is called \n//RUNTIME POLYMORPHYSM or DYNAMIC POLYMORPHYSM\n\t\t\n\tCar c1= new Bmw();\n\tc1.start();\n\tc1.stop();\n\tc1.fuel();\n\t\n\t\t\n\t\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n\t\tpublic void alive() {\n\t\t\tSystem.out.println(\"liverId is: \" + liverId); //liver id is a static variable of the Liver class, so we CAN access it directly. \n\t\t\tSystem.out.println(new Animal().age); //Just like a static method, the only way to access NON static vars here is to create an animal object, then access that age..\n\t\t}",
"public static void main(String[] args) {\nCircle ob=new Circle();\r\nob.Print();\r\n\r\n\t}",
"public interface BaseView {\n\n void showTaost(String string);\n\n}",
"public static void main(String args[]){\n Student Student1 = new Student (\"Josh\", 80);\n System.out.println(Student1.getGrade());\nSystem.out.println(Student1);\n }",
"public static void main(String[] args) {\n Circle circle1 = new Circle(1);\n System.out.println(circle1.toString());\n circle1.printCircle();\n System.out.println(circle1.getArea() + \" \" + circle1.getPerimeter() );\n\n System.out.println();\n System.out.println();\n\n Rectangle rec1 = new Rectangle(2,2);\n System.out.println(rec1.toString());\n System.out.println(rec1.getHeight() + \" \" + rec1.getWidth());\n System.out.println(rec1.getPerimeter() + \" \" + rec1.getArea());\n\n\n\n\n }",
"public static void main(String []args){\n Adder a = new Adder();\n\n // My superclass is: Arithmetic\n System.out.println(\"My superclass is: \" + a.getClass().getSuperclass().getName());\n\n // 42 13 20\n System.out.print(a.add(10,32) + \" \" + a.add(10,3) + \" \" + a.add(10,10) + \"\\n\");\n }",
"void printClassB(ClassB iClassB)\n {\n System.out.println(iClassB.getElementValue());\n }",
"public void bark() { //Class Method declaration\r\n\tint body = tail+legs; // add function\r\n\tSystem.out.println(\"Print the Class Method Declaration this will be called by the Syntax dog.bark\");\r\n\tSystem.out.println(\"Print the add function assigned in the method:- \" + body);\r\n\t}",
"@Override\n\tvoid Show() {\n\t\tanimal.Show();\n\t\tSystem.out.print(\" Shorts\");\n\t}",
"public void printDetails()\n {\n super.printDetails();\n System.out.println(\"The author is \" + author + \" and the isbn is \" + isbn); \n }",
"public int getAge() {\n\t \t return age; \n\t}",
"public static void main(String args[]){\n\tClasschild T=new Classchild();\n\tClass1 c=new Class1();\n\tc.addition();\n\tc.subtraction();\n\tT.multiplication();\n\t\n}",
"public static void main(String[] args) {\n\tA1 a=new A1();\n//\t//a.m1();\n//\t//B1 a=new B1();\n//\tA1 a=new C();\n\ta.m1();\n\t//int x=20;\n\tString x=\"20\";\n\tSystem.out.println(x);\n\t\n\tint in =1;\n\tInteger obj =in;\n\t\nf\n\n}",
"@Override\n public void showInfo() {\n System.out.println(\"Garage {\");\n System.out.println(\"\\tGarage is \" + (isBig ? \"big\" : \"small\"));\n int i = 0;\n for (T car : carsInGarage) {\n System.out.println(\"\\tCar №\" + i + \": \" + car.getShortInfo());\n i++;\n }\n System.out.println(\"}\");\n }",
"public void printInfo(){\n\t}",
"public void printInfo(){\n\t}",
"public void display(){\r\n System.out.println(\"_____________________valuues of__[th]__constuctor_________________________\");\r\n System.out.println(\"No_of_people = \"+NO_OF_PEOPLE);\r\n System.out.println(\"EVENT_NUBMBER = \"+EVENT_NUMBER);}",
"void printMe() {\n\t\t/*\n\t\t * age is private variable of the Animal class\n\t\t * so if we can access the age variable, depends on where\n\t\t * we create the Animal. if we create an Animal outside of\n\t\t * the Animal class, we cannot access age, as it's private.\n\t\t * if however, we create an Animal inside the Animal class\n\t\t * this Animal DOES have access to age.\n\t\t * cannot access age here, as private\n\t\t * see the run() method in the Animal class where we create\n\t\t * Animal object with access to age\n\t\t */\n\t//\tSystem.out.println(myAnimal.age);//private, so cannot access\n\t\t//protected, we are in same package so can access height\n\t\tSystem.out.println(myAnimal.height);//protected\n\t\t//default, in same package so we can access weight\n\t\tSystem.out.println(myAnimal.weight);//default\n\t\t//public, so we can access this anywhere\n\t\tSystem.out.println(myAnimal.name);//public\n\t\tmyAnimal.eat();//default level access\n\t\t//can't access this as this is a private method\n\t\t//myAnimal.drink()\n\t}",
"@Override\n public String toString () {\n return getAge ()+\" - \" + getTotal ();\n }",
"public static void main(String[] args) {\n\t\tAuthor ar = new Author();\r\n\t\tBookdetails bk = new Bookdetails();\r\n\t\tbk.setName(\"Revolution 2020\");\r\n\t\tbk.setPrice(1000);\r\n\t\tbk.setQtyinstack(250);\r\n\t\tar.setName(\"Chetan Bhagat\");\r\n\t\tar.setEmail(\"chetanbhagat77@gmail.com\");\r\n\t\tar.setGender('m');\r\n\t\tSystem.out.println(bk.getName()+\" \"+bk.getPrice()+\" \"+bk.getQtyinstack());\r\n\t\tSystem.out.println(ar.getName()+\" \"+ar.getEmail()+\" \"+ar.getGender()); \r\n}",
"public abstract void displayInfo();",
"public abstract void showStat();",
"public void show()\n\t{\n\t\tSystem.out.println(\"show\");\n\t}",
"public int getAge() {return age;}",
"public static void main(String []args){\n Adder a = new Adder();\n \n // Print the name of the superclass on a new line\n System.out.println(\"My superclass is: \" + a.getClass().getSuperclass().getName());\t\n \n // Print the result of 3 calls to Adder's `add(int,int)` method as 3 space-separated integers:\n System.out.print(a.add(10,32) + \" \" + a.add(10,3) + \" \" + a.add(10,10) + \"\\n\");\n }",
"@Override\n public void display() {\n\n }"
] | [
"0.6649836",
"0.64494455",
"0.6441584",
"0.6422233",
"0.6220339",
"0.621798",
"0.62119544",
"0.62088495",
"0.61197037",
"0.61062807",
"0.6096263",
"0.60750425",
"0.6067427",
"0.6061777",
"0.6049238",
"0.6047407",
"0.60365397",
"0.6028946",
"0.599672",
"0.59239656",
"0.59171194",
"0.591395",
"0.59094876",
"0.5906211",
"0.589261",
"0.58783937",
"0.58697677",
"0.58405524",
"0.583374",
"0.5823731",
"0.58135515",
"0.58087075",
"0.5802356",
"0.579736",
"0.5789801",
"0.57435566",
"0.5720801",
"0.5718047",
"0.5711097",
"0.56954646",
"0.5688338",
"0.56864226",
"0.56828624",
"0.5678592",
"0.5678003",
"0.5677385",
"0.5670513",
"0.56697077",
"0.5654712",
"0.563551",
"0.5633482",
"0.5633377",
"0.5631981",
"0.5627215",
"0.56238985",
"0.56187016",
"0.5616073",
"0.5612912",
"0.560551",
"0.56012416",
"0.56003505",
"0.559794",
"0.55961025",
"0.5588347",
"0.5588315",
"0.55861545",
"0.55851156",
"0.55840164",
"0.5571139",
"0.5570746",
"0.55599165",
"0.5558799",
"0.5555752",
"0.55538154",
"0.5551798",
"0.5550266",
"0.5547036",
"0.55463946",
"0.55360234",
"0.55281",
"0.5522992",
"0.55131936",
"0.5509909",
"0.55020314",
"0.5495285",
"0.5492153",
"0.5488899",
"0.5488208",
"0.54860854",
"0.54860854",
"0.54856735",
"0.54809016",
"0.54800534",
"0.5479208",
"0.5479087",
"0.5469978",
"0.5469648",
"0.546921",
"0.54688424",
"0.5455367"
] | 0.688494 | 0 |
This method was generated by MyBatis Generator. This method corresponds to the database table catelog | public Catelog(Integer id, String name, Integer number, Byte status) {
this.id = id;
this.name = name;
this.number = number;
this.status = status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}",
"protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}",
"public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}",
"public void formDatabaseTable() {\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}",
"public ResultSet Custmr(Long Userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from customer c,customer_details cd where c.user_id=cd.user_id and c.user_id=\"+Userid+\" \");\r\n\treturn rs;\r\n\t\r\n}",
"@Override\npublic String findParentKeyColumnName()\n{\n\treturn null;\n}",
"Tablero consultarTablero();",
"protected String getTableName()\n {\n return immutableGetTableName();\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"@Override\n\t\tpublic String getTableName() {\n\t\t\treturn null;\n\t\t}",
"@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}",
"public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }",
"@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}",
"String getTableName();",
"@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}",
"public abstract String toSQL();",
"SqlColumns(String columnName){\n\t\t\t this.columnName = columnName; \n\t\t}",
"@Override\n\tpublic String getTableName() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getTableName() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}",
"@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}",
"public TableName name();",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"@Override\n public Log map(ResultSet rs, StatementContext ctx) throws SQLException {\n var application = applicationRepository.findById(rs.getInt(1)).orElseThrow();\n return new Log(rs.getInt(1),application.getApp(),application.getPortApp(),application.getPortService(),application.getDockerInstance(),rs.getString(2),rs.getTimestamp(3).toInstant());\n }",
"@Override\r\n\tpublic void createTable(Connection con) throws SQLException {\r\n\t\tString sql = \"CREATE TABLE \" + tableName\r\n\t\t\t\t+ \"(pc_id integer, class_id varchar(20), level integer,\"\r\n\t\t\t\t+ \" PRIMARY KEY (pc_id,class_id,level) )\";\r\n\r\n\t\tif (DbUtils.doesTableExist(con, tableName)) {\r\n\r\n\t\t} else {\r\n\t\t\ttry (PreparedStatement ps = con.prepareStatement(sql);) {\r\n\t\t\t\tps.execute();\r\n\t\t\t}\r\n \r\n\t\t}\r\n\r\n\r\n\r\n\t\tString[] newInts = new String[] { \r\n\t\t\t\t\"hp_Increment\",};\r\n\t\tDAOUtils.createInts(con, tableName, newInts);\r\n\r\n\t}",
"@Override\n public String asTableDbName() {\n return \"user\";\n }",
"private void populateTable() {\n this.allLogs = this.auditLogService.getAllLogs();\n // Creat columns for users\n\n\n TableColumn<Map, String> actionColumn = new TableColumn<>(\"Action\");\n actionColumn.setCellValueFactory(new MapValueFactory<>(\"action\"));\n\n TableColumn<Map, String> actionByColumn = new TableColumn<>(\"By\");\n actionByColumn.setCellValueFactory(new MapValueFactory<>(\"actionByUserId\"));\n\n TableColumn<Map, String> actionAt = new TableColumn<>(\"At\");\n actionAt.setCellValueFactory(new MapValueFactory<>(\"createdAt\"));\n this.listOfLogs.getColumns().add(actionColumn);\n this.listOfLogs.getColumns().add(actionByColumn);\n this.listOfLogs.getColumns().add(actionAt);\n // Create an observable list to add customers to\n ObservableList<Map<String, Object>> items = FXCollections.<Map<String, Object>>observableArrayList();\n\n this.allLogs.forEach(log -> {\n Map<String, Object> obj = new HashMap<>();\n // Forces int to be string to be converted back to int\n obj.put(\"action\", log.getAction());\n obj.put(\"actionByUserId\", log.getActionByUserId().getName());\n obj.put(\"createdAt\", log.getCreatedAt());\n items.add(obj);\n });\n\n // Add all the users to the table\n this.listOfLogs.getItems().addAll(items);\n }",
"public void llenarTabla(){\n pedidoMatDao.llenarTabla();\n }",
"public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }",
"TableId table();",
"public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}",
"public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }",
"@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}",
"@Override\n\tpublic String getTableName() { \n\t\treturn tableName;\n\t}",
"String getBaseTable();",
"private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}",
"private String getTableName(Class<?> clz) {\n\t\tif (clz.isAnnotationPresent(TableName.class)) {\n\t\t\treturn ((TableName) clz.getAnnotation(TableName.class)).value();\n\t\t}\n\t\treturn clz.getSimpleName();\n\t}",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic IColumns createColumns() {\n\t\treturn new WaybillforauditColumns();\n\t}",
"public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }",
"public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"private bildeBaseColumns() {\n\n }",
"public interface ICriteriaWhen {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table sale_classify_good\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n void criteria(Criteria criteria);\n }",
"@Mapper\npublic interface CscpFuncDao {\n @Insert(\"insert into cscp_org_func values(#{orgID,jdbcType=VARCHAR},#{funcID,jdbcType=VARCHAR})\")\n void saveOrgFunc(@Param(\"orgID\") String orgID, @Param(\"funcID\") String funcID);\n @Select(\"select f.id,f.func_name,f.func_type,f.func_desc from cscp_org_func of,cscp_function f where of.org_id=#{orgID,jdbcType=VARCHAR} and of.func_id=f.id and f.func_type=1\")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.VARCHAR, id=true),\n @Result(column=\"func_type\", property=\"funcType\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"func_name\", property=\"funcName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"func_desc\", property=\"description\", jdbcType=JdbcType.VARCHAR)\n })\n List<CscpFunc> getFuncs(String orgID);\n @Select(\"select menu_id from cscp_func_menu m left join cscp_org_func of on m.func_id=of.func_id where of.org_id=#{orgID,jdbcType=VARCHAR}\")\n List<String> getFuncMenus(String orgID);\n}",
"List<Category> lisCat() {\n return dao.getAll(Category.class);\n }",
"public CursosTable() {\n \n \n }",
"@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }",
"public CategoryRecord() {\n\t\tsuper(com.cellarhq.generated.tables.Category.CATEGORY);\n\t}",
"private String getSql(Map map){\n \tStringBuilder sql = new StringBuilder();\n \t\n \tsql.append(\" select account.FNumber number,REPLACE(account.FLongNumber, '!', '.') transLongNumber,account.FLongNumber longNumber,account.FName_l2 name, \");\n \tsql.append(\" account.FLevel level1,account.FIsLeaf isLeaf,account.FId id,account.FParentID parentid, \");\n \tsql.append(\" org.FId fullOrgUnitid,project.FId curProjectid \");\n \tsql.append(\" from T_FDC_CostAccount account \");\n \tsql.append(\" left join T_FDC_CurProject project ON account.FCurProject = project.FID \");\n \tsql.append(\" left join T_FDC_CostAccount parent ON account.FParentID = parent.FID \");\n \tsql.append(\" left join T_ORG_BaseUnit org ON account.FFullOrgUnit = org.FID \");\n \tsql.append(\" where 1=1 \");\n \tsql.append(\" and account.FLongNumber like '5002%' \");//只取科目502开头的科目\n \tif(map.get(\"fullOrgUnit\")!=null){\n OrgStructureInfo oui = (OrgStructureInfo)map.get(\"fullOrgUnit\");\n if(oui != null && oui.getUnit() != null){\n FullOrgUnitInfo info = oui.getUnit();\n \tsql.append(\" and account.FFullOrgUnit = '\"+info.getId().toString()+\"' \");\n }\n \t}\n \tif(map.get(\"curProject\")!=null){\n \t\tCurProjectInfo projectInfo = (CurProjectInfo)map.get(\"curProject\");\n \tsql.append(\" and account.FCurProject = '\"+projectInfo.getId().toString()+\"' \");\n \t}\n \tsql.append(\" order by REPLACE(account.FLongNumber, '!', '.') asc \");\n \t\n \treturn sql.toString();\n }",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"SqlTables(String tableName){\n\t\t\t this.tableName = tableName; \n\t\t}",
"public String getNomTable();",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public interface SQLV4 {\n\n //数据统计\n String ALTER_TABLE_DATASTATISTICS_TYPE = \"ALTER TABLE \" + DataStatisticsTable.TABLE_DATA_STATISTICS\n + \" ADD COLUMN \" + DataStatisticsTable.COLUMN_DATA_TYPE + \" INTEGER DEFAULT 0\";\n}",
"public String getMapTableName() {\n return getTableName(false, false, false, true);\n }",
"void gen_table_names(Connection c, PreparedStatement pst ) throws ClassNotFoundException, SQLException\n\t{\n\t String lambda_term_query = \"select subgoal_names from view2subgoals where view = '\"+ name +\"'\";\n\n\t\t\n\t pst = c.prepareStatement(lambda_term_query);\n\t \n\t ResultSet rs = pst.executeQuery();\n\t \n\t if(!rs.wasNull())\n\t {\n\t \twhile(rs.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(rs.getString(1));\n\t\t }\n\t }\n\t \n\t else\n\t {\n\t \tlambda_term_query = \"select subgoal from web_view_table where renamed_view = '\"+ name +\"'\";\n\n\t\t\t\n\t\t pst = c.prepareStatement(lambda_term_query);\n\t\t \n\t\t ResultSet r = pst.executeQuery();\n\n\t\t while(r.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(r.getString(1));\n\t\t }\n\t }\n\t \n\t \n\t \n\n\t}",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();",
"@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();",
"void add_collab_prnc() {\n\t\ttry {\n\t\t\tjdbc.setConnection();\n\t\t\tStatement stm=jdbc.setConnection().createStatement();\n\t\t\tString strcheck=\"select id from utilisateur where username=\"+'\"'+login_class.UsernameLog+'\"';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\tResultSet res = stm.executeQuery(strcheck);\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\tsimple_users_select_list_id.add(res.getInt(\"id\"));\n\t\t\t}\n\t\t\tjdbc.setConnection().close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void generateChangeLog() {\n // get the database connection\n }",
"@Override\n\tpublic List<Category> getAllCategories() {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"FROM \"+Category.class.getName());\n\t\treturn (List<Category>)query.list();\t\t\n\t}",
"@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();",
"public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}",
"public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }",
"@Override\n public void createUsersTable() {\n\n\n Session session = sessionFactory.openSession();\n Transaction transaction = session.beginTransaction();\n session.createSQLQuery(\"CREATE TABLE IF NOT EXISTS Users \" +\n \"(Id BIGINT PRIMARY KEY AUTO_INCREMENT, FirstName TINYTEXT , \" +\n \"LastName TINYTEXT , Age TINYINT)\").executeUpdate();\n transaction.commit();\n session.close();\n\n\n }",
"public interface ICriteriaAdd {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table b_dic_tree_code\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n Criteria add(Criteria add);\n }",
"public void fetColumnList() {\n try {\n table.getColumns().clear();\n if (rsAllEntries != null) {\n //SQL FOR SELECTING ALL OF CUSTOMER\n for (int i = 0; i < rsAllEntries.getMetaData().getColumnCount(); i++) {\n //We are using non property style for making dynamic table\n final int j = i;\n TableColumn col = new TableColumn();\n switch (rsAllEntries.getMetaData().getColumnName(i + 1)) {\n case \"order_number\":\n col.setText(\"Order Number\");\n break;\n case \"product_type\":\n col.setText(\"Produt Type\");\n break;\n case \"worker\":\n col.setText(\"Worker\");\n break;\n case \"planned_time\":\n col.setText(\"Planned Time\");\n break;\n case \"actual_time\":\n col.setText(\"Actual Time\");\n break;\n case \"order_status\":\n col.setText(\"Order Status\");\n break;\n default:\n col.setText(rsAllEntries.getMetaData().getColumnName(i + 1)); //if column name in SQL Database is not found, then TableView column receive SQL Database current column name (not readable)\n break;\n }\n\n col.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<ObservableList, String>, ObservableValue<String>>() {\n public ObservableValue<String> call(TableColumn.CellDataFeatures<ObservableList, String> param) {\n return new SimpleStringProperty(param.getValue().get(j).toString());\n }\n });\n\n table.getColumns().removeAll(col);\n table.getColumns().addAll(col);\n }\n } else {\n warning.setText(\"No columns to display\");\n }\n } catch (SQLException e) {\n System.out.println(\"Failure getting column data from SQL \");\n }\n }",
"@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);",
"@Override\n\tpublic String findParentKeyColumnName()\n\t{\n\t\treturn null;\n\t}",
"private String getCloneGenealogyTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_GENEALOGY(\");\n \t\tbuilder.append(\"CLONE_GENEALOGY_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"START_REVISION_ID LONG,\");\n \t\tbuilder.append(\"END_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CLONES TEXT NOT NULL,\");\n \t\tbuilder.append(\"CLONE_LINKS TEXT NOT NULL,\");\n \t\tbuilder.append(\"CHANGES INTEGER,\");\n \t\tbuilder.append(\"ADDITIONS INTEGER,\");\n \t\tbuilder.append(\"DELETIONS INTEGER,\");\n \t\tbuilder.append(\"DEAD INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"protected abstract TableName getTableNameByConvention(Class<?> beanClass);",
"public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }",
"private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }",
"private CalciteKuduTable getTable() {\n return (CalciteKuduTable) table;\n }",
"@Transient\n public String getCacheKey() {\n return this.getTableName();\n }",
"@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}",
"public String getDbTable() {return dbTable;}",
"public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}",
"private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }",
"public String toString()\n {\n return this.getUntranslatedTableName();\n }",
"Miss_control_log selectByPrimaryKey(String loginuuid);",
"public interface RelationInfoDao extends BaseDao<RelationInfoDO> {\n\n HashMap<String,String> getDependents(String tableNames);\n\n List<HashMap<String,String>> getParentTable(String tableNames);\n\n List<HashMap<String,String>> getChlidTable(String s);\n}",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}",
"@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}",
"@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);",
"public CiviliteDao() {\r\n\t\tsuper();\r\n\t}",
"@Override\r\n\tpublic List<CategoryList> list() {\n\t\t\r\n\t\tString sql = \"select * from categories\";\r\n\t\tList<CategoryList> listContact = jdbcTemplate.query(sql, new ResultSetExtractor<List<CategoryList>>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic List<CategoryList> extractData(ResultSet rs) throws SQLException, DataAccessException {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tArrayList<CategoryList> list=new ArrayList<CategoryList>(); \r\n\t\t\t\tArrayList<Category> cat = new ArrayList<Category>();\r\n\t\t\t\tCategoryList ctg = new CategoryList();\r\n\t\t\t\t\r\n\t\t while(rs.next()){ \r\n\t\t Category e=new Category(); \r\n\t\t e.setCategoryName(rs.getString(2));\r\n\t\t \r\n\t\t String sql2 = \"SELECT * FROM sub_categories WHERE cat_id=\" + rs.getString(1);\r\n\t\t \r\n\t\t\t\tjdbcTemplate.query(sql2, new ResultSetExtractor<Subcategory>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Subcategory extractData(ResultSet rs1) throws SQLException,\r\n\t\t\t\t\t\t\tDataAccessException {\r\n\t\t\t\t\t\tArrayList<Subcategory> subcat = new ArrayList<Subcategory>();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\twhile (rs1.next()) {\r\n\t\t\t\t\t\t\tSubcategory contact = new Subcategory();\r\n\t\t\t\t\t\t\tcontact.setSubCategoryId(rs1.getString(1));\r\n\t\t\t\t\t\t\tcontact.setSubCategoryName(rs1.getString(2));\r\n\t\t\t\t\t\t\tsubcat.add(contact);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\te.setSubcategories(subcat);\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\tcat.add(e);\r\n\t\t ctg.setCategories(cat);\r\n\t\t }\r\n\t\t ctg.setResponse(\"3\");\r\n\t\t ctg.setMessage(\"fetch successfully\");\r\n\t\t list.add(ctg);\r\n\t\t\t\treturn list;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\treturn listContact;\r\n\t\t\r\n\t}",
"public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }",
"@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}"
] | [
"0.5747329",
"0.57229537",
"0.5722367",
"0.5712652",
"0.5680771",
"0.564192",
"0.5639416",
"0.56313926",
"0.56197953",
"0.5618387",
"0.5614252",
"0.55793905",
"0.5561455",
"0.5544208",
"0.5531167",
"0.5485558",
"0.544701",
"0.54446566",
"0.5443865",
"0.543267",
"0.54291236",
"0.5414295",
"0.5414295",
"0.5411929",
"0.53822577",
"0.53392065",
"0.53392065",
"0.5325278",
"0.5310392",
"0.52894473",
"0.52859634",
"0.5285724",
"0.5276887",
"0.5262903",
"0.52515095",
"0.5249101",
"0.524805",
"0.5245694",
"0.52390903",
"0.5237407",
"0.5235335",
"0.5232384",
"0.52298737",
"0.5225551",
"0.5221309",
"0.52194023",
"0.52091104",
"0.52035856",
"0.51972455",
"0.5197045",
"0.5182233",
"0.51776946",
"0.5172559",
"0.5168939",
"0.51610434",
"0.51589316",
"0.5153402",
"0.5153109",
"0.51469034",
"0.5146536",
"0.5129576",
"0.5121895",
"0.5115413",
"0.5114313",
"0.5113936",
"0.51129603",
"0.5108885",
"0.5108611",
"0.5104886",
"0.51045537",
"0.5101355",
"0.5091498",
"0.50868595",
"0.50789905",
"0.50777584",
"0.5077308",
"0.5074052",
"0.5072508",
"0.50710046",
"0.5070594",
"0.50656265",
"0.5064508",
"0.50641",
"0.50630003",
"0.50610465",
"0.50604737",
"0.5058893",
"0.5049312",
"0.5047818",
"0.5046739",
"0.5043488",
"0.5042595",
"0.5040048",
"0.504001",
"0.50391656",
"0.5034568",
"0.5031512",
"0.5029001",
"0.50286055",
"0.50262725",
"0.5022601"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method corresponds to the database table catelog | public Catelog() {
super();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({\n \"select\",\n \"`cate_id`, `cate_name`\",\n \"from `category`\",\n \"where `cate_id` = #{cateId,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n Category selectByPrimaryKey(Integer cateId);",
"@Override\n\tprotected String getTableName() {\n\t\treturn super.getTableName();\n\t}",
"@Select({\n \"select\",\n \"JNLNO, TRANDATE, ACCOUNTDATE, CHECKTYPE, STATUS, DONETIME, FILENAME\",\n \"from B_UMB_CHECKING_LOG\",\n \"where JNLNO = #{jnlno,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"JNLNO\", property=\"jnlno\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"TRANDATE\", property=\"trandate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"ACCOUNTDATE\", property=\"accountdate\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"CHECKTYPE\", property=\"checktype\", jdbcType=JdbcType.CHAR),\n @Result(column=\"STATUS\", property=\"status\", jdbcType=JdbcType.CHAR),\n @Result(column=\"DONETIME\", property=\"donetime\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"FILENAME\", property=\"filename\", jdbcType=JdbcType.VARCHAR)\n })\n BUMBCheckingLog selectByPrimaryKey(BUMBCheckingLogKey key);",
"protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}",
"public String getConstantTableName(){\n return CONSTANT_TABLE_NAME;\n }",
"public String toSql() {\t\n int n;\t\n void a;\t\n StringBuilder a2 = new StringBuilder();\t\n Table table = MapperHelper.getTable(this.entity);\t\n a2.append(MapperHelper.getTableName((Table)a, this.entity) + \" \" + a.alias());\t\n JoinTable[] arrjoinTable = a.joinTable();\t\n int n2 = arrjoinTable.length;\t\n int n3 = n = 0;\t\n while (n3 < n2) {\t\n JoinTable a3 = arrjoinTable[n];\t\n Table a4 = MapperHelper.getTable(a3.entity());\t\n a2.append(new StringBuilder().insert(0, \" \").append(a3.type().value()).append(\" \").toString());\t\n a2.append(new StringBuilder().insert(0, MapperHelper.getTableName(a4, this.entity)).append(\" \").append(a3.alias()).toString());\t\n a2.append(new StringBuilder().insert(0, \" ON \").append(a3.on()).toString());\t\n n3 = ++n;\t\n }\t\n StringBuilder stringBuilder = a2;\t\n stringBuilder.append(MapperHelper.getSqlMapValue(this.entity, a.extFromKeys()));\t\n return stringBuilder.toString();\t\n }",
"@MyBatisDao\npublic interface ContnDao extends BaseDao<Contn> {\n\n Contn get(@Param(\"id\") int id);\n\n Contn getByContnNo(@Param(\"contnNo\") String contnNo);\n}",
"public void formDatabaseTable() {\n }",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}",
"protected String getSqlTable() {\n\t\treturn \"Project\";\n\t}",
"@Override\n\tpublic String getTableName() {\n\t\tString sql=\"dip_dataurl\";\n\t\treturn sql;\n\t}",
"public ResultSet Custmr(Long Userid) throws SQLException {\n\trs=DbConnect.getStatement().executeQuery(\"select * from customer c,customer_details cd where c.user_id=cd.user_id and c.user_id=\"+Userid+\" \");\r\n\treturn rs;\r\n\t\r\n}",
"@Override\npublic String findParentKeyColumnName()\n{\n\treturn null;\n}",
"Tablero consultarTablero();",
"protected String getTableName()\n {\n return immutableGetTableName();\n }",
"public interface CrmDmDbsBmsMapper {\n public static String TABLENAME = \"crm_dm_bds_bms\";\n @Select(\"select * from \"+TABLENAME+\" WHERE staff_city_id=#{cityId, jdbcType=BIGINT} limit 10 \")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.BIGINT, id=true),\n @Result(column=\"Saler_id\", property=\"salerId\", jdbcType= JdbcType.BIGINT),\n @Result(column=\"Saler_name\", property=\"salerName\", jdbcType= JdbcType.BIGINT)\n })\n public List<CrmDmBdsBms> findSalerListByCityId(@Param(\"cityId\") Long cityId);\n}",
"@Override\n\t\tpublic String getTableName() {\n\t\t\treturn null;\n\t\t}",
"public MonthlyValuesTable(Database database) \n {\n //Constructor calls DbTable's constructor\n super(database);\n setTableName(\"monthlyvalues\");\n }",
"@Override\r\n\tpublic String getTableName() {\n\t\treturn \"contract\";\r\n\t}",
"@Mapper\npublic interface CivilizationIndexMapper {\n\n @Insert(\"insert into t_timezerg_civilization_index values (#{id},#{cid},#{cdate})\")\n int add(CivilizationIndex civilizationIndex);\n\n @Delete(\"delete from t_timezerg_civilization_index where id = #{id}\")\n void delete(String id);\n\n @Select(\"select * from t_timezerg_civilization_index where cid = #{cid}\")\n CivilizationIndex selectByCid(String cid);\n\n @Select(\"select * from t_timezerg_civilization_index where id = #{id}\")\n CivilizationIndex selectById(String id);\n\n @Select(\"select ci.*,c.title from t_timezerg_civilization_index ci left join t_timezerg_civilization c on c.id = ci.cid order by ci.cdate desc\")\n List<HashMap> selectList();\n\n}",
"String getTableName();",
"@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String getTableName() {\n\t\treturn null;\r\n\t}",
"public abstract String toSQL();",
"SqlColumns(String columnName){\n\t\t\t this.columnName = columnName; \n\t\t}",
"@Override\n\tpublic String getTableName() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getTableName() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic String getTableName(String[] sql) {\n\t\treturn sql[2];\r\n\t}",
"@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}",
"public TableName name();",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"@Override\n public Log map(ResultSet rs, StatementContext ctx) throws SQLException {\n var application = applicationRepository.findById(rs.getInt(1)).orElseThrow();\n return new Log(rs.getInt(1),application.getApp(),application.getPortApp(),application.getPortService(),application.getDockerInstance(),rs.getString(2),rs.getTimestamp(3).toInstant());\n }",
"@Override\r\n\tpublic void createTable(Connection con) throws SQLException {\r\n\t\tString sql = \"CREATE TABLE \" + tableName\r\n\t\t\t\t+ \"(pc_id integer, class_id varchar(20), level integer,\"\r\n\t\t\t\t+ \" PRIMARY KEY (pc_id,class_id,level) )\";\r\n\r\n\t\tif (DbUtils.doesTableExist(con, tableName)) {\r\n\r\n\t\t} else {\r\n\t\t\ttry (PreparedStatement ps = con.prepareStatement(sql);) {\r\n\t\t\t\tps.execute();\r\n\t\t\t}\r\n \r\n\t\t}\r\n\r\n\r\n\r\n\t\tString[] newInts = new String[] { \r\n\t\t\t\t\"hp_Increment\",};\r\n\t\tDAOUtils.createInts(con, tableName, newInts);\r\n\r\n\t}",
"@Override\n public String asTableDbName() {\n return \"user\";\n }",
"private void populateTable() {\n this.allLogs = this.auditLogService.getAllLogs();\n // Creat columns for users\n\n\n TableColumn<Map, String> actionColumn = new TableColumn<>(\"Action\");\n actionColumn.setCellValueFactory(new MapValueFactory<>(\"action\"));\n\n TableColumn<Map, String> actionByColumn = new TableColumn<>(\"By\");\n actionByColumn.setCellValueFactory(new MapValueFactory<>(\"actionByUserId\"));\n\n TableColumn<Map, String> actionAt = new TableColumn<>(\"At\");\n actionAt.setCellValueFactory(new MapValueFactory<>(\"createdAt\"));\n this.listOfLogs.getColumns().add(actionColumn);\n this.listOfLogs.getColumns().add(actionByColumn);\n this.listOfLogs.getColumns().add(actionAt);\n // Create an observable list to add customers to\n ObservableList<Map<String, Object>> items = FXCollections.<Map<String, Object>>observableArrayList();\n\n this.allLogs.forEach(log -> {\n Map<String, Object> obj = new HashMap<>();\n // Forces int to be string to be converted back to int\n obj.put(\"action\", log.getAction());\n obj.put(\"actionByUserId\", log.getActionByUserId().getName());\n obj.put(\"createdAt\", log.getCreatedAt());\n items.add(obj);\n });\n\n // Add all the users to the table\n this.listOfLogs.getItems().addAll(items);\n }",
"public void llenarTabla(){\n pedidoMatDao.llenarTabla();\n }",
"TableId table();",
"public TblActividadFinanciamientoDet() {\n // Este lo usa Jpa para realizar los Mapping\n }",
"public T_2698Dao() {\n\t\tsuper(org.jooq.test.jdbc.generatedclasses.tables.T_2698.T_2698, org.jooq.test.jdbc.generatedclasses.tables.pojos.T_2698.class);\n\t}",
"@Test\n \tpublic void mapTable() {\n \t\t\n \t\tString[][] data = { { \"11\", \"12\" }, { \"21\", \"22\" } };\n \n \t\tTable table = tableWith(data,\"c1\",\"c2\");\n \n \t\tTableMapDirectives directives = new TableMapDirectives(table.columns().get(0));\n \t\t\n \t\tdirectives.add(column(\"TAXOCODE\"))\n \t\t .add(column(\"ISSCAAP\"))\n \t\t .add(column(\"Scientific_name\"))\n \t\t .add(column(\"English_name\").language(\"en\"))\n \t\t .add(column(\"French_name\").language(\"fr\"))\n \t\t .add(column(\"Spanish_name\").language(\"es\"))\n \t\t .add(column(\"Author\"))\n \t\t .add(column(\"Family\"))\n \t\t .add(column(\"Order\"));\n \n \t\tOutcome outcome = service.map(table, directives);\n \t\t\n \t\tassertNotNull(outcome.result());\n \t}",
"public DerivedPartOfPerspectivesFKDAOJDBC() {\n \t\n }",
"@Override\n\tpublic String getTableName() { \n\t\treturn tableName;\n\t}",
"String getBaseTable();",
"private SCSongDatabaseTable(Context context) {\n\t\tsuper(context, DATABASE_NAME, null, DATABASE_VERSION);\n\t\t\n\t\t\n\t\t\n\t}",
"private String getTableName(Class<?> clz) {\n\t\tif (clz.isAnnotationPresent(TableName.class)) {\n\t\t\treturn ((TableName) clz.getAnnotation(TableName.class)).value();\n\t\t}\n\t\treturn clz.getSimpleName();\n\t}",
"@Override\n\tprotected String getCreateSql() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic IColumns createColumns() {\n\t\treturn new WaybillforauditColumns();\n\t}",
"public RepoSQL() { // constructor implicit\r\n\t\t super();\r\n\t }",
"private bildeBaseColumns() {\n\n }",
"public interface I_IHC_JobDataChange \n{\n\n /** TableName=IHC_JobDataChange */\n public static final String Table_Name = \"IHC_JobDataChange\";\n\n /** AD_Table_ID=1100135 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Client.\n\t * Client/Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within client\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within client\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name BPJSRegistrationDate */\n public static final String COLUMNNAME_BPJSRegistrationDate = \"BPJSRegistrationDate\";\n\n\t/** Set BPJS Registration Date\t */\n\tpublic void setBPJSRegistrationDate (Timestamp BPJSRegistrationDate);\n\n\t/** Get BPJS Registration Date\t */\n\tpublic Timestamp getBPJSRegistrationDate();\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name Description */\n public static final String COLUMNNAME_Description = \"Description\";\n\n\t/** Set Description.\n\t * Optional short description of the record\n\t */\n\tpublic void setDescription (String Description);\n\n\t/** Get Description.\n\t * Optional short description of the record\n\t */\n\tpublic String getDescription();\n\n /** Column name DescriptionNew */\n public static final String COLUMNNAME_DescriptionNew = \"DescriptionNew\";\n\n\t/** Set Description New\t */\n\tpublic void setDescriptionNew (String DescriptionNew);\n\n\t/** Get Description New\t */\n\tpublic String getDescriptionNew();\n\n /** Column name HC_Compensation1 */\n public static final String COLUMNNAME_HC_Compensation1 = \"HC_Compensation1\";\n\n\t/** Set Compensation 1\t */\n\tpublic void setHC_Compensation1 (BigDecimal HC_Compensation1);\n\n\t/** Get Compensation 1\t */\n\tpublic BigDecimal getHC_Compensation1();\n\n /** Column name HC_Compensation2 */\n public static final String COLUMNNAME_HC_Compensation2 = \"HC_Compensation2\";\n\n\t/** Set Compensation 2\t */\n\tpublic void setHC_Compensation2 (BigDecimal HC_Compensation2);\n\n\t/** Get Compensation 2\t */\n\tpublic BigDecimal getHC_Compensation2();\n\n /** Column name HC_Compensation3 */\n public static final String COLUMNNAME_HC_Compensation3 = \"HC_Compensation3\";\n\n\t/** Set Compensation 3\t */\n\tpublic void setHC_Compensation3 (BigDecimal HC_Compensation3);\n\n\t/** Get Compensation 3\t */\n\tpublic BigDecimal getHC_Compensation3();\n\n /** Column name HC_Compensation4 */\n public static final String COLUMNNAME_HC_Compensation4 = \"HC_Compensation4\";\n\n\t/** Set Compensation 4\t */\n\tpublic void setHC_Compensation4 (BigDecimal HC_Compensation4);\n\n\t/** Get Compensation 4\t */\n\tpublic BigDecimal getHC_Compensation4();\n\n /** Column name HC_EffectiveSeq */\n public static final String COLUMNNAME_HC_EffectiveSeq = \"HC_EffectiveSeq\";\n\n\t/** Set Effective Sequence\t */\n\tpublic void setHC_EffectiveSeq (int HC_EffectiveSeq);\n\n\t/** Get Effective Sequence\t */\n\tpublic int getHC_EffectiveSeq();\n\n /** Column name HC_Employee_ID */\n public static final String COLUMNNAME_HC_Employee_ID = \"HC_Employee_ID\";\n\n\t/** Set Employee Data\t */\n\tpublic void setHC_Employee_ID (int HC_Employee_ID);\n\n\t/** Get Employee Data\t */\n\tpublic int getHC_Employee_ID();\n\n\tpublic I_HC_Employee getHC_Employee() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade_ID = \"HC_EmployeeGrade_ID\";\n\n\t/** Set Employee Grade\t */\n\tpublic void setHC_EmployeeGrade_ID (int HC_EmployeeGrade_ID);\n\n\t/** Get Employee Grade\t */\n\tpublic int getHC_EmployeeGrade_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade() throws RuntimeException;\n\n /** Column name HC_EmployeeGrade2_ID */\n public static final String COLUMNNAME_HC_EmployeeGrade2_ID = \"HC_EmployeeGrade2_ID\";\n\n\t/** Set Employee Grade To\t */\n\tpublic void setHC_EmployeeGrade2_ID (int HC_EmployeeGrade2_ID);\n\n\t/** Get Employee Grade To\t */\n\tpublic int getHC_EmployeeGrade2_ID();\n\n\tpublic I_HC_EmployeeGrade getHC_EmployeeGrade2() throws RuntimeException;\n\n /** Column name HC_EmployeeJob_ID */\n public static final String COLUMNNAME_HC_EmployeeJob_ID = \"HC_EmployeeJob_ID\";\n\n\t/** Set Employee Job Data\t */\n\tpublic void setHC_EmployeeJob_ID (int HC_EmployeeJob_ID);\n\n\t/** Get Employee Job Data\t */\n\tpublic int getHC_EmployeeJob_ID();\n\n\tpublic I_HC_EmployeeJob getHC_EmployeeJob() throws RuntimeException;\n\n /** Column name HC_Job_ID */\n public static final String COLUMNNAME_HC_Job_ID = \"HC_Job_ID\";\n\n\t/** Set Job\t */\n\tpublic void setHC_Job_ID (int HC_Job_ID);\n\n\t/** Get Job\t */\n\tpublic int getHC_Job_ID();\n\n\tpublic I_HC_Job getHC_Job() throws RuntimeException;\n\n /** Column name HC_JobAction */\n public static final String COLUMNNAME_HC_JobAction = \"HC_JobAction\";\n\n\t/** Set Job Action\t */\n\tpublic void setHC_JobAction (String HC_JobAction);\n\n\t/** Get Job Action\t */\n\tpublic String getHC_JobAction();\n\n /** Column name HC_JobDataChange_ID */\n public static final String COLUMNNAME_HC_JobDataChange_ID = \"HC_JobDataChange_ID\";\n\n\t/** Set Job Data Change\t */\n\tpublic void setHC_JobDataChange_ID (int HC_JobDataChange_ID);\n\n\t/** Get Job Data Change\t */\n\tpublic int getHC_JobDataChange_ID();\n\n\tpublic I_HC_JobDataChange getHC_JobDataChange() throws RuntimeException;\n\n /** Column name HC_Manager_ID */\n public static final String COLUMNNAME_HC_Manager_ID = \"HC_Manager_ID\";\n\n\t/** Set Manager Name\t */\n\tpublic void setHC_Manager_ID (int HC_Manager_ID);\n\n\t/** Get Manager Name\t */\n\tpublic int getHC_Manager_ID();\n\n\tpublic I_HC_Employee getHC_Manager() throws RuntimeException;\n\n /** Column name HC_ManagerTo_ID */\n public static final String COLUMNNAME_HC_ManagerTo_ID = \"HC_ManagerTo_ID\";\n\n\t/** Set Manager To ID\t */\n\tpublic void setHC_ManagerTo_ID (int HC_ManagerTo_ID);\n\n\t/** Get Manager To ID\t */\n\tpublic int getHC_ManagerTo_ID();\n\n\tpublic I_HC_Employee getHC_ManagerTo() throws RuntimeException;\n\n /** Column name HC_Org_ID */\n public static final String COLUMNNAME_HC_Org_ID = \"HC_Org_ID\";\n\n\t/** Set HC Organization\t */\n\tpublic void setHC_Org_ID (int HC_Org_ID);\n\n\t/** Get HC Organization\t */\n\tpublic int getHC_Org_ID();\n\n\tpublic I_HC_Org getHC_Org() throws RuntimeException;\n\n /** Column name HC_Org2_ID */\n public static final String COLUMNNAME_HC_Org2_ID = \"HC_Org2_ID\";\n\n\t/** Set HC Organization To\t */\n\tpublic void setHC_Org2_ID (int HC_Org2_ID);\n\n\t/** Get HC Organization To\t */\n\tpublic int getHC_Org2_ID();\n\n\tpublic I_HC_Org getHC_Org2() throws RuntimeException;\n\n /** Column name HC_PayGroup_ID */\n public static final String COLUMNNAME_HC_PayGroup_ID = \"HC_PayGroup_ID\";\n\n\t/** Set Payroll Group\t */\n\tpublic void setHC_PayGroup_ID (int HC_PayGroup_ID);\n\n\t/** Get Payroll Group\t */\n\tpublic int getHC_PayGroup_ID();\n\n\tpublic I_HC_PayGroup getHC_PayGroup() throws RuntimeException;\n\n /** Column name HC_PreviousJob_ID */\n public static final String COLUMNNAME_HC_PreviousJob_ID = \"HC_PreviousJob_ID\";\n\n\t/** Set Job Sekarang\t */\n\tpublic void setHC_PreviousJob_ID (int HC_PreviousJob_ID);\n\n\t/** Get Job Sekarang\t */\n\tpublic int getHC_PreviousJob_ID();\n\n\tpublic I_HC_Job getHC_PreviousJob() throws RuntimeException;\n\n /** Column name HC_Reason_ID */\n public static final String COLUMNNAME_HC_Reason_ID = \"HC_Reason_ID\";\n\n\t/** Set HC Reason\t */\n\tpublic void setHC_Reason_ID (int HC_Reason_ID);\n\n\t/** Get HC Reason\t */\n\tpublic int getHC_Reason_ID();\n\n\tpublic I_HC_Reason getHC_Reason() throws RuntimeException;\n\n /** Column name HC_Status */\n public static final String COLUMNNAME_HC_Status = \"HC_Status\";\n\n\t/** Set HC Status\t */\n\tpublic void setHC_Status (String HC_Status);\n\n\t/** Get HC Status\t */\n\tpublic String getHC_Status();\n\n /** Column name HC_WorkEndDate */\n public static final String COLUMNNAME_HC_WorkEndDate = \"HC_WorkEndDate\";\n\n\t/** Set Work End Date\t */\n\tpublic void setHC_WorkEndDate (Timestamp HC_WorkEndDate);\n\n\t/** Get Work End Date\t */\n\tpublic Timestamp getHC_WorkEndDate();\n\n /** Column name HC_WorkPeriodDate */\n public static final String COLUMNNAME_HC_WorkPeriodDate = \"HC_WorkPeriodDate\";\n\n\t/** Set WorkPeriodDate\t */\n\tpublic void setHC_WorkPeriodDate (String HC_WorkPeriodDate);\n\n\t/** Get WorkPeriodDate\t */\n\tpublic String getHC_WorkPeriodDate();\n\n /** Column name HC_WorkStartDate */\n public static final String COLUMNNAME_HC_WorkStartDate = \"HC_WorkStartDate\";\n\n\t/** Set WorkStartDate\t */\n\tpublic void setHC_WorkStartDate (Timestamp HC_WorkStartDate);\n\n\t/** Get WorkStartDate\t */\n\tpublic Timestamp getHC_WorkStartDate();\n\n /** Column name HC_WorkStartDate2 */\n public static final String COLUMNNAME_HC_WorkStartDate2 = \"HC_WorkStartDate2\";\n\n\t/** Set Work Start Date Baru\t */\n\tpublic void setHC_WorkStartDate2 (Timestamp HC_WorkStartDate2);\n\n\t/** Get Work Start Date Baru\t */\n\tpublic Timestamp getHC_WorkStartDate2();\n\n /** Column name IHC_JobDataChange_ID */\n public static final String COLUMNNAME_IHC_JobDataChange_ID = \"IHC_JobDataChange_ID\";\n\n\t/** Set IHC_JobDayaChange\t */\n\tpublic void setIHC_JobDataChange_ID (int IHC_JobDataChange_ID);\n\n\t/** Get IHC_JobDayaChange\t */\n\tpublic int getIHC_JobDataChange_ID();\n\n /** Column name IHC_JobDataChange_UU */\n public static final String COLUMNNAME_IHC_JobDataChange_UU = \"IHC_JobDataChange_UU\";\n\n\t/** Set IHC_JobDataChange_UU\t */\n\tpublic void setIHC_JobDataChange_UU (String IHC_JobDataChange_UU);\n\n\t/** Get IHC_JobDataChange_UU\t */\n\tpublic String getIHC_JobDataChange_UU();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name IsCancelled */\n public static final String COLUMNNAME_IsCancelled = \"IsCancelled\";\n\n\t/** Set Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic void setIsCancelled (boolean IsCancelled);\n\n\t/** Get Cancelled.\n\t * The transaction was cancelled\n\t */\n\tpublic boolean isCancelled();\n\n /** Column name NomorSK */\n public static final String COLUMNNAME_NomorSK = \"NomorSK\";\n\n\t/** Set Nomor SK\t */\n\tpublic void setNomorSK (String NomorSK);\n\n\t/** Get Nomor SK\t */\n\tpublic String getNomorSK();\n\n /** Column name NomorSK2 */\n public static final String COLUMNNAME_NomorSK2 = \"NomorSK2\";\n\n\t/** Set Nomor SK Baru\t */\n\tpublic void setNomorSK2 (String NomorSK2);\n\n\t/** Get Nomor SK Baru\t */\n\tpublic String getNomorSK2();\n\n /** Column name OriginalServiceData */\n public static final String COLUMNNAME_OriginalServiceData = \"OriginalServiceData\";\n\n\t/** Set Original Service Date\t */\n\tpublic void setOriginalServiceData (Timestamp OriginalServiceData);\n\n\t/** Get Original Service Date\t */\n\tpublic Timestamp getOriginalServiceData();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name SeqNo */\n public static final String COLUMNNAME_SeqNo = \"SeqNo\";\n\n\t/** Set Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic void setSeqNo (int SeqNo);\n\n\t/** Get Sequence.\n\t * Method of ordering records;\n lowest number comes first\n\t */\n\tpublic int getSeqNo();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"public interface ICriteriaWhen {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table sale_classify_good\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n void criteria(Criteria criteria);\n }",
"@Mapper\npublic interface CscpFuncDao {\n @Insert(\"insert into cscp_org_func values(#{orgID,jdbcType=VARCHAR},#{funcID,jdbcType=VARCHAR})\")\n void saveOrgFunc(@Param(\"orgID\") String orgID, @Param(\"funcID\") String funcID);\n @Select(\"select f.id,f.func_name,f.func_type,f.func_desc from cscp_org_func of,cscp_function f where of.org_id=#{orgID,jdbcType=VARCHAR} and of.func_id=f.id and f.func_type=1\")\n @Results({\n @Result(column=\"id\", property=\"id\", jdbcType= JdbcType.VARCHAR, id=true),\n @Result(column=\"func_type\", property=\"funcType\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"func_name\", property=\"funcName\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"func_desc\", property=\"description\", jdbcType=JdbcType.VARCHAR)\n })\n List<CscpFunc> getFuncs(String orgID);\n @Select(\"select menu_id from cscp_func_menu m left join cscp_org_func of on m.func_id=of.func_id where of.org_id=#{orgID,jdbcType=VARCHAR}\")\n List<String> getFuncMenus(String orgID);\n}",
"List<Category> lisCat() {\n return dao.getAll(Category.class);\n }",
"public CursosTable() {\n \n \n }",
"@Override\n public List<Complaint> viewComplaintsForAdmin() {\n\n String SELECT = \"SELECT * FROM complaints WHERE typeOfComplaint = 'other' ORDER BY complaintId ASC\";\n\n return jdbcTemplate.query(SELECT,getComplaintMapper());\n }",
"public CategoryRecord() {\n\t\tsuper(com.cellarhq.generated.tables.Category.CATEGORY);\n\t}",
"@Override\n public Entity configuracion(Entity e) throws SQLException {\n return null;\n }",
"private String getSql(Map map){\n \tStringBuilder sql = new StringBuilder();\n \t\n \tsql.append(\" select account.FNumber number,REPLACE(account.FLongNumber, '!', '.') transLongNumber,account.FLongNumber longNumber,account.FName_l2 name, \");\n \tsql.append(\" account.FLevel level1,account.FIsLeaf isLeaf,account.FId id,account.FParentID parentid, \");\n \tsql.append(\" org.FId fullOrgUnitid,project.FId curProjectid \");\n \tsql.append(\" from T_FDC_CostAccount account \");\n \tsql.append(\" left join T_FDC_CurProject project ON account.FCurProject = project.FID \");\n \tsql.append(\" left join T_FDC_CostAccount parent ON account.FParentID = parent.FID \");\n \tsql.append(\" left join T_ORG_BaseUnit org ON account.FFullOrgUnit = org.FID \");\n \tsql.append(\" where 1=1 \");\n \tsql.append(\" and account.FLongNumber like '5002%' \");//只取科目502开头的科目\n \tif(map.get(\"fullOrgUnit\")!=null){\n OrgStructureInfo oui = (OrgStructureInfo)map.get(\"fullOrgUnit\");\n if(oui != null && oui.getUnit() != null){\n FullOrgUnitInfo info = oui.getUnit();\n \tsql.append(\" and account.FFullOrgUnit = '\"+info.getId().toString()+\"' \");\n }\n \t}\n \tif(map.get(\"curProject\")!=null){\n \t\tCurProjectInfo projectInfo = (CurProjectInfo)map.get(\"curProject\");\n \tsql.append(\" and account.FCurProject = '\"+projectInfo.getId().toString()+\"' \");\n \t}\n \tsql.append(\" order by REPLACE(account.FLongNumber, '!', '.') asc \");\n \t\n \treturn sql.toString();\n }",
"SqlTables(String tableName){\n\t\t\t this.tableName = tableName; \n\t\t}",
"public String getNomTable();",
"@Override\n protected Map<TableUniqueName, String> tableSubstitution() {\n return ImmutableMap.of();\n }",
"public interface SQLV4 {\n\n //数据统计\n String ALTER_TABLE_DATASTATISTICS_TYPE = \"ALTER TABLE \" + DataStatisticsTable.TABLE_DATA_STATISTICS\n + \" ADD COLUMN \" + DataStatisticsTable.COLUMN_DATA_TYPE + \" INTEGER DEFAULT 0\";\n}",
"public String getMapTableName() {\n return getTableName(false, false, false, true);\n }",
"void gen_table_names(Connection c, PreparedStatement pst ) throws ClassNotFoundException, SQLException\n\t{\n\t String lambda_term_query = \"select subgoal_names from view2subgoals where view = '\"+ name +\"'\";\n\n\t\t\n\t pst = c.prepareStatement(lambda_term_query);\n\t \n\t ResultSet rs = pst.executeQuery();\n\t \n\t if(!rs.wasNull())\n\t {\n\t \twhile(rs.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(rs.getString(1));\n\t\t }\n\t }\n\t \n\t else\n\t {\n\t \tlambda_term_query = \"select subgoal from web_view_table where renamed_view = '\"+ name +\"'\";\n\n\t\t\t\n\t\t pst = c.prepareStatement(lambda_term_query);\n\t\t \n\t\t ResultSet r = pst.executeQuery();\n\n\t\t while(r.next())\n\t\t {\n\t\t \t\t \t\n\t\t \ttable_names.add(r.getString(1));\n\t\t }\n\t }\n\t \n\t \n\t \n\n\t}",
"@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n List<ASuitMeasurement> selectAll();",
"@SqlQuery(\"SELECT gid, name AS text from sby\")\n List<OptionKecamatanO> option();",
"void add_collab_prnc() {\n\t\ttry {\n\t\t\tjdbc.setConnection();\n\t\t\tStatement stm=jdbc.setConnection().createStatement();\n\t\t\tString strcheck=\"select id from utilisateur where username=\"+'\"'+login_class.UsernameLog+'\"';\n\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\tResultSet res = stm.executeQuery(strcheck);\n\t\t\t\n\t\t\t\n\t\t\twhile (res.next()) {\n\t\t\t\tsimple_users_select_list_id.add(res.getInt(\"id\"));\n\t\t\t}\n\t\t\tjdbc.setConnection().close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic List<Category> getAllCategories() {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"FROM \"+Category.class.getName());\n\t\treturn (List<Category>)query.list();\t\t\n\t}",
"@SqlQuery(\"select * from account\")\r\n public List<accountDB> get();",
"private void generateChangeLog() {\n // get the database connection\n }",
"public List<Company> readFromDatabase() {\n\t\treturn this.jdbcTemplate.query(\"SELECT * FROM \" + table + \";\", (rs, i) -> new Company(rs.getString(\"Date\"), rs.getString(\"Security\"), rs.getDouble(\"Weighting\")));\n\t}",
"public HashMap<Integer,String> customers() {\n ResultSet res = database.getResult();\n HashMap<Integer,String> customers = new HashMap<>();\n try {\n res = database.getStat().executeQuery(\"select * from customers\");\n while(res.next()) {\n customers.put(res.getInt(\"id_customer\"),res.getString(\"nama_customer\"));\n }\n } catch(SQLException e) {\n e.printStackTrace();\n }\n return customers;\n }",
"@Override\n public void createUsersTable() {\n\n\n Session session = sessionFactory.openSession();\n Transaction transaction = session.beginTransaction();\n session.createSQLQuery(\"CREATE TABLE IF NOT EXISTS Users \" +\n \"(Id BIGINT PRIMARY KEY AUTO_INCREMENT, FirstName TINYTEXT , \" +\n \"LastName TINYTEXT , Age TINYINT)\").executeUpdate();\n transaction.commit();\n session.close();\n\n\n }",
"public void fetColumnList() {\n try {\n table.getColumns().clear();\n if (rsAllEntries != null) {\n //SQL FOR SELECTING ALL OF CUSTOMER\n for (int i = 0; i < rsAllEntries.getMetaData().getColumnCount(); i++) {\n //We are using non property style for making dynamic table\n final int j = i;\n TableColumn col = new TableColumn();\n switch (rsAllEntries.getMetaData().getColumnName(i + 1)) {\n case \"order_number\":\n col.setText(\"Order Number\");\n break;\n case \"product_type\":\n col.setText(\"Produt Type\");\n break;\n case \"worker\":\n col.setText(\"Worker\");\n break;\n case \"planned_time\":\n col.setText(\"Planned Time\");\n break;\n case \"actual_time\":\n col.setText(\"Actual Time\");\n break;\n case \"order_status\":\n col.setText(\"Order Status\");\n break;\n default:\n col.setText(rsAllEntries.getMetaData().getColumnName(i + 1)); //if column name in SQL Database is not found, then TableView column receive SQL Database current column name (not readable)\n break;\n }\n\n col.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<ObservableList, String>, ObservableValue<String>>() {\n public ObservableValue<String> call(TableColumn.CellDataFeatures<ObservableList, String> param) {\n return new SimpleStringProperty(param.getValue().get(j).toString());\n }\n });\n\n table.getColumns().removeAll(col);\n table.getColumns().addAll(col);\n }\n } else {\n warning.setText(\"No columns to display\");\n }\n } catch (SQLException e) {\n System.out.println(\"Failure getting column data from SQL \");\n }\n }",
"public interface ICriteriaAdd {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table b_dic_tree_code\n *\n * @mbg.generated\n * @project https://github.com/itfsw/mybatis-generator-plugin\n */\n Criteria add(Criteria add);\n }",
"@Select({\n \"select\",\n \"SOID, LINENO, MID, MNAME, STANDARD, UNITID, UNITNAME, NUM, BEFOREDISCOUNT, DISCOUNT, \",\n \"PRICE, TOTALPRICE, TAXRATE, TOTALTAX, TOTALMONEY, BEFOREOUT, ESTIMATEDATE, LEFTNUM, \",\n \"ISGIFT, FROMBILLTYPE, FROMBILLID\",\n \"from SALEORDERDETAIL\",\n \"where SOID = #{soid,jdbcType=VARCHAR}\",\n \"and LINENO = #{lineno,jdbcType=DECIMAL}\"\n })\n @ConstructorArgs({\n @Arg(column=\"SOID\", javaType=String.class, jdbcType=JdbcType.VARCHAR, id=true),\n @Arg(column=\"LINENO\", javaType=Long.class, jdbcType=JdbcType.DECIMAL, id=true),\n @Arg(column=\"MID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"MNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"STANDARD\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITID\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"UNITNAME\", javaType=String.class, jdbcType=JdbcType.VARCHAR),\n @Arg(column=\"NUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREDISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"DISCOUNT\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"PRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALPRICE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TAXRATE\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALTAX\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"TOTALMONEY\", javaType=BigDecimal.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"BEFOREOUT\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ESTIMATEDATE\", javaType=Date.class, jdbcType=JdbcType.TIMESTAMP),\n @Arg(column=\"LEFTNUM\", javaType=Long.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"ISGIFT\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLTYPE\", javaType=Short.class, jdbcType=JdbcType.DECIMAL),\n @Arg(column=\"FROMBILLID\", javaType=String.class, jdbcType=JdbcType.VARCHAR)\n })\n Saleorderdetail selectByPrimaryKey(@Param(\"soid\") String soid, @Param(\"lineno\") Long lineno);",
"@Override\n\tpublic String findParentKeyColumnName()\n\t{\n\t\treturn null;\n\t}",
"@Select({\n \"select\",\n \"user_id, measure_date, contract_id, consultant_uid, collar, wrist, bust, shoulder_width, \",\n \"mid_waist, waist_line, sleeve, hem, back_length, front_length, arm, forearm, \",\n \"front_breast_width, back_width, pants_length, crotch_depth, leg_width, thigh, \",\n \"lower_leg, height, weight, body_shape, stance, shoulder_shape, abdomen_shape, \",\n \"payment, invoice\",\n \"from A_SUIT_MEASUREMENT\",\n \"where user_id = #{userId,jdbcType=INTEGER}\",\n \"and measure_date = #{measureDate,jdbcType=TIMESTAMP}\"\n })\n @Results({\n @Result(column=\"user_id\", property=\"userId\", jdbcType=JdbcType.INTEGER, id=true),\n @Result(column=\"measure_date\", property=\"measureDate\", jdbcType=JdbcType.TIMESTAMP, id=true),\n @Result(column=\"contract_id\", property=\"contractId\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"consultant_uid\", property=\"consultantUid\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"collar\", property=\"collar\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"wrist\", property=\"wrist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"bust\", property=\"bust\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"shoulder_width\", property=\"shoulderWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"mid_waist\", property=\"midWaist\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"waist_line\", property=\"waistLine\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"sleeve\", property=\"sleeve\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"hem\", property=\"hem\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_length\", property=\"backLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_length\", property=\"frontLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"arm\", property=\"arm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"forearm\", property=\"forearm\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"front_breast_width\", property=\"frontBreastWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"back_width\", property=\"backWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"pants_length\", property=\"pantsLength\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"crotch_depth\", property=\"crotchDepth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"leg_width\", property=\"legWidth\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"thigh\", property=\"thigh\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"lower_leg\", property=\"lowerLeg\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"height\", property=\"height\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"weight\", property=\"weight\", jdbcType=JdbcType.DOUBLE),\n @Result(column=\"body_shape\", property=\"bodyShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"stance\", property=\"stance\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"shoulder_shape\", property=\"shoulderShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"abdomen_shape\", property=\"abdomenShape\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"payment\", property=\"payment\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"invoice\", property=\"invoice\", jdbcType=JdbcType.VARCHAR)\n })\n ASuitMeasurement selectByPrimaryKey(@Param(\"userId\") Integer userId, @Param(\"measureDate\") Date measureDate);",
"private String getCloneGenealogyTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_GENEALOGY(\");\n \t\tbuilder.append(\"CLONE_GENEALOGY_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"START_REVISION_ID LONG,\");\n \t\tbuilder.append(\"END_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CLONES TEXT NOT NULL,\");\n \t\tbuilder.append(\"CLONE_LINKS TEXT NOT NULL,\");\n \t\tbuilder.append(\"CHANGES INTEGER,\");\n \t\tbuilder.append(\"ADDITIONS INTEGER,\");\n \t\tbuilder.append(\"DELETIONS INTEGER,\");\n \t\tbuilder.append(\"DEAD INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}",
"protected abstract TableName getTableNameByConvention(Class<?> beanClass);",
"private static HashMap<String,String> buildColumnMapCar() {\r\n HashMap<String,String> map = new HashMap<String,String>();\r\n map.put(KEY_POINTS, KEY_POINTS);\r\n\r\n map.put(BaseColumns._ID, \"rowid AS \" +\r\n BaseColumns._ID);\r\n\r\n return map;\r\n }",
"private CalciteKuduTable getTable() {\n return (CalciteKuduTable) table;\n }",
"public void doBuild() throws TorqueException\n {\n dbMap = Torque.getDatabaseMap(\"cream\");\n\n dbMap.addTable(\"OPPORTUNITY\");\n TableMap tMap = dbMap.getTable(\"OPPORTUNITY\");\n\n tMap.setPrimaryKeyMethod(TableMap.NATIVE);\n\n\n tMap.addPrimaryKey(\"OPPORTUNITY.OPPORTUNITY_ID\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_CODE\", \"\");\n tMap.addColumn(\"OPPORTUNITY.STATUS\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PRIORITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_TYPE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.OPPORTUNITY_NAME\", \"\");\n tMap.addForeignKey(\n \"OPPORTUNITY.OPPORTUNITY_CAT_ID\", new Integer(0) , \"OPPORTUNITY_CATEGORY\" ,\n \"OPPORTUNITY_CAT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.LEAD_SOURCE_ID\", new Integer(0) , \"LEAD_SOURCE\" ,\n \"LEAD_SOURCE_ID\");\n tMap.addColumn(\"OPPORTUNITY.ISSUED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.EXPECTED_DATE\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CLOSED_DATE\", new Date());\n tMap.addForeignKey(\n \"OPPORTUNITY.CUSTOMER_ID\", new Integer(0) , \"CUSTOMER\" ,\n \"CUSTOMER_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.PROJECT_ID\", new Integer(0) , \"PROJECT\" ,\n \"PROJECT_ID\");\n tMap.addForeignKey(\n \"OPPORTUNITY.CURRENCY_ID\", new Integer(0) , \"CURRENCY\" ,\n \"CURRENCY_ID\");\n tMap.addColumn(\"OPPORTUNITY.CURRENCY_AMOUNT\", new BigDecimal(0));\n tMap.addColumn(\"OPPORTUNITY.SALES_STAGE\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.PROBABILITY\", new Integer(0));\n tMap.addColumn(\"OPPORTUNITY.SUBJECT\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NEXT_STEPS\", \"\");\n tMap.addColumn(\"OPPORTUNITY.NOTES\", \"\");\n tMap.addColumn(\"OPPORTUNITY.CREATED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.MODIFIED\", new Date());\n tMap.addColumn(\"OPPORTUNITY.CREATED_BY\", \"\");\n tMap.addColumn(\"OPPORTUNITY.MODIFIED_BY\", \"\");\n }",
"@Transient\n public String getCacheKey() {\n return this.getTableName();\n }",
"public String getDbTable() {return dbTable;}",
"@MyBatisRepository\npublic interface TypeCusMapper {\n\tvoid insert(TypeCus typeCus);\n\n\tvoid delete(Long typeCusId);\n\t\n\tvoid removeTcs(TypeCusQB tcQb);\n\n\tvoid update(TypeCus typeCus);\n\n\tTypeCus select(Long typeCusId);\n\n\tList<TypeCus> selectList(TypeCusQB queryBean);\n\n\tList<TypeCus> selectPage(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tInteger selectCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\n\tObject proc(TypeCus typeCus);\n\t\n\tList<Customer> selectComplex(PagingQueryBean<TypeCusQB> pagingQueryBean);;\n\t\n\tInteger selectComplexCount(PagingQueryBean<TypeCusQB> pagingQueryBean);\n\tLong getMaxOrder(Long typeId);\n}",
"private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }",
"public void createTableComplaintsData()\n\t\t{\n\t\t\ttry {\n\t\t\t\tDatabaseMetaData d=con.getMetaData();\n\t\t\t\tResultSet rs=d.getTables(null,null,\"ComplaintsData\",null);\n\t\t\t\tif(rs.next())\n\t\t\t\t{\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData table exist\");\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tString Create_Table=\"create table ComplaintsData(Customer_Name varchar(100),Address varchar(100),Contact varchar(30),Product varchar(100),Serial_No varchar(50),Module_No varchar(50),Complaint_No varchar(50),Category varchar(30))\";\n\t\t\t\t\tPreparedStatement ps=con.prepareStatement(Create_Table);\n\t\t\t\t\tps.executeUpdate();\n\t//\t\t\t\tJOptionPane.showMessageDialog(null,\"ComplaintsData created successfully!\");\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}",
"public String toString()\n {\n return this.getUntranslatedTableName();\n }",
"public String getTableDbName() { return \"t_trxtypes\"; }",
"public interface RelationInfoDao extends BaseDao<RelationInfoDO> {\n\n HashMap<String,String> getDependents(String tableNames);\n\n List<HashMap<String,String>> getParentTable(String tableNames);\n\n List<HashMap<String,String>> getChlidTable(String s);\n}",
"public interface CfgSearchRecommendMapper extends BaseMapper {\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int countByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int deleteByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insert(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int insertSelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n CfgSearchRecommend selectByPrimaryKey(Long id);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExampleSelective(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByExample(@Param(\"record\") CfgSearchRecommend record, @Param(\"example\") CfgSearchRecommendExample example);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKeySelective(CfgSearchRecommend record);\n\n /**\n * This method was generated by MyBatis Generator.\n * This method corresponds to the database table t_cfg_search_recommend\n *\n * @mbggenerated\n */\n int updateByPrimaryKey(CfgSearchRecommend record);\n}",
"Miss_control_log selectByPrimaryKey(String loginuuid);",
"@MyBatisRepository\r\npublic interface BackRoleDao extends BaseDao<BackRole> {\r\n}",
"@Select({\n \"select\",\n \"courseid, code, name, teacher, credit, week, day_detail1, day_detail2, location, \",\n \"remaining, total, extra, index\",\n \"from generalcourseinformation\",\n \"where courseid = #{courseid,jdbcType=VARCHAR}\"\n })\n @Results({\n @Result(column=\"courseid\", property=\"courseid\", jdbcType=JdbcType.VARCHAR, id=true),\n @Result(column=\"code\", property=\"code\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"name\", property=\"name\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"teacher\", property=\"teacher\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"credit\", property=\"credit\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"week\", property=\"week\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail1\", property=\"day_detail1\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"day_detail2\", property=\"day_detail2\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"location\", property=\"location\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"remaining\", property=\"remaining\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"total\", property=\"total\", jdbcType=JdbcType.INTEGER),\n @Result(column=\"extra\", property=\"extra\", jdbcType=JdbcType.VARCHAR),\n @Result(column=\"index\", property=\"index\", jdbcType=JdbcType.INTEGER)\n })\n GeneralCourse selectByPrimaryKey(String courseid);",
"public List GetSoupKitchenTable() {\n\n //ArrayList<FoodPantry> fpantries = new ArrayList<FoodPantry>();\n\n\n //here we want to to a SELECT * FROM food_pantry table\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT * FROM cs6400_sp17_team073.Soup_kitchen\";\n\n List<SoupKitchen> skitchens = jdbcTemplate.query(sql, new SkitchenMapper());\n\n\n\n return skitchens;\n }",
"public CiviliteDao() {\r\n\t\tsuper();\r\n\t}",
"@SuppressWarnings(\"all\")\npublic interface I_I_BankDataJP \n{\n\n /** TableName=I_BankDataJP */\n public static final String Table_Name = \"I_BankDataJP\";\n\n /** AD_Table_ID=1000307 */\n public static final int Table_ID = MTable.getTable_ID(Table_Name);\n\n KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);\n\n /** AccessLevel = 3 - Client - Org \n */\n BigDecimal accessLevel = BigDecimal.valueOf(3);\n\n /** Load Meta Data */\n\n /** Column name AD_Client_ID */\n public static final String COLUMNNAME_AD_Client_ID = \"AD_Client_ID\";\n\n\t/** Get Tenant.\n\t * Tenant for this installation.\n\t */\n\tpublic int getAD_Client_ID();\n\n /** Column name AD_OrgTrx_ID */\n public static final String COLUMNNAME_AD_OrgTrx_ID = \"AD_OrgTrx_ID\";\n\n\t/** Set Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic void setAD_OrgTrx_ID (int AD_OrgTrx_ID);\n\n\t/** Get Trx Organization.\n\t * Performing or initiating organization\n\t */\n\tpublic int getAD_OrgTrx_ID();\n\n /** Column name AD_Org_ID */\n public static final String COLUMNNAME_AD_Org_ID = \"AD_Org_ID\";\n\n\t/** Set Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic void setAD_Org_ID (int AD_Org_ID);\n\n\t/** Get Organization.\n\t * Organizational entity within tenant\n\t */\n\tpublic int getAD_Org_ID();\n\n /** Column name AccountNo */\n public static final String COLUMNNAME_AccountNo = \"AccountNo\";\n\n\t/** Set Account No.\n\t * Account Number\n\t */\n\tpublic void setAccountNo (String AccountNo);\n\n\t/** Get Account No.\n\t * Account Number\n\t */\n\tpublic String getAccountNo();\n\n /** Column name BankAccountType */\n public static final String COLUMNNAME_BankAccountType = \"BankAccountType\";\n\n\t/** Set Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic void setBankAccountType (String BankAccountType);\n\n\t/** Get Bank Account Type.\n\t * Bank Account Type\n\t */\n\tpublic String getBankAccountType();\n\n /** Column name C_BankAccount_ID */\n public static final String COLUMNNAME_C_BankAccount_ID = \"C_BankAccount_ID\";\n\n\t/** Set Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic void setC_BankAccount_ID (int C_BankAccount_ID);\n\n\t/** Get Bank Account.\n\t * Account at the Bank\n\t */\n\tpublic int getC_BankAccount_ID();\n\n\tpublic org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;\n\n /** Column name C_Bank_ID */\n public static final String COLUMNNAME_C_Bank_ID = \"C_Bank_ID\";\n\n\t/** Set Bank.\n\t * Bank\n\t */\n\tpublic void setC_Bank_ID (int C_Bank_ID);\n\n\t/** Get Bank.\n\t * Bank\n\t */\n\tpublic int getC_Bank_ID();\n\n\tpublic org.compiere.model.I_C_Bank getC_Bank() throws RuntimeException;\n\n /** Column name Created */\n public static final String COLUMNNAME_Created = \"Created\";\n\n\t/** Get Created.\n\t * Date this record was created\n\t */\n\tpublic Timestamp getCreated();\n\n /** Column name CreatedBy */\n public static final String COLUMNNAME_CreatedBy = \"CreatedBy\";\n\n\t/** Get Created By.\n\t * User who created this records\n\t */\n\tpublic int getCreatedBy();\n\n /** Column name DateAcct */\n public static final String COLUMNNAME_DateAcct = \"DateAcct\";\n\n\t/** Set Account Date.\n\t * Accounting Date\n\t */\n\tpublic void setDateAcct (Timestamp DateAcct);\n\n\t/** Get Account Date.\n\t * Accounting Date\n\t */\n\tpublic Timestamp getDateAcct();\n\n /** Column name I_BankDataJP_ID */\n public static final String COLUMNNAME_I_BankDataJP_ID = \"I_BankDataJP_ID\";\n\n\t/** Set I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic void setI_BankDataJP_ID (int I_BankDataJP_ID);\n\n\t/** Get I_BankDataJP.\n\t * JPIERE-0595:JPBP\n\t */\n\tpublic int getI_BankDataJP_ID();\n\n /** Column name I_BankDataJP_UU */\n public static final String COLUMNNAME_I_BankDataJP_UU = \"I_BankDataJP_UU\";\n\n\t/** Set I_BankDataJP_UU\t */\n\tpublic void setI_BankDataJP_UU (String I_BankDataJP_UU);\n\n\t/** Get I_BankDataJP_UU\t */\n\tpublic String getI_BankDataJP_UU();\n\n /** Column name I_ErrorMsg */\n public static final String COLUMNNAME_I_ErrorMsg = \"I_ErrorMsg\";\n\n\t/** Set Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic void setI_ErrorMsg (String I_ErrorMsg);\n\n\t/** Get Import Error Message.\n\t * Messages generated from import process\n\t */\n\tpublic String getI_ErrorMsg();\n\n /** Column name I_IsImported */\n public static final String COLUMNNAME_I_IsImported = \"I_IsImported\";\n\n\t/** Set Imported.\n\t * Has this import been processed\n\t */\n\tpublic void setI_IsImported (boolean I_IsImported);\n\n\t/** Get Imported.\n\t * Has this import been processed\n\t */\n\tpublic boolean isI_IsImported();\n\n /** Column name IsActive */\n public static final String COLUMNNAME_IsActive = \"IsActive\";\n\n\t/** Set Active.\n\t * The record is active in the system\n\t */\n\tpublic void setIsActive (boolean IsActive);\n\n\t/** Get Active.\n\t * The record is active in the system\n\t */\n\tpublic boolean isActive();\n\n /** Column name JP_A_Name */\n public static final String COLUMNNAME_JP_A_Name = \"JP_A_Name\";\n\n\t/** Set Account Name\t */\n\tpublic void setJP_A_Name (String JP_A_Name);\n\n\t/** Get Account Name\t */\n\tpublic String getJP_A_Name();\n\n /** Column name JP_A_Name_Kana */\n public static final String COLUMNNAME_JP_A_Name_Kana = \"JP_A_Name_Kana\";\n\n\t/** Set Account Name(Kana)\t */\n\tpublic void setJP_A_Name_Kana (String JP_A_Name_Kana);\n\n\t/** Get Account Name(Kana)\t */\n\tpublic String getJP_A_Name_Kana();\n\n /** Column name JP_AcctDate */\n public static final String COLUMNNAME_JP_AcctDate = \"JP_AcctDate\";\n\n\t/** Set Date of Account Date\t */\n\tpublic void setJP_AcctDate (String JP_AcctDate);\n\n\t/** Get Date of Account Date\t */\n\tpublic String getJP_AcctDate();\n\n /** Column name JP_AcctMonth */\n public static final String COLUMNNAME_JP_AcctMonth = \"JP_AcctMonth\";\n\n\t/** Set Month of Account Date\t */\n\tpublic void setJP_AcctMonth (String JP_AcctMonth);\n\n\t/** Get Month of Account Date\t */\n\tpublic String getJP_AcctMonth();\n\n /** Column name JP_BankAccountType */\n public static final String COLUMNNAME_JP_BankAccountType = \"JP_BankAccountType\";\n\n\t/** Set Bank Account Type\t */\n\tpublic void setJP_BankAccountType (String JP_BankAccountType);\n\n\t/** Get Bank Account Type\t */\n\tpublic String getJP_BankAccountType();\n\n /** Column name JP_BankAccount_Value */\n public static final String COLUMNNAME_JP_BankAccount_Value = \"JP_BankAccount_Value\";\n\n\t/** Set Bank Account(Search Key)\t */\n\tpublic void setJP_BankAccount_Value (String JP_BankAccount_Value);\n\n\t/** Get Bank Account(Search Key)\t */\n\tpublic String getJP_BankAccount_Value();\n\n /** Column name JP_BankDataCustomerCode1 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode1 = \"JP_BankDataCustomerCode1\";\n\n\t/** Set Bank Data Customer Code1\t */\n\tpublic void setJP_BankDataCustomerCode1 (String JP_BankDataCustomerCode1);\n\n\t/** Get Bank Data Customer Code1\t */\n\tpublic String getJP_BankDataCustomerCode1();\n\n /** Column name JP_BankDataCustomerCode2 */\n public static final String COLUMNNAME_JP_BankDataCustomerCode2 = \"JP_BankDataCustomerCode2\";\n\n\t/** Set Bank Data Customer Code2\t */\n\tpublic void setJP_BankDataCustomerCode2 (String JP_BankDataCustomerCode2);\n\n\t/** Get Bank Data Customer Code2\t */\n\tpublic String getJP_BankDataCustomerCode2();\n\n /** Column name JP_BankDataLine_ID */\n public static final String COLUMNNAME_JP_BankDataLine_ID = \"JP_BankDataLine_ID\";\n\n\t/** Set Import Bank Data Line\t */\n\tpublic void setJP_BankDataLine_ID (int JP_BankDataLine_ID);\n\n\t/** Get Import Bank Data Line\t */\n\tpublic int getJP_BankDataLine_ID();\n\n\tpublic I_JP_BankDataLine getJP_BankDataLine() throws RuntimeException;\n\n /** Column name JP_BankData_EDI_Info */\n public static final String COLUMNNAME_JP_BankData_EDI_Info = \"JP_BankData_EDI_Info\";\n\n\t/** Set BankData EDI Info\t */\n\tpublic void setJP_BankData_EDI_Info (String JP_BankData_EDI_Info);\n\n\t/** Get BankData EDI Info\t */\n\tpublic String getJP_BankData_EDI_Info();\n\n /** Column name JP_BankData_ID */\n public static final String COLUMNNAME_JP_BankData_ID = \"JP_BankData_ID\";\n\n\t/** Set Import Bank Data\t */\n\tpublic void setJP_BankData_ID (int JP_BankData_ID);\n\n\t/** Get Import Bank Data\t */\n\tpublic int getJP_BankData_ID();\n\n\tpublic I_JP_BankData getJP_BankData() throws RuntimeException;\n\n /** Column name JP_BankData_ReferenceNo */\n public static final String COLUMNNAME_JP_BankData_ReferenceNo = \"JP_BankData_ReferenceNo\";\n\n\t/** Set Bank Data ReferenceNo\t */\n\tpublic void setJP_BankData_ReferenceNo (String JP_BankData_ReferenceNo);\n\n\t/** Get Bank Data ReferenceNo\t */\n\tpublic String getJP_BankData_ReferenceNo();\n\n /** Column name JP_BankName_Kana */\n public static final String COLUMNNAME_JP_BankName_Kana = \"JP_BankName_Kana\";\n\n\t/** Set Bank Name(Kana)\t */\n\tpublic void setJP_BankName_Kana (String JP_BankName_Kana);\n\n\t/** Get Bank Name(Kana)\t */\n\tpublic String getJP_BankName_Kana();\n\n /** Column name JP_BankName_Kana_Line */\n public static final String COLUMNNAME_JP_BankName_Kana_Line = \"JP_BankName_Kana_Line\";\n\n\t/** Set Bank Name(Kana) Line\t */\n\tpublic void setJP_BankName_Kana_Line (String JP_BankName_Kana_Line);\n\n\t/** Get Bank Name(Kana) Line\t */\n\tpublic String getJP_BankName_Kana_Line();\n\n /** Column name JP_Bank_Name */\n public static final String COLUMNNAME_JP_Bank_Name = \"JP_Bank_Name\";\n\n\t/** Set Bank Name\t */\n\tpublic void setJP_Bank_Name (String JP_Bank_Name);\n\n\t/** Get Bank Name\t */\n\tpublic String getJP_Bank_Name();\n\n /** Column name JP_BranchCode */\n public static final String COLUMNNAME_JP_BranchCode = \"JP_BranchCode\";\n\n\t/** Set Branch Code\t */\n\tpublic void setJP_BranchCode (String JP_BranchCode);\n\n\t/** Get Branch Code\t */\n\tpublic String getJP_BranchCode();\n\n /** Column name JP_BranchName */\n public static final String COLUMNNAME_JP_BranchName = \"JP_BranchName\";\n\n\t/** Set Branch Name\t */\n\tpublic void setJP_BranchName (String JP_BranchName);\n\n\t/** Get Branch Name\t */\n\tpublic String getJP_BranchName();\n\n /** Column name JP_BranchName_Kana */\n public static final String COLUMNNAME_JP_BranchName_Kana = \"JP_BranchName_Kana\";\n\n\t/** Set Branch Name(Kana)\t */\n\tpublic void setJP_BranchName_Kana (String JP_BranchName_Kana);\n\n\t/** Get Branch Name(Kana)\t */\n\tpublic String getJP_BranchName_Kana();\n\n /** Column name JP_BranchName_Kana_Line */\n public static final String COLUMNNAME_JP_BranchName_Kana_Line = \"JP_BranchName_Kana_Line\";\n\n\t/** Set Branch Name(Kana) Line\t */\n\tpublic void setJP_BranchName_Kana_Line (String JP_BranchName_Kana_Line);\n\n\t/** Get Branch Name(Kana) Line\t */\n\tpublic String getJP_BranchName_Kana_Line();\n\n /** Column name JP_Date */\n public static final String COLUMNNAME_JP_Date = \"JP_Date\";\n\n\t/** Set Date.\n\t * Date\n\t */\n\tpublic void setJP_Date (String JP_Date);\n\n\t/** Get Date.\n\t * Date\n\t */\n\tpublic String getJP_Date();\n\n /** Column name JP_Line_Description */\n public static final String COLUMNNAME_JP_Line_Description = \"JP_Line_Description\";\n\n\t/** Set Line Description\t */\n\tpublic void setJP_Line_Description (String JP_Line_Description);\n\n\t/** Get Line Description\t */\n\tpublic String getJP_Line_Description();\n\n /** Column name JP_Month */\n public static final String COLUMNNAME_JP_Month = \"JP_Month\";\n\n\t/** Set Month\t */\n\tpublic void setJP_Month (String JP_Month);\n\n\t/** Get Month\t */\n\tpublic String getJP_Month();\n\n /** Column name JP_OrgTrx_Value */\n public static final String COLUMNNAME_JP_OrgTrx_Value = \"JP_OrgTrx_Value\";\n\n\t/** Set Trx Organization(Search Key)\t */\n\tpublic void setJP_OrgTrx_Value (String JP_OrgTrx_Value);\n\n\t/** Get Trx Organization(Search Key)\t */\n\tpublic String getJP_OrgTrx_Value();\n\n /** Column name JP_Org_Value */\n public static final String COLUMNNAME_JP_Org_Value = \"JP_Org_Value\";\n\n\t/** Set Organization(Search Key)\t */\n\tpublic void setJP_Org_Value (String JP_Org_Value);\n\n\t/** Get Organization(Search Key)\t */\n\tpublic String getJP_Org_Value();\n\n /** Column name JP_RequesterName */\n public static final String COLUMNNAME_JP_RequesterName = \"JP_RequesterName\";\n\n\t/** Set Requester Name\t */\n\tpublic void setJP_RequesterName (String JP_RequesterName);\n\n\t/** Get Requester Name\t */\n\tpublic String getJP_RequesterName();\n\n /** Column name JP_SalesRep_EMail */\n public static final String COLUMNNAME_JP_SalesRep_EMail = \"JP_SalesRep_EMail\";\n\n\t/** Set Sales Rep(E-Mail)\t */\n\tpublic void setJP_SalesRep_EMail (String JP_SalesRep_EMail);\n\n\t/** Get Sales Rep(E-Mail)\t */\n\tpublic String getJP_SalesRep_EMail();\n\n /** Column name JP_SalesRep_Name */\n public static final String COLUMNNAME_JP_SalesRep_Name = \"JP_SalesRep_Name\";\n\n\t/** Set Sales Rep(Name)\t */\n\tpublic void setJP_SalesRep_Name (String JP_SalesRep_Name);\n\n\t/** Get Sales Rep(Name)\t */\n\tpublic String getJP_SalesRep_Name();\n\n /** Column name JP_SalesRep_Value */\n public static final String COLUMNNAME_JP_SalesRep_Value = \"JP_SalesRep_Value\";\n\n\t/** Set Sales Rep(Search Key)\t */\n\tpublic void setJP_SalesRep_Value (String JP_SalesRep_Value);\n\n\t/** Get Sales Rep(Search Key)\t */\n\tpublic String getJP_SalesRep_Value();\n\n /** Column name Processed */\n public static final String COLUMNNAME_Processed = \"Processed\";\n\n\t/** Set Processed.\n\t * The document has been processed\n\t */\n\tpublic void setProcessed (boolean Processed);\n\n\t/** Get Processed.\n\t * The document has been processed\n\t */\n\tpublic boolean isProcessed();\n\n /** Column name Processing */\n public static final String COLUMNNAME_Processing = \"Processing\";\n\n\t/** Set Process Now\t */\n\tpublic void setProcessing (boolean Processing);\n\n\t/** Get Process Now\t */\n\tpublic boolean isProcessing();\n\n /** Column name RoutingNo */\n public static final String COLUMNNAME_RoutingNo = \"RoutingNo\";\n\n\t/** Set Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic void setRoutingNo (String RoutingNo);\n\n\t/** Get Routing No.\n\t * Bank Routing Number\n\t */\n\tpublic String getRoutingNo();\n\n /** Column name SalesRep_ID */\n public static final String COLUMNNAME_SalesRep_ID = \"SalesRep_ID\";\n\n\t/** Set Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic void setSalesRep_ID (int SalesRep_ID);\n\n\t/** Get Sales Rep.\n\t * Sales Representative or Company Agent\n\t */\n\tpublic int getSalesRep_ID();\n\n\tpublic org.compiere.model.I_AD_User getSalesRep() throws RuntimeException;\n\n /** Column name StatementDate */\n public static final String COLUMNNAME_StatementDate = \"StatementDate\";\n\n\t/** Set Statement date.\n\t * Date of the statement\n\t */\n\tpublic void setStatementDate (Timestamp StatementDate);\n\n\t/** Get Statement date.\n\t * Date of the statement\n\t */\n\tpublic Timestamp getStatementDate();\n\n /** Column name StmtAmt */\n public static final String COLUMNNAME_StmtAmt = \"StmtAmt\";\n\n\t/** Set Statement amount.\n\t * Statement Amount\n\t */\n\tpublic void setStmtAmt (BigDecimal StmtAmt);\n\n\t/** Get Statement amount.\n\t * Statement Amount\n\t */\n\tpublic BigDecimal getStmtAmt();\n\n /** Column name TrxAmt */\n public static final String COLUMNNAME_TrxAmt = \"TrxAmt\";\n\n\t/** Set Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic void setTrxAmt (BigDecimal TrxAmt);\n\n\t/** Get Transaction Amount.\n\t * Amount of a transaction\n\t */\n\tpublic BigDecimal getTrxAmt();\n\n /** Column name Updated */\n public static final String COLUMNNAME_Updated = \"Updated\";\n\n\t/** Get Updated.\n\t * Date this record was updated\n\t */\n\tpublic Timestamp getUpdated();\n\n /** Column name UpdatedBy */\n public static final String COLUMNNAME_UpdatedBy = \"UpdatedBy\";\n\n\t/** Get Updated By.\n\t * User who updated this records\n\t */\n\tpublic int getUpdatedBy();\n}",
"@Override\r\n\tpublic List<CategoryList> list() {\n\t\t\r\n\t\tString sql = \"select * from categories\";\r\n\t\tList<CategoryList> listContact = jdbcTemplate.query(sql, new ResultSetExtractor<List<CategoryList>>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic List<CategoryList> extractData(ResultSet rs) throws SQLException, DataAccessException {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tArrayList<CategoryList> list=new ArrayList<CategoryList>(); \r\n\t\t\t\tArrayList<Category> cat = new ArrayList<Category>();\r\n\t\t\t\tCategoryList ctg = new CategoryList();\r\n\t\t\t\t\r\n\t\t while(rs.next()){ \r\n\t\t Category e=new Category(); \r\n\t\t e.setCategoryName(rs.getString(2));\r\n\t\t \r\n\t\t String sql2 = \"SELECT * FROM sub_categories WHERE cat_id=\" + rs.getString(1);\r\n\t\t \r\n\t\t\t\tjdbcTemplate.query(sql2, new ResultSetExtractor<Subcategory>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Subcategory extractData(ResultSet rs1) throws SQLException,\r\n\t\t\t\t\t\t\tDataAccessException {\r\n\t\t\t\t\t\tArrayList<Subcategory> subcat = new ArrayList<Subcategory>();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\twhile (rs1.next()) {\r\n\t\t\t\t\t\t\tSubcategory contact = new Subcategory();\r\n\t\t\t\t\t\t\tcontact.setSubCategoryId(rs1.getString(1));\r\n\t\t\t\t\t\t\tcontact.setSubCategoryName(rs1.getString(2));\r\n\t\t\t\t\t\t\tsubcat.add(contact);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\te.setSubcategories(subcat);\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t});\r\n\t\t\t\tcat.add(e);\r\n\t\t ctg.setCategories(cat);\r\n\t\t }\r\n\t\t ctg.setResponse(\"3\");\r\n\t\t ctg.setMessage(\"fetch successfully\");\r\n\t\t list.add(ctg);\r\n\t\t\t\treturn list;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\treturn listContact;\r\n\t\t\r\n\t}",
"@org.apache.ibatis.annotations.Mapper\npublic interface GoodsDao extends Mapper<Goods> {\n @Select(\"select * from tbl_goods\")\n @Results({\n @Result(property = \"cid\",column = \"cid\"),\n @Result(property = \"category\",column = \"cid\",one = @One(select = \"com.czxy.CategoryDao.selectByPrimaryKey\"))\n })\n List<Goods> findAll();\n\n}"
] | [
"0.57490474",
"0.57275724",
"0.57245195",
"0.57144785",
"0.5682192",
"0.5646745",
"0.5639592",
"0.56344396",
"0.562342",
"0.5622294",
"0.5618264",
"0.55778426",
"0.55647475",
"0.55453324",
"0.55358297",
"0.5487853",
"0.5452469",
"0.5447981",
"0.5446364",
"0.54348403",
"0.5434431",
"0.54198337",
"0.54198337",
"0.5414642",
"0.53860104",
"0.53447145",
"0.53447145",
"0.5330969",
"0.5313885",
"0.52935034",
"0.52912706",
"0.5285413",
"0.5279714",
"0.5267033",
"0.52516544",
"0.5250157",
"0.52495706",
"0.52487785",
"0.52414525",
"0.52394235",
"0.52391064",
"0.523761",
"0.5233983",
"0.5228493",
"0.52248037",
"0.5222672",
"0.5210984",
"0.5203711",
"0.5199023",
"0.5198907",
"0.518421",
"0.5179155",
"0.51701",
"0.51695895",
"0.5160636",
"0.5158049",
"0.5154593",
"0.51541257",
"0.51512206",
"0.51496065",
"0.51347846",
"0.51263565",
"0.51201665",
"0.5119105",
"0.51176435",
"0.5115955",
"0.51114",
"0.5106816",
"0.51037645",
"0.5102594",
"0.51020426",
"0.5091404",
"0.5084749",
"0.50829744",
"0.50801367",
"0.5078043",
"0.5076093",
"0.5075945",
"0.50734776",
"0.50719285",
"0.5070348",
"0.50655717",
"0.506501",
"0.50644517",
"0.5064167",
"0.5062845",
"0.506138",
"0.5050973",
"0.5050556",
"0.504982",
"0.5044508",
"0.5044018",
"0.50431705",
"0.50420433",
"0.50406694",
"0.5038144",
"0.50310236",
"0.50306636",
"0.50283724",
"0.502762",
"0.50215334"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column catelog.id | public Integer getId() {
return id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getLogid() {\n return logid;\n }",
"public Long getId()\r\n\t{\r\n\t\treturn idContrat;\r\n\t}",
"public int getLogid() {\n\treturn logid;\n}",
"int getLogId();",
"public String getLogId() {\r\n return logId;\r\n }",
"public Integer getId()\r\n\t\t{ return mapping.getId(); }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public StrColumn getId() {\n return delegate.getColumn(\"id\", DelegatingStrColumn::new);\n }",
"public Long getId(){\n\t\treturn id;\n\t}",
"public StrColumn getGoId() {\n return delegate.getColumn(\"go_id\", DelegatingStrColumn::new);\n }",
"Long getId();",
"Long getId();",
"Long getId();",
"public Integer getcId() {\n return cId;\n }",
"public long getAuditLogId() {\n return auditLogId;\n }",
"public long getId() {\n return ctTableColumn.getId();\n }",
"public Integer getId(){\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\t\t\treturn this.id;\n\t}",
"public Long id() { return this.id; }",
"public Long getId() {\n\treturn id;\n }",
"Long getDbId();",
"public java.lang.Long getId();",
"public Long getId() {\n\t\treturn this.id;\n\t\t\n\t}",
"public Long getId() \r\n {\r\n return id;\r\n }",
"public Long getId() {\r\n return this.id;\r\n }",
"public Long getId() {\r\n return this.id;\r\n }",
"public Long getId() {\r\n return this.id;\r\n }",
"public long getId(){\n\t\treturn id;\n\t}",
"public Long getId()\r\n {\r\n return id;\r\n }",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public Long getId() {\r\n\t\treturn id;\r\n\t}",
"public Long getId()\n\t{\n\t\treturn (Long) this.getKeyValue(\"id\");\n\n\t}",
"public java.lang.Long getId_tecnico();",
"public Long getId() {\n\t\treturn this.id;\n\t}",
"public Long getId() {\n\t\treturn this.id;\n\t}",
"public Long getId() {\n\t\treturn this.id;\n\t}",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"public Long getId() {\r\n return id;\r\n }",
"int getDoctorId();",
"int getDoctorId();",
"public Long getId () {\r\n\t\treturn id;\r\n\t}",
"@Id\n @WhereSQL(sql = \"id=:WxPayconfig_id\")\n public java.lang.String getId() {\n return this.id;\n }",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}",
"public Long getId() {\n\t\treturn id;\n\t}"
] | [
"0.6820547",
"0.6593914",
"0.6573603",
"0.6505373",
"0.6420907",
"0.6334334",
"0.62147194",
"0.62147194",
"0.62147194",
"0.62147194",
"0.6201299",
"0.61345196",
"0.61134124",
"0.61134124",
"0.61134124",
"0.6082385",
"0.60799277",
"0.6058139",
"0.60396534",
"0.6035131",
"0.6034469",
"0.6024999",
"0.6019801",
"0.60090154",
"0.60087967",
"0.59976083",
"0.5982048",
"0.5982048",
"0.5982048",
"0.5980452",
"0.5979193",
"0.5963864",
"0.5963864",
"0.5963864",
"0.5963864",
"0.5963864",
"0.59614295",
"0.5953549",
"0.5949285",
"0.5949285",
"0.5949285",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.59463537",
"0.5942644",
"0.5942644",
"0.5941746",
"0.59366053",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543",
"0.592543"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column catelog.id | public void setId(Integer id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setId(Long id){\n this.id = id;\n }",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) \n {\n this.id = id;\n }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) \r\n {\r\n this.id = id;\r\n }",
"public void setId( Long id ) {\n this.id = id ;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setAuditLogId(long value) {\n this.auditLogId = value;\n }",
"public void setId(Long id) {\n\t\t\n\t}",
"public void setId(Long id)\r\n {\r\n this.id = id;\r\n }",
"public void setID(long id);",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(Long id) {\r\n this.id = id;\r\n }",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"public void setId (long id)\r\n {\r\n _id = id;\r\n }",
"public void setId(Long id)\n {\n this.id = id;\n }",
"public void setId(long id){\n\t\tthis.id = id;\n\t}",
"public void setId(Long id) {\n\tthis.id = id;\n }",
"public void setId( Long id )\n\t{\n\t\tthis.id = id;\n\t}",
"public void setId(long id) {\r\n this.id = id;\r\n }",
"public void setLogid(Integer logid) {\n this.logid = logid;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(long id) {\n id_ = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }",
"public void setId(Long id) {\n this.id = id;\n }"
] | [
"0.6225426",
"0.62030184",
"0.62030184",
"0.62030184",
"0.62022156",
"0.6187197",
"0.6187197",
"0.618225",
"0.6175976",
"0.6158496",
"0.6158496",
"0.6147879",
"0.6142892",
"0.6138408",
"0.61016184",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.6097533",
"0.60878265",
"0.60878265",
"0.6084386",
"0.6082568",
"0.6080423",
"0.60732037",
"0.60526514",
"0.60467273",
"0.60307723",
"0.60218287",
"0.6004401",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478",
"0.5995478"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column catelog.name | public String getName() {
return name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String getName() {\n return columnInfo.getName();\n }",
"public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }",
"public StrColumn getName() {\n return delegate.getColumn(\"name\", DelegatingStrColumn::new);\n }",
"public StrColumn getName() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"name\", StrColumn::new) :\n getBinaryColumn(\"name\"));\n }",
"public String getName(){\n\t\t\treturn columnName;\n\t\t}",
"public String getName() {\n return columnName;\n }",
"public String getName() { return _sqlName; }",
"@Override\n\tpublic java.lang.String getName() {\n\t\treturn _expandoColumn.getName();\n\t}",
"public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }",
"public abstract String getDatabaseColumnName(String entityName, String propertyName);",
"@Column(name = \"name\")\n public String getName() {\n return name;\n }",
"@ApiModelProperty(value = \"Gets and sets the name of the column.\")\n public String getName() {\n return name;\n }",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn cf.getName();\n\t\t\t}",
"String getColumnName();",
"public String getName() {\n\t\treturn ((name != null) && !name.isEmpty()) ? name\n\t\t\t\t: (\"[\" + Long.toString(dciId) + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t}",
"public String getName() {\n return ctTableColumn.getName();\n }",
"public String getName(){\n\n //returns the value of the name field\n return this.name;\n }",
"public String getColumnNameOne(){\n return columnNameOneLbl.getText();\n }",
"String getResultName() {\n return rename_ == null ? cmeta_.getName() : rename_;\n }",
"public String getColumnName() {\r\n return dataBinder.getColumnName();\r\n }",
"public String getFullName()\n {\n String schema = db.getSchema();\n return (schema!=null) ? schema+\".\"+name : name;\n }",
"@Basic\n @Column(name = \"name\", nullable = true, length = 30)\n public String getName() {\n return name;\n }",
"public String getcName() {\n return cName;\n }",
"public String getCustomerName()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_NAME, LEN_CUSTOMER_NAME) ;\n\t}",
"public String getFieldName() { return databaseFieldName; }",
"public String getName(long l) throws SQLException {\n\t\tString[] columns = new String[] { KEY_ROWID, KEY_NAME, KEY_HOTNESS };\n\t\tCursor c = ourDatabase.query(DATABASE_TABLE, columns, KEY_ROWID + \"=\"\n\t\t\t\t+ l, null, null, null, null);\n\t\tif (c != null) {\n\t\t\tc.moveToFirst();\n\t\t\tString name = c.getString(1);\n\t\t\treturn name;\n\t\t}\n\t\treturn null;\n\t}",
"public String name() {\n return celestialName;\n }",
"public String getMappedFieldName(String cn)\n { // map old name to a new name\n return DBProvider.translateColumnName(cn);\n }",
"public String getColumnName();",
"public String getPropertyName(String column) {\r\n\t\trefineMetaData();\r\n\t\tcolumn = column.toLowerCase();\r\n\t\t// Log.debug(\"%s->%s\", column, col2prop.get(column));\r\n\t\treturn col2prop.get(column);\r\n\t}",
"@Override\n public String getColumnName(int aColumn) {\n return model.getColumnName(aColumn); \n }",
"@Override\n public String toString()\n {\n return mi_name;\n }",
"@Override\n public String toString()\n {\n return mi_name;\n }",
"public String getColumnName(int c) {\n\treturn columnNames[c];\n}",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String value() {\n return this.column;\n }",
"public String getColumnName() {\n return columnName; \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}",
"private String getColumnName(org.hibernate.mapping.Column column) {\n return m_dbSpecificMappingInfo.getTruncateInfo().truncateColumnName(column.getName().toLowerCase());\n }",
"@Override\n public String getColumnName(int column) {\n if (column == COL_ID) {\n return \"Código\";\n } else if (column == COL_NAME) {\n return \"Nome\";\n }\n return \"\";\n }",
"public StrColumn getNameDepositor() {\n return delegate.getColumn(\"name_depositor\", DelegatingStrColumn::new);\n }",
"public String getColumnName() {\r\n return navBinder.getColumnName();\r\n }",
"public JExpr getNameExpr() { return _nameExpr; }",
"public String getColumnName(int col) {\r\n if (columns[col] instanceof StratmasObject) {\r\n return ((StratmasObject)columns[col]).getReference().getIdentifier().trim();\r\n }\r\n else {\r\n return (String)columns[col];\r\n }\r\n }",
"@Override\n public String getLName() {\n\n if(this.lName == null){\n\n this.lName = TestDatabase.getInstance().getClientField(token, id, \"lName\");\n }\n\n return lName;\n }",
"@Override\n\t@Column(name = \"leadTypeName\", length = 5, nullable = false)\n\tpublic String getName()\n\t{\n\t\treturn super.getName();\n\t}",
"public String getCustomName ( ) {\n\t\treturn extract ( handle -> handle.getCustomName ( ) );\n\t}",
"public String getColName() {\r\n\t\treturn colName;\r\n\t}",
"@Basic( optional = true )\r\n\t@Column( length = 256 )\r\n\tpublic String getName() {\r\n\t\treturn this.name;\r\n\t\t\r\n\t}",
"String getCName() {\n return nameTF.getText();\n }",
"public String getPropertyNameMapped(String aName) { return aName; }",
"public String getColumnName() {\n return this.columnName;\n }",
"@Override\n public String getColumnName(int column) {\n return colName[column];\n }",
"public String getLogName() {\n return logName;\n }",
"String getName() {\n\t\treturn customer.getName();\n\t}",
"public String getName() { return (String)get(\"Name\"); }",
"public String getColumnName(int column)throws IllegalStateException{\n if(!connectedToDatabase)\n throw new IllegalStateException(\"Not Connected to datsbase\");\n \n //determine col name\n try{\n return metaData.getColumnName(column+1);\n }catch(SQLException sQLException){\n sQLException.printStackTrace();\n }\n return \"\"; //if problems occur above, return 0 for number of columns\n \n }",
"@Override\n\tpublic Object executeDatabaseOperation(Connection conn) throws SQLException {\n\t\tString name = \"\";\n\t\tPreparedStatement sta = conn.prepareStatement(\"select first_name from client where email = ? AND IS_DELETED = 0\");\n\t\t\n\t\tsta.setString(1, this.email);\n\t\t\n\t\tResultSet rs = sta.executeQuery();\n\t\t\n\t\tif (rs.next()) {\n\t\t\tname = rs.getString(1);\n\t\t}\n\t\t\n\t\trs.close();\n\t\tsta.close();\n\t\t\n\t\treturn name;\n\t}",
"@Override\n protected String getNameImpl()\n {\n return _nameExpr != null ? _nameExpr.getName() : null;\n }",
"private static TextColumnBuilder getColumnByNameField(String nameField){ \n return drColumns.get(nameField);\n }",
"public String getAttributeName(){\n if(field.getAnnotation(Column.class) != null){\n return field.getAnnotation(Column.class).column();\n }\n if( field.getAnnotation(PrimaryKey.class) !=null){\n return field.getAnnotation(PrimaryKey.class).name();\n }\n return null;\n }",
"String getFieldName(int row) {\n return getVPInfo(row).getDataInstance().getDataChoice().getName();\n }",
"public String getLocalizedName()\n {\n return StatCollector.translateToLocal(this.getUnlocalizedName() + \".\" + TreeOresLogs2.EnumType.DIAMOND.getUnlocalizedName() + \".name\");\n }",
"@Override\n public String getColumnName(int column) {\n return columnNames[column];\n }",
"@Override\n public String getColumnName(int column) {\n return columnNames[column];\n }",
"public java.lang.String getColumnName() {\r\n return columnName;\r\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"public String getValue() {\n return this.column;\n }",
"@Override\n\tpublic String getColumnName(int column) {\n\t\tswitch (column) {\n\t\tcase 0:\n\t\t\treturn \"Expression\";\n\t\tcase 1:\n\t\t\treturn \"Value\";\n\t\t}\n\t\treturn null;\n\t}",
"public String getNodeNameColumnName () {\n return nodeHandler.getNodeNameColumnName();\n }",
"String getValueName();",
"Column getColumnForAttribute(String name) {\n name = Strings.underscore(name);\n for (Column column : getColumns()) {\n if (column.getName().equals(name)) return column;\n }\n return null;\n }",
"@Column(name = \"NAME\", columnDefinition = \"varchar\", length = 50, nullable = false, unique = true)\n\tpublic String getName() {\n\t\treturn name;\n\t}",
"public String getColumnName(int c){\r\n\t\treturn (new Integer(c).toString());\r\n\t}",
"public String getEmphcolumn()\n {\n return emphColumn;\n }",
"public String getName(){\r\n\t\treturn this.name;\r\n\t}",
"public String getName(){\n return field.getName();\n }",
"@Override\n\tpublic String getName(){\n\t\treturn customer.getName();\n\t}"
] | [
"0.6600828",
"0.65785205",
"0.65785205",
"0.65536934",
"0.6545595",
"0.65320146",
"0.6504462",
"0.6357683",
"0.6286942",
"0.6138684",
"0.60355765",
"0.60156405",
"0.5940092",
"0.5940092",
"0.58937687",
"0.5845069",
"0.5830101",
"0.5794637",
"0.57896304",
"0.5785306",
"0.5774023",
"0.5770904",
"0.57588863",
"0.57550377",
"0.57528144",
"0.57490367",
"0.57378596",
"0.5727908",
"0.5694443",
"0.56888103",
"0.56792814",
"0.5662399",
"0.565658",
"0.565658",
"0.56563526",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.5652609",
"0.56365246",
"0.5636412",
"0.5634016",
"0.5605435",
"0.56036794",
"0.5595662",
"0.5578867",
"0.55758816",
"0.5571047",
"0.5565686",
"0.5559246",
"0.55555",
"0.55528116",
"0.554901",
"0.5545873",
"0.55353177",
"0.5534373",
"0.5524769",
"0.5514463",
"0.55084234",
"0.5503273",
"0.55017364",
"0.5501327",
"0.54942137",
"0.5491997",
"0.5482233",
"0.54800266",
"0.5474447",
"0.5474447",
"0.547174",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.5463042",
"0.54538023",
"0.54493916",
"0.5439616",
"0.5435935",
"0.5432617",
"0.54195964",
"0.5411048",
"0.54075605",
"0.54027456",
"0.539185"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column catelog.name | public void setName(String name) {
this.name = name == null ? null : name.trim();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_expandoColumn.setName(name);\n\t}",
"public void setColumnName (String ColumnName);",
"public void setName(final java.lang.String name) {\r\n this.name = name;\r\n this.values.put(UserInfoTable.NAME, name);\r\n }",
"public DatabaseQueryColumn(String name) {\n this.formula = null;\n this.name = name;\n }",
"@IcalProperty(pindex = PropertyInfoIndex.NAME,\n required = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)\n public void setName(final String val) {\n name = val;\n }",
"public void setName(String new_name){\n this.name=new_name;\n }",
"public void setColumnName(String newVal) {\n if ((newVal != null && this.columnName != null && (newVal.compareTo(this.columnName) == 0)) || \n (newVal == null && this.columnName == null && columnName_is_initialized)) {\n return; \n } \n this.columnName = newVal; \n\n columnName_is_modified = true; \n columnName_is_initialized = true; \n }",
"public void setName(java.lang.String name)\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(NAME$26);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$26);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setName(String columnName) {\n ctTableColumn.setName(columnName);\n }",
"public void setColumnName(String columnName);",
"private void setChangeName() {\n\t\tChangeNameOpt.add(\"-cn\");\n\t\tChangeNameOpt.add(\"/cn\");\n\t\tChangeNameOpt.add(\"changename\");\n\n\t}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(java.lang.String name)\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(NAME$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$6);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setCName(String aValue) {\n String oldValue = cName;\n cName = aValue;\n changeSupport.firePropertyChange(\"cName\", oldValue, aValue);\n }",
"void setName(String name)\n\t{\n\t\t\tthis.name = name;\n\t}",
"public void setName(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 }",
"@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_lineaGastoCategoria.setName(name);\n\t}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"public void setName(java.lang.String name)\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(NAME$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$2);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setName(String name) {\n\t\tthis.name = name;\n\t\tmarkDirty(\"name\",name);\n\t}",
"public void setCustomName ( String name ) {\n\t\texecute ( handle -> handle.setCustomName ( 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){\n\t\tthis.name = name;\n\t}",
"public void setName(final String value)\n\t{\n\t\tsetName( getSession().getSessionContext(), value );\n\t}",
"public void setName(String name) {\n fName= name;\n }",
"public void setName(String name) \n {\n this.name = name;\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 setName(String name) {\n this.name = name;\n }",
"void setName(String name) {\r\n this.name = name;\r\n }",
"public void setCamelCaseName(CamelCaseName value){\n ((MvwDefinitionDMO) core).setCamelCaseName(value);\n }",
"public void setName(java.lang.String name)\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(NAME$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$4);\n }\n target.setStringValue(name);\n }\n }",
"public void setName(java.lang.String name)\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(NAME$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$8);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setName(String newname){\n name = newname; \n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name) {\r\n\t\tthis.name=name;\r\n\t}",
"public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name){\n\t\tif(name != null){\n\t\t\tthis.name = name;\n\t\t}\n\t}",
"public String getName() { return _sqlName; }",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n \tif (name==null)\n \t\tthis.name = \"\";\n \telse\n \t\tthis.name = name;\n\t}",
"void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}",
"private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"public void setName(String name) {\n\t\tm_name = (name != null) ? name : \"\";\n\t}",
"public 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(String newname)\n {\n name = newname;\n \n }",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"public void setName(String name)\n\t{\n\t\tcategoryName= name;\n\t}",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"void setName(String name)\n {\n this.name = name;\n }",
"@Override\n public void setName(String name) {\n \n }",
"public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }",
"public void setColName(String colName) {\r\n\t\tthis.colName = colName == null ? null : colName.trim();\r\n\t}",
"public void setName(String name)\n {\n this.name = name;\n modifiedMetadata = true;\n addDetails(\"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) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String name) {\n \t\tthis.name = name;\n \t}",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}"
] | [
"0.65691715",
"0.60650253",
"0.58701694",
"0.5814758",
"0.5712908",
"0.5705775",
"0.567797",
"0.56379384",
"0.56330425",
"0.5632078",
"0.56237173",
"0.560671",
"0.5596794",
"0.5595789",
"0.5581459",
"0.55741894",
"0.5571294",
"0.5571294",
"0.5571294",
"0.55665076",
"0.5564286",
"0.5559156",
"0.55588496",
"0.5552341",
"0.55510724",
"0.55510724",
"0.55510724",
"0.5549825",
"0.5549539",
"0.5548352",
"0.55435526",
"0.55435526",
"0.55435526",
"0.5540738",
"0.5540181",
"0.55385226",
"0.5537234",
"0.5534547",
"0.55291945",
"0.55261844",
"0.55261844",
"0.55261844",
"0.55261844",
"0.55261844",
"0.55261844",
"0.55261844",
"0.55254966",
"0.5525358",
"0.5510592",
"0.5510592",
"0.54918313",
"0.5486182",
"0.54849076",
"0.54849076",
"0.548283",
"0.54798096",
"0.54706246",
"0.5463899",
"0.5462326",
"0.54525167",
"0.5451148",
"0.54498094",
"0.5448132",
"0.5447221",
"0.54428655",
"0.5436815",
"0.5435341",
"0.5432559",
"0.5432559",
"0.5432559",
"0.5431207",
"0.54288936",
"0.5424119",
"0.5421657",
"0.5411508",
"0.5409105",
"0.5409105",
"0.5409105",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5407507",
"0.5404004",
"0.5402806",
"0.5400311",
"0.5399736"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method returns the value of the database column catelog.number | public Integer getNumber() {
return number;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getNumber() {\n return (String) get(\"number\");\n }",
"public String getNumber() {\n\t\treturn getValue(\"number\");\n\t}",
"public String getNumber() {\n return number;\n }",
"public String getNumber() {\n return number;\n }",
"public String getNumber() {\n return number;\n }",
"public String getNumber() {\n return number;\n }",
"public String getNumber() {\n return this.mNumber;\n }",
"public String getNumber() \n\t{\n\t\treturn this.number;\n\t}",
"public String getNumber() {\r\n\t\treturn number;\r\n\t}",
"public Long cniAsNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().cniAsNumber();\n }",
"public long getNumber(){\n return number;\r\n }",
"public String number() {\n return number;\n }",
"public String getNumber(){\r\n return number;\r\n }",
"public int getNumber() {\n return field.getNumber();\n }",
"public java.lang.String getNumber() {\n return number;\n }",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"java.lang.String getNumber();",
"public int getNumber(){\n\t\treturn number;\n\t}",
"public Integer getNumber() {\r\n return number;\r\n }",
"@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}",
"@Override\r\n\tpublic int selectLastNo() {\n\t\treturn sqlSession.selectOne(namespace + \".selectLastNo\");\r\n\t}",
"public int getNumber(){\n\treturn number;\n }",
"public int getNumber()\n {\n return this.number;\n }",
"public Integer getNumber() {\n\t\treturn number;\n\t}",
"public IntegerDt getNumber() { \n\t\tif (myNumber == null) {\n\t\t\tmyNumber = new IntegerDt();\n\t\t}\n\t\treturn myNumber;\n\t}",
"public IntegerDt getNumber() { \n\t\tif (myNumber == null) {\n\t\t\tmyNumber = new IntegerDt();\n\t\t}\n\t\treturn myNumber;\n\t}",
"public int getNumber() {\n return this.number;\n }",
"public int getNumber() {\n return this.number;\n }",
"public int getNumber() {\n return number;\n }",
"public int getNumber() {\r\n return number;\r\n }",
"public int getNumber() {\r\n\t\treturn number;\r\n\t}",
"public int number() {\n return number;\n }",
"public int getNumberValue() {\r\n return number;\r\n }",
"public int getNumber() {\n\t\treturn number;\n\t}",
"public int getNumber() {\n\t\treturn number;\n\t}",
"public int getNumber() {\n\t\treturn number;\n\t}",
"public int getNumber() {\n\t\treturn number;\n\t}",
"public String getNumber(){return number;}",
"public Long getCreditNum() {\n return creditNum;\n }",
"public int getValue(){\n return number;\n }",
"public int getNumber() {\n\t\t\n\t\treturn number;\n\t}",
"public Number number() {\n return number;\n }",
"@Column(name = \"contact_number\")\n\tpublic Long getContactNumber() {\n\t\treturn contactNumber;\n\t}",
"int getConversionsNumber() throws SQLException;",
"public int getNumber() {\r\n return Number;\r\n }",
"public ComplexNumber getNumber()\n\t{\n\t\treturn this.cn;\n\t}",
"public long getcNum() {\n return cNum;\n }",
"public Long getBillNo() {\n return billNo;\n }",
"public int getNumber()\n\t{\n\t\treturn myNumber;\n\t}",
"public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}",
"public final int getNumber() {\n return number;\n }",
"@Override\r\n\tpublic int getEnterNo() {\n\t\treturn session.selectOne(\"enter.getEnterNo\");\r\n\t}",
"public String getId_number() {\n return id_number;\n }",
"@Override\r\n\tpublic long getNombreOperation(String numCpte) {\n\t\treturn dao.getNombreOperation(numCpte);\r\n\t}",
"private String getUserNumber(String colName) {\n\t\tquery = \"select \" + colName + \" from [LotteryDB].[dbo].[BigLottery] where UserName = 'Bob'\";\n\t\tString result = \"\";\n\t\ttry {\n\t\t\tstmt = con.createStatement();\n\t\t\tresultSet = stmt.executeQuery(query);//Query結果存在這裡\n\t\t\t\n\t\t\tif(resultSet != null) {\n\t\t\t\tresultSetMetaData = resultSet.getMetaData();\n\t\t\t int numberOfColumns = resultSetMetaData.getColumnCount();\n\t\t\t while(resultSet.next()){\n\t\t\t \tfor(int i = 1;i < numberOfColumns+1;i++) {\n\t\t\t \t\tString cn = resultSetMetaData.getColumnName(i);\n\t\t\t \t\t result = resultSet.getString(cn);\n\t\t\t \t\t\n\t\t\t \t\t\n\t\t\t \t\t\n//\t\t\t \t\tSystem.out.println(resultSet.getString(cn));\n\t\t\t \t}\n\t\t\t }\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (SQLException e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t\t\n\t\t}\n\t\treturn result;\n\t\t\n\t}",
"public abstract Number getNumber(int columnIndex);",
"@Column(name = \"C_NUMBER_AUT\", nullable = false)\n public String getNumAut() {\n return this.numAut;\n }",
"public Number getChallanNo() {\n return (Number) getAttributeInternal(CHALLANNO);\n }",
"@Override\n public int getNumber() {\n if(flightNumber == null)\n return 42;\n else\n return Integer.parseInt(flightNumber);\n }",
"public String getCardIdInfo(String pCardNumber){\n \n TypedQuery<Long> getCardIdQuery = em.createQuery(\"SELECT c.cardId FROM Cards c WHERE c.cardNumber = :vCardNumber \", Long.class);\n getCardIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // Long cardId = getCardIdQuery.getSingleResult();\n Long cardId = 0l;\n List<Long> results = getCardIdQuery.getResultList();\n if(!results.isEmpty()){\n \n cardId = results.get(0);\n }\n TypedQuery<BigInteger> getCustomerIdQuery = em.createQuery(\"SELECT c.customerId FROM Cards c WHERE c.cardNumber = :vCardNumber \", BigInteger.class);\n getCustomerIdQuery.setParameter(\"vCardNumber\", pCardNumber);\n // BigInteger customerId = getCustomerIdQuery.getSingleResult();\n BigInteger customerId = BigInteger.valueOf(0);\n List<BigInteger> results1 = getCustomerIdQuery.getResultList();\n if(!results1.isEmpty()){\n \n customerId = results1.get(0);\n }\n \n String cardIdInfo = cardId + \"/\" + customerId;\n \n return cardIdInfo;\n }",
"public java.lang.String getFromNumber()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FROMNUMBER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public IntColumn getSeqNum() {\n return (IntColumn) (isText ? textFields.computeIfAbsent(\"seq_num\", IntColumn::new) :\n getBinaryColumn(\"seq_num\"));\n }",
"public Long getChangeNum() {\n return changeNum;\n }",
"public java.math.BigDecimal getANumber() {\r\n return aNumber;\r\n }",
"public int getNumber() {\n\t\treturn 666;\n\t}",
"@Override\r\n\tpublic int maxNum() throws Exception {\n\t\treturn session.selectOne(\"com.mapper.cook.maxNum\");\r\n\t}",
"@JsonGetter(\"number\")\r\n public String getNumber ( ) { \r\n return this.number;\r\n }",
"public String getMiNo() {\r\n return miNo;\r\n }",
"@Column(name = \"CELL_PH_NUM\", length = 10)\n public String getCellPhoneNumber() {\n return cellPhoneNumber;\n }",
"public int getNumber(){\r\n return num;\r\n }",
"public Integer getNumberValue()\n\t{\n\t\treturn (number == null) ? null : number.value;\n\t}",
"public String getCustIdNbr()\n\t{\n\t\treturn mCustIdNbr;\t\n\t}",
"public String getNumber(String name){\r\n return theContacts.get(name).getNumber();\r\n }",
"@Override\n public String toString() {\n return number.toString();\n }",
"public void setNumber(String number) {\n this.number = number;\n }",
"public int getNumber(){return number;}",
"public long getComNumber() {\r\n return comNumber;\r\n }",
"@Override\r\n\tpublic List<String> getPlexnumber() {\n\t\tList<String> list = null;\r\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\r\n\t\tCriteriaQuery<String> cq=cb.createQuery(String.class);\r\n\t\tRoot<PlexVO> root = cq.from(PlexVO.class);\r\n\t\tcq.select(root.get(\"plex_number\"));\r\n\t\ttry{\r\n\t\t\tTypedQuery<String> tq = entityManager.createQuery(cq);\r\n\t\t\tlist=tq.getResultList();\r\n\t\t\treturn list;\r\n\t\t}catch(Exception e){\r\n\t\t\treturn list;\r\n\t\t}\r\n\t}",
"public String getCfdaNumber() {\n return cfdaNumber;\n }",
"public String getUsernumber() {\n return usernumber;\n }",
"int getBouncesNumber() throws SQLException;",
"public int getC_Conversion_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_Conversion_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"int getNumber () { return number; }",
"public String getNumberConfident() {\n return numberConfident;\n }",
"public Number getIdbulto()\n {\n return (Number)getAttributeInternal(IDBULTO);\n }",
"public StrColumn getJournalIdCSD() {\n return delegate.getColumn(\"journal_id_CSD\", DelegatingStrColumn::new);\n }",
"public String getNumberString() {\n return numberString;\n }",
"public void setNumber(String number) {\r\n\t\tthis.number = number;\r\n\t}",
"public String getCellNumber() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor (int n : this.celNumber) {\n\t\t\tsb.append(n);\t// build a String\n\t\t}\n\t\t\n\t\t// return completed String\n\t\treturn sb.toString(); \n\t}",
"public java.lang.String getNumber() {\n\t\t\t\t\tjava.lang.Object ref = number_;\n\t\t\t\t\tif (!(ref instanceof java.lang.String)) {\n\t\t\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\t\tnumber_ = 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 int getC_POSDocType_ID() \n{\nInteger ii = (Integer)get_Value(COLUMNNAME_C_POSDocType_ID);\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public long longValue() {\n return number;\n }",
"public String getprop_no() {\n return (String)getNamedWhereClauseParam(\"prop_no\");\n }",
"public int getUserNumber() throws AdminPersistenceException {\n return getCount(\"ST_User\", \"id\", \"accessLevel <> ?\", \"R\");\n }",
"public java.lang.Long getColumnLong() {\n return columnLong;\n }",
"public int getRoomNumber() {\n\t\treturn number; // Replace with your code\n\t}",
"public int getidnumber() {\r\n return idnumber;\r\n }",
"public static int getColumnNumber(Configuration conf) {\n\t\treturn conf.getInt(RCFile.COLUMN_NUMBER_CONF_STR, 0);\n\t}",
"public java.lang.String getNumber() {\n\t\t\t\tjava.lang.Object ref = number_;\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 = (com.google.protobuf.ByteString) ref;\n\t\t\t\t\tjava.lang.String s = bs.toStringUtf8();\n\t\t\t\t\tnumber_ = s;\n\t\t\t\t\treturn s;\n\t\t\t\t}\n\t\t\t}"
] | [
"0.6033413",
"0.59370273",
"0.59140134",
"0.59140134",
"0.59140134",
"0.59140134",
"0.59036547",
"0.59022224",
"0.5890208",
"0.5873154",
"0.5831029",
"0.58258784",
"0.5817923",
"0.5796052",
"0.5793877",
"0.5750116",
"0.5750116",
"0.5750116",
"0.57403994",
"0.567369",
"0.566377",
"0.566377",
"0.5659116",
"0.5654046",
"0.56464106",
"0.563393",
"0.563393",
"0.5626594",
"0.5621885",
"0.5609934",
"0.56097466",
"0.5603121",
"0.55945396",
"0.5593033",
"0.55783755",
"0.55783755",
"0.55783755",
"0.55783755",
"0.5576763",
"0.5575169",
"0.5539131",
"0.5538598",
"0.5537021",
"0.55292785",
"0.5516613",
"0.5487209",
"0.5486435",
"0.5461998",
"0.5452537",
"0.54524547",
"0.54390013",
"0.54219884",
"0.5418284",
"0.53957903",
"0.535481",
"0.5354295",
"0.5326306",
"0.5326087",
"0.53258944",
"0.5319359",
"0.53144616",
"0.53083086",
"0.5302795",
"0.52694154",
"0.5258982",
"0.52510023",
"0.5250816",
"0.52497995",
"0.52391255",
"0.5238817",
"0.5172765",
"0.51692563",
"0.5157184",
"0.5152938",
"0.51444453",
"0.5142018",
"0.5137306",
"0.51336896",
"0.5124324",
"0.51237226",
"0.5119753",
"0.511864",
"0.5115971",
"0.51142603",
"0.5113114",
"0.5109602",
"0.510809",
"0.5089975",
"0.5089852",
"0.50880426",
"0.5085454",
"0.5082255",
"0.5077418",
"0.5071886",
"0.50666684",
"0.5063307",
"0.50622994",
"0.50587946",
"0.504648",
"0.5046337"
] | 0.56637925 | 20 |
This method was generated by MyBatis Generator. This method sets the value of the database column catelog.number | public void setNumber(Integer number) {
this.number = number;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNumber(int number)\n {\n this.number = number;\n }",
"public void setNumber(int number) {\r\n\t\tthis.num = number;\r\n\t}",
"public void setNumber(int number) {\n this.number = number;\n }",
"public void setNumber(String number) {\n this.number = number;\n }",
"public void setNumber(int number) {\r\n\t\tthis.number = number;\r\n\t}",
"public static void setColumnNumber(Configuration conf, int columnNum) {\n\t\tassert columnNum > 0;\n\t\tconf.setInt(RCFile.COLUMN_NUMBER_CONF_STR, columnNum);\n\t}",
"public void setNumber(int number) {\n\t\tthis.number = number;\n\t}",
"public void setNumber(int number) {\n\t\tthis.number = number;\n\t}",
"public void setNumber(int number) {\n\t\tthis.number = number;\n\t}",
"public void setNumber(int number)\n {\n Number = number;\n }",
"public void setNumber(String number) {\r\n\t\tthis.number = number;\r\n\t}",
"public void setNumber(Integer number) {\r\n this.number = number;\r\n }",
"void setNumber(int num) {\r\n\t\tnumber = num;\r\n\t}",
"public void setNumber(String newValue);",
"public void setCreditNum(Long creditNum) {\n this.creditNum = creditNum;\n }",
"public void setSequenceNumberForHibernate(INT sequenceNumber) {\n _sequenceNumber = sequenceNumber;\n }",
"public void setNumber(java.lang.String number) {\n this.number = number;\n }",
"public void setChallanNo(Number value) {\n setAttributeInternal(CHALLANNO, value);\n }",
"public void setNumberConfident(String numberConfident) {\n this.numberConfident = numberConfident;\n }",
"public void setComNumber(long value) {\r\n this.comNumber = value;\r\n }",
"public void setNum(int num) {\r\n this.num = num;\r\n }",
"public void setAccountNo(int number){\n\t\taccountNo = number;\n\t}",
"public void setId_number(String id_number) {\n this.id_number = id_number;\n }",
"public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}",
"public void setIdNumber(String idNumber) {\n this.idNumber = idNumber;\n }",
"public void setC_UOM_ID (int C_UOM_ID)\n{\nset_Value (\"C_UOM_ID\", new Integer(C_UOM_ID));\n}",
"public void setCar_number( java.lang.String newValue ) {\n __setCache(\"car_number\", newValue);\n }",
"public void setID(Number numID);",
"public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}",
"@Override\r\npublic void setNumber(int number) {\n\tsuper.setNumber(number);\r\n}",
"public void setUsernumber(String usernumber) {\n this.usernumber = usernumber;\n }",
"public void setColumn(String column, long l)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n data.put(canonicalize(column), new Long(l));\n }",
"public void setNum(Integer num) {\n this.num = num;\n }",
"public void setNum(Integer num) {\n this.num = num;\n }",
"public void setM_Product_ID (int M_Product_ID)\n{\nset_Value (\"M_Product_ID\", new Integer(M_Product_ID));\n}",
"public void setChangeNum(Long changeNum) {\n this.changeNum = changeNum;\n }",
"public void setNum(int num) {\n\t\tthis.num = num;\n\t}",
"public void setSequenceNumber(INT sequenceNumber) {\n if(sequenceNumber instanceof org.hl7.hibernate.ClonableCollection)\n sequenceNumber = ((org.hl7.hibernate.ClonableCollection<INT>) sequenceNumber).cloneHibernateCollectionIfNecessary();\n _sequenceNumber = sequenceNumber;\n }",
"public Builder setNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n number_ = value;\n onChanged();\n return this;\n }",
"public static void setIdNumber(int idNumber) {\n catalogue.idNumber = idNumber;\n }",
"public void setInumber(final String value)\n\t{\n\t\tsetInumber( getSession().getSessionContext(), value );\n\t}",
"public static void setColumnNumber(int pColumnNumber) {\n\t\tcolumnNumber = pColumnNumber;\n\t}",
"public void setM_Warehouse_ID (int M_Warehouse_ID)\n{\nset_Value (\"M_Warehouse_ID\", new Integer(M_Warehouse_ID));\n}",
"void setIdNumber(String idNumber);",
"public abstract void setCod_actividad(java.lang.Long newCod_actividad);",
"public void setFromNumber(java.lang.String fromNumber)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FROMNUMBER$2, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FROMNUMBER$2);\n }\n target.setStringValue(fromNumber);\n }\n }",
"public void setCLNO(int value) {\n this.clno = value;\n }",
"public void setCostume(int newCostumeNumber) {\n costumeNumber=newCostumeNumber;\n }",
"private void setBuildingNumber(String number) {\n buildingNumber = number;\n }",
"public Builder setNumber(java.lang.String value) {\n\t\t\t\t\tif (value == null) {\n\t\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t\t}\n\n\t\t\t\t\tnumber_ = value;\n\t\t\t\t\tonChanged();\n\t\t\t\t\treturn this;\n\t\t\t\t}",
"public Series setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}",
"public void setBillNo(Long billNo) {\n this.billNo = billNo;\n }",
"public SeriesInstance setNumber( int theInteger) {\n\t\tmyNumber = new IntegerDt(theInteger); \n\t\treturn this; \n\t}",
"public void setNumero(int numero) { this.numero = numero; }",
"public void setMobile_phone(Long mobile_phone);",
"public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}",
"protected void setNumbertoZero() {\n\t\tnumber = 0;\n\t}",
"public synchronized void setAccountNumber(int number) {\n this.accountNumber = number;\n }",
"public void setNum(String num) {\r\n this.num = num == null ? null : num.trim();\r\n }",
"public void setNum(String num) {\n this.num = num == null ? null : num.trim();\n }",
"public void setNum(String num) {\n this.num = num == null ? null : num.trim();\n }",
"private void autonumber(){\n //txtkode.setVisible(false);\n txtkode.setText(\"\");\n\n try{\n sql = \"select * from tblpembayaran order by kode_pembayaran desc\";\n Statement st = (Statement) conek.getConnection().createStatement();\n rs = st.executeQuery(sql);\n if (rs.next()) {\n String kode = rs.getString(\"kode_pembayaran\").substring(1);\n String AN = \"\" + (Integer.parseInt(kode) + 1);\n String Nol = \"\";\n\n if(AN.length()==1)\n {Nol = \"00\";}\n else if(AN.length()==2)\n {Nol = \"0\";}\n else if(AN.length()==3)\n {Nol = \"\";}\n\n txtkode.setText(\"B\" + Nol + AN);\n } else {\n txtkode.setText(\"B001\");\n //kodepembayaran = \"B\" + Nol + AN;\n }\n }catch(Exception e){\n JOptionPane.showMessageDialog(rootPane,\"DATABASE BELUM NYALA!\");\n }\n }",
"public void setidnumber(int id) {\r\n idnumber = id;\r\n }",
"public void setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"public void setDocumentNo (String DocumentNo);",
"public void setNUM_DB(int NUM_DB) \r\n {\r\n if(NUM_DB > 0)\r\n this.NUM_DB = NUM_DB;\r\n }",
"public void setTelefono(long value) {\r\n this.telefono = value;\r\n }",
"public void setColumnLong(java.lang.Long value) {\n this.columnLong = value;\n setDirty(2);\n }",
"@JsonSetter(\"number\")\r\n public void setNumber (String value) { \r\n this.number = value;\r\n }",
"void setNumber(int row, int col, int num){\n board[row][col].setNumber(num);\n }",
"public void setANumber(final java.math.BigDecimal a) {\r\n this.aNumber = a;\r\n }",
"public void setValue(String number)\n {\n switch (number)\n {\n case \"2\":\n value = 2;\n break;\n case \"3\":\n value = 3;\n break;\n case \"4\":\n value = 4;\n break;\n case \"5\":\n value = 5;\n break;\n case \"6\":\n value = 6;\n break;\n case \"7\":\n value = 7;\n break;\n case \"8\":\n value = 8;\n break;\n case \"9\":\n value = 9;\n break;\n case \"10\":\n value = 10;\n break;\n case \"Jack\":\n value = 10;\n break;\n case \"Queen\":\n value = 10;\n break;\n case \"King\":\n value = 10;\n break;\n case \"Ace\":\n value = aceValue;\n break;\n }\n }",
"public void setNum (java.lang.Integer num) {\r\n\t\tthis.num = num;\r\n\t}",
"void setSequenceNumber(int sequenceNumber);",
"public void setAD_Column_ID (int AD_Column_ID);",
"public void setIdbulto(Number value)\n {\n setAttributeInternal(IDBULTO, value);\n }",
"public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }",
"public void setCounter(int number){\n this.counter = number;\n }",
"public void setPhoneNumber(String phone_number){\n this.phone_number = phone_number;\n }",
"public long getNumber(){\n return number;\r\n }",
"private void record_number(double number) {\n\t\tcalculate_number = number;\n\t}",
"public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }",
"public void setVersionNumber(Long versionNumber){\r\n this.versionNumber = versionNumber;\r\n }",
"public void setVersionNumber(Long versionNumber){\r\n this.versionNumber = versionNumber;\r\n }",
"void setNumber (int col, int row, int number) {\n\t\tboardArray[col][row] = number;\n\t}",
"public final void setNum_emp(String val) {\n setString(getNum_empAttribute(getMtDatabase()), val);\n }",
"public Column(int num)\n {\n colNum = num;\n }",
"public final void setOrderNumber(Long ordernumber)\r\n\t{\r\n\t\tsetOrderNumber(getContext(), ordernumber);\r\n\t}",
"void setCHVNumber(int number)\r\n {\r\n number_of_CHV = number;\r\n }",
"public void setCodigo() throws SQLException {\n try (PreparedStatement query = Herramientas.getConexion().prepareStatement(\"SELECT MAX(codigo_ticket) FROM ticket\"); \n ResultSet resultado = query.executeQuery()) {\n resultado.next();\n this.codigo = (resultado.getInt(1))+1;\n }\n \n }",
"public void setCourseNumber (String courseNumber)\n\t{\n\t\tif(courseNumber.length ( )==0 || courseNumber==null)\n\t\t{\n\t\t\tcourseNumber =\"Course Number\"; \n\t\t}\n\t\tthis.courseNumber = courseNumber;\n\t\tthis.saveNeed = true;\n\n\n\t}",
"public Builder setNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n number_ = value;\n onChanged();\n return this;\n }",
"public void setChineseNumber(Integer chineseNumber) {\n this.chineseNumber = chineseNumber;\n }",
"public SeriesInstance setNumber(IntegerDt theValue) {\n\t\tmyNumber = theValue;\n\t\treturn this;\n\t}",
"public void setCardNo(int cardNumber);",
"public Series setNumber(IntegerDt theValue) {\n\t\tmyNumber = theValue;\n\t\treturn this;\n\t}",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setControlNumber(java.lang.String value) {\n validate(fields()[4], value);\n this.controlNumber = value;\n fieldSetFlags()[4] = true;\n return this;\n }",
"@Override\n\tpublic void setColumnId(long columnId) {\n\t\t_expandoColumn.setColumnId(columnId);\n\t}",
"public Long getCreditNum() {\n return creditNum;\n }"
] | [
"0.623051",
"0.62023723",
"0.6198679",
"0.61774313",
"0.617548",
"0.6143674",
"0.6140257",
"0.6140257",
"0.6140257",
"0.6129526",
"0.61269015",
"0.6117052",
"0.60480636",
"0.602416",
"0.5945171",
"0.59117717",
"0.58595026",
"0.5617447",
"0.5612063",
"0.55757636",
"0.55643475",
"0.5562382",
"0.55482864",
"0.5529381",
"0.5522415",
"0.55015296",
"0.54857904",
"0.547612",
"0.5451489",
"0.54259324",
"0.5421482",
"0.54138213",
"0.5412793",
"0.5412793",
"0.5405117",
"0.5402034",
"0.5398409",
"0.5391191",
"0.5390621",
"0.5385855",
"0.5367003",
"0.53610015",
"0.5359109",
"0.5340833",
"0.5336326",
"0.5335703",
"0.5331376",
"0.5321715",
"0.5318444",
"0.5317747",
"0.53122914",
"0.5299827",
"0.5298615",
"0.5292653",
"0.5286129",
"0.52861017",
"0.5256469",
"0.5255679",
"0.5247883",
"0.524072",
"0.524072",
"0.5225674",
"0.5222706",
"0.52186114",
"0.52186114",
"0.52186114",
"0.5217695",
"0.52163047",
"0.52153957",
"0.5213681",
"0.52088195",
"0.5196203",
"0.51803845",
"0.51751345",
"0.5174912",
"0.517077",
"0.51682866",
"0.5153602",
"0.515251",
"0.514653",
"0.51441777",
"0.5141382",
"0.51365894",
"0.51158506",
"0.51158506",
"0.51155514",
"0.51120013",
"0.5108852",
"0.51023847",
"0.50940573",
"0.5075329",
"0.5064697",
"0.50333744",
"0.5023516",
"0.5020732",
"0.501519",
"0.50133544",
"0.5006619",
"0.49974513",
"0.49941233"
] | 0.60841036 | 12 |
This method was generated by MyBatis Generator. This method returns the value of the database column catelog.status | public Byte getStatus() {
return status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getStatus(){\n\n //returns the value of the status field\n return this.status;\n }",
"public String getAccessionStatus() {\n\t\tString t = doc.get(\"collaccessionstatus\");\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 getStatus(){\r\n\t\treturn status;\r\n\t}",
"public Long getStatus() {\n return this.Status;\n }",
"public String getStatus(){\n\t\t\n\t\treturn this.status;\n\t}",
"public Integer getStatus() {\n return this.status;\n }",
"public int getStatus(){\r\n\t\treturn this.status;\r\n\t}",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\r\n return status;\r\n }",
"public Integer getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public String getStatus() {\n return this.status;\n }",
"public StrColumn getStatusCode() {\n return delegate.getColumn(\"status_code\", DelegatingStrColumn::new);\n }",
"public String getStatus()\n {\n\n return status;\n }",
"public int getStatus()\n {\n return status;\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public java.sql.Timestamp getStatusdate()\n {\n return statusdate; \n }",
"public String getStatus() {\n return getProperty(Property.STATUS);\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\r\n return status;\r\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return status;\n }",
"public String getStatus() {\n return _status;\n }",
"public String getStatus () {\r\n return status;\r\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public Integer getStatus() {\n\t\treturn status;\n\t}",
"public Integer getStatus() {\n\t\treturn status;\n\t}",
"public String getStatus() {\n return this.Status;\n }",
"public String getStatus() {\n return this.Status;\n }",
"public String getStatus() { return status; }",
"public Status getStatus() {\r\n\t return status;\r\n\t }",
"public String getStatus() {\r\n\t\treturn status;\r\n\t}",
"public String getStatus() {\r\n\t\treturn status;\r\n\t}",
"public String getStatus() {\r\n\t\treturn status;\r\n\t}",
"public String getStatus() {\r\n\t\treturn status;\r\n\t}"
] | [
"0.6704308",
"0.64311314",
"0.6422204",
"0.64080817",
"0.64034873",
"0.63698274",
"0.6358327",
"0.6351284",
"0.6351284",
"0.6351284",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6343671",
"0.6335441",
"0.6335441",
"0.63113886",
"0.63113886",
"0.63113886",
"0.63113886",
"0.63113886",
"0.63113886",
"0.63113886",
"0.62966543",
"0.6284194",
"0.62799126",
"0.6279749",
"0.6279749",
"0.62766296",
"0.62766296",
"0.62766296",
"0.62749165",
"0.6272112",
"0.62655014",
"0.62655014",
"0.62655014",
"0.62655014",
"0.62655014",
"0.62602276",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.625373",
"0.62247896",
"0.6222812",
"0.62164253",
"0.62164253",
"0.62164253",
"0.62164253",
"0.62164253",
"0.6196312",
"0.6196312",
"0.6192974",
"0.6192974",
"0.6190659",
"0.61880976",
"0.6177162",
"0.6177162",
"0.6177162",
"0.6177162"
] | 0.0 | -1 |
This method was generated by MyBatis Generator. This method sets the value of the database column catelog.status | public void setStatus(Byte status) {
this.status = status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStatus(int v) \n {\n \n if (this.status != v)\n {\n this.status = v;\n setModified(true);\n }\n \n \n }",
"@IcalProperty(pindex = PropertyInfoIndex.STATUS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setStatus(final String val) {\n status = val;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"public void setStatus(String newStatus){\n\n //assigns the value of newStatus to the status field\n this.status = newStatus;\n }",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setLoginStatus(int val) {\n\t\tref.edit().putInt(COL_LOGIN_STATUS, val).commit();\n\t}",
"public void setStatus(Condition con) {\n\t\t\n\t}",
"public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}",
"protected void setStatus(DBRowStatus p_status)\n\t{\n\t\t_Status = p_status;\n\t}",
"public void setStatus(int status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }",
"public void setStatus(Long Status) {\n this.Status = Status;\n }",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"private void setPoStatus(PoBean.Status status, int pid) throws Exception {\n String query = \"UPDATE PO SET status = ? WHERE id = ?\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query)) {\n p.setString(1, status.toString());\n p.setInt(2, pid);\n p.executeUpdate();\n }\n }",
"public void setStatus(String status) {\r\n this.status = status;\r\n }",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setrowStatus(Integer value){\n\t}",
"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(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"private void updateStatus(boolean success) {\n if (success) {\n try {\n callSP(buildSPCall(MODIFY_STATUS_PROC));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with modify entries. \", exception);\n }\n\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n } else {\n try {\n callSP(buildSPCall(COMPLETE_STATUS_PROC, success));\n } catch (SQLException exception) {\n logger.error(\"Error updating dataset_system_log with for merge completion. \",\n exception);\n }\n }\n }",
"public void setAdminMigrationStatus(Context context,String strStatus) throws Exception\r\n\t{\r\n\t\tString cmd = \"modify program eServiceSystemInformation.tcl property MigrationR212VariantConfiguration value \"+strStatus;\r\n\t\tMqlUtil.mqlCommand(context, mqlCommand, cmd);\r\n\t}",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"public void setStatus(String status) { this.status = status; }",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"public void setEntitystatus(int entitystatus);",
"public void setStatusCd(String statusCd) {\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(String status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n this.status = status;\n }",
"public void setStatus(Integer status)\n {\n data().put(_STATUS, status);\n }",
"public void setStatus(final String attrStatus) {\r\n this.status = attrStatus;\r\n }",
"public void setStatus(String _status) {\n this._status = _status;\n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(String status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatusId(long statusId);",
"public void setStatus(char status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(StatusOfCause status) {\n\t\tthis.statusValue = status.value;\n\t}",
"public void setStatus(String status)\n {\n setValue(\"status\", status);\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(Status status) {\n this.status = status;\n }",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(String status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(@NotNull Status status) {\n this.status = status;\n }",
"public void setStatus(net.opengis.gml.x32.StringOrRefType status)\n {\n generatedSetterHelperImpl(status, STATUS$0, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setStatus(int status) {\n\t\tthis.status = (byte) status;\n\t\trefreshStatus();\n\t}",
"public void setStatus(boolean status) {\n\tthis.status = status;\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }",
"public void setStatus(Byte status) {\r\n this.status = status;\r\n }"
] | [
"0.6235348",
"0.61008626",
"0.60624325",
"0.60160387",
"0.5982382",
"0.5950591",
"0.59286946",
"0.59286946",
"0.5905005",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5882968",
"0.5874194",
"0.5868942",
"0.5857212",
"0.5857056",
"0.5853228",
"0.58473593",
"0.58371234",
"0.58371234",
"0.58343416",
"0.58033866",
"0.579509",
"0.57935876",
"0.5791226",
"0.5791226",
"0.5790805",
"0.5790805",
"0.5789614",
"0.5784445",
"0.57795703",
"0.57792753",
"0.5750431",
"0.57403576",
"0.57384926",
"0.57286274",
"0.57286274",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5721404",
"0.5715096",
"0.57006675",
"0.5700523",
"0.569996",
"0.5698504",
"0.5698504",
"0.5698504",
"0.5698504",
"0.5698504",
"0.5691442",
"0.5690932",
"0.5689445",
"0.5685658",
"0.56763506",
"0.56763506",
"0.56763506",
"0.56763506",
"0.5665746",
"0.5665746",
"0.5665746",
"0.5665746",
"0.565884",
"0.56521446",
"0.5639373",
"0.5634951",
"0.563102",
"0.563102",
"0.563102",
"0.563102",
"0.563102",
"0.563102",
"0.563102"
] | 0.0 | -1 |
Creates a new banker troop | public BankerTroop(int health, int creditsPerTile) {
super(health);
this.credidsPerTile = creditsPerTile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void createNewBankTest() {\n\t\tBank bank = data.createNewBank();\n\t\tassertEquals(bankTest, bank);\n\t}",
"private Borrower createBorrower() {\n Borrower bor = null;\n try {\n bor = new Borrower(Integer.parseInt(tfBorrowerID.getText()), driver);\n } catch (NumberFormatException nfe) {\n driver.errorMessageNormal(\"Please enter numbers only the Borrower ID and Book ID fields.\");\n }\n return bor;\n }",
"Rental createRental();",
"public void testCreate() {\n TCreate_Return[] Baskets_create_out = basketService.create(new TCreate_Input[] { Basket_in });\n assertNoError(Baskets_create_out[0].getError());\n\n assertNull(\"No FormErrors\", Baskets_create_out[0].getFormErrors());\n assertEquals(\"created?\", true, Baskets_create_out[0].getCreated());\n assertNotNull(\"Path not null\", Baskets_create_out[0].getPath());\n BasketPath = Baskets_create_out[0].getPath();\n }",
"@Transactional\r\n public Person createNewBorrower(BorrowerDTO borrowerDTO){\n \tcom.croamora.examenCROA.entity.User appUser = new com.croamora.examenCROA.entity.User();\r\n \tappUser.setUsername(borrowerDTO.getEmail());\r\n \tappUser.setEnabled(true);\r\n \tappUser.setPassword(Utils.Passgenerator(borrowerDTO.getPassword()));\r\n \tAuthority Authority = authorityRepository.findByAuthority(\"borrower\");\r\n \tSet<Authority> authorities = new HashSet<Authority>();\r\n \tauthorities.add(Authority);\r\n \tappUser.setAuthority(authorities);\r\n \tuserRepository.save(appUser);\r\n \t\r\n \t//create new Person, add persist User and save to DB\r\n \tPerson person = new Person();\r\n \tperson.setFirstName(borrowerDTO.getFirstName());\r\n \tperson.setLastName(borrowerDTO.getLastName());\r\n \tperson.setUser(appUser);\r\n \tperson.setPersonType(personTypeRepository.findByShortDescLabel(\"borrower\"));\r\n \tpersonRepository.save(person);\r\n \t\r\n \t//create new Loan and save to DB\r\n \tLoan loan = new Loan();\r\n \tloan.setPerson(person);\r\n \tloan.setReason(borrowerDTO.getNeed());\r\n \tloan.setDescription(borrowerDTO.getDescription());\r\n \tloan.setAmount(borrowerDTO.getMoney());\r\n \tloanRepository.save(loan);\r\n \t\r\n \treturn person;\r\n \t\r\n }",
"public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}",
"private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"driver@uclive.ac.nz\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }",
"Account create();",
"public void createAccount(){\n System.out.println(\"vi skal starte \");\n }",
"@Test\n\tpublic void createNewAccountWithOpeningBalanceSavingTest() {\n\t\tcreateAccountSavingTest();\n\t\tcreateNewAccountWithOpeningBalanceHelper();\n\t}",
"OperacionColeccion createOperacionColeccion();",
"BOp createBOp();",
"@Override\n\tpublic void createAccount(String username, Bank bank) {\n\t\ttry {\n\t\tAccount newAccount = new Account(username, bank.getBankID(), bank.getNumOfAccounts()+1);\n\t\tbank.setNumOfAccounts(bank.getNumOfAccounts()+1);\n\t\taddAccount(bank, newAccount);\n\t\t}catch(NullPointerException e) {\n\t\t\tSystem.out.println(\"Could not find bank\");\n\t\t}\n\t\t\n\t}",
"BankAccount(){\n\t\tSystem.out.println(\"NEW ACCOUNT CREATED\");\t\n\t}",
"public void crear(Tarea t) {\n t.saveIt();\n }",
"public int createBank(String owner,String bankName,int type) {\n\t\tif (type==1) {\n\t\t\tbankDb.add(new NormalAccount(owner,bankName,this.bankCount));\n\t\t\tthis.bankCount+=1;\n\t\t}\n\t\telse if(type==2) {\n\t\t\tbankDb.add(new OnlyInAccount(owner,bankName,this.bankCount));\n\t\t\tthis.bankCount+=1;\n\t\t}\n\t\telse if(type==3) {\n\t\t\tbankDb.add(new OnlyOutAccount(owner,bankName,this.bankCount,10000));\n\t\t\tthis.bankCount+=1;\n\t\t}\n\t\telse {\n\t\t\t/* Invalid type defined */\n\t\t\treturn -3;\n\t\t}\n\t\t/* normally created */\n\t\treturn this.bankCount-1;\n\t}",
"Strobo createStrobo();",
"RentalAgency createRentalAgency();",
"Tank() {\n\n print(\"Tank \" + id + \" is created!\");\n print(\"Tank \" + id + \" is created!\");\n }",
"void create(Order order);",
"@Test\n public void createHouseholdUsingPostTest() throws ApiException {\n Household household = null;\n Household response = api.createHouseholdUsingPost(household);\n\n // TODO: test validations\n }",
"public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"My secure password = \" + mySecurePassword);\n System.out.println(\"Salt value = \" + salt);\n Operator op = new Operator();\n op.setUsername(username);\n op.setDescription(description);\n op.setSalt(salt);\n op.setPassword(mySecurePassword);\n op.setRol(rol);\n operatorService.create(op);\n message = \"Se creo al usuario \" + username;\n username = \"\";\n description = \"\";\n password = \"\";\n rol = null;\n }",
"Operacion createOperacion();",
"@Test\n\tpublic void createAccountSavingTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnSaving.setSelected(true);\n\t\tdata.setRdbtnSaving(rdbtnSaving);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.SAVING.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}",
"public void create(){}",
"@Test\n\tpublic void createNewAccountWithOpeningBalanceChequingTest() {\n\t\tcreateAccountChequingTest();\n\t\tcreateNewAccountWithOpeningBalanceHelper();\n\t}",
"public boolean createPalvelupiste(Palvelupiste palvelupiste);",
"void create(Team team);",
"public com.Hotel.model.Hotel create(long hotelId);",
"@Test\n\tpublic void createAccountOtherInvestmentTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnOtherInvestments.setSelected(true);\n\t\tdata.setRdbtnOtherInvestments(rdbtnOtherInvestments);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.OTHER_INVESTMENTS.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}",
"public int create(TbTravelerInfo tbTravelerInfo) {\n\t\tString sql = \"INSERT INTO tbTravelerInfo(intBillId,strTravelerName,strSex,strBirthday,strCountry,strIndentyNumber) VALUES(?,?,?,?,?,?)\" ;\n\t\tObject[] objs = {\n\t\t\t\ttbTravelerInfo.getIntBillId(),\n\t\t\t\ttbTravelerInfo.getStrTravelerName(),\n\t\t\t\ttbTravelerInfo.getStrSex(),\n\t\t\t\ttbTravelerInfo.getStrBirthday(),\n\t\t\t\ttbTravelerInfo.getStrCountry(),\n\t\t\t\ttbTravelerInfo.getStrIndentyNumber()\n\t\t} ;\n\t\treturn super.jdbcTemplate.update(sql, objs);\n\t}",
"private void makeDeposit() {\n\t\t\r\n\t}",
"@Test(enabled = true)\n public void createPerson() {\n List <Account> accounts = new ArrayList<>();\n List<Subscription> sub = new ArrayList<>();\n \n Contact contact = new Contact.Builder().emailaddress(\"nobub@gmial.com\").phoneNumber(\"021345685\").build();\n Address address = new Address.Builder().location(\"Daveyton\").streetName(\"Phaswane Street\").houseNumber(45).build();\n \n repo = ctx.getBean(PersonsRepository.class);\n Person p = new Person.Builder()\n .firstname(\"Nobu\")\n .lastname(\"Tyokz\")\n .age(25)\n .account(accounts)\n .sub(sub)\n .contact(contact)\n .address(address)\n .build();\n repo.save(p);\n id = p.getId();\n Assert.assertNotNull(p);\n\n }",
"@Override\r\n\tpublic boolean createBooking(Booking_IF bk) {\r\n\t\tPreparedStatement myStatement = null;\r\n\t\tString query = null;\r\n\t\tint count = 0;\r\n\t\ttry{\r\n\t\t\tquery = \"insert into Booking values(?,?);\";\r\n\t\t\tmyStatement = myCon.prepareStatement(query);\r\n\t\t\tmyStatement.setInt(2, bk.getUserid());\r\n\t\t\tmyStatement.setInt(1, bk.getShiftid());\r\n\t\t\tcount = myStatement.executeUpdate();\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally{\r\n\t\t\ttry {\r\n\t\t\t\tif (myStatement != null)\r\n\t\t\t\t\tmyStatement.close();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count!=1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n public void dealerCreateNewDeck() {\r\n this.dealer.createNewDeck();\r\n System.out.println(\"Dealer deck created\");\r\n }",
"@Override\n\tpublic int createTicket(Booking_ticket bt) {\n\t\treturn btr.createTicket(bt);\n\t}",
"public void createAccount() {\n System.out.println(\"Would you like to create a savings or checking account?\");\n String AccountRequest = input.next().toLowerCase().trim();\n createAccount(AccountRequest);\n\n }",
"@Test\n\tpublic void createAccount() {\t\n\t\t\n\t\tRediffOR.setCreateAccoutLinkClick();\n\t\tRediffOR.getFullNameTextField().sendKeys(\"Kim Smith\");\n\t\tRediffOR.getEmailIDTextField().sendKeys(\"Kim Smith\");\n\t\t\t\t\t\n\t\t\n\t}",
"private void createDriver() {\n account = new Account(\"driver\", \"password\", \"driver@uclive.ac.nz\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L,\n new Licence(\"Full for over 2 years\", \"YXF87231\",\n LocalDate.parse(\"12/12/2015\", formatter),\n LocalDate.parse(\"12/12/2020\", formatter)));\n }",
"@Override\n\tpublic void createSavingAccount(Account as) {\n\t\ttry {\n\t\t\tConnection con = conUtil.getConnection();\n\t\t\t//To use our functions/procedure we need to turn off autocommit\n\t\t\tcon.setAutoCommit(false);\n\t\t\tString saving = \"insert into savings( owner_id, balance) values (?,?)\";\n\t\t\tCallableStatement chaccount = con.prepareCall(saving);\n\t\t\n\t\t\tchaccount.setInt(1,as.getOwner_id() );\n\t\t\tchaccount.setDouble(2, as.getBalance());\n\t\t\tchaccount.execute();\n\t\t\t\n\t\t\tcon.setAutoCommit(true);\n\t\t\t\n\t\t} catch(SQLException e) {\n\t\t\t\n\t\t\tSystem.out.println(\"In CheckingDaoDB Exception\");\n\t\t\te.printStackTrace();\n\t\t}\n}",
"Booking createBooking(Booking newBooking) throws Exception;",
"@Test\n\tpublic void createAccountDebtsTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnDebt.setSelected(true);\n\t\tdata.setRdbtnDebt(rdbtnDebt);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.DEBITS.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}",
"@Test\n\tpublic void createNewAccountWithOpeningBalanceCashTest() {\n\t\tcreateAccountCashTest();\n\t\tcreateNewAccountWithOpeningBalanceHelper();\n\t}",
"Book createBook();",
"BR createBR();",
"@Test\n public void a_create() {\n String url = baseUrl + \"create\";\n System.out.println();\n System.out.println(\"volunteerProvince being posted: \"+volunteerProvince);\n ResponseEntity<VolunteerProvince> postResponse = testRestTemplate\n .withBasicAuth(SECURITY_USERNAME, SECURITY_PASSWORD)\n .postForEntity(url, volunteerProvince, VolunteerProvince.class);\n volunteerProvince = postResponse.getBody();\n assertNotNull(postResponse.getBody());\n assertEquals(volunteerProvince.getVolunteerNum(), postResponse.getBody().getVolunteerNum());\n System.out.println(\"Volunteer Province saved on the data structure: \"+postResponse.getBody());\n\n }",
"@Override\n\tpublic void createAccount(Account p) {\n\t\t\n\t\ttry {\n\t\t\tConnection con = conUtil.getConnection();\n\t\t\t//To use our functions/procedure we need to turn off autocommit\n\t\t\tcon.setAutoCommit(false);\n\t\t\t\n\t\t\tString deleteFromTable = \"DELETE FROM accounts WHERE owner_id='8'\";\n\t try (Connection conn = conUtil.getConnection();\n\t PreparedStatement pstmt = conn.prepareStatement(deleteFromTable)) {\n\n\t // set the corresponding param\n\t pstmt.setInt(1, p.getOwner_id());\n\t // execute the delete statement\n\t pstmt.executeUpdate();\n\n\t } catch (SQLException e) {\n\t System.out.println(e.getMessage());\n\t }\n\t\t\t\n\t\t\tString sql = \"insert into accounts( owner_id, balance ) values (?,?)\";\n\t\t\tCallableStatement cs = con.prepareCall(sql);\n\t\t\t\n\t\t\tcs.setInt(1, p.getOwner_id());\n\t\t\tcs.setDouble(2, p.getBalance());\n\t\t\t\n\t\t\tcs.execute();\n\t\t\t\n\t\t\tcon.setAutoCommit(true);\n\t\t\t\n\t\t} catch(SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void create() {\n\t\t\n\t}",
"@Override\n\tpublic void createBank(String bankName) {\n\t\tBank newBank = new Bank(bankName, new HashSet<Account>());\n\t\tcache.addToCache(newBank);\n\t\t\n\t}",
"public void create(Person p) {\n\t\t\n\t}",
"void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}",
"void create(Book book);",
"public void testNewBid(){\n\n Thing thing = new Thing(new User());\n User borrower = new User();\n\n Bid bid = null;\n try {\n bid = new Bid(thing, borrower, 800);\n }catch(Exception e){\n fail();\n }\n assertEquals(800, bid.getAmount());\n assertEquals(Bid.Per.FLAT, bid.getPer());\n assertEquals(\"8.00\", bid.valueOf());\n assertEquals(\"$8.00\", bid.toString());\n\n }",
"public Bar createBar(Bar bar) {\n ContentValues values\n = new ContentValues();\n values.put(HelperCubata.COLUMN_NOMBAR,\n bar.getnomBar());\n values.put(HelperCubata.COLUMN_IDLOCALITZACIO,\n bar.getIdLocalitzacio());\n\n long insertId= database.insert(HelperCubata.TABLE_BAR,null,values);\n bar.setId(insertId);\n return bar;\n }",
"public void testCreateWithDefaults() {\n TCreate_Input basket_in = new TCreate_Input();\n TCreate_Return[] Baskets_create_out = basketService.create(new TCreate_Input[] { basket_in });\n assertNoError(Baskets_create_out[0].getError());\n assertNull(\"No FormErrors\", Baskets_create_out[0].getFormErrors());\n assertEquals(\"created?\", true, Baskets_create_out[0].getCreated());\n assertNotNull(\"Path not null\", Baskets_create_out[0].getPath());\n }",
"@Test\n\tpublic void createNewAccountWithOpeningBalanceRRSPTest() {\n\t\tcreateAccountRRSPInvestmentTest();\n\t\tcreateNewAccountWithOpeningBalanceHelper();\n\t}",
"@Test\n\tpublic void createNewAccountWithOpeningBalanceOtherTest() {\n\t\tcreateAccountOtherInvestmentTest();\n\t\tcreateNewAccountWithOpeningBalanceHelper();\n\t}",
"@Override\n\tpublic Penguin createPenguin(Penguin penguin) {\n\t\tPenguin saved = this.repo.save(penguin);\n\t\treturn saved; // penguin with an id (has been saved)\n\t}",
"public void createCoupon(Coupon coupon) throws DbException;",
"WithCreate withBranch(String branch);",
"public PlanoSaude create(long plano_id);",
"public void create(DroitsMembre droits) {\n\n\t}",
"private Book createBook() {\n Book book = null;\n\n try {\n\n //determine if fiction or non-fiction\n if (radFiction.isSelected()) {\n //fiction book\n book = new Fiction(Integer.parseInt(tfBookID.getText()));\n\n } else if (radNonFiction.isSelected()) {\n //non-fiction book\n book = new NonFiction(Integer.parseInt(tfBookID.getText()));\n\n } else {\n driver.errorMessageNormal(\"Please selecte fiction or non-fiction.\");\n }\n } catch (NumberFormatException nfe) {\n driver.errorMessageNormal(\"Please enter numbers only the Borrower ID and Book ID fields.\");\n }\n return book;\n }",
"public com.huqiwen.demo.book.model.Books create(long bookId);",
"public void createBike() {\n createFrame();\n addWheels();\n addPedals();\n getPrice();\n }",
"@Override\n\tpublic void createGerant(Gerant g) {\n\t\t\n\t}",
"public void createBike(){\n createFrame();\n addWheels();\n addPedals();\n getPrice();\n }",
"void create(Trubriques trubriques);",
"public Bank() {\n\t\tsuper();\n\t}",
"public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}",
"Stone create();",
"public Boat insertBoat(Boat boat);",
"@Override\n\tpublic void create(IWizardEntity entity, WizardRunner runner) {\n\t\t\n\t}",
"public static void main(String[] args) {\n Bank newBank = new Bank(123456789);\n newBank.createAccount(45);\n newBank.createAccount(9);\n newBank.createAccount(342267);\n newBank.createAccount(7);\n newBank.createAccount(3);\n newBank.createAccount(343);\n newBank.createAccount(7);\n newBank.createAccount(789);\n newBank.createAccount(5645);\n //newBank.removeAccount(7);\n //System.out.println(\"New account: \" + newBank.createAccount(44));\n //System.out.println(\"2. account \" + newBank.createAccount(6));\n newBank.printAllAccounts();\n }",
"@Test\n\tpublic void createNewAccountWithOpeningBalanceDebitTest() {\n\t\tcreateAccountDebtsTest();\n\t\tcreateNewAccountWithOpeningBalanceHelper();\n\t}",
"public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}",
"@Override\n public void create_building(ArrayList bulding){\n House house = new House(Adress.RUE_DE_LA_PAIX);\n System.out.println(\"Vous venez de créer une maison\");\n bulding.add(house);\n }",
"@Test\n\tpublic void createAccountCashTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnCash.setSelected(true);\n\t\tdata.setRdbtnCash(rdbtnCash);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.CASH.getAccountType());\n\t\tassertEquals(accountTest, account);\n\n\t}",
"public Bike createCityBike() {\n Wheels cityWheels = new Wheels(559,50f,10000); //Räder des Stadtrads erstellen\n Gears cityGears = new Gears(3,1,5000); //Gangschaltung des Stadtrads erstellen\n Bike newCityBike = new Bike(cityGears, cityWheels, \"Stahl\", \"CB105\", true, true, 30000); //Stadtrad erstellen\n return newCityBike; //Stadtrad zurückgeben\n}",
"@Override\r\n\tpublic Libro create(Libro libro) {\n\t\treturn libroRepository.save(libro);\r\n\t}",
"Parking createParking();",
"@Override\n\tpublic Trunk create(final Map<String, String> params) throws TwilioRestException {\n\t\tfinal TwilioRestResponse response = getClient().safeRequest(getResourceLocation(), \"POST\", params);\n\t\treturn makeNew(getClient(), response.toMap());\n\t}",
"@Test(groups = \"Transactions Tests\", description = \"Create new transaction\")\n\tpublic void createNewTransaction() {\n\t\tMainScreen.clickAccountItem(\"Income\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Salary\");\n\t\tTransactionsScreen.clickAddTransactionBtn();\n\t\tTransactionsScreen.typeTransactionDescription(\"Extra income\");\n\t\tTransactionsScreen.typeTransactionAmount(\"300\");\n\t\tTransactionsScreen.clickTransactionType();\n\t\tTransactionsScreen.typeTransactionNote(\"Extra income from this month\");\n\t\tTransactionsScreen.clickSaveBtn();\n\t\tTransactionsScreen.transactionItem(\"Extra income\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$300\"));\n\t\ttest.log(Status.PASS, \"Sub-account created successfully and the value is correct\");\n\n\t\t//Testing if the transaction was created in the 'Double Entry' account, if the value is correct and logging the result to the report\n\t\treturnToHomeScreen();\n\t\tMainScreen.clickAccountItem(\"Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Current Assets\");\n\t\tSubAccountScreen.clickSubAccountItem(\"Cash in Wallet\");\n\t\tTransactionsScreen.transactionItem(\"Extra income\").shouldBe(visible);\n\t\tTransactionsScreen.transactionAmout().shouldHave(text(\"$300\"));\n\t\ttest.log(Status.PASS, \"'Double Entry' account also have the transaction and the value is correct\");\n\n\t}",
"public com.alain.puntocoma.model.Catalogo create(long catalogoId);",
"SpaceInvaderTest_test_VaisseauImmobile_DeplacerVaisseauVersLaDroite createSpaceInvaderTest_test_VaisseauImmobile_DeplacerVaisseauVersLaDroite();",
"@Override\n\tpublic void create(Owner owner) {\n\n\t}",
"public Boat() {\n }",
"@PostMapping(\"/cards\")\n StarbucksCard newCard() {\n StarbucksCard newcard = new StarbucksCard();\n\n Random random = new Random();\n int num = random.nextInt(900000000) + 100000000;\n int code = random.nextInt(900) + 100;\n\n newcard.setCardNumber(String.valueOf(num));\n newcard.setCardCode(String.valueOf(code));\n newcard.setBalance(20.00);\n newcard.setActivated(false);\n newcard.setStatus(\"New Card\");\n return repository.save(newcard);\n }",
"@Override\n\tpublic void createBourse(Bourse brs) {\n\t\t\n\t}",
"@Test\n\tpublic void createAccountRRSPInvestmentTest() {\n\t\tsetChequingRadioDefaultOff();\n\t\trdbtnRrspInvestments.setSelected(true);\n\t\tdata.setRdbtnRrspInvestments(rdbtnRrspInvestments);\n\t\tAccount account = data.createNewAccount();\n\t\taccountTest = new Account(TEST_ACCOUNT_NAME, bankTest,\n\t\t\t\tAccount.Types.RRSP_INVESTMENTS.getAccountType());\n\t\tassertEquals(accountTest, account);\n\t}",
"public IResourceDepot createResourceDepot() {\n\n /*\n * Defining a ResourceDepot \"JackTruckDepot\" that can store DeliverGood and PickupGood.\n *\n */\n\n // We can store a maximum of 10 DeliverGood on our track (assuming that no other load is\n // present)\n // Further, we start with an initial load of 5 DeliverGoods.\n ILoadCapacity deliverGoodCapacity = new SimpleLoadCapacity(\"DeliverGood\", 10, 5);\n\n // We can store a maximum of 5 PickupGood on our track (assuming that no other load is present)\n ILoadCapacity pickupGoodCapacity = new SimpleLoadCapacity(\"PickupGood\", 5, 0);\n\n // Our depot can store a maximum of 10 total items. For example, 7 DeliverGoods\n // and 3 PickupGoods.\n IResourceDepot depot = new SimpleResourceDepot(\"JackTruckDepot\", 10);\n\n // Adding the capacities to our depot\n depot.add(deliverGoodCapacity);\n depot.add(pickupGoodCapacity);\n\n return depot;\n }",
"@Override\n\tpublic void create(Customer t) {\n\n\t}",
"public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}",
"@Test\n public void createBaasAccountUsingPostTest() throws ApiException {\n BaasAccountCO baasAccountCO = null;\n BaasAccountVO response = api.createBaasAccountUsingPost(baasAccountCO);\n\n // TODO: test validations\n }",
"@Override\n public EntityDealer create(String dealerId) {\n EntityDealer entityDealer = new EntityDealerImpl();\n\n entityDealer.setNew(true);\n entityDealer.setPrimaryKey(dealerId);\n\n return entityDealer;\n }",
"public void create() {\r\n for(int i=0; i< 50; i++){\r\n long id = (new Date()).getTime();\r\n Benefit newBeneficio = new Benefit();\r\n newBeneficio.setId(\"\"+id); \r\n newBeneficio.setCategory(\"almacenes \"+id);\r\n newBeneficio.setDescription(\"description \"+id);\r\n newBeneficio.setDiscount(i);\r\n newBeneficio.setStart_date(\"start_date \"+id);\r\n newBeneficio.setEnd_date(\"end_date \"+id);\r\n newBeneficio.setReview(\"review \"+id);\r\n newBeneficio.setTitle(\"title \"+id);\r\n newBeneficio.setLogo(\"logo \"+id);\r\n newBeneficio.setTwitter(\"twitter \"+id);\r\n newBeneficio.setFacebook(\"facebook \"+id);\r\n newBeneficio.setUrl(\"url \"+ id);\r\n \r\n Address address = new Address();\r\n address.setCity(\"Santiago \"+ id);\r\n address.setCountry(\"Santiago \"+ id);\r\n address.setLine_1(\"Linea 1 \"+ id);\r\n address.setLine_2(\"Linea 2 \"+ id);\r\n address.setLine_3(\"Linea 3 \"+ id);\r\n address.setPostcode(\"\" + id);\r\n address.setState(\"Region Metropolitana \"+ id);\r\n \r\n Location location = new Location();\r\n double[] cordenadas = {-77.99283,-33.9980};\r\n location.setCoordinates(cordenadas);\r\n location.setDistance(5.445);\r\n location.setType(\"Point\");\r\n \r\n Lobby lobby = new Lobby();\r\n lobby.setHours(\"HORA \"+ + id);\r\n \r\n newBeneficio = service.persist(newBeneficio);\r\n LOGGER.info(newBeneficio.toString());\r\n }\r\n }",
"public Bank() {\n\n }",
"RentalObject createRentalObject();",
"public Angkot createAngkot(Angkot angkot) {\n \n // membuat sebuah ContentValues, yang berfungsi\n // untuk memasangkan data dengan nama-nama\n // kolom pada database\n ContentValues values = new ContentValues();\n values.put(HelperAngkot.COLUMN_NAME, angkot.getName());\n values.put(HelperAngkot.COLUMN_DESCRIPTION, angkot.getDescription());\n values.put(HelperAngkot.COLUMN_TIME, angkot.getTime());\n \n // mengeksekusi perintah SQL insert data\n // yang akan mengembalikan sebuah insert ID \n long insertId = database.insert(HelperAngkot.TABLE_NAME, null,\n values);\n \n // setelah data dimasukkan, memanggil perintah SQL Select \n // menggunakan Cursor untuk melihat apakah data tadi benar2 sudah masuk\n // dengan menyesuaikan ID = insertID \n Cursor cursor = database.query(HelperAngkot.TABLE_NAME,\n allColumns, HelperAngkot.COLUMN_ID + \" = \" + insertId, null,\n null, null, null);\n \n // pindah ke data paling pertama \n cursor.moveToFirst();\n \n // mengubah objek pada kursor pertama tadi\n // ke dalam objek barang\n Angkot newAngkot = cursorToAngkot(cursor);\n \n // close cursor\n cursor.close();\n \n // mengembalikan barang baru\n return newAngkot;\n }",
"public ProfileBankAccount() {\r\n }"
] | [
"0.6033934",
"0.5967239",
"0.5923128",
"0.58927256",
"0.5887714",
"0.58703804",
"0.5861849",
"0.58151865",
"0.5654007",
"0.5646876",
"0.5607376",
"0.5605344",
"0.56044203",
"0.5598577",
"0.5597412",
"0.55946773",
"0.55821484",
"0.5521495",
"0.55138355",
"0.54917246",
"0.54845583",
"0.54842037",
"0.5465723",
"0.54543775",
"0.5447698",
"0.54330564",
"0.54252774",
"0.542333",
"0.5398948",
"0.53973395",
"0.53939766",
"0.5393817",
"0.5390973",
"0.5386448",
"0.5380592",
"0.5371796",
"0.5369008",
"0.53591126",
"0.53571004",
"0.5349894",
"0.534771",
"0.5344345",
"0.53382266",
"0.53372157",
"0.53285974",
"0.5328556",
"0.5328341",
"0.5324267",
"0.53181684",
"0.531453",
"0.5300261",
"0.5295044",
"0.52892274",
"0.5287926",
"0.5281481",
"0.5277689",
"0.5267754",
"0.5265173",
"0.5257126",
"0.5255807",
"0.52516013",
"0.52447426",
"0.5239941",
"0.5235626",
"0.52276874",
"0.52272034",
"0.5227108",
"0.52266634",
"0.5223364",
"0.5222964",
"0.52224845",
"0.5220604",
"0.5220209",
"0.52174324",
"0.52123964",
"0.5207497",
"0.52053267",
"0.52032226",
"0.5196827",
"0.5195143",
"0.5193522",
"0.51930404",
"0.51869094",
"0.518586",
"0.5173738",
"0.51684207",
"0.5167944",
"0.5167913",
"0.5164696",
"0.5147877",
"0.5147108",
"0.51395345",
"0.5136422",
"0.5133994",
"0.51306677",
"0.5125732",
"0.5117365",
"0.511253",
"0.5107314",
"0.5098254"
] | 0.55431277 | 17 |
When tile has been entered more credits are added to the player | @Override
public void onEnterNewTile(EntityTroop entity, World world, Player owner) {
super.onEnterNewTile(entity, world, owner);
owner.addCredits(credidsPerTile);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void AddCredits(int credits)\n {\n this.credits += credits;\n }",
"public void credits() {\n\t}",
"public void setCredits(double credits) {\n this.credits = credits;\n }",
"private void addPlayerSheild() {\n this.playerShield += 1;\n }",
"public void action(Player myPlayer)\n {\n if (getNbUtilisation() == 0) {\n System.out.println(\"Not possible\");\n } else {\n int nHealthy = getPointsHealthy();\n myPlayer.addLifePoints(nHealthy);\n\n }\n }",
"private void specialPowersPhase() {\n \tSpecialCharacter tmpPiece = null;\n \tTerrain theHex = null;\n\n for (Player p : playerList) {\n pause();\n this.player = p;\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(this.player);\n \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n Game.getRackGui().setOwner(player);\n }\n });\n /*\n * Loops through all of the hexes that the player has pieces on.\n * If one of the pieces is either Master Thief or Assassin Primus, perform their\n * special ability.\n */\n for (Terrain hex : player.getHexesWithPiece()) {\n for (Piece pc : hex.getContents(player.getName()).getStack()) {\n if (pc.getName().equals(\"Master Thief\") || pc.getName().equals(\"Assassin Primus\")) { \n ((Performable)pc).specialAbility();\n if (MasterThief.isReturnPiece() || AssassinPrimus.isReturnPiece()) {\n \ttmpPiece = (SpecialCharacter)pc;\n \ttheHex = hex;\n \ttmpPiece.returnToBank(theHex);\n \tbreak;\n }\n }\n }\n }\n player.flipAllDown();\n }\n ClickObserver.getInstance().setPlayerFlag(\"\");\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n DiceGUI.getInstance().setFaceValue(0);\n DiceGUI.getInstance().cover();\n }\n });\n }",
"public void addTile(Tile tile) {\n ownedTiles.add(tile);\n }",
"private void communityChest(Player currentPlayer){\n Random rand = new Random();\n int randomNum = rand.nextInt((3 - 1) + 1) + 1;\n int nextPlayer;\n if(m_currentTurn >= m_numPlayers){\n nextPlayer = 0;\n } else {\n nextPlayer = m_currentTurn+1;\n }\n\n if(randomNum == 1){\n convertTextToSpeech(\"Your new business takes off, collect 200\");\n if(m_manageFunds) {\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(200);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 200\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n if(randomNum == 2){\n convertTextToSpeech(\"Your friend hires your villa for a week, \" +\n \"collect 100 off the next player\");\n if(m_manageFunds) {\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(100);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 100\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n players.get(nextPlayer).subtractMoney(100);\n Log.d(\"chance subtract 100\", players.get(nextPlayer).getName() +\n String.valueOf(players.get(nextPlayer).getMoney()));\n }\n }\n if(randomNum == 3){\n convertTextToSpeech(\"You receive a tax rebate, collect 300\");\n if(m_manageFunds) {\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n currentPlayer.addMoney(300);\n funds.setText(String.valueOf(currentPlayer.getMoney()));\n Log.d(\"chance add 300\", currentPlayer.getName() +\n String.valueOf(currentPlayer.getMoney()));\n }\n }\n }",
"public void run()\r\n/* 29: */ {\r\n/* 30:26 */ for (Player p :HG.plugin.getServer().getOnlinePlayers()) {\r\n/* 31:28 */ if (p.getInventory().contains(Material.COMPASS))\r\n/* 32: */ {\r\n/* 33:29 */ PlayerData pd = (PlayerData)this.plugin.players.get(p.getName());\r\n/* 34:31 */ if (pd != null)\r\n/* 35: */ {\r\n/* 36:33 */ String[] st = getNearestPlayer(p, pd);\r\n/* 37:34 */ String info = \"\" + ChatColor.WHITE + ChatColor.BOLD + \"Nearest Player: \" + ChatColor.RED + st[0] + \" \" + ChatColor.WHITE + ChatColor.BOLD + \"Distance: \" + ChatColor.RED + st[1];\r\n/* 38:36 */ for (ItemStack it : p.getInventory()) {\r\n/* 39:37 */ if ((it != null) && (it.getType() == Material.COMPASS))\r\n/* 40: */ {\r\n/* 41:38 */ ItemMeta im = it.getItemMeta();\r\n/* 42:39 */ im.setDisplayName(info);\r\n/* 43:40 */ it.setItemMeta(im);\r\n/* 44: */ }\r\n/* 45: */ }\r\n/* 46: */ }\r\n/* 47: */ }\r\n/* 48: */ }\r\n/* 49: */ }",
"private void add(Tile t) {\n tileBag.add(t);\n shuffleBag();\n }",
"public void updateLavaTiles() {\n for (Tile tile : getTiles()) {\n Random random = new Random();\n if (tile.getType().matches(\"BurnTile\")) {\n tile.setTexture(\"Volcano_\" + (random.nextInt(4) + 5));\n }\n }\n }",
"private void transferCards(Player player) {\r\n\t\twhile(warPile.size() > 0) {\r\n\t\t\tplayer.addToWinningsPile(warPile.remove(0));\r\n\t\t}\r\n\t}",
"private void updatePlayerClaim(){\n if(chestProgressLevel!=1){\n return; //the chest isnt unlocked!\n }\n\n //count the total players, and the players who unlocked it.\n int totalPlayers = 0;\n int unlockedPlayers = 0;\n for(JuggernautPlayer player: JuggernautGame.getInstance().getPlayers()){\n if(!player.isSurvivor() || !player.isAlive()){\n continue; //they be dead, they dont count! (Juggy also doesnt count, he doesnt get to unlock items)\n }\n totalPlayers++; //+1 total players\n if(player.isSurvivor() && player.getChestBonus(chestID)>=level){\n unlockedPlayers++; //they unlocked it, +1 unlocked players\n }\n }\n\n //all players unlocked it\n if(totalPlayers<=unlockedPlayers && chestProgressLevel==1){\n //lock the chest before respawning.\n lockChest();\n new BukkitRunnable() {\n\n int timeTillRespawn = 3; //3 seconds to respawn a chest\n @Override\n public void run() {\n //runs every second\n for(JuggernautPlayer jp : JuggernautGame.getInstance().getAllPeople()){\n //check if the player is in the radius of the chest (ignore Y)\n if(SkyMathHelper.isInRadius(location, jp.getPlayer().getLocation(), nametagRadius, false)) {\n //show them the hologram. Update if they already have the hologram active.\n //If this chest will not respawn, we tell them \"Good Luck!\" instead of the respawning message.\n if (jp.getLoadedEntities().containsKey(armorstandResetChestID)) {\n if(level==getMaxLevel()){\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Good Luck!\");\n }else {\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Respawning in \" + timeTillRespawn);\n }\n } else {\n if(level==getMaxLevel()) {\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Good Luck!\", armorstandResetChestID);\n }else{\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Respawning in \" + timeTillRespawn, armorstandResetChestID);\n }\n }\n }else{\n //they arent in range, so we remove this entity for them\n jp.removeEntities(armorstandResetChestID);\n }\n }\n\n //check if its time to respawn.\n if(timeTillRespawn--<=0){\n //its time! respawn the chest!\n respawnChest();\n for(JuggernautPlayer jp: JuggernautGame.getInstance().getPlayers()){\n //remove the countdown armorstand for all players\n jp.removeEntities(armorstandResetChestID);\n }\n this.cancel(); //cancel this runnable, we no longer need it.\n return;\n }\n }\n }.runTaskTimer(Juggernaut.pluginInstance, 0L, 20L); //every 20 ticks (1s)\n }else{\n //not all players unlocked the item yet. Lets indicate how many did.\n String emptyDisplayText = unlockedPlayers + \"/\" + totalPlayers + \" Claimed\";\n for(JuggernautPlayer JP: JuggernautGame.getInstance().getPlayers()){\n if(!SkyMathHelper.isInRadius(location, JP.getPlayer().getLocation(), nametagRadius, false)){\n //they arent in the radius, so we remove their armorstand again (if they had it).\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)) {\n JP.removeEntities(armorstandClaimProgressID);\n }\n continue;\n }\n\n //generate the color of the display text we need to show them. green if they claimed it, otherwise red.\n String displayText;\n if(JP.getChestBonus(chestID)>=level){\n displayText = \"\\u00A72\" + emptyDisplayText;\n }else{\n displayText = \"\\u00A7c\" + emptyDisplayText;\n }\n\n //update, or show the hologram to them.\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)){\n JP.updateHologram(armorstandClaimProgressID, displayText);\n }else{\n JP.displayHologram(this.location.getX(), this.location.getY()+this.armorstandClaimProgressHeight, this.location.getZ(), displayText, armorstandClaimProgressID);\n }\n }\n }\n }",
"public int credits() {\n ////\n return credits;\n }",
"public void RemoveCredits(long credits)\n {\n this.credits -= credits;\n }",
"public abstract void onContribution(int amount, Player player);",
"public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }",
"public void hitButtonClicked()\r\n {\r\n Card hit = game.hit(\"Player\");\r\n playerCardList.get(nextPlayerIndex).setImage(hit.toGraphic());\r\n nextPlayerIndex++;\r\n if(game.checkLose())\r\n {\r\n playerLost();\r\n }\r\n }",
"private void showCreditsScreen() {\n\t\twhile (!Mouse.isButtonDown(0)\n\t\t\t\t|| !(Mouse.getX() >= 643 && Mouse.getX() <= 758 && Mouse.getY() <= (displayHeight - 494) && Mouse.getY() >= (displayHeight - 562))) {\n\t\t\t// draw credits screen\n\t\t\tdrawScreen(sprite.get(\"creditsScreen\"));\n\t\t\t\n\t\t\t// update display\n\t\t\tupdateDisplay();\n\t\t}\n\t}",
"public long getCredits()\n {\n return credits;\n }",
"@Override\r\n\tpublic void uniqueOnStartInteraction() {\n\t\tif (Main.clientPlayer.getNumWood() < cost) {\r\n\t\t\tMain.clientPlayer.stopInteraction();\r\n\t\t}\r\n\r\n\t}",
"private Integer updateCredits(Integer[] credits) {\n return (Integer) this.displayOptionsPanel(\"Choose credits:\", credits);\n }",
"boolean addSteam(ItemStack me, int amount, EntityPlayer player);",
"public int getCredits() {\n return credits;\n }",
"@Override\n public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix) \n {\n if (item.itemID == mod_TFmaterials.RubyPickaxe.itemID)\n {\n \t//player.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n \tplayer.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n }\n }",
"public int getCredits()\n {\n return credits;\n }",
"public void hit() {\n Card c = cards.draw(); //Draws a card\n cardPane.add(c); //Adds card to card panel\n repaint(); //Redraws hand\n revalidate(); //Refreshes hand\n int cardValue = c.getValue(); //Gets value of card\n ArrayList<Integer> newValues = new ArrayList<>(); //Collection of new Integer values\n for (Integer i : values) {\n newValues.add(i + cardValue); //Populates new list with old list + new card value\n }\n values.clear(); //Erases old list\n values.addAll(newValues); //Sets values to newValues\n if (cardValue == 11) { //If card is an ace\n for (Integer i : values) {\n newValues.add(i - 10); //Adds values where ace is value 1\n }\n values.clear();\n values.addAll(newValues);\n }\n updateValue(); //Updates the value of the hand\n }",
"@Override\r\n public void onTileAdded() {\r\n super.onTileAdded();\r\n //Log.d(TAG, \"on tile added running\");\r\n initTileState();\r\n }",
"private void addPlayers(@NotNull MapHandler map, @NotNull NewGameDto newGameDto) {\n ComparableTuple<Integer, Stack<SpawnTile>> result = analyseMap(map);\n flagCount = result.key;\n Stack<SpawnTile> spawnTiles = result.value;\n if (!spawnTiles.isEmpty()) {\n for (PlayerDto player : newGameDto.players) {\n SpawnTile spawnTile = spawnTiles.pop();\n if (player.id == newGameDto.userId) {\n user = new Player(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(GameGraphics.mainPlayerName + \" (you)\", player.color), player.id);\n user.setDock(spawnTile.getSpawnNumber());\n players.add(user);\n } else {\n IPlayer onlinePlayer = new OnlinePlayer(spawnTile.getX(), spawnTile.getY(), Direction.NORTH, map, new ComparableTuple<>(player.name, player.color), player.id);\n onlinePlayer.setDock(spawnTile.getSpawnNumber());\n players.add(onlinePlayer);\n }\n }\n } else {\n for (int i = 0; i < playerCount; i++) {\n NonPlayer nonPlayer = new NonPlayer(i, 0, Direction.NORTH, map, new ComparableTuple<>(\"blue\", Color.BLUE));\n nonPlayer.setDock(i);\n players.add(nonPlayer);\n }\n }\n }",
"public void showCredit()\n { \n if (Greenfoot.mouseClicked(creditBtn)) { //if user clicked instructions button\n Greenfoot.setWorld(new CreditWorld()); //display credit world\n Greenfoot.stop();\n }\n }",
"public void win(int player)\r\n\t{\r\n\t\taccountValue[player]+=pool;\r\n\t\tendRund();\r\n\t}",
"public void addWinning1(Card card)\n {\n player1Hand.enqueue(card);\n }",
"public void victory() {\n fieldInerface.setPleasedSmile();\n fieldInerface.timestop();\n int result = fieldInerface.timeGet();\n /*try {\n if (result < Integer.parseInt(best.getProperty(type))) {\n best.setProperty(type, Integer.toString(result));\n fieldInerface.makeChampionWindow(type);\n }\n } catch (NullPointerException e) {\n } catch (NumberFormatException e) {\n best.setProperty(type, Integer.toString(result));\n fieldInerface.makeChampionWindow(type);\n }*/\n\n gamestart = true; // new game isn't started yet!\n for (int j = 0; j < heightOfField; j++)\n for (int i = 0; i < widthOfField; i++)\n if (fieldManager.isCellMined(i, j))\n if (!fieldManager.isCellMarked(i, j)) {\n fieldInerface.putMarkToButton(i, j);\n fieldInerface.decrement();\n }\n gameover = true; // game is over!!\n }",
"void givePlayerExp(BPlayer bPlayer, int exp);",
"public void drawPlus(int times) {\n\t Player nextPlayer = turnManager.nextPlayer();\n\t for (int i = 0; i < times; i++) {\n\t nextPlayer.obtainCard(getNextCard());\n }\n\t}",
"public void addToCollected(PlayingCard card){\n\t\tcollected.add(card);\t\t\n\t}",
"@Override\n public void addPlayer(Player player) {\n\n if(steadyPlayers.size()>0){\n PlayersMeetNotification.firePropertyChange(new PropertyChangeEvent(this, \"More than one Player in this Panel\",steadyPlayers,player));\n }\n steadyPlayers.add(player);\n\n }",
"private void addPointsToPlayer(Player player, int marbleNum) {\n Long score = player.getScore();\n score += marbleNum;\n\n // add the score for the marble 7 places before\n Long value = (Long) placement.get(getMarbel7());\n score += value;\n\n player.setScore(score);\n }",
"public void act(Player player) {\n int roleIndex = -1;\n for (int i = 0; i < roles.size(); i++) {\n if (roles.get(i).getPlayer() == player) {\n roleIndex = i;\n break;\n }\n }\n boolean isOnCard = false;\n List<Role> onCardRoles = scene.getRoles();\n if (roleIndex == -1) {\n isOnCard = true;\n for (int i = 0; i < onCardRoles.size(); i++) {\n if (onCardRoles.get(i).getPlayer() == player) {\n roleIndex = i;\n break;\n }\n }\n }\n\n int diceRoll = random.nextInt(6) + 1;\n\n if (isOnCard) {\n if (diceRoll + player.getPracticeChips() >= scene.getBudget()) {\n shotsLeft--;\n System.out.println(\"Success! You completed the shot and got two credits.\");\n player.addCredits(2);\n } else {\n System.out.println(\"Oh no! You messed up the shot and got nothing.\");\n }\n } else {\n Deadwood.bank.payMoney(player, 1);\n if (diceRoll + player.getPracticeChips() >= scene.getBudget()) {\n shotsLeft--;\n System.out.println(\"Success! You completed the shot and got a credit and $1.\");\n player.addCredits(1);\n } else {\n System.out.println(\"Oh no! You messed up the shot. You still get $1.\");\n }\n }\n\n if (shotsLeft == 0)\n wrap();\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 onTileEntry(Tile tile) {}",
"private void refreshPlayerList() {\n List<MarketItem> items = new ArrayList<>();\n EntityRef player = localPlayer.getCharacterEntity();\n for (int i = 0; i < inventoryManager.getNumSlots(player); i++) {\n EntityRef entity = inventoryManager.getItemInSlot(player, i);\n\n if (entity.getParentPrefab() != null) {\n MarketItem item;\n\n if (entity.hasComponent(BlockItemComponent.class)) {\n String itemName = entity.getComponent(BlockItemComponent.class).blockFamily.getURI().toString();\n item = marketItemRegistry.get(itemName, 1);\n } else {\n item = marketItemRegistry.get(entity.getParentPrefab().getName(), 1);\n }\n\n items.add(item);\n }\n }\n\n tradingScreen.setPlayerItems(items);\n }",
"public void addPlayerToTheList(){\n \tif(!txtFieldPlayerName.getText().trim().isEmpty() && totPlayers <= maximumPlayersAllowed){\n\t\t\t\n \t\t//creates a new Player and adds the name that the user inputs from the textField\n\t\t\tplayer.add(new Player(txtFieldPlayerName.getText()));\n\t\t\n\t\t\tString playerName = \"\";\n\t\t\tint playerNr = 1;\n\t\t\t\n\t\t\tfor(Player p : player){\n\t\t\t\tplayerName += playerNr+\": \"+p.getName()+\"<br>\"; \n\t\t\t\tplayerNr++;\n\t\t\t}\n\t\t\t\n\t\t\ttotPlayers++;\n\t\t\tlblPlayerList.setText(\"<html><h2>PLAYER LIST</h2>\"+playerName+\"</html>\");\n\t\t\ttxtFieldPlayerName.setText(\"\");\n\t\t}\n\t\t\n\t\tif(totPlayers >= minimumPlayersAllowed){\n\t\t\tbtnPlay.setEnabled(true);\n\t\t}\n\t\t\n\t\tif(totPlayers >= maximumPlayersAllowed){\n\t\t\tbtnAddPlayer.setEnabled(false);\n\t\t\ttxtFieldPlayerName.setEnabled(false);\n\t\t}\n }",
"@SideOnly(Side.CLIENT)\n/* */ public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List, boolean par4) {\n/* 59 */ if (GuiScreen.isShiftKeyDown()) {\n/* 60 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome1.lore\"));\n/* 61 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome2.lore\"));\n/* 62 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome3.lore\"));\n/* 63 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 64 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome4.lore\"));\n/* 65 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome5.lore\"));\n/* 66 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 67 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome6.lore\"));\n/* 68 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome7.lore\"));\n/* 69 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome8.lore\"));\n/* 70 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 71 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome9.lore\"));\n/* 72 */ } else if (GuiScreen.isCtrlKeyDown()) {\n/* 73 */ par3List.add(StatCollector.translateToLocal(\"item.FRVisPerSecond.lore\"));\n/* 74 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRAerCost.lore\") + (AerCost / 100.0D * 10.0D));\n/* 75 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRTerraCost.lore\") + (TerraCost / 100.0D * 10.0D));\n/* 76 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRIgnisCost.lore\") + (IgnisCost / 100.0D * 10.0D));\n/* 77 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRPerditioCost.lore\") + (PerditioCost / 100.0D * 10.0D));\n/* */ } else {\n/* */ \n/* 80 */ par3List.add(StatCollector.translateToLocal(\"item.FRShiftTooltip.lore\"));\n/* 81 */ par3List.add(StatCollector.translateToLocal(\"item.FRViscostTooltip.lore\"));\n/* */ } \n/* */ \n/* 84 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* */ }",
"public void addTileOnBeginning(Tile tile);",
"@Override\n\tprotected void updateTiles() {\n\n\t\tfinal byte tileId = getPlanetType().mainTileId;\n\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\t// if (random.NextDouble() > 0.95f)\n\t\t\t// tiles[i] = 0;\n\t\t\t// else\n\t\t\ttiles[i] = tileId;\n\t\t}\n\t}",
"public void bonusStones() {\n\t\tint bonus = 1; // final pit player had when landing on empty pit\n\t\tbonus += board[12 - currentPit]; // (12 - currentPit) will get us pit directly across board\n\t\tboard[12 - currentPit] = 0;\n\t\tif (isPlayer1()) { // if player one, place bonus stones in pit 6\n\t\t\tboard[6] += bonus;\n\t\t} else { // if player 2, place stones in pit 13\n\t\t\tboard[13] += bonus;\n\t\t}\n\t}",
"private void updatePlayersWorth(){\n for (Player e : playerList) {\n e.setPlayerWorth(getTotalShareValue(e) + e.getFunds());\n }\n }",
"private void addWin(LeagueTableEntry entry) {\r\n\t\tentry.setWins(entry.getWins() + 1);\r\n\t\tentry.setPoints(entry.getPoints() + 3);\r\n\t}",
"private void calculeStatAdd() {\n resourceA = this.getContext().getGame().getPlayer(idPlayer).getInventory().getValueRessource(type);\n int win = resourceA - resourceB;\n int diff = (resourceB - resourceA) + value;\n this.getContext().getStats().incNbRessourceWinPlayers(idPlayer,type,win);\n this.getContext().getStats().incNbRessourceExtendMaxPlayers(idPlayer,type,diff);\n }",
"private void addCoinActionPerformed(ActionEvent evt) {\n\t\t//if the reels are nor spinning perform the the actio\n\t\tif (!isSpining) {\n\t\t\t//add 1 to the credit and update the labels and buttons\n\t\t\tobj.setCredit(obj.getCredit() + 1);\n\t\t\tupdateLabels();\n\t\t\tupdateDisabledButtons();\n\t\t}\n\t}",
"public void addCourse( double grade, double credits ){\r\n totalGradePoints += grade*credits ;\r\n numCredits += credits;\r\n }",
"@Override\n public void update(App_Risk_Game.src.interfaces.Observable observable) {\n List<String> territories = new ArrayList<>();\n Iterator iterator = ((Board)observable).getTiles().keySet().iterator();\n while (iterator.hasNext()){\n String name = (String) iterator.next();\n territories.add(name);\n }\n CardsCollection cardsCollection = new CardsCollection(territories, 5);\n List<Player> players = PlayerCollectionTest.players;\n CardsCollection.distributeCards(players);\n for (Player p:players\n ) {\n System.out.println(p.getName());\n\n System.out.println(p.getTerritories());\n }\n Turns.turns.setCurrentPlayerID(players.get(0).getId());\n Turns.turns.setCurrent_player(players.get(0).getName());\n }",
"public void credit(){\n\t\tSystem.out.println(\"hdfcbank credited\");\n\t\t\n\t}",
"public void grantTickets(){\n //45mins\n if (tempTime >= 10){\n addTicket();\n }\n tempTime = 0;\n }",
"private void rewardPlayer(Player player) {\n\t\tRandom number = new Random();\n\t\tint num = number.nextInt(100);\n\t\t\n\t\tif(num >= 80 && num < 90) {\n\t\t\tplayer.increaseAttacks();\n\t\t\tserver.addTextToLoggingWindow(\"Player (\" + player.getName() + \") got rewarded one attack\");\n\t\t\tserver.sendMessageToClient(player.getName(), \"@134@\" + \"0\" + \"@\");\n\t\t}\n\t\telse if(num >= 90 && num <= 100) {\n\t\t\tplayer.increaseSafeTP();\n\t\t\tserver.addTextToLoggingWindow(\"Player (\" + player.getName() + \") got rewarded one safe teleport\");\n\t\t\tserver.sendMessageToClient(player.getName(), \"@134@\" + \"1\" + \"@\");\n\t\t}\n\t}",
"void endcredits() {\n }",
"private void UpdateAdds() {\n Adds = (Level + CurrentHealth)/10;\n }",
"public void addPlayerToStats(Player player) {\n\t\tfindForPlayer(player);\n\t}",
"public synchronized void addPlayer(PlayerHandler player) {\n\n if (activePlayers < numMaxPlayers) {\n\n players[activePlayers] = player;\n System.out.println(player.getName() + \" added to game as player \" + (activePlayers + 1));\n activePlayers++;\n return;\n }\n\n System.out.println(\"This room (\" + this.toString() + \") is full\");\n }",
"public void addToUse(int card) {\r\n\t\tthis.toUse.add(card);\r\n\t}",
"public int hit() {\n //Add the new card to the players deck\n playerStack.add(cards[talonStack]);\n\n //Increment the score based on the new card\n playerScore += evaluateCardScore(playerScore, cards[talonStack].rank);\n\n //Increment the counter for the un-played deck\n talonStack++;\n\n //If the player gets a score above 21, the game is over\n if (playerScore > 21) {\n dealerTurn();\n\n\n if (playerCash <= 0) {\n restartGame();\n return -1;\n } else {\n return -1;\n }\n }\n //If the player hit blackjack, the dealer takes the turn.\n else if (playerScore == 21) {\n dealerTurn();\n\n //Tie\n if (dealerScore == 21) {\n playerCash += playerBet;\n return 0;\n }\n //Win\n else {\n playerCash += (playerBet * 2);\n return 1;\n }\n }\n\n return 2;\n }",
"@Override\n public int craftBonus() {\n\treturn 1;\n }",
"void collide() {\n for (Target t : this.helicopterpieces) {\n if (!t.isHelicopter && ((t.x == this.player.x && t.y == this.player.y)\n || (t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected--;\n t.isCollected = true;\n }\n if (t.isHelicopter && this.collected == 1\n && ((t.x == this.player.x && t.y == this.player.y) || (t.isHelicopter\n && this.collected == 1 && t.x == this.player2.x && t.y == this.player2.y))) {\n this.collected = 0;\n this.helicopter.isCollected = true;\n }\n }\n }",
"void addAttack(AttackObject newAttack) {\n if (canAddAttack(newAttack)) {\n attacksToAdd.add(newAttack);\n if(newAttack.isPlayerAttack()){\n playerAttackCount++;\n }\n }\n }",
"public void addRandoms() {\n //Add random boulders on tiles that aren't Lava\n int tileNumber;\n int selector;\n Tile t;\n String tileTexture;\n Random random = new Random();\n SquareVector playerPos = getPlayerEntity().getPosition();\n int tileCount = GameManager.get().getWorld().getTiles().size();\n AbstractWorld world = GameManager.get().getWorld();\n int randIndex;\n\n for (int i = 0; i < 20; i++) {\n //Get respective volcano tile (5 <= Lava tiles Index <= 8\n do {\n randIndex = random.nextInt(tileCount);\n t = world.getTile(randIndex);\n } while (t.getCoordinates().isCloseEnoughToBeTheSame(playerPos));\n\n tileTexture = t.getTextureName();\n tileNumber = Integer.parseInt(tileTexture.split(\"_\")[1]);\n\n selector = random.nextInt(2);\n if (tileNumber < 5 && tileNumber > 1 && selector == 1 && !t.hasParent()) {\n entities.add(new Rock(t, true));\n } else if (t != null && (tileNumber == 3 || tileNumber == 4) &&\n selector == 0 && !t.hasParent()) {\n entities.add(new VolcanoBurningTree(t, true));\n } else {\n i--;\n }\n }\n }",
"public void getTilePressed(View v){\n numpressed = numpressed + 1;\n if(numpressed>4){\n myTurn = true;\n showToast(\"Override: Your turn!\");\n }\n if(myTurn || is_debug){\n numpressed = 0;\n if(!MultiplayerManager.getInstance().enoughTimeBetweenCommands()){\n showToast(\"Please wait a second before issueing another command\");\n return;\n }\n int id = v.getId();\n String resource = v.getResources().getResourceEntryName(id);\n String resource_str = resource.replace(\"square_\", \"\");\n int tile = Integer.parseInt(resource_str);\n\n if(bombIntent){\n if(tile!=myTile && tile!=opponentTile && !bombs_location.contains(tile) && !powerup_location.contains(tile)){\n canPlaceBomb = false;\n placeBomb(tile, false);\n return;\n }else{\n showToast(\"Cant place there\");\n }\n }\n /**\n * check if tile is valid\n */\n if((tile==myTile+1 || tile==myTile-1 || tile==myTile+10 || tile==myTile+11 || tile == myTile+9 || tile==myTile-10 || tile ==myTile-11 || tile == myTile-9) && tile != opponentTile){\n MoveTileSelf(tile);\n checkPowerups(tile);\n }else{\n showToast(\"Can't move there imbecile\");\n }\n }else{\n showToast(\"Wait for your turn imbecile\");\n }\n }",
"public void addPlayer(Player p){\r\n this.players[PlayerFactory.nb_instances-1]=p;\r\n this.tiles[p.getX()+(p.getY()*this.width)]=p;\r\n }",
"protected final void hit() throws InsufficientCardsException {\n hand.add(deck.deal());\n update();\n }",
"@Override\n\tpublic void passedBy() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(250);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 250 dollars by landing on Bonus Square\");\n\n\t}",
"@Override\n\tpublic boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)\n\t{\n\t\tUnsaga.debug(\"アクチベートされてます\");\n\n\t\tTileEntityChestUnsaga var10 = (TileEntityChestUnsaga)par1World.getTileEntity(par2, par3, par4);\n\n\t\tif(var10 == null){\n\t\t\tUnsaga.debug(\"タイルエンチチーがとれない\");\n\t\t\treturn true;\n\t\t}\n\n\t\tif(var10.hasItemSet){\n\t\t\tchestFunc(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par8, par9);\n\t\t\treturn false;\n\t\t}\n\n\t\tif(!var10.getWorldObj().isRemote){\n\t\t\tUnsaga.debug(\"同期します\");\n\t\t\tint chestlevel = 0;\n\t\t\tif(!var10.hasSetChestLevel()){\n\t\t\t\tvar10.initChestLevel(par1World);\n\t\t\t}\n\t\t\tchestlevel = var10.getChestLevel();\n\t\t\tPacketSyncChest ps = new PacketSyncChest(new XYZPos(par2,par3,par4),chestlevel);\n\t\t\tUnsaga.packetPipeline.sendTo(ps, (EntityPlayerMP) par5EntityPlayer);\n\t\t\tUnsaga.debug(\"パケット送ります\");\n\t\t\tPacketGuiOpen pg = new PacketGuiOpen(Unsaga.guiNumber.chest,new XYZPos(par2,par3,par4));\n\t\t\tUnsaga.packetPipeline.sendToServer(pg);\n\t\t\t//PacketDispatcher.sendPacketToPlayer(PacketHandler.getChestSyncPacket(chestlevel, par2, par3, par4,false,var10.trapOccured,var10.unlocked,var10.defused,var10.magicLock,var10.hasItemSet), (Player) par5EntityPlayer);\n\t\t\t//PacketDispatcher.sendPacketToServer(PacketHandler.getChestGuiPacket(par2,par3,par4));\n\n\t\t}\n\t\tif(var10.getWorldObj().isRemote){\n\n\t\t}\n\n\n\t\t\n\t\t\n\t\t\n\t\t\n//\t\tboolean chestopen = var10.touchChest(par5EntityPlayer);\n//\n//\t\tif(chestopen){\n//\t\t\tvar10.setItemsToChest(par1World.rand);\n//\t\t\tchestFunc(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par8, par9);\n//\t\t}\n\t\treturn false;\n\t}",
"public void onCraftMatrixChanged(IInventory par1IInventory)\r\n\t {\r\n\t\t if (par1IInventory == this.tableInventory)\r\n\t\t {\r\n\t\t\t ItemStack itemstack = par1IInventory.getStackInSlot(0);\r\n\t\t\t ItemStack money = par1IInventory.getStackInSlot(1);\r\n\t\t\t int i;\r\n\t\t\t if(money != null && this.isMoney(money))\r\n\t\t\t {\r\n\t\t\t\t int point = (money.itemID == Item.emerald.itemID)? PrepaidEnchantment.EmeraldCost:(money.itemID == Item.ingotGold.itemID)? PrepaidEnchantment.GoldCost: (money.itemID == Item.diamond.itemID)? PrepaidEnchantment.DiamondCost:0;\r\n\t\t\t\t point *= money.stackSize;\r\n\t\t\t\t this.tileEntity.addCurrentMaxLevel(point);\r\n\t\t\t\t par1IInventory.setInventorySlotContents(1, null);\r\n\t\t\t }\r\n\r\n\t\t\t if (itemstack != null && itemstack.isItemEnchantable())\r\n\t\t\t {\r\n\t\t\t\t this.nameSeed = this.rand.nextLong();\r\n\r\n\t\t\t\t if (!this.worldPointer.isRemote)\r\n\t\t\t\t {\r\n\t\t\t\t\t i = 0;\r\n\t\t\t\t\t int j;\r\n\t\t\t\t\t this.Bonus = 0;\r\n\t\t\t\t\t for (j = -1; j <= 1; ++j)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t for (int k = -1; k <= 1; ++k)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t if ((j != 0 || k != 0) && this.worldPointer.isAirBlock(this.posX + k, this.posY, this.posZ + j) && this.worldPointer.isAirBlock(this.posX + k, this.posY + 1, this.posZ + j))\r\n\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY, posZ + j * 2);\r\n\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY + 1, posZ + j * 2);\r\n\r\n\t\t\t\t\t\t\t\t if (k != 0 && j != 0)\r\n\t\t\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY, posZ + j );\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k * 2, posY + 1, posZ + j );\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k, posY, posZ + j * 2);\r\n\t\t\t\t\t\t\t\t\t this.Bonus += ForgeHooks.getEnchantPower(worldPointer, posX + k, posY + 1, posZ + j * 2);\r\n\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t for (j = 0; j < 3; ++j)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t this.enchantLevels[j] = this.calcItemStackEnchantability(this.rand, j, this.tileEntity.getCurrentMaxLevel(), itemstack);\r\n\t\t\t\t\t }\r\n\r\n\t\t\t\t\t this.detectAndSendChanges();\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t for (i = 0; i < 3; ++i)\r\n\t\t\t\t {\r\n\t\t\t\t\t this.enchantLevels[i] = 0;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\t }",
"public void newPlayer() {\r\n\t\tthis.nbMonster ++;\r\n\t\tthis.nbPlayer ++;\r\n\t}",
"public void givePlayerPoints(int pointsToAdd) {\n this.points = this.points + pointsToAdd;\n }",
"@Override\n public void addInfo(CurrentPlayer currentPlayer) {\n godPower.addInfo(currentPlayer);\n }",
"@Override\n public void applyEffect(Player player) {\n\n player.add(mResourcesGains);\n\n }",
"public void credit(){\n\t\tSystem.out.println(\"hsbc --- credit\");\n\t}",
"public void increaseTurnCount()\n\t{\n\t\tturnNumber++;\n\t\tthis.currentPlayerID++;\n\t\tthis.currentPlayerID = this.currentPlayerID % this.playerList.size();\n\t}",
"@Override\n public void use(AbstractPlayer p, AbstractMonster m) {\n addToBot(new GainBlockAction(p,block));\n if (AbstractDungeon.player.hand.contains(this)){\n if (AbstractDungeon.player.hand.group.indexOf(this)-1 >= 0){\n addToBot(new RewindAction(AbstractDungeon.player.hand.group.get(AbstractDungeon.player.hand.group.indexOf(this)-1),AbstractDungeon.player.hand));\n }\n if (AbstractDungeon.player.hand.group.indexOf(this)+1 <= AbstractDungeon.player.hand.group.size()-1){\n addToBot(new RewindAction(AbstractDungeon.player.hand.group.get(AbstractDungeon.player.hand.group.indexOf(this)+1),AbstractDungeon.player.hand));\n }\n }\n }",
"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 }",
"public int getNumberOfCredits() {\n return numberOfCredits;\n }",
"@Override\r\n\t@SuppressWarnings(\"deprecation\")\r\n\tpublic void raiseEvent(Event e) {\r\n\t\tPlayer p = ((PlayerInteractEvent) e).getPlayer();\r\n\t\tPlayerStats stats = plugin.getStats(p);\r\n\t\tif (stats.subtractmoney(cost)) {\r\n\t\t\tif (!items.isEmpty()) {\r\n\t\t\t\tLinkedList<ItemStack> givenItems = new LinkedList<ItemStack>();\r\n\t\t\t\tfor (ItemStack item : items.getItemStacks()) {\r\n\t\t\t\t\tgivenItems.add(item);\r\n\t\t\t\t\tHashMap<Integer, ItemStack> failed = p.getInventory().addItem(item);\r\n\r\n\t\t\t\t\tif (failed != null && failed.size() > 0) {\r\n\t\t\t\t\t\t// the inventory may be full\r\n\t\t\t\t\t\tTribu.messagePlayer(p, (plugin.getLocale(\"Message.UnableToGiveYouThatItem\")),ChatColor.RED);\r\n\t\t\t\t\t\tstats.addMoney(cost);\r\n\t\t\t\t\t\tfor (ItemStack i : givenItems)\r\n\t\t\t\t\t\t\tp.getInventory().remove(i);\r\n\t\t\t\t\t\tgivenItems = null;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tp.updateInventory();\r\n\t\t\t\t// Alright\r\n\t\t\t\tTribu.messagePlayer(p,String.format(plugin.getLocale(\"Message.PurchaseSuccessfulMoney\"), String.valueOf(stats.getMoney())),ChatColor.GREEN);\r\n\t\t\t} else {\r\n\t\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.UnknownItem\"),ChatColor.RED);\r\n\t\t\t\tstats.addMoney(cost);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.YouDontHaveEnoughMoney\"),ChatColor.RED);\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void liftTravelBan(Player player, City city) {\n super.liftTravelBan(player, city);\n player.addPoints(getBonusPoints());\n }",
"@Override\n\tprotected void action() {\n\t\tif(Directory.profile.removeGold(cost)){\n\t\t\t//Increment player's power by 1\n\t\t\tDirectory.profile.getPlayer().incrementPower(1);\n\t\t\t\n\t\t\tcost = Directory.profile.getPlayer().getPower() * 10;\n\t\t\tsuper.setText(\"Upgrade Power: \" + cost + \" gold\"); \n\t\t}\n\t}",
"@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer player){\n\t return worldObj.getTileEntity(xCoord, yCoord, zCoord) != this ? false : player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64.0D;\n\t}",
"private void goldPhase() {\n System.out.println(\"In the gold collection phase\");\n GUI.getHelpText().setText(\"Gold Collection phase: income collected.\");\n for (int i = 0; i < 4; i++) {\n playerList[i].addGold(playerList[i].calculateIncome());\n final int j = i;\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n PlayerBoard.getInstance().updateGold(playerList[j]);\n PlayerBoard.getInstance().updateGoldIncomePerTurn(playerList[j]);\n }\n });\n }\n try { Thread.sleep(2000); } catch( InterruptedException e ){ return; }\n }",
"private void buyPlayer(FootballPlayer player, String playerName, int num) {\n\t\tint valid = game.addPlayer(playerName);\n\t\tif(valid==0) {\n\t\t\tplayerNameArray[num].setText(playerName);\n\t\t\timageArray[num].setIcon(MainGui.getShirt(player.getTeamName()));\n\t\t\tbuttonArray[num].setText(\"X\");\n\t\t\tlblBudgetText.setText(game.getCurrentUser().getBudget() + \" RGG\");\n\t\t\t\n\t\t} else if (valid==1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You have already selected this player for your team\");\n\t\t} else if (valid==-1) {\n\t\t\tJOptionPane.showMessageDialog(frame,\"You don´t have enough budget too buy \" + playerName);\n\t\t}\n\t}",
"public boolean hit() {\r\n add(deck.deal());\r\n return getHandValue() <= 21;\r\n }",
"@Override\n\tpublic void onAddToLocalList(Player player) {\n\t\tsuper.onAddToLocalList(player);\n\n\t\tif (phase == AbyssalSirePhase.SLEEPING || phase == AbyssalSirePhase.AWAKE) {\n\t\t\tgetEventHandler().addEvent(this, new CycleEvent<Entity>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void execute(CycleEventContainer<Entity> container) {\n\t\t\t\t\tcontainer.stop();\n\n\t\t\t\t\tif (phase == AbyssalSirePhase.SLEEPING) {\n\t\t\t\t\t\tsetIdleAnimation(4527);\n\t\t\t\t\t} else if (phase == AbyssalSirePhase.AWAKE) {\n\t\t\t\t\t\tsetIdleAnimation(4529);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void stop() {\n\n\t\t\t\t}\n\t\t\t}, 2);\n\t\t}\n\t}",
"@Override\n public void applyEffect(Battle battle, Cell cell, Account player, int activeTime) {\n /* if (activeTime != -1)\n return;\n ManaItemBuff manaItemBuff = new ManaItemBuff(player, 1);\n manaItemBuff.setTurnCounter(-5);\n manaItemBuff.castBuff();\n player.getOwnBuffs().add(manaItemBuff);*/\n }",
"private void doSummon(){\n AbstractPieceFactory apf = FactoryProducer.getFactory(tf.getActivePlayer().playerType());\n // check is null\n assert apf != null;\n // create a piece instance\n IPiece temp = apf.getPiece(PieceConstants.MINION, destination);\n // cast Ipiece to minions class\n newPiece = (Minion) temp;\n newPiece.healthProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n if (newValue.doubleValue() <= 0) {\n tf.removePiece(newPiece);\n tf.resetAbilityUsed();\n }\n if (oldValue.doubleValue() <= 0 && newValue.doubleValue() > 0) {\n tf.addPiece(newPiece);\n tf.resetAbilityUsed();\n }\n }\n });\n // set piece name\n newPiece.setPieceName(MinionName);\n // set piece health points\n startingHealth = newPiece.getHealth();\n // add piece to game\n tf.addPiece(newPiece);\n }",
"private boolean canAddRedTile() {\n\n\t\tif(isAllPiecesEaten(Game.getInstance().getCurrentPlayerColor())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private void recruitSpecialsPhase() {\n \n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tDiceGUI.getInstance().uncover();\n GUI.getDoneButton().setDisable(false);\n }\n });\n \n for (final Player p : playerList) {\n this.player = p;\n player.flipAllUp();\n ClickObserver.getInstance().setActivePlayer(p);\n\n ClickObserver.getInstance().setTerrainFlag(\"\");\n ClickObserver.getInstance().setClickedTerrain(player.getHexesOwned().get(0));\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n }\n });\n \n SpecialCharView.setCurrentPlayer(p);\n SpecialCharView.getSpecialButton().activate();\n SpecialCharView.getCharacterGrid().setVisible(false);\n doneClicked = false;\n ClickObserver.getInstance().setTerrainFlag(\"RecruitingSpecialCharacters\");\n\n pause();\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getHelpText().setText(player.getName() + \", Try Your Luck At Recruiting A Special Character!\");\n GUI.getRackGui().setOwner(player);\n }\n });\n\n while (isPaused) {\n while (!doneClicked) {\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n try { Thread.sleep(100); } catch( Exception e ){ return; }\n }\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n DiceGUI.getInstance().setFaceValue(0);\n SpecialCharView.getCharacterGrid().setVisible(false);\n Board.removeCovers();\n }\n });\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tDiceGUI.getInstance().cover();\n }\n });\n }",
"public void addPlayer(EntityPlayerMP player)\r\n {\r\n int var2 = (int)player.posX >> 4;\r\n int var3 = (int)player.posZ >> 4;\r\n player.managedPosX = player.posX;\r\n player.managedPosZ = player.posZ;\r\n\r\n for (int var4 = var2 - this.playerViewRadius; var4 <= var2 + this.playerViewRadius; ++var4)\r\n {\r\n for (int var5 = var3 - this.playerViewRadius; var5 <= var3 + this.playerViewRadius; ++var5)\r\n {\r\n this.getPlayerInstance(var4, var5, true).addPlayer(player);\r\n }\r\n }\r\n\r\n this.players.add(player);\r\n this.filterChunkLoadQueue(player);\r\n }",
"public void buyCargoUpgrades()\n {\n if(play_state.getMoney() >= cargo_upgrade_cost) {\n play_state.setMoney(play_state.getMoney() - cargo_upgrade_cost);\n cargo_upgrade_cost += 100;\n play_state.getDriller().addCapacity(5);\n }\n }",
"public boolean canAdd(Card c)\r\n {\r\n int val;\r\n int v;\r\n if(c.getSuit() != suit)\r\n return false;\r\n \r\n v = c.getValue();\r\n if(pile.isEmpty() && v == 12)\r\n return true;\r\n \r\n if(!pile.isEmpty())\r\n {\r\n card = pile.peek();\r\n val = card.getValue();\r\n if (val == 12)\r\n val = -1;\r\n if(v == (val+1))\r\n return true;\r\n }\r\n return false;\r\n }",
"private void updateTerritoriesHold(Player player) {\n getTerritories(player)\n .forEach(Territory::reduceCompetence);\n\n getTerritories(player).stream()\n .filter(Territory::isArmyTotalPowerUnderThreshold)\n .forEach(this::releaseTerritory);\n //Territory::eliminateThisWeakArmy);\n //activateEventsHandler();\n }",
"@Override\r\n\tpublic void landOnSquare(Player player) {\n\t\tplayer.deposit(bonus);\r\n\t\tGUIControl.refugeMessage(this,player,bonus);//prints a message to the user.\r\n\t\tGUIControl.updateBalance(player);\r\n\t}",
"public BankerTroop(int health, int creditsPerTile) {\n\t\tsuper(health);\n\t\tthis.credidsPerTile = creditsPerTile;\n\t}",
"@Test\r\n\tpublic void testCreditIncreased() {\r\n\t\tCoin coin = new Coin(5);\r\n\t\tTheCoinSlotListener csListener = new TheCoinSlotListener();\r\n\t\tcsListener.validCoinInserted(vend.getCoinSlot(), coin);\r\n\t\tassertEquals(csListener.getCurrentCredit(), 5);\t\t\r\n\t}"
] | [
"0.68790364",
"0.67378974",
"0.626681",
"0.6209249",
"0.6134309",
"0.6028722",
"0.5903999",
"0.5852908",
"0.58465785",
"0.58342445",
"0.5810326",
"0.5794777",
"0.57749647",
"0.5773041",
"0.57675475",
"0.5739764",
"0.5736466",
"0.57301944",
"0.57239175",
"0.5689891",
"0.5673686",
"0.5664971",
"0.5659009",
"0.56345624",
"0.5630317",
"0.56035703",
"0.55928266",
"0.5587496",
"0.5578717",
"0.55646497",
"0.5546849",
"0.55256593",
"0.55223584",
"0.5515527",
"0.55149233",
"0.5509585",
"0.55016106",
"0.55007094",
"0.54995036",
"0.54847497",
"0.5477906",
"0.5472623",
"0.5464019",
"0.5456157",
"0.5455009",
"0.54549915",
"0.5453154",
"0.5449535",
"0.5442967",
"0.5440646",
"0.5439571",
"0.5435589",
"0.5434148",
"0.54336035",
"0.5433575",
"0.5430582",
"0.54197884",
"0.54185283",
"0.5417571",
"0.5415828",
"0.5415345",
"0.54133785",
"0.54125154",
"0.5412014",
"0.54089266",
"0.54081225",
"0.53998846",
"0.5399658",
"0.5398094",
"0.5396377",
"0.539187",
"0.5387635",
"0.53848135",
"0.5380284",
"0.5377361",
"0.53762275",
"0.53746694",
"0.5358584",
"0.5356183",
"0.5338071",
"0.5333807",
"0.5327892",
"0.5326688",
"0.5325928",
"0.5323342",
"0.5318276",
"0.53165543",
"0.53163534",
"0.53154445",
"0.5306684",
"0.5299257",
"0.52991897",
"0.5295464",
"0.52948785",
"0.5287007",
"0.52846205",
"0.52841985",
"0.5283319",
"0.5282884",
"0.52810216"
] | 0.695411 | 0 |
hello world without aop | @Test
public void test() throws Exception {
ApplicationContext applicationContext = new ClassPathXmlApplicationContext("tinyioc.xml");
HelloWorldService helloWorldService = (HelloWorldService) applicationContext.getBean("helloWorldService");
helloWorldService.helloWorld();
//hello world with aop
//1.设置被代理对象
AdvisedSupport advisedSupport = new AdvisedSupport();
TargetSource targetSource = new TargetSource( HelloWorldService.class,helloWorldService);
advisedSupport.setTargetSource(targetSource);
//2.设置拦截器(advice)
TimerInterceptor timerInterceptor = new TimerInterceptor();
advisedSupport.setMethodInterceptor(timerInterceptor);
//3.创建代理(proxy)
JdkDynamicAopProxy jdkDynamicAopProxy = new JdkDynamicAopProxy(advisedSupport);
HelloWorldService helloWorldServiceProxy = (HelloWorldService) jdkDynamicAopProxy.getProxy();
//4.基于AOP的调用
helloWorldServiceProxy.helloWorld();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n\t\thello();\n\t}",
"@Override\r\n\tpublic void hello() {\n\t\tSystem.out.println(\"in Hello\");\r\n\t}",
"void hello();",
"void hello();",
"void hello();",
"static void sayHello() {\r\n System.out.println(\"Hello World\");\r\n }",
"public static void main(String[] args){\n System.out.println(\"hello world\");\n }",
"public static void main(String[] args) {\n System.out.println(\"HelloWorld!\");\n }",
"static void sayHello() {\n\t\tSystem.out.println(\"Hello!\");\n\t}",
"public static void main(String[] args) {\n\t\t\n\t HelloWorld hw = new HelloWorld();\n\t\tSystem.out.println(hw.sayHello());\n\n\t}",
"public void sendeHello();",
"@Override\r\n\tpublic void simpleOperation() {\n\t\tSystem.out.println(\"I'm building house\");\r\n\r\n\t}",
"public static void sayHello() {\r\n System.out.println(\"Hello\");\r\n }",
"@Override\r\n\tpublic void hello() {\n\t\tSystem.out.println(\"HELLO SPRING\");\r\n\t}",
"@Test\t\n\tpublic void testMain() {\n\n\t\tSystem.out.println(\"hello\");\n\t}",
"public static void main(String[] args) {\n\n\t\tSystem.out.println(\"helloo muzz\");\n\t}",
"public static void sayHello() {\n System.out.println(\"Hello!\");\n }",
"public static void main(String[] args) {\n\t\tHelloWorld hw = new HelloWorld();\r\n\t\thw.sayHello();\r\n\t}",
"public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tApplicationContext ctx=new ClassPathXmlApplicationContext(\"AopExampleBean.xml\");\n\t\t//ApplicationContext ctx=new ClassPathXmlApplicationContext(\"AopExample.xml\");\n\t\tMyMathImpl mi=(MyMathImpl)ctx.getBean(\"myMathImpl\");\n\t\tmi.add(7,9);\n\t\tmi.sub(5, 2);\n\t\tmi.div(6, 0);\n\t}",
"public void Practice1(){\n System.out.println(\"Hello\");\n }",
"public static void main(String[] args) \r\n\t{\n\t\tSystem.out.println (\"hello there\");\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tHelloService helloService=(String firstname, String lastname) -> \r\n\t\t{ String hello=\"Hello \" + firstname + \" \" + lastname; return hello; };\r\n\t\tSystem.out.println(helloService.hello(args[0], args[1]));\r\n\t\t \r\n\r\n\t\t \r\n\t}",
"public static void main(String []args) {\r\n System.out.println(\"Hello World\"); // prints Hello World\r\n }",
"public default void doStuff() {\r\n System.out.println(\"Hello world\");\r\n }",
"public static void main(String[] args)\n\t{\n\t\t\n\t\tHello();\n\t\tHello();\n\t\tHello();\n\t\tHello();\n\t\tHello(7);\n\t\tHello(4, 7);\t\n\t\tHello(true);\n\t\tHello(false);\n\t}",
"public static void main(String[] args) {\n new HelloGreeter().hello();\n\n try {\n // WorldGreeterBase.world() is inaccessible to TestClass.\n new WorldGreeter().world();\n throw new RuntimeException();\n } catch (IllegalAccessError e) {\n System.out.println(\" world!\");\n }\n }",
"void greet(String name) {\n\t\tSystem.out.println(\"Hello \"+name);\n\t}",
"public static void main (String [] args){\n System.out.println(\"Hello, Word\");\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"spring aop\");\n\t\t\n\t\tApplicationContext ac = new ClassPathXmlApplicationContext(\"beans.xml\");\n\t\t\n\t\tAppService app = (AppService) ac.getBean(\"appService\");\n\t\t\n\t\tapp.playComedyShow();\n\t\tapp.playConcert();\n\t\tapp.runAmusementPark();\n\t}",
"@Override\r\n\tpublic void sayhello() {\n\t\tSystem.out.println(\"say 22222222...\");\r\n\t}",
"private void Nice(){\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello\");\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"hello this is only the test\");\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello Beautiful World\");\n\n\t}",
"@Test\r\n\tpublic void testPrintHelloWorld() {\r\n \r\n\t\tAssert.assertEquals(App.getHelloWorld(), \"Hello World\");\r\n \r\n\t}",
"public static void main(String[] args) {\n\n System.out.println(\"Hello world!!\");\n }",
"public static void main(String[] args) {\n\t\ttestStong();\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello the Cow\");\n\t}",
"public static void main (String args[]) {\n System.out.println (\"Hello, World!\");\n }",
"public void haha(){\n System.out.println(\"thavasi\");\n }",
"public void sayHello(String name){\r\n System.out.println(\"Hello \" + name);\r\n }",
"public static void main(String[] args) {\r\n System.out.println(\"Hello World!\");\r\n }",
"public static void main(String[] args) {\n System.out.println(\"Hello World!\");\n }",
"public void sampleOperation() {\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello Avinash\");\r\n\t}",
"public static void main(String[] args)\n {\n System.out.println(\"Hello World\");\n\n // System.out.println(\"Hello World\");\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"This is devops\");\n\t}",
"public static void main(String[] args) {\n\t\tsample obj = new sample() {\n\t\t\t@Override\n\t\t\tvoid cat() {\n\t\t\t\tSystem.out.println(\"mew mew\");\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t};\n\t\tobj.cat();\n\t}",
"public static void main(String []args){\n\t\tSystem.out.println(\"Hello,\");\n\t\tSystem.out.println(\"World!\");\n\t}",
"public static void main(String[] a){\n\t\tSystem.out.println(\"Fullstack web development training!!\");\n\t}",
"public void sayHelloWorld() {\n LOGGER.info(\"{}\", getMessage(null));\n }",
"public static void main(String[] args) {\n\t\tMethodCall mc = new MethodCall();\n\t\tmc.hey(2);\n\t}",
"public static void main(String[] args) {\r\n\t\tSystem.out.println(\"Hi\");\r\n\t}",
"public static void main(String[] args) throws Exception{\n\t\tProperties properties = System.getProperties();\r\n\t\t//System.out.println(System.lineSeparator());\r\n\t\tSystem.getProperties().put(\"sun.misc.ProxyGenerator.saveGeneratedFiles\", true);\r\n\t\t/*Set<Entry<Object,Object>> entrySet = properties.entrySet();\r\n\t\tfor (Entry<Object, Object> entry : entrySet) {\r\n\t\t\tSystem.out.println(entry.getKey()+\":\"+entry.getValue());\r\n\t\t}*/\r\n\t\t/*HelloProxy hp = new HelloProxy();\r\n\t\tHelloService he = (HelloService) hp.bind(new HelloServiceImpl());\r\n\t\the.sayHello(\"郑金磊\");*/\r\n\t\tClass proxyClazz = Proxy.getProxyClass(HelloService.class.getClassLoader(), HelloService.class);\r\n\t\tConstructor constructor = proxyClazz.getConstructor(InvocationHandler.class);\r\n\t\tHelloService proxy = (HelloService) constructor.newInstance(new HelloProxy(new HelloServiceImpl()));\r\n\t\tproxy.sayHello(\"老狼\");\r\n\t}",
"public static void main(String[] args) {\n System.out.println(\"Hello World! :)\");\n }",
"public String sayHello(String name);",
"public static void main(String[] args) {\n\t\tfirstHalf(\"helloworld\");\n\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello Orange Forge\");\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tHelloWorldTeam.sarah();\n\n\t}",
"public void test(){//no input no output\n System.out.println(\"test method\");\n\n }",
"@Override\n\tpublic String sayHello(String name) {\n\t\treturn \"hello dubbo,hello \" + name;\n\t}",
"public void sayHelloToMe() {\n \n System.out.println(\"Hello to you\");\n }",
"public static void main(String[] args) {\n String text = hasNoArgs(args) ? \"World!\" : args[0];\n System.out.println(String.format(\"Hello, %s!\", text));\n }",
"void service() {\n System.out.println(\"Doing some work\");\n }",
"public void myapp() {\n\n\n }",
"public static void main(String[] args) {\n System.out.println(\"Hello, world!\");\n }",
"public static void hi() {\n System.out.println(\"Hi\");\n }",
"public static void main(String args[]) {\n Greeting.ToyApp toyApp = DaggerGreeting_ToyComponent.builder().build().toyApp();\n toyApp.greeting.sayHello();\n }",
"public static void main(String[] args) { // main method\n System.out.println(\"hello World\") ; // print statement gives an output in Console\n\n\n }",
"@Test\n /***\n * 传统方式开发\n */\n public void demo1(){\n\n UserServiceImpl userService = new UserServiceImpl();\n userService.setName(\"王\");\n userService.sayHello();\n }",
"public static void main(String[] args) {\n\t\t\n\t\tMyClass02 m2 = new MyClass02(\"홍길동\");\n\t\t\n\t\tm2.hello();\n\n\t}",
"public static void main(String[] args) {\n\t\tHelloWorld.init();\n\t}",
"void test()\n {\n System.out.println(\"ok\");\n }",
"public static void main(String[] args) {\n example();\n }",
"public interface HelloOperations \n{\n String echoString (String mesg);\n}",
"public static void main(String[] args) {\n System.out.println(\"Hello, World\");\n }",
"public static void main(String[] args) {\n\n SpringApplication springApplication = new SpringApplication(AopTestRunner.class);\n springApplication.setWebApplicationType(WebApplicationType.NONE);\n springApplication.run(AopTestRunner.class, args);\n\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Just testing\");\r\n\t\t//lisää kommenttia\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\r\n // action\r\n // - nothing\r\n\r\n // check\r\n // - nothing\r\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello\");\n\t\tSystem.out.println(\"Atiqul Islam\");\n\t}",
"static public void greeting() {\n\tSystem.out.println(\"class Test1\");\n\t}",
"@Override\n\tpublic void sayHello() {\n\t\tSystem.out.println(\"Hello^=^\");\n\t}",
"private static String testSayHello(Greeter greeter)\n {\n return greeter.sayHello();\n }",
"public static void main(String[] args) {\n\t\tMessagebeanKo mb = new MessagebeanKo();\n\t\tmb.sayHello(\"spring\");\n\t}",
"public void test( ){\n\t\t\tSystem.out.println(\"test method\"); //no input, no output\n\t\t}",
"public void Main(){\n }",
"public static void main(String[] args) {\nSystem.out.println(\"hello this is my first program\");\r\n\t}",
"public static void main(String args[]){\n\tSystem.out.println(\"hi hello hi.\");\n}",
"public void Greet(String name)\n\t\t{\n\t\t\tSystem.out.println(\"Hello \", name);\t\t\t\n\t\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(ispalli(\"hello is our mam came here\"));\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(add(10, 20));\n\t}",
"public static void main(String[] args) {\n\t\tnew Platypus().sayHi();\n\t}",
"public static void main(String [] args)\n {\n System.out.println(\"Programming is great fun!\");\n }",
"public static void main(String[] args) {\n imprimir(\"hola\");\r\n }",
"@GetMapping(\"/hello\")\n\tpublic String hello() {\n\t\treturn \"Hello Everyone!!!\";\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Welcome to Hello world\");\r\n\t\tSystem.out.println(\"Welcome to Hello world NEW\");\r\n\t}",
"public interface HelloOperations \r\n{\r\n String sayHello ();\r\n void shutdown ();\r\n}",
"public static void sayHello(String name) {\n System.out.println(\"Hello! \" + name);\n }",
"public static void main(String[] args) {\n System.out.println(\"ok\");\n }"
] | [
"0.6493886",
"0.6489275",
"0.6477313",
"0.6477313",
"0.6477313",
"0.6467294",
"0.6372151",
"0.6291044",
"0.6280902",
"0.6275441",
"0.62654907",
"0.6255156",
"0.6252272",
"0.6236052",
"0.6229554",
"0.6176392",
"0.6168815",
"0.6146425",
"0.61461574",
"0.6139534",
"0.6139198",
"0.6110509",
"0.60850567",
"0.6081506",
"0.60814106",
"0.60549575",
"0.6053085",
"0.6050148",
"0.60352325",
"0.6017965",
"0.59846383",
"0.5960417",
"0.5959254",
"0.59323657",
"0.59249157",
"0.5914414",
"0.59018517",
"0.5878392",
"0.5877367",
"0.5872283",
"0.58687943",
"0.58644116",
"0.58552706",
"0.58458406",
"0.58441615",
"0.58364034",
"0.5835222",
"0.5830961",
"0.582156",
"0.5819722",
"0.58159804",
"0.58100915",
"0.5806336",
"0.5803902",
"0.58026135",
"0.5800948",
"0.5785654",
"0.5782898",
"0.57778585",
"0.5754129",
"0.57524115",
"0.57445616",
"0.5744035",
"0.5737775",
"0.5736288",
"0.5728822",
"0.5708493",
"0.569362",
"0.5691302",
"0.56895024",
"0.56788695",
"0.5677367",
"0.56763965",
"0.5674751",
"0.5674632",
"0.56696963",
"0.5662061",
"0.56600004",
"0.56498575",
"0.5649168",
"0.5646381",
"0.5645425",
"0.5645064",
"0.5643231",
"0.5635459",
"0.5634292",
"0.5628958",
"0.5627146",
"0.56261915",
"0.56197333",
"0.56168634",
"0.5614485",
"0.56125015",
"0.56043786",
"0.56027114",
"0.5602229",
"0.5597099",
"0.5592292",
"0.5589888",
"0.5586656"
] | 0.631388 | 7 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
Intent intent = new Intent();
intent.putExtra("actid", actid);
intent.setClass(Activity_detail.this, BaoMing.class);
startActivity(intent);
} | {
"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 |
Time: O(n + r + b), Space: O(n + r + b), Faster: 72.68% | public int[] shortestAlternatingPaths(int n, int[][] redEdges, int[][] blueEdges) {
List<Integer>[][] next = new List[2][n];
for (int i = 0; i < 2; i++) {
for (int j = 0; j < n; j++) {
next[i][j] = new ArrayList<>();
}
}
for (int[] edge : redEdges) {
next[0][edge[0]].add(edge[1]);
}
for (int[] edge : blueEdges) {
next[1][edge[0]].add(edge[1]);
}
int[][] dist = new int[2][n]; // 两种类型的颜色最短路径的长度
for (int i = 0; i < 2; i++) {
Arrays.fill(dist[i], Integer.MAX_VALUE);
}
Queue<int[]> queue = new ArrayDeque<>();
dist[0][0] = 0;
dist[1][0] = 0;
queue.offer(new int[]{0, 0});
queue.offer(new int[]{0, 1});
while (!queue.isEmpty()) {
int[] pair = queue.poll();
int x = pair[0], t = pair[1];
for (int y : next[1 - t][x]) {
if (dist[1 - t][y] != Integer.MAX_VALUE) {
continue;
}
dist[1 - t][y] = dist[t][x] + 1;
queue.offer(new int[]{y, 1 - t});
}
}
int[] answer = new int[n];
for (int i = 0; i < n; i++) {
answer[i] = Math.min(dist[0][i], dist[1][i]);
if (answer[i] == Integer.MAX_VALUE) {
answer[i] = -1;
}
}
return answer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }",
"private void rmerge(int[] arr, int a, int l, int r) {\n\t\tfor (int i = 0; i < l; i += r) {\n\t\t\t// select smallest arr[p0+n*r]\n\t\t\tint q = i;\n\t\t\tfor (int j = i + r; j < l; j += r) {\n\t\t\t\tif (this.reads.compare(arr[a + q], arr[a + j]) > 0) {\n\t\t\t\t\tq = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (q != i) {\n\t\t\t\taswap(arr, a + i, a + q, r); // swap it with current position\n\t\t\t}\n\t\t\tif (i != 0) {\n\t\t\t\taswap(arr, a + l, a + i, r); // swap current position with buffer\n\t\t\t\tbackmerge(arr, a + (l + r - 1), r, a + (i - 1), r); // buffer :merge: arr[i-r..i) -> arr[i-r..i+r)\n\t\t\t}\n\t\t}\n\t}",
"public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }",
"public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O(1)\r\n return arreglo; // O(1)\r\n }\r\n for(int i=n-1;i<arreglo.length;i=i+n){ // O(n)\r\n for (int j=i;j>=i-(i/n);j--){ // O(1)\r\n arreglo[j]=1+(i-j); // O(1)\r\n }\r\n }\r\n return arreglo; // O(1)\r\n}",
"public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }",
"public int R_M(){\n\t\tBigInteger nminus1=n.subtract(BigInteger.ONE);\n\t\tdo{\n\t\t\tif(nminus1.mod(two.pow(a)).equals(BigInteger.ZERO)){\n\t\t\t\ttable.add(a);\n\t\t\t}\n\t\t\titerator++;\n\t\t\ta++;\n\t\t}while(!(two.pow(a).compareTo(n)>0));\n\t\t\n\t\ta=table.get(table.size()-1);\n\t\tBigInteger m=nminus1.divide(two.pow(a));\n\t\tint wlen=n.bitLength();\n\t\tBigInteger b;\n\t\tBigInteger z;\n\t\tfor(int i=0;i<iterations;i++){\n\t\t\tint straznik=0;\n\t\t\tint straznik1=0;\n\t\t\tdo{\n\t\t\t b=new BigInteger(wlen,new Random());\n\t\t\t}while(!(b.compareTo(BigInteger.ONE)>0) && !(b.compareTo(nminus1)<0));\n\t\t\tz=b.modPow(m, n);\n\t\t\tif(z.equals(BigInteger.ONE) || z.equals(nminus1)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int j=0;j<a-1;j++){\n\t\t\t\t\tz=z.pow(2).mod(n);\n\t\t\t\t\tif(z.equals(nminus1)){\n\t\t\t\t\t\tstraznik++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(z.equals(BigInteger.ONE)){\n\t\t\t\t\t\tstraznik1++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(straznik==1){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(straznik1==1){\n\t\t\t\t\tgetComposite();\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t\t}\n\t\t\tgetComposite();\n\t\t\treturn 0;\n\t\t}\n\t\tgetProbablyPrime();\n\t\treturn 1;\n\t\t}",
"private static int f(int n, int complete, int other, int[] arr) {\n if(n<=0)\n return 0;\n int res=0;\n ArrayList<Integer>list=new ArrayList<Integer>();\n for(int a:arr)\n if(a>0)\n list.add(a);\n int brr[]=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n while(brr.length!=0){\n int index=0;\n for(int i=1;i<brr.length;i++)\n if(brr[index]<brr[i])\n index=i;\n for(int i=0;i<brr.length;i++){\n if(index==i)\n brr[i]-=complete;\n else\n brr[i]-=other;\n }\n list=new ArrayList<Integer>();\n for(int a:brr)\n if(a>0)\n list.add(a);\n brr=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n res++;\n }\n return res;\n }",
"int query(int l, int r) {\n l += n;\n r += n;\n int resl = identity;\n int resr = identity;\n while (l < r) {\n if ((l & 1) > 0) resl = combine(resl, st[l++]);\n if ((r & 1) > 0) resr = combine(st[--r], resr);\n l /= 2;\n r /= 2;\n }\n return combine(resl, resr);\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int T = sc.nextInt();\n for(int i = 0 ; i < T; i++) {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n PriorityQueue<Integer> queue = new PriorityQueue<Integer>();\n int[][] m = new int[n][n];\n //n^2 * log(n)\n for(int row = 0; row < n; row++) {\n for(int col = 0; col < n; col++) {\n if(row == 0 && col == 0 && n != 1) {\n continue;\n }else if(row == 0) {\n m[row][col] = m[row][col - 1] + a;\n }else if(col == 0) {\n m[row][col] = m[row-1][col] + b;\n }else {\n m[row][col] = m[row-1][col-1] + a + b;\n }\n\n if(row + col == (n -1)) {\n pool.add(m[row][col]); //log(n)\n }\n }\n }\n //O(n*log(n))\n for (Integer item:pool) {\n queue.add(item); //O(logn)\n }\n while(!queue.isEmpty()) {\n System.out.print(queue.poll() + \" \"); //O(1)\n }\n System.out.println();\n queue.clear();\n pool.clear();\n }\n }",
"void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }",
"public static double binSearchT(int s, Integer[] a){\n Random rand = new Random();\n int searchVar;\n Stopwatch timer = new Stopwatch();\n Arrays.sort(a);\n for (int i = 0; i < s; i++){\n searchVar = (int)(rand.nextDouble()*a.length);\n Arrays.binarySearch(a, searchVar);\n }\n return timer.elapsedTime(); // the method returns the elapsed time\n }",
"private int rob(int[] num, int lo, int hi) {\r\n int include = 0, exclude = 0;\r\n for (int j = lo; j <= hi; j++) {\r\n int i = include, e = exclude;\r\n include = e + num[j];\r\n exclude = Math.max(e, i);\r\n }\r\n return Math.max(include, exclude);\r\n}",
"public static int example2(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j += 2) // note the increment of 2 // O(1)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Once Again, we have a (for) loop and it runs (n) times and this\r\n\t\t * for loop dominates the runtime.So this is linear time and the answer is O(n).\r\n\t\t * \r\n\t\t */\r\n\t}",
"public static void bfs(int a, int b) {\n\t\t\r\n\t\tQueue<Node> q = new LinkedList<>();\r\n\t\t\r\n\t\tq.add(new Node(a,b));\r\n\t\t\r\n\t\twhile(!q.isEmpty()) {\r\n\t\t\t\r\n\t\t\tNode n = q.remove();\r\n\t\t\t\r\n\t\t\tint x = n.x;\r\n\t\t\tint y = n.y;\r\n\t\t\t\r\n\t\t\tif(x+1 <= N && map[x+1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x+1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x+1,y));\r\n\t\t\t\t\tvisited[x+1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(x-1 > 0 && map[x-1][y] > map[x][y]) {\r\n\t\t\t\tif(visited[x-1][y] != 1) {\r\n\t\t\t\t\tq.add(new Node(x-1,y));\r\n\t\t\t\t\tvisited[x-1][y] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y-1 > 0 && map[x][y-1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y-1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y-1));\r\n\t\t\t\t\tvisited[x][y-1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(y+1 <=N && map[x][y+1] > map[x][y]) {\r\n\t\t\t\tif(visited[x][y+1] != 1) {\r\n\t\t\t\t\tq.add(new Node(x,y+1));\r\n\t\t\t\t\tvisited[x][y+1] = cnt;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"static long nPolyNTime(int[] n) {\n int temp = n.length;\n long sum = 0;\n if(n == null || n.length == 0) return -1;\n for(int i = 0; i < n.length; ++i) {\n while(temp --> 0) {\n for(int j = 0; j < n.length; ++j) {\n sum += n[i] + n[j];\n }\n }\n }\n return sum;\n }",
"public static int example4(int[] arr) { // O(1)\r\n\t\tint n = arr.length, prefix = 0, total = 0; // O(1), O(1), (1)\r\n\t\tfor (int j = 0; j < n; j++) { // loop from 0 to n-1 // O(n)\r\n\t\t\tprefix += arr[j];\r\n\t\t\ttotal += prefix;\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: The method contains a (for) loop and it runs (n) times.This loop\r\n\t\t * dominates the runtime.We always aim for the worse-case and maximum time. The\r\n\t\t * answer is it is linear time of O(n) notation.\r\n\t\t * \r\n\t\t */\r\n\t}",
"static void Merge(int[] A, int p, int q, int r) {\n\t\tint ls = q - p + 1;\n\t\tint rs = r - q;\n\t\tint[] B = new int[ls+rs];\n\t\tfor (int i = p; i <= r; i++){\n\t\t\tB[i - p] = A[i];\n\t\t}\n\t\tint i = 0;\n\t\tint j = ls;\n\t\tfor (int k = p; k <= r; k++) {\n\t\t\tif ((j >=(ls+rs)) || ((i < ls) && (B[i] <= B[j])))\n\t\t\t\tA[k] = B[i++];\n\t\t\telse\n\t\t\t\tA[k] = B[j++];\n\t\t}\n\t\treturn;\n\t}",
"public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }",
"public static int rob(int[] nums) {\n /*int n=nums.length;\n int[] dp = new int[n];\n if(nums.length==1)\n return nums[0];\n dp[0]=nums[0];\n dp[1]=Math.max(nums[0],nums[1]);\n for(int i=2;i<n;i++)\n dp[i]=Math.max(dp[i-1],dp[i-2]+nums[i]);\n System.out.println(Arrays.toString(dp));\n return dp[n-1];*/\n int n= nums.length;\n int[] dp = new int[n+1];\n dp[0]=0;\n dp[1]=nums[0];\n for(int i=2;i<=n;i++){\n dp[i]=Math.max(dp[i-2]+nums[i-1],dp[i-1]);\n }\n\n return dp[n];\n }",
"void solve() throws IOException {\n int[] nk = ril(2);\n int n = nk[0];\n int k = nk[1];\n int[] p = ril(n);\n int[] b = ril(k);\n for (int i = 0; i < n; i++) p[i]--;\n for (int i = 0; i < k; i++) b[i]--;\n\n int[] numToIdx = new int[n];\n for (int i = 0; i < n; i++) numToIdx[p[i]] = i;\n\n boolean[] remove = new boolean[n];\n Arrays.fill(remove, true);\n for (int bi : b) remove[bi] = false;\n List<Integer> toRemove = new ArrayList<>(n - k);\n for (int i = 0; i < n; i++) if (remove[i]) toRemove.add(i);\n Collections.sort(toRemove);\n\n int[] prevSmaller = new int[n];\n prevSmaller[0] = -1;\n int prevIdx = remove[p[0]] ? -1 : 0;\n for (int i = 1; i < n; i++) {\n int j = prevIdx;\n while (j != -1 && p[i] < p[j]) j = prevSmaller[j];\n prevSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n int[] nextSmaller = new int[n];\n nextSmaller[n-1] = n;\n prevIdx = remove[p[n-1]] ? n : n-1;\n for (int i = n-2; i >= 0; i--) {\n int j = prevIdx;\n while (j != n && p[i] < p[j]) j = nextSmaller[j];\n nextSmaller[i] = j;\n if (!remove[p[i]]) prevIdx = i;\n }\n\n int[] init = new int[n];\n Arrays.fill(init, 1);\n SegmentTree st = new SegmentTree(init);\n long ans = 0;\n for (int x : toRemove) {\n int idx = numToIdx[x];\n int l = prevSmaller[idx] + 1;\n int r = nextSmaller[idx] - 1;\n ans += st.query(l, r+1);\n st.modify(idx, 0);\n }\n pw.println(ans);\n }",
"public static void main(String[] args) {\n int l1=1000, l2=1000;\n int[] a1=new int[l1];\n int[] a2=new int[l2];\n int[] combine = new int[l1+l2];\n\n Random r = new Random();\n for (int i=0; i<a1.length; ++i){\n a1[i]=r.nextInt(a1.length*3);\n combine[i]=a1[i];\n }\n\n for (int i=0; i<a2.length; ++i){\n a2[i]=r.nextInt(a2.length*3);\n combine[l1+i]=a2[i];\n }\n\n Arrays.sort(a1);\n Arrays.sort(a2);\n Arrays.sort(combine);\n\n cnt=0;\n int m = findByRank(a1, 0, a1.length, a2, 0, a2.length, (a1.length+a2.length)/2);\n int m2 = combine[combine.length/2-1];\n\n System.out.printf(\"m=%d, m2=%d, cnt=%d\", m, m2, cnt);\n\n\n\n }",
"protected int sumIterative(int a, int b){\n int result = a;\n while (b != 0){\n if (b > 0){\n result++;\n b--;\n } else {\n result--;\n b++;\n }\n }\n return result;\n }",
"public int robBetter(int[] nums) {\n int prev = 0, pprev = 0;\n for (int n : nums) {\n int c = Math.max (prev, pprev + n);\n pprev = prev;\n prev = c;\n }\n return prev;\n }",
"static long countTriplets(List<Long> arr, long r) {\n long result = 0L;\n long size = arr.size();\n\n ArrayList<long[]> duoList = new ArrayList<>();\n\n // triplet 이 될 수 있는 duo를 선발\n for (int i = 0; i < (size - 1); i++) {\n long firstItem = arr.get(i);\n\n for (int j = i + 1; j < size; j++) {\n long secondItem = arr.get(j);\n if (j >= (size - 1)) continue;\n if (secondItem / (float) firstItem == r) {\n long[] tripletAble = {i, j};\n // System.out.println(\"tripletAble : \" + Arrays.toString(tripletAble));\n if (duoList.contains(tripletAble)) {\n continue;\n } else {\n duoList.add(tripletAble);\n }\n }\n }\n }\n\n // duo인 int[] 의 두 번째 item (int[1]) 의 다음 index부터 탐색해서\n // 해당 수가 triplet이 될 수 있다면 result + 1\n // 판단 기준은 thirdItem / secondItem 이 r이 되는 경우\n int listSize = duoList.size();\n for (int k = 0; k < listSize; k++) {\n long[] targetArr = duoList.get(k);\n long secondIdx = targetArr[1];\n for (int l = (int) secondIdx + 1; l < size; l++) {\n\n long secondItem = arr.get((int) targetArr[1]);\n long thirdItem = arr.get(l);\n\n if (thirdItem / (float) secondItem == r) {\n result += 1L;\n }\n }\n }\n\n return result;\n }",
"public int[] shortestAlternatingPaths(int n, int[][] red_edges, int[][] blue_edges) {\n int[] result = new int[n];\n if (n == 1) {\n result[0] = 0;\n return result;\n }\n Arrays.fill(result, -1); // initialize result array\n // build graph for future access\n boolean[][] redEdgesMatrix = new boolean[n][n];\n for (int i = 0; i < red_edges.length; i++) {\n redEdgesMatrix[red_edges[i][0]][red_edges[i][1]] = true;\n }\n boolean[][] blueEdgesMatrix = new boolean[n][n];\n for (int i = 0; i < blue_edges.length; i++) {\n blueEdgesMatrix[blue_edges[i][0]][blue_edges[i][1]] = true;\n }\n // run bfs\n Deque<Node> queue = new LinkedList<>();\n // enqueue entry point (the node 0 is special, it supports both R and B)\n queue.offer(new Node(0, \"RB\"));\n // set initial result\n result[0] = 0;\n // initialize level\n int level = 1;\n while(!queue.isEmpty()) {\n int nodeAtCurrentLevel = queue.size();\n for (int i = 0; i < nodeAtCurrentLevel; i++) {\n Node node = queue.poll();\n // visit node\n int from = node.value;\n String currentColor = node.color;\n for (int to = 0; to < n; to++) { // all entry points need to enqueue, including itself or some nodes that are already visited\n if ((currentColor.equals(\"R\") || currentColor.equals(\"RB\")) && blueEdgesMatrix[from][to]) {\n // update matrix\n blueEdgesMatrix[from][to] = false;\n // set result\n if (result[to] == -1) {\n result[to] = level;\n } else {\n result[to] = Math.min(result[to], level); \n }\n // enqueue\n queue.offer(new Node(to, \"B\"));\n }\n if ((currentColor.equals(\"B\") || currentColor.equals(\"RB\")) && redEdgesMatrix[from][to]) {\n // update matrix\n redEdgesMatrix[from][to] = false;\n // set result\n if (result[to] == -1) {\n result[to] = level;\n } else {\n result[to] = Math.min(result[to], level); \n }\n // enqueue\n queue.offer(new Node(to, \"R\"));\n }\n }\n }\n level++;\n }\n return result;\n }",
"static long[] radixsort(int arr[], int n)\r\n\r\n {\n\r\n int m = getMax(arr, n);\r\n\r\n long st = System.nanoTime();\r\n\r\n\r\n\r\n for (int exp = 1; m/exp > 0; exp *= 10)\r\n\r\n countSort(arr, n, exp);\r\n\r\n \r\n\r\n long et = System.nanoTime();\r\n\r\n threeVals[2] = et - st;\r\n\r\n return threeVals;\r\n\r\n }",
"private static long BBT(int n, long[] strg) {\n\t\tif (n == 0 || n == 1)\n\t\t\treturn 1;\n\t\tif (strg[n] != 0)\n\t\t\treturn strg[n];\n\t\tstrg[n] = ((BBT(n - 1, strg) % mod) * (2 * (BBT(n - 2, strg) % mod + BBT(n - 1, strg) % mod) % mod)) % mod;\n\t\treturn strg[n];\n\n\t}",
"int merge_compute_minrun(int localN) {\n int r = 0; // becomes 1 if any 1 bits are shifted off\n \n //assert_(n >= 0);\n while (localN >= 64) {\n r |= localN & 1;\n localN >>= 1;\n }\n return localN + r;\n }",
"static int trappingWater(int arr[], int n) {\r\n\r\n // Your code here\r\n /** *** tle\r\n for(int i=1;i<n-1;i++){\r\n int l=arr[i];\r\n for (int j = 0; j < i; j++) {\r\n l=l < arr[j] ? arr[j] : l;\r\n }\r\n int r=arr[i];\r\n for (int j = i+1; j <n ; j++) {\r\n r=r < arr[j] ? arr[j] : r;\r\n }\r\n\r\n s=s+(l>r? r:l) -arr[i];\r\n }\r\n return s;\r\n\r\n //////////////////////////////////////////////\r\n SC=O(N)\r\n if(n<=2)\r\n return 0;\r\n int[] left=new int[n];\r\n int[] right=new int[n];\r\n left[0]=0;\r\n int leftmax=arr[0];\r\n for (int i = 1; i <n ; ++i) {\r\n left[i]=leftmax;\r\n leftmax=Math.max(leftmax,arr[i]);\r\n }\r\n right[n-1]=0;\r\n int mxright=arr[n-1];\r\n for (int i = n-2; i >=0 ; --i) {\r\n right[i]=mxright;\r\n mxright=Math.max(mxright,arr[i]);\r\n }\r\n int s=0;\r\n for (int i = 1; i < n-1; ++i) {\r\n if(arr[i]<left[i] && arr[i]<right[i]){\r\n s+=Math.min(left[i],right[i])-arr[i];\r\n }\r\n }\r\n return s;\r\n /////////////////////////////////////////////////////\r\n **/\r\n\r\n if(n<=2)\r\n return 0;\r\n\r\n int leftMax = arr[0];\r\n int rightMax = arr[n-1];\r\n\r\n int left = 1;\r\n int right = n-2;\r\n int water = 0;\r\n\r\n while(left <= right) {\r\n if (leftMax < rightMax) {\r\n if (arr[left] >= leftMax) {\r\n leftMax = arr[left];\r\n } else\r\n water = water + (leftMax - arr[left]);\r\n\r\n //leftMax = Math.max(leftMax, arr[left]);\r\n left++;\r\n } else {\r\n if (arr[right] > rightMax) {\r\n rightMax = arr[right];\r\n }\r\n\r\n water = water + (rightMax - arr[right]);\r\n right--;\r\n }\r\n }\r\n return water;\r\n\r\n }",
"static long countTriplets(List<Long> arr, long r) {\n\n long triplets = 0;\n\n HashMap<Long, LinkedList<Integer>> powIndexesMap = new HashMap<>();\n for (int i = 0; i < arr.size(); i++) {\n Long number = arr.get(i);\n Long pow = Long.valueOf((long) logb(number, r));\n LinkedList<Integer> indexes;\n if (!powIndexesMap.containsKey(pow)) {\n indexes = new LinkedList<>();\n } else {\n indexes = powIndexesMap.get(pow);\n }\n indexes.add(i);\n powIndexesMap.put(pow, indexes);\n }\n\n for (int i = 0; i < arr.size(); i++) {\n Long number = arr.get(i);\n Long pow = Long.valueOf((long) logb(number, r));\n Long pow2 = pow + 1;\n Long pow3 = pow2 + 1;\n\n if (!powIndexesMap.containsKey(pow2) || !powIndexesMap.containsKey(pow3)) {\n continue;\n }\n Integer countPow2 = powIndexesMap.get(pow2).size();\n Integer countPow3 = powIndexesMap.get(pow3).size();\n\n if (countPow2 > 0 && countPow3 > 0) {\n triplets += (countPow2 * countPow3);\n }\n }\n return triplets;\n }",
"private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }",
"private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}",
"public int get_odd_occurences_optimal_v2(int[] a) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tresult ^= i;\n\t\t}\n\t\treturn result;\n\t}",
"static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}",
"public static int solveEfficient(int n) {\n if (n == 0 || n == 1)\n return 1;\n\n int n1 = 1;\n int n2 = 1;\n int sum = 0;\n\n for (int i = 2; i <= n; i++) {\n sum = n1 + n2;\n n1 = n2;\n n2 = sum;\n }\n return sum;\n }",
"private static int getPermutations(int n, int r) {\n\t\t\n\t\tif(r == 0)\n\t\t\treturn 1;\n\t\t\n\t\treturn (n * getPermutations(n-1 , r-1));\n\t}",
"static long findSum(int N)\n\t{\n\t\tif(N==0) return 0;\n\t\treturn (long)((N+1)>>1)*((N+1)>>1)+findSum((int)N>>1);\n\t\t\n\t}",
"public int[] isTripleCopy(Region r) {\n\t\tint[] res=new int[2];\n\t\tif (!nearlyEquals(this.sizeX, r.sizeX) && !nearlyEquals(this.sizeY, r.sizeY))\n\t\t\treturn res;\n\t\tRegion newr=this.generateEqual(new Pair(0,0));\n\t\tif (!nearlyEquals(this.sizeY, r.sizeY)) {\n\t\t\tif (this.sizeY<r.sizeY)\n\t\t\t\treturn res;\n\t\t\tnewr.cutRegion(r, 2);\n\t\t\tnewr.cutRegion(r, 3);\n\t\t\t\n\t\t\tint error=0;\n\t\t\tfor (int i=0;i<r.sizeX;i++) {\n\t\t\t\tfor (int j=0;j<r.sizeY;j++) {\n\t\t\t\t\tif (newr.get(i, (newr.sizeY-r.sizeY)/2+j)!=r.get(i, j))\n\t\t\t\t\t\terror++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (error<r.square/10) {\n\t\t\t\tres[0]=2;\n\t\t\t\tres[1]=(newr.sizeY-r.sizeY)/2;\n\t\t\t}\n\t\t\treturn res;\n\t\t} else if (!nearlyEquals(this.sizeX, r.sizeX)) {\n\t\t\tif (this.sizeX<r.sizeX)\n\t\t\t\treturn res;\n\t\t\tnewr.cutRegion(r, 0);\n\t\t\tnewr.cutRegion(r, 1);\n\t\t\t\n\t\t\tint error=0;\n\t\t\tfor (int i=0;i<r.sizeX;i++) {\n\t\t\t\tfor (int j=0;j<r.sizeY;j++) {\n\t\t\t\t\tif (newr.get((newr.sizeX-r.sizeX)/2+i, j)!=r.get(i, j))\n\t\t\t\t\t\terror++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (error<r.square/10) {\n\t\t\t\tres[0]=1;\n\t\t\t\tres[1]=(newr.sizeX-r.sizeX)/2;\n\t\t\t}\n\t\t\treturn res;\n\t\t} else\n\t\t\treturn res;\n\t}",
"private static long nPr(int[] frequency, int i, int n, int r)\n { \n //nao ha mais posicoes disponiveis para incluir elementos de permutacao\n if (r == 0) return 1;\n \n //retornara o calculo de nPr\n long npr = 0;\n \n //numero de elementos que ainda sobrarao, no proximo nivel de recursao,\n //para serem distribuidos pelas posicoes restantes\n n = n - frequency[i]; \n \n //chama o metodo recursivamente enquanto o numero de elementos que \n //restarem para serem distribuidos for maior ou igual ao numero de \n //posicoes disponiveis no proximo nivel de recursao\n for (\n int assignedsElements = Math.min(r, frequency[i]); \n (assignedsElements >= 0) && (n >= r - assignedsElements);\n assignedsElements--\n )\n \n //nCr() retorna o numero de maneiras que se pode distribuir \n //<assignedsElements> elementos de permutacao em <r> posicoes\n //Eh multiplicado pelas permutacoes que ainda se pode fazer nas \n //posicoes restantes com os elementos restantes\n npr += nCr(r, assignedsElements)\n * \n nPr(frequency, i+1, n, r - assignedsElements);\n \n return npr;\n }",
"public boolean linearIn(int[] outer, int[] inner) {\r\n int comp=0; // O(1)\r\n int count=0; // O(1)\r\n if(inner.length==0) // O(1)\r\n return true; // O(1)\r\n for(int i=0; i<outer.length; i++) { // O(n)\r\n if(outer[i]==inner[count]) { // O(1)\r\n comp++; // O(1)\r\n count++; // O(1)\r\n } else if(outer[i]>inner[count]) // O(1)\r\n return false; // O(1)\r\n if (comp==inner.length) // O(1)\r\n return true; // O(1)\r\n }\r\n return false; // O(1)\r\n}",
"public static void main(String[] args){\n int s = 80;\n int n = (int) Math.pow(10, 7);\n Integer[] a = new Integer[n];\n Random rand = new Random();\n for (int i = 0; i < n; i++){\n a[i] = (int) (n*rand.nextDouble());\n }\n double binTime = binSearchT(s, a);\n double linTime = linSearchT(s, a);\n System.out.println(\"binTime: \"+ binTime);\n System.out.println(\"linTime: \"+ linTime);\n\n }",
"public int a(alq paramalq, int paramInt1, int paramInt2, fn paramfn)\r\n/* 120: */ {\r\n/* 121:137 */ int i = 0;\r\n/* 122: */ amj localamj;\r\n/* 123: */ int k;\r\n/* 124:138 */ for (int j = 0; j < this.a.length; j++)\r\n/* 125: */ {\r\n/* 126:139 */ localamj = this.a[j];\r\n/* 127:140 */ if (localamj != null) {\r\n/* 128:143 */ if ((paramalq == null) || (localamj.b() == paramalq)) {\r\n/* 129:146 */ if ((paramInt1 <= -1) || (localamj.i() == paramInt1)) {\r\n/* 130:149 */ if ((paramfn == null) || (cy.a(paramfn, localamj.o(), true)))\r\n/* 131: */ {\r\n/* 132:153 */ k = paramInt2 <= 0 ? localamj.b : Math.min(paramInt2 - i, localamj.b);\r\n/* 133:154 */ i += k;\r\n/* 134:155 */ if (paramInt2 != 0)\r\n/* 135: */ {\r\n/* 136:156 */ this.a[j].b -= k;\r\n/* 137:157 */ if (this.a[j].b == 0) {\r\n/* 138:158 */ this.a[j] = null;\r\n/* 139: */ }\r\n/* 140:160 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 141:161 */ return i;\r\n/* 142: */ }\r\n/* 143: */ }\r\n/* 144: */ }\r\n/* 145: */ }\r\n/* 146: */ }\r\n/* 147: */ }\r\n/* 148: */ }\r\n/* 149:165 */ for (j = 0; j < this.b.length; j++)\r\n/* 150: */ {\r\n/* 151:166 */ localamj = this.b[j];\r\n/* 152:167 */ if (localamj != null) {\r\n/* 153:170 */ if ((paramalq == null) || (localamj.b() == paramalq)) {\r\n/* 154:173 */ if ((paramInt1 <= -1) || (localamj.i() == paramInt1)) {\r\n/* 155:176 */ if ((paramfn == null) || (cy.a(paramfn, localamj.o(), false)))\r\n/* 156: */ {\r\n/* 157:180 */ k = paramInt2 <= 0 ? localamj.b : Math.min(paramInt2 - i, localamj.b);\r\n/* 158:181 */ i += k;\r\n/* 159:182 */ if (paramInt2 != 0)\r\n/* 160: */ {\r\n/* 161:183 */ this.b[j].b -= k;\r\n/* 162:184 */ if (this.b[j].b == 0) {\r\n/* 163:185 */ this.b[j] = null;\r\n/* 164: */ }\r\n/* 165:187 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 166:188 */ return i;\r\n/* 167: */ }\r\n/* 168: */ }\r\n/* 169: */ }\r\n/* 170: */ }\r\n/* 171: */ }\r\n/* 172: */ }\r\n/* 173: */ }\r\n/* 174:193 */ if (this.f != null)\r\n/* 175: */ {\r\n/* 176:194 */ if ((paramalq != null) && (this.f.b() != paramalq)) {\r\n/* 177:195 */ return i;\r\n/* 178: */ }\r\n/* 179:197 */ if ((paramInt1 > -1) && (this.f.i() != paramInt1)) {\r\n/* 180:198 */ return i;\r\n/* 181: */ }\r\n/* 182:200 */ if ((paramfn != null) && (!cy.a(paramfn, this.f.o(), false))) {\r\n/* 183:201 */ return i;\r\n/* 184: */ }\r\n/* 185:204 */ j = paramInt2 <= 0 ? this.f.b : Math.min(paramInt2 - i, this.f.b);\r\n/* 186:205 */ i += j;\r\n/* 187:206 */ if (paramInt2 != 0)\r\n/* 188: */ {\r\n/* 189:207 */ this.f.b -= j;\r\n/* 190:208 */ if (this.f.b == 0) {\r\n/* 191:209 */ this.f = null;\r\n/* 192: */ }\r\n/* 193:211 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 194:212 */ return i;\r\n/* 195: */ }\r\n/* 196: */ }\r\n/* 197: */ }\r\n/* 198:217 */ return i;\r\n/* 199: */ }",
"private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }",
"private static void dfsBribe(int n, List<Integer>[] ch, long[] w) {\n if (ch[n].size() == 0){\n In[n] = w[n];\n OutD[n] = Long.MAX_VALUE;\n OutU[n] = 0;\n }\n //recurrance case: non.leaf, do dfs for all subordinates then calculate In, OutUp & OutDown.\n else{\n for (int c:ch[n])\n dfsBribe(c, ch, w); //running once for each child thereby O(N)\n In[n] = w[n];\n for (int c:ch[n]){ //O(N) running time\n In[n] += OutU[c];\n OutU[n] += Math.min(In[c], OutD[c]);\n OutD[n] += Math.min(In[c], OutD[c]);\n }\n OutD[n] += delta(n, ch); //add delta for no in Children\n }\n\n }",
"public int rob(int[] nums){\n\t\t\n\t\tint ret=0;\n\t\tif(nums.length == 0)\n\t\t\tret =0;\n\t\telse if(nums.length == 1)\n\t\t\tret = nums[0];\n\t\telse {\n\t\t\tint[] subnums1 = new int[nums.length -1];\n\t\t\tfor(int i=1; i<nums.length; i++)\n\t\t\t\tsubnums1[i-1]= nums[i];\n\t\t\tint ret1 = rob(subnums1);\n\t\t\t\n\t\t\tint[] subnums2 = new int[nums.length-2];\n\t\t\tfor(int i=2; i<nums.length; i++)\n\t\t\t\tsubnums2[i-2]= nums[i];\n\t\t\tint ret2 = nums[0] + rob(subnums2);\n\t\t\t\n\t\t\tret = ret1 >ret2 ? ret1: ret2;\n\t\t}\n\t\treturn ret;\n\t}",
"public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}",
"static long countTriplets(List<Long> arr, long r) {\n List<List<Long>> candidates;\n List<List<Long>> triplets = new ArrayList<>();\n for (int i = 0; i < arr.size(); i++) {\n long root = arr.get(i);\n candidates = new ArrayList<>();\n\n for (int j = i + 1; j < arr.size(); j++) {\n long value = arr.get(j);\n\n candidates.forEach(candidate -> {\n long current = candidate.get(1);\n if (value / r == current) {\n List<Long> triplet = new ArrayList<>(candidate);\n triplet.add(value);\n triplets.add(triplet);\n }\n });\n\n if (value / r == root) {\n List<Long> candidate = new ArrayList<>();\n candidate.add(root);\n candidate.add(value);\n candidates.add(candidate);\n }\n }\n\n // List<Long> sig = new ArrayList<>();\n // for (int j = 0; j < arr.size(); j++) {\n // sig.set(j, j < i ? arr.get(i) : arr.get(i) / r);\n // }\n }\n\n return triplets.size();\n }",
"private static int subN(int[] a, int[] b, int len) {\n long sum = 0;\n\n while (--len >= 0) {\n sum = (a[len] & LONG_MASK) -\n (b[len] & LONG_MASK) + (sum >> 32);\n a[len] = (int)sum;\n }\n\n return (int)(sum >> 32);\n }",
"long getRsum(int n, int i, int k){\r\n return n-i>=k ? (n-i-k)+ssum(k-1): ssum(k-1) - ssum(k-n+i);\r\n }",
"private static long combination(int n, int r) {\n if (r > n || n <= 0 || r <= 0) {\n throw new IllegalArgumentException(\"r must be smaller than n and both n and r must be positive ints\");\n }\n long result = 1;\n for (int i = r + 1; i <= n; i++) {\n result = result * i;\n }\n long nMinusRFactorial = factorial(n - r);\n result = result / nMinusRFactorial;\n// System.out.println(\"C(\" + n + \", \" + r + \") = \" + result);\n return result;\n }",
"public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }",
"static long arrayManipulation(int n, int[][] queries) {\r\n long result = 0, sum = 0;\r\n long[] arr = new long[n];\r\n for(int i = 0; i < queries.length; i++){\r\n int firstIndex = queries[i][0] - 1;\r\n int lastIndex = queries[i][1] - 1;\r\n long numberToAdd = queries[i][2];\r\n arr[firstIndex] += numberToAdd;\r\n if (lastIndex+1 < n)\r\n arr[lastIndex+1] -= numberToAdd;\r\n }\r\n\r\n for(long l : arr){\r\n sum += l;\r\n if(sum > result)\r\n result = sum;\r\n }\r\n\r\n return result;\r\n }",
"void merge_hi(int pa, int na, int pb, int nb) {\n getmem(nb);\n int dest = pb + nb - 1;\n int basea = pa;\n System.arraycopy(this.data, pb, this.a, 0, nb);\n \n pb = nb - 1;\n pa += na - 1;\n \n this.data[dest--] = this.data[pa--];\n --na;\n if (na == 0)\n return;\n if (nb == 1) {\n // CopyA;\n dest -= na;\n pa -= na;\n System.arraycopy(this.data, pa+1, this.data, dest+1, na);\n this.data[dest] = this.a[pb];\n nb = 0;\n return;\n }\n \n try {\n for (;;) {\n int acount = 0; /* # of time A won in a row */\n int bcount = 0; /* # of time B won in a row */\n \n /* Do the straightforward thing until (if ever) one run\n * appears to win consistently.\n */\n for (;;) {\n boolean k = iflt(this.a[pb], this.data[pa]);\n if (k) {\n this.data[dest--] = this.data[pa--];\n ++acount;\n bcount = 0;\n --na;\n if (na == 0)\n return;\n if (acount >= MIN_GALLOP)\n break;\n } else {\n this.data[dest--] = this.a[pb--];\n ++bcount;\n acount = 0;\n --nb;\n if (nb == 1) {\n // CopyA\n dest -= na;\n pa -= na;\n System.arraycopy(this.data, pa+1, this.data, dest+1, na);\n this.data[dest] = this.a[pb];\n nb = 0;\n return;\n }\n if (bcount >= MIN_GALLOP)\n break;\n }\n }\n \n /* One run is winning so consistently that galloping may\n * be a huge win. So try that, and continue galloping until\n * (if ever) neither run appears to be winning consistently\n * anymore.\n */\n do {\n int k = gallop_right(this.a[pb], this.data, basea, na, na-1);\n acount = k = na - k;\n if (k != 0) {\n dest -= k;\n pa -= k;\n System.arraycopy(this.data, pa+1, this.data, dest+1, k);\n na -= k;\n if (na == 0)\n return;\n }\n \n this.data[dest--] = this.a[pb--];\n --nb;\n if (nb == 1) {\n // CopyA\n dest -= na;\n pa -= na;\n System.arraycopy(this.data, pa+1, this.data, dest+1, na);\n this.data[dest] = this.a[pb];\n nb = 0;\n return;\n }\n \n k = gallop_left(this.data[pa], this.a, 0, nb, nb-1);\n bcount = k = nb - k;\n if (k != 0) {\n dest -= k;\n pb -= k;\n System.arraycopy(this.a, pb+1, this.data, dest+1, k);\n nb -= k;\n if (nb == 1) {\n // CopyA\n dest -= na;\n pa -= na;\n System.arraycopy(this.data, pa+1, this.data, dest+1, na);\n this.data[dest] = this.a[pb];\n nb = 0;\n return;\n }\n /* nb==0 is impossible now if the comparison\n * function is consistent, but we can't assume\n * that it is.\n */\n if (nb == 0)\n return;\n }\n this.data[dest--] = this.data[pa--];\n --na;\n if (na == 0)\n return;\n } while (acount >= MIN_GALLOP || bcount >= MIN_GALLOP);\n }\n } finally {\n if (nb != 0)\n System.arraycopy(this.a, 0, this.data, dest-(nb-1), nb);\n \n //dump_data(\"result\", origpa, cnt);\n }\n }",
"private boolean slowEquals(byte[] a, byte[] b)\n {\n int diff = a.length ^ b.length;\n for(int i = 0; i < a.length && i < b.length; i++)\n diff |= a[i] ^ b[i];\n return diff == 0;\n }",
"private static long recBinom(int n, int k) {\n if (bin.get(n).get(k) > 0) {\n return bin.get(n).get(k).longValue();\n }\n \n if (k == 0 || k == n) {\n bin.get(n).set(k, Long.valueOf(1));\n return 1;\n } \n\n long result = recBinom(n - 1, k - 1) + recBinom(n - 1, k);\n bin.get(n).set(k, Long.valueOf(result));\n\n return result;\n }",
"O transform(R result);",
"static int[] bfs(int n, int m, int[][] edges, int s) {\r\n \r\n HashSet<Integer> aList[] = new HashSet[n];\r\n // Array of the nodes of the tree\r\n\r\n Queue<Integer> bfsQueue = new LinkedList();\r\n\r\n boolean visited[] = new boolean[n];\r\n // check if a node is visited or not\r\n\r\n\r\n int cost[] = new int[n];\r\n // cost to travel from one node to other\r\n\r\n for (int i = 0; i < n; i++) {\r\n // intialising the values\r\n visited[i] = false;\r\n cost[i] = -1;\r\n\r\n aList[i] = new HashSet<Integer>();\r\n // Each element of aList is a Set\r\n // To store the neighbouring nodes of a particular node\r\n }\r\n\r\n for (int i = 0; i < m; i++) {\r\n // let node[i] <--> node[j]\r\n\r\n // adding node[j] to neighbours list of node[i]\r\n aList[edges[i][0] - 1].add(edges[i][1] - 1);\r\n\r\n // adding node[i] to neighbours list of node[j]\r\n aList[edges[i][1] - 1].add(edges[i][0] - 1);\r\n }\r\n\r\n //\r\n s = s - 1;\r\n bfsQueue.add(s);\r\n visited[s] = true;\r\n cost[s] = 0;\r\n //\r\n \r\n \r\n while (!bfsQueue.isEmpty()) {\r\n \r\n int curr = bfsQueue.poll();\r\n // takes the last element of the queue\r\n \r\n for (int neigh : aList[curr]) { // iterating the neighbours of node 'curr'\r\n if (!visited[neigh]) { // checking if node neigh id already visited during the search\r\n visited[neigh ] = true;\r\n bfsQueue.add(neigh); //add the node neigh to bfsqueue\r\n cost[neigh] = cost[curr] + 6; \r\n }\r\n }\r\n }\r\n\r\n int result[] = new int[n-1];\r\n\r\n for (int i=0, j=0; i<n && j<n-1; i++, j++) {\r\n if (i == s){\r\n i++;\r\n }\r\n result[j] = cost[i];\r\n }\r\n \r\n return result;\r\n }",
"private int rs(final int x) {\n assert(! leaf(x));\n return Math.min(2*x+2, n);\n }",
"private static boolean slowEquals(final byte[] a, final byte[] b) {\n int diff = a.length ^ b.length;\n for (int i = 0; i < a.length && i < b.length; i++) {\n diff |= a[i] ^ b[i];\n }\n return diff == 0;\n }",
"void merge_lo(int pa, int na, int pb, int nb) {\n getmem(na);\n System.arraycopy(this.data, pa, this.a, 0, na);\n int dest = pa;\n pa = 0;\n \n this.data[dest++] = this.data[pb++];\n --nb;\n if (nb == 0)\n return;\n if (na == 1) {\n // CopyB;\n System.arraycopy(this.data, pb, this.data, dest, nb);\n this.data[dest + nb] = this.a[pa];\n return;\n }\n \n try {\n for (;;) {\n int acount = 0; /* # of time A won in a row */\n int bcount = 0; /* # of time B won in a row */\n \n /* Do the straightforward thing until (if ever) one run\n * appears to win consistently.\n */\n for (;;) {\n boolean k = iflt(this.data[pb], this.a[pa]);\n if (k) {\n this.data[dest++] = this.data[pb++];\n ++bcount;\n acount = 0;\n --nb;\n if (nb == 0)\n return;\n if (bcount >= MIN_GALLOP)\n break;\n } else {\n this.data[dest++] = this.a[pa++];\n ++acount;\n bcount = 0;\n --na;\n if (na == 1) {\n // CopyB;\n System.arraycopy(this.data, pb, this.data, dest, nb);\n this.data[dest + nb] = this.a[pa];\n na = 0;\n return;\n }\n if (acount >= MIN_GALLOP)\n break;\n }\n }\n \n /* One run is winning so consistently that galloping may\n * be a huge win. So try that, and continue galloping until\n * (if ever) neither run appears to be winning consistently\n * anymore.\n */\n do {\n int k = gallop_right(this.data[pb], this.a, pa, na, 0);\n acount = k;\n if (k != 0) {\n System.arraycopy(this.a, pa, this.data, dest, k);\n dest += k;\n pa += k;\n na -= k;\n if (na == 1) {\n // CopyB\n System.arraycopy(this.data, pb, this.data, dest, nb);\n this.data[dest + nb] = this.a[pa];\n na = 0;\n return;\n }\n /* na==0 is impossible now if the comparison\n * function is consistent, but we can't assume\n * that it is.\n */\n if (na == 0)\n return;\n }\n \n this.data[dest++] = this.data[pb++];\n --nb;\n if (nb == 0)\n return;\n \n k = gallop_left(this.a[pa], this.data, pb, nb, 0);\n bcount = k;\n if (k != 0) {\n System.arraycopy(this.data, pb, this.data, dest, k);\n dest += k;\n pb += k;\n nb -= k;\n if (nb == 0)\n return;\n }\n this.data[dest++] = this.a[pa++];\n --na;\n if (na == 1) {\n // CopyB;\n System.arraycopy(this.data, pb, this.data, dest, nb);\n this.data[dest + nb] = this.a[pa];\n na = 0;\n return;\n }\n } while (acount >= MIN_GALLOP || bcount >= MIN_GALLOP);\n }\n } finally {\n if (na != 0)\n System.arraycopy(this.a, pa, this.data, dest, na);\n \n //dump_data(\"result\", origpa, cnt);\n }\n }",
"public static boolean addUpToFast(int[] array, int n){\n\t\tHashSet<Integer> hs = new HashSet<Integer>();\n\t\tfor(int i = 0; i < array.length; i++){\n\t\t\tif(hs.contains(n-array[i]))\n\t\t\t\treturn true;\n\t\t\ths.add(array[i]);\n\t\t}\n\t\treturn false;\n\t}",
"private int getCondensedIndex(int n, int i, int j) {\n if (i < j) {\n return n * i - (i * (i + 1) / 2) + (j - i - 1);\n }\n else if (i > j) {\n return n * j - (j * (j + 1) / 2) + (i - j - 1);\n }\n else{\n return 0;\n }\n }",
"public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }",
"public static void process(int n){\n\t\tint right, left, i;\n\n\t\tright = i = 0;\n\t\twhile(i < n){\n\t\t\twhile (right < n && c[i] == c[right]) right++;\n\t\t\tfor(int j = i; j < right; ++j) max_right[j] = right;\n\t\t\ti = right;\n\t\t}\n\n\t\tleft = i = n-1;\n\t\twhile(i >= 0){\n\t\t\twhile (left >= 0 && c[i] == c[left]) left--;\n\t\t\tfor (int j = i; j > left; --j) max_left[j] = left;\n\t\t\ti = left;\n\t\t}\n\t}",
"private int bepaalByes(int[] arr, int n) {\r\n\t\tint tot = 0;\r\n\t\tfor (int v : arr)\r\n\t\t\ttot += v;\r\n\t\treturn (tot - n);\r\n\t}",
"private static int randomizedPartition(int[] A, int p, int r) {\n Random rand = new Random();\n int idx = p+rand.nextInt(r-p+1);\n int x = A[idx];\n\n int i = p;\n int j = r;\n\n // LI:A[p...i] ≤ x, A[j...r] ≥ x\n while (true) {\n\n while (A[i] < x) i++;\n while (A[j] > x) j--;\n\n if (i >= j) return j;\n\n exchange(A, i, j);\n }\n }",
"public long generatePathsSlow(int size, int d, int r) {\n // Not thread safe, lel\n if (d == size && r == size) {\n return 1L;\n } else if (d == size) {\n return generatePathsSlow(size, d, r + 1);\n } else if (r == size) {\n return generatePathsSlow(size, d + 1, r);\n } else {\n return generatePathsSlow(size, d + 1, r) + generatePathsSlow(size, d, r + 1);\n }\n }",
"static int[] rustMurderer(int n, int s, int[][] roads) {\n\n List<Map<Integer, Boolean>> mainRoadMap = prepareAdjacencyList(n, roads);\n\n // the BFS queue\n Queue<Integer> queue = new LinkedList<>();\n \n // keeps distances from beginning node\n int[] dists = new int[n + 1];\n \n // keeps if a node is visited or not\n boolean[] visited = new boolean[n + 1];\n \n // add beginning node to the queue\n queue.add(s);\n \n // set distance of beginning node\n dists[s] = 0;\n \n // set beginning node as visited \n visited[s] = true;\n\n while (!queue.isEmpty()) {\n int from = queue.remove();\n\n Map<Integer, Boolean> neighboursWithMainRoad = mainRoadMap.get(from);\n \n // If all outgoing ways are village-road, all other nodes can be reachable directly.\n if(neighboursWithMainRoad.isEmpty()){\n for (int i = 1; i < n + 1; i++) { // set distances of non-visited nodes\n if(!visited[i]) dists[i] = dists[from] + 1;\n }\n queue.clear();\n continue;\n }\n\n // loop through neighbours (with village roads)\n for (int to = 1; to <= n; ++to){\n if(from == to || neighboursWithMainRoad.containsKey(to) || visited[to]) continue;\n \n queue.add(to);\n dists[to] = dists[from] + 1;\n visited[to] = true;\n }\n }\n \n return IntStream.range(1, n + 1)\n .filter(i -> i != s)\n .map(i -> dists[i])\n .toArray();\n }",
"private static int binarySearch0_BranchFreeUnrolledStatic16(int[] a, int key) {\n\t\tint low = 8;\n\t\tint midVal;\n\t\tint highMask;\n\n\t\tmidVal = a[low];\n\t\tlow += 4;\n\t\thighMask = (int) (((long) key - midVal) >> 63);\n\t\tlow -= 8 & highMask;\n\n\t\tmidVal = a[low];\n\t\tlow += 2;\n\t\thighMask = (int) (((long) key - midVal) >> 63);\n\t\tlow -= 4 & highMask;\n\n\t\tmidVal = a[low];\n\t\tlow += 1;\n\t\thighMask = (int) (((long) key - midVal) >> 63);\n\t\tlow -= 2 & highMask;\n\n\t\tmidVal = a[low];\n\t\thighMask = (int) (((long) key - midVal) >> 63);\n\t\tlow -= 1 & highMask;\n\n\t\treturn a[low] == key ? low : -(low + 1);\n\n\t}",
"public static int[] decomposeToBECC(int[][] g) {\n// this part of code is taken from uwi submissions\n int n = g.length;\n boolean[] visited = new boolean[n];\n int[] ord = new int[n];\n int[] low = new int[n];\n\n int[] ids = new int[n];\n int[] inds = new int[n];\n int[] parct = new int[n];\n int pos = 0;\n for (int i = 0; i < n; i++) {\n if (!visited[i]) {\n ids[0] = i;\n inds[0] = 0;\n int sp = 1;\n while (sp > 0) {\n int cur = ids[sp - 1];\n if (inds[sp - 1] == 0) {\n visited[cur] = true;\n ord[cur] = low[cur] = pos++;\n parct[sp - 1] = 0;\n }\n if (inds[sp - 1] == g[cur].length) {\n if (sp - 2 >= 0) {\n low[ids[sp - 2]] = Math.min(low[ids[sp - 2]], low[cur]);\n }\n sp--;\n continue;\n }\n int next = g[cur][inds[sp - 1]];\n if (!visited[next]) {\n ids[sp] = next;\n inds[sp] = 0;\n inds[sp - 1]++;\n sp++;\n continue;\n } else if (sp - 2 >= 0 && (next != ids[sp - 2] || ++parct[sp - 1] >= 2)) {\n low[cur] = Math.min(low[cur], ord[next]);\n }\n inds[sp - 1]++;\n }\n }\n }\n\n int[] clus = new int[n];\n Arrays.fill(clus, -1);\n int[] q = new int[n];\n int cnum = 0;\n for (int i = 0; i < n; i++) {\n if (clus[i] == -1) {\n int p = 0;\n q[p++] = i;\n clus[i] = cnum++;\n for (int r = 0; r < p; r++) {\n int cur = q[r];\n for (int next : g[cur]) {\n if (clus[next] == -1) {\n clus[next] = ord[cur] < low[next] ? cnum++ : clus[cur];\n q[p++] = next;\n }\n }\n }\n }\n }\n return clus;\n }",
"public int rob(int[] nums) {\n\t\tif(nums == null || nums.length == 0){\n\t\t\treturn 0;\n\t\t}\n\t\tint res = 0, n = nums.length;\n\t\tint[] dp = new int[n + 1];\n\t\tdp[1] = nums[0];\n\t\tfor(int i = 2; i <= n; i++){\n\t\t\tdp[i] = Math.max(dp[i - 2] + nums[i - 1], dp[i - 1]);\n\t\t}\n\t\treturn dp[n];\n\t}",
"protected int find_among_b(Among v[])\n {\n\tint i = 0;\n\tint j = v.length;\n\n\tint c = cursor;\n\tint lb = limit_backward;\n\n\tint common_i = 0;\n\tint common_j = 0;\n\n\tboolean first_key_inspected = false;\n\n\twhile (true) {\n\t int k = i + ((j - i) >> 1);\n\t int diff = 0;\n\t int common = common_i < common_j ? common_i : common_j;\n\t Among w = v[k];\n\t int i2;\n\t for (i2 = w.s.length - 1 - common; i2 >= 0; i2--) {\n\t\tif (c - common == lb) {\n\t\t diff = -1;\n\t\t break;\n\t\t}\n\t\tdiff = current.charAt(c - 1 - common) - w.s[i2];\n\t\tif (diff != 0) break;\n\t\tcommon++;\n\t }\n\t if (diff < 0) {\n\t\tj = k;\n\t\tcommon_j = common;\n\t } else {\n\t\ti = k;\n\t\tcommon_i = common;\n\t }\n\t if (j - i <= 1) {\n\t\tif (i > 0) break;\n\t\tif (j == i) break;\n\t\tif (first_key_inspected) break;\n\t\tfirst_key_inspected = true;\n\t }\n\t}\n\twhile (true) {\n\t Among w = v[i];\n\t if (common_i >= w.s.length) {\n\t\tcursor = c - w.s.length;\n\t\tif (w.method == null) return w.result;\n\n\t\tboolean res;\n\t\ttry {\n\t\t Object resobj = w.method.invoke(this);\n\t\t res = resobj.toString().equals(\"true\");\n\t\t} catch (InvocationTargetException e) {\n\t\t res = false;\n\t\t // FIXME - debug message\n\t\t} catch (IllegalAccessException e) {\n\t\t res = false;\n\t\t // FIXME - debug message\n\t\t}\n\t\tcursor = c - w.s.length;\n\t\tif (res) return w.result;\n\t }\n\t i = w.substring_i;\n\t if (i < 0) return 0;\n\t}\n }",
"static int[] OnepassSol1(int[]a, int n){\r\n Map<Integer, Integer> map = new HashMap<>();\r\n for (int i = 0; i < a.length; i++) {\r\n int complement = n - a[i];\r\n if (map.containsKey(complement)) {\r\n return new int[] { map.get(complement), i };\r\n }\r\n map.put(a[i], i);\r\n }\r\n int[] ans = {-1,-1};\r\n return ans;\r\n }",
"private static void task0111(int nUMS, RedBlackBST<Integer, Integer> i, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...RedBlast BST Tree\" );\n\t int count=1;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\ti.put(GenerateInt.generateNumber(), GenerateInt.generateNumber());\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\t\t\tcount = z;\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}",
"public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}",
"public static int example1(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\t}",
"public static double [] solveNR(double a[][], double[] b) {\n int N = b.length;\n int [] idxs = new int[N];\n double [][] ac = Common.copy(a);\n double d = ludcmp(ac, idxs);\n double [] bc = Common.copy(b);\n \n lubksb(ac, idxs, bc);\n return bc;\n }",
"public static void main(String[] args) {\n\t\tint a[]= {15,3,7,1,9,2};\n\t\tsubarraysum(a,11);//Time complexity O(n^2) space O(1)\n\n\t\tsubarraysum_reducecomplexity(a,11,a.length); //Time complexity O(n) space O(1)\n\n\t}",
"public int[] getNext() {\n\n if (numLeft.equals(total)) {\n numLeft = numLeft.subtract(BigInteger.ONE);\n return a;\n }\n\n int i = r - 1;\n while (a[i] == n - r + i) {\n i--;\n }\n a[i] = a[i] + 1;\n for (int j = i + 1; j < r; j++) {\n a[j] = a[i] + j - i;\n }\n\n numLeft = numLeft.subtract(BigInteger.ONE);\n return a;\n }",
"public static void main(String[] args) throws Exception {\n int arr[]= {7,9,88,-33,2,12,6,1};\n Arrays.sort(arr);\n /*for(int i=0; i<arr.length; i++)\n \t System.out.print(arr[i]+\", \");\n System.out.println(\"\\n DESC\");\n System.out.print(\"{ \");\n for(int i=arr.length-1; i>=0; i--) {\n \t if(arr[i]==arr[0])\n \t System.out.print(arr[i]);\n \t else \n \t\t System.out.print(arr[i]+\", \");\n }*/\n // System.out.print(\" }\");\n \n int[] ar= {6,2,2,5,2,2,1};\n int startIndex=0;\n int lastIndex=ar.length-1;\n //a is sumRight,b = sumLeft\n int a=0,b=0;\n /* while(true) {\n \t \n \t if(b>a) \n \t\t //1+2+2=+5\n \t\t a+=ar[lastIndex--];\n \t else \n \t\t //6+2+2\n \t\t\t b+=ar[startIndex++];\n \t\tif(startIndex>lastIndex) {\n \t\t\tSystem.out.println(startIndex);\n \t\t\tif(a==b)\n \t\t\t\tbreak;\n \t\t\t else\n \t\t\t throw new Exception(\"not a valid array\");\n \t\t\t\n \t\t}\n \t\t\t \n \t\t\n }\n System.out.println(lastIndex);\n */\n \n \n while(true) {\n \t \n \t if(b>a)\n \t\t a+= ar[lastIndex--];\n \t else\n b+=ar[startIndex++];\n \t if(startIndex>lastIndex) {\n \t\t if(a==b)\n \t\t\t break;\n \t }\n }\n System.out.println(lastIndex);\n\t}",
"public ArrayList<ArrayList<Integer>> fourSum_02(ArrayList<Integer> a, int b) {\n\t\t//List to store the result\n\t\tArrayList<ArrayList<Integer>> res = new ArrayList<ArrayList<Integer>>();\n \tint len = a.size();\n \tif(len < 4)\n \t return res;\n \t\n //Using the hashMap to store sum and corresponding 2 elements\n \tHashMap<Integer, Index> h = new HashMap<Integer, Index>();\n \t\n \tfor(int i = 0; i < len-1; i++) {\n \t\tfor(int j = i+1; j < len; j++) {\n \t\t\tint sum = a.get(i) + a.get(j);\n \t\t\tif(h.containsKey(b-sum)) {\n \t\t\t\t//then get the elements of the existing sum stored in hashmap\n \t\t\t\tIndex indx = h.get(b-sum);\n \t\t\t\tint exI = indx.getI();\n \t\t\t\tint exJ = indx.getJ();\n \t\t\t\tif(res.size() == 0) {\n \t\t\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t \t\t\t\tl.add(exI);\n\t \t\t\t\tl.add(exJ);\n\t \t\t\t\tl.add( a.get(i));\n\t \t\t\t\tl.add( a.get(j));\n\t \t\t\t\tCollections.sort(l);\n\t \t\t\t\tres.add(l);\n \t\t\t\t} else {\n\t \t\t\t\tif((exI != a.get(i)) && (exJ != a.get(j))) {\n\t \t\t\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t \t\t\t\tl.add(exI);\n\t\t \t\t\t\tl.add(exJ);\n\t\t \t\t\t\tl.add(a.get(i));\n\t\t \t\t\t\tl.add(a.get(j));\n\n\t\t \t\t\t\tCollections.sort(l);\n\t\t \t\t\t\tboolean flag = true;\n\t\t \t\t\t\t\n\t\t \t\t\t\tfor(ArrayList<Integer> ll : res) {\n\t\t \t\t\t\t\tif(ll.equals(l)) {\n\t\t \t\t\t\t\t\tflag = false;\n\t\t \t\t\t\t\t\tbreak;\n\t\t \t\t\t\t\t}\n\t\t \t\t\t\t}\n\t\t \t\t\t\tif(flag == true)\n\t\t \t\t\t\t\tres.add(l);\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\th.put(sum, new Index(a.get(i), a.get(j)));\n \t\t}\n \t}\n \treturn res;\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(new BufferedReader(new InputStreamReader(System.in)));\r\n\t\tint n = sc.nextInt();\r\n\t\tint[] a = new int[n];\r\n\t\tfor(int i = 0; i < n; i++){\r\n\t\t\ta[i] = sc.nextInt();\r\n\t\t}\r\n\t\tint res = 0, p = 0, t = 0;\r\n\t\twhile(true){\r\n\t\t\tp = 0; t = 0;\r\n\t\t\tfor(int i = 0; i < a.length; i++){\r\n\t\t\t\t\r\n\t\t\t\tif(i == a.length-1){\r\n\t\t\t\t\ta[i] /= 2;\r\n\t\t\t\t\tt = a[i];\r\n\t\t\t\t\ta[i] += p;\r\n\t\t\t\t\tp = t;\r\n\t\t\t\t\ta[0] += p;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\ta[i] /= 2;\r\n\t\t\t\t\tt = a[i];\r\n\t\t\t\t\ta[i] += p;\r\n\t\t\t\t\tp = t;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tboolean flag = true;\r\n\t\t\tint temp = a[0];\r\n\t\t\tfor(int j = 1; j < a.length; j++){\r\n\t\t\t\tif(a[j] != temp){\r\n\t\t\t\t\tflag = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(flag){\r\n\t\t\t\tSystem.out.println(res);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfor(int j = 0; j < a.length; j++){\r\n\t\t\t\tif(a[j] % 2 != 0){\r\n\t\t\t\t\ta[j] += 1;\r\n\t\t\t\t\tres++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void findDuplicatesBruteForce(int[] arr) {\n\t\t\n\t\tfor(int i = 0; i< arr.length ; i++)\n\t\t{\n\t\t\tfor ( int j = i+1 ; j < arr.length ; j++)\n\t\t\t{\n\t\t\t\tif(arr[i] == arr[j])\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(arr[i] + \" is duplicate by brute force method\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private void go(int i) {\n\t\tcol[i] = 1;\r\n\t\tint j = f[i];\r\n\t\tint cnt = 0;\r\n\t\tint delAll = 0;\r\n\t\tint[][] cd = new int[1000][3];\r\n\t\tint sa = 0;\r\n\t\tint sb = 0;\r\n\t\tint m1 = Integer.MAX_VALUE;\r\n\t\tint m2 = Integer.MAX_VALUE;\r\n\t\tint m1a = 0;\r\n\t\tint m2a = 0;\r\n\t\tint m1b = 0;\r\n\t\tint m2b = 0;\r\n\t\twhile (j != -1) {\r\n\t\t\tif (col[e[j]] == 0) {\r\n\t\t\t\tgo(e[j]);\r\n\t\t\t\tdelAll += a[e[j]];\r\n\t\t\t\tint dif = b[e[j]] - a[e[j]];\r\n\t\t\t\tif (dif < m1) {\r\n\t\t\t\t\tm2 = m1;\r\n\t\t\t\t\tm2b = m1b;\r\n\t\t\t\t\tm2a = m1a;\r\n\t\t\t\t\tm1 = dif;\r\n\t\t\t\t\tm1a = a[e[j]];\r\n\t\t\t\t\tm1b = b[e[j]];\r\n\t\t\t\t} else if (dif < m2) {\r\n\t\t\t\t\tm2 = dif;\r\n\t\t\t\t\tm2a = a[e[j]];\r\n\t\t\t\t\tm2b = b[e[j]];\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsa += a[e[j]];\r\n\t\t\t\tsb += a[e[j]];\r\n\t\t\t\tcd[cnt][0] = a[e[j]];\r\n\t\t\t\tcd[cnt][1] = b[e[j]];\r\n\t\t\t\tcd[cnt][2] = b[e[j]] - a[e[j]];\r\n\t\t\t\tcnt++;\r\n\t\t\t}\r\n\t\t\tj = next[j];\r\n\t\t}\r\n\t\tif (cnt == 0) {\r\n\t\t\ta[i] = 1;\r\n\t\t\tb[i] = 0;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tArrays.sort(cd, new Comparator<int[]>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(int[] o1, int[] o2) {\r\n\t\t\t\t// TODO Auto-generated method stub\t\t\t\t\r\n\t\t\t\treturn o1[2] - o2[2];\r\n\t\t\t}\r\n\t\t});\r\n\t\ta[i] = delAll + 1;\r\n\t\t//leave 0 or 2\r\n\t\tint cost1 = 0;\r\n\t\tint cost = 0;\r\n\t\tfor (j = 2; j < cnt; j++)\r\n\t\t\tcost1 += cd[j][0];\r\n\t\tif (cnt >= 2) {\r\n\t\t\tcost += m1b + m2b + sa - m1a - m2a;\r\n\t\t\tcost1 += cd[0][1] + cd[1][1];\r\n\t\t} else {\r\n\t\t\tcost += sa;\r\n\t\t\tcost1 += cd[0][0];\r\n\t\t}\r\n\t\tif (cost1 != cost)\r\n\t\t\tSystem.err.println(\"FUCK\");\r\n\t\tb[i] = cost;\r\n\t}",
"void B_time()\n {\n System.out.println(\"Ghost current position: ( \"+X+\",\"+Y+\")\");\n double[][] dup = new double[n][n];\n //int temp = rand.nextInt(10);\n for (int i = 0; i < n; i++)\n {\n for (int j = 0; j < n; j++)\n {\n double x = 0;\n //*****SIDEWAYS****\n\n if( (j-1 >= 0) && (j-1 < n))\n {\n double a = side_neighbour(i,j-1);\n x += arr[i][j-1] * sw * (1.0/a);\n }\n if( (j+1 >= 0) && (j+1 < n))\n {\n double a = side_neighbour(i,j+1);\n x += arr[i][j+1] * sw * (1.0/a);\n }\n if( (i-1 >= 0) && (i-1 < n))\n {\n double a = side_neighbour(i-1,j);\n x += arr[i-1][j] * sw * (1.0/a);\n }\n if( (i+1 >= 0) && (i+1 < n))\n {\n double a = side_neighbour(i+1,j);\n x += arr[i+1][j] * sw * (1.0/a);\n }\n\n //*****CORNERS****\n if( (i-1 >= 0) && (i-1 < n) && (j-1 >= 0) && (j-1 < n))\n {\n double a = corner_neighbours(i-1,j-1);\n x += arr[i-1][j-1] * c *(1.0/a);\n }\n if( (i+1 >= 0) && (i+1 < n) && (j+1 >= 0) && (j+1 < n))\n {\n double a = corner_neighbours(i+1,j+1);\n x += arr[i+1][j+1] * c *(1.0/a);\n }\n if( (i-1 >= 0) && (i-1 < n) && (j+1 >= 0) && (j+1 < n))\n {\n double a = corner_neighbours(i-1,j+1);\n x += arr[i-1][j+1] * c * (1.0/a);\n }\n if( (i+1 >= 0) && (i+1 < n) && (j-1 >= 0) && (j-1 < n))\n {\n double a = corner_neighbours(i+1,j-1);\n x += arr[i+1][j-1] * c * (1.0/a);\n }\n\n double a = corner_neighbours(i,j);\n x += arr[i][j] * c * (1.0/a);\n\n //arr[i][j] = x;\n dup[i][j] = x;\n }\n }\n\n\n\n arr = dup;\n B_print();\n curr_pos(X,Y);\n\n }",
"private int partition(int p, int r) {\n int i = p, temp = 0;\n for (int j = p; j < r; j++) {\n if (data[j] <= data[r]) {\n if (i != j) {\n temp = data[i];\n data[i] = data[j];\n data[j] = temp;\n }\n i++;\n }\n }\n temp = data[i];\n data[i] = data[r];\n data[r] = temp;\n return i;\n }",
"static int gen(int n)\n{ \n int []S = new int [n + 1];\n \n S[0] = 0;\n if(n != 0)\n S[1] = 1;\n \n for (int i = 2; i <= n; i++)\n { \n \n // S(2 * n) = 4 * S(n)\n if (i % 2 == 0)\n S[i] = 4 * S[i / 2];\n \n // S(2 * n + 1) = 4 * S(n) + 1\n else\n S[i] = 4 * S[i/2] + 1;\n }\n \n return S[n];\n}",
"private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }",
"private int[] add(int[] a, int[] b)\n {\n int tI = a.length - 1;\n int vI = b.length - 1;\n long m = 0;\n\n while (vI >= 0)\n {\n m += (((long)a[tI]) & IMASK) + (((long)b[vI--]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n while (tI >= 0 && m != 0)\n {\n m += (((long)a[tI]) & IMASK);\n a[tI--] = (int)m;\n m >>>= 32;\n }\n\n return a;\n }",
"public static void main(String[] args) {\n int[][] bn = new int[127][];\n \n for(int i = 1; i <128; i++)\n {\n int m = (int) (Math.log10(i)/Math.log10(2));\n \n int l = i, j = 2*m; int[] b = new int[2*m+1]; \n \n while(l >= 1)\n {\n int k = l;\n l = l/2;\n \n b[j] = k - l*2; j--;\n }\n \n bn[i-1] = b;\n }\n \n /*int[] ds = new int[255*255*8];*/ int[] df = new int[14]; Arrays.fill(df, 0);\n //int l = 0;\n \n for(int i = 0; i <127; i++)\n {\n for(int j = 0; j<127; j++)\n {\n int k, d = 0;\n for(k = 0; k < bn[i].length; k++)\n { \n if(bn[i][k] == 0)\n {\n d++;\n }\n else if(d > 0)\n {\n //System.out.print(d+\",\");\n df[d-1]++; d = 0;\n }\n }\n \n for(k = 0; k < bn[j].length; k++)\n {\n if(bn[j][k] == 0)\n {\n d++;\n }\n else if(d > 0)\n {\n //System.out.print(d+\",\");\n df[d-1]++; d = 0;\n }\n }\n \n if(d > 0)\n {\n //System.out.print(d+\",\");\n df[d-1]++; d = 0;\n }\n }\n }\n double sum = sum(df); int[] numb = {1,3,3,5,5,5,5,7,7,7,7,7,7,7,7}; int tb = 0;\n \n for(int i = 0; i < 14; i++)\n {\n tb = tb + (int)((df[i]*100/sum) + 0.5)*numb[i];\n \n System.out.print((int)((df[i]*100/sum) + 0.5)+\",\");\n }\n System.out.println();\n System.out.println(tb);\n }",
"void merge(int arr[], int l, int m, int r) {\r\n\t\tint[] temp = new int[r - l + 1];\r\n\t\tint i = l;\r\n\t\tint j = m + 1;\r\n\t\tint k = 0;\r\n\t\twhile (i <= m && j <= r) {\r\n\t\t\tif (arr[i] < arr[j])\r\n\t\t\t\ttemp[k++] = arr[i++]; // same as b[k]=a[i]; k++; i++;\r\n\t\t\telse\r\n\t\t\t\ttemp[k++] = arr[j++];\r\n\t\t}\r\n\r\n\t\twhile (j <= r) {\r\n\t\t\ttemp[k++] = arr[j++];\r\n\t\t}\r\n\t\twhile (i <= m) {\r\n\t\t\ttemp[k++] = arr[i++];\r\n\t\t}\r\n\r\n\t\tfor (i = r; i >= l; i--) {\r\n\t\t\tarr[i] = temp[--k];\r\n\t\t}\r\n\t}",
"void merge_at(int i) {\n \n int pa = this.base[i];\n int pb = this.base[i+1];\n int na = this.len[i];\n int nb = this.len[i+1];\n \n //assert_(na > 0 && nb > 0);\n //assert_(pa + na == pb);\n \n // Record the length of the combined runs; if i is the 3rd-last\n // run now, also slide over the last run (which isn't involved\n // in this merge). The current run i+1 goes away in any case.\n if (i == this.n - 3) {\n this.len[i+1] = this.len[i+2];\n this.base[i+1] = this.base[i+2];\n }\n this.len[i] = na + nb;\n --this.n;\n \n // Where does b start in a? Elements in a before that can be\n // ignored (already in place).\n int k = gallop_right(this.data[pb], this.data, pa, na, 0);\n pa += k;\n na -= k;\n if (na == 0)\n return;\n \n // Where does a end in b? Elements in b after that can be\n // ignored (already in place).\n nb = gallop_left(this.data[pa + na - 1], this.data, pb, nb, nb-1);\n if (nb == 0)\n return;\n \n // Merge what remains of the runs, using a temp array with\n // min(na, nb) elements.\n if (na <= nb)\n merge_lo(pa, na, pb, nb);\n else\n merge_hi(pa, na, pb, nb);\n }",
"public int rob(int[] nums) {\r\n if (nums.length == 1) return nums[0];\r\n return Math.max(rob(nums, 0, nums.length - 2), rob(nums, 1, nums.length - 1));\r\n}",
"public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }",
"private static long find_fast(long u)\n {\n long a, b, r;\n long maxUInt = 4294967295L;\n\n u += 0xe91aaa35;\n u = maxUInt % u;\n u ^= u >> 16;\n u = maxUInt % u;\n u += u << 8;\n u = maxUInt % u;\n u ^= u >> 4;\n u = maxUInt % u;\n b = (u >> 8) & 0x1ff;\n b = maxUInt % b;\n a = (u + (u << 2)) >> 19;\n a = maxUInt % a;\n r = a ^ hash_adjust[(int)b];\n r = maxUInt % r;\n return r;\n }",
"private static void get4ElementsSumCountFastest(String inputLine, int target) {\n String[] arr = inputLine.split(\" \");\n if (arr.length < 3) {\n System.out.println(0);\n return;\n }\n\n Map<Integer, Set<String>> pairSumMap = new HashMap<>();\n List<Integer> list = new ArrayList<>(arr.length);\n for (String s : arr) {\n list.add(Integer.parseInt(s.trim()));\n }\n\n int sum = 0, diff = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n sum = list.get(i) + list.get(j);\n if (sum < target) {\n pairSumMap.putIfAbsent(sum, new HashSet<>());\n pairSumMap.get(sum).add(i + \"-\" + j);\n }\n }\n }\n\n for (Map.Entry<Integer, Set<String>> mk : pairSumMap.entrySet()) {\n diff = target - mk.getKey();\n if (pairSumMap.containsKey(diff)) {\n Set<String> indexesList = mk.getValue();\n for (String index : indexesList) {\n int indexOrgX = Integer.parseInt(index.split(\"-\")[0]);\n int indexOrgY = Integer.parseInt(index.split(\"-\")[1]);\n for (String newIdx : pairSumMap.get(diff)) {\n int indexNewX = Integer.parseInt(newIdx.split(\"-\")[0]);\n int indexNewY = Integer.parseInt(newIdx.split(\"-\")[1]);\n if (indexOrgX != indexNewX && indexOrgX != indexNewY && indexOrgY != indexNewX && indexOrgY != indexNewY) {\n System.out.println(1);\n return;\n }\n }\n }\n }\n }\n System.out.println(0);\n }",
"private static boolean slowEquals(byte[] a, byte[] b) {\n\t int diff = a.length ^ b.length;\n\t for(int i = 0; i < a.length && i < b.length; i++)\n\t diff |= a[i] ^ b[i];\n\t return diff == 0;\n\t }",
"static void subsetSums(int arr[], int n)\n {\n \n // There are totoal 2^n subsets\n int total = 1 << n;\n \n // Consider all numbers from 0 to 2^n - 1\n for (int i = 0; i < total; i++) {\n int sum = 0;\n \n // Consider binary reprsentation of\n // current i to decide which elements\n // to pick.\n for (int j = 0; j < n; j++)\n if ((i & (1 << j)) != 0)\n sum += arr[j];\n \n // Print sum of picked elements.\n System.out.print(sum + \" \");\n }\n }",
"public static int[] prc(int[] arr,int p)\r\n {\n char[][] barr=new char[arr.length][];\r\n /*for(int i=0;i<barr.length;i++)\r\n barr[i] = new StringBuilder(\"\");*/\r\n int[] onesarr=new int[barr.length];\r\n int odd,even;\r\n odd=even=0;\r\n for(int i=0;i<arr.length;i++)\r\n {\r\n barr[i]=(Integer.toBinaryString(p^arr[i])).toCharArray();\r\n }\r\n\r\n /*for(int i=0;i<barr.length;i++)\r\n System.out.print(barr[i]+\" \");\r\n System.out.println();*/\r\n /*for(int i=0;i<barr.length;i++)\r\n {\r\n char[] tmp=new char[barr[i].length()];\r\n barr[i].getChars(0, barr[i].length(), tmp, 0);\r\n int t=0;\r\n for(int j=0;j<tmp.length;j++)\r\n {\r\n if(tmp[j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }*/\r\n for(int i=0;i<barr.length;i++)\r\n {\r\n int t=0;\r\n for(int j=0;j<barr[i].length;j++)\r\n {\r\n if(barr[i][j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }\r\n /*for(int i=0;i<onesarr.length;i++)\r\n System.out.print(onesarr[i]+\" \");\r\n System.out.println();*/\r\n for(int i=0;i<onesarr.length;i++)\r\n {\r\n if(onesarr[i]%2==0)\r\n even++;\r\n else\r\n odd++;\r\n }\r\n int[] ansarr=new int[2];\r\n ansarr[0]=even;\r\n ansarr[1]=odd;\r\n return ansarr; \r\n }",
"private void merge(int p, int q, int r) {\n int n1 = q - p + 1;\n int n2 = r - (q + 1) + 1;\n int[] left = new int[n1 + 1];\n int[] right = new int[n2 + 1];\n for (int i = 0; i < n1; i++) {\n left[i] = data[p + i];\n }\n left[n1] = Integer.MAX_VALUE;\n for (int j = 0; j < n2; j++) {\n right[j] = data[q + 1 + j];\n }\n right[n2] = Integer.MAX_VALUE;\n\n int i = 0, j = 0;\n for (int k = p; k <= r; k++) {\n if (left[i] <= right[j]) {\n data[k] = left[i];\n i++;\n } else {\n data[k] = right[j];\n j++;\n }\n }\n }",
"public static boolean union(int a, int b, int p[], int r[]){\n int pa=find(a,p,r);\r\n int pb=find(b,p,r);\r\n if(pa==pb)\r\n return true;\r\n if(pa!=pb)\r\n {\r\n if(r[pa]<r[pb])\r\n {\r\n p[pa]=pb;\r\n }\r\n else if(r[pa]>r[pb])\r\n {\r\n p[pb]=pa;\r\n }\r\n else\r\n {\r\n p[pa]=pb;\r\n r[pb]++;\r\n }\r\n }\r\n return false;\r\n }"
] | [
"0.63912386",
"0.6025675",
"0.5966317",
"0.5926358",
"0.58178973",
"0.5762225",
"0.574333",
"0.56870615",
"0.5649743",
"0.5644484",
"0.55936867",
"0.5578121",
"0.5547647",
"0.5526564",
"0.5458172",
"0.5449623",
"0.542417",
"0.5422753",
"0.5412742",
"0.54070985",
"0.5403717",
"0.5402004",
"0.5394998",
"0.5388838",
"0.5388164",
"0.5375384",
"0.5361634",
"0.5356523",
"0.5352147",
"0.5351011",
"0.53473294",
"0.53454816",
"0.53451633",
"0.5339691",
"0.5331025",
"0.532745",
"0.5325543",
"0.53192204",
"0.5314601",
"0.53057235",
"0.52835315",
"0.5271052",
"0.5268247",
"0.5267342",
"0.5262345",
"0.5259043",
"0.5250171",
"0.52490544",
"0.5247351",
"0.5247265",
"0.52416325",
"0.52348536",
"0.5224877",
"0.5222497",
"0.5221304",
"0.5220843",
"0.52064973",
"0.52023864",
"0.51996577",
"0.51865965",
"0.5180544",
"0.5177714",
"0.5176936",
"0.5175425",
"0.5172747",
"0.51713324",
"0.5168279",
"0.51664615",
"0.5154207",
"0.5153297",
"0.51522624",
"0.5148394",
"0.5146637",
"0.5143992",
"0.51410705",
"0.51403797",
"0.5140047",
"0.5138783",
"0.51383716",
"0.51377964",
"0.5136001",
"0.5135834",
"0.51352",
"0.51329255",
"0.512569",
"0.5124425",
"0.5118065",
"0.51174086",
"0.51174086",
"0.5111997",
"0.5101781",
"0.5097748",
"0.50929874",
"0.50928056",
"0.50900775",
"0.50887924",
"0.50871545",
"0.5084224",
"0.5083637",
"0.50766957",
"0.50745547"
] | 0.0 | -1 |
Update new potential and potential panel | @Override public void undoableEditHappened(UndoableEditEvent event) {
if (event.getEdit() instanceof PotentialChangeEdit) {
newPotential.setMean(meanDummyNode.getPotentials().get(0));
newPotential.setVariance(varianceDummyNode.getPotentials().get(0));
//update();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updatePanel() {\n\t\tProbeUtilities.updateModelProbePanel();\n\t}",
"private void update()\n {\n // update the grid square panels\n Component[] components = pnlIsland.getComponents();\n for ( Component c : components )\n {\n // all components in the panel are GridSquarePanels,\n // so we can safely cast\n GridSquarePanel gsp = (GridSquarePanel) c;\n gsp.update();\n }\n \n // update player information\n int[] playerValues = game.getPlayerValues();\n txtPlayerName.setText(game.getPlayerName());\n progPlayerStamina.setMaximum(playerValues[Game.MAXSTAMINA_INDEX]);\n progPlayerStamina.setValue(playerValues[Game.STAMINA_INDEX]);\n progBackpackWeight.setMaximum(playerValues[Game.MAXWEIGHT_INDEX]);\n progBackpackWeight.setValue(playerValues[Game.WEIGHT_INDEX]);\n progBackpackSize.setMaximum(playerValues[Game.MAXSIZE_INDEX]);\n progBackpackSize.setValue(playerValues[Game.SIZE_INDEX]);\n \n //Update Kiwi and Predator information\n txtKiwisCounted.setText(Integer.toString(game.getKiwiCount()) );\n txtPredatorsLeft.setText(Integer.toString(game.getPredatorsRemaining()));\n \n // update inventory list\n listInventory.setListData(game.getPlayerInventory());\n listInventory.clearSelection();\n listInventory.setToolTipText(null);\n btnUse.setEnabled(false);\n btnDrop.setEnabled(false);\n \n // update list of visible objects\n listObjects.setListData(game.getOccupantsPlayerPosition());\n listObjects.clearSelection();\n listObjects.setToolTipText(null);\n btnCollect.setEnabled(false);\n btnCount.setEnabled(false);\n \n // update movement buttons\n btnMoveNorth.setEnabled(game.isPlayerMovePossible(MoveDirection.NORTH));\n btnMoveEast.setEnabled( game.isPlayerMovePossible(MoveDirection.EAST));\n btnMoveSouth.setEnabled(game.isPlayerMovePossible(MoveDirection.SOUTH));\n btnMoveWest.setEnabled( game.isPlayerMovePossible(MoveDirection.WEST));\n }",
"public void updateVisuals ()\n\t{\n\t\tbrainPanel.repaint();\n\t}",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\t}",
"public void gameupdate(){\n game.update();\r\n panel.formUpdate(game.lives);\r\n }",
"public void update()\n {\n if ((potentialFigureOwner != null) &&\n (rightPotentialFigure.isVisible() ||\n bottomPotentialFigure.isVisible()))\n {\n DoubleRectangle shapeBds =\n potentialFigureOwner.getModel().getEltBounds();\n Rectangle bds =\n PrecisionUtilities.getDraw2DRectangle(shapeBds);\n\n if (rightPotentialFigure.isVisible()) {\n // Figure should appear to the right of the existing widget\n rightPotentialFigure.resetBounds(bds.x + bds.width,\n bds.y,\n bds.width,\n bds.height);\n }\n\n if (bottomPotentialFigure.isVisible()) {\n if (potentialFigureOwner instanceof GraphicalContextMenu)\n {\n bds.x =\n PrecisionUtilities.round(shapeBds.x\n + (0.5 * shapeBds.width));\n bds.y =\n PrecisionUtilities.round(shapeBds.y\n + (0.5 * shapeBds.height));\n bds.width = FrameEditorUI.MENU_ITEM_WIDTH;\n bds.height = FrameEditorUI.MENU_ITEM_HEIGHT;\n }\n else {\n if (potentialFigureOwner instanceof GraphicalMenuHeader)\n {\n bds.width =\n (int) Math.round(bds.width * FrameEditorUI.MENU_ITEM_RATIO);\n }\n\n // Figure should appear underneath existing widget\n bds.y += bds.height;\n\n IWidget owner = potentialFigureOwner.getModel();\n Object isSep =\n owner.getAttribute(WidgetAttributes.IS_SEPARATOR_ATTR);\n\n if (NullSafe.equals(WidgetAttributes.IS_SEPARATOR,\n isSep))\n {\n // current widget is a separator and the height of\n // the potential widget needs to be increased\n bds.height =\n (int) Math.round(bds.height * FrameEditorUI.SEPARATOR_RATIO);\n }\n }\n\n bottomPotentialFigure.resetBounds(bds);\n }\n }\n }",
"public void update() {\n\n difT();\n difXY();\n solveFlow();\n //drawColorFlow();\n }",
"public void updateVariables(){\n Map<String, Integer> specialParameter = myLogic.getSpecialParameterToDisplay();\n liveScore.setText(Double.toString(myLogic.getScore()));\n for (String parameter: specialParameter.keySet()) {\n numLives.setText(parameter + specialParameter.get(parameter));\n }\n myMoney.setText(Double.toString(myLogic.getCash()));\n }",
"public void update() {\n\t\tfinal StarSystem oldLocation = getPlayer().getLocation();\n\t\tfinal StarSystem newLocation = getChart().getSelected();\n\t\tgetPlayer().setLocation(newLocation);\n\t\tgetPlayer().setFuel(-oldLocation.distanceToStarSystem(newLocation));\n\t\tgetChart().setSelected(null);\n\t\tgetChart().repaint();\n\t\tplanetLbl.setText(\"Current Location: \" + player.getLocation().getName()\n\t\t\t\t+ \"....Tech Level: \" + player.getLocation().getTechLevel());\n\n\t}",
"void updateControls();",
"@Override\n\tpublic void updatePanel() {\n\t\tstatTable.setStatTable(getModel().getRowCount(),\n\t\t\t\tgetModel().getRowNames(), getModel().getColumnCount(),\n\t\t\t\tgetModel().getColumnNames());\n\t\tgetModel().updatePanel();\n\t}",
"protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void reUpdate() {\n\t\tnumFloorsInBuilding = buildingModel.getNumFloors();\n\t\tPlatform.runLater(() -> label_floors_text.setText(numFloorsInBuilding.toString()));\n\t\t\n\t\tclearAndFillElevatorListView();\n\t}",
"public void update(){\n\t\tif (!VisualizerMain.selectedRun.equals(\"\")){\n\t\t\tupdateEpochNum();\n\t\t\tupdateParticles();\n\t\t\tthis.repaint();\n\t\t}\n\t\t\n\t}",
"public void updatePlayerPanel()\n {\n playerInfoPanel.updateLabel();\n }",
"public void update() {\n\n\t\tdisplay();\n\t}",
"public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}",
"public void update() {\n\t\t\n\t}",
"protected void updatePanelContent() {\n updating = true;\n jTextFieldName.setText(bulb.getName());\n jTextFieldName.setToolTipText(bulb.getType());\n jSlider1.setValue(bulb.getIntensity());\n jToggleButton1.setSelected(bulb.isOn());\n if (bulb.getColor() != null) {\n jRadioCold.setEnabled(true);\n jRadioNormal.setEnabled(true);\n jRadioWarm.setEnabled(true);\n switch(bulb.getColor()) {\n case TradfriConstants.COLOR_NORMAL: jRadioNormal.setSelected(true); break;\n case TradfriConstants.COLOR_WARM: jRadioWarm.setSelected(true); break;\n case TradfriConstants.COLOR_COLD: jRadioCold.setSelected(true); break;\n }\n }\n else {\n jRadioCold.setEnabled(false);\n jRadioNormal.setEnabled(false);\n jRadioWarm.setEnabled(false);\n }\n \n \n if (bulb.isOnline()) {\n jToggleButton1.setEnabled(true);\n jRadioCold.setEnabled(true);\n jRadioNormal.setEnabled(true);\n jRadioWarm.setEnabled(true);\n jSlider1.setEnabled(true);\n jLabelDates.setText(\"Installed: \"+bulb.getDateInstalled()+\" - Last seen: \"+bulb.getDateLastSeen()+\" - Firmware: \" + bulb.getFirmware() + \" [online]\");\n }\n else {\n jToggleButton1.setEnabled(false);\n jRadioCold.setEnabled(false);\n jRadioNormal.setEnabled(false);\n jRadioWarm.setEnabled(false);\n jSlider1.setEnabled(false);\n jLabelDates.setText(\"Installed: \"+bulb.getDateInstalled()+\" - Last seen: \"+bulb.getDateLastSeen()+\" - Firmware: \" + bulb.getFirmware() + \" [offline]\");\n }\n \n updating = false;\n }",
"public void update() {\r\n\t\t\r\n\t}",
"public void update() {\n\t\tupdate(1);\n\t}",
"public UpdateVehicleCharges() {\n initComponents();\n view();\n \n \n }",
"public void update(){}",
"public void update(){}",
"public void update() {\n\t\tremoveAll();\n\t\tdrawGraph();\n\t\tplotEntries();\n\t}",
"public void update(){\r\n\t\t\r\n\t}",
"private void updateInfoValues() {\n menuPanel.updateInfoPanel( tugCount, simulation.getShipsOnSea(), simulation.getShipsDocked(), simulation.getShipsTugged());\n }",
"public void update() {\n\t\t\tif (!max.getText().isEmpty()) {\n\t\t\t\tInteger maxVal = Integer.parseInt(max.getText());\n\t\t\t\tif (maxVal > 2) {\n\t\t\t\t\tboolean toUpdate = false;\n\t\t\t\t\tPlgProbabilityDistribution distr = null;\n\t\t\t\t\tif (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.UNIFORM))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.uniformDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.BETA))) {\n\t\t\t\t\t\tif (!alpha.getText().isEmpty() && !beta.getText().isEmpty()) {\n\t\t\t\t\t\t\tDouble a = Double.parseDouble(alpha.getText());\n\t\t\t\t\t\t\tDouble b = Double.parseDouble(beta.getText());\n\t\t\t\t\t\t\tdistr = PlgProbabilityDistribution.betaDistributionFactory(a, b);\n\t\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.NORMAL))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.normalDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t\tif (toUpdate) {\n\t\t\t\t\t\tp.updateDistribution(dv, maxVal, distr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}",
"private void updateVars()\n {\n\n }",
"public void update() {}",
"void updatePercepts() {\n clearPercepts();\n \n Location r1Loc = model.getAgPos(0);\n //Location r2Loc = model.getAgPos(1);\n \n Literal pos1 = Literal.parseLiteral(\"pos(r1,\" + r1Loc.x + \",\" + r1Loc.y + \")\");\n // Literal pos2 = Literal.parseLiteral(\"pos(r2,\" + r2Loc.x + \",\" + r2Loc.y + \")\");\n\n addPercept(pos1);\n //addPercept(pos2);\n \n if (model.hasObject(Const.ObstacleCode, r1Loc)) {\n addPercept(Const.v1);\n }\n// if (model.hasObject(Const.ObstacleCode, r2Loc)) {\n// addPercept(Const.v2);\n// }\n }",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update();",
"public void update() ;",
"private void refresh() {\n updatePopulationInfo();\n\n // Update current production info\n updateProductionInfo();\n\n // Update the building grid\n updateBuildingInfo();\n\n // Update the warehouse display\n updateWarehouse();\n\n // Update the list of ships/carriers in port\n updateInPortInfo();\n\n // Update the list of cargo on the selected carrier\n updateCargoInfo();\n }",
"public void update() {\n\t\tupdateParticles();\n\t\tupdateSprings();\n\n\t\tif (groups != null) {\n\t\t\tfor (VParticleGroup g : groups) {\n\t\t\t\tg.update();\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}",
"private void updatePanels() // updatePanels method start\n\t{\n\t\tbalanceOutput.setText(log.balanceReport());\n\t\tlogOutput.setText(log.logReport());\n\t\tATBOutput.setText(log.adjustedTrialBalance());\n\t\tISOutput.setText(log.incomeStatement());\n\t\tRESOutput.setText(log.retainedEarningsStatement());\n\t\tBSOutput.setText(log.balanceSheet());\n\t}",
"public void updateHud() {\r\n\r\n\t\tif (m_planet.getCoordinateSystemType() == Planet.CoordinateSystemType.GEOCENTRIC) {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Hud.getSexagesinal(m_planet.getLongitude(), true);\r\n\t\t\tlat = Hud.getSexagesinal(m_planet.getLatitude(), false);\r\n\t\t\t\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t} else {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Double.toString(m_planet.getLongitude());\r\n\t\t\tlat = Double.toString(m_planet.getLatitude());\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t}\r\n\t\t\r\n\t\tcompass.setScale(new Vec3(75,75,75));\r\n\t\tcompass.setPosition(new Vec3(m_canvas3d.getWidth()-70,m_canvas3d.getHeight()-70,0));\r\n\t\t// Repainting view\r\n\t\tif (m_canvas3d != null)\r\n\t\t\tm_canvas3d.repaint();\r\n\t}",
"protected void updateDynamic()\n {\n // Nothing at this level.\n }",
"public void updateStatsPanel() {\n\t\t//update versus table\n\t\tuser1 = Login.getInstance().getUserOne();\n\t\tuser2 = Login.getInstance().getUserTwo();\n\t\t\n\t\tif(isVersusTableInitialized==true) {\n\t\t\tmainPanel.remove(versusTable);\n\t\t}\n\t\t\n\t\tversusTable = generateVersusTable();\n\t\tmainPanel.add(versusTable);\n\t\tisVersusTableInitialized=true;\n\t\tversusTable.setBounds(600, 160, 150, 45);\n\t\tversusTable.setBackground(Color.LIGHT_GRAY);\n\t\tversusTable.setEnabled(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t\t\n\t\t//update top ten table\n\t\tif(isTopTenTableInitialized==true) {\n\t\t\tmainPanel.remove(topTenTable);\n\t\t}\n\t\t\n\t\ttopTenTable=generateTopTenTable();\n\t\tmainPanel.add(topTenTable);\n\t\tisTopTenTableInitialized=true;\n\t\ttopTenTable.setBounds(150, 160, 150, 175);\n\t\ttopTenTable.setBackground(Color.LIGHT_GRAY);\n\t\ttopTenTable.setEnabled(false);\n\t\ttitle.setForeground(Color.WHITE);\n\t}",
"public void update()\n\t{\n\t\tsuper.update();\n\t}",
"public void refreshPanelComponents() {\r\n }",
"public void refresh() {\r\n\t\tneeds.setText(needs());\r\n\t\tproduction.setText(production());\r\n\t\tjobs.setText(jobs());\r\n\t\tmarketPrices.setText(marketPrices());\r\n\t\tmarketSellAmounts.setText(marketSellAmounts());\r\n\t\tmarketBuyAmounts.setText(marketBuyAmounts());\r\n\t\tcompanies.setText(companies());\r\n\t\tmoney.setText(money());\r\n\t\ttileProduction.setText(tileProduction());\r\n\t\tcapital.setText(capital());\r\n\t\thappiness.setText(happiness());\r\n\t\tland.setText(land());\r\n\t\t//ArrayList of Agents sorted from lowest to highest in money is retrieved from Tile\r\n\t\tagents=tile.getAgentsByMoney();\r\n\t\tgui3.refresh();\r\n\t\tsliderPerson.setText(\"\"+agents.get(slider.getValue()).getMoney());\r\n\t\ttick.setText(tick());\r\n\t\tthis.pack();\r\n\t}",
"public void refresh() {\r\n\t\tmainGUI.getPlayerFrame().setMyTurn(\r\n\t\t\t\tclient.getID() == island.getCurrentPlayer().getID());\r\n\t\ttradingMenu.update();\r\n\t\tsupplyPanel.update();\r\n\t\tcardMenu.update();\r\n\t\trefreshOpponents();\r\n\t}",
"private void updateFields(){\n\n updateTotalPay();\n updateTotalTip();\n updateTotalPayPerPerson();\n }",
"public void updateScoreboard() {\n\t\tif(obj != null) {\t\t\t\r\n\t\t\tobj.unregister();\r\n\t\t}\r\n\t\tobj = scoreboard.registerNewObjective(\"gui\", \"dummy\");\r\n\t\tobj.setDisplaySlot(DisplaySlot.SIDEBAR);\r\n\t\tobj.setDisplayName(\"§c§lVitality\");\r\n\t\tScore currentRank = obj.getScore(\"§e§lRank\");\r\n\t\tcurrentRank.setScore(40);\r\n\t\tScore currentRankVal = obj.getScore(\"§f\" + getRank().getName());\r\n\t\tcurrentRankVal.setScore(39);\r\n\t\tScore spacer1 = obj.getScore(\" \");\r\n\t\tspacer1.setScore(38);\r\n\t\tPrisonRank next = PrisonRank.getNextRank(rank);\r\n\t\tif(next != null) {\r\n\t\t\tScore nextRank = obj.getScore(\"§b§lProgress to \" + next.getName());\r\n\t\t\tnextRank.setScore(37);\r\n\t\t\tdouble percent = (Prison.getEco().getBalance(this) / next.getValue()) * 100;\r\n\t\t\tif(percent > 100) {\r\n\t\t\t\tpercent = 100;\r\n\t\t\t}\r\n\t\t\tScore nextRankVal = obj.getScore(\"§f\" + ((int)percent + \"%\"));\r\n\t\t\tnextRankVal.setScore(36);\r\n\t\t} else {\r\n\t\t\tScore nextRank = obj.getScore(\"§b§lNext Rank\");\r\n\t\t\tnextRank.setScore(37);\r\n\t\t\tScore nextRankVal = obj.getScore(\"§fNone\");\r\n\t\t\tnextRankVal.setScore(36);\r\n\t\t}\r\n\t\tScore spacer2 = obj.getScore(\" \");\r\n\t\tspacer2.setScore(35);\r\n\t\tScore money = obj.getScore(\"§a§lBalance\");\r\n\t\tmoney.setScore(34);\r\n\t\tScore moneyVal = obj.getScore(\"§f$\" + moneyFormat.format(Prison.getEco().getBalance(this)));\r\n\t\tmoneyVal.setScore(33);\r\n\t\tScore spacer3 = obj.getScore(\" \");\r\n\t\tspacer3.setScore(32);\r\n\t\t\r\n\t\tScore mult = obj.getScore(\"§6§lMultiplier\");\r\n\t\tmult.setScore(31);\r\n\t\t\r\n\t\tif(Multiplier.getMultiplier() > 1.0) {\r\n\t\t\tScore multVal = obj.getScore(\"§f\" + Multiplier.getMultiplier() + \"x\");\r\n\t\t\tmultVal.setScore(30);\r\n\t\t} else {\r\n\t\t\tScore multVal = obj.getScore(\"§fNone\");\r\n\t\t\tmultVal.setScore(30);\r\n\t\t}\r\n\t\tScore spacer4 = obj.getScore(\" \");\r\n\t\tspacer4.setScore(29);\r\n\t\tScore onlineStaff = obj.getScore(\"§c§lOnline Staff\");\r\n\t\tonlineStaff.setScore(28);\r\n\t\tScore onlineStaffVal = obj.getScore(\"§f\" + Prison.getStaffOnline().getCurrent());\r\n\t\tonlineStaffVal.setScore(27);\r\n\t}",
"Lab.Update update();",
"public void update() {\n }",
"public void update(){\r\n }",
"public void update() {\n\t\tVec2 newPos = calculatePos();\n\t\t/* energy bar */\n\t\tfloat newEnergy = actor.getEnergy();\n\t\tfloat maxEnergy = actor.getEnergyLimit();\n\t\tenergy.setPosition(newPos.getX(), newPos.getY() + paddingHealth / Application.s_Viewport.getX(), newEnergy,\n\t\t\t\tmaxEnergy);\n\t\t/* health bar */\n\t\tfloat newHealth = actor.getHealth();\n\t\tfloat maxHealth = actor.getHealthLimit();\n\t\thealth.setPosition(newPos.getX(), newPos.getY() + paddingEnergy / Application.s_Viewport.getX(), newHealth,\n\t\t\t\tmaxHealth);\n\t\t/* name label */\n\t\tplayerName.setPosition(newPos.getX(), newPos.getY() + paddingName / Application.s_Viewport.getY());\n\t}",
"public void update( )\n {\n FormPortletHome.getInstance( ).update( this );\n }",
"@Override\n protected void update() {\n if (Pneumatics.get_instance().get_solenoids() && in_inner_thresh()) {\n Pneumatics.get_instance().set_solenoids(false);\n }\n }",
"public void refresh(){\n\t\tint i=0;\n\t\tEntity editedEntity=getEditedEntity();\n\t\tfor(FloatTrait t:swat.dk.getTraits(tt)){\n\t\t\t((Swat.Slider)((JComponent)slidersPanel.getComponent(i)).getComponent(1)).mSetValue(toSlider(getValue(editedEntity,t)));\n\t\t\ti++;\n\t\t}\n\t}",
"public void update()\n\t{\n\t\tJPanel panel = getPanel();\n\n\t\tif (panel instanceof StylePanel)\n\t\t\t((StylePanel) panel).updatePanel();\n\t}",
"private void updateChannelObject() {\n int i = channelSelect.getSelectedIndex();\n Channel c = channelList.get(i);\n \n double a = Double.valueOf(ampBox.getText()) ;\n double d = Double.valueOf(durBox.getText());\n double f = Double.valueOf(freqBox.getText());\n double o = Double.valueOf(owBox.getText());\n \n c.updateSettings(a, d, f, o);\n }",
"public void updateGameWorld() {\r\n\t\t//divide the user entered height by the height of the canvas to get a ratio\r\n\t\tfloat canvas_height = Window.getCanvas().getHeight();\r\n\t\tfloat new_height = EnvironmentVariables.getHeight();\r\n\t\tfloat ratio = new_height / canvas_height;\r\n\t\t\r\n\t\t//use this ration th=o set the new meter value\r\n\t\tEnvironmentVariables.setMeter(EnvironmentVariables.getMeter() * ratio);\r\n\t\t\r\n\t\t//use the ratio to set all objects new location\r\n\t\tfor(GameObject obj: EnvironmentVariables.getWorldObjects()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tfor(GameObject obj: EnvironmentVariables.getTerrain()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tif(EnvironmentVariables.getMainPlayer() != null) {\r\n\t\t\tEnvironmentVariables.getMainPlayer().setX(EnvironmentVariables.getMainPlayer().getX() * ratio);\r\n\t\t\tEnvironmentVariables.getMainPlayer().setY(EnvironmentVariables.getMainPlayer().getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}",
"@Override\n public void update() {\n updateHealth();\n updateActiveWeapon();\n updateAmmunition();\n updateWaveCounter();\n updateReloading();\n }",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"public void update(){\n \tSystem.out.println(model.toString());\n\t\tnumberofsteps.setText(model.toString());\n\t\tint selectedColor = model.getCurrentSelectedColor();\n\t\t\n\t\t// Update dots\n\t\tfor (int i = 0; i < size; i++){\n\t\t\tfor (int j = 0; j < size; j++){\n\t\t\t\t// Assign captured dots to correct colour\n\t\t\t\tif (model.isCaptured(i, j))\n\t\t\t\t\tdots[i][j].setColor(selectedColor);\n\t\t\t}\n\t\t}\n\t\t\n }",
"public void updateGamePanel() {\n\t\tthis.removeAll();\n\t\t\n\t\tButton2 buttonTip = new Button2(\"DICA\", 75, 100, 100, 100);\n\t\tbuttonTip.addActionListener(e -> Controller.game.showTip());\n\t\tthis.add(buttonTip);\n\t\t\n\t\tButton2 menu = new Button2(\"Menu\", 200, 100, 100, 100);\n\t\tmenu.addActionListener(e -> this.frame.setVisible(\"menu\"));\n\t\tthis.add(menu);\n\t\t\n\t\tthis.drawButtons();\n\t\t\n\t\t//Adding labels\n\t\tthis.add(frame.getWordShow());\n\t\tthis.add(frame.getLifeShow());\n\t\t\n\t\tthis.frame.add(this);//Adding the gameJPanel to the frame\n\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n public void update(Observable o, Object arg) {\n this.currentSelectedEntity = EntityObserver.selected;\n manageComponentVisibility();\n \n if (objectPanel.isVisible()) {\n setType();\n setPosition();\n setEntityDampening();\n setEntityReflection();\n setEntityRotation();\n \n if (colorPanel.isVisible()) {\n manageLights(EntityObserver.selected);\n }\n }\n }",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"public void forces_totals_maybe_panels () { \n // part 1 Forces.\n cp_computeForces();\n // part 2. totals\n updateTotals();\n // part 3. maybe update GUI\n if (can_do_gui_updates) {\n out_top.load_selected_tab_panel();\n out_bottom.load_selected_tab_panel();\n }\n\n // moved to DashBoard.loadPanel\n //if (can_do_gui_updates) {\n // // lift force\n // dash.outlft_setText(make_force_info_in_display_units(current_part.lift, true));\n // // drag force\n // dash.outDrag_setText(make_force_info_in_display_units(current_part.drag, true));\n // \n // String out_aux_text = \"\";\n // switch (out_aux_idx) {\n // case 0: out_aux_text = pprint(filter1(Math.abs(current_part.cl/current_part.cd))); break; // L/D\n // case 1: out_aux_text = pprint(filter3(current_part.cl)); break;\n // case 2: out_aux_text = pprint(filter3(current_part.cd)); break;\n // case 3: out_aux_text = pprint(filter0(current_part.reynolds)); break;\n // }\n // dash.out_aux_setText(out_aux_text);\n // \n // //dash.outReynolds_setText(pprint(filter0(current_part.reynolds)));\n // \n // // TODO: maybe minimize re-update more? This can be placed in\n // // spots that directly afftect the data (parts geom, VPP targets etc)\n // \n // out_bottom.perfweb.updateReport(); \n //}\n //\n //\n //// need it here? if (current_part != null) current_part.save_state();\n //// moving this to recomp_all_parts!!!!\n //// updateTotals();\n //\n ////track_current_part.cl_changes();\n //\n //if (recomp_all_parts_reentry_count == 0 ) \n // // save time doing incremental updates. \n // updateTotals();\n }",
"@Override\n\tpublic void update(Observable arg0, Object arg1) {\n\t\tSystem.err.println(\"Update chiamato\");\n\t\tremoveAll();\n\t\tetichetta = director.getCurrentEtichetta();\n\t\taddComponentsToPanel();\n\t\tupdateUI();\n\t}",
"@Override\r\n\tpublic void update() {\r\n\t}",
"public Update_info() {\n initComponents();\n display_data();\n }",
"public void update()\n {\n reinit(viewer.getScene().getActors());\n\n list.invalidate();\n invalidate();\n repaint();\n }",
"@Override\r\n\tpublic void update() {\r\n\t\t// get the first element and set the values according to its\r\n\t\t// information\r\n\t\tIqmDataBox iqmDataBox = (IqmDataBox) this.workPackage.getSources().get(0);\r\n\t\tPlanarImage pi = iqmDataBox.getImage();\r\n\r\n\t\tjFormattedTextFieldOldWidth.setValue(pi.getWidth());\r\n\t\tjFormattedTextFieldOldHeight.setValue(pi.getHeight());\r\n\r\n\t\tint left = ((Number) jSpinnerLeft.getValue()).intValue();\r\n\t\tint right = ((Number) jSpinnerRight.getValue()).intValue();\r\n\t\tint top = ((Number) jSpinnerTop.getValue()).intValue();\r\n\t\tint bottom = ((Number) jSpinnerBottom.getValue()).intValue();\r\n\r\n\t\t// Set image dependent initial values;\r\n\t\tjSpinnerNewWidth.removeChangeListener(this);\r\n\t\tjSpinnerNewWidth.setValue(pi.getWidth() + left + right);\r\n\t\tjSpinnerNewWidth.addChangeListener(this);\r\n\t\tjSpinnerNewHeight.removeChangeListener(this);\r\n\t\tjSpinnerNewHeight.setValue(pi.getHeight() + top + bottom);\r\n\t\tjSpinnerNewHeight.addChangeListener(this);\r\n\t\t\r\n\t\tif (buttConst.isSelected()){\r\n\t\t\ttbConst.setTitleColor(Color.BLACK);\r\n\t\t\tjLabelConst.setEnabled(true);\r\n\t\t\tjSpinnerConst.setEnabled(true);\r\n\t\t} else {\r\n\t\t\ttbConst.setTitleColor(Color.GRAY);\r\n\t\t\tjLabelConst.setEnabled(false);\r\n\t\t\tjSpinnerConst.setEnabled(false);\r\n\t\t}\r\n\t\tthis.repaint(); //because of tb TitledBorder cahnge of color\r\n\t\t\r\n\r\n\t\tthis.updateParameterBlock();\r\n\t\tthis.setParameterValuesToGUI();\r\n\t}",
"public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}",
"private void update()\n {\n\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n //System.out.println(\"UPDATE\");\n updateHumanPlayerMoney();\n updateListViewDoctorItems();\n updateListViewHospitalItems();\n updateListViewLogWindow();\n updateListViewComputerPlayer();\n load_figure();\n updateComputerPlayerMoney();\n }\n });\n }",
"protected abstract void update();",
"protected abstract void update();",
"public void update(){\n }",
"@Override\n\tpublic void Update(JPanel panel) {\n\t\t\n\t}",
"private void updateInformation(){\n view.getPrompt().setText(getPrompt());\n view.getScore().setText(getScore());\n }",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() { }",
"public void updateSiteParams() {\n //get the selected IMR\n\tScalarIntensityMeasureRelationshipAPI imr = imrGuiBean.getSelectedIMR_Instance();\n\tsiteGuiBean.replaceSiteParams(imr.getSiteParamsIterator());\n\tsiteGuiBean.validate();\n siteGuiBean.repaint();\n }",
"public void update(){\n\t\tthis.setVisible(true);\n\t}"
] | [
"0.701449",
"0.6485436",
"0.64014727",
"0.63272965",
"0.6267548",
"0.62156594",
"0.6206595",
"0.6158183",
"0.61138827",
"0.6113367",
"0.6080941",
"0.6038098",
"0.5924382",
"0.5924382",
"0.5924382",
"0.5924382",
"0.5906986",
"0.58994555",
"0.5889594",
"0.58884215",
"0.5884014",
"0.5882716",
"0.58775187",
"0.5834765",
"0.5829909",
"0.58267635",
"0.58149445",
"0.58149445",
"0.58125985",
"0.5804938",
"0.5799718",
"0.5792388",
"0.5790336",
"0.57863665",
"0.5781033",
"0.5774993",
"0.5773215",
"0.5773215",
"0.5773215",
"0.5773215",
"0.5773215",
"0.5773215",
"0.5773215",
"0.5769226",
"0.57666427",
"0.5766073",
"0.5754823",
"0.57524574",
"0.57476556",
"0.5746918",
"0.57468307",
"0.5742943",
"0.5737856",
"0.57300127",
"0.5726224",
"0.57115823",
"0.5710903",
"0.5707369",
"0.57009256",
"0.56901515",
"0.5679276",
"0.5677357",
"0.567436",
"0.56738776",
"0.56637484",
"0.56555045",
"0.5650654",
"0.56500304",
"0.5649746",
"0.56314355",
"0.56314355",
"0.56314355",
"0.56314355",
"0.56314355",
"0.56307024",
"0.5626663",
"0.56222594",
"0.56222594",
"0.5622135",
"0.5622135",
"0.5622135",
"0.56192845",
"0.5617371",
"0.56170404",
"0.56129974",
"0.5611592",
"0.56039023",
"0.5601232",
"0.5600109",
"0.55989486",
"0.5597766",
"0.5594356",
"0.5594356",
"0.55886734",
"0.5578285",
"0.5574522",
"0.5571621",
"0.5571621",
"0.556457",
"0.556315",
"0.55623704"
] | 0.0 | -1 |
Provides characteristic language independent and language dependent names as well as characteristic values from knowledgebase | public interface ProductCsticAndValueParameterProvider
{
/**
* Retrieves characteristic language independent and language dependent names as well as characteristic values from
* knowledgebase.
*
* @param productCode
* product code for which the data is retrieved
* @return Map with characteristic language independent name as a key and CsticParameterWithValues as a value
*/
Map<String, CsticParameterWithValues> retrieveProductCsticsAndValuesParameters(final String productCode);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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}",
"io.dstore.values.StringValue getCharacteristicDescription();",
"public String getCharacteristics() {\n return characteristics;\n }",
"protected abstract String listLearnValues();",
"HashMap<String, String> getAdditionalDescriptions();",
"com.clarifai.grpc.api.ConceptLanguage getConceptLanguages(int index);",
"public abstract String[] getDescriptions();",
"public String getCategoriaDescripcion();",
"String getDescriptionKey();",
"public Map<String,Object> getCharacteristics(String[] names) throws DataExchangeException;",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"public abstract java.lang.String getAcma_descripcion();",
"public Map<String, I18nizableText> getVariablesDescriptions();",
"public String getDESC_ENG() {\r\n return DESC_ENG;\r\n }",
"String getDesc();",
"java.lang.String getDesc();",
"public String descriere(){\r\n\t\treturn \"Flori\";\r\n\t}",
"public String getAfinnEnglishLibrary(){\n String output = \"\";\n for (String key : afinnEnglishLibrary.keySet())\n {\n String value = afinnEnglishLibrary.get(key).toString();\n output += (\"\\n\" +key+\": \"+value);\n }\n output += (\"\\nWords: \"+ afinnEnglishLibrary.size());\n return output; \n }",
"@Override\n\tpublic String getDescription() {\n\t\tString ret = Localization.SINGLETON.getElement(\"POTION_GETDESCRIPTION\");\n\t\tret = ret.replace(\"[[POTION_NAME]]\", this.name);\n\t\tret = ret.replace(\"[[POTION_ENERGY]]\", \"\" + ENERGY);\n\t\tret = ret.replace(\"[[POTION_STRENGTH]]\", \"\" + STRENGTH);\n\t\treturn ret;\n\t}",
"io.dstore.values.StringValue getPersonOutputCharacteristics();",
"String getPersonality();",
"public interface AppAttributes{\n\n /**\n The DVB registered value for all DVB-J applications.\n */\n public static final int DVB_J_application = 1; \n\n /**\n The DVB registered value for all DVB-HTML applications.\n */\n public static final int DVB_HTML_application = 2;\n\n /**\n * This method returns the type of the application (as registered by DVB).\n *\n * @return the type of the application (as registered by DVB).\n * @since MHP1.0\n */\n public int getType();\n\n /**\n * This method returns the name of the application. If the default language\n * (as specified in user preferences) is in the set of available language / name pairs\n * then the name in that language shall be returned. Otherwise\n * this method will return a name which appears in that set on a \"best-effort basis\".\n * If no application names are signalled, an empty string shall be returned.\n * @return the name of the application\n *\n * @since MHP1.0\n */\n public String getName();\n\n /**\n * This method returns the name of the application in the language which \n * is specified by the parameter passed as an argument. If the language\n * specified is not in the set of available language /name pairs then an\n * exception shall be thrown.\n *\n * @param iso639code the specified language, encoded as per ISO 639.\n * @return returns the name of the application in the specified language\n * @throws LanguageNotAvailableException if the name is not available in the language specified or if the parameter passed is null\n *\n * @since MHP1.0\n */\n public String getName(String iso639code) \n\tthrows LanguageNotAvailableException;\n\n /**\n * This method returns all the available names for the application\n * together with their ISO 639 language code. \n * If no application names are signalled, an array of length zero shall be returned.\n *\n * @return the possible names of the application, along with \n * their ISO 639 language code. The first string in each sub-array is the \n * ISO 639 language code.\n * The second string in each sub-array is the corresponding application name.\n * @since MHP1.0\n */\n public String[][] getNames () ;\n\n /**\n * This method returns those minimum profiles required for the application\n * to execute. Profile\n * names shall be encoded using the same encoding specified elsewhere in this\n * specification as input for use with the <code>java.lang.System.getProperty</code>\n * method to query if a profile is supported by this platform. <p>For example,\n * for implementations conforming to the first version of the \n * specification, the translation from AIT signaling values to strings\n * shall be as follows:\n * <ul>\n * <li> '1' in the signaling will be translated into \n * 'mhp.profile.enhanced_broadcast'\n * <li> '2' in the signaling will be translated into \n * 'mhp.profile.interactive_broadcast'\n * </ul>\n *\n * Only profiles supported by this particular MHP terminal shall be returned.\n * Hence the method can return an array of size zero where all the profiles\n * on which an application can execute are unknown.\n *\n * @return an array of Strings, each String describing a profile.\n *\n * @since MHP1.0\n */\n public String[] getProfiles();\n \n /**\n * This method returns an array of integers containing the version\n * number of the specification required to run this application\n * at the specified profile. \n *\n * @param profile a profile encoded as described in the main body of\n * the present document for use with <code>java.lang.System.getProperty</code>.\n *\n * @return an array of integers, containing the major, minor \n * and micro values (in that order) required for the specified profile. \n * @throws IllegalProfileParameterException thrown if the profile specified\n * is not one of the minimum profiles required for the application to execute\n * or if the parameter passed in is null\n * @since MHP1.0\n */\n public int[] getVersions(String profile) \n\tthrows IllegalProfileParameterException ;\n\n /**\n * This method determines whether the application is bound to a single service.\n *\n * @return true if the application is bound to a single service, false otherwise. \n * @since MHP1.0\n */\n public boolean getIsServiceBound () ;\n\n /**\n * This method determines whether the application is startable or not.\n * An Application is not startable if any of the following apply.<ul>\n\n * <li>The application is transmitted on a remote connection.\n\n * <li>The caller of the method does not have the Permissions to start it.\n * <li>if the application is signalled with a control code which is neither AUTOSTART nor PRESENT.\n * </ul>\n * If none of the above apply, then the application is startable.\n * <p> The value returned by this method does not depend on whether the \n * application is actually running or not.\n * \n * @return true if an application is startable, false otherwise.\n *\n * @since MHP1.0\n */\n public boolean isStartable () ;\n\n /**\n * This method returns the application identifier. \n *\n * @return the application identifier\n * @since MHP1.0\n */\n public AppID getIdentifier () ;\n\n /**\n * This method returns an object encapsulating the information about the\n * icon(s) for the application.\n *\n * @return the information related to the icons that\n * are attached to the application or null if no icon information is available\n * @since MHP1.0\n */\n public AppIcon getAppIcon () ;\n\n /**\n * This method returns the priority of the application.\n *\n * @return the priority of the application.\n *\n * @since MHP1.0\n */\n public int getPriority();\n\n /**\n * This method returns the locator of the Service describing the application. \n * For an application transmitted on a remote connection, the returned\n * locator shall be the service for that remote connection. For applications\n * not transmitted on a remote connection, the service returned shall be the\n * currently selected service of the service context within which the application \n * calling the method is running.\n * \n * @return the locator of the Service describing the application.\n * @since MHP1.0\n */\n public org.davic.net.Locator getServiceLocator();\n\n\n /**\n * The following method is included for properties that do not have \n * explicit property accessors. The naming of properties and their return\n * values are described in the main body of the present document.\n *\n * @since MHP1.0\n * \n * @param index a property name\n * @return either the return value corresponding to the property name or null\n * if the property name is unknown or null\n */\n public Object getProperty (String index) ;\n\n\n /**\n * This method determines whether the application is marked as being\n * visible to users. An inter-operable application shall honour this\n * visibility setting. Thus a generic launching application shall list\n * applications that are marked as visible and shall not list\n * applications that are not marked as visible.\n *\n * @return <code>true</code> if this application is marked as being\n * visible to users, <code>false</code> otherwise.\n * @since MHP1.0.3\n */\n public boolean isVisible();\n\n}",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _dictData.getDescription();\n\t}",
"io.dstore.values.StringValueOrBuilder getCharacteristicDescriptionOrBuilder();",
"public String[] getLanguages() {\n/* 238 */ return getStringArray(\"language\");\n/* */ }",
"io.dstore.values.StringValue getPageCategoryDescription();",
"@Override\n\tpublic String toString() {\n\t\treturn name+\" : \"+ weight +\" KG \"+(isMale?\", ─đ\":\", ┼«\")+ \", \"+education;\n\t}",
"java.util.List<com.clarifai.grpc.api.ConceptLanguage> \n getConceptLanguagesList();",
"public String[] getCharacteristicNames() throws DataExchangeException;",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"public String getDescription();",
"String getConcept();"
] | [
"0.6296796",
"0.5919558",
"0.58602154",
"0.58503675",
"0.5776832",
"0.5638855",
"0.55984193",
"0.5553416",
"0.55421257",
"0.55315053",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5515111",
"0.5510509",
"0.5510509",
"0.5510509",
"0.5510509",
"0.5510509",
"0.5510509",
"0.5510509",
"0.5510509",
"0.5510509",
"0.54821306",
"0.5478919",
"0.5473716",
"0.54669577",
"0.5451903",
"0.5447702",
"0.54449934",
"0.5439683",
"0.5438865",
"0.5427917",
"0.5421167",
"0.54190445",
"0.54053074",
"0.53948927",
"0.5357943",
"0.53521353",
"0.5344649",
"0.53301936",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.5325296",
"0.53184026"
] | 0.55451316 | 8 |
Retrieves characteristic language independent and language dependent names as well as characteristic values from knowledgebase. | Map<String, CsticParameterWithValues> retrieveProductCsticsAndValuesParameters(final String productCode); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getCharacteristicNames() throws DataExchangeException;",
"io.dstore.values.StringValue getCharacteristicDescription();",
"public Map<String,Object> getCharacteristics(String[] names) throws DataExchangeException;",
"public String getCharacteristics() {\n return characteristics;\n }",
"public Object getCharacteristic(String name) throws DataExchangeException;",
"io.dstore.values.StringValueOrBuilder getCharacteristicDescriptionOrBuilder();",
"public double[] getCharacteristics() {\r\n\t\treturn characteristics;\r\n\t}",
"io.dstore.values.StringValue getPersonCharacteristicIds();",
"protected abstract String listLearnValues();",
"public List<BluetoothGattCharacteristic> getCharacteristics() {\n/* 112 */ throw new RuntimeException(\"Stub!\");\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}",
"private List<Germplasm> getGermplasmByKeyCharacteristics(ArrayList<String> keyCharList, String KeyChar) {\n\t\tBrowseGermplasmManagerImpl mgr = new BrowseGermplasmManagerImpl();\n\t\treturn mgr.getGermplasmKeyCharacteristicsAbiotic(keyCharList, KeyChar);\n\t}",
"public io.dstore.values.StringValueOrBuilder getCharacteristicDescriptionOrBuilder() {\n return getCharacteristicDescription();\n }",
"com.clarifai.grpc.api.ConceptLanguage getConceptLanguages(int index);",
"public interface CharacteristicContext\n{\n\t/** Default value when characteristic is not initialized. */\n\tpublic static final Object UNINITIALIZED = null;\n\n\t/**\n\t * Accesses the complete map of characteristics as name value pairs\n\t * for this context. This method returns a map of currently known\n\t * characteristics. If it is known that a given characteristic exists, it\n\t * has to be present in the map. If the underlying source is remote, this\n\t * method may optimize access to the characteristics, since underlying\n\t * implementations may support grouped data access requests. Primitive\n\t * types must be wrapped in <code>Object</code> wrappers.\n\t *\n\t * @param names array of characteristic names\n\t *\n\t * @return Map a map of characteristics for this context\n\t *\n\t * @exception DataExchangeException because this method communicates with\n\t * the underlying data source, an exception may be thrown if\n\t * the communication fails.\n\t */\n\tpublic Map<String,Object> getCharacteristics(String[] names) throws DataExchangeException;\n\n\t/**\n\t * Returns names of all characteristics for this context. Return\n\t * value will be an array of non-null characteristic names.\n\t *\n\t * @return an array of non-null characteristic names\n\t *\n\t * @throws DataExchangeException if operation fails\n\t */\n\tpublic String[] getCharacteristicNames() throws DataExchangeException;\n\n\t/**\n\t * Returns the value of the characteristic. If the characteristic\n\t * with such name does not exist this method returns <code>null</code>.\n\t *\n\t * @param name the name of the characteristic, may not be <code>null</code>\n\t * or an empty string\n\t *\n\t * @return Object the value of the characteristic or <code>null</code> if\n\t * unknown\n\t *\n\t * @exception DataExchangeException when the query for the characteristic\n\t * value on the data source fails\n\t */\n\tpublic Object getCharacteristic(String name) throws DataExchangeException;\n\n\t/**\n\t * Adds a property change listener. The listeners will be notified\n\t * whenever the value of the characteristic changes, or when a new\n\t * characteristic is added that was not present in the context before.\n\t *\n\t * @param l a listener object\n\t */\n\tpublic void addPropertyChangeListener(PropertyChangeListener l);\n\n\t/**\n\t * Removes a property change listener. The notifications about\n\t * characteristics will no longer be sent.\n\t *\n\t * @param l a listener object\n\t *\n\t * @see #addPropertyChangeListener\n\t */\n\tpublic void removePropertyChangeListener(PropertyChangeListener l);\n\n\t/**\n\t * By contract with JavaBean specifications.\n\t *\n\t * @return array of registered listeners\n\t */\n\tpublic PropertyChangeListener[] getPropertyChangeListeners();\n}",
"public String[] getLanguages() {\n/* 238 */ return getStringArray(\"language\");\n/* */ }",
"java.util.List<com.clarifai.grpc.api.ConceptLanguage> \n getConceptLanguagesList();",
"HashMap<String, String> getAdditionalDescriptions();",
"public abstract String[] getDescriptions();",
"public io.dstore.values.StringValueOrBuilder getCharacteristicDescriptionOrBuilder() {\n if (characteristicDescriptionBuilder_ != null) {\n return characteristicDescriptionBuilder_.getMessageOrBuilder();\n } else {\n return characteristicDescription_ == null ?\n io.dstore.values.StringValue.getDefaultInstance() : characteristicDescription_;\n }\n }",
"public interface ProductCsticAndValueParameterProvider\n{\n\n\t/**\n\t * Retrieves characteristic language independent and language dependent names as well as characteristic values from\n\t * knowledgebase.\n\t *\n\t * @param productCode\n\t * product code for which the data is retrieved\n\t * @return Map with characteristic language independent name as a key and CsticParameterWithValues as a value\n\t */\n\tMap<String, CsticParameterWithValues> retrieveProductCsticsAndValuesParameters(final String productCode);\n}",
"io.dstore.values.StringValue getPersonOutputCharacteristics();",
"public io.dstore.values.StringValue.Builder getCharacteristicDescriptionBuilder() {\n \n onChanged();\n return getCharacteristicDescriptionFieldBuilder().getBuilder();\n }",
"public org.hl7.fhir.GroupCharacteristic[] getCharacteristicArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(CHARACTERISTIC$12, targetList);\n org.hl7.fhir.GroupCharacteristic[] result = new org.hl7.fhir.GroupCharacteristic[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public io.dstore.values.StringValue getCharacteristicDescription() {\n if (characteristicDescriptionBuilder_ == null) {\n return characteristicDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : characteristicDescription_;\n } else {\n return characteristicDescriptionBuilder_.getMessage();\n }\n }",
"public abstract java.lang.String getAcma_descripcion();",
"public int characteristics() {\n/* 1680 */ return this.characteristics;\n/* */ }",
"public String getCategoriaDescripcion();",
"public int characteristics() {\n/* 1460 */ return this.characteristics;\n/* */ }",
"io.dstore.values.StringValue getPageCategoryDescription();",
"public int characteristics() {\n/* 1570 */ return this.characteristics;\n/* */ }",
"public String getAccountDescription(String elementId) {\n String sqlQuery = \"\", name = \"\";\n PreparedStatement st = null;\n ResultSet rs = null;\n try {\n sqlQuery = \" SELECT C_ELEMENTVALUE.name as name FROM C_ELEMENTVALUE WHERE C_ELEMENTVALUE_ID = ? AND C_ELEMENTVALUE.ISACTIVE = 'Y'\";\n st = conn.prepareStatement(sqlQuery);\n st.setString(1, elementId);\n rs = st.executeQuery();\n if (rs.next()) {\n name = rs.getString(\"name\");\n\n }\n } catch (Exception e) {\n log4j.error(\"Exception in getOrgs()\", e);\n }\n return name;\n }",
"public static Set<String> getEnglishWords()\n{\n return english_words;\n}",
"public de.epages.ws.product.model.TGetInfo_Return[] getInfo(java.lang.String[] products, java.lang.String[] attributes, java.lang.String[] languageCodes) throws java.rmi.RemoteException;",
"private void readLedCharacteristic() {\n if (!BLEService.existBluetoothAdapter() || !BLEService.existBluetoothGatt()) {\n Log.w(TAG, \"BluetoothAdapter not initialized\");\n return;\n }\n BLEService.genericReadCharacteristic(mLedCharacteristic);\n }",
"public io.dstore.values.StringValue getCharacteristicDescription() {\n return characteristicDescription_ == null ? io.dstore.values.StringValue.getDefaultInstance() : characteristicDescription_;\n }",
"public int characteristics() {\n/* 1350 */ return this.characteristics;\n/* */ }",
"@Override\n public List<String[]> namesAndValues() {\n List<String[]> nAv = new ArrayList<>();\n String[] m = {\"Meno\", this.meno};\n String[] i = {\"Iso\", this.iso};\n String[] b = {\"Brummitt 1\", this.brumit1.getMeno(), \"F Brumit1\"};\n nAv.add(m);\n nAv.add(i);\n nAv.add(b);\n return nAv;\n }",
"public List<String> getConstituencies() throws HttpNotFoundException, HttpBadRequestException, HttpForbiddenException, HttpFetchException, JsonProcessingException, IOException, URISyntaxException {\n\t\tURIBuilder url = setupUrlFor(GET_CONSTITUENCIES);\n\t\t\n\t\tfinal List<String> constituencyNames = Lists.newArrayList();\t\n\t\tfinal Iterator<JsonNode> elements = objectMapper.readTree(httpFetcher.get(url.build())).elements();\n\t\twhile(elements.hasNext()) {\n\t\t\tJsonNode next = elements.next();\n\t\t\tconstituencyNames.add(next.get(NAME).asText());\n\t\t}\t\t\n\t\treturn constituencyNames;\n\t}",
"public String [] getNames () { \n return this.listAttributes(); \n }",
"io.dstore.values.StringValueOrBuilder getPersonCharacteristicIdsOrBuilder();",
"String getDesc();",
"com.cmpe275.grpcComm.MetaData getMetaData();",
"public CWE[] getSubstanceManufacturerName() {\r\n \tCWE[] retVal = this.getTypedField(17, new CWE[0]);\r\n \treturn retVal;\r\n }",
"java.lang.String getDesc();",
"public ArrayList getAttributeList() {\n nounList = new ArrayList();\n attributeLists = new ArrayList();\n ArrayList adjAtt = new ArrayList();\n int separator = 0;\n List<Tree> leaves;\n String phraseNotation = \"NP([<NNS|NN|NNP]![<JJ|VBG])!$VP\";// !<VBG\";//@\" + phrase + \"! << @\" + phrase;\n\n TregexPattern VBpattern = TregexPattern.compile(phraseNotation);\n TregexMatcher matcher = VBpattern.matcher(sTree);\n\n while (matcher.findNextMatchingNode()) {\n Tree match = matcher.getMatch();\n Tree[] innerChild = match.children();\n int adjectiveExist = 0;\n String adj = \"\";\n String attribute = \"\";\n String b = \"\";\n\n if (innerChild.length > 1) {\n int count = 1;\n\n for (Tree inChild : innerChild) {\n if (inChild.value().equals(\"CC\") || inChild.value().equals(\",\")) {\n separator = 1;\n }\n if ((inChild.value().equals(\"JJ\")) || (inChild.value().equals(\"VBG\"))) {\n adjectiveExist++;\n leaves = inChild.getLeaves();\n adj = leaves.get(0).toString();\n if (designEleList.contains(adj)) {\n adj = \"\";\n }\n }\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\")) || (inChild.value().equals(\"NNP\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n if (count == 1) {\n if (adjectiveExist == 1) {\n attribute = adj + \" \" + leaves.get(0).yieldWords().get(0).word();\n } else {\n attribute = leaves.get(0).yieldWords().get(0).word();\n }\n if (!designEleList.contains(attribute)) {\n String identifiedWord = attribute;\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n\n } else if (count >= 2 && separator == 0) {\n if (!attribute.contains(\"_\")) {\n\n attributeLists.remove(morphology.stem(attribute));\n attributeLists.remove(attribute);\n } else {\n attributeLists.remove(attribute);\n }\n\n attribute += \" \" + (leaves.get(0).yieldWords()).get(0).word();\n attributeLists.add(attribute);\n } else if (count >= 2 && separator == 1) {\n attribute = (leaves.get(0).yieldWords()).get(0).word();\n if (!attribute.contains(\"_\")) {\n attributeLists.add(morphology.stem(attribute));\n } else {\n attributeLists.add(attribute);\n }\n separator = 0;\n }\n count++;\n }\n }\n } else {\n for (Tree inChild : innerChild) {\n if ((inChild.value().equals(\"NN\")) || (inChild.value().equals(\"NNS\"))) {\n leaves = inChild.getLeaves(); //leaves correspond to the tokens\n String identifiedWord = ((leaves.get(0).yieldWords()).get(0).word());\n if (!identifiedWord.contains(\"_\")) {\n attributeLists.add(morphology.stem(identifiedWord));\n } else {\n attributeLists.add(identifiedWord);\n }\n }\n }\n }\n }\n adjAtt = getAdjectiveAttribute();\n if (!adjAtt.isEmpty()) {\n String att = \"\";\n for (int i = 0; i < adjAtt.size(); i++) {\n att = adjAtt.get(i).toString();\n if (!att.isEmpty() || !att.equals(\"\") || !(att.equals(\" \"))) {\n attributeLists.add(att.trim());\n }\n }\n }\n\n System.out.println(\"ATTRIBUTE LIST :\" + attributeLists);\n return attributeLists;\n\n }",
"String getDescriptionKey();",
"String getDescribe();",
"String getDescribe();",
"io.dstore.values.StringValue getSearchNodeCharacteristicIds();",
"String getPersonality();",
"public FighterCharacteristics characteristics();",
"public String getInformation() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tencodingTable.forEach((c, s) -> {\n\t\t\tsb.append(c);\n\t\t\tsb.append(\" -> \");\n\t\t\tsb.append(s);\n\t\t\tsb.append('\\n');\n\t\t});\n\n\t\treturn sb.toString();\n\t}",
"public String getCharacteristic() {\n return parameter.getCharacteristic().toString(HEXA_DECIMAL_BASE);\n }",
"List<String> getFeatures();",
"java.lang.String getDescribe();",
"List<String> getLookupValues();",
"public Set<String> getUnicodeLocaleAttributes() {\n/* 1016 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"String getAccountDescription();",
"String getAccountDescription();",
"com.google.privacy.dlp.v2.CustomInfoType.Dictionary getDictionary();",
"@Override\n\tpublic List<Category> getdatafromname(String con) {\n\t\treturn null;\n\t}",
"public String[] getInfoData();",
"public ArrayList<Book> getListBooklanguage(String laguage);",
"java.util.List<? extends com.clarifai.grpc.api.ConceptLanguageOrBuilder> \n getConceptLanguagesOrBuilderList();",
"@Transactional\r\n\tpublic List<CmVocabularyCategory> getCmVocabularyCategorys() {\r\n\t\treturn dao.findAllWithOrder(CmVocabularyCategory.class, \"modifyTimestamp\", false);\r\n\t}",
"public ComponentCharacteristicSet(){\n characteristics = new LinkedHashSet<>();\n characteristics.add(new NumberOfClassesInPackage());\n characteristics.add(new NumberOfLinesOfCode());\n characteristics.add(new ChangeMetrics(ChangeMetrics.NAME));\n characteristics.add(new PCCCMetric(ChangeMetrics.NAME));\n characteristics.add(new CHOMetricPackage());\n characteristics.add(new PCPCMetric(ChangeMetrics.NAME));\n characteristics.add(new TACHMetricPackage());\n }",
"io.dstore.values.StringValue getCampaignDescription();",
"@Override\n\tpublic String getDescription() {\n\t\tString ret = Localization.SINGLETON.getElement(\"POTION_GETDESCRIPTION\");\n\t\tret = ret.replace(\"[[POTION_NAME]]\", this.name);\n\t\tret = ret.replace(\"[[POTION_ENERGY]]\", \"\" + ENERGY);\n\t\tret = ret.replace(\"[[POTION_STRENGTH]]\", \"\" + STRENGTH);\n\t\treturn ret;\n\t}",
"io.dstore.values.StringValueOrBuilder getPersonOutputCharacteristicsOrBuilder();",
"@Override\n @XmlElement(name = \"nameOfMeasure\", namespace = LegacyNamespaces.GMD)\n public Collection<InternationalString> getNamesOfMeasure() {\n if (!FilterByVersion.LEGACY_METADATA.accept()) return null;\n return namesOfMeasure = nonNullCollection(namesOfMeasure, InternationalString.class);\n }",
"public static final String[] getKeywordValues(String baseName, String keyword) {\n Set keywords = new HashSet();\n ULocale locales[] = createULocaleList(baseName, ICU_DATA_CLASS_LOADER);\n int i;\n\n for (i = 0; i < locales.length; i++) {\n try {\n UResourceBundle b = UResourceBundle.getBundleInstance(baseName, locales[i]);\n // downcast to ICUResourceBundle?\n ICUResourceBundle irb = (ICUResourceBundle) (b.getObject(keyword));\n /*\n Enumeration e = irb.getKeys();\n Object s;\n while (e.hasMoreElements()) {\n s = e.nextElement();\n if ((s instanceof String) && !DEFAULT_TAG.equals(s)) {\n // don't add 'default' items\n keywords.add(s);\n }\n }\n */\n } catch (Throwable t) {\n //System.err.println(\"Error in - \" + new Integer(i).toString()\n // + \" - \" + t.toString());\n // ignore the err - just skip that resource\n }\n }\n return (String[])keywords.toArray(new String[0]);\n }",
"public String getString_infos_metadata() { \n char carr[] = new char[Math.min(net.tinyos.message.Message.MAX_CONVERTED_STRING_LENGTH,2)];\n int i;\n for (i = 0; i < carr.length; i++) {\n if ((char)getElement_infos_metadata(i) == (char)0) break;\n carr[i] = (char)getElement_infos_metadata(i);\n }\n return new String(carr,0,i);\n }",
"private Set<CharacteristicValueObject> ontology2CharacteristicValueObject( Collection<OntologyTerm> ontologyTerms ) {\n\n Set<CharacteristicValueObject> characteristicsVO = new HashSet<CharacteristicValueObject>();\n\n for ( OntologyTerm ontologyTerm : ontologyTerms ) {\n CharacteristicValueObject phenotype = new CharacteristicValueObject( ontologyTerm.getLabel().toLowerCase(),\n ontologyTerm.getUri() );\n characteristicsVO.add( phenotype );\n }\n return characteristicsVO;\n }",
"public List<String> getCardinalRelationKeywordsVerbs(final Language language) {\n return fetchMultipleValues(\"de.saschafeldmann.adesso.master.thesis.detection.cardinalrelation.keywords.verb.\" + language.toString().toLowerCase());\n }",
"public String[] getLanguage() {\n return mSelf.getLanguage();\n }",
"public static ArrayList<String> getCharacterNames(String responseString){ //, String attribute){\n ArrayList<String> characterList = new ArrayList<String>();\n try{\n JSONArray allCharactersArray = new JSONArray(responseString);\n for(int i = 0; i < allCharactersArray.length(); i++){\n JSONObject childJson = allCharactersArray.getJSONObject(i);\n if(childJson.has(\"name\")){ //attribute)){\n String name = childJson.getString(\"name\"); //attribute);\n if(name != null) characterList.add(name);\n }\n }\n }catch(JSONException e){\n e.printStackTrace();\n }\n return characterList;\n }",
"public String getKMLExtendedData(){\r\n String exData = \"\";\r\n for (int i = 0; i<attributes.size(); i++){\r\n String exDataRow = \"<Data name=\\\"\"+attributes.get(i).getAttName()+\"\\\"><value>\"+attributes.get(i).getAttValue()+\"</value></Data>\\n\";\r\n exData = exData+exDataRow;\r\n }\r\n return exData;\r\n }",
"public static Map<Long, FxString[]> loadFxStrings(Connection con, String table, String... columns) throws SQLException {\n Statement stmt = null;\n final StringBuilder sql = new StringBuilder();\n final Map<Long, FxString[]> result = Maps.newHashMap();\n final Map<String, String> cache = Maps.newHashMap(); // avoid return duplicate strings\n try {\n sql.append(\"SELECT ID, LANG\");\n final boolean hasDefLang = columns.length == 1; // deflang is only meaningful for single-column tables\n if (hasDefLang)\n sql.append(\", DEFLANG\");\n for (String column : columns) {\n sql.append(',').append(column);\n if (!hasDefLang)\n sql.append(',').append(column).append(\"_MLD\");\n }\n sql.append(\" FROM \").append(table).append(ML).append(\" ORDER BY LANG\");\n final int startIndex = hasDefLang ? 4 : 3;\n stmt = con.createStatement();\n final ResultSet rs = stmt.executeQuery(sql.toString());\n while (rs.next()) {\n final long id = rs.getLong(1);\n final int lang = rs.getInt(2);\n boolean defLang = false;\n if( hasDefLang )\n defLang = rs.getBoolean(3);\n if (lang == FxLanguage.SYSTEM_ID) {\n continue; // TODO how to deal with system language? \n }\n FxString[] entry = result.get(id);\n if (entry == null) {\n entry = new FxString[columns.length];\n /*for (int i = 0; i < entry.length; i++) {\n entry[i] = new FxString(true, \"\");\n }\n result.put(id, entry);*/\n }\n for (int i = 0; i < columns.length; i++) {\n final String value = rs.getString(startIndex + i * (hasDefLang ? 1 : 2));\n final String translation;\n if (cache.containsKey(value)) {\n translation = cache.get(value); // return cached string instance\n } else {\n translation = value;\n cache.put(value, value);\n }\n if (entry[i] == null)\n entry[i] = new FxString(true, lang, translation);\n else\n entry[i].setTranslation(lang, translation);\n if(!hasDefLang)\n defLang = rs.getBoolean(startIndex + 1 + i * 2);\n if (defLang)\n entry[i].setDefaultLanguage(lang);\n }\n result.put(id, entry);\n }\n } finally {\n closeObjects(Database.class, null, stmt);\n }\n return result;\n }",
"public interface AppAttributes{\n\n /**\n The DVB registered value for all DVB-J applications.\n */\n public static final int DVB_J_application = 1; \n\n /**\n The DVB registered value for all DVB-HTML applications.\n */\n public static final int DVB_HTML_application = 2;\n\n /**\n * This method returns the type of the application (as registered by DVB).\n *\n * @return the type of the application (as registered by DVB).\n * @since MHP1.0\n */\n public int getType();\n\n /**\n * This method returns the name of the application. If the default language\n * (as specified in user preferences) is in the set of available language / name pairs\n * then the name in that language shall be returned. Otherwise\n * this method will return a name which appears in that set on a \"best-effort basis\".\n * If no application names are signalled, an empty string shall be returned.\n * @return the name of the application\n *\n * @since MHP1.0\n */\n public String getName();\n\n /**\n * This method returns the name of the application in the language which \n * is specified by the parameter passed as an argument. If the language\n * specified is not in the set of available language /name pairs then an\n * exception shall be thrown.\n *\n * @param iso639code the specified language, encoded as per ISO 639.\n * @return returns the name of the application in the specified language\n * @throws LanguageNotAvailableException if the name is not available in the language specified or if the parameter passed is null\n *\n * @since MHP1.0\n */\n public String getName(String iso639code) \n\tthrows LanguageNotAvailableException;\n\n /**\n * This method returns all the available names for the application\n * together with their ISO 639 language code. \n * If no application names are signalled, an array of length zero shall be returned.\n *\n * @return the possible names of the application, along with \n * their ISO 639 language code. The first string in each sub-array is the \n * ISO 639 language code.\n * The second string in each sub-array is the corresponding application name.\n * @since MHP1.0\n */\n public String[][] getNames () ;\n\n /**\n * This method returns those minimum profiles required for the application\n * to execute. Profile\n * names shall be encoded using the same encoding specified elsewhere in this\n * specification as input for use with the <code>java.lang.System.getProperty</code>\n * method to query if a profile is supported by this platform. <p>For example,\n * for implementations conforming to the first version of the \n * specification, the translation from AIT signaling values to strings\n * shall be as follows:\n * <ul>\n * <li> '1' in the signaling will be translated into \n * 'mhp.profile.enhanced_broadcast'\n * <li> '2' in the signaling will be translated into \n * 'mhp.profile.interactive_broadcast'\n * </ul>\n *\n * Only profiles supported by this particular MHP terminal shall be returned.\n * Hence the method can return an array of size zero where all the profiles\n * on which an application can execute are unknown.\n *\n * @return an array of Strings, each String describing a profile.\n *\n * @since MHP1.0\n */\n public String[] getProfiles();\n \n /**\n * This method returns an array of integers containing the version\n * number of the specification required to run this application\n * at the specified profile. \n *\n * @param profile a profile encoded as described in the main body of\n * the present document for use with <code>java.lang.System.getProperty</code>.\n *\n * @return an array of integers, containing the major, minor \n * and micro values (in that order) required for the specified profile. \n * @throws IllegalProfileParameterException thrown if the profile specified\n * is not one of the minimum profiles required for the application to execute\n * or if the parameter passed in is null\n * @since MHP1.0\n */\n public int[] getVersions(String profile) \n\tthrows IllegalProfileParameterException ;\n\n /**\n * This method determines whether the application is bound to a single service.\n *\n * @return true if the application is bound to a single service, false otherwise. \n * @since MHP1.0\n */\n public boolean getIsServiceBound () ;\n\n /**\n * This method determines whether the application is startable or not.\n * An Application is not startable if any of the following apply.<ul>\n\n * <li>The application is transmitted on a remote connection.\n\n * <li>The caller of the method does not have the Permissions to start it.\n * <li>if the application is signalled with a control code which is neither AUTOSTART nor PRESENT.\n * </ul>\n * If none of the above apply, then the application is startable.\n * <p> The value returned by this method does not depend on whether the \n * application is actually running or not.\n * \n * @return true if an application is startable, false otherwise.\n *\n * @since MHP1.0\n */\n public boolean isStartable () ;\n\n /**\n * This method returns the application identifier. \n *\n * @return the application identifier\n * @since MHP1.0\n */\n public AppID getIdentifier () ;\n\n /**\n * This method returns an object encapsulating the information about the\n * icon(s) for the application.\n *\n * @return the information related to the icons that\n * are attached to the application or null if no icon information is available\n * @since MHP1.0\n */\n public AppIcon getAppIcon () ;\n\n /**\n * This method returns the priority of the application.\n *\n * @return the priority of the application.\n *\n * @since MHP1.0\n */\n public int getPriority();\n\n /**\n * This method returns the locator of the Service describing the application. \n * For an application transmitted on a remote connection, the returned\n * locator shall be the service for that remote connection. For applications\n * not transmitted on a remote connection, the service returned shall be the\n * currently selected service of the service context within which the application \n * calling the method is running.\n * \n * @return the locator of the Service describing the application.\n * @since MHP1.0\n */\n public org.davic.net.Locator getServiceLocator();\n\n\n /**\n * The following method is included for properties that do not have \n * explicit property accessors. The naming of properties and their return\n * values are described in the main body of the present document.\n *\n * @since MHP1.0\n * \n * @param index a property name\n * @return either the return value corresponding to the property name or null\n * if the property name is unknown or null\n */\n public Object getProperty (String index) ;\n\n\n /**\n * This method determines whether the application is marked as being\n * visible to users. An inter-operable application shall honour this\n * visibility setting. Thus a generic launching application shall list\n * applications that are marked as visible and shall not list\n * applications that are not marked as visible.\n *\n * @return <code>true</code> if this application is marked as being\n * visible to users, <code>false</code> otherwise.\n * @since MHP1.0.3\n */\n public boolean isVisible();\n\n}",
"public Map<String, I18nizableText> getVariablesDescriptions();",
"public StringDt getClinicalInformationElement() { \n\t\tif (myClinicalInformation == null) {\n\t\t\tmyClinicalInformation = new StringDt();\n\t\t}\n\t\treturn myClinicalInformation;\n\t}",
"public List<String> languageSupport() {\r\n\t\tList<String> twitterResponseList = new ArrayList<String>();\r\n\t\ttry {\r\n\t\t\tProperties properties = getProperties();\r\n\t\t\tString apiUrl = properties.getProperty(\"twitter.api.language.support\");\r\n\r\n\t\t\tHttpResponse apiResponse = executeHttpGet(apiUrl);\r\n\r\n\t\t\tif (200 == apiResponse.getStatusLine().getStatusCode()) {\r\n\t\t\t\tJSONArray jsonArray = new JSONArray(EntityUtils.toString(apiResponse.getEntity()));\r\n\t\t\t\tfor (int i = 0; i < jsonArray.length() && i < 10; i++) {\r\n\t\t\t\t\tJSONObject object = (JSONObject) jsonArray.get(i);\r\n\t\t\t\t\tString displayText = (String) object.get(\"name\");\r\n\t\t\t\t\ttwitterResponseList.add(displayText);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn twitterResponseList;\r\n\t}",
"public static final String[] getKeywordValues(String baseName, String keyword)\n/* */ {\n/* 296 */ Set<String> keywords = new HashSet();\n/* 297 */ ULocale[] locales = createULocaleList(baseName, ICU_DATA_CLASS_LOADER);\n/* */ \n/* */ \n/* 300 */ for (int i = 0; i < locales.length; i++) {\n/* */ try {\n/* 302 */ UResourceBundle b = UResourceBundle.getBundleInstance(baseName, locales[i]);\n/* */ \n/* 304 */ ICUResourceBundle irb = (ICUResourceBundle)b.getObject(keyword);\n/* 305 */ Enumeration<String> e = irb.getKeys();\n/* 306 */ while (e.hasMoreElements()) {\n/* 307 */ String s = (String)e.nextElement();\n/* 308 */ if (!\"default\".equals(s))\n/* */ {\n/* 310 */ keywords.add(s);\n/* */ }\n/* */ }\n/* */ }\n/* */ catch (Throwable t) {}\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 319 */ return (String[])keywords.toArray(new String[0]);\n/* */ }",
"CLanguage getClanguage();",
"private List getList(Attribute attr){\n\t\tList retList;\n\t\tif(attr instanceof DiscreteAttribute){\n\t\t\tthis.labels = ChartF.getAxeLabels(attr);\n\t\t\tretList = getDisList((DiscreteAttribute)attr);\n\t\t} else {\n\t\t\tthis.labels = attr.getName();\n\t\t\tretList = getContList((ContinuousAttribute)attr);\n\t\t}\n\t\treturn retList;\n\t}",
"public CWE[] getRxa17_SubstanceManufacturerName() {\r\n \tCWE[] retVal = this.getTypedField(17, new CWE[0]);\r\n \treturn retVal;\r\n }",
"public int getCxlangue() {\r\r\r\r\r\r\r\n return cxlangue;\r\r\r\r\r\r\r\n }",
"public MetaData getMetaData();",
"public MultiString getServiceDescriptionAsMultiString()\n {\n return data.serviceDescription;\n }",
"@Override\n public java.lang.Object getNames() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.NAMES_);\n return (java.lang.Object)retnValue;\n }",
"com.google.protobuf.ByteString\n getLanguageBytes();",
"com.clarifai.grpc.api.ConceptLanguageOrBuilder getConceptLanguagesOrBuilder(\n int index);",
"public String[] get(String k) throws RemoteException, Error;",
"@ApiModelProperty(value = \"Name of the target characteristic\")\n\n\n public String getName() {\n return name;\n }",
"com.google.protobuf.ByteString\n getLanguageBytes();",
"public List<RIOntoTerm> getRIontoTermsForKeyWord (String keyWord) throws PreferencesException;",
"public String[][] getMetaCategories();",
"Map<String, String> getAttributes();",
"public ArrayList<String> getAllDemoNames() {\n SQLiteDatabase db = this.getReadableDatabase();\n ArrayList<String> demoNames = new ArrayList<String>();\n String[] columns = new String[]{COL_NAME};\n Cursor c = db.query(DEMO_TABLE, columns, null,\n new String[]{}, null, null, null);\n if (c.moveToFirst()) {\n demoNames.add(c.getString(0));\n while (c.moveToNext()) {\n demoNames.add(c.getString(0));\n }\n }\n c.close();\n db.close();\n return demoNames;\n }",
"public IfcCharacterStyleSelect getTextCharacterAppearance() {\n return textCharacterAppearance;\n }"
] | [
"0.6090375",
"0.59350234",
"0.5867149",
"0.58192885",
"0.5736933",
"0.56664354",
"0.55446506",
"0.5473581",
"0.5457411",
"0.54204124",
"0.54001296",
"0.5364155",
"0.5356696",
"0.5339516",
"0.52685493",
"0.52241623",
"0.5218679",
"0.51689553",
"0.51425695",
"0.51171666",
"0.5106259",
"0.50984615",
"0.50620663",
"0.5045286",
"0.50423527",
"0.50257117",
"0.5025614",
"0.50194186",
"0.50120485",
"0.49843845",
"0.4975626",
"0.4953504",
"0.49469477",
"0.49348897",
"0.4928658",
"0.49112904",
"0.4903602",
"0.49033406",
"0.487194",
"0.48688722",
"0.48606846",
"0.4850726",
"0.48357606",
"0.48231632",
"0.48218387",
"0.48158425",
"0.4807605",
"0.47982794",
"0.47982794",
"0.47838473",
"0.47828415",
"0.47692904",
"0.47647363",
"0.47644818",
"0.47602475",
"0.47586215",
"0.47497743",
"0.47475022",
"0.47402918",
"0.47402918",
"0.47372758",
"0.47368792",
"0.47339696",
"0.47318318",
"0.4718303",
"0.47138792",
"0.47113526",
"0.47107545",
"0.4707877",
"0.47036383",
"0.46994016",
"0.46974674",
"0.46768603",
"0.46768475",
"0.46736798",
"0.46725908",
"0.4667541",
"0.46655115",
"0.46649197",
"0.4662504",
"0.46593663",
"0.46586046",
"0.46572283",
"0.46528095",
"0.4647816",
"0.4647766",
"0.46284157",
"0.46182716",
"0.4618234",
"0.46160758",
"0.46043435",
"0.46032512",
"0.45999917",
"0.45998323",
"0.45965126",
"0.45964435",
"0.4595959",
"0.45955658",
"0.4594026",
"0.45910114",
"0.45876524"
] | 0.0 | -1 |
TODO Autogenerated method stub | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
doGet(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
This testcase is for requested VM_DEATH event. It starts EventDebuggee class, send request for VM_DEATH event, receives events and verifies that: requested VM_DEATH event is received with the expected RequestID, returned by EventRequest.Set command; automatic VM_DEATH event is received with the RequestID = 0; | public void testVMDeathRequest() {
logWriter.println("==> testVMDeathRequest started");
//check capability, relevant for this test
logWriter.println("=> Check capability: canRequestVMDeathEvent");
debuggeeWrapper.vmMirror.capabilities();
boolean isCapability = debuggeeWrapper.vmMirror.targetVMCapabilities.canRequestVMDeathEvent;
if (!isCapability) {
logWriter.println("##WARNING: this VM doesn't possess capability: canRequestVMDeathEvent");
return;
}
boolean success = true;
synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);
//set request for VM_DEATH event with suspend policy SUSPEND_ALL
byte suspendPolicy = JDWPConstants.SuspendPolicy.ALL;
logWriter.println("=> Create request for VM_DEATH event with suspend policy: "
+ suspendPolicy + "/"
+ JDWPConstants.SuspendPolicy.getName(suspendPolicy));
CommandPacket setRequestCommand = new CommandPacket(
JDWPCommands.EventRequestCommandSet.CommandSetID,
JDWPCommands.EventRequestCommandSet.SetCommand);
setRequestCommand.setNextValueAsByte(JDWPConstants.EventKind.VM_DEATH);
setRequestCommand.setNextValueAsByte(JDWPConstants.SuspendPolicy.ALL);
setRequestCommand.setNextValueAsInt(0);
ReplyPacket setRequestReply = debuggeeWrapper.vmMirror
.performCommand(setRequestCommand);
checkReplyPacket(setRequestReply, "Set VM_DEATH event");
requestID = setRequestReply.getNextValueAsInt();
logWriter.println("==> RequestID = " + requestID);
assertAllDataRead(setRequestReply);
//release debuggee
synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_CONTINUE);
synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_CONTINUE);
//receive and parse event set
logWriter.println("=> Wait for VM_DEATH event");
CommandPacket eventPacket = debuggeeWrapper.vmMirror.receiveEvent();
ParsedEvent[] parsedEvents = ParsedEvent.parseEventPacket(eventPacket);
int eventsCount = parsedEvents.length;
logWriter.println("==> Received event set: count=" + eventsCount);
//ckeck if received events are expected
int requestedEvents = 0;
int autoEvents = 0;
int wrongEvents = 0;
for (int i = 0; i < eventsCount; i++) {
ParsedEvent event = parsedEvents[i];
logWriter.println("=> Event #" + i + ";");
// print event info
byte eventSuspendPolicy = event.getSuspendPolicy();
logWriter.println("===> SuspendPolicy=" + eventSuspendPolicy + "/"
+ JDWPConstants.SuspendPolicy.getName(eventSuspendPolicy));
byte eventKind = event.getEventKind();
logWriter.println("===> EventKind=" + eventKind + "/"
+ JDWPConstants.EventKind.getName(eventKind));
int eventRequestID = event.getRequestID();
logWriter.println("===> RequestID=" + eventRequestID);
// check if event is expected
if (eventKind == JDWPConstants.EventKind.VM_DEATH) {
if (eventRequestID == requestID) {
requestedEvents++;
logWriter.println("===> found requested VM_DEATH event!");
// check suspend p[olicy for requested event
if (eventSuspendPolicy != suspendPolicy) {
logWriter.println("## FAILURE: requested VM_DEATH event "
+ "with unexpected SuspendPolicy: "
+ eventSuspendPolicy);
success = false;
}
} else if (parsedEvents[i].getRequestID() == 0) {
autoEvents++;
logWriter.println("===> found auto VM_DEATH event!");
// for automatical event suspend policy can be changed
} else {
logWriter.println("## FAILURE: VM_DEATH event "
+ "with unexpected RequestID: "
+ eventRequestID);
success = false;
}
} else {
wrongEvents++;
logWriter.println("## FAILURE: unexpected event kind: "
+ eventKind);
success = false;
}
}
// check number of found events
{
if (eventsCount != 2) {
logWriter.println("## FAILURE: received wrong number of events: "
+ eventsCount);
success = false;
}
if (requestedEvents > 1) {
logWriter.println("## FAILURE: too many requested VM_DEATH events: "
+ requestedEvents);
success = false;
} else if (requestedEvents < 1) {
logWriter.println("## FAILURE: received no requested VM_DEATH events: "
+ requestedEvents);
success = false;
}
if (autoEvents > 1) {
logWriter.println("## FAILURE: too many auto VM_DEATH events: "
+ autoEvents);
success = false;
} else if (autoEvents < 1) {
logWriter.println("## FAILURE: received no auto VM_DEATH events: "
+ autoEvents);
success = false;
}
if (wrongEvents > 0) {
logWriter.println("## FAILURE: Received unexpected events: "
+ wrongEvents);
success = false;
}
assertTrue("Failure in processing VM_DEATH event", success);
}
logWriter.println("=> Resume debuggee");
resumeDebuggee();
logWriter.println("==> test PASSED!");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testDeleteEvent() {\n\t\tEvent event = new Event();\n\t\ttry {\n\t\t\trequest.setParameter(\"eventId\",\"1001\");\n\t\t\trequest.setParameter(\"sessionId\",\"10001\");\n\t\t\tcontroller.deleteEvent(request, response);\n\t\t\tevent = eventDao.getEvent(1001, 10001);\n\t\t\tassertEquals(0,event.getEventid());\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n}",
"public void onDeath(double timestamp){\n\t\t/**\n\t\t * request has finished and left the mm1\n\t\t */\n\t\tRequest req = queue.remove();\n\t\treq.setEndedProcessing(timestamp);\n\t\tlog.add(req);\n\t\t\n\t\t/**\n\t\t * look for another blocked event in the queue that wants to execute and schedule it's death.\n\t\t * at this time the waiting request enters processing time.\n\t\t */\n\t\tif(queue.size() > 0){\n\t\t\tdouble timeOfNextDeath = timestamp + getTimeOfNextDeath();\n\t\t\tqueue.peek().setStartedProcessing(timestamp);\n\t\t\tEvent event = new Event(timeOfNextDeath, EventType.DEATH, this);\n\t\t\tschedule.add(event);\n\t\t}\n\t}",
"public void onKill(EntityDeathEvent evt) {\r\n }",
"public void simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getSimulateMaintenanceEventMethod(), getCallOptions()),\n request,\n responseObserver);\n }",
"default void simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request,\n io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getSimulateMaintenanceEventMethod(), responseObserver);\n }",
"@EventHandler\n public void onEntityDeath(EntityDeathEvent event){\n if(RandomEncounters.getInstance().getLogLevel()>11){\n RandomEncounters.getInstance().logMessage(\"Something died, let me figure out if it means anything.\");\n }\n PlacedMob placedMob = PlacedMob.getInstance(event.getEntity().getUniqueId());\n if(placedMob!=null){\n placedMob.die();\n }else{\n if(RandomEncounters.getInstance().getLogLevel()>11){\n RandomEncounters.getInstance().logMessage(\"The death was not of importance, carry on.\");\n }\n }\n }",
"public void agentDestroyed(ShellLaunchEvent ev);",
"public void triggerTimeout(List<TOMMessage> requestList) {\n\n ObjectOutputStream out = null;\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n int regency = lcManager.getNextReg();\n \n requestsTimer.stopTimer();\n requestsTimer.Enabled(false);\n\n\t// still not in the leader change phase?\n if (lcManager.getNextReg() == lcManager.getLastReg()) {\n\n lcManager.setNextReg(lcManager.getLastReg() + 1); // define next timestamp\n\n regency = lcManager.getNextReg(); // update variable \n\n // store messages to be ordered\n lcManager.setCurrentRequestTimedOut(requestList);\n\n // store information about messages that I'm going to send\n lcManager.addStop(regency, this.controller.getStaticConf().getProcessId());\n\n //execManager.stop(); // stop consensus execution\n\n //Get requests that timed out and the requests received in STOP messages\n //and add those STOPed requests to the client manager\n addSTOPedRequestsToClientManager();\n List<TOMMessage> messages = getRequestsToRelay();\n\n try { // serialize content to send in STOP message\n out = new ObjectOutputStream(bos);\n\n if (messages != null && messages.size() > 0) {\n\n\t\t\t\t\t//TODO: If this is null, then there was no timeout nor STOP messages.\n //What to do?\n byte[] serialized = bb.makeBatch(messages, 0, 0, controller.getStaticConf().getUseSignatures() == 1);\n out.writeBoolean(true);\n out.writeObject(serialized);\n } else {\n out.writeBoolean(false);\n logger.warn(\"Strange... did not include any request in my STOP message for regency \" + regency);\n }\n\n out.flush();\n bos.flush();\n\n byte[] payload = bos.toByteArray();\n\n out.close();\n bos.close();\n\n // send STOP-message \n logger.info(\"Sending STOP message to install regency \" + regency + \" with \" + (messages != null ? messages.size() : 0) + \" request(s) to relay\");\n \n LCMessage stop = new LCMessage(this.controller.getStaticConf().getProcessId(), TOMUtil.STOP, regency, payload);\n requestsTimer.setSTOP(regency, stop); // make replica re-transmit the stop message until a new regency is installed\n communication.send(this.controller.getCurrentViewOtherAcceptors(), stop);\n\n } catch (IOException ex) {\n logger.error(\"Could not serialize STOP message\", ex);\n } finally {\n try {\n out.close();\n bos.close();\n } catch (IOException ex) {\n logger.error(\"Could not serialize STOP message\", ex);\n }\n }\n\n }\n\n processOutOfContextSTOPs(regency); // the replica might have received STOPs\n // that were out of context at the time they\n // were received, but now can be processed\n \n startSynchronization(regency); // evaluate STOP messages\n \n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.500 -0400\", hash_original_method = \"31B90A45F9451B6FAB059CF68DCF26BD\", hash_generated_method = \"8CE24A3E847DEC6B396A5F750249816F\")\n \n public static String waitForEvent(){\n \t//Formerly a native method\n \tdouble taintDouble = 0;\n \n \tString retObj = new String(); \n \tretObj.addTaint(taintDouble);\n \treturn retObj;\n }",
"@Test\n\tpublic void shouldReceiveOneCorrectEvent() {\n\t\t// Arrange\n\t\tUdpReceiver theStub = Mockito.mock(UdpReceiver.class);\n\t\twhen(theStub.receive()).thenReturn(\"TESTID:FAULT:EVENT_DATA\");\n\t\tUdpEventReceiver target = new UdpEventReceiver();\n\t\ttarget.setUdpReceiver(theStub);\n\t\tEvent expected = new Event(\"TESTID:FAULT:EVENT_DATA\");\n\n\t\t// Act\n\t\tEvent actual = target.receive();\n\n\t\t// Assert\n\t\tassertThat(actual, equalTo(expected));\n\t}",
"@Listener\n public void onEntityDeath(DestructEntityEvent.Death event) {\n final Entity entity = event.getTargetEntity();\n Optional<EntityDamageSource> optDamageSource = event.getCause().first(EntityDamageSource.class);\n if (optDamageSource.isPresent()) {\n EntityDamageSource damageSource = optDamageSource.get();\n Entity killer = damageSource.getSource();\n if (killer instanceof Player) {\n Player player = (Player) killer;\n String entityName;\n if (entity.get(Keys.DISPLAY_NAME).isPresent()) {\n entityName = entity.get(Keys.DISPLAY_NAME).get().toPlain();\n } else {\n entityName = entity.getType().getName();\n }\n killCountDao.incrementKillCount(player.getName(), entityName);\n }\n }\n }",
"public void robotDeath(RobotDeathEvent e) {\r\n\r\n\t\tif (gotTarget && e.getName().equals(radarTarget.getName())) {\r\n\t\t\tradarTarget = newRadarTarget();\r\n\t\t\tmrRobot.sendMessage(6, \"2\");\r\n\r\n\t\t}\r\n\t\tif (getIndexForName(e.getName()) != -1) {\r\n\t\t\ttargetTracking.remove(getIndexForName(e.getName()));\r\n\t\t}\r\n\r\n\t}",
"@Test\n\tpublic void testMdcThrowup() throws Exception {\n\t\tdoAnswer(x -> {\n\t\t\tassertThat(MDC.get(\"state\")).isEqualTo(\"sent\");\n\t\t\tassertThat(MDC.get(\"success\")).isEqualTo(\"true\");\n\t\t\tassertThat(MDC.get(\"duration\")).isEqualTo(\"121\");\n\t\t\tassertThat(MDC.get(\"osuApiRateBlockedTime\")).isEqualTo(\"32\");\n\t\t\treturn null;\n\t\t}).when(botInfo).setLastSentMessage(123L);\n\t\tPrivateMessage event = new PrivateMessage(1, \"nick\", 2, \"yo\");\n\t\tevent.getMeta().setRateLimiterBlockedTime(32);\n\t\twhen(clock.currentTimeMillis()).thenReturn(123L);\n\t\tresponsePostprocessor.onResponse(new Success(\"yeah\"), event);\n\t\tverify(botInfo).setLastSentMessage(123L);\n\t}",
"@Test\n public void testDeath() throws Exception {\n // Setup\n\n // Run the test\n modelUnderTest.death();\n\n // Verify the results\n }",
"private void handleLeaveStubEvent(LeaveStubEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \n \t\t//See if I can have now leave events\n \t\tacquireClientsViewUpdateLock();\n \n \t\tSystem.out.println(\"Removing client: \" + event.getEndpoint() + \" from group: \" + event.getGroupId());\n \n \t\t//Lets get the neccessary arguments\n \t\tString groupId = event.getGroupId();\n \t\tVsClient vsClient = VsClientManagement.getVsGroup(groupId).getVsClient(event.getEndpoint());\n \n \t\t//Let's warn everybody that a client wishes to leave\n \t\tLeaveClientProxyEvent leaveProxyEvent = new LeaveClientProxyEvent(vsClient, groupId);\n \t\tsendToOtherServers(leaveProxyEvent);\n \t\tsendToMyself(leaveProxyEvent);\n \t}",
"public void hidFailure(HidServicesEvent event);",
"public void deliverTimeoutRequest(LCMessage msg) {\n\n switch (msg.getType()) {\n case TOMUtil.STOP: { // message STOP\n\n logger.info(\"Last regency: \" + lcManager.getLastReg() + \", next regency: \" + lcManager.getNextReg());\n\n // this message is for the next leader change?\n if (msg.getReg() == lcManager.getLastReg() + 1) {\n\n logger.debug(\"Received regency change request\");\n\n TOMMessage[] requests = deserializeTOMMessages(msg.getPayload());\n\n // store requests that came with the STOP message\n lcManager.addRequestsFromSTOP(requests);\n\n // store information about the message STOP\n lcManager.addStop(msg.getReg(), msg.getSender());\n\n processOutOfContextSTOPs(msg.getReg()); // the replica might have received STOPs\n // that were out of context at the time they\n // were received, but now can be processed\n\n startSynchronization(msg.getReg()); // evaluate STOP messages\n\n } else if (msg.getReg() > lcManager.getLastReg()) { // send STOP to out of context if\n // it is for a future regency\n logger.debug(\"Keeping STOP message as out of context for regency \" + msg.getReg());\n outOfContextLC.add(msg);\n\n } else {\n logger.debug(\"Discarding STOP message\");\n }\n }\n break;\n case TOMUtil.STOPDATA: { // STOPDATA messages\n\n int regency = msg.getReg();\n\n logger.info(\"Last regency: \" + lcManager.getLastReg() + \", next regency: \" + lcManager.getNextReg());\n\n // Am I the new leader, and am I expecting this messages?\n if (regency == lcManager.getLastReg()\n && this.controller.getStaticConf().getProcessId() == execManager.getCurrentLeader()/*(regency % this.reconfManager.getCurrentViewN())*/) {\n\n logger.debug(\"I'm the new leader and I received a STOPDATA\");\n processSTOPDATA(msg, regency);\n } else if (msg.getReg() > lcManager.getLastReg()) { // send STOPDATA to out of context if\n // it is for a future regency\n\n logger.debug(\"Keeping STOPDATA message as out of context for regency \" + msg.getReg());\n outOfContextLC.add(msg);\n\n } else {\n logger.debug(\"Discarding STOPDATA message\");\n }\n }\n break;\n case TOMUtil.SYNC: { // message SYNC\n\n int regency = msg.getReg();\n\n logger.info(\"Last regency: \" + lcManager.getLastReg() + \", next regency: \" + lcManager.getNextReg());\n\n // I am expecting this sync?\n boolean isExpectedSync = (regency == lcManager.getLastReg() && regency == lcManager.getNextReg());\n\n // Is this sync what I wanted to get in the previous iteration of the synchoronization phase?\n boolean islateSync = (regency == lcManager.getLastReg() && regency == (lcManager.getNextReg() - 1));\n\n //Did I already sent a stopdata in this iteration?\n boolean sentStopdata = (lcManager.getStopsSize(lcManager.getNextReg()) == 0); //if 0, I already purged the stops,\n //which I only do when I am about to\n //send the stopdata\n\n // I am (or was) waiting for this message, and did I received it from the new leader?\n if ((isExpectedSync || // Expected case\n (islateSync && !sentStopdata)) && // might happen if I timeout before receiving the SYNC\n (msg.getSender() == execManager.getCurrentLeader())) {\n\n //if (msg.getReg() == lcManager.getLastReg() &&\n //\t\tmsg.getReg() == lcManager.getNextReg() && msg.getSender() == lm.getCurrentLeader()/*(regency % this.reconfManager.getCurrentViewN())*/) {\n processSYNC(msg.getPayload(), regency);\n\n } else if (msg.getReg() > lcManager.getLastReg()) { // send SYNC to out of context if\n // it is for a future regency\n logger.debug(\"Keeping SYNC message as out of context for regency \" + msg.getReg());\n outOfContextLC.add(msg);\n\n } else {\n logger.debug(\"Discarding SYNC message\");\n }\n }\n break;\n\n }\n\n }",
"private void checkEvent (JPDABreakpointEvent event) {\n assertNotNull (\n \"Breakpoint event: Context thread is null\", \n event.getThread ()\n );\n JPDAThread thread = event.getThread ();\n if (thread.getName ().startsWith (\"test-\")) {\n JPDAThreadGroup group = thread.getParentThreadGroup ();\n assertEquals (\n \"Wrong thread group\", \n \"testgroup\", \n group.getName ()\n );\n assertEquals (\n \"Wrong parent thread group\", \n \"main\", \n group.getParentThreadGroup ().getName ()\n );\n assertEquals (\n \"Wrong number of child thread groups\", \n 0, \n group.getThreadGroups ().length\n );\n JPDAThread [] threads = group.getThreads ();\n for (int i = 0; i < threads.length; i++) {\n JPDAThread jpdaThread = threads [i];\n if ( !jpdaThread.getName ().startsWith (\"test-\")) \n throw new AssertionError \n (\"Thread group contains an alien thread\");\n assertSame (\n \"Child/parent mismatch\", \n jpdaThread.getParentThreadGroup (), \n group\n );\n }\n hitCount++;\n }\n if (thread.getName ().startsWith (\"DestroyJavaVM\")) {\n // Wait a while to gather all events.\n try {\n Thread.sleep(500);\n } catch (InterruptedException iex) {}\n }\n }",
"@Test\n public void test5() throws Throwable {\n MovementBlockType2__Basic movementBlockType2__Basic0 = new MovementBlockType2__Basic();\n movementBlockType2__Basic0.event_INIT(false);\n movementBlockType2__Basic0.event_FAULT();\n movementBlockType2__Basic0.event_RESUME();\n movementBlockType2__Basic0.event_FAULT();\n }",
"@EventName(\"targetDestroyed\")\n EventListener onTargetDestroyed(EventHandler<TargetDestroyed> eventListener);",
"@Test(timeout = 4000)\n public void test38() throws Throwable {\n String string0 = EWrapperMsgGenerator.contractDetailsEnd((-2310));\n assertEquals(\"reqId = -2310 =============== end ===============\", string0);\n }",
"@Test\n public void testOverflowClient()\n {\n String sName = \"local-overflow-client\";\n generateEvents(sName);\n checkEvents(true, false);\n }",
"public static void onVMDeath() {\n \tDeferredExecution.stopProcessors();\n }",
"public void testEvent001() throws Exception {\n // clear all events in the eventfactory\n //EventFactory.clearEvents();\n //assertEquals(\"factory should not have any event\", 0, EventFactory.getEventSize());\n\n this.b.start();\n\n // expect emit of the following events:\n // org/osgi/service/web/DEPLOYING the web extender has spotted the web application bundle and is starting it.\n // org/osgi/service/web/DEPLOYED the web extender has finished starting the web application bundle. Formatted: Bullets and Numbering\n // wait a few seconds to make sure events are delivered.\n int count = 0;\n Event eventPrevious = null;\n Event eventCurrent = null;\n while(eventCurrent == null && count < WAITCOUNT) {\n eventCurrent = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/DEPLOYED\");\n\t\t\tSleep.sleep(1000 * OSGiTestCaseProperties.getScaling());\n count++;\n }\n\n assertEquals(\"event factory size should be 2\", 2, EventFactory.getEventSize());\n eventPrevious = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/DEPLOYING\");\n assertNotNull(eventPrevious);\n assertNotNull(eventCurrent);\n\n long startingTime = (Long)eventPrevious.getProperty(EventConstants.TIMESTAMP);\n long startedTime = (Long)eventCurrent.getProperty(EventConstants.TIMESTAMP);\n\n assertEquals(\"org/osgi/service/web/DEPLOYING\", eventPrevious.getTopic());\n assertEquals(\"org.osgi.test.cases.webcontainer.tw1\", (String)eventPrevious.getProperty(EventConstants.BUNDLE_SYMBOLICNAME));\n assertEquals(this.b.getBundleId(), eventPrevious.getProperty(EventConstants.BUNDLE_ID));\n assertEquals(this.b, eventPrevious.getProperty(EventConstants.BUNDLE));\n assertEquals(this.b.getVersion(), eventPrevious.getProperty(EventConstants.BUNDLE_VERSION));\n assertEquals(this.b.getHeaders().get(\"Web-ContextPath\"), (String)eventPrevious.getProperty(\"context.path\"));\n assertNotNull(startingTime);\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_ID));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertNotNull(eventPrevious.getProperty(EXTENDER_BUNDLE_VERSION));\n\n assertEquals(\"org/osgi/service/web/DEPLOYED\", eventCurrent.getTopic());\n assertEquals(\"org.osgi.test.cases.webcontainer.tw1\", (String)eventCurrent.getProperty(EventConstants.BUNDLE_SYMBOLICNAME));\n assertEquals(this.b.getBundleId(), eventCurrent.getProperty(EventConstants.BUNDLE_ID));\n assertEquals(this.b, eventCurrent.getProperty(EventConstants.BUNDLE));\n assertEquals(this.b.getVersion(), eventCurrent.getProperty(EventConstants.BUNDLE_VERSION));\n assertEquals(this.b.getHeaders().get(\"Web-ContextPath\"), (String)eventPrevious.getProperty(\"context.path\"));\n assertNotNull(startedTime);\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_ID));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertNotNull(eventCurrent.getProperty(EXTENDER_BUNDLE_VERSION));\n\n // the extender information should be the same\n\n assertTrue(startedTime >= startingTime);\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE), eventCurrent.getProperty(EXTENDER_BUNDLE));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_ID), eventCurrent.getProperty(EXTENDER_BUNDLE_ID));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME), eventCurrent.getProperty(EXTENDER_BUNDLE_SYMBOLICNAME));\n assertEquals(eventPrevious.getProperty(EXTENDER_BUNDLE_VERSION), eventCurrent.getProperty(EXTENDER_BUNDLE_VERSION));\n\n eventPrevious = null;\n eventCurrent = null;\n\n\n this.b.stop();\n // emit the following events:\n // org/osgi/service/web/UNDEPLOYING the web extender is stopping the web application bundle.\n // org/osgi/service/web/UNDEPLOYED a web extender has stopped the web application bundle.\n // wait a few seconds to make sure events are delivered.\n count = 0;\n while(eventCurrent == null && count < WAITCOUNT) {\n \teventCurrent = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/UNDEPLOYED\");\n\t\t\tSleep.sleep(1000 * OSGiTestCaseProperties.getScaling());\n count++;\n }\n eventPrevious = EventFactory.getEvent(\"org.osgi.test.cases.webcontainer.tw1\", \"org/osgi/service/web/UNDEPLOYING\");\n assertNotNull(eventPrevious);\n assertNotNull(eventCurrent);\n assertEquals(\"org/osgi/service/web/UNDEPLOYING\", eventPrevious.getTopic());\n assertEquals(\"org/osgi/service/web/UNDEPLOYED\", eventCurrent.getTopic());\n assertTrue((Long)eventPrevious.getProperty(EventConstants.TIMESTAMP) >= startedTime);\n assertTrue((Long)eventCurrent.getProperty(EventConstants.TIMESTAMP) >= (Long)eventPrevious.getProperty(EventConstants.TIMESTAMP));\n }",
"public void agentDeath(Agent ag) throws InterruptedException {\n\t\n\tProcessData data = (ProcessData) agents.get(ag);\n\tVertex vertex = data.vertex;\n\tLong key = new Long(numGen.alloc());\n\n\tint nbr = removeAgentFromVertex(vertex,ag);\n\t\n\tagents.remove(ag);\n\n\tevtQ.put(new AgentMovedEvent(key,\n\t\t\t\t vertex.identity(),\n\t\t\t\t new Integer(nbr)));\n\tmovingMonitor.waitForAnswer(key);\n\n stats.add(new TerminatedStat(ag.getClass()));\n\n\t/* Detecting the end of the algorithm */\n\tif(agents.isEmpty()) {\n evtQ.put(new AlgorithmEndEvent(numGen.alloc()));\n }\n }",
"@Test\n public void testAddEventListener() {\n List<SimulatorEventListener> eventListeners = eventDispatcher.getSimulatorEventListeners();\n assertTrue(eventListeners.size() == 0);\n SimulatorEventListener listener = new SimulatorEventListener() {\n\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n\n }\n };\n eventDispatcher.addSimulatorEventListener(listener);\n assertTrue(eventListeners.size() == 1);\n }",
"@Override\n @Test(description = \"PR#489924 : \"\n + \"1. create a dvs and 2 dvpgs and join 1 host\\n\"\n + \"2. Disconnect the host from VC\\n\"\n + \"3. connect to the host and invoke the HostDvsManager\"\n + \" API to do the following\\n\"\n + \" a. change the name of the dvpg1\\n\"\n + \" b. delete the dvpg2\\n\" + \" c. create a bogus dvpg\\n3\"\n + \"4. Reconnect the host and wait in a loop and read the\"\n + \" dvpg info from host HostDvsManager every 10 sec.\\n\"\n + \" when all of below become true, exit the loop:\\n\"\n + \" a. dvpg1 name is reverted\\n\"\n + \" b. dvpg2 is restored\\n\" + \" c. dvpg3 is deleted\\n\"\n + \"\")\n public void test()\n throws Exception\n {\n log.info(\"Test Begin:\");\n boolean status = false;\n DVSConfigSpec configSpec = null;\n HostNetworkConfig[] hostNetworkConfig = null;\n DistributedVirtualSwitchHostMemberConfigSpec hostMember = null;\n DistributedVirtualSwitchHostMemberPnicBacking pnicBacking = null;\n DistributedVirtualSwitchProductSpec productSpec = null;\n int timeout = TestConstants.MAX_WAIT_CONNECT_TIMEOUT;\n\n configSpec = new DVSConfigSpec();\n configSpec.setConfigVersion(\"\");\n configSpec.setName(this.getTestId() + 1);\n configSpec.setNumStandalonePorts(5);\n hostMember = new DistributedVirtualSwitchHostMemberConfigSpec();\n pnicBacking = new DistributedVirtualSwitchHostMemberPnicBacking();\n pnicBacking.getPnicSpec().clear();\n pnicBacking.getPnicSpec().addAll(com.vmware.vcqa.util.TestUtil.arrayToVector(new DistributedVirtualSwitchHostMemberPnicSpec[] {}));\n hostMember.setBacking(pnicBacking);\n hostMember.setOperation(TestConstants.CONFIG_SPEC_ADD);\n hostMember.setHost(this.hostMor);\n configSpec.getHost().clear();\n configSpec.getHost().addAll(com.vmware.vcqa.util.TestUtil.arrayToVector(new DistributedVirtualSwitchHostMemberConfigSpec[] { hostMember }));\n if (this.hostMor != null\n && (hostVersion.equalsIgnoreCase(VersionConstants.ESX400) || hostVersion.equalsIgnoreCase(VersionConstants.EESX400))) {\n log.info(\"Got \" + hostVersion + \" host\");\n log.info(\"Creating product spec for \" + hostVersion\n + \" host\");\n productSpec = DVSUtil.getProductSpec(connectAnchor,\n DVSTestConstants.VDS_VERSION_40);\n Assert.assertNotNull(productSpec,\n \"Successfully obtained the productSpec for \"\n + DVSTestConstants.VDS_VERSION_40 + \" version\",\n \"Failed to get productSpec for \"\n + DVSTestConstants.VDS_VERSION_40 + \" version\");\n }\n\n this.dvsMor = DVSUtil.createDVSFromCreateSpec(connectAnchor,\n DVSUtil.createDVSCreateSpec(configSpec, productSpec, null));\n if (this.dvsMor != null) {\n log.info(\"Successfully created the DVS \" + this.getTestId());\n hostName = this.ihs.getHostName(hostMor);\n\n if (this.ins.refresh(this.nsMor)) {\n log.info(\"Refreshed the network system of the host\");\n if (this.iDVS.validateDVSConfigSpec(this.dvsMor, configSpec,\n null)) {\n log.info(\"Successfully validated the DVS config spec\");\n hostNetworkConfig = this.iDVS.getHostNetworkConfigMigrateToDVS(\n this.dvsMor, this.hostMor);\n if (hostNetworkConfig != null\n && hostNetworkConfig.length == 2\n && hostNetworkConfig[0] != null\n && hostNetworkConfig[1] != null) {\n log.info(\"Successfully retrieved the original and the \"\n + \"updated network config of the host\");\n this.originalNetworkConfig = hostNetworkConfig[1];\n status = this.ins.updateNetworkConfig(this.nsMor,\n hostNetworkConfig[0],\n TestConstants.CHANGEMODE_MODIFY);\n if (status) {\n log.info(\"Successfully updated the host network config\");\n pgMor = addPg(ephemeral, ephemeral + \"_1\");\n origSpec1 = this.iDVPG.getConfigSpec(this.pgMor);\n Assert.assertNotNull(pgMor, \"Failed to add portgroup \"\n + early);\n this.portgroupKey = this.iDVPG.getKey(pgMor);\n log.info(\"portgroupKey \" + portgroupKey);\n\n pgMor1 = addPg(ephemeral, ephemeral + \"_2\");\n origSpec2 = this.iDVPG.getConfigSpec(this.pgMor1);\n Assert.assertNotNull(pgMor1, \"Failed to add portgroup \"\n + ephemeral);\n this.portgroupKey1 = this.iDVPG.getKey(pgMor1);\n log.info(\"portgroupKey \" + portgroupKey1);\n HostProxySwitchConfig originalHostProxySwitchConfig = this.iDVS.getDVSVswitchProxyOnHost(\n dvsMor, hostMor);\n\n dvSwitchUuid = originalHostProxySwitchConfig.getUuid();\n if (status && this.ihs.isHostConnected(this.hostMor)\n && this.ihs.disconnectHost(hostMor)) {\n status =\n performOperationsOnhostd(hostName,\n portgroupKey, portgroupKey1,\n origSpec1, origSpec2);\n } else {\n status = false;\n log.error(\"Can not execute the remote command on the\"\n + \" host \" + this.hostName);\n }\n\n } else {\n status = false;\n log.error(\"Can not update the host network config\");\n }\n } else {\n status = false;\n log.error(\"Can not retrieve the original and the updated \"\n + \"network config\");\n }\n } else {\n status = false;\n log.error(\"The config spec does not match\");\n }\n } else {\n status = false;\n log.error(\"Can not refresh the network system of the host\");\n }\n\n } else {\n status = false;\n log.error(\"Can not create the DVS \" + this.getTestId());\n }\n\n\n assertTrue(status, \"Test Failed\");\n }",
"@Override\r\n\tpublic void onDeath() {\n\t\t\r\n\t}",
"public void testSapServerTimeouts() {\n Intent sapDisconnectIntent = new Intent(SapServer.SAP_DISCONNECT_ACTION);\n sapDisconnectIntent.putExtra(\n SapServer.SAP_DISCONNECT_TYPE_EXTRA, SapMessage.DISC_IMMEDIATE);\n mContext = this.getContext();\n\n try {\n\n SapSequencer sequencer = new SapSequencer();\n if(rilTestModeEnabled) {\n sequencer.testModeEnable(true);\n }\n /* Build a default init sequence */\n buildDefaultInitSeq(sequencer);\n\n SapMessage disconnectReq = new SapMessage(SapMessage.ID_DISCONNECT_REQ);\n SapMessage disconnectResp = new SapMessage(SapMessage.ID_DISCONNECT_RESP);\n\n SapMessage resetResp = new SapMessage(SapMessage.ID_RESET_SIM_RESP);\n resetResp.setResultCode(SapMessage.RESULT_OK);\n\n int index = sequencer.addStep(disconnectReq, disconnectResp);\n\n assertTrue(sequencer.run());\n\n mContext.sendBroadcast(sapDisconnectIntent);\n\n } catch (IOException e) {\n Log.e(TAG, \"IOException\", e);\n }\n }",
"@EventHandler\n void OnEntityDeath(EntityDeathEvent e){\n Entity killer = e.getEntity().getKiller();\n int exp = e.getDroppedExp();\n if(killer instanceof Player){\n GuildMCFunctions functions = new GuildMCFunctions();\n functions.spawnExperiencesInfos((Player) killer, exp);\n }\n\n }",
"@Test\n public void testDispatchEvent(){\n\n final SampleClass sample = new SampleClass();\n\n assertEquals(\"\", sample.getName());\n\n eventDispatcher.addSimulatorEventListener(new SimulatorEventListener(){\n\n public void onNewMessage(Exchange exchange, Conversation conversation) {\n sample.setName(\"Modified\");\n }\n\n public void onMatchingScenario(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseBuilt(Exchange exchange, Conversation conversation) {\n\n }\n\n public void onResponseSent(Exchange exchange, Conversation conversation) {\n \n }\n });\n\n eventDispatcher.dispatchEvent(SimulatorEventType.NEW_MESSAGE, null, null);\n\n assertEquals(\"Modified\",sample.getName());\n }",
"com.walgreens.rxit.ch.cda.EIVLEvent getEvent();",
"public void eventDelete(long eventID){\n Callback<Events> callback = new Callback<Events>() {\n @Override\n public void success(Events serverResponse, Response response2) {\n BusProvider.getInstance().post(produceEventServerResponse(serverResponse));\n }\n\n @Override\n public void failure(RetrofitError error) {\n if(error != null ){\n Log.e(TAG, error.getMessage());\n error.printStackTrace();\n }\n BusProvider.getInstance().post(produceErrorEvent(-200,error.getMessage()));\n }\n };\n communicatorInterface.deleteEvent(eventID, callback);\n }",
"@Test\n public void testNear()\n {\n String sName = \"near-client-listener\";\n generateEvents(sName);\n checkEvents(true, false);\n }",
"@Test\n\tpublic void testDisplayEvent() {\n\t\t\nEvent event = new Event();\n\t\t\n\t\ttry {\n\t\t\trequest = new MockHttpServletRequest(\"GET\", \"/catalog.htm\");\n\t\t\trequest.setParameter(\"eventId\", \"1001\");\n\t\t\trequest.setParameter(\"sessionId\", \"10001\");\n\t\t\tcontroller.displayEvent(request, response);\t\n\t\t\tevent = eventDao.getEvent(1001, 10001);\n\t\t\t\n\t\t} catch (Exception exception) {\t\n\t\t\texception.printStackTrace();\n\t\t\tfail(\"Exception\");\n\t\t}\n\t\tassertEquals(1001,event.getEventid());\n\t\t\n\t}",
"@Override\r\n\tpublic void onDeath() {\n\r\n\t}",
"public void hidDeviceDetached(HidServicesEvent event);",
"@Test(groups = {\"wso2.esb\"}, description = \"Test de-activation of Message Processor when exception is thrown \" +\n \"inside deactivate sequence.\")\n public void testMPGettingDeactivatedIfDeactivateSeqFails() throws Exception {\n SimpleHttpClient simpleHttpClient = new SimpleHttpClient();\n simpleHttpClient.doGet(proxyURL, null);\n Thread.sleep(10000);\n checkMessageProcessorState();\n }",
"public MobDeathEvent(Entity entity, EntityPlayer player) {\n\t\tthis.entity = entity;\n\t\tthis.position = entity.getPosition();\n\t\tthis.mobType = getMobType(entity);\n\t\tthis.thePlayer = player;\n\t\tSystem.out.println(\"MobDeathEvent\");\n\t}",
"@Override\n\tpublic void despawn() {\n\t\t\n\t}",
"@EventName(\"targetCrashed\")\n EventListener onTargetCrashed(EventHandler<TargetCrashed> eventListener);",
"public void death(){\n\t}",
"private void execute() {\n this.waitForFinish();\n this.stop();\n logger.info(\"Finished eventing test {}\", this.getClass().getSimpleName());\n Event currentEvent = null;\n Map<Long, Integer> orderVerifyMap = new HashMap<Long, Integer>();\n while((currentEvent =eventRecievedList.poll()) != null)\n {\n \tInteger index = (Integer)currentEvent.getProperty(\"index\");\n \tLong threadId = (Long)currentEvent.getProperty(\"thread\");\n\n \tif(index != null && threadId != null){\n \t\tInteger previousIndex = orderVerifyMap.get(threadId);\n \t\tif(previousIndex == null)\n \t\t{\n \t\t\tif(index != 0)\n \t\t\t{\n \t\t\t\tSystem.out.println(\"Event \" + index + \" recieved first for thread \" + threadId);\n \t\t\t}\n \t\t\torderVerifyMap.put(threadId, index);\n \t\t}\n \t\telse\n \t\t{\n \t\t\tif(previousIndex > index)\n \t\t\t{\n \t\t\t\tSystem.out.println(\"Events for thread \" + threadId + \" out of order. Event \" + previousIndex + \" recieved before \" + index);\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\torderVerifyMap.put(threadId, index);\n \t\t\t}\n \t\t}\n \t}\n }\n try {\n Thread.sleep(15 * 1000);\n } catch (final InterruptedException ie) {\n // ignore\n }\n }",
"@Test\r\n public void testCommissionCases() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sgtin:0614141.107340.1\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(COMMISSION_CASES_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }",
"EndEvent createEndEvent();",
"DescribeEventsResult describeEvents(DescribeEventsRequest describeEventsRequest);",
"@Test\n public void testDistOverflowBack()\n {\n String sName = \"dist-overflow-back\";\n generateTwoEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"@EventHandler\r\n\tpublic void OnKill(final EntityDeathEvent event) {\n\t\tif (!plugin.getDependencyManager().getDependency(dependency.STATS)\r\n\t\t\t\t.isAvailable())\r\n\t\t\treturn;\r\n\r\n\t\tEntity e = event.getEntity();\r\n\t\tif (e.getLastDamageCause() instanceof EntityDamageByEntityEvent) {\r\n\t\t\tEntityDamageByEntityEvent nEvent = (EntityDamageByEntityEvent) e\r\n\t\t\t\t\t.getLastDamageCause();\r\n\t\t\tif (nEvent.getDamager() instanceof Player) {\r\n\r\n\t\t\t\tString extraType = null;\r\n\r\n\t\t\t\tif (e instanceof Skeleton) {\r\n\t\t\t\t\tSkeleton ske = (Skeleton) e;\r\n\r\n\t\t\t\t\tif (ske.getSkeletonType() == SkeletonType.WITHER) {\r\n\t\t\t\t\t\textraType = \"WITHER\";\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (e instanceof Creeper) {\r\n\t\t\t\t\tCreeper cre = (Creeper) e;\r\n\r\n\t\t\t\t\tif (cre.isPowered()) {\r\n\t\t\t\t\t\textraType = \"POWERED\";\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (e instanceof Chicken) {\r\n\t\t\t\t\tChicken mob = (Chicken) e;\r\n\r\n\t\t\t\t\tif (mob.getPassenger() != null) {\r\n\t\t\t\t\t\textraType = \"JOCKEY\";\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (e instanceof Rabbit) {\r\n\t\t\t\t\tRabbit mob = (Rabbit) e;\r\n\r\n\t\t\t\t\tif (mob.getRabbitType() == Type.THE_KILLER_BUNNY) {\r\n\t\t\t\t\t\textraType = \"KILLER\";\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (e instanceof Spider) {\r\n\t\t\t\t\tSpider mob = (Spider) e;\r\n\r\n\t\t\t\t\tif (mob.getPassenger() != null) {\r\n\t\t\t\t\t\textraType = \"JOCKEY\";\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (e instanceof Guardian) {\r\n\t\t\t\t\tGuardian mob = (Guardian) e;\r\n\r\n\t\t\t\t\tif (mob.isElder()) {\r\n\t\t\t\t\t\textraType = \"ELDER\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (extraType == null) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tStatsAPIHandler handler = (StatsAPIHandler) plugin\r\n\t\t\t\t\t\t.getDependencyManager().getDependency(dependency.STATS);\r\n\r\n\t\t\t\tStat mobkilled = handler.getAPI().getStatManager()\r\n\t\t\t\t\t\t.getStat(MobKilledStat.statName);\r\n\r\n\t\t\t\tStatsHolder holder = handler.getAPI().getPlayer(\r\n\t\t\t\t\t\tnEvent.getDamager().getUniqueId());\r\n\r\n\t\t\t\tholder.addEntry(mobkilled, new DefaultStatEntry(1,\r\n\t\t\t\t\t\tnew MetadataPair(\"entityType\", e.getType().toString()),\r\n\t\t\t\t\t\tnew MetadataPair(\"extraType\", extraType),\r\n\t\t\t\t\t\tnew MetadataPair(\"world\", e.getLocation().getWorld()\r\n\t\t\t\t\t\t\t\t.getName().toString())));\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public EnemyDieEvent(Object source)\n\t{\n\t\tsuper(source);\n\t}",
"@EventHandler(priority = EventPriority.NORMAL)\n public void Playerdeath(PlayerDeathEvent e) {\n if (plugin.hardcore) {\n //if the dead entity is Player\n if (e.getEntity() instanceof Player) {\n //get the Player\n Player player = (Player) e.getEntity();\n //System.out.println(\"onDeath\");\n\n if (player.getWorld() == plugin.skyworld) {\n\n plugin.write(null, \"debug.player-death\", \"info\", true, player.getName());\n plugin.write(player, \"plugin.ondeath.starting\", \"info\", false);\n\n Island island = new Island(player.getName(), plugin);\n try {\n island.load();\n }\n catch (SQLException ex) {\n plugin.write(null, \"admin.sql.ex-load\", \"severe\", player.getName());\n }\n if (island.exists) {\n\n try {\n island.reset();\n }\n catch (Exception ex) {\n plugin.write(null, \"admin.sql.ex-reset\", \"severe\", player.getName());\n }\n\n plugin.write(player, \"plugin.ondeath.finished\", \"info\");\n }\n }\n }\n }\n }",
"public abstract Event recordTermination(SniperCrawler.InstanceGroup group, String instance);",
"@Test\n public void testDistOverflow()\n {\n String sName = \"dist-overflow-top\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }",
"void deleteEvent(String actorId, String objectId, Date eventTime);",
"public abstract Task onDeath() throws Exception;",
"private void onResponseTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n cleanAfterConnection(true, true);\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }",
"RemoteEvent createRemoteEvent();",
"public void killed(ServerLevel debug1, LivingEntity debug2) {\n/* 1718 */ awardStat(Stats.ENTITY_KILLED.get(debug2.getType()));\n/* */ }",
"@Test\n\tpublic void shouldCallReceiveMethod() {\n\t\t// Arrange\n\t\tUdpReceiver theStub = Mockito.mock(UdpReceiver.class);\n\t\twhen(theStub.receive()).thenReturn(\"TESTID:FAULT:EVENT_DATA\");\n\t\tUdpEventReceiver target = new UdpEventReceiver();\n\t\ttarget.setUdpReceiver(theStub);\n\n\t\t// Act\n\t\ttarget.receive();\n\n\t\t// Assert\n\t\tverify(theStub).receive();\n\t}",
"private DynamicSimuEvent create3PhaseFaultEvent(String faultBusId, BaseDStabNetwork net,double startTime, double durationTime){\n\t\t\t\tDynamicSimuEvent event1 = DStabObjectFactory.createDEvent(\"BusFault3P@\"+faultBusId, \"Bus Fault 3P@\"+faultBusId, \n\t\t\t\t\t\tDynamicSimuEventType.BUS_FAULT, net);\n\t\t\t\tevent1.setStartTimeSec(startTime);\n\t\t\t\tevent1.setDurationSec(durationTime);\n\t\t\t\t\n\t\t // define a bus fault\n\t\t\t\tBaseDStabBus faultBus = net.getDStabBus(faultBusId);\n\n\t\t\t\tAcscBusFault fault = CoreObjectFactory.createAcscBusFault(\"Bus Fault 3P@\"+faultBusId, net, true /* cacheBusScVolt */);\n\t\t \t\tfault.setBus(faultBus);\n\t\t\t\tfault.setFaultCode(SimpleFaultCode.GROUND_3P);\n\t\t\t\tfault.setZLGFault(NumericConstant.SmallScZ);\n\n\t\t // add this fault to the event, must be consist with event type definition before.\n\t\t\t\tevent1.setBusFault(fault); \n\t\t\t\treturn event1;\n\t\t}",
"ConferenceScheduleBuilderService endEvent();",
"@Test\n public void test1() throws Throwable {\n MovementBlockType2__Basic movementBlockType2__Basic0 = new MovementBlockType2__Basic();\n movementBlockType2__Basic0.event_INIT(true);\n movementBlockType2__Basic0.event_FAULT();\n movementBlockType2__Basic0.event_RESUME();\n movementBlockType2__Basic0.event_CLK(true);\n }",
"protected void takeDown() {\n\t\tSystem.out.println(\"TIAgent \" + getAID().getName() + \" terminating.\");\r\n\t}",
"@Override\r\n\tpublic void recieveHit() {\n\t\tif(armour <= 0) {\r\n\t\t\tSystem.out.println(\"Enemy Destroyed\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdouble calculateHitDamage = shot * basicDamage;\r\n\t\t\tif(calculateHitDamage == armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy Armour Destroyed!!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage > armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy is Dead!!\");\r\n\t\t\t}\r\n\t\t\telse if(calculateHitDamage < armour) {\r\n\t\t\t\tarmour = armour - calculateHitDamage;\r\n\t\t\t\tSystem.out.println(\"Enemy not detroyed!! \\n\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Current Enemy life: \"+ armour);\r\n\t\t}\r\n\t}",
"private static BaseMessage dealViewEvent(Map<String, String> requestMap) {\n\t\treturn null;\r\n\t}",
"public void createMonthScenarioBug10249_perUnit_steppedEvents()\n throws Exception {\n long scenarioStartTime = DateTimeHandling\n .calculateMillis(\"2012-11-28 00:00:00\")\n - DateTimeHandling.daysToMillis(3.5);\n long usageStartTime = DateTimeHandling\n .calculateMillis(\"2012-11-29 00:00:00\")\n - DateTimeHandling.daysToMillis(3.5);\n BillingIntegrationTestBase.setDateFactoryInstance(scenarioStartTime);\n\n VOServiceDetails serviceDetails = serviceSetup\n .createPublishAndActivateMarketableService(\n basicSetup.getSupplierAdminKey(),\n \"BUG10249_PER_UNIT_MONTH_EVENTS\",\n TestService.EXAMPLE_ASYNC,\n TestPriceModel.EXAMPLE_PERUNIT_MONTH_STEPPED_EVENTS,\n technicalServiceAsync, supplierMarketplace);\n\n setCutOffDay(basicSetup.getSupplierAdminKey(), 1);\n\n VORoleDefinition role = VOServiceFactory.getRole(serviceDetails,\n \"ADMIN\");\n container.login(basicSetup.getCustomerAdminKey(),\n ROLE_ORGANIZATION_ADMIN);\n VOSubscriptionDetails subDetails = subscrSetup.subscribeToService(\n \"BUG10249_PER_UNIT_MONTH_EVENTS\", serviceDetails,\n basicSetup.getCustomerUser1(), role);\n // ASYNC\n BillingIntegrationTestBase.setDateFactoryInstance(usageStartTime);\n subDetails = subscrSetup.completeAsyncSubscription(\n basicSetup.getSupplierAdminKey(),\n basicSetup.getCustomerAdmin(), subDetails);\n\n // record an event after 8 days\n container.login(basicSetup.getSupplierAdminKey(), ROLE_SERVICE_MANAGER,\n ROLE_TECHNOLOGY_MANAGER);\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(8), \"FILE_DOWNLOAD\", 75);\n\n // record another event after 10 days\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(10), \"FILE_UPLOAD\", 13);\n\n // record another event after 12 days\n subscrSetup.recordEventForSubscription(subDetails, usageStartTime\n + DateTimeHandling.daysToMillis(10), \"FOLDER_NEW\", 1);\n\n long usageEndTime = DateTimeHandling\n .calculateMillis(\"2012-12-01 00:00:00\")\n + DateTimeHandling.daysToMillis(10);\n BillingIntegrationTestBase.setDateFactoryInstance(usageEndTime);\n container.login(basicSetup.getCustomerAdminKey(),\n ROLE_ORGANIZATION_ADMIN);\n subscrSetup.unsubscribeToService(subDetails.getSubscriptionId());\n\n resetCutOffDay(basicSetup.getSupplierAdminKey());\n\n BillingIntegrationTestBase.updateSubscriptionListForTests(\n \"BUG10249_PER_UNIT_MONTH_EVENTS\", subDetails);\n }",
"@Override\n public void processDeletHostEventAfter(final Host host) {\n }",
"@Test\r\n public void test_stop() throws InterruptedException {\r\n final CountDownLatch expectedTimeoutReceivedLatch = new CountDownLatch(1);\r\n final CountDownLatch timeoutWhichShouldNeverBeReceivedLatch = new CountDownLatch(2);\r\n final IExpiryAction<Long> timeoutAction = new IExpiryAction<Long>() {\r\n @Override\r\n public void onTimeout(final Long payload) {\r\n //\r\n // count-down our latches. The first latch only requires one\r\n // invocation, the second expects two (though the second should\r\n // never be received)\r\n //\r\n expectedTimeoutReceivedLatch.countDown();\r\n timeoutWhichShouldNeverBeReceivedLatch.countDown();\r\n }\r\n };\r\n\r\n final int taskTimeout = 100;\r\n final ExpiryViceroy<Long> timeoutManager = ExpiryViceroy.start(timeoutAction, taskTimeout,\r\n TimeUnit.MILLISECONDS);\r\n\r\n //\r\n // ensure it's running - add a task which will expire\r\n //\r\n timeoutManager.onStartTask(Long.valueOf(1));\r\n final boolean timeoutReached = expectedTimeoutReceivedLatch.await(1, TimeUnit.SECONDS);\r\n Assert.assertTrue(\"timeout reached\", timeoutReached);\r\n\r\n //\r\n // now kill the timeout manager ...\r\n //\r\n timeoutManager.stop();\r\n\r\n //\r\n // ... and submit another task.\r\n //\r\n timeoutManager.onStartTask(Long.valueOf(2));\r\n final boolean timeoutNeverReceived = timeoutWhichShouldNeverBeReceivedLatch.await(taskTimeout + 100,\r\n TimeUnit.MILLISECONDS);\r\n Assert.assertFalse(\"a second timeout should never have been called\", timeoutNeverReceived);\r\n }",
"public void testStoppedTime() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset103.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 3, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 160, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 2568121, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 4364, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 2801954, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 25963, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 151, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 2721420, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 0, jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 0, jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 36651675, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 4364, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last timestamp not correct.\", 2801954, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 2827917, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 9, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 4, jvmRun.getStoppedTimeThroughput());\n Assert.assertFalse(Analysis.WARN_GC_STOPPED_RATIO + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n Assert.assertEquals(\"Inverted parallelism event count not correct.\", 0, jvmRun.getInvertedParallelismCount());\n }",
"@Test(timeout = 10000)\n public void testTaskAttemptFinishedEvent() throws Exception {\n JobID jid = new JobID(\"001\", 1);\n TaskID tid = new TaskID(jid, TaskType.REDUCE, 2);\n TaskAttemptID taskAttemptId = new TaskAttemptID(tid, 3);\n Counters counters = new Counters();\n TaskAttemptFinishedEvent test = new TaskAttemptFinishedEvent(taskAttemptId, TaskType.REDUCE, \"TEST\", 123L, \"RAKNAME\", \"HOSTNAME\", \"STATUS\", counters, 234);\n Assert.assertEquals(test.getAttemptId().toString(), taskAttemptId.toString());\n Assert.assertEquals(test.getCounters(), counters);\n Assert.assertEquals(test.getFinishTime(), 123L);\n Assert.assertEquals(test.getHostname(), \"HOSTNAME\");\n Assert.assertEquals(test.getRackName(), \"RAKNAME\");\n Assert.assertEquals(test.getState(), \"STATUS\");\n Assert.assertEquals(test.getTaskId(), tid);\n Assert.assertEquals(test.getTaskStatus(), \"TEST\");\n Assert.assertEquals(test.getTaskType(), REDUCE);\n Assert.assertEquals(234, test.getStartTime());\n }",
"public void testRequestsAndNotifications() {\n final ArrayList<String> results = new ArrayList<String>();\n ArrayList<String> resultsExpected = new ArrayList<String>();\n resultsExpected.add(\"deliveredNotificationRequested\");\n resultsExpected.add(\"composingNotificationRequested\");\n resultsExpected.add(\"displayedNotificationRequested\");\n resultsExpected.add(\"offlineNotificationRequested\");\n resultsExpected.add(\"deliveredNotification\");\n resultsExpected.add(\"displayedNotification\");\n resultsExpected.add(\"composingNotification\");\n resultsExpected.add(\"cancelledNotification\");\n\n // Create a chat for each connection\n Chat chat1 = getConnection(0).getChatManager().createChat(getBareJID(1), null);\n\n MessageEventManager messageEventManager1 = new MessageEventManager(getConnection(0));\n messageEventManager1\n .addMessageEventNotificationListener(new MessageEventNotificationListener() {\n public void deliveredNotification(String from, String packetID) {\n results.add(\"deliveredNotification\");\n }\n\n public void displayedNotification(String from, String packetID) {\n results.add(\"displayedNotification\");\n }\n\n public void composingNotification(String from, String packetID) {\n results.add(\"composingNotification\");\n }\n\n public void offlineNotification(String from, String packetID) {\n results.add(\"offlineNotification\");\n }\n\n public void cancelledNotification(String from, String packetID) {\n results.add(\"cancelledNotification\");\n }\n });\n\n MessageEventManager messageEventManager2 = new MessageEventManager(getConnection(1));\n messageEventManager2\n .addMessageEventRequestListener(new DefaultMessageEventRequestListener() {\n public void deliveredNotificationRequested(\n String from,\n String packetID,\n MessageEventManager messageEventManager) {\n super.deliveredNotificationRequested(from, packetID, messageEventManager);\n results.add(\"deliveredNotificationRequested\");\n }\n\n public void displayedNotificationRequested(\n String from,\n String packetID,\n MessageEventManager messageEventManager) {\n super.displayedNotificationRequested(from, packetID, messageEventManager);\n results.add(\"displayedNotificationRequested\");\n }\n\n public void composingNotificationRequested(\n String from,\n String packetID,\n MessageEventManager messageEventManager) {\n super.composingNotificationRequested(from, packetID, messageEventManager);\n results.add(\"composingNotificationRequested\");\n }\n\n public void offlineNotificationRequested(\n String from,\n String packetID,\n MessageEventManager messageEventManager) {\n super.offlineNotificationRequested(from, packetID, messageEventManager);\n results.add(\"offlineNotificationRequested\");\n }\n });\n\n // Create the message to send with the roster\n Message msg = new Message();\n msg.setSubject(\"Any subject you want\");\n msg.setBody(\"An interesting body comes here...\");\n // Add to the message all the notifications requests (offline, delivered, displayed,\n // composing)\n MessageEventManager.addNotificationsRequests(msg, true, true, true, true);\n\n // Send the message that contains the notifications request\n try {\n chat1.sendMessage(msg);\n messageEventManager2.sendDisplayedNotification(getBareJID(0), msg.getPacketID());\n messageEventManager2.sendComposingNotification(getBareJID(0), msg.getPacketID());\n messageEventManager2.sendCancelledNotification(getBareJID(0), msg.getPacketID());\n // Wait up to 2 seconds\n long initial = System.currentTimeMillis();\n while (System.currentTimeMillis() - initial < 2000 &&\n (!results.containsAll(resultsExpected))) {\n Thread.sleep(100);\n }\n assertTrue(\n \"Test failed due to bad results (1)\" + resultsExpected,\n resultsExpected.containsAll(results));\n assertTrue(\n \"Test failed due to bad results (2)\" + results,\n results.containsAll(resultsExpected));\n\n } catch (Exception e) {\n fail(\"An error occured sending the message\");\n }\n }",
"@Override\r\n\tpublic void finishEvent() {\n\t\tif(!mEventStarted)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tmEventStarted = false;\r\n\t\t\r\n\t\txmlStreamTracerService.postObsel(mURL, mTraceID, mCookie, mRoot.toString(),\r\n\t\t\t\tnew AsyncCallback<String>() {\r\n\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t// Show the RPC error message to the user\r\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Failed to post the event.\");\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Event posted.\");\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tmDocument.removeChild(mRoot);\r\n\t}",
"public com.google.longrunning.Operation simulateMaintenanceEvent(\n com.google.cloud.tpu.v2alpha1.SimulateMaintenanceEventRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getSimulateMaintenanceEventMethod(), getCallOptions(), request);\n }",
"@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\n public void onEntityDeath(EntityDeathEvent event) {\n Entity entity = event.getEntity();\n if (!(entity instanceof LivingEntity))\n {\n return;\n }\n\n LivingEntity died = (LivingEntity)entity;\n String name = died.getCustomName();\n if (name == null || name.isEmpty())\n {\n return;\n }\n\n // TODO Fix this\n EntityData mob = mobsByName.get(name);\n if (mob == null) return;\n\n MagicMobDeathEvent deathEvent = new MagicMobDeathEvent(controller, mob, event);\n Bukkit.getPluginManager().callEvent(deathEvent);\n\n mob.modifyDrops(controller, event);\n\n // Prevent double-deaths .. gg Mojang?\n // Kind of hacky to use this flag for it, but seemed easiest\n died.setCustomName(null);\n }",
"@Override\r\n\tpublic void processLeave(SimulationData simData, RunDataClient client) {\r\n\t}",
"@Test\n public void test2() throws Throwable {\n MovementBlockType2__Basic movementBlockType2__Basic0 = new MovementBlockType2__Basic();\n movementBlockType2__Basic0.event_INIT(false);\n movementBlockType2__Basic0.event_FAULT();\n movementBlockType2__Basic0.event_RESUME();\n movementBlockType2__Basic0.event_CLK(false);\n }",
"private void processEvent(Event e) {\n\t\t// adjust timer\n\t\ttime = e.getTime();\n\t\tprintTimer();\n\n\t\t// get related patient and doctor. Start them waiting. Get preferredDoctor\n\t\tPerson p = e.getPatient();\n\t\tp.startWaiting();\n\t\tPerson d = e.getDoctor();\n\t\tif (d != null) {\n\t\t\td.startWaiting();\n\t\t}\n\t\tPerson preferredDoctor = p.getPreferredDoctor();\n\n\t\t// switch on the event type\n\t\tswitch (e.getType()) {\n\t\t\tcase Event.NEW_PATIENT :\n\t\t\t\t// new patient entered ambulance. Add him to incoming waiters\n\t\t\t\t// and check if doctors are waiting\n\t\t\t\tprint(\n\t\t\t\t\t\"New patient: \" + p + \", add to examination-waiting-list\");\n\t\t\t\t_examinationWaiters.addLast(p);\n\t\t\t\tcheckExamination();\n\t\t\t\tbreak;\n\n\t\t\tcase Event.FIRST_EXAMINATION :\n\t\t\t\t// end of 1st examination\n\t\t\t\tprint(\"1st examination end: \" + p + \", \" + d);\n\t\t\t\tif (needXray()) {\n\t\t\t\t\t// if xray needed, add patient to the xray waiters\n\t\t\t\t\t// and check if xray-doctor is waiting\n\t\t\t\t\tprint(\"Xray needed. Add \" + p + \" to xray-waiting-list\");\n\t\t\t\t\tp.setPreferredDoctor(d);\n\t\t\t\t\t_xrayWaiters.addLast(p);\n\t\t\t\t\tcheckXRay();\n\t\t\t\t} else {\n\t\t\t\t\t// if no xray needed, then patient can go home.\n\t\t\t\t\tprint(\"No xray needed. Can go home now: \" + p);\n\t\t\t\t\t_gonePatients.add(p);\n\t\t\t\t}\n\t\t\t\t// check if incoming patients are waiting\n\t\t\t\tcheckExamination();\n\t\t\t\tbreak;\n\n\t\t\tcase Event.XRAY_SHOOTING :\n\t\t\t\t// end of xray-examination. Add Patient to waiters.\n\t\t\t\t// Check if any xray waiters and if doctors are waiting\n\t\t\t\tprint(\"Xray-shooting end: \" + p);\n\t\t\t\tif (_policy == XRAY_FIRST) {\n\t\t\t\t\tprint(\"Add to back-from-xray-waiters: \" + p);\n\t\t\t\t\t_backFromXrayWaiters.addLast(p);\n\t\t\t\t} else {\n\t\t\t\t\tprint(\"Add to examination-waiting-list: \" + p);\n\t\t\t\t\t_examinationWaiters.addLast(p);\n\t\t\t\t}\n\t\t\t\tcheckExamination();\n\t\t\t\tcheckXRay();\n\t\t\t\tbreak;\n\n\t\t\tcase Event.SECOND_EXAMINATION :\n\t\t\t\t// end of second examination. Patient can go home now.\n\t\t\t\t// check if incoming patients are waiting.\n\t\t\t\tprint(\"2nd examination end: \" + p + \", \" + d);\n\t\t\t\tprint(\"Can go home: \" + p);\n\t\t\t\t_gonePatients.add(p);\n\t\t\t\tcheckExamination();\n\t\t\t\tbreak;\n\t\t}\n\t}",
"@Test\n public void detach_message_to_released_channel_is_dropped() throws AblyException {\n AblyRealtime ably = null;\n long oldRealtimeTimeout = Defaults.realtimeRequestTimeout;\n final String channelName = \"detach_message_to_released_channel_is_dropped\";\n\n try {\n DebugOptions opts = createOptions(testVars.keys[0].keyStr);\n Helpers.RawProtocolMonitor monitor = Helpers.RawProtocolMonitor.createReceiver(ProtocolMessage.Action.detached);\n opts.protocolListener = monitor;\n\n /* Make test faster */\n Defaults.realtimeRequestTimeout = 1000;\n opts.channelRetryTimeout = 1000;\n\n ably = new AblyRealtime(opts);\n Channel channel = ably.channels.get(channelName);\n channel.attach();\n (new ChannelWaiter(channel)).waitFor(ChannelState.attached);\n\n // Listen for detach messages and release the channel\n ably.channels.release(channelName);\n monitor.waitForRecv(1, 10000);\n\n assertFalse(ably.channels.containsKey(\"messages_to_non_existent_channels_are_dropped\"));\n } finally {\n if (ably != null)\n ably.close();\n Defaults.realtimeRequestTimeout = oldRealtimeTimeout;\n }\n }",
"@Test\r\n public void testReceivePallets() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sscc:0614142.0000000010\";\r\n XmlObjectEventType event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(REICEIVE_PALLET_XML);\r\n\r\n event = dbHelper.getObjectEventByEpc(epcToCheck);\r\n assertNotNull(event);\r\n }",
"public void operationEnd(BGMEvent e);",
"public DescribeEventsRequest() {}",
"@Override\n\tprotected void on_boss_death() {\n\n\t}",
"@Test\n public void testSingleEvent() throws Exception {\n String processId = \"test\";\n deploy(new ProcessDefinition(processId, Arrays.<AbstractElement>asList(\n new StartEvent(\"start\"),\n new SequenceFlow(\"f1\", \"start\", \"gw1\"),\n new InclusiveGateway(\"gw1\"),\n new SequenceFlow(\"f2\", \"gw1\", \"ev\"),\n new IntermediateCatchEvent(\"ev\", \"ev\"),\n new SequenceFlow(\"f3\", \"ev\", \"gw2\"),\n new InclusiveGateway(\"gw2\"),\n new SequenceFlow(\"f4\", \"gw2\", \"end\"),\n new EndEvent(\"end\")\n )));\n\n // ---\n\n String key = UUID.randomUUID().toString();\n getEngine().start(key, processId, null);\n\n // ---\n\n getEngine().resume(key, \"ev\", null);\n\n // ---\n\n assertActivations(key, processId,\n \"start\",\n \"f1\",\n \"gw1\",\n \"f2\",\n \"ev\",\n \"f3\",\n \"gw2\",\n \"f4\",\n \"end\");\n assertNoMoreActivations();\n }",
"@EventHandler\n\tpublic void onEntityKill(EntityDeathEvent e) {\n\n\t\tif (!(e.getEntity().getKiller() instanceof Player)) {\n\t\t\treturn;\n\t\t}\n\n\t\tPlayerTR trPlayer = TaskRun.getPlayer(e.getEntity().getKiller());\n\t\tLivingEntity entityKilled = e.getEntity();\n\n\t\tif (entityKilled instanceof PigZombie) {\n\t\t\ttrPlayer.completeTask(4);\n\t\t} else if (entityKilled instanceof Creeper) {\n\t\t\ttrPlayer.completeTask(10);\n\t\t} else if (entityKilled instanceof Ghast) {\n\t\t\ttrPlayer.completeTask(14);\n\t\t} else if ((entityKilled instanceof Skeleton && ((Skeleton) entityKilled).getSkeletonType() == SkeletonType.WITHER)\n\t\t\t\t|| (NMSUtils.isAtLeastOneTwelve() && entityKilled.getType() == EntityType.valueOf(\"WITHER_SKELETON\"))) {\n\t\t\ttrPlayer.completeTask(29);\n\t\t}\n\t}",
"@Test\n public void spawnPowerUpSelectedEventTest() {\n try {\n PowerUpsDeck powerUpsDeck = new PowerUpsDeck();\n PowerUpCardClient toKeep = new PowerUpCardClient(powerUpsDeck.drawCard());\n PowerUpCardClient spawnCard = new PowerUpCardClient(powerUpsDeck.drawCard());\n SpawnPowerUpSelectedEvent spawnPu = new SpawnPowerUpSelectedEvent(3, \"graz\", toKeep, spawnCard, true);\n try {\n turnController.handleEvent(spawnPu);\n } catch(HandlerNotImplementedException e) {\n e.printStackTrace();\n }\n } catch(URISyntaxException e) {\n e.printStackTrace();\n fail();\n }\n }",
"@Before\n @Override\n public void setUp() throws Exception {\n super.setUp();\n summary = this.getClass().getName() + \" \" + UUID.randomUUID().toString();\n /*\n * Create event\n */\n EventData eventToCreate = EventFactory.createSingleTwoHourEvent(0, summary);\n replyingAttendee = prepareCommonAttendees(eventToCreate);\n eventToCreate = prepareAttendeeConference(eventToCreate);\n eventToCreate = prepareModeratorConference(eventToCreate);\n createdEvent = eventManager.createEvent(eventToCreate, true);\n\n /*\n * Receive mail as attendee\n */\n MailData iMip = receiveIMip(apiClientC2, userResponseC1.getData().getEmail1(), summary, 0, SchedulingMethod.REQUEST);\n rememberMail(apiClientC2, iMip);\n AnalysisChangeNewEvent newEvent = assertSingleChange(analyze(apiClientC2, iMip)).getNewEvent();\n assertNotNull(newEvent);\n assertEquals(createdEvent.getUid(), newEvent.getUid());\n assertAttendeePartStat(newEvent.getAttendees(), replyingAttendee.getEmail(), PartStat.NEEDS_ACTION.status);\n\n /*\n * reply with \"accepted\"\n */\n attendeeEvent = assertSingleEvent(accept(apiClientC2, constructBody(iMip), null), createdEvent.getUid());\n rememberForCleanup(apiClientC2, attendeeEvent);\n assertAttendeePartStat(attendeeEvent.getAttendees(), replyingAttendee.getEmail(), PartStat.ACCEPTED.status);\n\n /*\n * Receive mail as organizer and check actions\n */\n MailData reply = receiveIMip(apiClient, replyingAttendee.getEmail(), summary, 0, SchedulingMethod.REPLY);\n analyze(reply.getId());\n rememberMail(reply);\n\n /*\n * Take over accept and check in calendar\n */\n assertSingleEvent(update(constructBody(reply)), createdEvent.getUid());\n EventResponse eventResponse = chronosApi.getEvent(createdEvent.getId(), createdEvent.getFolder(), createdEvent.getRecurrenceId(), null, null);\n assertNull(eventResponse.getError(), eventResponse.getError());\n createdEvent = eventResponse.getData();\n for (Attendee attendee : createdEvent.getAttendees()) {\n assertThat(\"Participant status is not correct.\", PartStat.ACCEPTED.status, is(attendee.getPartStat()));\n }\n }",
"@Test\n public void test02SendEvents() throws Exception{\n Event event1 = restService.registerEvent(createEvent(\"ACCOUNTS\", createMap(Object.class, \"date\", \"Yesterday\")));\n assertNotNull(event1.getId());\n Event event2 = restService.registerEvent(createEvent(\"TRANSACTIONS\", createMap(Object.class, \"date\", \"Yesterday\")));\n assertNotNull(event2.getId());\n Event event3 = restService.registerEvent(createEvent(\"PRODUCTS\", createMap(Object.class, \"date\", \"Yesterday\")));\n assertNotNull(event3.getId());\n Event event4 = restService.registerEvent(createEvent(\"ACCOUNTS\", createMap(Object.class, \"date\", \"Today\")));\n assertNotNull(event4.getId());\n Event event5 = restService.registerEvent(createEvent(\"TRANSACTIONS\", createMap(Object.class, \"date\", \"Today\")));\n assertNotNull(event5.getId());\n Event event6 = restService.registerEvent(createEvent(\"PRODUCTS\", createMap(Object.class, \"date\", \"Today\")));\n assertNotNull(event6.getId());\n Event event7 = restService.registerEvent(createEvent(\"ACCOUNTS\", createMap(Object.class, \"date\", \"Tomorrow\", \"premise\", \"PC2\")));\n assertNotNull(event7.getId());\n Event event8 = restService.registerEvent(createEvent(\"TRANSACTIONS\", createMap(Object.class, \"date\", \"Tomorrow\", \"premise\", \"PC2\")));\n assertNotNull(event8.getId());\n Event event9 = restService.registerEvent(createEvent(\"PRODUCTS\", createMap(Object.class, \"date\", \"Tomorrow\", \"premise\", \"PC2\")));\n assertNotNull(event9.getId());\n delay(10);\n\n //yesterday events\n List<CallbackData> list = restService.findCallbackInstancesBy(event1.getId(), null, null, null, 0, 0);\n// assertEquals(5, list.size());\n assertEquals(4, list.size());\n list = restService.findCallbackInstancesBy(event2.getId(), null, null, null, 0, 0);\n assertEquals(1, list.size());\n list = restService.findCallbackInstancesBy(event3.getId(), null, null, null, 0, 0);\n assertEquals(4, list.size());\n //today\n list = restService.findCallbackInstancesBy(event4.getId(), null, null, null, 0, 0);\n assertEquals(4, list.size());\n list = restService.findCallbackInstancesBy(event5.getId(), null, null, null, 0, 0);\n assertEquals(1, list.size());\n list = restService.findCallbackInstancesBy(event6.getId(), null, null, null, 0, 0);\n assertEquals(4, list.size());\n //premise\n list = restService.findCallbackInstancesBy(event7.getId(), null, null, null, 0, 0);\n assertEquals(5, list.size());\n list = restService.findCallbackInstancesBy(event8.getId(), null, null, null, 0, 0);\n assertEquals(2, list.size());\n list = restService.findCallbackInstancesBy(event9.getId(), null, null, null, 0, 0);\n assertEquals(5, list.size());\n\n //Event status check\n EventEntity evt = eventRepo.eventById(Long.parseLong(event1.getId()));\n assertEquals(evt.getStatus(), Constants.EVENT_INSTANCE_STATUS_PROCESSED);\n assertEquals(evt.getId(), Long.parseLong(event1.getId()));\n\n }",
"@Override\n \tpublic void notifyDeath() {\n \t\tGame.GAME_STATE = Game.GAME_STATE_DEAD;\n \t\t\n \t}",
"public boolean sendDeath() {\n return true;\n }",
"@EventHandler\n\tpublic void onPlayerDeath(final PlayerDeathEvent event) {\n\t\tif (event.getEntity().getKiller() != null) {\n\t\t\tif (event.getEntity().getKiller() instanceof Player && event.getEntity() instanceof Player && pli.global_players.containsKey(event.getEntity().getName()) && pli.global_players.containsKey(event.getEntity().getKiller().getName())) {\n\t\t\t\tevent.getDrops().clear();\n\t\t\t\tevent.getEntity().setHealth(20);\n\t\t\t\t// final Location l = event.getEntity().getLocation();\n\t\t\t\tfinal String killername = event.getEntity().getKiller().getName();\n\t\t\t\tfinal String entityKilled = event.getEntity().getName();\n\n\t\t\t\tBukkit.getScheduler().runTask(this, new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tpli.getRewardsInstance().giveKillReward(killername, 2);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tfinal Player p1 = event.getEntity().getKiller();\n\t\t\t\tfinal Player p2 = event.getEntity();\n\n\t\t\t\tIArena a = (IArena) pli.global_players.get(p1.getName());\n\t\t\t\tUtil.teleportPlayerFixed(p2, a.getSpawns().get(r.nextInt(a.getSpawns().size())));\n\n\t\t\t\tInteger gpkiller = 2;\n\t\t\t\tInteger gploser = 0;\n\t\t\t\tif (getConfig().isSet(\"player.\" + killername)) {\n\t\t\t\t\tgpkiller = getConfig().getInt(\"player.\" + killername + \".gp\") + 2; // +2 gp\n\t\t\t\t}\n\t\t\t\tif (getConfig().isSet(\"player.\" + entityKilled)) {\n\t\t\t\t\tgploser = Math.max(getConfig().getInt(\"player.\" + entityKilled + \".gp\") - 1, 0); // -1 gp\n\t\t\t\t}\n\t\t\t\tgetConfig().set(\"player.\" + killername + \".gp\", gpkiller);\n\t\t\t\tgetConfig().set(\"player.\" + entityKilled + \".gp\", gploser);\n\t\t\t\tthis.saveConfig();\n\n\t\t\t\ttry {\n\t\t\t\t\tmainsql.updateStats(p1.getName(), 2);\n\t\t\t\t\tmainsql.updateStats(p2.getName(), -1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"Failed updating sql gp.\");\n\t\t\t\t}\n\n\t\t\t\tBukkit.getScheduler().runTaskLater(this, new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tp2.getInventory().clear();\n\t\t\t\t\t\tp2.getInventory().setHelmet(null);\n\t\t\t\t\t\tp2.getInventory().setChestplate(null);\n\t\t\t\t\t\tp2.getInventory().setLeggings(null);\n\t\t\t\t\t\tp2.getInventory().setBoots(null);\n\t\t\t\t\t\tp2.getInventory().setArmorContents(null);\n\t\t\t\t\t\tfor (ItemStack item : start_items) {\n\t\t\t\t\t\t\tp2.getInventory().addItem(item);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tp2.updateInventory();\n\t\t\t\t\t}\n\t\t\t\t}, 20L);\n\n\t\t\t\tp2.playSound(p2.getLocation(), Sound.CAT_MEOW, 1F, 1);\n\t\t\t\tlv.put(p2.getName(), 0);\n\n\t\t\t\tArrayList<String> keys = new ArrayList<String>();\n\t\t\t\tif (getConfig().isConfigurationSection(\"player.\" + p2.getName() + \".items\")) {\n\t\t\t\t\tgetConfig().set(\"player.\" + p2.getName() + \".items\", null);\n\t\t\t\t\tthis.saveConfig();\n\t\t\t\t}\n\n\t\t\t\tfor (PotionEffect effect : p2.getActivePotionEffects())\n\t\t\t\t\tp2.removePotionEffect(effect.getType());\n\n\t\t\t\tfor (PotionEffect effect : p1.getActivePotionEffects())\n\t\t\t\t\tp1.removePotionEffect(effect.getType());\n\n\t\t\t\tp1.playEffect(p1.getLocation(), Effect.POTION_BREAK, 5);\n\t\t\t\tInteger current = lv.get(p1.getName());\n\t\t\t\tlv.put(p1.getName(), current + 1);\n\t\t\t\tp1.sendMessage(im.upgrade.replaceAll(\"<level>\", Integer.toString(lv.get(p1.getName()))));\n\t\t\t\tLevel.updatelv(m, lv, p1);\n\n\t\t\t\tscoreboard.updateScoreboard(a);\n\n\t\t\t\tp1.setFoodLevel(20);\n\t\t\t\tp1.setHealth(20);\n\t\t\t\tp2.setHealth(20);\n\t\t\t\tp2.setFoodLevel(20);\n\n\t\t\t\tthis.addextraitems(p1);\n\t\t\t}\n\t\t} else {\n\t\t\t// death by something else -> respawn\n\n\t\t\tif (pli.global_players.containsKey(event.getEntity().getName())) {\n\t\t\t\tevent.getEntity().setHealth(20);\n\t\t\t\tif (event.getEntity() != null) {\n\t\t\t\t\tif (event.getEntity() instanceof Player) {\n\t\t\t\t\t\tevent.getDrops().clear();\n\t\t\t\t\t\tfinal Player p = (Player) event.getEntity();\n\t\t\t\t\t\tIArena a = (IArena) pli.global_players.get(p.getName());\n\t\t\t\t\t\tif (a != null && p != null) {\n\t\t\t\t\t\t\tUtil.teleportPlayerFixed(p, a.getSpawns().get(r.nextInt(a.getSpawns().size())));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tp.playSound(p.getLocation(), Sound.CAT_MEOW, 1F, 1);\n\n\t\t\t\t\t\tp.setFoodLevel(20);\n\n\t\t\t\t\t\tlv.put(p.getName(), 0);\n\n\t\t\t\t\t\tBukkit.getScheduler().runTaskLater(this, new Runnable() {\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tp.getInventory().clear();\n\t\t\t\t\t\t\t\tp.getInventory().setHelmet(null);\n\t\t\t\t\t\t\t\tp.getInventory().setChestplate(null);\n\t\t\t\t\t\t\t\tp.getInventory().setLeggings(null);\n\t\t\t\t\t\t\t\tp.getInventory().setBoots(null);\n\t\t\t\t\t\t\t\tp.getInventory().setArmorContents(null);\n\t\t\t\t\t\t\t\tfor (ItemStack item : start_items) {\n\t\t\t\t\t\t\t\t\tp.getInventory().addItem(item);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tp.updateInventory();\n\n\t\t\t\t\t\t\t\tm.addextraitems(p);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}, 20L);\n\n\t\t\t\t\t\tfor (PotionEffect effect : p.getActivePotionEffects())\n\t\t\t\t\t\t\tp.removePotionEffect(effect.getType());\n\n\t\t\t\t\t\tp.setHealth(20);\n\t\t\t\t\t\tp.setFoodLevel(20);\n\n\t\t\t\t\t\tthis.addextraitems(p);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void fireTerminateEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.TERMINATE));\n\t}",
"protected void fireTerminateEvent() {\n\t\tfireEvent(new DebugEvent(this, DebugEvent.TERMINATE));\n\t}",
"@Test\r\n public void testReceiveOrder() throws Exception\r\n {\r\n String epcToCheck = \"urn:epc:id:sgtin:0614142.107349.10\";\r\n XmlTransactionEventType event = dbHelper.getTransactionEventByEpc(epcToCheck);\r\n Assert.assertNull(event);\r\n\r\n runCaptureTest(RECEIVE_ORDER_XML);\r\n\r\n event = dbHelper.getTransactionEventByEpc(epcToCheck);\r\n Assert.assertNotNull(event);\r\n }",
"public void requestFailed(RequestFailureEvent e);",
"public abstract void onDie();",
"public void testHostStateTransitions() {\n Date currDate = Calendar.getInstance().getTime();\n SimpleDateFormat sdfStart = new SimpleDateFormat(\"MM/dd/yyyy 00:00:00\");\n String startDate = sdfStart.format(currDate);\n SimpleDateFormat sdfEnd = new SimpleDateFormat(\"MM/dd/yyyy 23:59:59\");\n String endDate = sdfEnd.format(currDate);\n List<StateTransition> transitionList = logMessageService.getHostStateTransitions(\"nagios\", startDate, endDate, false);\n assertNotNull(transitionList);\n assertEquals(\"Number of state transitions\", 0, transitionList.size());\n // Set date to yesterday 10am\n Calendar cal = Calendar.getInstance();\n cal.add(Calendar.DATE, -1);\n cal.set(Calendar.HOUR_OF_DAY, 10);\n cal.set(Calendar.MINUTE, 00);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n Date firstinsertdate = cal.getTime();\n // SCENARIO : 1\n this.createTestMessage(\"exchange\", null, \"MINOR\", \"NAGIOS\", \"Unit test message 1\", \"OPEN\", \"PENDING\", firstinsertdate);\n transitionList = logMessageService.getHostStateTransitions(\"exchange\", startDate, endDate, false);\n assertEquals(\"Number of state transitions\", 1, transitionList.size());\n if (transitionList != null) {\n for (StateTransition stateTransition : transitionList) {\n assertNull(\"From status :\", stateTransition.getFromStatus());\n assertEquals(\"To status :\", \"PENDING\", stateTransition.getToStatus().getName());\n }\n } else {\n assertNotNull(transitionList);\n }\n // First state change yesterday\n cal = Calendar.getInstance();\n cal.add(Calendar.DATE, -1);\n cal.set(Calendar.HOUR_OF_DAY, 22);\n cal.set(Calendar.MINUTE, 00);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n firstinsertdate = cal.getTime();\n // SCENARIO : 2\n LogMessage msg = this.createTestMessage(\"exchange\", null, \"MAJOR\", \"NAGIOS\", \"Unit test message 2\", \"OPEN\", \"UNSCHEDULED CRITICAL\", firstinsertdate);\n transitionList = logMessageService.getHostStateTransitions(\"exchange\", startDate, endDate, false);\n assertEquals(\"Number of state transitions\", 1, transitionList.size());\n if (transitionList != null) {\n\n cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 00);\n cal.set(Calendar.MINUTE, 00);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n long sinceMidnight = System.currentTimeMillis() - cal.getTime().getTime();\n // TODO: Enable this test after availability refactoring for 7.1.0.\n //assertEquals(\"Duration in state : \",sinceMidnight, transitionList.get(0).getDurationInState().longValue());\n\n } else {\n assertNotNull(transitionList);\n }\n // SCENARIO : 3\n // First state change today at 3am\n cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 3);\n cal.set(Calendar.MINUTE, 00);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n firstinsertdate = cal.getTime();\n msg.setFirstInsertDate(firstinsertdate);\n logMessageService.saveLogMessage(msg);\n transitionList = logMessageService.getHostStateTransitions(\"exchange\", startDate, endDate, false);\n if (transitionList != null) {\n // TODO: Enable this test after availability refactoring for 7.1.0.\n //assertEquals(\"Duration in state : \",sincelaststatechange, transitionList.get(0).getDurationInState().longValue());\n\n } else {\n assertNotNull(transitionList);\n }\n\n // SCENARIO : 4\n // First state change today at 3am\n cal = Calendar.getInstance();\n cal.add(Calendar.DATE, -1);\n cal.set(Calendar.HOUR_OF_DAY, 22);\n cal.set(Calendar.MINUTE, 00);\n cal.set(Calendar.SECOND, 0);\n cal.set(Calendar.MILLISECOND, 0);\n firstinsertdate = cal.getTime();\n msg = this.createTestMessage(\"exchange\", null, \"MAJOR\", \"NAGIOS\", \"Unit test message 3\", \"OPEN\", \"UP\", firstinsertdate);\n transitionList = logMessageService.getHostStateTransitions(\"exchange\", startDate, endDate, false);\n if (transitionList != null) {\n long sincefirststatechange = System.currentTimeMillis() - cal.getTime().getTime();\n // TODO: Enable this test after availability refactoring for 7.1.0.\n //assertEquals(\"Duration in state : \",5 * 3600 * 1000, transitionList.get(0).getDurationInState().longValue());\n //assertEquals(\"Duration in state : \",sincefirststatechange, transitionList.get(1).getDurationInState().longValue());\n\n } else {\n assertNotNull(transitionList);\n }\n\n\n }",
"@Test\n public void testCanIrrigateWhenOneCloseTileIs(){\n \tAgendaEventListener ael = mock( AgendaEventListener.class );\n \tksession.addEventListener( ael );\n \t\n \t// prepare test data\n \t\n \tPlayerDTO player = getPlayer(11L, \"honza\");\n \tTileDTO tile = getTile(3L, 3L,3L,\"forest\", new HashSet<String>());\n\t\ttile.setDefenseBonus(50);\n\t\t\n\t\tUnitDTO unit = getUnit(\"phalanx\",tile.getId());\n\t\tunit.setOwner(player.getId());\n\t\tunit.getActions().add(\"irrigation\");\n\t\t// already irrigated tile\n\t\tTileDTO tile2 = getTile(4L,3L,4L, \"plains\", new HashSet<String>());\n\t\ttile2.getImprovements().add(\"irrigation\");\n\t\ttile2.setDefenseBonus(0);\n\t\t// cost of improvement irrigation is two turns, so action will last 2 turns\n\t\tTileImprovementDTO irrigation = getTileImp(\"irrigation\",2);\n\t\t\n\t\t// insert facts\n\t\tgame.insert(tile);\n\t\tgame.insert(tile2);\n\t\tgame.insert(irrigation);\n\t\tgame.insert(getUnitType(\"phalanx\"));\n\t\t\n\t\tgame.insert(player);\n\t\t\n\t\tgame.insert(unit);\n\t\t\n\n\t\t// this triggers the \"Build Improvement\" rule when it is possible to process\n\t\tgame.unitBeginAction(unit.getId(), \"irrigation\");\n\t\t\n\t\t\n\t\t// new turn\n\t\tksession.getEntryPoint(\"GameControlStream\").insert(new TurnEvent());\n\t\tksession.fireAllRules();\n\t\t\n\t\t// new turn\n\t\tksession.getEntryPoint(\"GameControlStream\").insert(new TurnEvent());\n\t\tksession.fireAllRules();\n\t\t\n\t\t// get fired rules\n\t\tArgumentCaptor<AfterMatchFiredEvent> aafe = ArgumentCaptor.forClass( AfterMatchFiredEvent.class );\n\t\tverify( ael ,atLeastOnce()).afterMatchFired( aafe.capture() );\n\t\tList<String> firedRules = getFiredRules(aafe.getAllValues());\n\t\t// rule \"Build Improvement\" did fire\n\t\tAssert.assertTrue(\"Build Improvement Rule fired.\",firedRules.contains(\"Build Improvement\"));\n\t\tAssert.assertTrue(\"Process Build Improvement completed.\",tile.getImprovements().contains(\"irrigation\"));\n\t\tAssert.assertNull(\"Current action should change to null\", unit.getCurrentAction());\n }",
"@Override\n\tprotected void takeDown() {\n\t\tSystem.out.println(\"i'm going to die ...............................\");\n\t}",
"public void testSummaryStatsStoppedTime() {\n File testFile = new File(\"src/test/data/dataset41.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertTrue(JdkUtil.LogEventType.G1_YOUNG_PAUSE.toString() + \" collector not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.G1_YOUNG_PAUSE));\n Assert.assertTrue(JdkUtil.LogEventType.APPLICATION_STOPPED_TIME.toString() + \" not identified.\",\n jvmRun.getEventTypes().contains(LogEventType.APPLICATION_STOPPED_TIME));\n Assert.assertEquals(\"GC Event count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 2192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 2847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 964, jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 3884, jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 3884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 4884, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 99, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 78, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }",
"SimulationEvent call(TaskThreadSimEvent event);",
"@Test\n public void testDistOverflowFront()\n {\n String sName = \"dist-overflow-front\";\n generateEvents(sName);\n checkEvents(false, true);\n BackingMapListener.INSTANCE.assertContext();\n }"
] | [
"0.54850334",
"0.5473978",
"0.5362181",
"0.534112",
"0.53367066",
"0.531839",
"0.5244352",
"0.51866055",
"0.51066315",
"0.5101656",
"0.5068643",
"0.5049315",
"0.5033444",
"0.4992045",
"0.498024",
"0.49761045",
"0.49703425",
"0.4957606",
"0.49538514",
"0.49495623",
"0.4946936",
"0.49173924",
"0.49050352",
"0.49015215",
"0.48914146",
"0.4886161",
"0.4869311",
"0.48683187",
"0.4861594",
"0.48592785",
"0.48535234",
"0.4849986",
"0.48411658",
"0.48277318",
"0.48227224",
"0.4820877",
"0.48149937",
"0.48082042",
"0.48015726",
"0.47870678",
"0.47813264",
"0.47758606",
"0.47639447",
"0.4756143",
"0.4745639",
"0.47432452",
"0.4740832",
"0.47298414",
"0.47029117",
"0.46904287",
"0.46816823",
"0.46662414",
"0.4662802",
"0.46585214",
"0.46304482",
"0.4624667",
"0.461602",
"0.46057624",
"0.46025133",
"0.45893195",
"0.45860565",
"0.458455",
"0.45798552",
"0.45737112",
"0.45729485",
"0.45651218",
"0.45638558",
"0.45542505",
"0.45518166",
"0.4542078",
"0.45414397",
"0.45411357",
"0.45337754",
"0.45221832",
"0.4520087",
"0.45110834",
"0.45075765",
"0.4505111",
"0.45050165",
"0.4498975",
"0.44901136",
"0.448744",
"0.448548",
"0.448052",
"0.44777796",
"0.44777024",
"0.44743928",
"0.447031",
"0.4466552",
"0.44640005",
"0.44640005",
"0.44636336",
"0.44630674",
"0.44611275",
"0.44598803",
"0.44564947",
"0.44552395",
"0.4449109",
"0.4445003",
"0.44435605"
] | 0.9011671 | 0 |
Instantiates a new catch event node. | public EbgConnectedCatchEventNode(String uniqueProcessId,
String uniqueFlowNodeId, EventDefinition eventDefinition,
List<ActorRef> outgoingNodes, DataObjectService dataObjectHandling) {
this.setUniqueProcessId(uniqueProcessId);
this.setUniqueFlowNodeId(uniqueFlowNodeId);
this.setEventDefinition(eventDefinition);
this.setOutgoingNodes(outgoingNodes);
this.setNodeInstanceMediatorService(new NodeInstanceMediatorService(
uniqueProcessId, uniqueFlowNodeId));
this.setDataObjectHandling(dataObjectHandling);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CatchingEvent createCatchingEvent();",
"IntermediateCatchEvent createIntermediateCatchEvent();",
"public NodeEvent() {\n\t\tthis(new Note(), DEFAULT_LIKELIHOOD);\n\t}",
"public Event() {}",
"public Event() {\r\n\r\n\t}",
"public Event() {\n\t}",
"public Event() {\n }",
"public Event() {\n }",
"Event createEvent();",
"Event createEvent();",
"public Event() {\n\n }",
"public CoasterCreateNodeEvent(Player who, TrackNode node) {\n super(who, node);\n }",
"public\n CreateEvent()\n {}",
"protected ICEvent() {}",
"EventChannel create();",
"public Eventd() {\n }",
"public Event(){\n \n }",
"public DocumentEvent() {}",
"private Node createNode(EventPair ep, Color c, Node parent) {\n Node node = new Node();\n node.ID = ep.ID;\n node.count = ep.count;\n node.color = c;\n node.left = createNullLeaf(node);\n node.right = createNullLeaf(node);\n node.parent = parent;\n return node;\n }",
"protected static ExceptionSignalingNode createExceptionNode(final SourceSection ss) {\n CompilerDirectives.transferToInterpreter();\n return ExceptionSignalingNode.createNode(Symbols.symbolFor(\"TypeError\"), ss);\n }",
"ThrowingEvent createThrowingEvent();",
"public Event(){\n\n }",
"IntermediateThrowEvent createIntermediateThrowEvent();",
"private LogEvent()\n\t{\n\t\tsuper();\n\t}",
"public LogEvent newInstance()\n {\n return new LogEvent();\n }",
"private IEvent createEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\treturn mch.createChild(IEvent.ELEMENT_TYPE, null, null);\n\t}",
"public InvalidEventHandlerException() {\n }",
"public void createGenesisEvent() {\n handleNewEvent(buildEvent(null, null));\n }",
"public EventEmitter() {\n this(\n (t, e) -> {\n Thread.UncaughtExceptionHandler tmp =\n Thread.getDefaultUncaughtExceptionHandler();\n if (tmp != null) {\n tmp.uncaughtException(t, e);\n }\n });\n }",
"private void createEvents() {\n\t}",
"@Override\r\n\tpublic void startNewEvent(int t) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tthis.newEvent(\"Ernest\", \"action\", t);\r\n\t}",
"com.walgreens.rxit.ch.cda.EIVLEvent addNewEvent();",
"Event_tree()//constructor\r\n\t{\r\n\t\troot_e = null ;\r\n\t}",
"EventUse createEventUse();",
"public EventHandlerRegistry() {\n }",
"BasicEvent createBasicEvent();",
"public DefaultEntity(Node<A> node) {\r\n\t\tsuper(node);\r\n\t\tevents = new Vector<Event<A>>();\r\n\t}",
"public EventMessage(Event event)\r\n {\r\n //super(\"EventMessage\");\r\n super(TYPE_IDENT, event);\r\n }",
"public QPEvent() {}",
"public SAXException ()\n {\n this.exception = null;\n }",
"public ScheduleEvent()\n\t{\n\n\t}",
"public ContentErrorEvent() {}",
"public EvEntry() {\n\t}",
"public EventTree()\n\t{\n\t\tthis.root = null;\n\t}",
"public NSException() {\n\t\tsuper();\n\t\tthis.exception = new Exception();\n\t}",
"public Cluster(BasicEvent ev) {\n this();\n location.x = ev.x;\n location.y = ev.y;\n birthLocation.x = ev.x;\n birthLocation.y = ev.y;\n lastTimestamp = ev.timestamp;\n firstTimestamp = lastTimestamp;\n numEvents = 1;\n setRadius(defaultClusterRadius);\n }",
"public SAXException (String message) {\n super(message);\n this.exception = null;\n }",
"public EventQueue(){}",
"public Edge() {}",
"private Node() {\n\n }",
"public Node(){}",
"Node(String e){\r\n this.element = e;\r\n }",
"BasicEvents createBasicEvents();",
"public Exception() {\n\t\t\tsuper();\n\t\t}",
"public PointEventNode(String id) {\n\t\tsuper(id);\n\t}",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public CustomerEvent()\r\n {\r\n this(0, 0, ENTER);\r\n }",
"static Event init(final String propertyName)\n {\n final LTProperties properties = Context.configuration().properties;\n final String defaultLogLevel = properties.getProperty(\"events.logging.default.level\", \"debug\");\n final String logLevel = properties.getProperty(\"events.logging.\" + propertyName + \".level\", defaultLogLevel).toLowerCase();\n\n final Event event;\n switch (logLevel) {\n case \"error\":\n event = new ERROR();\n break;\n\n case \"warn\":\n event = new WARN();\n break;\n\n case \"info\":\n event = new INFO();\n break;\n\n case \"debug\":\n event = new DEBUG();\n break;\n\n default:\n throw new IllegalArgumentException(\"Log level '\" + logLevel + \"' not supported.\");\n }\n\n return event;\n }",
"public void create(Rule event);",
"EventChannel create(Context context);",
"public FlowNodeInstance() {\n\t}",
"public Event setNode(String node) {\n this.node = node;\n return this;\n }",
"public Client(ClientEvents event) throws UnknownHostException, IOException {\n\t\t// TODO Auto-generated constructor stub\n\t\t//super(\"83.52.33.147\", 3553);\n\t\tmIp = \"85.53.66.42\";\n\t\tmPort = 3553;\n\t\tthis.event = event;\n\t\tmInstance = this;\n\t\t\n\t\t//startConection();\n\t}",
"public void init() {\r\n setEventType(4);\r\n }",
"StartEvent createStartEvent();",
"public Node(){\n\n\t\t}",
"public SseEmitter() {}",
"public Edge()\r\n {\r\n }",
"public Node() {\n }",
"public static LogEvent createEmptyEvent()\n\t{\n\t\treturn new LogEvent();\n\t}",
"protected SceneGraphObject createNode() {\n\tthrow new SGIORuntimeException(\"createNode() not implemented in class \"+this.getClass().getName());\n }",
"private IRefinesEvent createRefinesEvent() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\tfinal IEvent event = createEvent(mch, \"event\");\n\t\treturn event.createChild(IRefinesEvent.ELEMENT_TYPE, null, null);\n\t}",
"public SoundEvent() \n\t{\n\tsuper(GAME_SOUND_EVENT);\n\t}",
"public Node() {\r\n\t}",
"public Node() {\r\n\t}",
"public Node() {\n\t}",
"public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }",
"public Exception() {\n\tsuper();\n }",
"public Event(int type) {\n this.type=type;\n this.arg=null;\n }",
"public void create(T e);",
"public Node<E> createNode(E e, Position<E> parent){\n Node<E> p = (Node<E>) parent;\n return new Node<>(e, p);\n }",
"protected EventExecutor newChild(ThreadFactory threadFactory, Object... args) throws Exception {\n/* 57 */ return (EventExecutor)new LocalEventLoop(this, threadFactory);\n/* */ }",
"public SelectionEvent() {\n }",
"public SAXException (String message, Exception e)\n {\n super(message);\n this.exception = e;\n }",
"public Node() {\n\n }",
"public EventException() {\n super(\"OOPS!!! The description or time of an event cannot be empty.\");\n }",
"public void addCatchClause(CatchClause node) {\n List<CatchClause> list = (parent == null || state == null) ? getCatchClauseListNoTransform() : getCatchClauseList();\n list.addChild(node);\n }",
"public PgEventTrigger() {\n this(\"pg_event_trigger\", null);\n }",
"Event generateEvent(int seed) throws Exception {\n return new Event(\n new Description(\"Event \" + seed),\n new StartTime(\"0900\"),\n new StartDate(Integer.toString((Integer.parseInt(\"200317\") + seed))),\n new EndTime(\"1100\"),\n new EndDate(Integer.toString((Integer.parseInt(\"200317\") + seed))),\n new Location(\"House of \" + seed),\n new UniqueTagList(new Tag(\"tag\" + Math.abs(seed)), new Tag(\"tag\" + Math.abs(seed + 1)))\n );\n }",
"public EventDispatcher() {\n }",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"private ILabeledElement createLabeled() throws RodinDBException {\n\t\treturn createEvent();\n\t}",
"private EventMessageMapper() {\n }",
"public CreateEventFragment() {\n // Required empty public constructor\n }",
"public EventTimeline() {\n this(0, 0, 91, 9);\n }",
"public MessageEvent(Message message) {\n super(message);\n this.message = message;\n }",
"public Node(){\n }"
] | [
"0.6497667",
"0.61773205",
"0.60796547",
"0.6043618",
"0.58540773",
"0.58313566",
"0.5787394",
"0.5787394",
"0.57663435",
"0.57663435",
"0.57585657",
"0.5627342",
"0.55781835",
"0.55249727",
"0.5521066",
"0.5459342",
"0.5456117",
"0.54536283",
"0.54468775",
"0.54407215",
"0.5435268",
"0.5422548",
"0.5378165",
"0.53763217",
"0.5269488",
"0.5264549",
"0.5263532",
"0.5186443",
"0.5122649",
"0.5122355",
"0.51221937",
"0.5106902",
"0.5106186",
"0.5099356",
"0.5097664",
"0.5086192",
"0.50535595",
"0.504642",
"0.5043897",
"0.503946",
"0.5031208",
"0.5020218",
"0.4994959",
"0.49944028",
"0.49675864",
"0.4939735",
"0.49349058",
"0.49326304",
"0.49245575",
"0.49197567",
"0.48987752",
"0.4887562",
"0.4883097",
"0.48464754",
"0.48461866",
"0.48291326",
"0.48291326",
"0.48291326",
"0.48291326",
"0.48248345",
"0.48215914",
"0.47998792",
"0.47951826",
"0.47741273",
"0.4771344",
"0.47696295",
"0.47630695",
"0.47395113",
"0.47351885",
"0.4729841",
"0.47295237",
"0.47289282",
"0.47275168",
"0.4725751",
"0.4725707",
"0.47108543",
"0.4710581",
"0.4710581",
"0.47031313",
"0.47004685",
"0.46964008",
"0.4693459",
"0.4690409",
"0.4686567",
"0.46759585",
"0.46738762",
"0.46726626",
"0.4672088",
"0.4664287",
"0.4662974",
"0.46512917",
"0.46473166",
"0.46418",
"0.46363646",
"0.46307537",
"0.46305373",
"0.46088287",
"0.4600158",
"0.45993483",
"0.45762935"
] | 0.49263638 | 48 |
Implements reaction to a TriggerMessage. The node will send a fire message to the gateway connected to (backwards) and wait for the approval in form of a winning message. | @Override
protected void trigger(TriggerMessage message) {
this.getDataObjectService().saveObject(this.getUniqueProcessId(), message.getProcessInstanceId(), message.getPayload());
eventDefinition.trigger(message);
this.getNodeInstanceMediatorService().setNodeInstanceEndTime(message.getProcessInstanceId(), new Date());
this.getNodeInstanceMediatorService().setState(
message.getProcessInstanceId(),
NodeInstaceStates.PASSED_STATE);
this.getNodeInstanceMediatorService().persistChanges();
this.sendMessageToNodeActor(message, this.getActivatingGatewayNode());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void trigger(PromiseManager pm) {\n\tthrow new SubclassResponsibilityException();\n/*\nudanax-top.st:15949:DetectorEvent methodsFor: 'triggering'!\n{void} trigger: pm {PromiseManager}\n\t\"Send the message across the wire.\"\n\t\n\tself subclassResponsibility!\n*/\n}",
"public abstract void onTrigger();",
"public void triggerEvent() {\n\t\ts.changeOpenState();\n\t\ts.setChangedAndNotify();\n\t\t\n\t}",
"void trigger();",
"public T caseReactionTrigger(ReactionTrigger object) {\r\n\t\treturn null;\r\n\t}",
"@Override\n\t\t\tpublic void action() {\n\t\t\t\tMessageTemplate cfpTemplate = MessageTemplate.MatchPerformative(ACLMessage.CFP);\n\t\t\t\tMessageTemplate informTemplate = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\n\t\t\t\tMessageTemplate messageTemplate = MessageTemplate.or(cfpTemplate, informTemplate);\n\t\t\t\tACLMessage receivedMessage = myAgent.receive(messageTemplate);\n\t\t\t\t\n\t\t\t\tif (receivedMessage != null) {\n\t\t\t\t\thasReceivedMessage = true;\n\t\t\t\t\t\n\t\t\t\t\tif (receivedMessage.getPerformative() == ACLMessage.CFP) {\n\t\t\t\t\t\tdouble price = Double.parseDouble(receivedMessage.getContent());\n\t\t\t\t\t\tSystem.out.println(\"Buyer [\" + getAID().getLocalName() + \"] received \"\n\t\t\t\t\t\t\t\t+ \"CFP with price \" + Double.toString(price));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Value in range; send proposal\n\t\t\t\t\t\tif (price <= priceToBuy) {\n\t\t\t\t\t\t\tACLMessage proposal = new ACLMessage(ACLMessage.PROPOSE);\n\t\t\t\t\t\t\tproposal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\tproposal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(proposal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = sendProposal;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Price too high; refuse and wait for new CFP\n\t\t\t\t\t\t\tACLMessage refusal = new ACLMessage(ACLMessage.REFUSE);\n\t\t\t\t\t\t\trefusal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\trefusal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(refusal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = highPrice;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (receivedMessage.getPerformative() == ACLMessage.INFORM) {\n\t\t\t\t\t\ttransitionStatus = noBuyers;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}",
"private void triggerReset() {\n DefenceField.fieldActivated = false;\n OnFieldReset event = new OnFieldReset(this::doActivation);\n event.beginTask();\n DefenceField.getShrineEntity().send(event);\n event.finishTask();\n }",
"public void execute() {\n\t\tString userID = clientMediator.getUserName();\n\t\tString id = reactToController.communicateWith(userID);\n\t\tif(id != null){\n\t\t\tclientMediator.setReactTo(id);\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\tString message = reactToController.reactToEntity(id,userID);\n\t\t\tString result = \"You just interacted with \" + id + \", so you \" + message + \" at \" + df.format(new Date()).toString();\n\t\t\tclientMediator.setReactResult(result);\n\t\t\tclientMediator.getEventQueue().add(new ReactToEvent(id,userID));\n\t\t}\n\t}",
"protected void fireActionEvent() {\n if (actionListener != null) {\n ActionEvent ae = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, command);\n actionListener.actionPerformed(ae);\n }\n }",
"private boolean triggered() {\n\t\treturn true;\n\t}",
"protected abstract void createTriggerOrAction();",
"public void executeTrigger(Object object);",
"void trigger(Entity e);",
"public abstract void setTriggerOrAction();",
"public void setRetriggerMode( RetriggerMode retriggerMode );",
"protected void roomAction() {\n if (this.count < 1 && !this.room.isTriggerSet())\n {\n System.out.println(\"Prisoner: \" + this.id + \" turns trigger on!\");\n this.count++;\n this.room.setTrigger();\n }\n else {\n System.out.println(\"Prisoner: \" + this.id + \" in room... nothing to do!\");\n }\n }",
"public void clickOnSendNotification() {\r\n\r\n\t\treportStep(\"About to click on Send Notification button \", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(sendNotificationButton)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Send notification Button \", \"PASS\");\r\n\r\n\t\t}else {\r\n\r\n\t\t\treportStep(\"Failed to click onn the Send Notificationn Buttonn \", \"FAIL\");\r\n\t\t}\r\n\t}",
"@Override\n public void trigger() {\n output.addNewEvent(\"Suspender Assinante \" + subscriber.getId() + \" da Central \" + central.getId());\n this.sucess = this.network.suspendSubscriberFromCentral(this.subscriber.getId(), this.central.getId());\n if (sucess) {\n output.addNewSignal(\"Assinante \" + this.subscriber.getId() + \" suspendida da Central \" + central.getId());\n } else {\n output.addNewSignal(\"Assinante \" + this.subscriber.getId() + \" não está conectado ou ativo à Central \" + central.getId());\n }\n }",
"public final EObject ruleTransitionReaction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_2=null;\r\n Token otherlv_4=null;\r\n EObject lv_trigger_1_0 = null;\r\n\r\n EObject lv_effect_3_0 = null;\r\n\r\n EObject lv_properties_5_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1448:28: ( ( () ( (lv_trigger_1_0= ruleReactionTrigger ) )? (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )? (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )? ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1449:1: ( () ( (lv_trigger_1_0= ruleReactionTrigger ) )? (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )? (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )? )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1449:1: ( () ( (lv_trigger_1_0= ruleReactionTrigger ) )? (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )? (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )? )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1449:2: () ( (lv_trigger_1_0= ruleReactionTrigger ) )? (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )? (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )?\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1449:2: ()\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1450:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getTransitionReactionAccess().getTransitionReactionAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1455:2: ( (lv_trigger_1_0= ruleReactionTrigger ) )?\r\n int alt24=2;\r\n int LA24_0 = input.LA(1);\r\n\r\n if ( (LA24_0==RULE_ID||LA24_0==35||(LA24_0>=39 && LA24_0<=44)||(LA24_0>=58 && LA24_0<=59)) ) {\r\n alt24=1;\r\n }\r\n switch (alt24) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1456:1: (lv_trigger_1_0= ruleReactionTrigger )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1456:1: (lv_trigger_1_0= ruleReactionTrigger )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1457:3: lv_trigger_1_0= ruleReactionTrigger\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getTransitionReactionAccess().getTriggerReactionTriggerParserRuleCall_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionTrigger_in_ruleTransitionReaction3162);\r\n lv_trigger_1_0=ruleReactionTrigger();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getTransitionReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"trigger\",\r\n \t\tlv_trigger_1_0, \r\n \t\t\"ReactionTrigger\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1473:3: (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )?\r\n int alt25=2;\r\n int LA25_0 = input.LA(1);\r\n\r\n if ( (LA25_0==33) ) {\r\n alt25=1;\r\n }\r\n switch (alt25) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1473:5: otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) )\r\n {\r\n otherlv_2=(Token)match(input,33,FOLLOW_33_in_ruleTransitionReaction3176); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getTransitionReactionAccess().getSolidusKeyword_2_0());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1477:1: ( (lv_effect_3_0= ruleReactionEffect ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1478:1: (lv_effect_3_0= ruleReactionEffect )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1478:1: (lv_effect_3_0= ruleReactionEffect )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1479:3: lv_effect_3_0= ruleReactionEffect\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getTransitionReactionAccess().getEffectReactionEffectParserRuleCall_2_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionEffect_in_ruleTransitionReaction3197);\r\n lv_effect_3_0=ruleReactionEffect();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getTransitionReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"effect\",\r\n \t\tlv_effect_3_0, \r\n \t\t\"ReactionEffect\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1495:4: (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )?\r\n int alt26=2;\r\n int LA26_0 = input.LA(1);\r\n\r\n if ( (LA26_0==34) ) {\r\n alt26=1;\r\n }\r\n switch (alt26) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1495:6: otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) )\r\n {\r\n otherlv_4=(Token)match(input,34,FOLLOW_34_in_ruleTransitionReaction3212); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_4, grammarAccess.getTransitionReactionAccess().getNumberSignKeyword_3_0());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1499:1: ( (lv_properties_5_0= ruleReactionProperties ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1500:1: (lv_properties_5_0= ruleReactionProperties )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1500:1: (lv_properties_5_0= ruleReactionProperties )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1501:3: lv_properties_5_0= ruleReactionProperties\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getTransitionReactionAccess().getPropertiesReactionPropertiesParserRuleCall_3_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionProperties_in_ruleTransitionReaction3233);\r\n lv_properties_5_0=ruleReactionProperties();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getTransitionReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"properties\",\r\n \t\tlv_properties_5_0, \r\n \t\t\"ReactionProperties\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public void sendFireForget(final String uriSenderStr) {\r\n FireAndForgetDestination fireForgetDest = null;\r\n\r\n try {\r\n fireForgetDest =\r\n (FireAndForgetDestination) DestinationFactory\r\n .getSenderDestination(_context.getName(), URI\r\n .create(uriSenderStr));\r\n\r\n if (fireForgetDest == null) {\r\n fireForgetDest =\r\n DestinationFactory.createFireAndForgetDestination(\r\n _context, URI.create(uriSenderStr));\r\n }\r\n\r\n final int msgId = fireForgetDest.sendNoResponse();\r\n\r\n alertDialog(\"Message [id:\" + msgId + \"] has been sent!\");\r\n } catch (final Exception e) {\r\n alertDialog(e.toString());\r\n }\r\n }",
"private void sendNotification() {\n }",
"public void trigger(List<Entity> _trigger){\n\t\tif(event!=null){\n\t\t\tevent.activate(System.currentTimeMillis(), _trigger);\n\t\t}\n\t}",
"@Override\n public void trigger() {\n output.addNewEvent(\"Assinante \" + subscriberReconnect.getId() + \" deseja reconectar sua última ligação\");\n if (this.subscriberReconnect.isFree()) {\n takePhone();\n reestablishConnection();\n }\n }",
"public void trigger(Fact fact) {\n\t\t\n\t}",
"private void doActivation() {\n OnFieldActivated activateEvent = new OnFieldActivated(this::finishReset);\n activateEvent.beginTask();\n DefenceField.getShrineEntity().send(activateEvent);\n activateEvent.finishTask();\n }",
"public void trigger(Event event);",
"@Override\n\t\t\tpublic void action() {\n\t\t\t\tACLMessage message =receive(messageTemplate);\n\t\t\t\tif(message!=null) {\n\t\t\t\t\tSystem.out.println(\"Sender => \" + message.getSender().getName());\n\t\t\t\t\tSystem.out.println(\"Content => \" + message.getContent());\n\t\t\t\t\tSystem.out.println(\"SpeechAct => \" + ACLMessage.getPerformative(message.getPerformative()));\n\t\t\t\t\t//reply with a message\n//\t\t\t\t\tACLMessage reply = new ACLMessage(ACLMessage.CONFIRM);\n//\t\t\t\t\treply.addReceiver(message.getSender());\n//\t\t\t\t\treply.setContent(\"Price = 1000\");\n//\t\t\t\t\tsend(reply);\n\t\t\t\t\t\n\t\t\t\t\tconsumerContainer.logMessage(message);\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tSystem.out.println(\"block() ...............\");\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}",
"public int[] activateTrigger(int triggerId) {\n\n\t\tint[] triggerResults = {0,0,0,0,0,0,0,0,0,0};\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tMap<String, String> hm = db.selectTrigger(triggerId);\n\t\t\t\t\n\t\t\tint type = 0;\n\t\t\tint toTriggerId = 0;\t\n\t\t\t\t\t\n\t\t\ttype = Integer.parseInt(hm.get(\"type\"));\n\t\t\ttoTriggerId = Integer.parseInt(hm.get(\"to_trigger_id\"));\n\t\t\t\n\t\t\tswitch (type) {\n\t\t\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_ANIM:\t\t\t// an animation is launched\n\t\t\t\t\t\n\t\t\t\t\ttriggerResults[1] = toTriggerId;\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_ACTION:\t// OR a change on items (combination, action, take item on screen...)\n\n\t\t\t\t\ttriggerResults[5] = activateModifier(toTriggerId);\n\t\t\t\t break;\n\n\t\t\t\tcase DB_TRIGGER_TYPE_DOLL:\t// OR move/hide doll\t\n\t\t\t\t\t\n\t\t\t\t\tMap<String, String> hmDoll = db.selectDollTrigger(toTriggerId);\n\t\t\t\t\tif (hmDoll.get(\"to_x\") != null)\t\t\t\ttriggerResults[2] = Integer.parseInt(hmDoll.get(\"to_x\"));\n\t\t\t\t\tif (hmDoll.get(\"doll_is_hidden\") != null)\ttriggerResults[3] = Integer.parseInt(hmDoll.get(\"doll_is_hidden\"));\n\t\t\t\t\tif (hmDoll.get(\"y_velocity\") != null)\t\ttriggerResults[6] = Integer.parseInt(hmDoll.get(\"y_velocity\"));\n\t\t\t\t\t\n\t\t\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 2 \" + hmDoll.get(\"to_x\"));\n\t\t\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 3 \" + hmDoll.get(\"doll_is_hidden\"));\n\t\t\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 6 \" + hmDoll.get(\"y_velocity\"));\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_TEXT:\t// show a bubble\n\t\t\t\t\t\n\t\t\t\t\ttriggerResults[4] = toTriggerId;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_SV_ITEM:\t// hide/show item\n\t\t\t\t\t\n\t\t\t\t\ttriggerResults[7] = toTriggerId;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase DB_TRIGGER_TYPE_SV_ANIM:\t// hide/show anim\n\t\t\t\t\t\n\t\t\t\t\ttriggerResults[8] = toTriggerId;\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\n\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 0 \" + hm.get(\"next_trigger_id\"));\n\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 5 \" + triggerResults[5]);\n\t\t\tif (LOG_ON) Log.d(\"Clementime\", className + \"/activateTrigger(): Trigger results 1, 4, 7 & 8: \" + toTriggerId);\n\t\t\t\n\t\t\tif (hm.get(\"next_trigger_id\") != null)\ttriggerResults[0] = Integer.parseInt(hm.get(\"next_trigger_id\"));\n\t\t\tif (hm.get(\"simultaneous_trigger_id\") != null)\ttriggerResults[9] = Integer.parseInt(hm.get(\"simultaneous_trigger_id\"));\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn triggerResults;\n\t}",
"Message sendAndWait();",
"protected void fireActionPerformed()\n {\n ActionEvent actionEvent = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, this.command);\n\n for (final ActionListener actionListener : this.listenerList.getListeners(ActionListener.class))\n {\n actionListener.actionPerformed(actionEvent);\n }\n\n actionEvent = null;\n }",
"ITrigger getTrigger(String sTriggerName);",
"@Property(\"triggerAction\")\n String getTriggerAction();",
"@Property(\"triggerAction\")\n void setTriggerAction(String triggerAction);",
"public void run() {\n long startTime = 0;\n if (action.getClass().getName().contains(\"TooAction\")) {\n startTime = System.currentTimeMillis();\n LOG.log(Level.WARNING, \"Sending a ToO alert...\");\n }\n\n action.doTriggerAction(change, handback);\n\n // Record the end time and warn if it took too long.\n if (startTime != 0) {\n long curTime = System.currentTimeMillis();\n LOG.log(Level.WARNING, \"Sent ToO alert\");\n\n long elapsed = curTime - startTime;\n if (elapsed > 5000) {\n LOG.log(Level.WARNING, \"Long delay sending ToO alert: \" + elapsed);\n }\n }\n\n }",
"public void action() {\n MessageTemplate template = MessageTemplate.MatchPerformative(CommunicationHelper.GUI_MESSAGE);\n ACLMessage msg = myAgent.receive(template);\n\n if (msg != null) {\n\n /*-------- DISPLAYING MESSAGE -------*/\n try {\n\n String message = (String) msg.getContentObject();\n\n // TODO temporary\n if (message.equals(\"DistributorAgent - NEXT_SIMSTEP\")) {\n \tguiAgent.nextAutoSimStep();\n // wykorzystywane do sim GOD\n // startuje timer, zeby ten zrobil nextSimstep i statystyki\n // zaraz potem timer trzeba zatrzymac\n }\n\n guiAgent.displayMessage(message);\n\n } catch (UnreadableException e) {\n logger.error(this.guiAgent.getLocalName() + \" - UnreadableException \" + e.getMessage());\n }\n } else {\n\n block();\n }\n }",
"public final EObject ruleReactionTrigger() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_2=null;\r\n Token otherlv_4=null;\r\n Token otherlv_6=null;\r\n Token otherlv_7=null;\r\n Token otherlv_9=null;\r\n EObject lv_triggers_1_0 = null;\r\n\r\n EObject lv_triggers_3_0 = null;\r\n\r\n EObject lv_guardExpression_5_0 = null;\r\n\r\n EObject lv_guardExpression_8_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1537:28: ( ( () ( ( ( (lv_triggers_1_0= ruleEventSpec ) ) (otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) ) )* ( ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']' )? ) | (otherlv_7= '[' ( (lv_guardExpression_8_0= ruleExpression ) ) otherlv_9= ']' ) ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1538:1: ( () ( ( ( (lv_triggers_1_0= ruleEventSpec ) ) (otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) ) )* ( ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']' )? ) | (otherlv_7= '[' ( (lv_guardExpression_8_0= ruleExpression ) ) otherlv_9= ']' ) ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1538:1: ( () ( ( ( (lv_triggers_1_0= ruleEventSpec ) ) (otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) ) )* ( ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']' )? ) | (otherlv_7= '[' ( (lv_guardExpression_8_0= ruleExpression ) ) otherlv_9= ']' ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1538:2: () ( ( ( (lv_triggers_1_0= ruleEventSpec ) ) (otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) ) )* ( ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']' )? ) | (otherlv_7= '[' ( (lv_guardExpression_8_0= ruleExpression ) ) otherlv_9= ']' ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1538:2: ()\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1539:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getReactionTriggerAccess().getReactionTriggerAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1544:2: ( ( ( (lv_triggers_1_0= ruleEventSpec ) ) (otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) ) )* ( ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']' )? ) | (otherlv_7= '[' ( (lv_guardExpression_8_0= ruleExpression ) ) otherlv_9= ']' ) )\r\n int alt29=2;\r\n int LA29_0 = input.LA(1);\r\n\r\n if ( (LA29_0==RULE_ID||(LA29_0>=39 && LA29_0<=44)||(LA29_0>=58 && LA29_0<=59)) ) {\r\n alt29=1;\r\n }\r\n else if ( (LA29_0==35) ) {\r\n alt29=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return current;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 29, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt29) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1544:3: ( ( (lv_triggers_1_0= ruleEventSpec ) ) (otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) ) )* ( ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']' )? )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1544:3: ( ( (lv_triggers_1_0= ruleEventSpec ) ) (otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) ) )* ( ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']' )? )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1544:4: ( (lv_triggers_1_0= ruleEventSpec ) ) (otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) ) )* ( ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']' )?\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1544:4: ( (lv_triggers_1_0= ruleEventSpec ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1545:1: (lv_triggers_1_0= ruleEventSpec )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1545:1: (lv_triggers_1_0= ruleEventSpec )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1546:3: lv_triggers_1_0= ruleEventSpec\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getReactionTriggerAccess().getTriggersEventSpecParserRuleCall_1_0_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleEventSpec_in_ruleReactionTrigger3338);\r\n lv_triggers_1_0=ruleEventSpec();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getReactionTriggerRule());\r\n \t }\r\n \t\tadd(\r\n \t\t\tcurrent, \r\n \t\t\t\"triggers\",\r\n \t\tlv_triggers_1_0, \r\n \t\t\"EventSpec\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1562:2: (otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) ) )*\r\n loop27:\r\n do {\r\n int alt27=2;\r\n int LA27_0 = input.LA(1);\r\n\r\n if ( (LA27_0==28) ) {\r\n alt27=1;\r\n }\r\n\r\n\r\n switch (alt27) {\r\n \tcase 1 :\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1562:4: otherlv_2= ',' ( (lv_triggers_3_0= ruleEventSpec ) )\r\n \t {\r\n \t otherlv_2=(Token)match(input,28,FOLLOW_28_in_ruleReactionTrigger3351); if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \tnewLeafNode(otherlv_2, grammarAccess.getReactionTriggerAccess().getCommaKeyword_1_0_1_0());\r\n \t \r\n \t }\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1566:1: ( (lv_triggers_3_0= ruleEventSpec ) )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1567:1: (lv_triggers_3_0= ruleEventSpec )\r\n \t {\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1567:1: (lv_triggers_3_0= ruleEventSpec )\r\n \t // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1568:3: lv_triggers_3_0= ruleEventSpec\r\n \t {\r\n \t if ( state.backtracking==0 ) {\r\n \t \r\n \t \t newCompositeNode(grammarAccess.getReactionTriggerAccess().getTriggersEventSpecParserRuleCall_1_0_1_1_0()); \r\n \t \t \r\n \t }\r\n \t pushFollow(FOLLOW_ruleEventSpec_in_ruleReactionTrigger3372);\r\n \t lv_triggers_3_0=ruleEventSpec();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return current;\r\n \t if ( state.backtracking==0 ) {\r\n\r\n \t \t if (current==null) {\r\n \t \t current = createModelElementForParent(grammarAccess.getReactionTriggerRule());\r\n \t \t }\r\n \t \t\tadd(\r\n \t \t\t\tcurrent, \r\n \t \t\t\t\"triggers\",\r\n \t \t\tlv_triggers_3_0, \r\n \t \t\t\"EventSpec\");\r\n \t \t afterParserOrEnumRuleCall();\r\n \t \t \r\n \t }\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop27;\r\n }\r\n } while (true);\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1584:4: ( ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']' )?\r\n int alt28=2;\r\n int LA28_0 = input.LA(1);\r\n\r\n if ( (LA28_0==35) && (synpred1_InternalSText())) {\r\n alt28=1;\r\n }\r\n switch (alt28) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1584:5: ( ( '[' )=>otherlv_4= '[' ) ( (lv_guardExpression_5_0= ruleExpression ) ) otherlv_6= ']'\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1584:5: ( ( '[' )=>otherlv_4= '[' )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1584:6: ( '[' )=>otherlv_4= '['\r\n {\r\n otherlv_4=(Token)match(input,35,FOLLOW_35_in_ruleReactionTrigger3395); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_4, grammarAccess.getReactionTriggerAccess().getLeftSquareBracketKeyword_1_0_2_0());\r\n \r\n }\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1589:2: ( (lv_guardExpression_5_0= ruleExpression ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1590:1: (lv_guardExpression_5_0= ruleExpression )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1590:1: (lv_guardExpression_5_0= ruleExpression )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1591:3: lv_guardExpression_5_0= ruleExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getReactionTriggerAccess().getGuardExpressionExpressionParserRuleCall_1_0_2_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleExpression_in_ruleReactionTrigger3417);\r\n lv_guardExpression_5_0=ruleExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getReactionTriggerRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"guardExpression\",\r\n \t\tlv_guardExpression_5_0, \r\n \t\t\"Expression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_6=(Token)match(input,36,FOLLOW_36_in_ruleReactionTrigger3429); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_6, grammarAccess.getReactionTriggerAccess().getRightSquareBracketKeyword_1_0_2_2());\r\n \r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1612:6: (otherlv_7= '[' ( (lv_guardExpression_8_0= ruleExpression ) ) otherlv_9= ']' )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1612:6: (otherlv_7= '[' ( (lv_guardExpression_8_0= ruleExpression ) ) otherlv_9= ']' )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1612:8: otherlv_7= '[' ( (lv_guardExpression_8_0= ruleExpression ) ) otherlv_9= ']'\r\n {\r\n otherlv_7=(Token)match(input,35,FOLLOW_35_in_ruleReactionTrigger3451); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_7, grammarAccess.getReactionTriggerAccess().getLeftSquareBracketKeyword_1_1_0());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1616:1: ( (lv_guardExpression_8_0= ruleExpression ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1617:1: (lv_guardExpression_8_0= ruleExpression )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1617:1: (lv_guardExpression_8_0= ruleExpression )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1618:3: lv_guardExpression_8_0= ruleExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getReactionTriggerAccess().getGuardExpressionExpressionParserRuleCall_1_1_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleExpression_in_ruleReactionTrigger3472);\r\n lv_guardExpression_8_0=ruleExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getReactionTriggerRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"guardExpression\",\r\n \t\tlv_guardExpression_8_0, \r\n \t\t\"Expression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_9=(Token)match(input,36,FOLLOW_36_in_ruleReactionTrigger3484); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_9, grammarAccess.getReactionTriggerAccess().getRightSquareBracketKeyword_1_1_2());\r\n \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\t\tSystem.out.println(\"Sent\");\n\t\t\t\t\t}",
"public TriggerMessage() {\n\t}",
"public com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition getAutoForwardTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition target = null;\n target = (com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition)get_store().find_element_user(AUTOFORWARDTRIGGEREDSEND$16, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"boolean hasTriggerFulfillment();",
"public com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition getAutoReplyTriggeredSend()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition target = null;\n target = (com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition)get_store().find_element_user(AUTOREPLYTRIGGEREDSEND$20, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"protected void winning(WinningMessage message) {\n \t\tthis.getNodeInstanceMediatorService().setState(\n \t\t\t\tmessage.getProcessInstanceId(), NodeInstaceStates.PASSED_STATE);\n \t\t\n \t\tthis.getNodeInstanceMediatorService().persistChanges();\n \t\t\n \t\tthis.sendMessageToNodeActors(\n \t\t\t\tnew ActivationMessage(message.getProcessInstanceId()),\n \t\t\t\tthis.getOutgoingNodes());\n \t}",
"@Override\n\t\tvoid runCommand() {\n\t\t\ttrigger.execute();\n\t\t}",
"void send(WebhookMessage msg);",
"public void sendTestFutureNotification() {\n\n }",
"public final EObject entryRuleReactionTrigger() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleReactionTrigger = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1526:2: (iv_ruleReactionTrigger= ruleReactionTrigger EOF )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1527:2: iv_ruleReactionTrigger= ruleReactionTrigger EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getReactionTriggerRule()); \r\n }\r\n pushFollow(FOLLOW_ruleReactionTrigger_in_entryRuleReactionTrigger3271);\r\n iv_ruleReactionTrigger=ruleReactionTrigger();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleReactionTrigger; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleReactionTrigger3281); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public TriggerMessage(String processInstanceId, Object data) {\n\t\tthis.processInstanceId = processInstanceId;\n\t\tthis.payload = data;\n\t}",
"public void alertTheWaiter(){\n Chef c = (Chef) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = c.getChefID();\n \tstate_fields[1] = c.getChefState();\n\n Message m_toServer = new Message(1, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n \t}\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n c.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"public Trigger getTrigger() {\n \t\treturn trigger;\n \t}",
"public void trigger() {\n\t\t\n//\t\t #ifdef DEBUG\n\t\t // The sensor should not have been scheduled if it has a NULL\n\t\t // callback function. Be safe and test here.\n\t\t if (func == null) {\n\t\t SoDebugError.post(\"SoSensor::trigger\",\n\t\t \"Cannot trigger a sensor with NULL callback\");\n\t\t return;\n\t\t }\n//\t\t #endif /* DEBUG */\n\t\t \n\t\t // Call the sensor function\n\t\t func.run(funcData, this);\n\t\t \n\t\t }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tString message= txtMessage.getText();\n\t\t\t\tsend(message);\n\t\t\t}",
"protected void fireActionPerformed() {\n // Guaranteed to return a non-null array\n Object[] listeners = listenerList.getListenerList();\n ActionEvent e = new ActionEvent(this, ActionEvent.ACTION_PERFORMED,\n (command != null) ? command : getText());\n // Process the listeners last to first, notifying\n // those that are interested in this event\n for (int i = listeners.length-2; i>=0; i-=2) {\n if (listeners[i]==ActionListener.class) {\n ((ActionListener)listeners[i+1]).actionPerformed(e);\n } \n }\n }",
"protected SendSuccessOrFailure() { \n addSender(SUCCESS, new SendSuccess());\n addSender(FAILURE, new SendFailure());\n \n buildFSM();\n }",
"public abstract boolean isTrigger();",
"public boolean trigger (String name) {\n final TriggerReference trigger = module.getTrigger(name);\n if (trigger == null) {\n Logger.missing(\"TriggerReference\", name);\n return false;\n } else {\n return trigger.get();\n }\n }",
"public void setAutoReplyTriggeredSend(com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition autoReplyTriggeredSend)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition target = null;\n target = (com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition)get_store().find_element_user(AUTOREPLYTRIGGEREDSEND$20, 0);\n if (target == null)\n {\n target = (com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition)get_store().add_element_user(AUTOREPLYTRIGGEREDSEND$20);\n }\n target.set(autoReplyTriggeredSend);\n }\n }",
"public boolean triggersNow()\n\t{\n\t\tif(!this.canTrigger())\n\t\t\treturn false;\n\n\t\tfor(GameObject object: this.game.actualState.stack())\n\t\t\tif(object instanceof StateTriggeredAbility)\n\t\t\t\tif(((StateTriggeredAbility)object).printedVersionID == this.ID)\n\t\t\t\t\treturn false;\n\n\t\tIdentified source = this.getSource(this.state);\n\t\tint controller;\n\t\tif(source.isGameObject())\n\t\t\tcontroller = ((GameObject)source).controllerID;\n\t\telse\n\t\t\t// it's a player\n\t\t\tcontroller = source.ID;\n\t\tfor(GameObject object: this.game.actualState.waitingTriggers.get(controller))\n\t\t\tif((object instanceof StateTriggeredAbility) && (((StateTriggeredAbility)object).printedVersionID == this.ID))\n\t\t\t\treturn false;\n\n\t\tfor(SetGenerator condition: this.triggerConditions)\n\t\t\tif(!condition.evaluate(this.game, this).isEmpty())\n\t\t\t\treturn true;\n\n\t\treturn false;\n\t}",
"public void actionPerformed(prisms.arch.event.PrismsEvent toFire,\n\t\tjava.awt.event.ActionEvent actionEvent)\n\t{\n\t\ttheSession.fireEvent(toFire);\n\t}",
"public RetriggerMode getRetriggerMode();",
"public void received()\n\t{\n\t\tdriver.findElementByName(OR.getProperty(\"Received\")).click();\n\t}",
"public void setAutoForwardTriggeredSend(com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition autoForwardTriggeredSend)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition target = null;\n target = (com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition)get_store().find_element_user(AUTOFORWARDTRIGGEREDSEND$16, 0);\n if (target == null)\n {\n target = (com.exacttarget.wsdl.partnerapi.TriggeredSendDefinition)get_store().add_element_user(AUTOFORWARDTRIGGEREDSEND$16);\n }\n target.set(autoForwardTriggeredSend);\n }\n }",
"void notifyPending(MessageSnapshot snapshot);",
"@Override\n\tprotected boolean on_trigger_activated(String trigger_name) {\n\t\treturn false;\n\t}",
"public synchronized void sendMessage(CfAction actionToSend){\n\t\t\tcfCommnicationBridge.sendAction(actionToSend);\n\t}",
"private void sendNotification(String msg) {\r\n\t\tmNotificationManager = (NotificationManager)\r\n\t\t\t\tthis.getSystemService(Context.NOTIFICATION_SERVICE);\r\n\t\tBundle chat = new Bundle();\r\n\t\tchat.putString(\"claimedBy\", uid);\r\n\t\tchat.putString(\"uid\", claimedBy);\r\n\r\n\t\tIntent intent = new Intent();\r\n\t\tintent.putExtras(chat);\r\n\t\t\r\n\t\tNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this)\r\n\t\t.setSmallIcon(R.drawable.divvylogo)\r\n\t\t.setContentTitle(\"You've been matched\")\r\n\t\t.setAutoCancel(true)\r\n\t\t.setStyle(new NotificationCompat.BigTextStyle()\r\n\t\t.bigText(msg))\r\n\t\t.setContentText(msg);\r\n\r\n\t\tIntent resultIntent = new Intent(this, ChatAfterMatch.class);\r\n\t\tresultIntent.putExtras(chat);\r\n\t\t\r\n\t\t// The stack builder object will contain an artificial back stack for the\r\n\t\t// started Activity.\r\n\t\t// This ensures that navigating backward from the Activity leads out of\r\n\t\t// your application to the Home screen.\r\n\t\tTaskStackBuilder stackBuilder = TaskStackBuilder.create(this);\r\n\t\t\r\n\t\t// Adds the back stack for the Intent (but not the Intent itself)\r\n\t\tstackBuilder.addParentStack(ChatAfterMatch.class);\r\n\t\t\r\n\t\t// Adds the Intent that starts the Activity to the top of the stack\r\n\t\tstackBuilder.addNextIntent(resultIntent);\r\n\t\tPendingIntent resultPendingIntent =\r\n\t\t\t\tstackBuilder.getPendingIntent(\r\n\t\t\t\t\t\t0,\r\n\t\t\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT\r\n\t\t\t\t\t\t);\r\n\t\tmBuilder.setContentIntent(resultPendingIntent);\r\n\t\tNotificationManager mNotificationManager =\r\n\t\t\t\t(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\r\n\t\tmNotificationManager.notify(NOTIFICATION_ID, mBuilder.build());\r\n\t}",
"@Override\n\tpublic void confirmAndSendMessage(String messageId) {\n\t\t\n\t}",
"boolean getUserChooseTrigger();",
"public final EObject ruleTrigger() throws RecognitionException {\n EObject current = null;\n int ruleTrigger_StartIndex = input.index();\n Token otherlv_0=null;\n Token otherlv_1=null;\n Token otherlv_3=null;\n Token otherlv_5=null;\n Token otherlv_6=null;\n Token otherlv_8=null;\n Token otherlv_9=null;\n Token otherlv_11=null;\n EObject lv_triggerRules_2_0 = null;\n\n EObject lv_triggerRules_4_0 = null;\n\n EObject lv_with_7_0 = null;\n\n EObject lv_when_10_0 = null;\n\n\n enterRule(); \n \n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 20) ) { return current; }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1350:28: ( (otherlv_0= KEYWORD_82 otherlv_1= KEYWORD_4 ( (lv_triggerRules_2_0= ruleQualifiedRuleReference ) ) (otherlv_3= KEYWORD_8 ( (lv_triggerRules_4_0= ruleQualifiedRuleReference ) ) )* otherlv_5= KEYWORD_5 (otherlv_6= KEYWORD_58 ( (lv_with_7_0= ruleBlock ) ) )? (otherlv_8= KEYWORD_57 otherlv_9= KEYWORD_4 ( (lv_when_10_0= ruleExpression ) ) otherlv_11= KEYWORD_5 )? ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1351:1: (otherlv_0= KEYWORD_82 otherlv_1= KEYWORD_4 ( (lv_triggerRules_2_0= ruleQualifiedRuleReference ) ) (otherlv_3= KEYWORD_8 ( (lv_triggerRules_4_0= ruleQualifiedRuleReference ) ) )* otherlv_5= KEYWORD_5 (otherlv_6= KEYWORD_58 ( (lv_with_7_0= ruleBlock ) ) )? (otherlv_8= KEYWORD_57 otherlv_9= KEYWORD_4 ( (lv_when_10_0= ruleExpression ) ) otherlv_11= KEYWORD_5 )? )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1351:1: (otherlv_0= KEYWORD_82 otherlv_1= KEYWORD_4 ( (lv_triggerRules_2_0= ruleQualifiedRuleReference ) ) (otherlv_3= KEYWORD_8 ( (lv_triggerRules_4_0= ruleQualifiedRuleReference ) ) )* otherlv_5= KEYWORD_5 (otherlv_6= KEYWORD_58 ( (lv_with_7_0= ruleBlock ) ) )? (otherlv_8= KEYWORD_57 otherlv_9= KEYWORD_4 ( (lv_when_10_0= ruleExpression ) ) otherlv_11= KEYWORD_5 )? )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1352:2: otherlv_0= KEYWORD_82 otherlv_1= KEYWORD_4 ( (lv_triggerRules_2_0= ruleQualifiedRuleReference ) ) (otherlv_3= KEYWORD_8 ( (lv_triggerRules_4_0= ruleQualifiedRuleReference ) ) )* otherlv_5= KEYWORD_5 (otherlv_6= KEYWORD_58 ( (lv_with_7_0= ruleBlock ) ) )? (otherlv_8= KEYWORD_57 otherlv_9= KEYWORD_4 ( (lv_when_10_0= ruleExpression ) ) otherlv_11= KEYWORD_5 )?\n {\n otherlv_0=(Token)match(input,KEYWORD_82,FOLLOW_KEYWORD_82_in_ruleTrigger2463); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_0, grammarAccess.getTriggerAccess().getTriggerKeyword_0());\n \n }\n otherlv_1=(Token)match(input,KEYWORD_4,FOLLOW_KEYWORD_4_in_ruleTrigger2475); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getTriggerAccess().getLeftParenthesisKeyword_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1361:1: ( (lv_triggerRules_2_0= ruleQualifiedRuleReference ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1362:1: (lv_triggerRules_2_0= ruleQualifiedRuleReference )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1362:1: (lv_triggerRules_2_0= ruleQualifiedRuleReference )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1363:3: lv_triggerRules_2_0= ruleQualifiedRuleReference\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getTriggerAccess().getTriggerRulesQualifiedRuleReferenceParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleQualifiedRuleReference_in_ruleTrigger2495);\n lv_triggerRules_2_0=ruleQualifiedRuleReference();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getTriggerRule());\n \t }\n \t\tadd(\n \t\t\tcurrent, \n \t\t\t\"triggerRules\",\n \t\tlv_triggerRules_2_0, \n \t\t\"QualifiedRuleReference\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1379:2: (otherlv_3= KEYWORD_8 ( (lv_triggerRules_4_0= ruleQualifiedRuleReference ) ) )*\n loop35:\n do {\n int alt35=2;\n int LA35_0 = input.LA(1);\n\n if ( (LA35_0==KEYWORD_8) ) {\n alt35=1;\n }\n\n\n switch (alt35) {\n \tcase 1 :\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1380:2: otherlv_3= KEYWORD_8 ( (lv_triggerRules_4_0= ruleQualifiedRuleReference ) )\n \t {\n \t otherlv_3=(Token)match(input,KEYWORD_8,FOLLOW_KEYWORD_8_in_ruleTrigger2509); if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \tnewLeafNode(otherlv_3, grammarAccess.getTriggerAccess().getCommaKeyword_3_0());\n \t \n \t }\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1384:1: ( (lv_triggerRules_4_0= ruleQualifiedRuleReference ) )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1385:1: (lv_triggerRules_4_0= ruleQualifiedRuleReference )\n \t {\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1385:1: (lv_triggerRules_4_0= ruleQualifiedRuleReference )\n \t // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1386:3: lv_triggerRules_4_0= ruleQualifiedRuleReference\n \t {\n \t if ( state.backtracking==0 ) {\n \t \n \t \t newCompositeNode(grammarAccess.getTriggerAccess().getTriggerRulesQualifiedRuleReferenceParserRuleCall_3_1_0()); \n \t \t \n \t }\n \t pushFollow(FOLLOW_ruleQualifiedRuleReference_in_ruleTrigger2529);\n \t lv_triggerRules_4_0=ruleQualifiedRuleReference();\n\n \t state._fsp--;\n \t if (state.failed) return current;\n \t if ( state.backtracking==0 ) {\n\n \t \t if (current==null) {\n \t \t current = createModelElementForParent(grammarAccess.getTriggerRule());\n \t \t }\n \t \t\tadd(\n \t \t\t\tcurrent, \n \t \t\t\t\"triggerRules\",\n \t \t\tlv_triggerRules_4_0, \n \t \t\t\"QualifiedRuleReference\");\n \t \t afterParserOrEnumRuleCall();\n \t \t \n \t }\n\n \t }\n\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop35;\n }\n } while (true);\n\n otherlv_5=(Token)match(input,KEYWORD_5,FOLLOW_KEYWORD_5_in_ruleTrigger2544); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_5, grammarAccess.getTriggerAccess().getRightParenthesisKeyword_4());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1407:1: (otherlv_6= KEYWORD_58 ( (lv_with_7_0= ruleBlock ) ) )?\n int alt36=2;\n int LA36_0 = input.LA(1);\n\n if ( (LA36_0==KEYWORD_58) ) {\n alt36=1;\n }\n switch (alt36) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1408:2: otherlv_6= KEYWORD_58 ( (lv_with_7_0= ruleBlock ) )\n {\n otherlv_6=(Token)match(input,KEYWORD_58,FOLLOW_KEYWORD_58_in_ruleTrigger2557); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_6, grammarAccess.getTriggerAccess().getWithKeyword_5_0());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1412:1: ( (lv_with_7_0= ruleBlock ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1413:1: (lv_with_7_0= ruleBlock )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1413:1: (lv_with_7_0= ruleBlock )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1414:3: lv_with_7_0= ruleBlock\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getTriggerAccess().getWithBlockParserRuleCall_5_1_0()); \n \t \n }\n pushFollow(FOLLOW_ruleBlock_in_ruleTrigger2577);\n lv_with_7_0=ruleBlock();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getTriggerRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"with\",\n \t\tlv_with_7_0, \n \t\t\"Block\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n break;\n\n }\n\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1430:4: (otherlv_8= KEYWORD_57 otherlv_9= KEYWORD_4 ( (lv_when_10_0= ruleExpression ) ) otherlv_11= KEYWORD_5 )?\n int alt37=2;\n int LA37_0 = input.LA(1);\n\n if ( (LA37_0==KEYWORD_57) ) {\n alt37=1;\n }\n switch (alt37) {\n case 1 :\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1431:2: otherlv_8= KEYWORD_57 otherlv_9= KEYWORD_4 ( (lv_when_10_0= ruleExpression ) ) otherlv_11= KEYWORD_5\n {\n otherlv_8=(Token)match(input,KEYWORD_57,FOLLOW_KEYWORD_57_in_ruleTrigger2593); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_8, grammarAccess.getTriggerAccess().getWhenKeyword_6_0());\n \n }\n otherlv_9=(Token)match(input,KEYWORD_4,FOLLOW_KEYWORD_4_in_ruleTrigger2605); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_9, grammarAccess.getTriggerAccess().getLeftParenthesisKeyword_6_1());\n \n }\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1440:1: ( (lv_when_10_0= ruleExpression ) )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1441:1: (lv_when_10_0= ruleExpression )\n {\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1441:1: (lv_when_10_0= ruleExpression )\n // ../de.jevopi.mitra2/src-gen/de/jevopi/mitra2/parser/antlr/internal/InternalMitraParser.g:1442:3: lv_when_10_0= ruleExpression\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getTriggerAccess().getWhenExpressionParserRuleCall_6_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleExpression_in_ruleTrigger2625);\n lv_when_10_0=ruleExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getTriggerRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"when\",\n \t\tlv_when_10_0, \n \t\t\"Expression\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n otherlv_11=(Token)match(input,KEYWORD_5,FOLLOW_KEYWORD_5_in_ruleTrigger2638); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_11, grammarAccess.getTriggerAccess().getRightParenthesisKeyword_6_3());\n \n }\n\n }\n break;\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n \tcatch (RecognitionException re) { \n \t recover(input,re); \n \t appendSkippedTokens();\n \t}\n finally {\n if ( state.backtracking>0 ) { memoize(input, 20, ruleTrigger_StartIndex); }\n }\n return current;\n }",
"public Object call() throws Exception {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tif ( reference.asNativeRemoteFarReference().getTransmitting()){\n\t\t\t\t\t\t\t// if there is a thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future with a BlockingFuture to wait for the result of the transmission.\n\t\t\t\t\t\t\tBlockingFuture future = setRetractingFuture(reference);\n\t\t\t\t\t\t\treturn future.get();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// if there is no thread transmitting a message for this reference:\n\t\t\t\t\t\t\t// resolve the future immediately with the content of its oubox.\n\t\t\t\t\t\t\treturn reference.asNativeRemoteFarReference().impl_retractOutgoingLetters();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\tadaptee.botonRecibir_actionPerformed(e);\n\t}",
"@Override\n public boolean messagePending() {\n return commReceiver.messagePending();\n }",
"protected void processNewMessage(String user, CfAction action){\n\t\tif (shouldTakeActionOnMessage(action)){\n\t\t\tsendToAllAgents(user, action);\t\n\t\t}\n\t}",
"@Override\n\tpublic void action() \n\t{\n\t\tif(this.user.arrivedToFinalStation())\n\t\t{\n\t\t\tthis.user.stablishDesiredVehicle();\n\t\t\tthis.user.stablishDesiredStation();\n\t\t}\n\t\t\n\t\t//printing info\n\t\tSystem.out.println(\"\\nI'm \" + this.user.getLocalName() + \": I'm on \" + this.user.getCurrentStation() + \" and I want to go to \" + this.user.desiredStation + \" by \" + this.user.desiredVehicle +\".\\n\");\n\t\t//this.mensaje=scanner.nextLine(); //debug\n\t\t\n\t\t//PetitionRequest\n\t\tSystem.out.println(\"I make a vehicle request to \" + this.user.getCurrentStation() + \": I'm on \" + this.user.getCurrentStation() + \" and I want to go to \" + this.user.desiredStation + \" by \" + this.user.desiredVehicle + \".\");\n\t\tthis.msgObject = new Capsule(null,this.user.getDesiredVehicle(),this.user.getDesiredStation(),null);\n\t\tUtils.enviarMensaje(myAgent, this.user.getCurrentStation(), this.msgObject, \"VEHICLE_REQUEST\");\n\t\t\n\t\t//Waiting for answer\n\t\tACLMessage msg=this.myAgent.blockingReceive(\n\t\t\t\tMessageTemplate.and(\n\t\t\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REQUEST), \n\t\t\t\t\t\tMessageTemplate.MatchOntology(\"ontologia\"))\n\t\t\t\t);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tthis.comment = msg.getEnvelope().getComments();\n\t\t\tthis.msgObject = (Capsule) msg.getContentObject();\n\t\t\tSystem.out.println(\"\\t\" + this.user.getCurrentStation() + \" told me \" + this.comment + \". \");\n\t\t\t\n\t\t\tswitch(this.comment)\n\t\t\t{\n\t\t\tcase \"VEHICLE_DELIVERY\":\n\t\t\t\t//1. The station give to the user the vehicle normaly\n\t\t\t\tif(msgObject.getVehicle() != null) {\n\t\t\t\t\tthis.user.takeVehicle(msgObject.getVehicle());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//2. The user goes to the final station\n\t\t\t\tthis.notifyMonitor(\"moving\");\n\t\t\t\tthis.user.goToStation();\n\t\t\t\tthis.notifyMonitor(\"waiting\");\n\n\t\t\t\t//3. Leaves the vehicle on the final station\n\t\t\t\tif(this.user.hasVehicle())\n\t\t\t\t{\n\t\t\t\t\tthis.vehicleTemp = this.user.leaveVehicle();\n\t\t\t\t\tmsgObject = new Capsule(this.vehicleTemp,null, null, null);\n\t\t\t\t\tUtils.enviarMensaje(myAgent, this.user.getCurrentStation(), this.msgObject, \"VEHICLE_RETURN\");\n\t\t\t\t}\n\n\t\t\t\t//4. The user waits a bit\n\t\t\t\tthis.user.waitSomeTime(8000);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"UNSATISFACTORY_REQUEST\":\n\t\t\t\t// The station reports that the request couldn't be completed properly\n\t\t\t\t//1. The capsule can cointain: alternativeStation and alternativeVehicle\n\t\t\t\tif(msgObject.getStation() != null) {\t//checks if there's an alternative reserved station\n\t\t\t\t\tSystem.out.println(\"\\t\"+this.user.getCurrentStation() + \" told me that there's an alternative route -> \" + msgObject.getStation() + \". \");\n\t\t\t\t\tthis.user.stablishDestinationStation(msgObject.getStation());\n\t\t\t\t}\n\t\t\t\tif(msgObject.getVehicle() != null) { //checks if the station gave an alternative vehicle\n\t\t\t\t\tSystem.out.println(\"\\t\"+this.user.getCurrentStation() + \" gived to me an alternative vehicle -> \" + msgObject.getVehicle().getType() + \". \");\n\t\t\t\t\tthis.user.takeVehicle(msgObject.getVehicle());\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"\\tI have to go walking. \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//2. Moving to the destination station\n\t\t\t\tthis.notifyMonitor(\"moving\");\n\t\t\t\tthis.user.goToStation();\n\t\t\t\tthis.notifyMonitor(\"waiting\");\n\n\t\t\t\t//3. If has a vehicle, the user leaves it\n\t\t\t\tif(this.user.hasVehicle()) \n\t\t\t\t{\n\t\t\t\t\t//send the vehicle to the station\n\t\t\t\t\tthis.vehicleTemp = this.user.leaveVehicle();\n\t\t\t\t\tmsgObject = new Capsule(this.vehicleTemp,null, null, null);\n\t\t\t\t\tUtils.enviarMensaje(myAgent, this.user.getCurrentStation(), this.msgObject, \"VEHICLE_RETURN\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//4. the user waits before restarting the behavior\n\t\t\t\tthis.user.waitSomeTime(4000);\n\t\t\t}\n\t\t}\n\t\tcatch (UnreadableException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public TriggerAccess getTrigger () {\n return this.trigger;\n }",
"public static boolean getTrigger() {\n\t\treturn true;\r\n\t}",
"public void autoGrab(){\n \tif (getTrigger() == true){\n\t \tif(triggerTimer.get() >= TRIGGER_LOCKOUT){\n\t\t \tClawAct.set(true);\n\t\t \tisClosed = true;\n\t \t\tRobot.oi.armRumble(RUMBLE_DURATION);\n\t \t}\n \t}\n\n }",
"private void fireBatteryStatus(String trigger)\n\t{\n\t\tfireBatteryStatus(batteryLevel, isPowerConnected, trigger, null);\n\t}",
"public interface ActionTriggerEdge extends EdgeFrame {\n /**\n * Gets the name of the action to be triggered. The target node must have at least one valid method annotated as an\n * action with this name.\n *\n * @return The name of the action to trigger.\n * @since 0.1\n */\n @Property(\"triggerAction\")\n String getTriggerAction();\n\n /**\n * Sets the name of the action to be triggered. The target node must have at least one valid method annotated as an\n * action with this name.\n *\n * @param triggerAction The new name for the action to be triggered.\n * @since 0.1\n */\n @Property(\"triggerAction\")\n void setTriggerAction(String triggerAction);\n\n /**\n * The node to be triggered.\n *\n * @return the node to be triggered\n * @since 0.1\n */\n @InVertex\n Object getTarget();\n\n /**\n * The action trigger capable of triggering the target node.\n *\n * @return the ActionTrigger\n * @since 0.1\n */\n @OutVertex\n ActionTrigger getSource();\n}",
"public interface TriggerAction {\n\t\tpublic void click();\n\t}",
"@Override\r\n\tpublic void run() {\r\n\t\twhile(true){\r\n\t\t\ttry {\r\n\t\t\tLiftEvent event = connection.receive();\r\n\t\t\tLiftAction liftAction = eventActionMap.get(event.getClass());\r\n\r\n\t\t\tliftAction.execute(event);\r\n\t\t\t} catch(Exception e) {\r\n\t\t e.printStackTrace();\r\n\t\t throw new RuntimeException(e);\r\n\t\t } \r\n\t\t}\t\r\n\t}",
"public void act()\n {\n \n if (wait < 75)\n {\n wait = wait + 1;\n }\n \n \n \n \n \n \n if (wait == 75)\n {\n change();\n checkForBounce();\n checkForEdge();\n checkWin(); \n }\n \n \n }",
"@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n if (messageEvent.getPath().equals(START_ACTIVITY_PATH)) {\n // Create intent and start activity\n Intent startIntent = new Intent(this, MainActivity.class); // Intent to main activity\n startIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); // Does not start new Activity just brings it to front\n startActivity(startIntent); // Start activity\n\n // Send confirmation message back to the node\n Wearable.getMessageClient(this).sendMessage(messageEvent.getSourceNodeId(), ACTIVITY_STARTED_PATH,\n null);\n }\n }",
"public final void trigger (GoalProver prover) throws FailedUnificationException\n {\n if (_refCount == 0)\n _goal.prove((TypeChecker)prover);\n }",
"public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}",
"@Override\n\tpublic boolean execute() {\n\t\t\n\t\tRecieve recieve = new Recieve(this.simulation, this.getFinishingTime() + Parameters.getNetworkDelay() , this.destinationID) ;\n\t\tthis.simulation.schedule(recieve);\n\t\t\n\n\t\treturn true ; \n\t\t\n\t}",
"void notify(Message m);",
"public Canon trigger(Canon canon, Vehicule veh, boolean PLtriggered) {\r\n\t\tcanon = new Canon(veh.getX(), veh.getY());\r\n\t\tcanon.setX(veh.getX()/1000);\r\n\t\tcanon.setY(veh.getY()/1000);\r\n\t\tcanon.setDirection(veh.getVecMov());\r\n\t\tif(type==1) {\r\n\t\t\tint speedFactor = 10;\r\n\t\t\tcanon.tirer(veh.getSpeed()*speedFactor);\r\n\t\t\t\r\n\t\t}else if(type==2) {\r\n\t\t\tint speedFactor = 20;\r\n\t\t\tcanon.tirerMissileChercheur(veh.getSpeed()*speedFactor);\r\n\t\t}\r\n\t\tif(PLtriggered) {\r\n\t\t\tcanon.tireurA(true);\r\n\t\t}else {\r\n\t\t\tcanon.tireurB(true);\r\n\t\t}\r\n\t\tselfDes();\r\n\t\treturn canon;\r\n\t}",
"@Override\n\tpublic void ActOnNotification(String message) {\n\t \tSystem.out.println(\"Sending Event\");\n\t}",
"private void onReceiveMessage(Edge edgeItoJ) throws FactorException {\n\t\t\tSystem.out.printf(\"%s receiving message from %s, upward? %s\\n\", this.toString(), edgeItoJ.getOtherVertex(this), _bumpOnUpwardPass);\n\t\t\tif(!_neighborEdges.containsKey(edgeItoJ)) {\n\t\t\t\tSystem.err.println(\"hello check\");\n\t\t\t}\n\t\t\t_neighborEdges.put(edgeItoJ, true);\n\t\t\tcomputeBeliefIfReady();\n\t\t}",
"@Override\n\tpublic void execute() {\n\t\tfinal Component KNIFE = CONSTS.KNIFE_CLICK;\n\t\tfinal Component FLETCH_BUTTON = CONSTS.FLETCH_BUTTON;\n\t\t// get random log from inventory\n\t\tfinal Item log = ctx.backpack.id(CONSTS.fletching.getId()).shuffle().poll();\n\t\t// interact with log\n\t\tif(log.interact(\"Craft\")) {\n\t\t\tCondition.wait(new Callable<Boolean>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\t\treturn KNIFE.valid() && KNIFE.visible();\n\t\t\t\t}\n\t\t\t},200,3);\n\t\t\tif(KNIFE.valid() && KNIFE.visible()) {\n\t\t\t\t// click on knife in popup menu\n\t\t\t\tif(KNIFE.click()) {\n\t\t\t\t\t// wait for fletch button to open up\n\t\t\t\t\tCondition.wait(new Callable<Boolean> () {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\t\t\t\treturn FLETCH_BUTTON.visible() && FLETCH_BUTTON.valid();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t// if the buttons visible\n\t\t\t\t\tif(FLETCH_BUTTON.visible() && FLETCH_BUTTON.valid()) {\n\t\t\t\t\t\t// if it still needs to select the menu item\n\t\t\t\t\t\tif(first) {\n\t\t\t\t\t\t\tfinal Component itemchoice = evaluateIndexes(CONSTS.method);\n\t\t\t\t\t\t\tif(itemchoice.visible() && itemchoice.valid()) {\n\t\t\t\t\t\t\t\titemchoice.click(\"Select\");\n\t\t\t\t\t\t\t\tfirst = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(CONSTS.FLETCH_BUTTON.click()) {\n\t\t\t\t\t\t\t// wait to fletch the logs\n\t\t\t\t\t\t\tCondition.wait(new Callable<Boolean>() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\t\t\t\t\t\treturn ctx.backpack.id(CONSTS.fletching.getId()).isEmpty();\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// if it took us directly to the fletching interface\n\t\t\t} else if(FLETCH_BUTTON.visible() && FLETCH_BUTTON.valid()) {\n\t\t\t\t// if it still needs to select the menu item\n\t\t\t\tif(first) {\n\t\t\t\t\tfinal Component itemchoice = evaluateIndexes(CONSTS.method);\n\t\t\t\t\tif(itemchoice.visible() && itemchoice.valid()) {\n\t\t\t\t\t\titemchoice.click(\"Select\");\n\t\t\t\t\t\tfirst = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(FLETCH_BUTTON.click()) {\n\t\t\t\t\t// wait to fletch the logs\n\t\t\t\t\tCondition.wait(new Callable<Boolean>() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\t\t\t\treturn ctx.backpack.id(CONSTS.fletching.getId()).isEmpty();\n\t\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}",
"private void handleActionNotification() {\n String result = getQuote(stringsArray);\n// Notification myNotification = new Notification.Builder(this)\n// .setAutoCancel(true)\n// .setDefaults(Notification.DEFAULT_ALL)\n// .setWhen(System.currentTimeMillis())\n// .setSmallIcon(R.mipmap.ic_launcher)\n// .setContentText(result)\n// .build();\n//\n// NotificationManagerCompat manager = NotificationManagerCompat.from(this);\n// manager.notify(0, myNotification);\n\n\n NotificationCompat.Builder builder = new NotificationCompat.Builder(this)\n .setSmallIcon(R.mipmap.ic_launcher)\n .setContentTitle(\"My notification\")\n .setContentText(result);\n\n NotificationManager notificationManager = (NotificationManager)this\n .getSystemService(Context.NOTIFICATION_SERVICE);\n int id = 1;\n notificationManager.notify(id, builder.build());\n }",
"@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tcheckForTriggerEvent(e);\n\t\t}",
"public void onTriggerChange() {\n findViewById(R.id.temp).post(new Runnable() {\n public void run() {\n ConsumerIrManager mCIR = ScaryUtil.getConsumerIRService(getApplicationContext());\n if (m_Inst.power) {\n TransmissionCode data = ScaryUtil.getIRCode(m_Inst.sequence, m_Inst.temp); // (TransmissionCode)samsung.get(m_Inst.temp);\n ScaryUtil.transmit(getApplicationContext(),data);\n }\n }\n });\n }",
"private void predefinedSendRedActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_predefinedSendRedActionPerformed\n // TODO add your handling code here:\n String commandString = \"\";\n String selectedMessage = (String) messages.getSelectedItem();\n String[] titleKey = selectedMessage.split(\"\\\\. \");\n System.out.println(selectedMessage);\n String lineTitle = titleKey[1].trim();\n System.out.println(\"Clicked - red predef message: \" + lineTitle);\n for (int i = 0; i < lines.size(); i++) {\n String line = (String) lines.get(i);\n if (line.contains(lineTitle)) {\n String current = (String) lines.get(i);\n String[] parts = current.split(\";\");\n commandString = parts[2];\n }\n }\n \n String sendString = \"VR\" + commandString;\n \n sendRawMessage(sendString);\n }",
"@Test\n public void testDslTriggerIsToApprovePushActionFreeStyle() throws Exception {\n createSeedJob(readDslScript(\"./dsl/testDslTriggerIsToApprovePushActionFreeStyle.groovy\"));\n /* Fetch the newly created job and check its trigger configuration */\n FreeStyleProject createdJob = (FreeStyleProject) j.getInstance().getItem(\"test-job\");\n /* Go through all triggers to validate DSL */\n Map<TriggerDescriptor, Trigger<?>> triggers = createdJob.getTriggers();\n assertEquals(1, triggers.size());\n List<String> dispNames = new ArrayList<>();\n boolean isToApprove = false;\n for (Trigger<?> entry : triggers.values()) {\n BitBucketPPRTrigger tmp2 = (BitBucketPPRTrigger) entry;\n assertEquals(1, tmp2.getTriggers().size());\n String tmpNname = tmp2.getTriggers().get(0).getActionFilter().getClass().getName();\n String dispName = tmpNname.substring(tmpNname.lastIndexOf(\".\") + 1);\n dispNames.add(dispName);\n\n BitBucketPPRRepositoryPushActionFilter tmp3 = (BitBucketPPRRepositoryPushActionFilter) tmp2.getTriggers().get(0).getActionFilter();\n isToApprove = tmp3.shouldSendApprove();\n }\n assertEquals(1, dispNames.size());\n assertEquals(dispNames.get(0), \"BitBucketPPRRepositoryPushActionFilter\");\n assertTrue(isToApprove);\n }",
"public final EObject ruleLocalReaction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_3=null;\r\n EObject lv_trigger_0_0 = null;\r\n\r\n EObject lv_effect_2_0 = null;\r\n\r\n EObject lv_properties_4_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1365:28: ( ( ( (lv_trigger_0_0= ruleReactionTrigger ) ) (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) ) (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )? ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1366:1: ( ( (lv_trigger_0_0= ruleReactionTrigger ) ) (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) ) (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )? )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1366:1: ( ( (lv_trigger_0_0= ruleReactionTrigger ) ) (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) ) (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )? )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1366:2: ( (lv_trigger_0_0= ruleReactionTrigger ) ) (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) ) (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )?\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1366:2: ( (lv_trigger_0_0= ruleReactionTrigger ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1367:1: (lv_trigger_0_0= ruleReactionTrigger )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1367:1: (lv_trigger_0_0= ruleReactionTrigger )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1368:3: lv_trigger_0_0= ruleReactionTrigger\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getLocalReactionAccess().getTriggerReactionTriggerParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionTrigger_in_ruleLocalReaction2990);\r\n lv_trigger_0_0=ruleReactionTrigger();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getLocalReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"trigger\",\r\n \t\tlv_trigger_0_0, \r\n \t\t\"ReactionTrigger\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1384:2: (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1384:4: otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) )\r\n {\r\n otherlv_1=(Token)match(input,33,FOLLOW_33_in_ruleLocalReaction3003); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getLocalReactionAccess().getSolidusKeyword_1_0());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1388:1: ( (lv_effect_2_0= ruleReactionEffect ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1389:1: (lv_effect_2_0= ruleReactionEffect )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1389:1: (lv_effect_2_0= ruleReactionEffect )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1390:3: lv_effect_2_0= ruleReactionEffect\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getLocalReactionAccess().getEffectReactionEffectParserRuleCall_1_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionEffect_in_ruleLocalReaction3024);\r\n lv_effect_2_0=ruleReactionEffect();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getLocalReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"effect\",\r\n \t\tlv_effect_2_0, \r\n \t\t\"ReactionEffect\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1406:3: (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )?\r\n int alt23=2;\r\n int LA23_0 = input.LA(1);\r\n\r\n if ( (LA23_0==34) ) {\r\n alt23=1;\r\n }\r\n switch (alt23) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1406:5: otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) )\r\n {\r\n otherlv_3=(Token)match(input,34,FOLLOW_34_in_ruleLocalReaction3038); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_3, grammarAccess.getLocalReactionAccess().getNumberSignKeyword_2_0());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1410:1: ( (lv_properties_4_0= ruleReactionProperties ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1411:1: (lv_properties_4_0= ruleReactionProperties )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1411:1: (lv_properties_4_0= ruleReactionProperties )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1412:3: lv_properties_4_0= ruleReactionProperties\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getLocalReactionAccess().getPropertiesReactionPropertiesParserRuleCall_2_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionProperties_in_ruleLocalReaction3059);\r\n lv_properties_4_0=ruleReactionProperties();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getLocalReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"properties\",\r\n \t\tlv_properties_4_0, \r\n \t\t\"ReactionProperties\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"@DISPID(135)\r\n\t// = 0x87. The runtime will prefer the VTID if present\r\n\t@VTID(130)\r\n\tjava.lang.String triggerType();",
"private void trigger() {\n\t\t\tif (repeatState == REPEAT_ADD) {\n\t\t\t\tadd();\n\t\t\t}\n\t\t\tif (repeatState == REPEAT_SUBTRACT) {\n\t\t\t\tsubtract();\n\t\t\t}\n\t\t}",
"public abstract void fire();",
"public abstract void fire();"
] | [
"0.59319776",
"0.5690602",
"0.5626071",
"0.5624569",
"0.5579641",
"0.5571802",
"0.5557959",
"0.5416057",
"0.5414719",
"0.5413073",
"0.5379838",
"0.5374086",
"0.53598076",
"0.5353152",
"0.53305215",
"0.52863187",
"0.5280814",
"0.52697855",
"0.5247464",
"0.5243073",
"0.5237781",
"0.52347434",
"0.5234526",
"0.5223043",
"0.5207722",
"0.52032495",
"0.5183967",
"0.51831055",
"0.517816",
"0.51582474",
"0.5127956",
"0.5109546",
"0.5105927",
"0.51028794",
"0.5095701",
"0.5094431",
"0.5082555",
"0.5066425",
"0.50535005",
"0.5052868",
"0.50458133",
"0.5035814",
"0.50344616",
"0.50291914",
"0.50175136",
"0.5005984",
"0.5000628",
"0.5000155",
"0.49976125",
"0.49961203",
"0.49815688",
"0.49671695",
"0.49648732",
"0.49632755",
"0.4954393",
"0.49468887",
"0.49460614",
"0.4937064",
"0.49333477",
"0.49252778",
"0.49037567",
"0.4898345",
"0.48932397",
"0.488691",
"0.48856434",
"0.48788884",
"0.48720983",
"0.48681372",
"0.4857105",
"0.48568615",
"0.48511606",
"0.4847942",
"0.48451984",
"0.48368785",
"0.48349494",
"0.48328477",
"0.48302317",
"0.48300666",
"0.48271084",
"0.48257554",
"0.48232135",
"0.48216647",
"0.48166236",
"0.4813052",
"0.48061937",
"0.4797449",
"0.4789941",
"0.47867048",
"0.47860223",
"0.47836563",
"0.4777275",
"0.47740158",
"0.4773091",
"0.4768311",
"0.47653472",
"0.47649008",
"0.47646475",
"0.47600323",
"0.47584313",
"0.47584313"
] | 0.66921467 | 0 |
Reaction to a winning message. If the gateway this node is connected to reacts with a winning message, the element is allowed to trigger and activate its following nodes. | protected void winning(WinningMessage message) {
this.getNodeInstanceMediatorService().setState(
message.getProcessInstanceId(), NodeInstaceStates.PASSED_STATE);
this.getNodeInstanceMediatorService().persistChanges();
this.sendMessageToNodeActors(
new ActivationMessage(message.getProcessInstanceId()),
this.getOutgoingNodes());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void win()\r\n\t{\r\n\t\tmWon = true;\r\n\t}",
"void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }",
"public boolean isWon() {\r\n\t\tif (winner(CROSS) || winner(NOUGHT))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}",
"public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }",
"private void win(int winner)\n {\n switch (winner) {\n case PLAYER_1_FLAG:\n player1.gameOver(RESULT_WIN);\n player2.gameOver(RESULT_LOSS);\n winSend.close();\n break;\n case PLAYER_2_FLAG:\n player1.gameOver(RESULT_LOSS);\n player2.gameOver(RESULT_WIN);\n \n winSend.close();\n break;\n }\n }",
"public void winGame() {\n this.isWinner = true;\n }",
"public void sendWinner(Winner winner) {\n try {\n getGlueObject().handleSend(new Envelope()\n .setMessageType(MessageType.FINISH_RACE)\n .setWinner(winner)\n );\n } catch (NoSuchActionException | ActionFailedException e) {\n AlertMessage.alertMsg(null, e.getMessage(), AlertType.ERROR);\n }\n }",
"public boolean win() {\n for (int i = 0; i < getBoard().length; i++) {\n for (int j = 0; j < getBoard()[i].length; j++) {\n if (!getBoard(i, j).getClicked() && !getBoard(i, j).getMine()) {\n return false;\n }\n }\n }\n for (int i = 0; i < getBoard().length; i++) {\n for (int j = 0; j < getBoard()[i].length; j++) {\n if (getBoard(i, j).getMine()) {\n getBoard(i, j).setFlagged();\n getBoard(i, j).repaint();\n }\n }\n }\n return true;\n }",
"@Override\n public void youWin(Map<String, Integer> rankingMap) {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEnded(\"YOU WON, CONGRATS BUDDY!!\", rankingMap);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending you won error\");\n }\n }",
"@TargetApi(Build.VERSION_CODES.JELLY_BEAN)\n private void handleLuckyMoneyReceive(AccessibilityNodeInfo nodeInfo) {\n\n if(nodeInfo == null) {\n Log.d(TAG, \"rootWindow is empty\");\n return;\n }\n\n AccessibilityNodeInfo targetNode = null;\n int event = getConfig().getWechatAfterOpenHongBaoEvent();\n int wechatVersion = getWechatVersion();\n if(event == Config.WX_AFTER_OPEN_HONGBAO) { //Open a red envelope\n if (wechatVersion < USE_ID_MIN_VERSION) {\n targetNode = AccessibilityHelper.findNodeInfosByText(nodeInfo,OPEN_HONGBAO);\n } else {\n String buttonId = WechatVersionHelper.getOpenButtonId(wechatVersion);\n Log.d(TAG,\"buttonId = \" + buttonId);\n if(buttonId != null) {\n targetNode = AccessibilityHelper.findNodeInfosById(nodeInfo, buttonId);\n }\n\n if(targetNode == null){\n //Corresponding to a fixed amount of red envelopes to fight.\n AccessibilityNodeInfo textNode = findNodeInfosByTexts(nodeInfo,\n getContext().getResources().getString(R.string.send_one),\n getContext().getResources().getString(R.string.send_one_to_you),\n getContext().getResources().getString(R.string.send_one_randomly));\n Log.d(TAG,\"textNode = \" + textNode);\n\n if(textNode != null) {\n for (int i = 0; i < textNode.getChildCount(); i++) {\n AccessibilityNodeInfo node = textNode.getChild(i);\n if (BUTTON_CLASS_NAME.equals(node.getClassName())) {\n targetNode = node;\n break;\n }\n }\n Log.d(TAG,\"targetNode = \" + targetNode);\n }\n }\n\n if(targetNode == null) { //Search through component\n targetNode = AccessibilityHelper.findNodeInfosByClassName(nodeInfo, BUTTON_CLASS_NAME);\n }\n Log.d(TAG,\"targetNode = \" + targetNode);\n }\n } else if(event == Config.WX_AFTER_OPEN_SEE) { //Have a look\n if(getWechatVersion() < USE_ID_MIN_VERSION) { //Lower version have the function to have a look\n targetNode = AccessibilityHelper.findNodeInfosByText(nodeInfo,LOOK_LUCKS);\n }\n } else if(event == Config.WX_AFTER_OPEN_NONE) { // Quietly watching\n return;\n }\n\n if(targetNode != null) {\n final AccessibilityNodeInfo n = targetNode;\n SharedPreferences sp = getContext().getSharedPreferences(\"DELAY\",Context.MODE_PRIVATE);\n int delay_time = sp.getInt(\"delay_time\", 4);\n switch (delay_time){\n case 1:\n delayClick(n,0);\n break;\n case 2:\n delayClick(n,500);\n break;\n case 3:\n delayClick(n,1000);\n break;\n case 4:\n int s = (int)(Math.random()*7)+2;\n long delay = s*1000;\n Log.d(TAG,\"random delay \"+s +\" 秒\");\n delayClick(n,delay);\n break;\n }\n\n if(event == Config.WX_AFTER_OPEN_HONGBAO) {\n QHBApplication.eventStatistics(getContext(), \"open_hongbao\");\n } else {\n QHBApplication.eventStatistics(getContext(), \"open_see\");\n }\n\n //Get sender information\n getSenderInfo(targetNode);\n\n flags = true;\n }\n }",
"public boolean checkForWin(){\n\t\t\n\t\tPlayer p = Game.getCurrPlayer();\n\t\t// if player made it to win area, player won\n\t\tif(p.won()){\n\t\t\tGame.gameWon = true;\n\t\t\tthis.network.sendWin();\n\t\t\treturn true;\n\t\t}\n\t\t// if player is the last player on the board, player won\n\t\tif(numPlayers == 1 && !p.hasBeenKicked()){\n\t\t\tGame.gameWon = true;\n\t\t\tthis.network.sendWin();\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public final EObject ruleTransitionReaction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_2=null;\r\n Token otherlv_4=null;\r\n EObject lv_trigger_1_0 = null;\r\n\r\n EObject lv_effect_3_0 = null;\r\n\r\n EObject lv_properties_5_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1448:28: ( ( () ( (lv_trigger_1_0= ruleReactionTrigger ) )? (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )? (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )? ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1449:1: ( () ( (lv_trigger_1_0= ruleReactionTrigger ) )? (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )? (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )? )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1449:1: ( () ( (lv_trigger_1_0= ruleReactionTrigger ) )? (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )? (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )? )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1449:2: () ( (lv_trigger_1_0= ruleReactionTrigger ) )? (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )? (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )?\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1449:2: ()\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1450:5: \r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n current = forceCreateModelElement(\r\n grammarAccess.getTransitionReactionAccess().getTransitionReactionAction_0(),\r\n current);\r\n \r\n }\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1455:2: ( (lv_trigger_1_0= ruleReactionTrigger ) )?\r\n int alt24=2;\r\n int LA24_0 = input.LA(1);\r\n\r\n if ( (LA24_0==RULE_ID||LA24_0==35||(LA24_0>=39 && LA24_0<=44)||(LA24_0>=58 && LA24_0<=59)) ) {\r\n alt24=1;\r\n }\r\n switch (alt24) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1456:1: (lv_trigger_1_0= ruleReactionTrigger )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1456:1: (lv_trigger_1_0= ruleReactionTrigger )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1457:3: lv_trigger_1_0= ruleReactionTrigger\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getTransitionReactionAccess().getTriggerReactionTriggerParserRuleCall_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionTrigger_in_ruleTransitionReaction3162);\r\n lv_trigger_1_0=ruleReactionTrigger();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getTransitionReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"trigger\",\r\n \t\tlv_trigger_1_0, \r\n \t\t\"ReactionTrigger\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1473:3: (otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) ) )?\r\n int alt25=2;\r\n int LA25_0 = input.LA(1);\r\n\r\n if ( (LA25_0==33) ) {\r\n alt25=1;\r\n }\r\n switch (alt25) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1473:5: otherlv_2= '/' ( (lv_effect_3_0= ruleReactionEffect ) )\r\n {\r\n otherlv_2=(Token)match(input,33,FOLLOW_33_in_ruleTransitionReaction3176); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_2, grammarAccess.getTransitionReactionAccess().getSolidusKeyword_2_0());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1477:1: ( (lv_effect_3_0= ruleReactionEffect ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1478:1: (lv_effect_3_0= ruleReactionEffect )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1478:1: (lv_effect_3_0= ruleReactionEffect )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1479:3: lv_effect_3_0= ruleReactionEffect\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getTransitionReactionAccess().getEffectReactionEffectParserRuleCall_2_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionEffect_in_ruleTransitionReaction3197);\r\n lv_effect_3_0=ruleReactionEffect();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getTransitionReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"effect\",\r\n \t\tlv_effect_3_0, \r\n \t\t\"ReactionEffect\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1495:4: (otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) ) )?\r\n int alt26=2;\r\n int LA26_0 = input.LA(1);\r\n\r\n if ( (LA26_0==34) ) {\r\n alt26=1;\r\n }\r\n switch (alt26) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1495:6: otherlv_4= '#' ( (lv_properties_5_0= ruleReactionProperties ) )\r\n {\r\n otherlv_4=(Token)match(input,34,FOLLOW_34_in_ruleTransitionReaction3212); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_4, grammarAccess.getTransitionReactionAccess().getNumberSignKeyword_3_0());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1499:1: ( (lv_properties_5_0= ruleReactionProperties ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1500:1: (lv_properties_5_0= ruleReactionProperties )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1500:1: (lv_properties_5_0= ruleReactionProperties )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1501:3: lv_properties_5_0= ruleReactionProperties\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getTransitionReactionAccess().getPropertiesReactionPropertiesParserRuleCall_3_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionProperties_in_ruleTransitionReaction3233);\r\n lv_properties_5_0=ruleReactionProperties();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getTransitionReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"properties\",\r\n \t\tlv_properties_5_0, \r\n \t\t\"ReactionProperties\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"private void win() throws IOException {\n // get the color who wins\n int color = fromServer.readInt();\n\n if(color == this.color){\n playSound(WIN_SOUND);\n setMsgText(\"You win!\");\n } else if (color == this.opponentColor){\n // opponent wins\n setMsgText(\"You lose.\");\n } else {\n playSound(WIN_SOUND);\n // if the client is a viewer\n if(color == BLACK){\n setMsgText(\"BLACK wins!\");\n }else{\n setMsgText(\"WHITE wins!\");\n }\n }\n\n // end game\n endGame();\n }",
"public void applyReaction(Reaction reaction) {\n }",
"public void powerOn() { //power_on\n String json = new Gson().toJson(new TelevisionModel(TelevisionModel.Action.ON));\n String a = sendMessage(json);\n TelevisionModel teleM = new Gson().fromJson(a, TelevisionModel.class);\n System.out.println(\"Client Received \" + json);\n\n if (teleM.getAction() == TelevisionModel.Action.ON) {\n isTurningOn = teleM.getValue();\n ui.updateArea(teleM.getMessage());\n }\n }",
"private boolean winGame() {\n if (model.isCompleted()) {\n win.message(\"Winner\");\n return true;\n }\n return false;\n }",
"public boolean xWins() {\n\t\tif (checkWinner(LETTER_X) == 1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"public boolean isWon() {\n return getWinningScenario() != null;\n }",
"public void win() {\n displayErrorMessage(\"You Win!\");\n if(controller.aiGame && !controller.loggedIn()){\n controller.switchToLogin();\n }\n else\n controller.switchToLobby();\n }",
"public void announceWinner() {\r\n Piece winer;\r\n if (_board.piecesContiguous(_board.turn().opposite())) {\r\n winer = _board.turn().opposite();\r\n } else {\r\n winer = _board.turn();\r\n }\r\n if (winer == WP) {\r\n _command.announce(\"White wins.\", \"Game Over\");\r\n System.out.println(\"White wins.\");\r\n } else {\r\n _command.announce(\"Black wins.\", \"Game Over\");\r\n System.out.println(\"Black wins.\");\r\n }\r\n }",
"@Ignore\n\t@Test\n\tpublic void testAgentAccepts() {\n\t\tparty.connect(connection);\n\t\tparty.notifyChange(settings);\n\n\t\tBid bid = makeBid(\"1\", \"1\");// best pssible\n\t\tparty.notifyChange(new ActionDone(new Offer(otherparty, bid)));\n\t\tparty.notifyChange(new YourTurn());\n\t\tassertEquals(1, connection.getActions().size());\n\t\tassertTrue(connection.getActions().get(0) instanceof Accept);\n\n\t}",
"void onAction(TwitchUser sender, TwitchMessage message);",
"public void gameWon()\n {\n ScoreBoard endGame = new ScoreBoard(\"You Win!\", scoreCounter.getValue());\n addObject(endGame, getWidth()/2, getHeight()/2);\n }",
"@Override\n public void doAction() {\n String move = agent.getBestMove(currentPosition);\n execute(move);\n\n //Location of the player\n int cX = w.getPlayerX();\n int cY = w.getPlayerY();\n\n if (w.hasWumpus(cX, cY)) {\n System.out.println(\"Wampus is here\");\n w.doAction(World.A_SHOOT);\n } else if (w.hasGlitter(cX, cY)) {\n System.out.println(\"Agent won\");\n w.doAction(World.A_GRAB);\n } else if (w.hasPit(cX, cY)) {\n System.out.println(\"Fell in the pit\");\n }\n\n// //Basic action:\n// //Grab Gold if we can.\n// if (w.hasGlitter(cX, cY)) {\n// w.doAction(World.A_GRAB);\n// return;\n// }\n//\n// //Basic action:\n// //We are in a pit. Climb up.\n// if (w.isInPit()) {\n// w.doAction(World.A_CLIMB);\n// return;\n// }\n//\n// //Test the environment\n// if (w.hasBreeze(cX, cY)) {\n// System.out.println(\"I am in a Breeze\");\n// }\n// if (w.hasStench(cX, cY)) {\n// System.out.println(\"I am in a Stench\");\n// }\n// if (w.hasPit(cX, cY)) {\n// System.out.println(\"I am in a Pit\");\n// }\n// if (w.getDirection() == World.DIR_RIGHT) {\n// System.out.println(\"I am facing Right\");\n// }\n// if (w.getDirection() == World.DIR_LEFT) {\n// System.out.println(\"I am facing Left\");\n// }\n// if (w.getDirection() == World.DIR_UP) {\n// System.out.println(\"I am facing Up\");\n// }\n// if (w.getDirection() == World.DIR_DOWN) {\n// System.out.println(\"I am facing Down\");\n// }\n//\n// //decide next move\n// rnd = decideRandomMove();\n// if (rnd == 0) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 1) {\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 2) {\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_TURN_LEFT);\n// w.doAction(World.A_MOVE);\n// }\n//\n// if (rnd == 3) {\n// w.doAction(World.A_TURN_RIGHT);\n// w.doAction(World.A_MOVE);\n// }\n }",
"public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }",
"public abstract boolean interactionPossible(Robot robot);",
"protected void roomAction() {\n if (this.count < 1 && !this.room.isTriggerSet())\n {\n System.out.println(\"Prisoner: \" + this.id + \" turns trigger on!\");\n this.count++;\n this.room.setTrigger();\n }\n else {\n System.out.println(\"Prisoner: \" + this.id + \" in room... nothing to do!\");\n }\n }",
"public void acceptInvite(UserBean possibleOpponent, int possiblePiece)\n\t{\n\t\tthis.opponent = possibleOpponent;\n\t\tthis.piece = possiblePiece;\n\t\tSocket controlSocket;\n\t\ttry {\n\t\t\tcontrolSocket = new Socket(opponent.getIpAddress(), Model.controlDataSocketNumber);\n\t\t\tObjectOutputStream toPeer = new ObjectOutputStream(controlSocket.getOutputStream());\n\t\t\tClientMessage c = new ClientMessage();\n\t\t\tc.setCommand(\"ACCEPT\");\n\t\t\tc.setUser(new UserBean(this.hostName, this.userName, this.ipAddress));\n\n\t\t\tSystem.out.println(\"Accepting invite\");\n\t\t\t\n\t\t\ttoPeer.writeObject(c);\n\n\t\t\tcontrolSocket.close();\n\t\t\tthis.haveGame = true;\n\t\t\tSystem.out.println(\"Starting game\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"void win() {\n\t\t_money += _bet * 2;\n\t\t_wins++;\n\t\tclearHand();\n\t\t_bet = 0;\n\t}",
"public void react() {\n \t\t//door.setOpen(true);\n \t\tSystem.out.println(\"open go through\");\n }",
"public T caseReactionTrigger(ReactionTrigger object) {\r\n\t\treturn null;\r\n\t}",
"protected void onReactionAdded(String channel, String sender, String receiver, String emojiName) {}",
"private void handleMiningAuthorize(\n final StratumConnection conn, final JsonRpcRequest message, final Consumer<String> sender) {\n String confirm;\n try {\n confirm = mapper.writeValueAsString(new JsonRpcSuccessResponse(message.getId(), true));\n } catch (JsonProcessingException e) {\n throw new IllegalStateException(e);\n }\n sender.accept(confirm);\n // ready for work.\n registerConnection(conn, sender);\n }",
"@Override\r\n\tpublic void doMessage(InnerMessage msg, IConnect session) throws Exception {\n\t\tGameGateEnterGameSuccessResponse resq = GameGateEnterGameSuccessResponse.parseFrom(msg.getBody());\r\n\t\tIConnect con = ConnectorManage.getMinaConnect(msg.getClientSessionId());\r\n\t\tif (con != null) {\r\n\t\t\tcon.setRoleId(resq.getRoleId());\r\n\t\t\tMessageSend.sendGateToClient(createEnterGameResponse(resq.getRoleId()), msg.getClientSessionId());\r\n\t\t\tlog.error(\"send client ok\" + msg.getClientSessionId());\r\n\t\t} else {\r\n\t\t\tlog.error(\"不存在id\" + msg.getClientSessionId());\r\n\t\t}\r\n\t}",
"public abstract void sendConfirmationMessage(Player player);",
"@Override\n\tpublic void onTalkToNpc(Player p, final Npc n) {\n\t\tp.setBusy(true);\n\t\tn.blockedBy(p);\n\n\t\tplayMessages(p, n, true, \"Can I come through this gate?\");\n\t\tplayMessages(p, n, false, \"You must pay a toll of 10 gold coins to pass\");\n\n\t\tString[] options = new String[] { \"No thankyou, I'll walk round\", \"Who does my money go to?\", \"yes ok\" };\n\n\t\tp.setMenuHandler(new MenuHandler(options) {\n\t\t\t@Override\n\t\t\tpublic void handleReply(int option, String reply) {\n\t\t\t\towner.setBusy(true);\n\t\t\t\tplayMessages(owner, n, true, reply);\n\n\t\t\t\tswitch(option) {\n\t\t\t\tcase 0: // no thanks\n\t\t\t\t\tplayMessages(owner, n, false, \"Ok suit yourself\");\n\n\t\t\t\t\tn.unblock();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1: // who does money go to\n\t\t\t\t\tplayMessages(owner, n, false, \"The money goes to the city of Al Kharid\");\n\n\t\t\t\t\tn.unblock();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: // yes\n\t\t\t\t\tif(owner.getInventory().remove(10, 10) > -1) { // enough money\n\t\t\t\t\t\towner.getActionSender().sendInventory();\n\t\t\t\t\t\towner.getActionSender().sendMessage(\"You pay the guard\");\n\t\t\t\t\t\tplayMessages(owner, n, false, \"You may pass\");\n\t\t\t\t\t\towner.getActionSender().sendMessage(\"The gate swings open\"); // lold\n\t\t\t\t\t\t//x > 91 (left side of fence\n\t\t\t\t\t\tif(owner.getX() > 91)\n\t\t\t\t\t\t\towner.teleport(90, 649, false);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\towner.teleport(93, 649, false);\n\t\t\t\t\t\n\n\t\t\t\t\t\tn.unblock();\n\t\t\t\t\t} else { // not enough money\n\t\t\t\t\t\tplayMessages(owner, n, true, \"Oh dear I don't actually seem to have enough money\");\n\n\t\t\t\t\t\tn.unblock();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\towner.setBusy(false);\n\t\t\t}\n\t\t});\n\t\tp.getActionSender().sendMenu(options);\n\t\tp.setBusy(false);\n\t}",
"public void action(BotInstance bot, Message message);",
"public void win()\r\n {\n Actor win;\r\n win=getOneObjectAtOffset(0,0,Goal.class);\r\n if (win !=null)\r\n {\r\n World myWorld=getWorld();\r\n Congrats cong=new Congrats();\r\n myWorld.addObject(cong,myWorld.getWidth()/2,myWorld.getHeight()/2); //(Greenfoot,2013) \r\n \r\n Greenfoot.stop();\r\n Greenfoot.playSound(\"finish.wav\"); //(Sound-Ideas,2014)\r\n \r\n }\r\n }",
"static boolean canWin() throws GameActionException {\n\t\tfloat difference = 1000 - rc.getTeamVictoryPoints();\n\t\tif ((rc.getTeamBullets() / 10) >= difference) {\n\t\t\trc.donate(rc.getTeamBullets());\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}",
"public final EObject entryRuleReactionTrigger() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleReactionTrigger = null;\r\n\r\n\r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1526:2: (iv_ruleReactionTrigger= ruleReactionTrigger EOF )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1527:2: iv_ruleReactionTrigger= ruleReactionTrigger EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n newCompositeNode(grammarAccess.getReactionTriggerRule()); \r\n }\r\n pushFollow(FOLLOW_ruleReactionTrigger_in_entryRuleReactionTrigger3271);\r\n iv_ruleReactionTrigger=ruleReactionTrigger();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n current =iv_ruleReactionTrigger; \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleReactionTrigger3281); if (state.failed) return current;\r\n\r\n }\r\n\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public void handleActivateLeader(ActionEvent event){\n\n Button activateButton = (Button) event.getSource();\n\n if(activateButton== activate0){\n sender.sendInput(\"activate leader card 0\");\n activatedLeader = activate0;\n discardedLeader = burn0;\n }\n\n if(activateButton== activate1){\n sender.sendInput(\"activate leader card 1\");\n activatedLeader = activate1;\n discardedLeader = burn1;\n\n }\n\n if(activateButton== activate2){\n sender.sendInput(\"activate leader card 2\");\n activatedLeader = activate2;\n discardedLeader = burn2;\n\n }\n\n if(activateButton== activate3){\n sender.sendInput(\"activate leader card 3\");\n activatedLeader = activate3;\n discardedLeader = burn3;\n\n }\n\n activateButton.setDisable(true);\n\n }",
"@Override\n\tpublic boolean playerWon() {\n\t\treturn lastPlayerWin;\n\t}",
"public final EObject ruleLocalReaction() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_3=null;\r\n EObject lv_trigger_0_0 = null;\r\n\r\n EObject lv_effect_2_0 = null;\r\n\r\n EObject lv_properties_4_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1365:28: ( ( ( (lv_trigger_0_0= ruleReactionTrigger ) ) (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) ) (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )? ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1366:1: ( ( (lv_trigger_0_0= ruleReactionTrigger ) ) (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) ) (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )? )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1366:1: ( ( (lv_trigger_0_0= ruleReactionTrigger ) ) (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) ) (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )? )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1366:2: ( (lv_trigger_0_0= ruleReactionTrigger ) ) (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) ) (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )?\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1366:2: ( (lv_trigger_0_0= ruleReactionTrigger ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1367:1: (lv_trigger_0_0= ruleReactionTrigger )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1367:1: (lv_trigger_0_0= ruleReactionTrigger )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1368:3: lv_trigger_0_0= ruleReactionTrigger\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getLocalReactionAccess().getTriggerReactionTriggerParserRuleCall_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionTrigger_in_ruleLocalReaction2990);\r\n lv_trigger_0_0=ruleReactionTrigger();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getLocalReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"trigger\",\r\n \t\tlv_trigger_0_0, \r\n \t\t\"ReactionTrigger\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1384:2: (otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1384:4: otherlv_1= '/' ( (lv_effect_2_0= ruleReactionEffect ) )\r\n {\r\n otherlv_1=(Token)match(input,33,FOLLOW_33_in_ruleLocalReaction3003); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_1, grammarAccess.getLocalReactionAccess().getSolidusKeyword_1_0());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1388:1: ( (lv_effect_2_0= ruleReactionEffect ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1389:1: (lv_effect_2_0= ruleReactionEffect )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1389:1: (lv_effect_2_0= ruleReactionEffect )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1390:3: lv_effect_2_0= ruleReactionEffect\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getLocalReactionAccess().getEffectReactionEffectParserRuleCall_1_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionEffect_in_ruleLocalReaction3024);\r\n lv_effect_2_0=ruleReactionEffect();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getLocalReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"effect\",\r\n \t\tlv_effect_2_0, \r\n \t\t\"ReactionEffect\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1406:3: (otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) ) )?\r\n int alt23=2;\r\n int LA23_0 = input.LA(1);\r\n\r\n if ( (LA23_0==34) ) {\r\n alt23=1;\r\n }\r\n switch (alt23) {\r\n case 1 :\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1406:5: otherlv_3= '#' ( (lv_properties_4_0= ruleReactionProperties ) )\r\n {\r\n otherlv_3=(Token)match(input,34,FOLLOW_34_in_ruleLocalReaction3038); if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \tnewLeafNode(otherlv_3, grammarAccess.getLocalReactionAccess().getNumberSignKeyword_2_0());\r\n \r\n }\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1410:1: ( (lv_properties_4_0= ruleReactionProperties ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1411:1: (lv_properties_4_0= ruleReactionProperties )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1411:1: (lv_properties_4_0= ruleReactionProperties )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:1412:3: lv_properties_4_0= ruleReactionProperties\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getLocalReactionAccess().getPropertiesReactionPropertiesParserRuleCall_2_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleReactionProperties_in_ruleLocalReaction3059);\r\n lv_properties_4_0=ruleReactionProperties();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getLocalReactionRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"properties\",\r\n \t\tlv_properties_4_0, \r\n \t\t\"ReactionProperties\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }",
"public boolean isHandRaised ( ) {\n\t\treturn extract ( handle -> handle.isHandRaised ( ) );\n\t}",
"protected boolean sendTo(int door, Message msg) {\n\t\tmsg.setMsgClock(this.getPulse());\n\t\treturn super.sendTo(door, msg);\n\t}",
"private void sendWinnerMessage(RaceTrackMessage playerDisconnectsMessage) {\n\t\tif(playerDisconnectsMessage != null)\n\t\t\ttry{\n\n\t\t\t\tint playerWhoWon = getPlayerWhoWonByPlayerID(((DisconnectMessage) playerDisconnectsMessage).getNextPlayerToMove()); \n\t\t\t\tint playerWhoWonID = getPlayerIDWhoWonByPlayerID(((DisconnectMessage) playerDisconnectsMessage).getNextPlayerToMove());\n\t\t\t\tif(playerWhoWon != -1){\n\t\t\t\t\tPoint2D lastVec = null;\n\t\t\t\t\tif(getPlayerMap().get(playerWhoWonID) != null)\n\t\t\t\t\t\tlastVec = getPlayerMap().get(playerWhoWonID).getCurrentPosition();\n\n\n\t\t\t\t\tPlayerWonMessage answer;\n\n\t\t\t\t\tanswer = VectorMessageServerHandler.generatePlayerWonMessage(playerWhoWon, playerWhoWon, lastVec);\n\n\t\t\t\t\tcloseGameByPlayerID(playerWhoWon);\n\n\t\t\t\t\tanswer.addClientID(playerWhoWonID);\n\n\t\t\t\t\tsendMessage(answer);\n\t\t\t\t\t\n\t\t\t\t\t//inform the AIs that game is over!!\n\n\t\t\t\t}\n\t\t\t}catch(ClassCastException e){\n\n\t\t\t}\n\t}",
"public T caseReaction(Reaction object) {\r\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void msgAtDoor() {\n\t\t\n\t}",
"@Override\n\tpublic void msgAtDoor() {\n\t\t\n\t}",
"public static void win()\n\t{\n\t\tGame.setMoney(Game.getMoney()+bet);\n\t\tremainingMoneyN.setText(String.valueOf(Game.getMoney()));\n\t\tbet=0;\n\t\ttfBet.setText(\"0\");\n\t\tif(Game.getMoney()>Game.getHighScore())\n\t\t{\n\t\t\tGame.setHighScore(Game.getMoney());\n\t\t\tlblHighScore.setText(String.valueOf(Game.getHighScore()));\n\t\t}\n\t\tlblUpdate.setText(\"You win!\");\n\n\t}",
"@Override\r\n\tpublic void doAction(MedcivGame game) {\n\t\ttry {\r\n\t\t\t((Livestock)game.matchingVillager(ownerId).getItemById(targetId)).setTendedToThisTurn(true);\r\n\t\t}catch(NullPointerException e) {\r\n\t\t\t//do nothing; the cow is dead, or you are\r\n\t\t}\r\n\t}",
"private void win() {\r\n Player winner = board.win();\r\n if (winner == null)\r\n return;\r\n\r\n int winner_number;\r\n Label winner_info;\r\n Label loser_info;\r\n if (winner.getId() == 'U') {\r\n winner_info = player1info;\r\n loser_info = player2info;\r\n winner_number = 1;\r\n }\r\n else {\r\n winner_info = player2info;\r\n loser_info = player1info;\r\n winner_number = 2;\r\n }\r\n\r\n winner_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n winner_info.setText(\"You Won!!\");\r\n loser_info.setFont(new Font(\"Segoe UI Semibold\", 20));\r\n loser_info.setText(\"You Lost :)\");\r\n\r\n for (int i = 0; i < 17; ++i)\r\n for (int j = 0; j < 17; j++) {\r\n String id = \"#cell\" + ((i < 10) ? \"0\" + i : i) + ((j < 10) ? \"0\" + j : j);\r\n AnchorPane cell = (AnchorPane) (play.getScene().lookup(id));\r\n // remove functionality\r\n cell.setOnMouseClicked(null);\r\n cell.setOnMouseEntered(null);\r\n cell.setOnMouseExited(null);\r\n if (!cup_is_on) {\r\n if (i == 6) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"try\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: mediumaquamarine\");\r\n Label label = new Label(\"again?\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n else if(i == 8) {\r\n if (j == 6) {\r\n cell.setStyle(\"-fx-background-color: limegreen\");\r\n Label label = new Label(\"YES\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try {\r\n gotoNewGame(new Player(board.getPlayer1().getName(), 'U', 10),\r\n new Player(board.getPlayer2().getName(), 'D', 10));\r\n } catch (IOException ioException) { ioException.printStackTrace(); }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n else if (j == 8) {\r\n cell.setStyle(\"-fx-background-color: red\");\r\n Label label = new Label(\"NO\");\r\n label.setTextFill(Color.BLACK);\r\n label.setFont(new Font(\"Arial Rounded MT Bold\", 12));\r\n label.setAlignment(Pos.CENTER);\r\n label.setPrefSize(40, 40);\r\n label.setOnMouseClicked(event -> {\r\n try { gotoGameModes(); } catch (IOException ioException) {\r\n ioException.printStackTrace();\r\n }\r\n });\r\n cell.getChildren().add(label);\r\n if (bead1.getLayoutX() == cell.getLayoutX() && bead1.getLayoutY() == cell.getLayoutY())\r\n bead1.setVisible(false);\r\n if (bead2.getLayoutX() == cell.getLayoutX() && bead2.getLayoutY() == cell.getLayoutY())\r\n bead2.setVisible(false);\r\n }\r\n }\r\n }\r\n }\r\n\r\n if (cup_is_on)\r\n cupOptimizer(winner_number);\r\n }",
"public static void chooseNeighbour() {\n clique.handler(ConnectReq.class, (i, req) -> {\n int randomIndex = new Random().nextInt(connections.size());\n connections.get(randomIndex).send(req);\n });\n }",
"public void advanceGame() {\n\t\tthis.status = Status.Active;\n\t\tthis.currentSuggestion = null;\n\t\tfor(User u : this.players) {\n\t\t\tu.availableActions.remove(ACTION.Wait);\n\t\t\tu.availableActions.remove(ACTION.Disprove);\n\t\t}\n\t\t\n\t\t// Next player can always move\n\t\tUser nextPlayer = null;\n\t\tdo {\n\t\t\tnextPlayer = getFollowingPlayer(this, this.getCurrentPlayer());\n\t\t\tif (nextPlayer.isActive) {\n\t\t\t\tnextPlayer.availableActions.add(ACTION.Move);\n\t\t\t\tif (this.board.getLocation(nextPlayer.character).isRoom) {\n\t\t\t\t\tnextPlayer.availableActions.add(ACTION.Accuse);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcurrentMove++;\n\t\t} while (!nextPlayer.isActive);\n\t\t\n\t\tif (activeUserCount(this) == 1) {\n\t\t\t// Last player remaining is the winner (by default)\n\t\t\tthis.status = Status.Complete;\n\t\t\tmessages.add(String.format(\"[ %s ] has won the game (by default)!\", nextPlayer.name));\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent evt) {\n if ( player == 0 ) { // Player O - blackstone\n if (jButton[j].getIcon().equals(B)) {\n jButton[j].setIcon(O); // value of current button read left to right and then top to bottom\n \n board[j/csize][j%csize] = 0;\n int win = 1;\n win = checkrow(board,j/csize,0);\n if ( win == 0 ) {\n win = checkcol(board,j%csize,0);\n }\n if ( win == 0 ) {\n win = checkdiag(board,0 , j/csize, j%csize);\n }\n player = 1; // switches player\n markers++;\n\n if ( win == 1 ) {\n exitAction(\"Blackstone wins!\\n\");\n }\n if ( markers == gsize ) { // if all blocks have been taken\n exitAction(\"Draw!\\n\");\n }\n } \n } else { // Player X - whitestone = 1\n if (jButton[j].getIcon().equals(B)) {\n jButton[j].setIcon(X);\n board[j/csize][j%csize] = 1;\n int win = 1;\n win = checkrow(board,j/csize,1);\n if ( win == 0 ) {\n win = checkcol(board,j%csize,1);\n }\n if ( win == 0 ) {\n win = checkdiag(board, 1, j/csize, j%csize );\n }\n player = 0;\n markers++;\n\n if ( win == 1 ) {\n exitAction(\"Whitestone wins!\\n\");\n }\n if ( markers == gsize ) {\n exitAction(\"Draw!\\n\");\n }\n } \n }\n }",
"public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data.gameState == 4) \r\n data.winner = 2;\r\n data.victoryFlag = true;\r\n data.gameState = 5;\r\n }",
"@Override\n\tpublic void landedOn() {\n\t\tMonopolyGameController.getInstance();\n\t\tMonopolyGameController.getCurrentPlayer().increaseMoney(300);\n\t\tLogger.getInstance().notifyAll(MonopolyGameController.getCurrentPlayer().getName()+ \" gained 300 dollars by landing on Bonus Square\");\n\t\tMonopolyGameController.allowCurrentPlayerToEndTurn();\n\n\t}",
"public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}",
"public void action() {\n for (int i = 0; i < myAgent.friends.size(); ++i) {\n SendRequestToFriend(myAgent.friends.get(i));\n }\n\n // Crée un filtre pour lire d'abord les messages des amis et des leaders des amis\n MessageTemplate temp = MessageTemplate.MatchReceiver(myfriends);\n MessageTemplate temp2 = MessageTemplate.MatchReceiver(friendsLeader);\n MessageTemplate tempFinal = MessageTemplate.or(temp, temp2);\n\n // Réception des messages\n ACLMessage messageFriendly = myAgent.receive(tempFinal);\n // si on n'est pas dans un groupe\n if (messageFriendly != null && !inGroup) {\n \t// s'il reçoit une proposition d'un amis/ leader d'un ami, il accepte, peu importe le poste et s econsidère dans le groupe\n if (messageFriendly.getPerformative() == ACLMessage.PROPOSE) {\n AcceptProposal(messageFriendly, Group.Role.valueOf(messageFriendly.getContent()));\n inGroup = true;\n }\n // s'il reçoit un CONFIRM, il enregistre le leader\n else if (messageFriendly.getPerformative() == ACLMessage.CONFIRM) {\n myLeader = messageFriendly.getSender();\n }\n // s'il reçoit un INFORM, il enregistre l'AID du leader de son ami afin de recevoir ses messages et lui demande son poste préféré\n else if (messageFriendly.getPerformative() == ACLMessage.INFORM) {\n AddFriendsLeaderToList(messageFriendly);\n AnswerByAskingPreferedJob(messageFriendly);\n }\n // sinon, il renvoie une erreur\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFriendly );\n }\n }\n // si on est dans un groupe\n else if (messageFriendly != null && inGroup) { \n \t// s'il reçoit une requete et qu'il est déjà dans un groupe, il renvoir l'AID de son leader à son ami\n if (messageFriendly.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFriendly);\n }\n // s'il reçoit un DISCONFIRM, il se remet en quete de job\n else if (messageFriendly.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFriendly);\n }\n else {\n \t// sinon, il refuse tout offre\n RefuseOffer(messageFriendly);\n }\n }\n else {\n \t// on check ensuite les messages des inconnus, une fois ceux des amis triés\n ACLMessage messageFromInconnu = myAgent.receive();\n \n // si on n'est pas dans un groupe\n if (messageFromInconnu != null && !inGroup) {\n \n boolean offerPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent().equals((\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\"));\n boolean offerNotPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent() != (\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\" );\n \n //on accepte l offre s'il s'agit de notre role préféré\n if (offerPreferedJob){\n AcceptProposal(messageFromInconnu, myAgent.preferedRole);\n }\n // on refuse s'il ne s'agit pas de notre offre favorite en redemandant notre job préféré\n else if (offerNotPreferedJob){\n RefuseOffer(messageFromInconnu);\n }\n // si on reçoit une confimation, on se considère dans un groupe et on enregistre notre leader\n else if (messageFromInconnu.getPerformative() == ACLMessage.CONFIRM){\n inGroup = true;\n myLeader = messageFromInconnu.getSender();\n }\n // sinon, il s'agit d'une erreure\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFromInconnu );\n }\n }\n // si on est dans un groupe\n else if (messageFromInconnu != null && inGroup) {\n \t// si on reçoit une requete, on renvoie à notre leader\n if (messageFromInconnu.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFromInconnu);\n }\n // si on reçoit un DISCONFIRM, on repart en quete de job\n else if (messageFromInconnu.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFromInconnu);\n }\n // sinon on refuse\n else {\n RefuseOffer(messageFromInconnu);\n }\n }\n // si le message est vide, on bloque le flux\n else {\n block();\n }\n }\n }",
"public boolean hasWon() {\n return isGoal(curBoard);\n }",
"@Override\n public MessageWrapper[] onMsgReceive(MSGGameVote msg, Player sender) {\n Lobby lobby = playerLobbyMap.get(sender);\n lobby.getGameSession().addVote(msg.isAccepted(), msg.getOrient());\n\n if (lobby.getGameSession().allVoted()) {\n // all players voted, move onto next player\n Player prevPlayer = lobby.getGameSession().getCurrentTurn();\n lobby.getGameSession().nextTurn(false);\n\n Message msgNextTurn = new MSGNewTurn(\n prevPlayer,\n lobby.getGameSession().getCurrentTurn(),\n lobby.getGameSession().getScores().get(prevPlayer),\n false);\n\n // if board is full, end the game\n if (lobby.getGameSession().isBoardFull()) {\n Message msgEndGame = new MSGGameStatus(MSGGameStatus.GameStatus.ENDED, null);\n\n // TODO: Better structure protocol\n // send additional message to end game\n return MessageWrapper.prepWraps(\n new MessageWrapper(msgNextTurn, lobby.getPlayers()),\n new MessageWrapper(msgEndGame, lobby.getPlayers()));\n } else {\n return MessageWrapper.prepWraps(\n new MessageWrapper(msgNextTurn, lobby.getPlayers()));\n }\n }\n\n return null;\n }",
"public void sendToCurrClient ( String message ){\n currClient.send( message );\n ServerConnection[] clients = new ServerConnection[]{client1, client2, client3};\n for(ServerConnection c: clients){\n if(c != currClient && c != null )\n if ( !message.contains(\"You won\") )\n c.send(\"Wait for \" + currClient.getName() + \" to end his turn\" );\n else c.send(\"You lost the match. \" + currClient.getName() + \" won the game.\");\n }\n }",
"public boolean oWins() {\n\t\tif (checkWinner(LETTER_O) == 1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"@Override\n public void interact(Object obj) {\n // TODO: Cave Code - Add additional Agility to the player while on this Tile\n }",
"@Test\r\n\tpublic void gameWinCheckCallsCorrectWinner() {\r\n\t\tBowl bowl = new Bowl();\r\n\t\tvar answer = bowl.gameWinCheck();\r\n\t\tassertEquals(-1,answer);\r\n\t\tbowl = setupGame(bowl);\r\n\t\tanswer = bowl.gameWinCheck();\r\n\t\tassertEquals(1,answer);\r\n\t\tbowl.getNeighbor(6).passTheft(49);\r\n\t\tanswer = bowl.getNeighbor(2).gameWinCheck();\r\n\t\tassertEquals(0,answer);\r\n\t}",
"public void announceWinner(){\n gameState = GameState.HASWINNER;\n notifyObservers();\n }",
"@Override\n public void play(SessionMessage message) {\n super.play(message);\n\n if (message.getMessageType().equals(CHOICE_NORMAL_ACTION)) {\n try {\n switch ((MessageType) message.getPayload()) {\n\n case ACTIVATE_PRODUCTION:\n turn.changeState(new ActivateProductionNormalActionTurnState(turn));\n turn.play(message);\n turn.notifyAllPlayers(\"The player \" + turn.getTurnPlayer().getNickname() + \" chose to activate their production\");\n break;\n\n case MARKET_RESOURCE:\n turn.changeState(new MarketResourceNormalActionTurnState(turn));\n turn.play(message);\n turn.notifyAllPlayers(\"The player \" + turn.getTurnPlayer().getNickname() + \" went to the market\");\n break;\n\n case BUY_CARD:\n turn.changeState(new BuyCardNormalActionTurnState(turn));\n turn.play(message);\n turn.notifyAllPlayers(\"The player \" + turn.getTurnPlayer().getNickname() + \" chose to buy a new development card\");\n break;\n }\n\n } catch (EmptyPayloadException ignored) {\n sendChoiceNormalActionMessage(turn);\n }\n\n } else {\n sendChoiceNormalActionMessage(turn);\n }\n\n }",
"private void promptTurn()\n \t{\n \t\tUserInfo curr;\n\t\tString meow;\n \t\tcurr = players[turnIndex];\n \t\tString[] tokens;\n \t\tint x;\n \t\tint y;\n \t\n// PROTOCOL \t\n \t\tcurr.sendMessage(prtcl.makePacket(\"Please enter a move\", \"message\")); \n\t\tmeow = curr.getMessage();\n\t\ttokens = meow.split(\" \");\n// PROTOCOL\n \t\tx = Integer.parseInt(tokens[0]);\n \t\ty = Integer.parseInt(tokens[1]);\n \t\n \t\t// Should have a method to process the user's input, and provide an error message back to them if necessary. \n \t\tif(game.remove(x, y))\n \t\t{\n \t\t\tplayers[(turnIndex + 1) % 2].sendMessage(prtcl.makePacket(\"Other player took \" + tokens[0] + \" items from row \" + tokens[1] + \".\", \"message\"));\n \t\t\tbroadcast(prtcl.makePacket(game.toString(), \"message\"));\n \t\t\t// This is where the check to see if the game is won occurs. If so, a winner (the person who just moved) is \n \t\t\t// congratulated. \n \t\t\tif(!game.isDone())\n \t\t\t{\n \t\t\t\tturnIndex += 1;\n \t\t\t\tturnIndex %= 2;\n \t\t\t}\n \t\t} else\n \t\t{\n // PROTOCOL\n \t\t\tplayers[turnIndex].sendMessage(prtcl.makePacket(\"Something was wrong with that. Try again.\", \"ERROR\"));\n // PROTOCOL\n \t\t}\t\n \t}",
"@Override\n\tpublic void win() {\n\t\t\n\t}",
"private void crossPressed() {\n\t\tif (!talkmode) {\n\t\t\tif (checkLoot() || checkNearbyVillagers() || checkDoors(doors, player.direction) || checkSigns()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else {\n\t\t\tif (question) {\n\t\t\t\texitQuestionDialog();\n\t\t\t}\n\n\t\t\tLoot g = dialog.getGift();\n\t\t\tif (g != null) {\n\t\t\t\tLoad.collectLoot(g);\n\t\t\t}\n\t\t\tString takeName = dialog.getTakeName();\n\t\t\tif (takeName != null) {\n\t\t\t\tint takeAmount = dialog.getTakeAmount();\n\t\t\t\tif (takeName.equals(\"gold\")) {\n\t\t\t\t\tLoad.getPartyItems().addGold(-takeAmount);\n\t\t\t\t} else {\n\t\t\t\t\tLoad.getPartyItems().take(takeName, takeAmount);\n\t\t\t\t}\n\t\t\t}\n\t\t\tHashMap<String, Integer> t = dialog.getBeforeTriggers();\n\t\t\tHashMap<String, Integer> triggerAdds = dialog.getTriggerAdds();\n\t\t\tboolean finished = dialog.isFinished();\n\t\t\tdoTriggers(t);\n\t\t\tif (triggerAdds != null) {\n\t\t\t\tDatabase.incrementStatus(triggerAdds);\n\t\t\t}\n\t\t\tif (finished) {\n\t\t\t\tsetTalking(false);\n\t\t\t\tif (dialog.shouldTrigger()) {\n\t\t\t\t\tt = dialog.getTriggers();\n\t\t\t\t\tdoTriggers(t);\n\t\t\t\t\texecuteTrigger(talkingVillager);\n\t\t\t\t} else {\n\t\t\t\t\tdialog.resetDialog();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (dialog.isQuestion()) {\n\t\t\t\t\tinitQuestionDialog();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void tryAct() {\n\n List<Player> onCardPlayers = new ArrayList<Player>();\n List<Player> offCardPlayers = new ArrayList<Player>();\n if (currentPlayer.isEmployed() == true) {\n if(!currentPlayer.getHasPlayed()){\n onCardPlayers = findPlayers(currentPlayer.getLocation().getOnCardRoles());\n offCardPlayers = findPlayers(currentPlayer.getLocation().getOffCardRoles());\n currentPlayer.act(onCardPlayers, offCardPlayers);\n refreshPlayerPanel();\n }\n else{\n view.showPopUp(currentPlayer.isComputer(), \"You've already moved, rehearsed or acted this turn. Try a different command or click `end turn` to end your turn.\");\n }\n }\n else {\n view.showPopUp(currentPlayer.isComputer(), \"You're not employed, so you need to take a role before you can act.\");\n }\n view.updateSidePanel(playerArray);\n }",
"public boolean didWin(){\n\t\tswitch(winCondition){\n\t\tcase \"catchEmAll\":\n\t\t\treturn caughtEmAll();\n\t\tdefault:\n\t\t\treturn caughtTwenty();\n\t\t}\n\t}",
"public void winTheGame(boolean userGuessed) {\n this.setGuessed(true); //updating the isGuessed to true\n //dispalying winning message and the name of the picked movie\n System.out.println(\"Congratulation .. You Win!:)\");\n System.out.println(\"You have Guessed '\" + this.replacedMovie + \"' Correctly.\");\n }",
"public void takeTurn(){\r\n //Handled by GameWindow buttons\r\n }",
"@Override\n public void opponentSurrender(int id) {\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyOpponentSurrender(id);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending opponent surrender error\");\n }\n }",
"public void wonBid(String bid) {\n sendMessage(Prefix.WONBID, bid);\n }",
"private void penguinStormReaction(){\n if(obstacle.getUserData().getAssetId().equals(OBSTACLE_CLOUD_ASSETS_ID)){\n if(penguin.isFrightStopped()){\n obstacle.setStormRaining(false);\n }else{\n obstacle.setStormRaining(true);\n }\n }\n }",
"@Override\n public void logic() throws PogamutException {\n /*\n * Step:\n * 1. find the bot and approach him (get near him ... distance < 200)\n * 2. greet him by saying \"Hello!\"\n * 3. upon receiving reply \"Hello, my friend!\"\n * 4. answer \"I'm not your friend.\"\n * 5. and fire a bit at CheckerBot (do not kill him, just a few bullets)\n * 6. then CheckerBot should tell you \"COOL!\"\n * 7. then CheckerBot respawns itself\n * 8. repeat 1-6 until CheckerBot replies with \"EXERCISE FINISHED\"\n */\n Location loc = new Location(0, 0, 0);\n weaponry.changeWeapon(UT2004ItemType.ASSAULT_RIFLE);\n switch (state) {\n case 0: // navigate to random point\n if (!navigation.isNavigating())\n navigation.navigate(this.navPoints.getRandomNavPoint());\n if (players.canSeePlayers()) {\n loc = players.getNearestVisiblePlayer().getLocation();\n navigation.navigate(loc);\n log.info(\"Bot see player on \" + loc.toString());\n }\n if (loc.getDistance(bot.getLocation()) < 190) {\n navigation.stopNavigation();\n log.info(\"Bot is close enough\");\n state = 1;\n }\n if (congrats_receive) {\n log.info(\"Received info about success\");\n state = 7;\n }\n break;\n case 1: // nearby player\n this.sayGlobal(\"Hello!\");\n resetTimeout();\n state = 2;\n break;\n case 2: //waiting for answer\n tickTimeout();\n if (received.equals(\"Hello, my friend!\")) {\n log.info(\"Answer received\");\n state = 3;\n }\n else if (receiveTimeout) {\n log.warning(\"Answer didn't received, repeating.\");\n navigation.navigate(navPoints.getRandomNavPoint());\n state = 0;\n }\n break;\n case 3: // say back\n this.sayGlobal(\"I'm not your friend.\");\n state = 4;\n break;\n case 4:\n if (players.getNearestVisiblePlayer() == null) {\n log.warning(\"Resetting because no player in view\");\n state = 0;\n } else {\n shoot.shoot(players.getNearestVisiblePlayer());\n log.info(\"Start shooting at the enemy\");\n resetTimeout();\n state = 5;\n }\n break;\n case 5:\n tickTimeout();\n if (damaged) {\n shoot.stopShooting();\n damaged = false;\n resetTimeout();\n log.info(\"Enemy damaged\");\n state = 6;\n } else if (receiveTimeout) {\n log.warning(\"Resetting because not damage to the enemy\");\n state = 0;\n }\n break;\n case 6:\n tickTimeout();\n if (cool_received){\n log.info(\"Success in the turn, repeating\");\n cool_received = false;\n resetTimeout();\n state = 0;\n }\n else if(receiveTimeout) {\n log.warning(\"No final answer, repeating\");\n state = 0;\n }\n break;\n case 7:\n sayGlobal(\"I solved the exercise.\");\n }\n }",
"public boolean hasWon() {\n return this.isWinner;\n }",
"private void suarez() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -10;\n\t\tint yInit = 8;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit*selfPerception.getSide().value());\n\t\twhile (commander.isActive()) {\n\t\t\t\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\t//state = State.FOLLOW;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\t}",
"public void winMessage() {\r\n\t\tSystem.out.print(\"\\n\\nCongratulations! You've won the game! :D\");\r\n\t\tSystem.exit(0);\r\n\t}",
"public boolean gameWon() {\n\t\tfor (int i = 0; i < gameBoard.length; i++) {\n\t\t for (int j = 0; j < gameBoard.length; j++) {\n\t\t \tif (gameBoard[i][j] == 'M' || gameBoard[i][j] == 'I') {\n\t\t \t\treturn false;\n\t\t \t}\n\t\t }\n\t\t}\n\t\treturn true;\n\t}",
"public void updateReactionsDungeonRow() {\r\n\t\t((TextChannel) gameChannel).clearReactionsById(dungeonRowID).queue();\r\n\t\tgameChannel.addReactionById(dungeonRowID, GlobalVars.emojis.get(\"mag\")).queue();\r\n\t\tgameChannel.addReactionById(dungeonRowID, GlobalVars.emojis.get(\"link\")).queue();\r\n\t\t// Later, only add the ones they can afford/select based on restrictions\r\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tgameChannel.addReactionById(dungeonRowID, Utils.numToNumEmoji[i]).queue();\r\n\t\t}\r\n\t}",
"@Override\n \tprotected void trigger(TriggerMessage message) {\n \t\tthis.getDataObjectService().saveObject(this.getUniqueProcessId(), message.getProcessInstanceId(), message.getPayload());\n \t\t\n \t\teventDefinition.trigger(message);\n \t\t\n \t\tthis.getNodeInstanceMediatorService().setNodeInstanceEndTime(message.getProcessInstanceId(), new Date());\n \t\t\n\t\tthis.getNodeInstanceMediatorService().setState(\n\t\t\t\tmessage.getProcessInstanceId(),\n\t\t\t\tNodeInstaceStates.PASSED_STATE);\n\t\t\n \t\tthis.getNodeInstanceMediatorService().persistChanges();\n \t\t\n \t\tthis.sendMessageToNodeActor(message, this.getActivatingGatewayNode());\n \t}",
"public boolean won()\n {\n if (currentScore >= PigGame.GOAL)\n {\n return true;\n }\n \n else\n {\n return false;\n }\n }",
"private void onClickHandler(MouseEvent e) {\n Circle source = (Circle) e.getSource();\n int selectColumnIndex = GridPane.getColumnIndex(source);\n // Display the move of Player on the Grid, and registered that move to the Game logic\n checkCircle(selectColumnIndex);\n client.getHumanPlayer().play((byte) selectColumnIndex);\n // Check if player's move is a winning move. 1 mean player\n if (client.getHumanPlayer().getGame().playerHasWon((byte) 1)) {\n playerWinCounter++;\n playerCounter.setText((Integer.toString(playerWinCounter)));\n winDisplay.setText(\"YOU WON THE MATCH.\\nClick Reset to replay, , or Quit to Close the Game\\n\");\n // Disable the Grid so user Cannot continue after they won\n grid.setDisable(true);\n // Exit the method\n return;\n } // --------------------- \\\\\n // If the last move from Player is NOT a winning move, send the Player's move to server \n else {\n // Disable the Grid so user cannot make move while waiting for AI to respond\n grid.setDisable(true);\n try {\n serverPackage = client.sendAndReceive(client.getSocket(), client.getPackage(), 1, selectColumnIndex);\n } catch (IOException error) {\n System.out.println(\"There is an error while trying to send the Client move to server: \" + error + \"\\n\");\n }\n }\n\n // Get the move from the server\n int serverMove = client.checkPackage(serverPackage);\n // Display the move of AI on the Grid, and registered that move to the Game logic\n checkCircle(serverMove);\n client.getGame().getBoard().insertToken((byte) serverMove, (byte) 2);\n // Check if AI's move is a winning move. 2 mean AI\n if (client.getHumanPlayer().getGame().playerHasWon((byte) 2)) {\n AIwinCounter++;\n aiCounter.setText(Integer.toString(AIwinCounter));\n winDisplay.setText(\"COMPUTER WON THE MATCH.\\nClick Reset to replay, or Quit to Close the Game\");\n grid.setDisable(true);\n // Exit the method\n return;\n }\n\n // If 42 moves have been made, and noone win, then it's a draw\n if (client.getGame().isDraw()) {\n winDisplay.setText(\"IT IS A DRAW.\\nClick Reset to replay, or Quit to Close the Game\");\n grid.setDisable(true);\n // Exit the method\n return;\n }\n // Enable the Grid again so User can Play\n grid.setDisable(false);\n }",
"@Override\n public void sendMessage(String message) {\n if(\"YOURMOVE\".equals(message)) {\n makeMove();\n }\n }",
"public boolean send() {\n\t\tif (!isValid())\n\t\t\treturn false;\n\t\tif (ActionBar.sendKey(getSlot()))\n\t\t\treturn true;\n\t\tWidgetChild main = SlotData.getMainChild(getSlot());\n\t\treturn WidgetUtil.visible(main) && EntityUtil.interact(false, main);\n\t}",
"public void tryMove() {\n if(!currentPlayer.getHasPlayed()){\n if (!currentPlayer.isEmployed()) {\n String destStr = chooseNeighbor();\n\n currentPlayer.moveTo(destStr, getBoardSet(destStr));\n if(currentPlayer.getLocation().getFlipStage() == 0){\n currentPlayer.getLocation().flipSet();\n }\n refreshPlayerPanel();\n }\n else {\n view.showPopUp(currentPlayer.isComputer(), \"Since you are employed in a role, you cannot move but you can act or rehearse if you have not already\");\n }\n }\n else{ \n view.showPopUp(currentPlayer.isComputer(), \"You've already moved, rehearsed or acted this turn. Try a different command or click `end turn` to end turn your turn.\");\n }\n view.updateSidePanel(playerArray);\n }",
"@Override\n\t\t\tpublic void handle(MouseEvent e){\n\t\t\t\tAlert confirmation = new Alert(AlertType.CONFIRMATION);\n\t\t\t\tconfirmation.setTitle(\"Start game?\");\n\t\t\t\tconfirmation.setHeaderText(\"Do you wish to start the game on \" + difficultyChoices.getValue() + \" difficulty?\");\n\n\t\t\t\t//The Alert window has two buttons, an OK button and a cancel button. This variable is\n\t\t\t\t//created to store which button was clicked on by the player.\n\t\t\t\tOptional<ButtonType> result = confirmation.showAndWait();\n\t\t\t\t\n\t\t\t\t//If the player clicked on the OK button, this if statement is used.\n\t\t\t\tif(result.get() == ButtonType.OK) {\n\n\t\t\t\t\t//A switch statement checks the choice selected from the drop down menu\n\t\t\t\t\tswitch(difficultyChoices.getValue()) {\n\t\t\t\t\t//Depending on which difficulty was chosen, the difficultyGuesses int variable is\n\t\t\t\t\t//set to the maximum amount of guesses that the player is allowed, and debug messages\n\t\t\t\t\t//are displayed on the console. If the player was somehow able to reach this point\n\t\t\t\t\t//without selecting one of the options, the program closes, to prevent any issues later.\n\t\t\t\t\tcase \"Easy\" : difficultyGuesses = 7;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Easy mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Medium\" : difficultyGuesses = 5;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Medium mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Hard\" : difficultyGuesses = 3;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Hard mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault \t : System.out.println(\"For some reason, we didn't get a difficulty setting.\");\n\t\t\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Using the PrintWriter, a message is sent to the server. StartUpGame acts like a \n\t\t\t\t\t//keyword so that the server can access the right area of the code to use the \n\t\t\t\t\t//second parameter correctly.\n\t\t\t\t\tout.println(\"StartUpGame \" + difficultyGuesses);\n\t\t\t\t\t\n\t\t\t\t\t//A boolean is created and set to false. It is used as a crude way of waiting for a\n\t\t\t\t\t//response from the server. The while loop afterwards continues for as long as the\n\t\t\t\t\t//boolean remains false. When the correct message is received from the server, it\n\t\t\t\t\t//will set the boolean to true, which will end the while loop and continue with the\n\t\t\t\t\t//code afterwards. \n\t\t\t\t\tboolean connectionCheck = false;\n\t\t\t\t\twhile(!connectionCheck) {\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconnectionCheck = Boolean.parseBoolean(in.readLine());\n\t\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t\t\t//If nothing is received, do nothing. The loop will continue as the boolean\n\t\t\t\t\t\t\t//remains false. May need to be refined in some way to determine whether no\n\t\t\t\t\t\t\t//message was received because the server's message hasn't arrived yet, or\n\t\t\t\t\t\t\t//because the connection has been completely lost and act accordingly.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//The Alert window can now be closed\n\t\t\t\t\tconfirmation.close();\n\t\t\t\t\t\n\t\t\t\t\t//Call the game method, passing over the stage so that it can be redesigned\n\t\t\t\t\tgame(stage);\n\t\t\t\t}\n\t\t\t}",
"void gameWon(Piece piece);",
"private void gameWon() {\n\n stopTime();\n //reveal all mines and mark them\n for (int i = 0; i < minefield.getRows(); i++) {\n for (int j = 0; j < minefield.getCols(); j++) {\n if (minefield.getMinefield()[i][j].isMined()) {\n tileLabel[i][j].setIcon(flagIcon);\n tile[i][j].setBackground(Color.green);\n }\n }\n }\n\n JFrame winframe = new JFrame(\"Winner!\");\n JPanel winpanel = new JPanel();\n JLabel label = new JLabel(\"Well done, you beat the game!\");\n JLabel label2 = new JLabel(\" Time taken: \" + time + \" \");\n JButton close = new JButton(\"Close\");\n JButton restart = new JButton(\"Restart\");\n\n close.addActionListener((ActionEvent e) -> {\n winframe.dispose();\n });\n\n restart.addActionListener((ActionEvent e) -> {\n frame.dispose();\n winframe.dispose();\n createNewGame(minefield.getRows(), minefield.getCols(), minefield.getMaxMines());\n });\n\n winpanel.add(label);\n winpanel.add(label2);\n winpanel.add(close);\n winpanel.add(restart);\n winframe.add(winpanel);\n winframe.setLocationRelativeTo(null);\n winframe.setSize(220, 110);\n winframe.setResizable(false);\n winframe.setVisible(true);\n }",
"public static void decidedWinner(){\n if(playerOneWon == true ){\n//\n// win.Fill(\"Player One Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else if (playerTwoWon == true){\n// win.Fill(\"Player Two Has Won !\");\n// new WinnerWindow().setVisible(true);\n }\n else\n {\n// win.Fill(\"Match Has been Tied !\");\n// new WinnerWindow().setVisible(true);\n }\n }",
"private void announceWinner() {\n // FIXME\n if (_board.turn() == Piece.WP) {\n System.out.println(\"Black wins.\");\n } else {\n System.out.println(\"White wins.\");\n }\n }",
"public boolean handleExecute(Action action) {\n ActorState a = action.getActor();\n if (a.getActor() == actor) {\n // Always succeed on self\n return true;\n }\n \n //maybeCounter(Augmentation.Type.EXECUTE, a, combatants);\n double chance = a.getWillpower() * (1.0 - getResistance());\n boolean success = Math.random() < chance;\n return success;\n }",
"@Override\n\tprotected void activateBoard() {\n\t\tsuper.activateBoard();\n\t\taddMsg(\"Click on an origin cell\\n\");\n\t}",
"@Override\n\tprotected void activateBoard() {\n\t\tsuper.activateBoard();\n\t\taddMsg(\"Click on an origin cell\\n\");\n\t}",
"public final void ruleReaction() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:242:2: ( ( ( rule__Reaction__Group__0 ) ) )\r\n // InternalDroneScript.g:243:2: ( ( rule__Reaction__Group__0 ) )\r\n {\r\n // InternalDroneScript.g:243:2: ( ( rule__Reaction__Group__0 ) )\r\n // InternalDroneScript.g:244:3: ( rule__Reaction__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getReactionAccess().getGroup()); \r\n }\r\n // InternalDroneScript.g:245:3: ( rule__Reaction__Group__0 )\r\n // InternalDroneScript.g:245:4: rule__Reaction__Group__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__Reaction__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getReactionAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final boolean checkForWin() {\r\n boolean result = false;\r\n String player = \"\";\r\n \r\n for (Rail rail : rails) {\r\n if (rail.isWinner()) {\r\n result = true;\r\n for(Tile tile : rail.getTiles()) {\r\n tile.setBackground(Color.GREEN);\r\n player = tile.getText();\r\n }\r\n if (player.equals(\"X\")) {\r\n winningPlayer = \"X\";\r\n this.xWins++;\r\n } else if (player.equals(\"0\")) {\r\n winningPlayer = \"0\";\r\n this.oWins++;\r\n }\r\n break;\r\n }\r\n }\r\n \r\n return result;\r\n }",
"private void gameWonDialog() {\n // stack overflow\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle((game.isPlayer_turn()) ? R.string.player_win_title : R.string.bank_win_title);\n builder.setMessage((game.isPlayer_turn()) ? R.string.player_win_message : R.string.bank_win_message);\n\n // Set up the buttons\n builder.setPositiveButton(R.string.play_again, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n resetGame();\n }\n });\n builder.setNegativeButton(R.string.return_to_home, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n returnToMain();\n }\n });\n //builder.show();\n\n AlertDialog alert = builder.create();\n alert.show();\n Button nbutton = alert.getButton(DialogInterface.BUTTON_NEGATIVE);\n nbutton.setBackgroundColor(getResources().getColor(R.color.bank_red));\n Button pbutton = alert.getButton(DialogInterface.BUTTON_POSITIVE);\n pbutton.setBackgroundColor(getResources().getColor(R.color.yale_blue));\n }"
] | [
"0.58592826",
"0.5639338",
"0.5446133",
"0.5437107",
"0.5383866",
"0.53534544",
"0.5299314",
"0.51925975",
"0.51876336",
"0.51869667",
"0.5180659",
"0.5180352",
"0.5146136",
"0.5106281",
"0.5077418",
"0.5057171",
"0.5055834",
"0.5050418",
"0.5041995",
"0.5022583",
"0.5010417",
"0.50081277",
"0.49670294",
"0.49637356",
"0.49579632",
"0.49499232",
"0.4949338",
"0.49475992",
"0.49242678",
"0.49132207",
"0.49125338",
"0.49053574",
"0.48963913",
"0.48838058",
"0.48569742",
"0.4846066",
"0.48453856",
"0.48435158",
"0.4841864",
"0.48320892",
"0.48267508",
"0.4825309",
"0.4815297",
"0.48147777",
"0.48133",
"0.48071423",
"0.47977728",
"0.47968954",
"0.47968954",
"0.4795564",
"0.4779665",
"0.47713464",
"0.47619963",
"0.47524345",
"0.47490862",
"0.47490215",
"0.47464558",
"0.47439587",
"0.47418207",
"0.47404546",
"0.47315428",
"0.4725712",
"0.4722071",
"0.47219527",
"0.4719688",
"0.4718092",
"0.4714937",
"0.47080463",
"0.47058445",
"0.47053525",
"0.46899325",
"0.46896976",
"0.46830723",
"0.467038",
"0.46563366",
"0.46547028",
"0.46511295",
"0.46490598",
"0.46465275",
"0.46423873",
"0.46415797",
"0.46393272",
"0.46342298",
"0.4632506",
"0.4631837",
"0.46316344",
"0.46308005",
"0.46287715",
"0.46250683",
"0.46248677",
"0.4624549",
"0.4623722",
"0.46196234",
"0.46161494",
"0.4614457",
"0.4612745",
"0.4612745",
"0.46081102",
"0.46066487",
"0.46004522"
] | 0.68803066 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
String cadena1 = " She sells sea shells on the sea shore ";
System.out.println("Cadena: " + cadena1);
//String cadena2 = "";
cadena1 = cadena1.substring(1,10);
System.out.println("Cadena recortada: " + cadena1);
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
Constructor. Creates a new lobby controller with a lobby manager, that helps the controller in handling the interactions of the clients with the model | public LobbyController(LobbyManager lobbyManager) throws RemoteException {
super();
this.lobbyManager = lobbyManager;
this.lobbyNetworkManager = lobbyManager.getLobbyNetworkManager();
networkGetItem = new ServerGetMessage();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"GameController makeGameController(LobbyController lobbyController);",
"public LobbyScreen(GuiRenderer guiRenderer) {\n this.guiRenderer = guiRenderer;\n lobby = new Lobby();\n }",
"public ClientController() {\n }",
"public void setLobby(Lobby lobby)\r\n\t{\r\n\t\treceiver.setLobby(lobby);\t\r\n\t}",
"private ClientController(){\n\n }",
"public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }",
"public void setLobby(Lobby l){\r\n\t\tthis.lobby = l;\r\n\t}",
"public interface GameControllerFactory {\n\n /**\n * Creates a new game controller that will be hosted by the given lobby controller.\n */\n GameController makeGameController(LobbyController lobbyController);\n\n}",
"private ClientController() {\n }",
"public ModelManager() throws InterruptedException {\r\n this.property = new PropertyChangeSupport(this);\r\n this.username = \"\";\r\n this.password = \"\";\r\n this.gameListClientModel = new GameListClient(this);\r\n }",
"public GameServerClient(){\r\n\t\tinitComponents();\r\n\t\t}",
"public interface View {\n /**\n * Prints that Client lost the connection to Server and quits the application\n */\n void serverLostConnection();\n\n /**\n * Asks User for Server's IP address and Port\n */\n void askServerInfo();\n\n /**\n * Asks User for setting up a Username\n */\n void askUsername();\n\n /**\n * Asks user for Game modality: single player, create a multi player lobby or join to a lobby\n */\n void askMenu();\n\n /**Prints to the lobby members that a Player joined it\n * @param username the new Joiner's username\n */\n void notifyPlayerJoined(String username);\n\n /**\n * runs the waitStartGameString() method\n */\n void askStartGame();\n\n /**\n * Wait for Lobby Owner digit \"START\"/\"start\" and then calls LightController method to start the MultiPlayer Game\n */\n void waitStartGameString();\n\n /**\n * Notifies the Lobby Owner that Server successfully created the Lobby\n */\n void showCreatorWaitingRoom();\n\n /**Notifies the User that successfully joined to the Lobby and prints the list of members\n * @param usernames the Lobby Member's username ArrayList\n */\n void showWaitingRoom(ArrayList<String> usernames);\n\n /**\n * Shows to disconnected User that LightController is trying to reconnect to Server\n */\n void showReconnectionToGame();\n\n /**\n * Shows to User to wait it's turn in a Multi Player Game session\n */\n void waitingForMyTurn();\n\n /**Prints the available Lobby list in Server with their relatives ID\n * @param lobbies a Lobby ArrayList\n */\n void askLobbyID(ArrayList<Lobby> lobbies);\n\n /**Notifies to all others Users that a Player is disconnected\n * @param username the disconnected Player's username\n */\n void notifyPlayerDisconnected(String username);\n\n /**Notifies to all others Users that a Player is reconnected\n * @param username the reconnected Player's username\n */\n void notifyPlayerReconnected(String username);\n\n /**Notifies to all others Users that the Lobby Creator is disconnected\n */\n void notifyCreatorDisconnected();\n\n /**Asks to User to choose 2 of 4 LightLeaderCard received by LightController\n * and eventually 0 to 2 LightResources\n * @param quartet the 4-length LightLeaderCards ArrayList\n * @param numResources the number of Resources user has to choose\n * @param faithPoints true if User's Player has earned a FaithPoint\n */\n void askStartItems(ArrayList<LightLeaderCard> quartet, int numResources, boolean faithPoints);\n\n /**Asks User to do an action in the turn\n */\n void askTurn();\n\n /**\n * Prints the menu to calls LightController method to ask for a LeaderCard activation\n */\n void askLeaderCardActivation();\n\n /**\n * Prints the menu to calls LightController method to ask for a LeaderCard threw\n */\n void askLeaderCardThrowing();\n\n /**\n * Prints the menu to calls LightController method to ask for a Resources purchase at the Market\n */\n void askBuyResources();\n\n /**\n * Prints the menu to calls LightController method to ask for a DevelopmentCard purchase at the Market\n */\n void askBuyDevCards();\n\n /**\n * Prints the menu to calls LightController method to ask for a DevelopmentCard production\n */\n void askDevCardProduction();\n\n /**\n * Prints the menu to calls LightController method to ask for a DevelopmentBoard production\n */\n void askDefaultProduction();\n\n /**\n * Calls the LightController method to end the turn\n */\n void askEndTurn();\n\n /**Notifies the User of the Resources list purchased from the Market that were not added to Warehouse\n * @param threwResources a LightResource ArrayList\n */\n void showThrewResources(ArrayList<LightResource> threwResources);\n\n /**Shows an error message\n * @param message a String containing the message\n */\n void showError(String message);\n\n /**Shows a success message\n * @param message a String containing the message\n */\n void showSuccess(String message);\n\n /**Shows the Multi Player Game session winner, the final rank and quits the application\n * @param winner the winner Player's username\n * @param rank a String containing the final rank\n */\n void showRanking(String winner, String rank);\n\n /**Shows the final message in Single Player session and quit the application\n * @param message a String containing if the User won against Lorenzo or not\n */\n void endSinglePlayerGame(String message);\n\n /**\n * Quits the application\n */\n void endGame();\n\n /**Shows others Player action relatives to turn starting and turn ending\n * @param message a String containing\n */\n void showOthersActions(String message);\n\n /**Shows the Lorenzo actions in the Single player Game session\n * @param lollo the LightLorenzo instance containing all the actions it did in its turn\n */\n void showLorenzoActions(LightLorenzo lollo);\n\n /**Shows the new Player's CardSlots to all Users\n * @param username the LightPlayer's username\n * @param cardSlots the LightPlayer's new LightCardSlots\n */\n void updateCardSlots(String username, LightCardSlots cardSlots);\n\n /**Shows the new Player's WarehouseDepot to all Users\n * @param username the LightPlayer's username\n * @param warehouseDepot the LightPlayer's new LightWarehouseDepot\n */\n void updateWarehouseDepot(String username, LightWarehouseDepot warehouseDepot);\n\n /**Shows the new Player's Strongbox to all Users\n * @param username the LightPlayer's username\n * @param strongbox the LightPlayer's new LightStrongbox\n */\n void updateStrongbox(String username, LightStrongbox strongbox);\n\n /**Shows the new Player's FaithTrack to all Users\n * @param username the LightPlayer's username\n * @param faithTrack the LightPlayer's new LightFaithTrack\n */\n void updateFaithTrack(String username, LightFaithTrack faithTrack);\n\n /**Shows the new Player's LeaderSlot to all Users\n * @param username the LightPlayer's username\n * @param leaderSlot the LightPlayer's new LightLeaderCards\n */\n void updateLeaderSlot(String username, ArrayList<LightLeaderCard> leaderSlot);\n\n /**Shows the new LightDevelopmentBoard\n * @param board a LightDevelopmentBoard instance\n */\n void updateDevBoard(LightDevelopmentBoard board);\n\n /**Shows the new LightMarketBoard\n * @param market a LightMarket instance\n */\n void updateMarketBoard(LightMarketBoard market);\n}",
"public void newLobby(ClientHandler firstClient, String nickname, int number) {\n clientToNames.put(firstClient, nickname);\n namesToClient.put(nickname, firstClient);\n nicknames.add(nickname);\n firstClient.setNickname(nickname);\n view.setNamesToClient(nickname, firstClient, false);\n\n firstClient.registerObserver(this);\n view.registerObserver(this);\n\n System.out.println(nickname + \" has joined the lobby number \" + lobbyID);\n\n playersNumber = number;\n\n System.out.println(\"The lobby number \"+ lobbyID +\" will contain \" + playersNumber + \" players\");\n\n view.waitingRoom(firstClient);\n\n firstClient.send(new InitialSetup());\n }",
"public CommunicationManager(ArduinoClientModel arduinoClientModel) {\n\t\tsuper();\n\t\tthis.arduinoClientModel = arduinoClientModel;\n\t\tloadCommunications();\n\t}",
"public DomeinController() {\r\n DAOFactory.initFactory();\r\n gebruikerRepository = new GebruikerRepository();\r\n presentatieRepository = new PresentatieRepository();\r\n inschrijvingRepository = new InschrijvingRepository();\r\n campusRepository = new CampusRepository();\r\n lokaalRepository = new LokaalRepository();\r\n gastRepository = new GastRepository();\r\n bpCoordinator = gebruikerRepository.getBpCoordinator();\r\n }",
"public NewClientController() {\n this.clientParser = NewClientView.getClientParser();\n }",
"public HotelworkerInfouiController() {\n\t\tuserbl = new UserController();\n\t}",
"public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}",
"public Server() {\n initComponents();\n listModel = new DefaultListModel<>();\n listModel2 = new DefaultListModel<>();\n \n }",
"public Lobby() {\r\n\t\tobservers = new ArrayList<Observer>(); // Initialize the list of observers ( empty at the begining)\r\n\t}",
"public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}",
"private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }",
"public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }",
"public LobbyDialog(String ownerName) {\n\t\tthis.ownerName = ownerName;\n\n\t\tGameServer server = new GameServer(this);\n\t\tThread serverThread = new Thread(server);\n\t\tserverThread.start();\n\n\t\tJButton backBtn = new JButton(\"Zurück\");\n\t\tJButton startBtn = new JButton(\"Start\");\n\n\t\tJTextField player1Txt = new JTextField(ownerName);\n\t\tplayer2Txt = new JTextField(\"Warte auf Spieler 2\");\n\n\t\tJPanel btnPanel = new JPanel();\n\n\t\tBox playerBox = Box.createVerticalBox();\n\n\t\tplayer1Txt.setEditable(false);\n\t\tplayer2Txt.setEditable(false);\n\n\t\tplayerBox.add(player1Txt);\n\t\tplayerBox.add(player2Txt);\n\n\t\tbtnPanel.add(backBtn, BorderLayout.WEST);\n\t\tbtnPanel.add(startBtn, BorderLayout.EAST);\n\n\t\tadd(playerBox, BorderLayout.CENTER);\n\t\tadd(btnPanel, BorderLayout.SOUTH);\n\n\t\tsetSize(250, 200);\n\t\tsetLocationRelativeTo(null);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(DISPOSE_ON_CLOSE);\n\t\tsetResizable(false);\n\t\tsetTitle(\"Lobby\");\n\n\t\t// Spiel wird gestartet\n\t\tstartBtn.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdispose();\n\t\t\t\tstartGame = true;\n\t\t\t\tnew Game(1, server.getSocket().getInetAddress(), 4447, ownerName, clientName);\n\t\t\t}\n\t\t});\n\n\t\t// Schließt den Dialog und führt zum GameSetup zurück\n\t\tbackBtn.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\n\t}",
"public ObstacleController(ObstacleModel model){\n this.model = model;\n }",
"public NetworkClientController() {\r\n\t\trmiClient = new RMIClient();\r\n\t\trmiClient.addObserver(this);\r\n\t}",
"@FXML\n private void CreateLobbySubmit(ActionEvent actionEvent) {\n FireStoreController fireStoreController = (FireStoreController) ControllerRegistry.get(FireStoreController.class);\n generateToken();\n\n //while(true){\n try {\n if (!fireStoreController.checkExistence(token)) {}//break;\n } catch (ExecutionException | InterruptedException e) {\n e.printStackTrace();\n }\n generateToken();\n //}\n\n PlayerController playerController = (PlayerController) ControllerRegistry.get(PlayerController.class);\n name = CreateLobbyViewNameTextField.getText();\n try {\n playerController.setPlayer(name);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n fireStoreController.createLobby(token);\n\n\n //Open the lobby view\n goToLobby(actionEvent);\n }",
"public WorkerController(){\r\n\t}",
"public void connectLobbyServer()\n {\n try {\n LobbyServerConnection.getInstance().connect();\n\n lobbymanager = LobbyServerConnection.getInstance().getLobbyManager();\n\n //verkrijgt alle lobbys\n List<Lobby> lobbyList = LobbyServerConnection.getInstance().getAllLobbys();\n LobbyManager.getInstance().addLobbys(lobbyList);\n update();\n subscribeTry();\n }\n catch (Exception e)\n {\n\n btnCreateLobby.setDisable(true);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Lobby server\");\n\n // Header Text: null\n alert.setHeaderText(\"connection error\");\n alert.setContentText(\"Couldn't connect to the lobbyserver. \\nGames cannot be played right now but you can still check your history\");\n\n alert.showAndWait();\n }\n }",
"public MyModel() {\n mazeGeneratingServer = new Server(5400, 1000, new ServerStrategyGenerateMaze());\n solveSearchProblemServer = new Server(5401, 1000, new ServerStrategySolveSearchProblem());\n //Raise the servers\n }",
"public Lobby(long triviaSetId, String name, int code, List<User> connectedUsers, User lobbyOwner) {\n this.triviaSetId = triviaSetId;\n this.name = name;\n this.code = code;\n this.connectedUsers = connectedUsers;\n this.lobbyOwner = lobbyOwner;\n this.lobbyUpdates = new TreeMap<Integer, LobbyUpdateBase>();\n }",
"public AbaloneClient() {\n server = new AbaloneServer();\n clientTUI = new AbaloneClientTUI();\n }",
"public int getLobbyID() {\r\n return lobbyID;\r\n }",
"public ModuloAgenteBR() {\n initComponents();\n }",
"public ClientView(final Mode mode) throws ServiceUnavailableException, RemoteException, NotBoundException, BookingServiceException {\n\n\t\t// Set properties\n\t\tthis.setTitle(\"URLyBird\");\n\t\tthis.setSize(JFRAME_WIDTH, JFRAME_HEIGHT);\n\t\tthis.setBackground(Color.GRAY);\n\t\tthis.setResizable(false);\n\t\t\n\t\t// Initialize all components\n\t\tmainPanel = new JPanel();\n\t\tcontroller = new ClientController(mode);\n\t\t\n\t\ttopPanel = new JPanel();\n\t\tbottomPanel = new JPanel();\n\t\ttablePanel = new JPanel();\n\t\tbuttonPanel = new JPanel();\n\t\tsearchButtonPanel = new JPanel();\n\t\t\n\t\tnameSearchBar = new JTextField();\n\t\tlocationSearchBar = new JTextField();\n\t\t\n\t\tnameSearchLabel = new JLabel(\"Name\");\n\t\tlocationSearchLabel = new JLabel(\"Location\");\n\t\twhitespaceLabel = new JLabel();\n\n\t\twhitespaceLabel.setVisible(false);\n\n\t\ttableModel = controller.getAllEntries();\n\t\t\n\t\ttable = initTable(tableModel);\n\t\ttable.setBorder(new EmptyBorder(new Insets(5, 5, 5, 5)));\n\t\ttable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\ttable.getTableHeader().setReorderingAllowed(false);\n\t\ttable.getTableHeader().setResizingAllowed(false);\n\n\t\tscrollPane = new JScrollPane(table,\n\t\t\t\tScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n\t\t\t\tScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n\n\t\tbookButton = createBookButton();\n\t\tunBookButton = createUnBookButton();\n\t\tsearchButton = createSearchButton();\n\n\t\tsearchButtonPanel.setLayout(new BorderLayout());\n\t\tsearchButtonPanel.add(searchButton, BorderLayout.WEST);\n\n\t\tmainPanel.setLayout(new BorderLayout());\n\t\tmainPanel.setPreferredSize(new Dimension(JFRAME_WIDTH, JFRAME_HEIGHT));\n\t\tmainPanel.setBorder(new EmptyBorder(new Insets(5, 5, 5, 5)));\n\n\t\tbuttonPanel.setLayout(new GridLayout(1, 2, 50, 0));\n\t\tbuttonPanel.setBorder(new EmptyBorder(new Insets(25, 0, 15, 50)));\n\t\tbuttonPanel.add(bookButton);\n\t\tbuttonPanel.add(unBookButton);\n\n\t\tbottomPanel.setLayout(new BorderLayout());\n\t\tbottomPanel.setBorder(new EmptyBorder(new Insets(10, 150, 10, 150)));\n\t\tbottomPanel.add(buttonPanel, BorderLayout.CENTER);\n\n\t\ttopPanel.setLayout(new GridLayout(2, 3, 10, 0));\n\t\ttopPanel.setBorder(new EmptyBorder(new Insets(5, 130, 5, 0)));\n\n\t\ttopPanel.add(nameSearchLabel);\n\t\ttopPanel.add(locationSearchLabel);\n\t\ttopPanel.add(whitespaceLabel);\n\t\ttopPanel.add(nameSearchBar);\n\t\ttopPanel.add(locationSearchBar);\n\t\ttopPanel.add(searchButtonPanel);\n\n\t\ttablePanel.setLayout(new BorderLayout());\n\t\ttablePanel.setBorder(new EmptyBorder(new Insets(15, 10, 5, 10)));\n\t\ttablePanel.add(scrollPane);\n\n\t\tfinal JToolBar vertical = new JToolBar(SwingConstants.VERTICAL);\n\t\tvertical.setPreferredSize(new Dimension(100, 200));\n\t\tvertical.setFloatable(false);\n\t\tvertical.setMargin(new Insets(10, 5, 5, 5));\n\t\t\n\t\tmainPanel.add(topPanel, BorderLayout.PAGE_START);\n\t\tmainPanel.add(tablePanel, BorderLayout.CENTER);\n\t\tmainPanel.add(bottomPanel, BorderLayout.PAGE_END);\n\t\t\n\t\tgetContentPane().add(mainPanel);\n\n\t\tpack();\n\n\t\tscrollPane.requestFocusInWindow();\n\n\t}",
"public ChatbotAppController()\n\t{\n\t\tapplicationView = new ChatbotView(this);\n\t\tbaseFrame = new ChatbotFrame(this);\n\t\tmySillyChatbot = new Chatbot(\"Derf\");\n\t\tstartMessage = \"Welcome to the \" + mySillyChatbot.getName() + \" chatbot. What is your name?\";\n\t\tquitMessage = \"goodbye cruel user :(\";\n\t\tcontentMessages = \"That's really cool I love riding motorcycles too!\";\n\t}",
"public viewClients() {\n initComponents();\n }",
"public Client() {\n initComponents();\n \n Server server = new Server();\n server.start();\n \n }",
"@PostMapping(value=\"/private\")\n\t\tpublic Long newLobby(@RequestBody User user) {\n\t\t\tlong id = lastId.incrementAndGet();\n\t\t\tLobby lob = new Lobby(user,true);\n\t\t\tlobbies.put(id, lob);\n\t\t\tChat chat = new Chat(user.getUserName()+\" se ha conectado.\",\"SERVER\");\n\t \tlobbies.get(id).addChat(chat);\n\t\t\treturn id;\n\t\t}",
"public void createGame()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startMultiPlayerGame(\"GameLobby\");\n }",
"public ClientController(ClientModel clientModel, ClientView clientView) {\r\n\t\tthis._clientModel = clientModel;\r\n\t\tthis._clientView = clientView;\r\n\t\t\r\n\t\tthis._clientView.addActionListener(new ClientListener());\r\n\t\t\r\n\t\tclientModel.addPropertyChangeListener(ClientModel.INPUT, new ServerListener());\r\n\t\t\r\n\t}",
"public LobbyAction(List<LobbyUser> userList) {\n this.userList = userList;\n }",
"public Controller(GUI guy) throws NetworkingException.ReceivingException, NetworkingException.ReceivingFileException {\n gui = guy;\n ni = new ChatNI(this);\n }",
"public ServerConnectionWidgetController() {\n\t\tsetUpMVC(model, view);\n\t\tregister(InBankServer.DB_CONNECTED);\n\t\tregister(InBankServer.DB_DISCONNECTED);\n\t\tregister(InBankServer.RMI_CONNECTED);\n\t\tmodel.dbDisconnected();\n\t\tmodel.rmiDisconnected();\n\t}",
"public PortalController() {\n bank = new Bank();\n }",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public DBController() {\n System.out.println(\"[\" + this.getClass() + \" : consctructor]\");\n this.listeObservers = new ArrayList<>();\n this.url = \"/Users/nico/Desktop/testSquirell.db\";\n //this.listeMorceau=new ArrayList<Morceau>();\n //this.initDB();\n addTableMorceau();\n System.out.println(\"[end constructor \" + this.getClass() + \"]\");\n }",
"public ClientFrame()\n {\n super(\"Client\");\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setLayout(new GridBagLayout());\n setBackground(Color.yellow);\n setSize(450, 300);\n setResizable(false);\n\n setTitle(agent.getHandle());\n agent.setClient(this);\n\n addButtons();\n\n // sets the frame to be visible\n setVisible(true);\n }",
"public void set(Lobby lobby) {\n Firebase.setDocument(\"lobbies/\" + lobby.getGameCode(), LobbyDTO.fromModel(lobby));\n }",
"public SessionController() {\n model = new MovieBookingModel();\n Thread t = new Thread(model); //start model thread to notify observers\n t.start();\n \n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setSize(500, 400);\n }",
"public void create(Lobby lobby) {\n for (LobbyPlayer player : lobby.getPlayers()) Firebase.registerListener(\"lobbies/\" + player.getLobbyCode(), onLobbyChange);\n Firebase.setDocument(\"lobbies/\" + lobby.getGameCode(), LobbyDTO.fromModel(lobby));\n }",
"public MyBank() {\n initComponents();\n fillClients();\n }",
"public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}",
"@FXML\n public void btnCreateLobby(Event e)\n {\n Player player = PlayerSingleton.getPlayer();\n LobbyPlayer lobbyPlayer = new LobbyPlayer(player.getUniqueId(), player.getName());\n try {\n if(LobbyServerConnection.getInstance().createLobby(lobbyPlayer))\n {\n //lobby created / do nothing\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Notification\");\n\n // Header Text: null\n alert.setHeaderText(null);\n alert.setContentText(\"you are already in a lobby!\");\n\n alert.showAndWait();\n }\n } catch (RemoteException e1) {\n log.warning(e1.toString());\n }\n }",
"public Lobby getLobbyFrame() {\r\n return lobbyFrame;\r\n }",
"public modGenRoomControl() {\r\n //construct MbModule\r\n super();\r\n roomObjects = new HashMap(32);\r\n gui = new GUI();\r\n //we depend on the RemoteControl-module\r\n addDependency(\"RemoteControl\");\r\n //we depend on the ARNE-module\r\n addDependency(\"ARNE\");\r\n //register our packet data handler\r\n setPacketDataHandler(new PacketDataHandler());\r\n //we have a html-interface, so lets register it\r\n setHTMLInterface(new HTMLInterface());\r\n }",
"public ClientView() {\n initComponents();\n }",
"private ChatAdministration(){\n\t\troomlist = new ChatRoomTableModel();\n\t\tfilelist = new ChatFileTableModel();\n\t\tchatConnection = ChatConnection.getInstance();\n\t\tconnectionconfig = loadConnectionConfiguration();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public DisplayClientsView(DisplayClientsController controller) {\r\n\t\tthis.controller = controller;\r\n\t\tinitGUI();\r\n\t}",
"public MenuBar lobbyMenu() {\n MenuBar menubar = new MenuBar();\n\n Menu accountMenu = new Menu(\"Account\");\n\n MenuItem preferences = new MenuItem(\"Preferences\");\n preferences.setOnAction(e -> new AccountGUI().start(stage, this, loginGUI, socket));\n\n MenuItem signOut = new MenuItem(\"Sign Out\");\n signOut.setOnAction(e -> {\n loginGUI.disconnect();\n loginGUI.start(stage);\n });\n\n accountMenu.getItems().addAll(preferences, signOut);\n\n menubar.getMenus().add(accountMenu);\n\n return menubar;\n }",
"public GUIController() {\n\n }",
"@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}",
"public TournamentController()\n\t{\n\t\tinitMap();\n\t}",
"public HRModuleClient() {\n }",
"private void initController() {\n frame.addWindowListener( new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n model.closeConnection();\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }\n });\n }",
"public void createNewLobby() {\n\t\tPlatform.runLater(() -> {\n\t\tTab tab = new Tab(\"Ludo\");\n\t\ttab.setId(hostName);\n\t\ttab.setClosable(true);\n\t\ttab.setOnClosed(new EventHandler<Event>() {\n\t\t\t@Override\n\t\t\tpublic void handle(Event e) {\n\t\t\t\t//String dcPlayer;\n\t\t\t\tint p, turnowner;\n\t\t\t\tif (gameClientUIController != null) {\n\t\t\t\t\tp = gameClientUIController.getPlayer();\n\t\t\t\t\tturnowner = gameClientUIController.getTurnOwner();\n\t\t\t\t\t//dcPlayer = Integer.toString(gameClientUIController.getPlayer());\n\t\t\t\t\tif(p == turnowner) { //Check if player disconnected on his/her own turn\n\t\t\t\t\t\tsendText(Constants.DICEVALUE + 0 + p + 0);\n\t\t\t\t\t}\n\t\t\t\t\t//sendText(Constants.DISCONNECT + dcPlayer);\t//Disconnect the player and remove the player from the server\n\t\t\t\t\tMain.sendText(Constants.GAMELOST); \n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tsendText(Constants.DISCONNECT);\n\t\t\t\t\n\t\t\t\tMain.cHandler.leaveGameChat(hostName);\n\t\t\t\tString tmp = Constants.IDGK + Main.userName;\n\t\t\t\tif (tmp.equals(hostName)) {\n\t\t\t\t\tMain.sendText(Constants.REMOVEHOST + hostName);\n\t\t\t\t\tMain.mainController.openNewGameButton();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tclose();\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < Main.gameTabs.getTabs().size(); i++) {\n\t\t\t\t\tif(Main.gameTabs.getTabs().get(i).getId().equals(hostName)) {\n\t\t\t\t\t\tMain.gameTabs.getTabs().remove(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i=0; i<Main.gameHandler.size(); i++) {\n\t\t\t\t\tif(hostName.equals(Main.gameHandler.get(i).getHostName())) {\n\t\t\t\t\t\tMain.gameHandler.remove(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tFXMLLoader loader = new FXMLLoader();\n\t\n\t\t\ttry {\n\t\t\t\tswitch (caseNr) {\n\t\t\t\tcase 1:\n\t\t\t\t\ttab.setContent(loader.load(getClass().getResource(\"CreateGameLobby.fxml\").openStream()));\n\t\t\t\t\tcreateGameLobbyController = (CreateGameLobbyController) loader.getController();\n\t\t\t\t\tcreateGameLobbyController.setHostPlayer(hostName);\n\t\t\t\t\tcreateGameLobbyController.setConnetion(output);\n\t\t\t\t\tbreak;\n\t\n\t\t\t\tcase 2:\n\t\t\t\t\ttab.setContent(loader.load(getClass().getResource(\"HostGameLobby.fxml\").openStream()));\n\t\t\t\t\thostGameLobbyController = (HostGameLobbyController) loader.getController();\n\t\t\t\t\thostGameLobbyController.setHostPlayer(hostName);\n\t\t\t\t\thostGameLobbyController.setConnetion(output);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 3: \n\t\t\t\t\ttab.setContent(loader.load(getClass().getResource(\"PlayerGameLobby.fxml\").openStream()));\n\t\t\t\t\tplayerGameLobbyController = (PlayerGameLobbyController) loader.getController();\n\t\t\t\t\tplayerGameLobbyController.setHostPlayer(hostName);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault: \n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t\tMain.gameTabs.getTabs().add(tab);\n\t\t\t\tMain.gameTabs.getSelectionModel().select(tab);\n\t\t\t\t\n\t\t\t\tprocessConnection();\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tMain.LOGGER.log(Level.SEVERE, \"Unable to find fxml file\", ioe);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t/** Hier word de client opgezet. */\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tspel = (ISpel) Naming.lookup(\"rmi://localhost/Spel\");\n\t\t//spel = (ISpel) Naming.lookup(\"rmi://localhost/Spel\");\n\n\t\tHandleidingView handleidingPane = new HandleidingView();\n\n\t\t// Het definiëren van enkele controllers\n\t\tDobbelsteenWorpController dobbelsteenWorpController = new DobbelsteenWorpController(spel.getDobbelsteenWorp());\n\t\tSpelController spelController = new SpelController(spel);\n\t\tspelController.registerHandleiding(handleidingPane);\n\t\tLobbyController lobbyController = new LobbyController(spel);\n\n\t\t// Het definiëren van enkele views\n\t\tLobbyView lobbyView = new LobbyView(lobbyController, spel);\n\t\tSpelView spelView = new SpelView(spel.getSpeelbord(), spelController, dobbelsteenWorpController, spel.getDobbelsteenWorp(), spel);\n\n\t\t// Het voorbereiden en tonen van de client\n\t\tlobbyView.setResizable(false);\n\t\tlobbyView.show();\n\t}",
"protected ModelAgent ()\n {\n this (\"ModelAgent\");\n\n }",
"public Client_app() {\n initComponents();\n }",
"public ModelManager(MapGrid addressBook, ReadOnlyUserPrefs userPrefs) {\n super();\n requireAllNonNull(addressBook, userPrefs);\n\n logger.fine(\"Initializing with address book: \" + addressBook + \" and user prefs \" + userPrefs);\n\n mapGrid = new MapGrid();\n this.userPrefs = new UserPrefs(userPrefs);\n\n // Initialize new statistics\n this.playerStats = new PlayerStatistics();\n\n batMan = new BattleManager(new Player(), new Enemy());\n state = BattleState.PRE_BATTLE;\n }",
"public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}",
"public SlandererBot(RobotController controller) throws GameActionException {\n this.controller = controller;\n init();\n }",
"public TransactionController() {\n lnf = new ListenerNotifier();\n }",
"public Controller(Client client, ServerGUI serverGUI) throws IOException {\r\n\t\tthis.client = client;\r\n\t\tthis.serverGUI = serverGUI;\r\n\t\tbeginningRoadCount = 0;\r\n\t\tbeginningSettlementCount = 0;\r\n\t\tbuilt = false;\r\n\t\tallowedToRoll = false;\r\n\t\tsong = new MP3();\r\n\t\taddAllowedCheats();\r\n\t\tthread = new ClientThread(client, client.getSocket(), this);\r\n\t\tthread.start();\r\n\t\tgameEnd = false;\r\n\t\texceptionLogger = ExceptionLogger.getInstance();\r\n\t}",
"public ConnectionScreenController() {\n\n }",
"public TCPMessengerServer() {\n initComponents();\n customInitComponents();\n listenForClient(); \n }",
"public Os() {\n osBO = new OsBO();\n }",
"public clientHome() {\n initComponents();\n }",
"public TurnoVOClient() {\r\n }",
"public RouteController() throws SQLException {\n\t\tbgCtr = new BjergbyGraphController();\n\t\toCtr = new OrderController();\n\t\trDb = new RouteDB();\n\t}",
"public MenuController() {\r\n\t \r\n\t }",
"public Server() {\n initComponents();\n }",
"public Server() {\n initComponents();\n }",
"public LobbyWindow(View view) throws IOException {\n this.view=view;\n\n lobbyWindowFrame = new JFrame(\"Santorini\");\n lobbyWindowFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n backgroundPanel = new BackgroundPanel(\"/background.png\");\n backgroundPanel.setLayout(new GridLayout(1, 1, -1, -1));\n //da settare L'immagine di background\n lobbyWindowFrame.add(backgroundPanel);\n\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayout(2, 1, -1, -1));\n mainPanel.setOpaque(false);\n backgroundPanel.add(mainPanel);\n\n fieldsPanel = new JPanel();\n fieldsPanel.setLayout(new GridLayout(2, 2, -1, -1));\n fieldsPanel.setOpaque(false);\n mainPanel.add(fieldsPanel);\n\n nameLabel = new JLabel(\"Username:\");\n nameLabel.setOpaque(false);\n numberLabel = new JLabel(\"Number:\");\n numberLabel.setOpaque(false);\n nameTextField = new JTextField();\n nameTextField.setOpaque(false);\n numberTextField = new JTextField();\n numberTextField.setOpaque(false);\n\n fieldsPanel.add(nameLabel);\n fieldsPanel.add(nameTextField);\n fieldsPanel.add(numberLabel);\n fieldsPanel.add(numberTextField);\n\n buttonPanel = new JPanel();\n buttonPanel.setLayout(new GridLayout(1, 1, -1, -1));\n buttonPanel.setOpaque(false);\n mainPanel.add(buttonPanel);\n submitButton = new JButton(\"Submit\");\n submitButton.setOpaque(false);\n submitButton.setContentAreaFilled(false);\n submitButtonListener=new SubmitButtonListener();\n submitButton.addActionListener(submitButtonListener);\n submitButton.setActionCommand(\"submit\");\n buttonPanel.add(submitButton);\n\n\n lobbyWindowFrame.pack();\n\n }",
"public ChatClient() {\n\n }",
"public ClientManager(ResourceManager rManager) {\n super();\n this.automaticLogin = false;\n\n // 1 - We load the ProfileConfigList\n this.profileConfigList = ProfileConfigList.load();\n\n if (this.profileConfigList == null) {\n Debug.signal(Debug.NOTICE, this, \"no client's profile found : creating a new one...\");\n this.profileConfigList = new ProfileConfigList();\n } else {\n Debug.signal(Debug.NOTICE, null, \"Client Configs loaded with success !\");\n }\n\n if (!ClientManager.rememberPasswords) {\n this.profileConfigList.deletePasswords(); // make sure we don't save any password here\n this.profileConfigList.save();\n }\n\n // 2 - We load the ServerConfigManager\n this.serverConfigManager = new ServerConfigManager(rManager);\n this.serverConfigManager.setRemoteServerConfigHomeURL(ClientDirector.getRemoteServerConfigHomeURL());\n Debug.signal(Debug.NOTICE, null, \"Server config Manager started with success !\");\n\n // 3 - We get the font we are going to use...\n this.f = FontFactory.getDefaultFontFactory().getFont(\"Lucida Blackletter Regular\");\n }",
"public LpsClient() {\n super();\n }",
"public BrowseOffenceAMClient() {\r\n }",
"public RegLuchthavenController ()\r\n\t{\r\n\t\tluchthaven = new Luchthaven();\r\n\t\tTreeMap<String, Land> alleLanden = Land.getAlleLanden();\r\n\t\tthis.land = alleLanden.firstEntry().getValue();\r\n\t\tmyFrame = new RegLuchthavenFrame(this, alleLanden);\r\n\t\tmyFrame.setVisible(true);\r\n\t}",
"public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }",
"public ViewLoja(ControllerLoja c) {\n this.controller = c;\n }",
"public DomeinController(GebruikerRepository gebruikerRepository, PresentatieRepository presentatieRepository, InschrijvingRepository inschrijvingRepository, CampusRepository campusRepository, LokaalRepository lokaalRepository, GastRepository gastRepository) {\r\n DAOFactory.initFactory();\r\n this.gebruikerRepository = gebruikerRepository;\r\n this.presentatieRepository = presentatieRepository;\r\n this.inschrijvingRepository = inschrijvingRepository;\r\n this.campusRepository = campusRepository;\r\n this.lokaalRepository = lokaalRepository;\r\n this.gastRepository = gastRepository;\r\n bpCoordinator = gebruikerRepository.getBpCoordinator();\r\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 TelaCliente() {\n initComponents();\n conexao=ModuloConexao.conector();\n }",
"public GameClient() {\r\n super(new Client(Config.WRITE_BUFFER_SIZE, Config.OBJECT_BUFFER_SIZE), null, null);\r\n }",
"public Botones() {\n initComponents();\n }",
"public CommunicationController() {\r\n _context = new Context(\"MyContext\");\r\n _app = UiApplication.getUiApplication();\r\n try {\r\n // Read settings from config.xml\r\n ECHO_SERVER_URI = Utils.getEchoServerUri();\r\n TIMEOUT = Utils.getTimeout();\r\n } catch (final Exception e) {\r\n alertDialog(e.toString());\r\n }\r\n }",
"public HotelsController() {\n try {\n hotels = dhi.get();\n } catch (Exception e) {\n e.getMessage();\n }\n }"
] | [
"0.6610085",
"0.6212033",
"0.6113343",
"0.6048665",
"0.60402286",
"0.60066336",
"0.59484285",
"0.5936908",
"0.59016997",
"0.5815318",
"0.57994723",
"0.5794082",
"0.57767373",
"0.5765",
"0.5752687",
"0.57179546",
"0.5712675",
"0.5659526",
"0.565041",
"0.5649102",
"0.56392866",
"0.5629737",
"0.5625176",
"0.56085503",
"0.56080323",
"0.55662155",
"0.55597353",
"0.55480736",
"0.55053574",
"0.5488441",
"0.5482673",
"0.5433356",
"0.54301304",
"0.54253536",
"0.5421489",
"0.5415125",
"0.5407115",
"0.5397394",
"0.5396531",
"0.53901005",
"0.5373851",
"0.5365435",
"0.53512305",
"0.5343144",
"0.5336572",
"0.53279525",
"0.53279525",
"0.53273726",
"0.5327032",
"0.5324726",
"0.5324225",
"0.53144103",
"0.53029335",
"0.52863115",
"0.5278602",
"0.5266781",
"0.5264338",
"0.5253589",
"0.52411515",
"0.52366555",
"0.5236575",
"0.52332884",
"0.52242637",
"0.522383",
"0.5216594",
"0.5213818",
"0.5211771",
"0.5211386",
"0.5210206",
"0.52020836",
"0.51980865",
"0.5197478",
"0.51970696",
"0.5196354",
"0.5188062",
"0.5187988",
"0.51858467",
"0.51815933",
"0.5181473",
"0.51790804",
"0.5177587",
"0.51741755",
"0.51707697",
"0.51592946",
"0.51592946",
"0.51556057",
"0.51523834",
"0.5143707",
"0.51434994",
"0.5138848",
"0.5121761",
"0.5119715",
"0.5112146",
"0.5107461",
"0.5107274",
"0.51060057",
"0.51018494",
"0.51002884",
"0.5098121",
"0.5093598"
] | 0.8628191 | 0 |
PRIVATE METHODS Returns true if token matches username, false otherwise. | private boolean isAuthorize(String token, String username) {
User user;
user = lobbyManager.getUserByToken(token);
return !user.getName().equals(username);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"boolean hasUsername();",
"public boolean validateToken(String token, String username) {\n\t\tString tokenUserName = getUsername(token);\n\t\treturn username.equals(tokenUserName) && !isTokenExpired(tokenUserName);\n\t}",
"private Boolean isInSession(String token, String username) {\n \treturn true;\n }",
"public boolean usernameMatches(Username username) {\n return this.credential.usernameEquals(username);\n }",
"boolean hasUserName();",
"public abstract boolean validateAuthToken(String username , String authToken);",
"public boolean checkToken(BrewFindToken tok) {\n\t\t\n\t\t// The 'token' field on BrewFindToken contains the username base64 encoded\n\t\tString uname = Base64.decodeAsString(tok.token);\n\t\t\n\t\t// Make sure the user exists\n\t\tUser u = findUser(uname);\n\t\tif(u == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn checkToken(tok, u);\n\t\t\n\t}",
"private boolean validateToken(String token, String user) {\n System.out.println(\"Userid is: \" + user);\n System.out.println(\"The token is \" + token);\n return user.equals(Jwts.parser().setSigningKey(SIGNING_KEY).parseClaimsJws(token).getBody().getSubject());\n\n }",
"public Boolean validateToken(String token, UserDetails userDetails) {\n\t\tfinal String username = getUsernameFromToken(token);\n\t\treturn (username.equals(userDetails.getUsername())\n\t\t\t\t&& !isTokenExpired(token)\n\t\t\t\t&& activeTokens.getActiveTokens().contains(token));\n\t}",
"boolean isUser(String username);",
"public boolean userNameExist(String username);",
"public Boolean checkToken(BrewFindToken tok, User u) {\n\t\tBrewFindToken uTok = u.getU_curToken();\t\n\t\tif(uTok == null) {\n\t\t\treturn false;\n\t\t}\n\t\t\t\t\n\t\t// Check that the token matches\n\t\tif((tok.access == uTok.access) && (tok.stamp == uTok.stamp) && (tok.token.equals(uTok.token))) {\n\t\t\treturn true;\n\t\t}\n\t\t\t\t\n\t\treturn false;\n\t}",
"public boolean isRegisteredUserName(String userName);",
"public boolean usernameMatches(Account a) {\n return usernameMatches(a.getCredential());\n }",
"public boolean checkUsername(String user) {\n\n }",
"public abstract boolean checkUser(String username);",
"public Boolean isUsernameExist(String username);",
"public boolean validateUserToken(String login, String token) throws SQLException;",
"public boolean usernameMatches(Credential c) {\n return usernameMatches(c.getUsername());\n }",
"@Override\n public boolean isLoggedin(HttpServletRequest request) {\n boolean result = false;\n HttpSession session = request.getSession();\n String userName = (String) session.getAttribute(\"userName\");\n String token = (String) session.getAttribute(\"token\");\n if (userName != null && token != null) {\n CrUser user = userRepo.findByUserName(userName);\n if (user != null && isTokenValid(user, token)) {\n result = true;\n }\n }\n return result;\n }",
"boolean hasToken();",
"boolean hasToken();",
"boolean hasToken();",
"boolean hasToken();",
"boolean hasToken();",
"boolean hasToken();",
"String getUsernameFromToken(String token);",
"public boolean checkUsername(String username, String password) {\n try {\n remoteUserAccess = new RemoteUserAccess(new URI(\"http://localhost:8080/api/user/\"));\n } catch (Exception e) {\n remoteUserAccess = new DirectUserAccess();\n }\n Collection<User> userPasswords = remoteUserAccess.getUsers();\n if (!userPasswords.stream().anyMatch(a -> a.getUsername().equals(username))) {\n return false;\n } else if (!userPasswords.stream()\n .filter(p -> p.getUsername().equals(username))\n .findFirst().get().getPassword()\n .equals(password)) { // Chekcs if passwords match\n return false;\n }\n return true;\n\n }",
"public boolean containsToken(String token);",
"boolean isUsernameExist(String username);",
"public boolean isUser(String userName) throws Exception;",
"public Boolean isTokenValid(String token, UserDetails userDetails) {\n SecurityUser user = (SecurityUser) userDetails;\n final String username = this.getUsernameFromToken(token);\n final Date created = this.getCreatedDateFromToken(token);\n return (username.equals(user.getUsername()) &&\n !this.isTokenExpired(token) &&\n !this.isCreatedBeforeLastPasswordReset(created, user.getLastPasswordReset()) &&\n !this.isCreatedBeforeLastLogout(created, user.getLastLogout()));\n }",
"boolean equals(String accessToken);",
"public static Boolean checkUsername(String username){\n\t\t//String username = txtUsername.getText();\n\t\t//System.out.println(username);\n\t\treturn (username.equals(\"Admin\"));\n\t}",
"public boolean isUserNameContainsRestrictedWord(String username);",
"@Override\n public boolean isTokenValid(CrUser user, String token) {\n boolean result = false;\n if (user.getToken().equalsIgnoreCase(token)) {\n Date currentTime = new Date();\n if ((currentTime.getTime() - user.getTokenUpdateTime().getTime()) <= 1800000) {\n user.setTokenUpdateTime(currentTime);\n result = true;\n }\n }\n return result;\n }",
"public boolean isUsernameTaken(String username) {\n\n db = this.getReadableDatabase();\n String query = \"select username from \"+ TABLE_NAME;\n Cursor cursor = db.rawQuery(query, null);\n\n String uname;\n\n if (cursor.moveToFirst()) {\n\n do {\n uname = cursor.getString(0);\n if(uname.equals(username)) {\n return true;\n }\n } while (cursor.moveToNext());\n }\n\n return false;\n }",
"boolean isUserExists(Username username);",
"@PreAuthorize(\"hasRole('ROLE_USER')\")\r\n\tpublic boolean isUsernameAvailable(String username);",
"private boolean login()\n {\n System.out.print(\"Enter your username: \");\n String userName = keyboard.nextLine().toLowerCase();\n currentUser = fs.getUser(userName);\n System.out.println();\n\n return currentUser != null;\n }",
"@Override\r\n\tpublic boolean checktoken(String telephone, String accesstoken) {\n\t\tUserCustomer checktoken = userCustomerMapper.checktoken(telephone ,accesstoken );\r\n\t\tif (checktoken == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean existsByToken(String token);",
"public Boolean validateToken(String token, String username, String applicationCode, Date lastPasswordReset) {\n\t\tfinal String usernameToValidate = this.getUsernameFromToken(token);\n\t\tfinal String applicationCodeToValidate = this.getIssuerFromToken(token);\n\t\tfinal Date created = this.getCreatedDateFromToken(token);\n\t\tfinal Date expiration = this.getExpirationDateFromToken(token);\n\t\treturn (usernameToValidate.equals(username) \n\t\t\t\t&& applicationCodeToValidate.equals(applicationCode)\n\t\t\t\t&& !(this.isTokenExpired(token)) \n\t\t\t\t&& !(this.isCreatedBeforeLastPasswordReset(created, lastPasswordReset)));\n\t}",
"private boolean isAuthenticationRequired(String token) {\n Authentication existingAuth = SecurityContextHolder.getContext().getAuthentication();\n\n //authenticate if no auth\n if (existingAuth == null || !existingAuth.isAuthenticated()) {\n return true;\n }\n\n //revalidate if token was changed\n if (existingAuth instanceof JwtAuthentication && !StringUtils.equals(token, (String) existingAuth.getCredentials())) {\n return true;\n }\n\n //always try to authenticate in case of anonymous user\n if (existingAuth instanceof AnonymousAuthenticationToken) {\n return true;\n }\n\n return false;\n }",
"public boolean isThereSuchAUser(String username, String email) ;",
"Boolean isAccountLocked(String username);",
"public boolean existsUser(String username);",
"public boolean isTokenInBlacklist(String username) {\n return redisService.isAvailable(username);\n }",
"boolean existsByUsername(String username);",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean exists(String username);",
"public boolean existsByUsername(String username);",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public Boolean canTokenBeRefreshed(String token, UserDetails userDetails) {\n return isTokenValid(token, userDetails);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasUsername() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"@Test\n public void userExist() {\n String username = argument.substring(0, 15);\n boolean found = false;\n\n for(int i = 0; i<users.size(); i++){\n if(users.get(i).substring(0, 15).trim().toLowerCase().contains(username.trim().toLowerCase())){\n found = true;\n }\n }\n assertTrue(\"User Not Found\", found);\n }",
"@PreAuthorize(\"permitAll()\")\n @GetMapping(\"/users/username-available\")\n public ResponseEntity<Boolean> isUsernameAvailable(@RequestParam(value = \"username\") String username) {\n return new ResponseEntity<>(userService.getUserByUsername(username) == null, HttpStatus.OK);\n }",
"static boolean EsAdmin(String username){\n StringTokenizer stk = new StringTokenizer(username,\"_\");\n while (stk.hasMoreTokens()){\n String token = stk.nextToken();\n if (token.equals(\"admin\")){\n return true;\n }\n }\n return false;\n }",
"@Override\n\tpublic boolean isUserAuthenticate(String username, String password) {\n\t\t// validate username and pwd with predefined credentials\n\t\tif (username.equals(Utility.USERNAME) && password.equals(Utility.PASSWORD)) {\n\t\t\treturn true;\n\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"private boolean authenticationIsRequired(String username) {\n Authentication existingAuth = SecurityContextHolder.getContext().getAuthentication();\n\n if (existingAuth == null || !existingAuth.isAuthenticated()) {\n return true;\n }\n\n // Limit username comparison to providers which use usernames (ie\n // UsernamePasswordAuthenticationToken)\n // (see SEC-348)\n\n if (existingAuth instanceof UsernamePasswordAuthenticationToken && !existingAuth.getName().equals(username)) {\n return true;\n }\n\n // Handle unusual condition where an AnonymousAuthenticationToken is\n // already\n // present\n // This shouldn't happen very often, as BasicProcessingFitler is meant\n // to be\n // earlier in the filter\n // chain than AnonymousAuthenticationFilter. Nevertheless, presence of\n // both an\n // AnonymousAuthenticationToken\n // together with a BASIC authentication request header should indicate\n // reauthentication using the\n // BASIC protocol is desirable. This behaviour is also consistent with\n // that\n // provided by form and digest,\n // both of which force re-authentication if the respective header is\n // detected (and\n // in doing so replace\n // any existing AnonymousAuthenticationToken). See SEC-610.\n return existingAuth instanceof AnonymousAuthenticationToken;\n }",
"private boolean usernameAvailable(String username) throws ParseException {\n ParseQuery<TipperUser> query = ParseQuery.getQuery(\"TipperUser\");\n query.whereEqualTo(\"username\", username);\n List<TipperUser> result = query.find();\n if (result.isEmpty()) {\n return true;\n } else return false;\n }",
"public boolean checkUsername(String username) {\n for(int i=0; i<listOfUsers.size(); i++) {\n if(listOfUsers.get(i).compareTo(username)==0)\n return false;\n }\n return true;\n }",
"public boolean gotUserName(){return gotUserName;}",
"private boolean checkUsername() {\n if(getUsername.getText().compareTo(\"\") != 0) { return true; }\n else {\n errorMessage.setText(\"Please enter a username.\");\n return false;\n }\n }",
"public boolean testUser(){\n VallidateUserName validator = new VallidateUserName();\n return validator.isValidUser(UserName);\n }",
"public boolean isToken(String token){\n if(currentToken == -1) return false;\n return tokens.get(currentToken).identifier.equals(token);\n }",
"public boolean logOn(String username, String password) {\n ArrayList<String> listOfUsernames = database.returnAllUsernames();\n for (int rowBeingChecked = 0; rowBeingChecked < listOfUsernames.size(); rowBeingChecked++) {\n if (listOfUsernames.get(rowBeingChecked).equals(username)) {\n byte[] saltAndHash = pullSaltAndHashFromDatabase(username);\n byte[] saltPulled = new byte[16];\n byte[] hashPulled = new byte[16];\n\n //Splitting 'saltAndHash' into separate bytes:\n for (int byteCounter = 0; byteCounter < 16; byteCounter++) {\n saltPulled[byteCounter] = saltAndHash[byteCounter];\n }\n for (int byteCounter = 0; byteCounter < 16; byteCounter++) {\n hashPulled[byteCounter] = saltAndHash[byteCounter + 16];\n }\n\n //Creating the hash again, and returning boolean if they're equal.\n KeySpec spec = new PBEKeySpec(password.toCharArray(), saltPulled, 66536, 128);\n try {\n SecretKeyFactory factory = SecretKeyFactory.getInstance(\"PBKDF2WithHmacSHA1\");\n byte[] hashGenerated = factory.generateSecret(spec).getEncoded();\n return Arrays.equals(hashGenerated, hashPulled);\n\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n return false;\n } catch (InvalidKeySpecException e) {\n e.printStackTrace();\n return false;\n }\n }\n }\n //If user name not in table:\n return false;\n }",
"public boolean isAuthRequired() {\n return !AfUtil.anyEmpty(_username);\n }",
"public boolean hasAccount(String user);",
"public String authByToken (String token){\n if (token.equals(\"ripcpsrlro3mfdjsaieoppsaa\")){\n return \"admin\";\n }\n else {\n Document query = new Document();\n query.put(\"token\", token);\n MongoCursor<Document> cursor = Security.find(query).iterator();\n if (cursor==null || !cursor.hasNext()) {\n System.out.println(\"here fails ! token used: \"+token);\n return \"none\";\n }\n else {\n Document c = cursor.next();\n String tnp = c.get(\"token\").toString();\n String admin = c.get(\"admin\").toString();\n if (tnp.equals(token)){\n if (admin.equals(\"true\")){\n return \"admin\";\n }\n else return \"user\";\n }\n else return \"none\";\n }\n //return \"none\";\n }\n }",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasUser();",
"boolean hasLogin();",
"boolean hasLogin();",
"@Override\n\tpublic boolean checkUser(String username) {\n\t\tboolean result = false;\n\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tQuery query = (Query) session.createQuery(\"from Member where username=?\");\n\n\t\tMember member = (Member) query.setString(0, username).uniqueResult();\n\t\tif (member != null) {\n\t\t\tresult = true;\n\t\t\tlogger.info(\"Member Exists\");\n\t\t} \n\n\t\treturn result;\n\n\t}",
"private boolean validate(String username, String password) {\n\t\tif(username.equals(\"Venkat\") && password.equals(\"kumar\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private boolean checkExistingUsername(String username) {\n boolean existingUsername = false;\n User user = userFacade.getUserByUsername(username);\n if (user != null) {\n existingUsername = true;\n }\n return existingUsername;\n }",
"public Boolean allowAccess (String token) {\n if (this.userRepository.findByToken(token) == null) {\n return false;\n }\n return true;\n }",
"public boolean findValidUsername(String username) {\n if (allUserNames.isEmpty()) {\n return true;\n }\n for (String s: allUserNames) {\n if(s.equals(username)) {\n return false;\n }\n }\n return true;\n }",
"private static Boolean testUsername(String username){\n\t\t//Setting Up Regex -> All Numbers and Letters maximum 14 signs\n\t\tString pattern =\"[A-z1-9]{2,14}\";\n\t\tPattern p = Pattern.compile(pattern);\n\t\tMatcher m = p.matcher(username);\n\t\t\t\n\t\tif(m.matches() && !username.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"User checkUser(String username, String password);",
"public boolean hasUsername() {\n return fieldSetFlags()[1];\n }",
"@WebMethod public boolean checkUser(String userName);",
"private boolean verifyToken(final String token) {\n LOG.debug(token);\n if (!this.verificationToken.equals(token)) {\n LOG.error(Constants.VERIFICATION_TOKEN_INVALID);\n return false;\n }\n return true;\n }",
"public boolean isValidSessionToken(String userName, String token) {\n\t\t// the userName is not in the session map\n\t\tif (!sessionMap.containsKey(userName)) {\n\t\t\treturn false;\n\t\t} \n\t\t\n\t\t// remove the double encoding to a single encoded token\n\t\t// which is stored in the map\n\t\tString decoded = new String(Base64.getDecoder().decode(token));\n\t\t\n\t\t// the session token does not match the token passed in\n\t\tSession session = sessionMap.get(userName);\n\t\tif (!session.getToken().equals(decoded)) {\n\t\t\tsessionMap.remove(userName);\n\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\tLOG.debug(\"Token does not match cache. Removed session token for userName: \" + userName);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// is the token expired ?\n\t\tlong currTime = (new Date()).getTime();\n\t\tlong sessionStart = session.getCreateTime().getTime();\n\t\tif ( (currTime - sessionStart) >= propsConfig.getSecurityTokenExp()) {\n\t\t\tsessionMap.remove(userName);\n\t\t\tif (LOG.isDebugEnabled()) {\n\t\t\t\tLOG.debug(\"Token expired. Removed session token for userName: \" + userName);\n\t\t\t}\n\t\t\treturn false;\n\t\t}\n\t\t// the token is valid\n\t\treturn true;\n\t}"
] | [
"0.74317664",
"0.74317664",
"0.74317664",
"0.74317664",
"0.74317664",
"0.74317664",
"0.7252239",
"0.7210176",
"0.7203496",
"0.72013634",
"0.71794814",
"0.7164081",
"0.7110775",
"0.70376927",
"0.6915253",
"0.6794008",
"0.6792437",
"0.678926",
"0.67891175",
"0.67887515",
"0.67753834",
"0.6766852",
"0.66977566",
"0.6666172",
"0.66627663",
"0.6617798",
"0.6617798",
"0.6617798",
"0.6617798",
"0.6617798",
"0.6617798",
"0.6570101",
"0.6547051",
"0.65433615",
"0.65151477",
"0.65053964",
"0.6503259",
"0.6493351",
"0.64849913",
"0.64556694",
"0.64196026",
"0.6393166",
"0.6369907",
"0.6340423",
"0.6279742",
"0.6271374",
"0.626585",
"0.62645835",
"0.6255202",
"0.62374157",
"0.621889",
"0.62097764",
"0.6206264",
"0.620553",
"0.61999786",
"0.61999786",
"0.6186105",
"0.6179499",
"0.6178378",
"0.6178378",
"0.6174556",
"0.6174556",
"0.6156775",
"0.6148925",
"0.6148925",
"0.61291456",
"0.61199343",
"0.6111988",
"0.6100079",
"0.608915",
"0.6070788",
"0.6060238",
"0.6057354",
"0.6034635",
"0.6027988",
"0.60242605",
"0.6007983",
"0.6002198",
"0.5983008",
"0.5981711",
"0.59695995",
"0.59695995",
"0.59695995",
"0.59695995",
"0.59695995",
"0.59695995",
"0.59695995",
"0.5961371",
"0.5961371",
"0.5952857",
"0.595258",
"0.59460396",
"0.5938963",
"0.5923452",
"0.5920575",
"0.59080863",
"0.5906131",
"0.59060025",
"0.59048563",
"0.5903279"
] | 0.7603431 | 0 |
Converts a time given in milliseconds to a String in format mm:ss. | private String formatTimeout(long timeout) {
Date date = new Date(timeout);
DateFormat formatter = new SimpleDateFormat("mm:ss");
return formatter.format(date);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String formatTime(final long ms){\n long s = ms / 1000, m = s / 60, h = m / 60;\n s %= 60; m %= 60; h %= 24;\n return String.format(\"%02d:%02d:%02d\", h, m, s);\n }",
"public static String millisToStr(long time) {\r\n long ms = time;\r\n long h = ms / 3600000;\r\n ms = ms % 3600000;\r\n long m = ms / 60000;\r\n ms = ms % 60000;\r\n long s = ms / 1000;\r\n ms = ms % 1000;\r\n return String.format(\"%02d:%02d:%02d.%03d\", h, m, s, ms);\r\n }",
"private String formatTime(long ms) {\n String format = String.format(\"%%.%df s\", decimals);\n return String.format(format, ms > 0 ? ms/1000f : 0f);\n }",
"public static String showTime(long ms)\n {\n long minutes = ms/1000/60;\n long seconds = (ms - 1000*60*minutes)/1000;\n long millis = ms % 1000;\n return minutes + \"m \" + seconds + \"s \" + millis +\"ms\";\n }",
"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 static String millisecondsToString(long milliseconds) {\n if (milliseconds == 0 || milliseconds < MINUTE_IN_MILLIS) {\n return \"0 min\";\n }\n\n String output = \"\";\n\n long hours = MILLISECONDS.toHours(milliseconds);\n if (hours > 0) {\n output = hours + \" hr \";\n }\n\n long minutes = MILLISECONDS.toMinutes(milliseconds);\n long leftOverMinutes = minutes - HOURS.toMinutes(hours);\n\n if (leftOverMinutes > 0) {\n output += leftOverMinutes + \" min\";\n }\n return output.trim();\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 convertMillis(long millis){\n\t\tlong hours = millis / 3600000;\r\n\t\tmillis = millis % 3600000;\r\n\t\tlong minutes = millis / 60000;\r\n\t\tmillis = millis % 60000;\r\n\t\tlong seconds = millis / 1000;\r\n\t\t\r\n\t\tString strHours = hours + \"\";\t\t\t\t\t//pretvaranje cjelobrojnih vrijednosti u satima, minutama i sekundama\r\n\t\tString strMinutes = minutes + \"\";\t\t\t\t//u String vrijednosti \r\n\t\tString strSeconds = seconds + \"\";\r\n\t\t\r\n\t\treturn strHours + \":\" + strMinutes + \":\" + strSeconds + \".\";\t\r\n\t}",
"public static String formatMillis(int millis) {\n String result = \"\";\n int hr = millis / 3600000;\n millis %= 3600000;\n int min = millis / 60000;\n millis %= 60000;\n int sec = millis / 1000;\n if (hr > 0) {\n result += hr + \":\";\n }\n if (min >= 0) {\n if (min > 9) {\n result += min + \":\";\n } else {\n result += \"0\" + min + \":\";\n }\n }\n if (sec > 9) {\n result += sec;\n } else {\n result += \"0\" + sec;\n }\n return result;\n }",
"public static String formatMillis(int millis) {\n String result = \"\";\n int hr = millis / 3600000;\n millis %= 3600000;\n int min = millis / 60000;\n millis %= 60000;\n int sec = millis / 1000;\n if (hr > 0) {\n result += hr + \":\";\n }\n if (min >= 0) {\n if (min > 9) {\n result += min + \":\";\n } else {\n result += \"0\" + min + \":\";\n }\n }\n if (sec > 9) {\n result += sec;\n } else {\n result += \"0\" + sec;\n }\n return result;\n }",
"public static String TimeConverter(long t)\r\n {\r\n int h, m, s, ms;\r\n ms = (int)t;\r\n h = ms / 3600000;\r\n ms = ms % 3600000;\r\n m = ms / 60000;\r\n ms = ms % 60000;\r\n s = ms / 1000;\r\n ms = ms % 1000;\r\n return h + \" :: \" + m + \" :: \" + s + \" :: \" + ms;\r\n }",
"public static String milliSecondsToTimer(long milliseconds){\r\n String finalTimerString = \"\";\r\n String secondsString = \"\";\r\n \r\n // Convert total duration into time\r\n int hours = (int)( milliseconds / (1000*60*60));\r\n int minutes = (int)(milliseconds % (1000*60*60)) / (1000*60);\r\n int seconds = (int) ((milliseconds % (1000*60*60)) % (1000*60) / 1000);\r\n // Add hours if there\r\n if(hours > 0){\r\n finalTimerString = hours + \":\";\r\n }\r\n \r\n // Prepending 0 to seconds if it is one digit\r\n if(seconds < 10){\r\n secondsString = \"0\" + seconds;\r\n }else{\r\n secondsString = \"\" + seconds;}\r\n \r\n finalTimerString = finalTimerString + minutes + \":\" + secondsString;\r\n \r\n // return timer string\r\n return finalTimerString;\r\n }",
"public static String getReadableTime(long time_ms) {\n String output = \"\";\n long time_delta = time_ms;\n\n int milliseconds = (int) (time_delta % 1000);\n time_delta /= 1000;\n int seconds = (int) (time_delta % 60);\n time_delta /= 60;\n int minutes = (int) (time_delta % 60);\n time_delta /= 60;\n int hours = (int) (time_delta % 24);\n int days = (int) (time_delta / 24);\n\n if (days != 0) {\n output += String.format(\"%d day\", days);\n if (days > 1) {\n output += \"s\";\n }\n if ((hours != 0) || (minutes != 0) || (seconds != 0)) {\n output += \" \";\n }\n }\n if ((hours != 0) || (minutes != 0)) {\n return output + String.format(\"%d:%02d:%02d\", hours, minutes, seconds);\n }\n if (seconds != 0) {\n return output + String.format(\"%d.%d seconds\", seconds, milliseconds);\n }\n if (milliseconds != 0) {\n return output + String.format(\"%d ms\", milliseconds);\n }\n\n return (output.length() == 0 ? \"0\" : output);\n }",
"public static String toHumanReadableTime(long milliseconds) {\n StringBuilder sb = new StringBuilder();\n int len = TIME_UNITS.length;\n int i = 0;\n for (; i < len; i++) {\n long quotient = milliseconds / TIME_UNITS[i];\n if (quotient > 0) {\n if (sb.length() > 0) {\n sb.append(' ');\n }\n sb.append(quotient).append(TIME_UNITS_ABBR[i]);\n milliseconds = milliseconds % TIME_UNITS[i];\n }\n }\n if (sb.length() > 0) {\n if (milliseconds > 0) {\n sb.append(' ').append(milliseconds).append(TIME_UNITS_ABBR[i]);\n }\n } else {\n sb.append(milliseconds).append(TIME_UNITS_ABBR[i]);\n }\n return sb.toString();\n }",
"public String milliSecondsToTimer(long milliseconds){\n\t\tString finalTimerString = \"\";\n\t\tString secondsString = \"\";\n\t\t\n\t\t// Convert total duration into time\n\t\t int hours = (int)( milliseconds / (1000*60*60));\n\t\t int minutes = (int)(milliseconds % (1000*60*60)) / (1000*60);\n\t\t int seconds = (int) ((milliseconds % (1000*60*60)) % (1000*60) / 1000);\n\t\t // Add hours if there\n\t\t if(hours > 0){\n\t\t\t finalTimerString = hours + \":\";\n\t\t }\n\t\t \n\t\t // Prepending 0 to seconds if it is one digit\n\t\t if(seconds < 10){ \n\t\t\t secondsString = \"0\" + seconds;\n\t\t }else{\n\t\t\t secondsString = \"\" + seconds;}\n\t\t \n\t\t finalTimerString = finalTimerString + minutes + \":\" + secondsString;\n\t\t\n\t\t// return timer string\n\t\treturn finalTimerString;\n\t}",
"public static String timeAsString(long totalTime) {\n long second = totalTime / 1000 % 60;\n long minute = totalTime / (1000 * 60) % 60;\n long hour = totalTime / (1000 * 60 * 60);\n\n return String.format(\"%02d:%02d:%02d\", hour, minute, second);\n }",
"public static String formattime(long millis) {\n\t\treturn String.format(\"%02d:%02d:%02d:%03d\", //This formats the time correctly\n\t\t\t\tTimeUnit.MILLISECONDS.toHours(millis),\n\t\t\t TimeUnit.MILLISECONDS.toMinutes(millis) -\n\t\t\t TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millis)),\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(millis) -\n\t\t\t TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis)),\n\t\t\t millis -\n\t\t\t TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(millis)));\n\t\t\n\t}",
"public static String updateText(long milliseconds) {\n\t\tString finalTimeString = \"\";\n\t\tString secondsString = \"\";\n\n\t\tint hours = (int) (milliseconds / (1000 * 60 * 60));\n\t\tint minutes = (int) ((milliseconds % (1000 * 60 * 60)) / (1000 * 60));\n\t\tint seconds = (int) ((milliseconds % (1000 * 60 * 60)) % (1000 * 60) / 1000);\n\n\t\tif (hours > 0)\n\t\t\tfinalTimeString = hours + \":\";\n\n\t\tif (seconds < 10)\n\t\t\tsecondsString = \"0\" + seconds;\n\t\telse\n\t\t\tsecondsString = \"\" + seconds;\n\n\t\tfinalTimeString = finalTimeString + minutes + \":\" + secondsString;\n\n\t\treturn finalTimeString;\n\t}",
"public String timeToString() {\n\t\tString start = \"\";\n\t\tString hmSep = \":\";\n\t\tString msSep = \":\";\n\t\tif (hour < 10)\n\t\t\tstart = new String(\"0\");\n\t\tif (minute < 10)\n\t\t\thmSep = new String(\":0\");\n\t\tif (second < 10)\n\t\t\tmsSep = new String(\":0\");\n\t\treturn new String(start\n\t\t\t\t+ hour + hmSep\n\t\t\t\t+ minute + msSep\n\t\t\t\t+ second);\n\t}",
"private String formatTime(final long time) {\n if ( time == 0 ) {\n return \"-\";\n }\n if ( time < 1000 ) {\n return time + \" ms\";\n } else if ( time < 1000 * 60 ) {\n return time / 1000 + \" secs\";\n }\n final long min = time / 1000 / 60;\n final long secs = (time - min * 1000 * 60);\n return min + \" min \" + secs / 1000 + \" secs\";\n }",
"public String timeToText(long timeInMillis)\n {\n // FIRST CALCULATE THE NUMBER OF HOURS,\n // SECONDS, AND MINUTES\n long hours = timeInMillis/MILLIS_IN_AN_HOUR;\n timeInMillis -= hours * MILLIS_IN_AN_HOUR; \n long minutes = timeInMillis/MILLIS_IN_A_MINUTE;\n timeInMillis -= minutes * MILLIS_IN_A_MINUTE;\n long seconds = timeInMillis/MILLIS_IN_A_SECOND;\n \n // THEN ADD THE TIME OF GAME SUMMARIZED IN PARENTHESES\n String minutesText = \"\" + minutes;\n if (minutes < 10) minutesText = \"0\" + minutesText;\n String secondsText = \"\" + seconds;\n if (seconds < 10) secondsText = \"0\" + secondsText;\n return hours + \":\" + minutesText + \":\" + secondsText;\n }",
"public static String longToHHMM(long longTime)\r\n/* 150: */ {\r\n/* 151:219 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 152:220 */ Date strtodate = new Date(longTime);\r\n/* 153:221 */ return formatter.format(strtodate);\r\n/* 154: */ }",
"public static String formatTime(long time) {\n long tmp = time;\n int hour = (int) (time / 3600);\n tmp -= hour * 3600;\n int min = (int) (tmp / 60);\n int sec = (int) (tmp - min * 60);\n\n String hourText = hour < 10 ? \"0\" + hour : \"\" + hour;\n String minText = min < 10 ? \"0\" + min : \"\" + min;\n String secText = sec < 10 ? \"0\" + sec : \"\" + sec;\n\n\n return hourText + \":\" + minText + \":\" + secText;\n }",
"@SuppressLint(\"SimpleDateFormat\")\n\tpublic static String getStringTime(Long time){\n\t\tSimpleDateFormat dateaf = new SimpleDateFormat(\"MM-dd\"); \n\t\tSimpleDateFormat timef = new SimpleDateFormat(\"HH:mm\"); \n\t\tString date = dateaf.format(time);\n\t\tString times = timef.format(time);\n\t\tString result = date+\" \"+times;\n\t\treturn result;\n\t}",
"public static String buildTimeString(long time) {\r\n\t\t\r\n\t\t// Days\r\n\t\tlong days = time / (1000 * 60 * 60 * 24);\r\n\t\ttime = time % (1000 * 60 * 60 * 24);\r\n\t\t\r\n\t\tlong hours = time / (1000 * 60 * 60);\r\n\t\ttime = time % (1000 * 60 * 60);\r\n\t\t\r\n\t\tlong mins = time / (1000 * 60);\r\n\t\ttime = time % (1000 * 60);\r\n\t\t\r\n\t\tlong secs = time / 1000;\r\n\t\t\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (days>0) {\r\n\t\t\tbuilder.append(days + \" d : \");\r\n\t\t}\r\n\t\tbuilder.append(String.format(\"%02d h : \", hours));\r\n\t\tbuilder.append(String.format(\"%02d m : \", mins));\r\n\t\tbuilder.append(String.format(\"%02d s\", secs));\r\n\r\n\t\treturn builder.toString();\r\n\t}",
"public String convertTime(long milliseconds) {\n Date date = new Date(milliseconds);\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"Asia/Shanghai\"));\n return formatter.format(date);\n }",
"public static String getMillisecondTimeString(long hour, long minute, long second, long millisecond)\n\t{\n\t\tString hourString = null;\n\t\tString minuteString = null;\n\t\tString secondString = null;\n\t\tString millisecondString = null;\n\t\t\n\t\tif (hour < 10)\n\t\t{\n\t\t\thourString = \"0\" + hour;\n\t\t}\n\t\telse\n\t\t{\n\t\t\thourString = \"\" + hour;\n\t\t}\n\t\t\n\t\tif (minute < 10)\n\t\t{\n\t\t\tminuteString = \"0\" + minute;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tminuteString = \"\" + minute;\n\t\t}\n\t\t\n\t\tif (second < 10)\n\t\t{\n\t\t\tsecondString = \"0\" + second;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsecondString = \"\" + second;\n\t\t}\n\t\t\n\t\tif (millisecond < 10)\n\t\t{\n\t\t\tmillisecondString = \"00\" + millisecond;\n\t\t}\n\t\telse if (millisecond < 100)\n\t\t{\n\t\t\tmillisecondString = \"0\" + millisecond;\n\t\t}\t\n\t\telse \n\t\t{\n\t\t\tmillisecondString = \"\" + millisecond;\n\t\t}\n\t\t\n\t\treturn hourString + \":\" + minuteString + \":\" + secondString + \":\" + millisecondString;\n\t}",
"public static String time(int time) {\n return time((long)time);\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 }",
"String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}",
"public static String format( long elapsedMillis ) {\n String s = \"\";\n int hours = (int) ( elapsedMillis / ( 1000 * 60 * 60 ) );\n int minutes = (int) ( ( elapsedMillis % ( 1000 * 60 * 60 ) ) / ( 1000 * 60 ) );\n int seconds = (int) ( ( ( elapsedMillis % ( 1000 * 60 * 60 ) ) % ( 1000 * 60 ) ) / 1000 );\n if ( hours > 0 ) {\n // hours:minutes:seconds\n Object[] args = { ONE_DIGIT_TIME_FORMAT.format( hours ), TWO_DIGIT_TIME_FORMAT.format( minutes ), TWO_DIGIT_TIME_FORMAT.format( seconds ) };\n s = MessageFormat.format( \"{0}:{1}:{2}\", args );\n }\n else {\n // minutes:seconds\n Object[] args = { ONE_DIGIT_TIME_FORMAT.format( minutes ), TWO_DIGIT_TIME_FORMAT.format( seconds ) };\n s = MessageFormat.format( \"{0}:{1}\", args );\n }\n return s;\n }",
"public static String mSecsToString(long actualTimeInMseconds) {\n Date date = new Date(actualTimeInMseconds);\n DateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\n return (formatter.format(date));\n }",
"public static String convertMillisTime(long time_millis) {\n return convertMillisTime(time_millis, \"yyyy-MM-dd\");\n }",
"private String formatTime(int seconds){\n return String.format(\"%02d:%02d\", seconds / 60, seconds % 60);\n }",
"public static String getTimeString() {\n\t\treturn getTimeString(time);\n\t}",
"public static String getFormattedInterval(final long ms) {\n long x = ms / 1000;\n long seconds = x % 60;\n x = x / 60;\n long minutes = x % 60;\n x /= 60;\n long hours = x % 24;\n\n return String.format(Locale.US, \"%02d:%02d:%02d\", hours, minutes, seconds);\n }",
"public static String secondsToTimeString(double time) {\n\t\tint rawSecs = (int) Math.floor(time);\n\t\tdouble millis = time - rawSecs;\n\t\tint days = Math.floorDiv(rawSecs, 86400);\n\t\tint hours = Math.floorDiv((rawSecs % 86400), 3600);\n\t\tint minutes = Math.floorDiv((rawSecs % 3600), 60);\t\n\t\tint seconds = rawSecs % 60;\n\n\t\tString ret;\n\t\tif(days > 0)\n\t\t\tret = String.format(\"%d:%02d:%02d:%02d\", days, hours, minutes, seconds);\n\t\telse if(hours > 0)\n\t\t\tret = String.format(\"%d:%02d:%02d\", hours, minutes, seconds);\n\t\telse\n\t\t\tret = String.format(\"%d:%02d\", minutes, seconds);\n\t\t\n\t\tif(millis != 0)\n\t\t\tret += \".\"+ String.format(\"%03d\", (int)(millis*1000));\n\t\t\n\t\treturn ret;\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 }",
"static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}",
"public static String convertFromTime(int time){\n int hour = time/100;\n int min = time%100;\n String hourStr = String.format(\"%02d\", hour);\n String minStr = String.format(\"%02d\",min);\n return hourStr + \":\" + minStr;\n }",
"public static String convertMillisTime(long time_millis, String format) {\n String result = \"\";\n if (time_millis <= 0) {\n return result;\n }\n\n try {\n SimpleDateFormat dateFormat = new SimpleDateFormat(format, Locale.US);\n result = dateFormat.format(new Date(time_millis));\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n }\n\n return result;\n }",
"public static String timem( long p_lMillis ) {\n String sTime = \"\";\n if ( p_lMillis > 999 ) sTime =time( p_lMillis );\n sTime += \" \" + (p_lMillis % 1000 ) + \"ms\"; \n return sTime;\n }",
"public static String formatTime(long elapsed) {\n int[] convConst = {100, 60, 60, 24};\n int[] formatValues = new int[convConst.length];\n\n for (int i = 0; i < (convConst.length & formatValues.length); i++) {\n if (i > 0) elapsed /= convConst[i - 1];\n formatValues[i] = (int) (elapsed % convConst[i]);\n }\n\n int[] trimmed = ArrayUtils.autobox(ArrayUtils.reverse(ArrayUtils.trimBack(ArrayUtils.autobox(formatValues), 0)));\n String[] filled = new String[trimmed.length];\n\n for (int i = 0; i < (trimmed.length & filled.length); i++)\n filled[i] = i > 0 ? StringUtils.fillLeading(\"\" + trimmed[i], '0', 2) : \"\" + trimmed[i];\n\n List<String> filledList = new ArrayList<>(Arrays.asList(filled));\n if (filledList.size() <= 1) filledList.add(0, \"0\");\n\n return String.join(\".\", String.join(\":\", filledList.subList(0, filledList.size() - 1)), filledList.get(filledList.size() - 1));\n }",
"public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }",
"public static String getTimeAsString(final double timeInMillis, final Locale locale) {\n\t\tif (timeInMillis > 1.0) {\n\t\t\treturn getTimeAsString((long) timeInMillis, locale);\n\t\t}\n\t\tFormat nf = new DecimalFormat(\"#.###\", new DecimalFormatSymbols(locale));\n\t\treturn nf.format(timeInMillis) + \" ms\";\n\t}",
"private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }",
"public static String getElapsedTimeFromMilliseconds(long inputTime)\r\n {\r\n String format = String.format(\"%%0%dd\", 2);\r\n long elapsedTime = inputTime / 1000000;\r\n String millisecond = String.format(format, elapsedTime % 1000);\r\n String seconds = String.format(format, (elapsedTime/1000) % 60);\r\n String minutes = String.format(format, ((elapsedTime/1000) % 3600) / 60);\r\n String hours = String.format(format, (elapsedTime/1000) / 3600);\r\n\r\n hours = hours.equals(\"00\") ? \"\" : (Integer.parseInt(hours) < 9 ? hours.substring(hours.lastIndexOf(\"0\") + 1)+\":\" :hours+\":\");\r\n minutes = minutes.equals(\"00\") ? \"\" : (Integer.parseInt(minutes) < 9 ? minutes.substring(minutes.lastIndexOf(\"0\") + 1)+\":\" :minutes+\":\");\r\n seconds = seconds.equals(\"00\") ? \"\" : (Integer.parseInt(seconds) < 9 ? seconds.substring(seconds.lastIndexOf(\"0\") + 1)+\",\" :seconds+\",\");\r\n millisecond = millisecond.equals(\"00\") ? \"\" : millisecond+(seconds.equals(\"\") ? \"ms\":(minutes.equals(\"\") ? \" sec\" : \" min\"));\r\n String time = hours+minutes+seconds+millisecond;\r\n return time;\r\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 static String convert(int secs) {\n int h = secs / 3600, i = secs - h * 3600, m = i / 60, s = i - m * 60;\n String timeF = \"\";\n\n if (h < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + h + \" hour(s) \";\n if (m < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + m + \" minute(s) \";\n if (s < 10) {\n timeF = timeF + \"\";\n }\n timeF = timeF + s + \" second(s) \";\n\n return timeF;\n }",
"public static String convertTimeMillisecondsAsLongToDuration(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds)));\n\t\t\t String seconds = String.format(\"%02d\",\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));\n\t\t\t String duration = Integer.valueOf(hours) + \":\" + minutes + \":\" + seconds;\n\t\t\t return duration; \n\t\t\t}",
"public String getYYYYMMDDhhmmssTime(Long time) {\n\t\tString result = \"\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYYMMDDhhmmss\");\n\t\tresult = sdf.format(new Date(time));\n\t\treturn result;\n\t}",
"public static String getTimeString(int t) {\n\t\tint hours = t / 3600;\n\t\tint minutes = (t / 60) % 60;\n\t\tint seconds = t % 60;\n\t\treturn (hours < 10 ? \"0\" : \"\")\n\t\t\t+ hours\n\t\t\t+ (minutes < 10 ? \":0\" : \":\")\n\t\t\t+ minutes\n\t\t\t+ (seconds < 10 ? \":0\" : \":\")\n\t\t\t+ seconds;\n\t}",
"public static String milToStandard(int milTime){\n\n String output;\n int tempHours = milTime / 100;\n String ampm;\n if(tempHours - 12 < 0){\n if(tempHours == 0){tempHours = 12;}\n ampm = \"AM\";\n }\n else{\n tempHours = tempHours - 12;\n if(tempHours == 0){tempHours = 12;}\n ampm = \"PM\";\n }\n output = tempHours+\":\";\n int tempMins = milTime % 100;\n if(tempMins < 10){ output = output + \"0\" + tempMins + ampm;}\n else{ output = output + tempMins + ampm;}\n\n return output;\n\n }",
"public static String formatConsumeTimeMillis(long millis) { \r\n\t long days = millis / (1000 * 60 * 60 * 24); \r\n\t long hours = (millis % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60); \r\n\t long minutes = (millis % (1000 * 60 * 60)) / (1000 * 60); \r\n\t double seconds = (millis % (1000 * 60)) / 1000.0; \r\n\t return days + \" dats \" + hours + \" hours \" + minutes + \" mins \" \r\n\t + seconds + \" seconds\";\r\n\t}",
"public static String getTime(int second) {\n if (second < 10) {\n return \"00:00:0\" + second;\n }\n if (second < 60) {\n return \"00:00:\" + second;\n }\n if (second < 3600) {\n int minute = second / 60;\n second = second - minute * 60;\n if (minute < 10) {\n if (second < 10) {\n return \"00:\" + \"0\" + minute + \":0\" + second;\n }\n return \"00:\" + \"0\" + minute + \":\" + second;\n }\n if (second < 10) {\n return \"00:\" + minute + \":0\" + second;\n }\n return \"00:\" + minute + \":\" + second;\n }\n int hour = second / 3600;\n int minute = (second - hour * 3600) / 60;\n second = second - hour * 3600 - minute * 60;\n if (hour < 10) {\n if (minute < 10) {\n if (second < 10) {\n return \"0\" + hour + \":0\" + minute + \":0\" + second;\n }\n return \"0\" + hour + \":0\" + minute + \":\" + second;\n }\n if (second < 10) {\n return \"0\" + hour + \":\" + minute + \":0\" + second;\n }\n return \"0\" + hour + \":\" + minute + \":\" + second;\n }\n if (minute < 10) {\n if (second < 10) {\n return hour + \":0\" + minute + \":0\" + second;\n }\n return hour + \":0\" + minute + \":\" + second;\n }\n if (second < 10) {\n return hour + \":\" + minute + \":0\" + second;\n }\n return hour + \":\" + minute + \":\" + second;\n }",
"public static String getWorkTimeSecondsInFormattedString(long seconds) {\r\n int totalMinutos = (int) (seconds/60);\r\n int totalHoras = totalMinutos / 60;\r\n int restoMinutos = totalMinutos % 60;\r\n int restoSegundos = (int) (seconds % 60);\r\n\r\n return (totalHoras + \":\" + restoMinutos + \":\" + restoSegundos);\r\n\r\n }",
"public static String tenthsToStringShort(int time) {\r\n\t\t// If we have negative time, just return zero\r\n\t\tif ( time < 0 ) {\r\n\t\t\treturn \"0:00\";\r\n\t\t}\r\n\t\t\r\n\t\tint sec = (time / 10) % 60;\r\n\t\tint min = (time / 10) / 60;\r\n\t\treturn String.format(\"%d:%02d\", min, sec);\r\n\t}",
"public static String getTime()\n {\n Date time = new Date();\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return timeFormat.format(time);\n }",
"public String getElapsedTimeHoursMinutesSecondsString(int milisec) {\n\t\t int time = milisec/1000;\n\t\t String seconds = Integer.toString((int)(time % 60)); \n\t\t String minutes = Integer.toString((int)((time % 3600) / 60)); \n\t\t String hours = Integer.toString((int)(time / 3600)); \n\t\t for (int i = 0; i < 2; i++) { \n\t\t if (seconds.length() < 2) { \n\t\t seconds = \"0\" + seconds; \n\t\t } \n\t\t if (minutes.length() < 2) { \n\t\t minutes = \"0\" + minutes; \n\t\t } \n\t\t if (hours.length() < 2) { \n\t\t hours = \"0\" + hours; \n\t\t } \n\t\t }\n\t\t String timeString = hours + \":\" + minutes + \":\" + seconds; \n\t\t return timeString;\n\t }",
"private String formatTime(long length) {\n\t\tString hms = \"\";\n\t\tif(length < 3600000) {\n\t\t\thms = String.format(\"%02d:%02d\",\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t} else {\n\t\t\thms = String.format(\"%02d:%02d:%02d\", TimeUnit.MILLISECONDS.toHours(length),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t}\n\n\t\treturn hms;\n\t}",
"public static String tenthsToString(int time) {\r\n\t\t// If we have negative time, just return zero\r\n\t\tif ( time < 0 ) {\r\n\t\t\treturn \"0:00.0\";\r\n\t\t}\r\n\t\t\r\n\t\tint tenths = time % 10;\r\n\t\tint sec = (time / 10) % 60;\r\n\t\tint min = (time / 10) / 60;\r\n\t\treturn String.format(\"%d:%02d.%d\", min, sec, tenths);\r\n\t}",
"public String convertTimeMillisecondsAsLongToDurationAuto(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds)));\n\t\t\t String seconds = String.format(\"%02d\",\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));\n\t\t\tif (Integer.valueOf(hours) == 0) {\n\t\t\t\tString duration = minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} else {\n\t\t\t String duration = hours + \":\" + minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} \n\t\t\t}",
"public static String getTimeAsString(final double timeInMillis) {\n\t\treturn getTimeAsString(timeInMillis, Locale.getDefault());\n\t}",
"public static String getTimeAsString(final long timeInMillis) {\n \treturn getTimeAsString(timeInMillis, Locale.ENGLISH);\n }",
"private String getMinutesInTime(int time) {\n String hour = String.valueOf(time / 60);\n String minutes = String.valueOf(time % 60);\n\n if(minutes.length() < 2) {\n minutes = \"0\" + minutes;\n }\n\n return hour + \":\" + minutes;\n\n }",
"public static String format(long seconds) {\n\t\tlong minutes = seconds / SECONDS_PER_MINUTE;\n\t\tlong hours = 0;\n\t\tif (minutes > MINUTES_PER_HOUR) {\n\t\t\thours = minutes / MINUTES_PER_HOUR;\n\t\t\tminutes = minutes % MINUTES_PER_HOUR;\n\t\t}\n\t\tseconds = seconds % SECONDS_PER_MINUTE;\n\t\treturn doFormat(hours, minutes, seconds);\n\t}",
"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 convertTimeMillisecondsAsLongToDurationNoLeadZero(long milliseconds) {\n\t\t\t\tString hours = String.format(\"%02d\", TimeUnit.MILLISECONDS.toHours(milliseconds));\n\t\t\t\tString minutes = String.format(\"%02d\",\n\t\t\t\t\t TimeUnit.MILLISECONDS.toMinutes(milliseconds) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(milliseconds)));\n\t\t\t String seconds = String.format(\"%02d\",\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(milliseconds) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(milliseconds)));\n\t\t\tif (Integer.valueOf(hours) == 0) {\n\t\t\t\tint min = Integer.valueOf(minutes);\n\t\t\t if (min != 0) { minutes = String.valueOf(min); }\n\t\t\t String duration = minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} else {\n\t\t\t hours = String.valueOf(Integer.valueOf(hours));\n\t\t\t String duration = hours + \":\" + minutes + \":\" + seconds;\n\t\t\t return duration;\n\t\t\t} \n\t\t\t}",
"public static String millsToMinSec(long mills) {\n int min = (int) (mills / 1000 / 60);\n int second = (int) (mills / 1000 % 3600 % 60);\n String time = \"\";\n// if (hour < 10) {\n// time = \"0\" + hour;\n// } else {\n// time = \"\" + hour;\n// }\n if (min < 10) {\n time += \"0\" + min;\n } else {\n time += \"\" + min;\n }\n if (second < 10) {\n time += \":0\" + second;\n } else {\n time += \":\" + second;\n }\n return time;\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 secsToTime(int secs) {\n String min = secs / 60 + \"\";\n String sec = secs % 60 + \"\";\n if(sec.length() == 1) {\n sec = \"0\" + sec;\n }\n\n return min + \":\" + sec;\n }",
"public static String time_str(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n return String.format(\"%02d:%02d:%02d\", hours, mins, secs);\n //return hoursMinutesSeconds(t);\n }",
"public static String getTimeAsString(final long timeInMillis, final Locale locale) {\n\t\tResourceBundle bundle = ResourceBundle.getBundle(\"patterntesting.runtime.log.messages\", locale,\n\t\t\t\tResourceBundle.Control.getNoFallbackControl(ResourceBundle.Control.FORMAT_DEFAULT));\n\t\tif (timeInMillis > 18000000L) {\n\t\t\treturn ((timeInMillis + 1800000L) / 3600000L) + \" \" + bundle.getString(\"hours\");\n\t\t} else if (timeInMillis > 300000L) {\n\t\t\treturn ((timeInMillis + 30000L) / 60000L) + \" \" + bundle.getString(\"minutes\");\n\t\t} else if (timeInMillis > 5000L) {\n\t\t\treturn ((timeInMillis + 500L) / 1000L) + \" \" + bundle.getString(\"seconds\");\n\t\t}\n\t\treturn timeInMillis + \" ms\";\n\t}",
"public static String getUTCStringFromMillis(long millisecondTime) {\n return getUTCStringFromDate(new Date(millisecondTime));\n }",
"public static String TimeConvert(int num) {\n\n int hours;\n int minutes;\n\n if (num < 60){\n\n return \"0:\" + num;\n }\n else {\n\n hours = num / 60;\n minutes = num % 60;\n\n return hours + \":\" + minutes;\n }\n }",
"public static String formatTimeInterval(final long intervalMilliseconds) {\r\n \tlong l = intervalMilliseconds;\r\n final long hr = TimeUnit.MILLISECONDS.toHours(l);\r\n final long min = TimeUnit.MILLISECONDS.toMinutes(l - TimeUnit.HOURS.toMillis(hr));\r\n final long sec = TimeUnit.MILLISECONDS.toSeconds(l - TimeUnit.HOURS.toMillis(hr) - TimeUnit.MINUTES.toMillis(min));\r\n// final long ms = TimeUnit.MILLISECONDS.toMillis(l - TimeUnit.HOURS.toMillis(hr) - TimeUnit.MINUTES.toMillis(min) - TimeUnit.SECONDS.toMillis(sec));\r\n return String.format(\"%02d:%02d:%02d\" /* + \".%03d\" */, hr, min, sec /*, ms */);\r\n }",
"private static String format(double elapsedSec) {\n\t\tint elapsedMs = (int) Math.round(elapsedSec * 1000);\n\t\treturn Integer.toString(elapsedMs) + \" ms\";\n\t}",
"public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }",
"public static String formatSeconds(int seconds) {\n SimpleDateFormat sf = new SimpleDateFormat(\"m:ss\");\n Date date = new Date(seconds*1000);\n return sf.format(date);\n }",
"private static String timeConversion(long totalSeconds) {\n\n final int MINUTES_IN_AN_HOUR = 60;\n final int SECONDS_IN_A_MINUTE = 60;\n\n long seconds = totalSeconds % SECONDS_IN_A_MINUTE;\n long totalMinutes = totalSeconds / SECONDS_IN_A_MINUTE;\n long minutes = totalMinutes % MINUTES_IN_AN_HOUR;\n long hours = totalMinutes / MINUTES_IN_AN_HOUR;\n\n StringBuilder time = new StringBuilder();\n time.append(totalSeconds < 0 ? \"-\" : \"\");\n time.append(hours < 10 ? \"0\" : \"\");\n time.append(Math.abs(hours) + \":\");\n time.append(minutes < 10 ? \"0\" : \"\");\n time.append(Math.abs(minutes) + \":\");\n time.append(seconds < 10 ? \"0\" : \"\");\n time.append(Math.abs(seconds));\n\n return time.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 static String getTimeAsString(String format, long time) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(time);\n SimpleDateFormat sdf = new SimpleDateFormat(format);\n return sdf.format(cal.getTime());\n }",
"public String toString(){\r\n String strout = \"\";\r\n strout = String.format(\"%02d:%02d\", this.getMinutes(), this.getSeconds());\r\n return strout;\r\n }",
"public String getFormatedTime() {\n DateFormat displayFormat = new SimpleDateFormat(\"HH:mm\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }",
"private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}",
"private String formatTime(final long elapsedTicks) {\n\t\tString formattedTime = \"\";\n\t\t// should be hh:mm:ss.SSS, but 00 starts with 01\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"00:mm:ss.SSS\");\n\t\tCalendar calendar = Calendar.getInstance();\n\n\t\tif (elapsedTicks <= 9999) {\n\t\t\tcalendar.setTimeInMillis(0);\n\t\t\tformattedTime = formatter.format(calendar.getTime()) + String.valueOf(String.format(\"%04d\", elapsedTicks));\n\t\t} else {\n\t\t\tcalendar.setTimeInMillis(elapsedTicks * nsPerTick / nsPerMs);\n\t\t\tString formattedTicks = String.format(\"%07d\", elapsedTicks);\n\t\t\tformattedTicks = formattedTicks.substring(formattedTicks.length() - 4);\n\t\t\tformattedTime = formatter.format(calendar.getTime()) + formattedTicks;\n\t\t}\n\t\treturn formattedTime;\n\t}",
"java.lang.String getTime();",
"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 }",
"public static String getTimeString(long hour, long minute, long second)\n\t{\n\t\tString hourString = null;\n\t\tString minuteString = null;\n\t\tString secondString = null;\n\t\t\n\t\tif (hour < 10)\n\t\t{\n\t\t\thourString = \"0\" + hour;\n\t\t}\n\t\telse\n\t\t{\n\t\t\thourString = \"\" + hour;\n\t\t}\n\t\t\n\t\tif (minute < 10)\n\t\t{\n\t\t\tminuteString = \"0\" + minute;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tminuteString = \"\" + minute;\n\t\t}\n\t\t\n\t\tif (second < 10)\n\t\t{\n\t\t\tsecondString = \"0\" + second;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsecondString = \"\" + second;\n\t\t}\n\t\t\n\t\treturn hourString + \":\" + minuteString + \":\" + secondString;\n\t}",
"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 static String getNowTimeHHMM() {\n\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\t\treturn timeFormat.format(new Date());\n\t}",
"private String readableTime(Integer minutes) {\r\n String time = \"\";\r\n if (minutes / 60.0 > 1) {\r\n time = (minutes / 60) + \" hrs, \"\r\n + (minutes % 60) + \" min\";\r\n } else {\r\n time = minutes + \" min\";\r\n }\r\n return time;\r\n }",
"public String getFormattedTime(){\r\n\t\tlong timestampInMs = ((long) timestamp * 1000);\r\n\t\tmessageTimestampTimeFormat = new SimpleDateFormat(messageTimestampTimeFormatString, Locale.getDefault()); \t//Initialise the time object we will use\r\n\t\tmessageTimestampTimeFormat.setTimeZone(TimeZone.getDefault());\r\n\t\tString messageSentString = messageTimestampTimeFormat.format(new Date(timestampInMs));\r\n\t\treturn messageSentString;\r\n\t}",
"public static String hoursMinutesSeconds(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n //return String.format(\"%2d:%02d:%02d\", hours, mins, secs);\n return String.format(\"%d:%02d:%02d\", hours, mins, secs);\n }",
"private String secondsToMinutesAndSeconds(double seconds) {\n\t\tint numberOfminutes = (int) (seconds / 60);\n\t\tint numberOfSeconds = (int) (seconds % 60);\n\t\tif (numberOfSeconds < 10) {\n\t\t\treturn numberOfminutes + \":0\" + numberOfSeconds;\n\t\t} else {\n\t\t\treturn numberOfminutes + \":\" + numberOfSeconds;\n\t\t}\n\t}",
"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 millisecondsToDateTimeDuration(long milliseconds) {\n long hours = MILLISECONDS.toHours(milliseconds);\n long minutes = MILLISECONDS.toMinutes(milliseconds % MINUTES_MOD);\n long seconds = MILLISECONDS.toSeconds((milliseconds % MINUTES_MOD) % SECONDS_MOD);\n\n return String.format(\"PT%02dH%02dM%02dS\", hours, minutes, seconds);\n }",
"public String getTimeString()\n\t{\n\t\treturn TimeUtils.getTimeString(this.timesCurrentMillis);\n\t}",
"public String secondsToMinutes(int seconds){\n int minutes = 0;\n while(seconds >= 60){\n seconds -= 60;\n minutes++;\n }\n String sec;\n if(seconds < 10){\n sec = \"0\" + seconds;\n }else{\n sec = seconds + \"\";\n }\n String time = minutes + \":\" + sec;\n return time;\n }",
"public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }"
] | [
"0.79023236",
"0.7647747",
"0.7611258",
"0.75731593",
"0.7565012",
"0.7359373",
"0.72313964",
"0.72124153",
"0.7148324",
"0.7148324",
"0.71193045",
"0.7108625",
"0.7064808",
"0.70553166",
"0.70368683",
"0.7031835",
"0.69784045",
"0.69671583",
"0.69517297",
"0.688351",
"0.68818605",
"0.6878641",
"0.68658495",
"0.68475735",
"0.6821072",
"0.6807933",
"0.6802265",
"0.6790963",
"0.67530155",
"0.67369527",
"0.67316115",
"0.6731049",
"0.6725858",
"0.6724493",
"0.6721891",
"0.67167443",
"0.6716552",
"0.6686991",
"0.6676295",
"0.6663206",
"0.66622365",
"0.66385615",
"0.66255546",
"0.6598761",
"0.6590045",
"0.65825224",
"0.6577383",
"0.65490127",
"0.6512132",
"0.6490898",
"0.64886075",
"0.6476897",
"0.64736855",
"0.6455791",
"0.64437354",
"0.6438022",
"0.6437648",
"0.6428577",
"0.64113253",
"0.640467",
"0.63935834",
"0.639323",
"0.6390597",
"0.6390001",
"0.63882744",
"0.6366683",
"0.6354516",
"0.6346425",
"0.63175404",
"0.631067",
"0.6292834",
"0.6287269",
"0.6277248",
"0.62758726",
"0.6264628",
"0.626221",
"0.6259742",
"0.6199446",
"0.619592",
"0.61874044",
"0.6167502",
"0.61564445",
"0.6142951",
"0.61401165",
"0.613759",
"0.61252123",
"0.61054176",
"0.6095699",
"0.6094042",
"0.6091227",
"0.6090759",
"0.60771054",
"0.6072083",
"0.6066479",
"0.6046843",
"0.60437334",
"0.6036124",
"0.6031984",
"0.60317767",
"0.60227865"
] | 0.65247315 | 48 |
TODO: Autogenerated Javadoc The Interface ClientHandler. | public interface ClientHandler {
/**
* Handle client.
*
* @param inFromClient the in from client
* @param outToServer the out to server
*/
public void handleClient(InputStream inFromClient, OutputStream outToServer);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void handleClient(Client conn);",
"public abstract Client getClient();",
"public EchoClientHandler() {\n firstMessage = Unpooled.buffer(EchoClient.SIZE);\n for (int i = 0; i < firstMessage.capacity(); i ++) {\n firstMessage.writeByte((byte) i);\n }\n }",
"private SOSCommunicationHandler getClient() {\r\n\t\treturn client;\r\n\t}",
"@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}",
"@Override\n\tpublic void updateClient() {\n\t\t\n\t}",
"public interface ClientHandler extends Remote {\n\n public void handleMessage(Message msg) throws RemoteException;\n\n}",
"public HandleClient(IndicatorServer s, IndicatorLink l) {\r\n\t\tthis.link = l;\r\n\t\tthis.server = s;\r\n\t}",
"ClientHandler(Socket socket) {\n this.client = socket;\n }",
"public abstract void handleClientSide(T message, EntityPlayer player);",
"public void updateClient()\n\t{\n\t\t// TODO\n\t}",
"public static Client getClient() {\n if (ClientHandler.client == null) {\n ClientHandler.client = new Client();\n }\n return ClientHandler.client;\n }",
"public abstract void onClientConnect(ClientWrapper client);",
"public void handleMessageFromClient(Object msg) {\n\n }",
"public EchoCallbackHandler(Object clientData) {\n this.clientData = clientData;\n }",
"@Override\r\n\tpublic void addclient(Client client) {\n\t\t\r\n\t}",
"public void handleMessage(Msg clientMsg) {\n switch (clientMsg.getMsgType()) {\n case ID_IS_SET:\n handle_id_is_set(clientMsg);\n break;\n\n case SHIPS_PLACED:\n handle_ships_placed(clientMsg);\n break;\n\n case WAITING:\n break;\n\n case SHOT_PERFORMED:\n handle_shot_performed(clientMsg);\n break;\n }\n }",
"@Override\n\tpublic void readClient(Client clt) {\n\t\t\n\t}",
"@Override\n public void accept(ConnectionClientSocket client) {\n client.visit(this);\n }",
"public void handleClientRequest() {\n System.out.println(\"... new ConnectionHandler constructed ...\");\n try {\n while (true) {\n // Get input data from client over socket\n String line = br.readLine();\n String[] lineArray = line.split(\" \");\n String requestType = lineArray[0];\n String resourceName = lineArray[1];\n // Log this request\n log.append(\"\\nRequest at \").append(fldt).append(\":\\n\").append(line);\n log.newLine();\n File f = new File(path + resourceName);\n String contentLength = String.valueOf(f.length());\n\n // Interpret request and respond accordingly\n if (!f.isFile()) {\n byte[] response = getHeader(404, contentLength, resourceName);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n404 Not Found\");\n log.newLine();\n break;\n } else if (requestType.contains(\"GET\")) {\n byte[] header = getHeader(200, contentLength, resourceName);\n byte[] content = getContent(f);\n byte[] response = new byte[header.length + content.length];\n System.arraycopy(header, 0, response, 0, header.length);\n System.arraycopy(content, 0, response, header.length, content.length);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n200 OK\");\n log.newLine();\n break;\n } else if (requestType.equals(\"HEAD\")) {\n byte[] response = getHeader(200, contentLength, resourceName);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n200 OK\");\n log.newLine();\n break;\n } else if (requestType.equals(\"DELETE\")) {\n f.delete();\n break;\n } else {\n byte[] response = getHeader(501, contentLength, resourceName);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n501 Not Implemented\");\n log.newLine();\n break;\n }\n }\n cleanUp();\n } catch (IOException | IndexOutOfBoundsException e) {\n System.err.println(\"ConnectionHandler:handleClientRequest (error): \" + e.getMessage());\n cleanUp();\n }\n }",
"void clientConnected(Client client);",
"public HandbookServiceCallbackHandler(Object clientData) {\n this.clientData = clientData;\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}",
"@Override\n\tpublic void createClient() {\n\t\t\n\t}",
"public void handleMessageFromClient (Object msg, ConnectionToClient client)\n {\n\t int i=0;\n\t int scanCode=0;\n\t ArrayList<Object> answer = new ArrayList<Object>();\n\t \n\t String command = (String)( ((ArrayList<Object>)msg).get(0) );\n\t \t \n\t scanCode = convertToScanCode( command );\n\t \n\t String logLine = new String (client.getName() + \" \" + command + \" \"); \n\t logger.addString(logLine);\n\t\n\t switch (scanCode)\n\t {\n\t \n\t case(001):\n\t\t {\n\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\t\tanswer = functions.login( (UserEntity) ((ArrayList<Object>)msg).get(1) );\n\t\t\t\t\t\n\t\t\t\t\t\tclient.sendToClient(answer);\n\n\t\t\t\t\t}catch (IOException e){\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t }\n\t\t \n\t case(002):\n\t\t {\n\t\t\t\n\t\n\t\t\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t\t answer = functions.getInfo(userID);\n\t\t\t try {\n\t\t\t\tclient.sendToClient(answer);\n\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t//\te.printStackTrace();\n\t\t\t}\n\t\t\t\tbreak;\n\t\t }\n\t\t \n\t case(003):\n\t {\n\t \tRequestEntity request= (RequestEntity) ((ArrayList<Object>)msg).get(1);\n\t \t//int fileLength= (int) ((ArrayList<Object>)msg).get(3);\n\t \tint fileLength= Integer.parseInt((((ArrayList<Object>)msg).get(3).toString()));\n\t \tbyte[] bytes= (byte[]) ((ArrayList<Object>)msg).get(2);\t\t\n\t\tanswer = functions.request( (RequestEntity) ((ArrayList<Object>)msg).get(1) );\n\t \tif(fileLength>0){\n\t \t\tfunctions.uploadFile(request, bytes, fileLength);\n\t \t}\n\t\ttry {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t//\te.printStackTrace();\n\t\t}\n\t\tbreak;\n\t }\n\t\t \n\t case(004):\n\t\t {\n\t\t\t \n\t\t \tanswer = functions.getListOfColumn(\"systeminfo\", \"Description\", \"listOfSystems\"); // General reusable method\n\t\t\t try {\n\t\t\t\tclient.sendToClient(answer);\n\t\t\t} catch (IOException e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e.printStackTrace();\n\t\t\t}\n\t\t\t\tbreak;\n\t\t }\n\t\t\n\n\t case(007):\n\t {\n\t\t\n\t\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getRequestHistory(userID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t \n\t case(8):\n\t {\n\t\t\n\t\t String requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getRequest(requestID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t case(9):\n\t {\n\t\t \n\t\t\n\t\t answer = functions.getReq((String)( ((ArrayList<Object>)msg).get(1)));\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t//\te.printStackTrace();\n\t\t\t}\n\t\t\t\tbreak;\n\t\t }\n\t case(102):\n\t {\n\t\t\n\t\t \n\t\t\n\t\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t String currentStatus= new String((String) ((ArrayList<Object>)msg).get(2));\n\t\t \n\t\t \n\t\t answer = functions.getlistOfRequests(userID,currentStatus);\n\t\t try {\n\t\t\t \n\t\t\t \n\t\t\tclient.sendToClient(answer);\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n case(101):\n {\n\t scanCode=000;\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String days = new String((String) ((ArrayList<Object>)msg).get(2));\n\t String newStatus= new String((String) ((ArrayList<Object>)msg).get(3));\n\t answer = functions.setTaskDuration(request,days,newStatus);\n\t try { \n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t//\te.printStackTrace();\n\t}\n\t\tbreak;\n }\n\n \n case(302):\n { \n\t\t\n \tString assID = new String((String) ((ArrayList<Object>)msg).get(1));\t\n \tanswer = functions.getReviewAndDecision(assID); \n \n \t\t try {\n \t\t\tclient.sendToClient(answer);\n \t\t} catch (IOException e)\n \t\t{\n \t\t//\te.printStackTrace();\n \t\t}\n \t\t\tbreak;\n }\n \n case(303):\n { \n \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n \tString discussionLog = new String((String) ((ArrayList<Object>)msg).get(2));\n \tanswer = functions.setValueByRequestID(\"reviewanddecision\", \"reviewAndDecision\", \"reqID\", requestID, discussionLog, \"discussionLogAnswer\" ); \n \t\n \t\t try {\n \t\t\tclient.sendToClient(answer);\n \t\t} catch (IOException e)\n \t\t{\n \t\t\t//e.printStackTrace();\n \t\t}\n \t\t\tbreak;\n }\n \n case(304):\n\t {\n\t\t\n\t\t String assessmentID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getAssessment(assessmentID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n \n case(200):\n {\n\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String currentStatus= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String Elid = (String) ((ArrayList<Object>)msg).get(3);\n\t String table = (String) ((ArrayList<Object>)msg).get(4);\n\t answer = functions.getlistOfExRequests(userID,currentStatus,Elid,table);\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n \n case(305):\n { \n \t\n \tanswer = functions.getRequestsWithTwoValues(\"request\", \"Status\", \"Rid\", \"5\", \"6\", \"reviewableRequests\"); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(307):\n { \n\t \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tString discussionLog = new String((String) ((ArrayList<Object>)msg).get(2));\n \tanswer = functions.insertValuesToReviewAndDecision (requestID, discussionLog ); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(308):\n { \n\t \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n \tanswer = functions.convertRequestIDtoAssessmentID(requestID); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(309):\n\t {\n\t\t\n\t\t String requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t answer = functions.getRequest(requestID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n case(310):\n {\n\t\n\t\n\t answer = functions.getAss();\n\t try {\n\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t \n\n case(201):\n {\n\t String code = ((String)((ArrayList<Object>)msg).get(0));\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String det= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String newStatus = (String) ((ArrayList<Object>)msg).get(4);\n\t functions.changeStatus(request, newStatus);\n\t int req = Integer.parseInt(request);\n\t answer = functions.getExeccutionEntity(code,req);\n\t if (answer.get(1).equals(\"Valid\"))\n\t {\n\t\t answer = functions.updateExecutedReq(code, request, det);\n\t }\n\t else{\n\t\t answer = functions.enterNewExecutionRecord(code, request, det, \"no\");\n\t }\n\t if(!((ArrayList<Object>)msg).get(5).equals(\"nothing\"))\n\t {\n\t\t ArrayList<Object> ex = new ArrayList<Object>();\n\t\t String code1=((String)((ArrayList<Object>)msg).get(5));\n\t\t int number = Integer.parseInt((((ArrayList<Object>)msg).get(6)).toString());\n\t\t RequestEntity en = ((RequestEntity)((ArrayList<Object>)msg).get(7));\n\t\t String status = ((String)((ArrayList<Object>)msg).get(8));\n\t\t String pid1 = ((String)((ArrayList<Object>)msg).get(9));\n\t\t ex = functions.fillInExceeded(code1,en.getRID(),en.getUid(),number,status);\n\t\t ArrayList<Object> eleader = functions.getUsers(\"getEleader\",pid1);\n\t\t if(eleader.get(1).equals(\"Valid\"))\n\t\t {\n\t\t\t EmailEntity eleMail = (EmailEntity) eleader.get(2);\n\t\t\t String mail = eleMail.getMail();\n\t\t\t SendMailSSL.SendEmail(mail, \"Ass' exceeded\", \"For your notice ! the ass number\" + request + \"have Exceeded!\" );\n\t\t\t SendMailSSL.SendEmail(\"braudeSupervisor@gmail.com\",\"Ass' exceeded\", \"For your notice ! the ass number\"+request + \"have Exceeded!\");\n\t\t\t SendMailSSL.SendEmail(\"no1984name@hotmail.com\",\"Ass' exceeded\", \"For your notice ! the ass number\" + request + \"have Exceeded!\");\n\t\t }\n\t\t \n\t\t \n\t\t answer.add(ex);\n\t }\n\t else\t// was put in order not to check out of bounds place .\n\t {\n\t\t ArrayList<Object> ex = new ArrayList<Object>();\n\t\t String code1 = \"fillInExceeded\";\n\t\t String Valid = \"notValid\";\n\t\t ex.add(code1);\n\t\t ex.add(Valid);\n\t\t answer.add(ex);\n\t }\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak; \n }\n \n case(900):\n { \n\t \tExtendEntity deadlineRequest = ((ExtendEntity) ((ArrayList<Object>)msg).get(1));\n \tanswer = functions.extendDeadlineRequest(deadlineRequest); \n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n\t \n case(901):\n { \n\t \t\n \tanswer.add(\"extentionRequestWasSent\");\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(902):\n { \n\t String requestID = ((String)((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.changeStatus(requestID,\"62\");\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n\r\n case(903):\n { \n\t String requestID = ((String)((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.changeStatus(requestID,\"7\");\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(904):\n { \n\t String requestID = ((String)((ArrayList<Object>)msg).get(1));\n\t String additionalInformation = ((String)((ArrayList<Object>)msg).get(2));\n\t \n\t \tanswer = functions.requireAdditionalInformation(requestID,additionalInformation);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n\r\n case(800):\n {\n\r\n\t\n\t String userID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t answer = functions.getUser(userID);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n case(801):\n {\n\t\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String ID = new String((String) ((ArrayList<Object>)msg).get(2));\n\t String identity =new String((String) ((ArrayList<Object>)msg).get(3));\n\t String status =new String((String) ((ArrayList<Object>)msg).get(4));\n\t \n\t answer = functions.Pair(reqID,ID,identity,status);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n case(802):\n {\n\t \n\t\n\t answer = functions.getExe();\n\t try {\n\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t }\n\t\n case(103):\n {\n\t \n\t AssessmentEntity assessmentEntity=((AssessmentEntity) ((ArrayList<Object>)msg).get(1));\n\t String newStatus= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String requestID= assessmentEntity.getRid();\n\t String userID = functions.requestToUserID(requestID);\n\t String email;\n\t \n\t ArrayList<Object> requestArray = functions.getRequest(requestID);\n\t RequestEntity request = (RequestEntity)(requestArray.get(1));\n\t if (CommonMethods.exceededDeadline(request.getDeadline()))\n\t {\n\t\t functions.fillInExceeded(\"fillInExceeded\", Integer.parseInt(requestID), request.getUid(),CommonMethods.getExceededTime(request.getDeadline()), request.getStatusid());\n\t\t if (!userID.equalsIgnoreCase(\"none\"))\n\t\t {\n\t\t\t ArrayList<Object> user = functions.getInfo(userID);\n\t\t\t email = (String)user.get(3);\n\t\t\tSendMailSSL.SendEmail(email, \"Deadline exceeded!\", \"You have exceeded the deadline for request \" + requestID);\n\t\t }\n\t\t\n\t\t\n\t }\n\t \n\t \n\t answer = functions.setAssessment(assessmentEntity, newStatus);\n\t try {\n\t\t \n\t\t client.sendToClient(answer);\n\t\t \n\t } catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t//\te.printStackTrace();\n\t }\n\t break;\n }\n\n case(202):\n { \n\t \tArrayList<Object> extra = new ArrayList<Object>();\n\t \tString code = new String((String) ((ArrayList<Object>)msg).get(0));\n \t\tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\tanswer = functions.getRequest(requestID);\n \tint request = Integer.parseInt(requestID);\n \textra = functions.getExeccutionEntity(code,request);\n \tanswer.add(extra);\n \ttry {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(905):\n { \n\t String status = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getListsForAssignment(status);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n \n case(906):\n { \n\t String userSkill = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getListOfUsers(userSkill);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n case(803):\n {\n\t\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String status = new String((String) ((ArrayList<Object>)msg).get(2));\n\t answer = functions.approveEXDu(reqID, status);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n case(804):\n {\n\t\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\t\n\n\t answer = functions.getDu(reqID);\n\t try {\n\t\tclient.sendToClient(answer);\n\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n }\n \n case(907):\n { \n\t String inspectorID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String requestID = new String((String) ((ArrayList<Object>)msg).get(2));\n\t \tanswer = functions.setInspectorToRequest(requestID, inspectorID);\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n case(805):\n { \n\t\t\n\n\t String reqID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t //int newDuration=(int)((ArrayList<Object>) msg).get(2);\n\t int newDuration= Integer.parseInt((((ArrayList<Object>) msg).get(2)).toString());\n\t\t\n\t \tanswer = functions.setNewDuration(reqID,newDuration);\n\n\t\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n }\n case(205):\n {\n\t String code = ((String)((ArrayList<Object>)msg).get(0));\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String det= new String((String) ((ArrayList<Object>)msg).get(2));\n\t String bool = new String((String) ((ArrayList<Object>)msg).get(3));\n\t answer = functions.enterNewExecutionRecord(code,request,det,bool);\n\t try {\n\t\t\tclient.sendToClient(answer);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak; \n }\n case(204):\n {\n\t String code = ((String)((ArrayList<Object>)msg).get(0));\n\t String request = new String((String) ((ArrayList<Object>)msg).get(1));\n\t String det= new String((String) ((ArrayList<Object>)msg).get(2));\n\t answer = functions.updateExecutedReq(code,request,det);\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) {\n\t//\te.printStackTrace();\n\t}\n\t\tbreak; \n }\n \n case(203):\n { \n\t \tArrayList<Object> extra = new ArrayList<Object>();\n \tString code = ((String) ((ArrayList<Object>)msg).get(0));\n \tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n \tint request = Integer.parseInt(requestID);\n \textra = functions.getExeccutionEntity(code,request);\n \ttry {\n\t\t\tclient.sendToClient(extra);\n\t\t} catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n } \n\ncase(908):\n{ \n\t\tString inspectorID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getRequestsWithTwoValues(\"request\", \"Status\", \"Rid\", \"12\", \"5555\", \"listOfInspectionableRequests\");\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n}\n\n\n\ncase(909):\n{ \n\t\tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getExeccutionEntity(\"executionEntity\",Integer.parseInt(requestID));\n\r\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n}\n\ncase(910):\n{ \n\t\tString requestID = new String((String) ((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getInspection(requestID);\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(911):\n{ \n\t\n\t\tInspectionEntity inspection = ((InspectionEntity) ((ArrayList<Object>)msg).get(1));\n\t\tArrayList<Object> ans1 = new ArrayList<Object>();\n\t\tString action = ((String)((ArrayList<Object>)msg).get(2));\n\t\tanswer = functions.setInspection(inspection, action);\n\t \n\t\tif (action.equalsIgnoreCase(\"approve\") && ((String)answer.get(1)).equalsIgnoreCase(\"Valid\") )\n\t \t{\n\t \t\tans1=functions.changeStatus(inspection.getRequestID(), \"121\");\n\t \t}\n\t \telse\n\t \tif (action.equalsIgnoreCase(\"deny\") && ((String)answer.get(1)).equalsIgnoreCase(\"Valid\") )\n\t\t{\n\t\t \tans1=functions.changeStatus(inspection.getRequestID(), \"122\");\n\t\t}\t\n\t \telse\n\t \t{\n\t\t\tans1.add(\"somthing\");\n\t\t\tans1.add(\"StatusNotSet\");\n\t\t}\t\n\t\tanswer.add(ans1.get(1).toString());\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \ncase(806):\n{ \n\t\n\t \tanswer = functions.getExtend();\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(500):\n{ \n\t\t\n\t\tanswer = functions.initializeMangeEmployees();\n\t\t\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \ncase(807):\n{ \n\t\tString reqID = new String( (String)((ArrayList<Object>)msg).get(1));\n\t \tanswer = functions.getExtendInfo(reqID);\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(501):\n{ \n\t\tUserEntity oldChairman = ((UserEntity) ((ArrayList<Object>)msg).get(1));\n\t\tUserEntity newChairman = ((UserEntity) ((ArrayList<Object>)msg).get(2));\n\t\tanswer = functions.switchChairman(oldChairman, newChairman);\n\t \n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \ncase(104):\n{\n\t \n\t AssessmentEntity assessmentEntity=((AssessmentEntity) ((ArrayList<Object>)msg).get(1));\n\t answer = functions.newAssessmentRow(assessmentEntity);\n\t try {\n\t\t \n\t\t client.sendToClient(answer);\n\t\t \n\t } catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t }\n\t break;\n}\ncase(808):\n{ \n\t\tString code = new String((String) ((ArrayList<Object>)msg).get(1));\n\t\tString extID = new String((String) ((ArrayList<Object>)msg).get(2));\n\t \tanswer = functions.approvDenyExt(code,extID);\n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t//\t\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\n\ncase(502):\n{ \n\t\tUserEntity oldCommitteeMember = ((UserEntity) ((ArrayList<Object>)msg).get(1));\n\t\tUserEntity newCommitteeMember = ((UserEntity) ((ArrayList<Object>)msg).get(2));\n\t\tanswer = functions.switchCommitteeMembers(oldCommitteeMember, newCommitteeMember);\n\t \n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n} \n\ncase(206):\n{\n\t\n\tString code = ((String) ((ArrayList<Object>)msg).get(0));\n\tString pid = ((String) ((ArrayList<Object>)msg).get(1));\n\tString oldStatus =((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.getDeniedExecutions(code,pid,oldStatus);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t\n\t}\n\tbreak;\n}\n\ncase(207):\n{\n\tArrayList<Object> extra = new ArrayList<Object>();\n\tString code = ((String) ((ArrayList<Object>)msg).get(0));\n\tString rid = ((String) ((ArrayList<Object>)msg).get(1));\n\tString newStatus =((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.changeStatus(rid,newStatus);\n\textra = functions.DelExeReq(rid);\n\ttry{\n\t\tclient.sendToClient(extra);\n\t}\n\tcatch(Exception e)\n\t{\n\t\te.getCause();\n\t\t\n\t}\n\tbreak;\n}\n\ncase(503):\n{ \n\t\tUserEntity currentUser = ((UserEntity) ((ArrayList<Object>)msg).get(1));\n\t\tanswer = functions.setUserAccess(currentUser);\n\t \n\t\t try\n\t\t {\n\t\t\tclient.sendToClient(answer);\n\t\t}catch (IOException e)\n\t\t{\n\t\t//\te.printStackTrace();\n\t\t}\n\t\t\tbreak;\n\t\t\t\n}\ncase(105):\n{\n\tanswer = functions.changeStatus();\n\ttry\n\t{\n\t\tclient.sendToClient(answer);\n\t}\n\tcatch (IOException e)\n\t{\n\t//\te.printStackTrace();\n\t}\n\tbreak;\n}\ncase(809):\n{\n\tString reqID = ((String) ((ArrayList<Object>)msg).get(1));\n\tString currentS = ((String) ((ArrayList<Object>)msg).get(2));\n\tString change = ((String) ((ArrayList<Object>)msg).get(3));\n\tString explanation =((String) ((ArrayList<Object>)msg).get(4));\n\tString supervisorID = ((String) ((ArrayList<Object>)msg).get(5));\n\tanswer = functions.updateFields(reqID,currentS,change,explanation,supervisorID);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\ncase(810):\n{\n\tString status1 = ((String) ((ArrayList<Object>)msg).get(1));\n\tString status2 = ((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.completeReq(status1,status2);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\n\n\n\ncase(504):\n{ \n\t\tString userID = ((String) ((ArrayList<Object>)msg).get(1));\n\t\tfunctions.logOff(userID);\n\t\t\n\t\n\t\t\tbreak;\n}\n\n\n\n\n\ncase(811):\n{\n\tString reqID = ((String) ((ArrayList<Object>)msg).get(1));\n\tString status = ((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.changeStatus(reqID,status);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\ncase(106):\n{\n\tString reqID = ((String) ((ArrayList<Object>)msg).get(1));\n\tanswer = functions.getFile(reqID);\n\n\ttry{\n\t\tclient.sendToClient(answer);\n\t}\n\tcatch(IOException e)\n\t{\n\t\t//e.printStackTrace();\n\t}\n\tbreak;\n}\n\n\ncase(812):\n{\n\tString exeID = ((String) ((ArrayList<Object>)msg).get(1));\n\t\n\tanswer = functions.getExecute(exeID);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\ncase(813):\n{\n\tString rID = ((String) ((ArrayList<Object>)msg).get(1));\n\t\n\tanswer = functions.ridToAid(rID);\n\ttry {\n\t\tclient.sendToClient(answer);\n\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t\t}\n\tbreak;\n}\n\ncase(912):\n{\n\t \n\tanswer = functions.getListOfColumn(\"request\", \"Rid\", \"getListOfAllRequests\"); // General reusable method\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t//\te.printStackTrace();\n\t}\n\t\tbreak;\n}\ncase(913):\n{\n\t \n\tanswer = functions.getListOfColumn(\"assessment\", \"Assid\", \"getListOfAllAssessments\"); // General reusable method\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n}\n\n\ncase(914):\n{\n\t \n\tanswer = functions.getListOfColumn(\"assessment\", \"Assid\", \"getListOfAllExecutions\"); // General reusable method\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t//\te.printStackTrace();\n\t}\n\t\tbreak;\n}\n\n\ncase(915):\n{\n\tint numberofdays;\n\tString days;\n\tString requestID = ((String) ((ArrayList<Object>)msg).get(1));\n\tArrayList<Object> request = functions.getRequest(requestID);\n\t\n\tRequestEntity myrequest = ((RequestEntity) ((ArrayList<Object>)request).get(1));\n\t\t\n\tnumberofdays = functions.getexceedTime(requestID);\n\tnumberofdays = numberofdays + CommonMethods.numberOfDays(myrequest.getDate(), myrequest.getDeadline());\n\tdays= Integer.toString(numberofdays);\n\t\n\tanswer = functions.changeStatus(requestID , \"999\");\n\tfunctions.setTaskDuration(requestID, days, \"999\");\n\t try {\n\t\tclient.sendToClient(answer);\n\t} catch (IOException e) \n\t{\n\t\t// TODO Auto-generated catch block\n\t\t//e.printStackTrace();\n\t}\n\t\tbreak;\n}\n\ncase(814):\n{\n \n answer = functions.getAllReq();\n try {\n client.sendToClient(answer);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n break;\n }\ncase(815):\n{\n String rID = ((String) ((ArrayList<Object>)msg).get(1));\n String reason= ((String) ((ArrayList<Object>)msg).get(2));\n answer = functions.suspend(rID, reason);\n try {\n client.sendToClient(answer);\n \n }\n catch (Exception e)\n {\n e.getCause();\n }\n break;\n}\ncase(816):\n{\n String rID = ((String) ((ArrayList<Object>)msg).get(1));\n answer = functions.resume(rID);\n try {\n client.sendToClient(answer);\n \n }\n catch (Exception e)\n {\n e.getCause();\n }\n break;\n}\ncase(817):\n{\n String rID = ((String) ((ArrayList<Object>)msg).get(1));\n answer = functions.susInfo(rID);\n try {\n client.sendToClient(answer);\n \n }\n catch (Exception e)\n {\n e.getCause();\n }\n break;\n}\ncase(107):\n{\n\tString from = ((String) ((ArrayList<Object>)msg).get(1));\n\tString to = ((String) ((ArrayList<Object>)msg).get(2));\n\tanswer = functions.activityReport(from, to);\n\tSystem.out.println(\"after answer sent to user\");\n\ttry {\n\t\tclient.sendToClient(answer);\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t}\n\tbreak;\n}\ncase(108):\n{\n\tString date = ((String) ((ArrayList<Object>)msg).get(1));\n\tbyte[] bytes = ((byte[]) ((ArrayList<Object>)msg).get(2));\n\tint fileLength=((int) ((ArrayList<Object>)msg).get(3));\n\tanswer = functions.saveReport(date, bytes, fileLength);\n\ttry {\n\t\tclient.sendToClient(answer);\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t}\n\tbreak;\n}\ncase(109):\n{\n\tString date = ((String) ((ArrayList<Object>)msg).get(1));\n\tanswer = functions.getReport(date);\n\ttry {\n\t\tclient.sendToClient(answer);\t\t\n\t}\n\tcatch (Exception e)\n\t{\n\t\te.getCause();\n\t}\n\tbreak;\n}\n\n }\n}",
"@Override\n\tpublic void onClientMessage(ClientThread client, String msg) {\n\t\ttry {\n\t\t\tlockClients.readLock().lock();\n\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\tString toSend = \"[\"+dtf.format(now)+\"] \"+client.getClientName()+\" : \"+msg;\n\t\t\tfor (ClientThread ct : this.clients) {\n\t\t\t\tct.sendMessage(toSend);\n\t\t\t}\n\t\t\taddToHistory(toSend);\n\t\t} finally {\n\t\t\tlockClients.readLock().unlock();\n\t\t}\n\t}",
"@Override\n\t\tpublic Client getClient(int idClient) {\n\t\t\treturn null;\n\t\t}",
"public ClientHandler(Socket cmdSocket, Socket fileSocket, FileTransferServer server) {\n // Set up a simple configuration that logs on the console.\n BasicConfigurator.configure();\n\n log = Logger.getLogger(ClientHandler.class.getName());\n\n this.cmdSocket = cmdSocket;\n this.fileSocket = fileSocket;\n this.server = server;\n\n prepareStreams();\n\n // Initialize handlers for each command\n handlers = new HashMap<>();\n handlers.put(\"DIR\", new DirRequestHandler(server));\n handlers.put(\"GET\", new GetRequestHandler(server, fileOutStream));\n handlers.put(\"PUT\", new PutRequestHandler(server, fileInStream));\n }",
"public interface Client<C extends Client<C,S>, S extends Server<S,C>> {\n\n\t/**\n\t * Callback called when the connection to the server has been established. Should not be called\n\t * directly from the server.\n\t */\n\tvoid onOpen();\n\n\t/**\n\t * Callback called when the connection to the server has been closed. Should not be called\n\t * directly from the server.\n\t */\n\tvoid onClose();\n\n\t/**\n\t * Called when an error occurs while trying to send a message to the server.\n\t * @param error the error that occurred.\n\t */\n\tvoid onError(Throwable error);\n}",
"public void handleClient(InputStream inFromClient, OutputStream outToClient);",
"public ArrayList<ClientHandler> getClientList()\n {\n return clientList;\n }",
"public UrbrWSServiceCallbackHandler(Object clientData){\r\n this.clientData = clientData;\r\n }",
"public IoHandler getHandler()\n {\n return new MRPClientProtocolHandler();\n }",
"public ProxyHandler( ProtocolSession clientSession )\n\t{\n\t\tthis.clientSession = clientSession;\n\t}",
"public void setClient(Client client) {\n\t\tthis.client = client;\n\t}",
"void clientReady();",
"private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}",
"public void setClient(Client client) {\r\n\t\tthis.client = client;\r\n\t}",
"public OrderServiceImplServiceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }",
"public MSTRWSJCallbackHandler(Object clientData) {\r\n\t\tthis.clientData = clientData;\r\n\t}",
"public interface Client {\n\n}",
"@Override\n\tpublic void setClient(Client client) {\n\t\tlog.warn(\"setClient is not implemented\");\n\t}",
"@Override\n\tpublic void deleteClient() {\n\t\t\n\t}",
"public EchoCallbackHandler() {\n this.clientData = null;\n }",
"public void getClient(String id, AsyncCallback<Client> cb);",
"public void setClient(Client client_) {\n\t\tclient = client_;\n\t}",
"@Override\n\tpublic void createClient(Client clt) {\n\t\t\n\t}",
"public ClientHandler(InputStream inputFromClient) {\n try {\n this.inputFromClient = new ObjectInputStream(inputFromClient);\n } catch (IOException e) {\n System.out.println(\"Could not create ObjectInputStream from ClientHandler\");\n }\n }",
"private void\n\thandle(\n\t\tSocket\tclientSocket)\n\t\tthrows\tIOException\n\t{\n\t\t// got client connection, get reader & writer\n\n\t\tBufferedReader\tin = getReader(clientSocket);\n\t\tOutputStream\tout = clientSocket.getOutputStream();\n\n\t\t// process request\n\n\t\tprocess(in, out);\n\n\t\t// clean up\n\n\t\tin.close();\n\t\tout.close();\n\t}",
"protected void setClient(Client _client) {\n\t\tclient = _client;\n\t}",
"@Override\n\t\tpublic void onDeviceEventReceived(DeviceEvent ev, String client) {\n\t\t\t\n\t\t}",
"public PartnerAPICallbackHandler(Object clientData){\n this.clientData = clientData;\n }",
"public SIO_FI_OA_AFS_OA024ServiceCallbackHandler(Object clientData) {\n\t\tthis.clientData = clientData;\n\t}",
"protected HeavyClient getClient() {\n\t\treturn client;\n\t}",
"public ClientEventCallback(ClientManagerModel state, Client client) {\n\t\tthis.state = state;\n\t\tthis.client = client;\n\t}",
"private void requestClientNameFromServer() {\n writeToServer(ServerAction.GET_NAME + \"\");\n }",
"Client getClient();",
"@Override\r\n \tpublic void clientCommandReceivedCallback(RoMClient client, ClientCommand clientCommand) {\r\n \t\tLogger.logMessage(client.getSessionID() + \" newCommand: \" + clientCommand);\r\n \r\n \t\tthis.processClientCommand(client, clientCommand);\r\n \t}",
"public ApplicationManagementServiceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }",
"public messages.Clienthello.ClientHello getClientHello() {\n return clientHello_;\n }",
"private void processClientCommand(RoMClient client, ClientCommand clientCommand) {\r\n \t\tServerCommand serverResponseCommand = null;\r\n \t\tCollection<RoMClient> receiverClients = new ArrayList<>();\r\n \r\n \t\t// Check which command was sent\r\n \t\t// ---------------------------\r\n \t\t// UserLoginCommand\r\n \t\tif (clientCommand instanceof UserLoginClientCommand) {\r\n \r\n \t\t\tUserLoginClientCommand loginCommand = (UserLoginClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processUserLoginCommand(client, loginCommand);\r\n \r\n \t\t\t// LoginResponse to client\r\n \t\t\treceiverClients.add(client);\r\n \t\t}\r\n \r\n \t\t// PrivateMessageCommand\r\n \t\telse if (clientCommand instanceof PrivateMessageClientCommand) {\r\n \t\t\tPrivateMessageClientCommand privateMessageCommand = (PrivateMessageClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processPrivateMesageCommand(client, privateMessageCommand);\r\n \r\n \t\t\t// Sender\r\n \t\t\treceiverClients.add(client);\r\n \t\t\t// Receiver\r\n \t\t\treceiverClients.add(this.clients.getClientByUsername(privateMessageCommand.getToUser()));\r\n \t\t}\r\n \r\n \t\t// MessageClientCommand\r\n \t\telse if (clientCommand instanceof MessageClientCommand) {\r\n \t\t\tMessageClientCommand messageCommand = (MessageClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processMessageCommand(client, messageCommand);\r\n \r\n \t\t\t// MessageClient to everybody\r\n \t\t\treceiverClients = this.groupList.getClientsInSameGroup(client);\r\n \t\t}\r\n \r\n \t\t// CreateUserClientCommand\r\n \t\telse if (clientCommand instanceof CreateUserClientCommand) {\r\n \t\t\tCreateUserClientCommand newUserCommand = (CreateUserClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processCreateUserCommand(client, newUserCommand);\r\n \r\n \t\t\treceiverClients.add(client);\r\n \t\t}\r\n \r\n \t\t// GetGroupsClientCommand\r\n \t\telse if (clientCommand instanceof GetGroupsClientCommand) {\r\n \t\t\tGetGroupsClientCommand getGroupsCommand = (GetGroupsClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processGetGroupsCommand(client, getGroupsCommand);\r\n \r\n \t\t\treceiverClients.add(client);\r\n \t\t}\r\n \r\n \t\t// JoinGroupClientCommand\r\n \t\telse if (clientCommand instanceof JoinGroupClientCommand) {\r\n \t\t\tJoinGroupClientCommand joinGroupCommand = (JoinGroupClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processJoinGroupCommand(client, joinGroupCommand);\r\n \r\n \t\t\treceiverClients.add(client);\r\n \t\t}\r\n \t\t// NewGroupClientCommnad\r\n \t\telse if (clientCommand instanceof CreateGroupClientCommand) {\r\n \t\t\tCreateGroupClientCommand createGroupCommand = (CreateGroupClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processCreateGroupCommand(client, createGroupCommand);\r\n \r\n\t\t\tif (serverResponseCommand != null) {\r\n\t\t\t\treceiverClients = this.clients.getClients();\r\n\t\t\t}\r\n \t\t}\r\n \r\n \t\t// DeleteGroupClientCommand\r\n \t\telse if (clientCommand instanceof DeleteGroupClientCommand) {\r\n \t\t\tDeleteGroupClientCommand delteGroupCommand = (DeleteGroupClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processDeleteGroupCommand(client, delteGroupCommand);\r\n \r\n \t\t\treceiverClients.add(client);\r\n \t\t}\r\n \r\n \t\t// CreateUserClientCommand\r\n \t\telse if (clientCommand instanceof CreateUserClientCommand) {\r\n \t\t\tCreateUserClientCommand createUserCommand = (CreateUserClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processCreateUserCommand(client, createUserCommand);\r\n \r\n \t\t\treceiverClients.add(client);\r\n \t\t}\r\n \r\n \t\t// DeleteUserClientCommand\r\n \t\telse if (clientCommand instanceof DeleteUserClientCommand) {\r\n \t\t\tDeleteUserClientCommand deleteUserCommand = (DeleteUserClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processDeleteUserCommand(client, deleteUserCommand);\r\n \r\n \t\t\treceiverClients.add(client);\r\n \t\t}\r\n \r\n \t\t// GetUserListClientCommand\r\n \t\telse if (clientCommand instanceof GetUserListClientCommand) {\r\n \t\t\tGetUserListClientCommand userListCommand = (GetUserListClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processGetUserListCommand(client, userListCommand);\r\n \r\n \t\t\treceiverClients.add(client);\r\n \t\t}\r\n \r\n \t\t// UserLogoffCommand\r\n \t\telse if (clientCommand instanceof UserLogoffClientCommand) {\r\n \t\t\t// We won't send a response to a disconnting client\r\n \t\t\tUserLogoffClientCommand logoffCommand = (UserLogoffClientCommand) clientCommand;\r\n \t\t\tserverResponseCommand = this.processUserLogoffCommand(client, logoffCommand);\r\n \r\n \t\t\treceiverClients = null;\r\n \t\t}\r\n \t\t// ---------------------------------\r\n \r\n \t\t// Send server response\r\n \t\tif (serverResponseCommand != null) {\r\n \t\t\tif (receiverClients == null) {\r\n \t\t\t\tLogger.logMessage(\"Tried to send a ServerCommand but receiverClients list is emtpy!\");\r\n \t\t\t} else {\r\n \t\t\t\tthis.sendCommandToClient(receiverClients, serverResponseCommand);\r\n \t\t\t}\r\n \t\t}\r\n \t}",
"public Client getClient() {\n return client;\n }",
"public Client getClient() {\n return client;\n }",
"@Override\n public void handleClientRequest(User sender, ISFSObject params) {\n }",
"public interface Client {\n /**\n * Called when a link is clicked by the user.\n * @param itemId The ContentId of the item currently being shown in the InfoBar.\n */\n void onLinkClicked(@Nullable ContentId itemId);\n\n /**\n * Called when the InfoBar is closed either implicitly or explicitly by the user.\n * @param explicitly Whether the InfoBar was closed explicitly by the user from close\n * button.\n */\n void onInfoBarClosed(boolean explicitly);\n }",
"public String getClientId(){ return this.client_id;}",
"public interface ClientListener {\n\t/**\n\t * Fired when client list should be updated\n\t * \n\t * @param clients Array of clients\n\t */\n void onClientsUpdated(String[] clients);\n \n /**\n * Fired when a message has been received\n * \n * @param message Message that was received\n */\n void onMessageReceived(Message message);\n \n /**\n * Fired when client has been disconnected from server\n */\n void onDisconnected();\n}",
"public Client getClient() {\r\n\t\treturn this.client;\r\n\t}",
"@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}",
"protected Client getRealClient() {\n\t\treturn client;\n\t}",
"private void handleNewClientProxyEvent(NewClientProxyEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \t\tSystem.out.println(\"Received a new client from a server\");\n \n \t\t//Get the parameters\n \t\tString groupId = event.getClient().getGroup().id;\n \n \t\t//Add the client as a future client\n \t\tVsClientManagement.addAsFutureClient(groupId, event.getClient());\n \n \t\t//I ask if I have some client in that group\n \t\tif( VsClientManagement.hasSomeClientConnectedToServer(groupId, listenAddress)){\n \t\t\tSystem.out.println(\"I have clients to ask to shut up\");\n \n \t\t\t//I need to ask my attached clients for them to Block\t\n \t\t\tVsGroup group = VsClientManagement.getVsGroup(groupId);\n \t\t\tShutUpStubEvent shutUpEvent = new ShutUpStubEvent(groupId);\n \t\t\tsendStubEvent(shutUpEvent, group);\n \t\t}\n \n \t\t//If I don't have no clients in that group\n \t\telse{\n \t\t\tSystem.out.println(\"I have no clients for group: \" + groupId + \" so I can send the blockOk\");\n \n \t\t\t//Get my version for this group\n \t\t\tint viewVersion = VsClientManagement.getVsGroup(groupId).getCurrentVersion();\n \n \t\t\t//I may send directly the BlockOkProxy event to me and the other server\n \t\t\tBlockOkProxyEvent blockedOkProxy = new BlockOkProxyEvent(groupId, myEndpt, viewVersion);\n \t\t\tsendToOtherServers(blockedOkProxy);\n \t\t\tsendToMyself(blockedOkProxy);\n \t\t}\n \t}",
"public Client getClientCode() {\r\n\t\treturn this.client;\r\n\t}",
"public static void deleteClient( ) {\n if (ClientHandler.client != null) {\n ClientHandler.client.closeSocket();\n ClientHandler.client = null;\n }\n }",
"private void clientResponse(String msg) {\n JSONObject j = new JSONObject();\n j.put(\"statuscode\", 200);\n j.put(\"sequence\", ++sequence);\n j.put(\"response\", new JSONArray().add(msg));\n output.println(j);\n output.flush();\n }",
"public HandbookServiceCallbackHandler() {\n this.clientData = null;\n }",
"public void setClientID(String clientID){\n this.clientID = clientID;\n }",
"@Override\n public ClientResponse handle(ClientRequest cr) throws ClientHandlerException {\n\n cr.getHeaders().add(HttpHeaders.USER_AGENT, \"<<diskong-user-agent>>\");\n return getNext().handle(cr);\n }",
"public Long getClientID() { return m_lClientID; }",
"public ScoringServiceCallbackHandler(Object clientData){\r\n this.clientData = clientData;\r\n }",
"public MySQLServiceEquipmentCallbackHandler(Object clientData) {\n this.clientData = clientData;\n }",
"public void addNewClient(NicknameRequest message, ClientHandler clientHandler) {\n\n VirtualView virtualView = new VirtualView(clientHandler);\n String nickname = message.getSenderUsername();\n\n //first player logged in\n if (clientHandlerMap.size() == 0) {\n\n clientHandlerMap.put(nickname, clientHandler);\n onMessage(message);\n clientHandler.setNickname(nickname);\n gameManager.addVirtualView(nickname, virtualView);\n virtualView.showLoginOutput(true, true, false);\n virtualView.askPlayerNumber();\n }\n\n //first player already connected.\n else if (isSizeSet) {\n\n RealPlayer potentialFound = findRegisteredMatch(nickname);\n\n //First: check if it's a known name.\n if (potentialFound != null) {\n\n //Second: check if the player is disconnected.\n if (!potentialFound.getPlayerState().isConnected()) {\n\n //The player matched is currently offline, he can reconnect.\n clientHandlerMap.put(nickname, clientHandler);\n reconnectKnownPlayer(nickname, virtualView);\n }\n\n //The player who has the same name is currently connected. Nickname rejected.\n else if (potentialFound.getPlayerState().isConnected()) {\n\n virtualView.showError(\"Name already in use, join with a different one!\");\n clientHandler.sameNameDisconnect();\n }\n }\n\n if (potentialFound == null) {\n\n //The nickname is not known. If the game hasn't started yet he can connect.\n if(!gameManager.isGameStarted()) {\n\n clientHandlerMap.put(nickname, clientHandler);\n gameManager.addVirtualView(nickname, virtualView);\n onMessage(message);\n clientHandler.setNickname(nickname);\n virtualView.showLoginOutput(true, true, false);\n\n } else {\n\n //Nickname not known but game started, connection can't happen.\n virtualView.showError(\"The game is started, you can't connect now!\");\n clientHandler.disconnect();\n }\n }\n } else {\n\n //Joining when the game is being set is forbidden.\n virtualView.showError(\"You can't join when the lobby is being set!\");\n clientHandler.disconnect();\n }\n }",
"messages.Clienthello.ClientHello getClientHello();",
"public Client getClient() {\n\t\treturn client;\n\t}",
"public Client getClient() {\n\t\treturn client;\n\t}",
"public WebserviceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }",
"private static void handleClient(Socket cSocket){\n PrintStream toClient;\n BufferedReader fromClient;\n String data;\n try{\n // Get Input and Output\n fromClient = new BufferedReader(\n new InputStreamReader(\n cSocket.getInputStream()));\n toClient = new PrintStream(\n cSocket.getOutputStream());\n while(true){\n // read from Client\n data = fromClient.readLine();\n if(data == null) break;\n data = data.toUpperCase();\n // write to Client\n toClient.println(data);\n }\n fromClient.close();\n toClient.close();\n cSocket.close();\n }catch(IOException ioe){\n String msg = \"Connection lost\";\n System.out.println(msg);\n }\n }",
"public LoadBalanceCallbackHandler(Object clientData){\n this.clientData = clientData;\n }",
"public UserWSCallbackHandler(Object clientData){\r\n this.clientData = clientData;\r\n }",
"public int getIdClient() {\r\n return idClient;\r\n }",
"@Override\n public void react(@NotNull ClientConnection client) throws IOException {\n String[] params = message.getHeader().split(\" \");\n if( params.length != getMessagesSize || client.getClientID() == null )\n return ;\n int roomID = Integer.parseInt(params[1]);\n List<String> messages = UserRequests.getMessagesFromRoom(roomID, nMessage);\n if (messages == null) return;\n assert client.getStreamMessage() != null;\n client.getStreamMessage().write(\n new Message(getMessagesType + \" \" + roomID, messages));\n }",
"public Client() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@Override\r\n\tpublic Client consulterClient(Long codeClient) {\n\t\treturn dao.consulterClient(codeClient);\r\n\t}",
"public Handler_ClientChat(Socket clientSocket, PrintWriter user) \r\n\t\t{\r\n\t\t\tPrintWriter_client = user;\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tsocket_1 = clientSocket;\r\n\t\t\t\t\r\n\t\t\t\tInputStreamReader isReader = new InputStreamReader(socket_1.getInputStream());\r\n\t\t\t\tbuff_reader = new BufferedReader(isReader);\r\n\t\t\t}\r\n\t\t\tcatch (Exception ex) \r\n\t\t\t{\r\n\t\t\t\tChat.append(\"Unlooked-for Error... \\n\");\r\n\t\t\t}\r\n\t\t}",
"private Handler<org.vertx.java.core.http.HttpClientResponse> createResponseHandler(Env env, Callback handler) {\n return new Handler<org.vertx.java.core.http.HttpClientResponse>(env, handler, new ArgumentModifier<org.vertx.java.core.http.HttpClientResponse, HttpClientResponse>() {\n @Override\n public HttpClientResponse modify(org.vertx.java.core.http.HttpClientResponse response) {\n return new HttpClientResponse(response);\n }\n });\n }",
"public ShellClientHandler(final RemoteShellService aOwner,\n final Socket aClient) {\n\n pShellService = aOwner;\n pClient = aClient;\n }",
"public ClientI getClient() {\n\t\treturn client;\n\t}",
"public Integer getClientId() { return clientId; }",
"@Override\n\tpublic Player getClient() {\n\t\treturn client;\n\t}",
"@Override\n\tpublic void handle(T event) {\n\t\tString messageFromClient;\n\t\tmessageFromClient = breakOut.getView().getInputTextfield().getText();\n\t\ttry {\n\t\t\tbreakOut.getClient().getWriter().println(messageFromClient);\n\t\t\tbreakOut.getClient().getWriter().flush();\n\t\t\tbreakOut.getView().getInputTextfield().clear();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"No reachable Server\");\n\t\t}\n\t}",
"public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }"
] | [
"0.67958695",
"0.6766999",
"0.66853577",
"0.65617687",
"0.64957",
"0.644465",
"0.62876195",
"0.6258584",
"0.62516564",
"0.62407404",
"0.623616",
"0.61984164",
"0.61734587",
"0.61495763",
"0.6120225",
"0.6116145",
"0.60966706",
"0.6080684",
"0.6030411",
"0.6028894",
"0.60236657",
"0.6014391",
"0.59979683",
"0.5995117",
"0.59666264",
"0.59619653",
"0.5960758",
"0.5952549",
"0.59498525",
"0.59287477",
"0.59122735",
"0.5911121",
"0.5887756",
"0.58829457",
"0.5875722",
"0.58640015",
"0.58617866",
"0.58604884",
"0.58548033",
"0.58475614",
"0.58434033",
"0.5811888",
"0.58117694",
"0.58052105",
"0.58009607",
"0.5793947",
"0.5790039",
"0.57881397",
"0.5786496",
"0.5774396",
"0.5771205",
"0.5767596",
"0.57662076",
"0.5757375",
"0.5753888",
"0.5747162",
"0.5742729",
"0.57413983",
"0.57392365",
"0.5731567",
"0.57155174",
"0.57034916",
"0.57034916",
"0.5702637",
"0.56995314",
"0.5694847",
"0.5692037",
"0.5688711",
"0.56857824",
"0.5683935",
"0.5671569",
"0.5670303",
"0.5656803",
"0.56556773",
"0.564126",
"0.5638557",
"0.56272817",
"0.5626351",
"0.5624915",
"0.56234634",
"0.5612838",
"0.5611485",
"0.5594829",
"0.5594829",
"0.55889827",
"0.5582177",
"0.5578829",
"0.55782855",
"0.55698234",
"0.55679655",
"0.5561199",
"0.55551684",
"0.55510634",
"0.5547606",
"0.5544461",
"0.554435",
"0.5544071",
"0.5542892",
"0.5534555",
"0.5524485"
] | 0.6266869 | 7 |
check if file still exists (the tmp may have been removed, file may have been removed there is still a race change, but we do not want to keep cached records for invalid files | @Override
public boolean handle(LruCache<String, CachedHandler> cache,
Http.Method method,
ServerRequest request,
ServerResponse response,
String requestedResource) throws IOException {
if (!Files.exists(path)) {
cache.remove(requestedResource);
return false;
}
if (LOGGER.isLoggable(System.Logger.Level.TRACE)) {
LOGGER.log(System.Logger.Level.TRACE, "Sending static content from jar: " + requestedResource);
}
// etag etc.
if (lastModified != null) {
processEtag(String.valueOf(lastModified.toEpochMilli()), request.headers(), response.headers());
processModifyHeaders(lastModified, request.headers(), response.headers(), setLastModifiedHeader());
}
response.headers().contentType(mediaType);
if (method == Http.Method.GET) {
send(request, response, path);
} else {
response.headers().contentLength(contentLength(path));
response.send();
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean deleteIfState(File file) {\n if (file.exists()) {\n Duration itemAge = Duration.ofMillis(file.lastModified());\n if (!itemAge.plus(duration).minusMillis(System.currentTimeMillis()).isNegative()) {\n return file.delete();\n }\n }\n\n return false;\n }",
"@Override\n public boolean exists(File file) {\n\treturn false;\n }",
"private void checkAndDeleteFile(String resultLogFileName) {\n\t\t// check whether a file was written\n\t\tfinal File f = new File(resultLogFileName);\n\t\t// The true result log file name has attached time stamps!\n\t\tFile parentDirectory = f.getParentFile();\n\t\tString[] files = parentDirectory.list(new FilenameFilter() {\n\t\t\tpublic boolean accept(File dir, String name) {\n\t\t\t\tif(name.startsWith(f.getName())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\tAssert.assertNotSame(\"No log file was created.\", 0, files.length);\n\t\tFile realF = new File(parentDirectory, files[0]);\n\t\tAssert.assertTrue(\"Created file is empty.\", realF.length() > 0);\n\n\t\t// remove file again\n\t\tif(realF.exists()) {\n\t\t\trealF.delete();\n\t\t}\n\t}",
"protected boolean arff_exists() {\n\t\tFile tmpDir = new File(arff_path + \"\\\\\" + taskdata_name + \".arff\");\n\t\treturn tmpDir.exists();\n\t}",
"private boolean checkLocalFile() throws IOException {\n\t\tPath localfile = Paths.get(userdir, filename);\n\t\tif (Files.exists(localfile, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\tthis.downloadStatus = DownloadEnum.ERROR;\n\t\t\tthis.message = \"same name file on download directory, download has stopped\";\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlocalfiletmp = Paths.get(localfile.toAbsolutePath().toString() + \".tmp\");\n\t\t\tif (Files.exists(localfiletmp, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tlocalFileSize = localfiletmp.toFile().length();\n\t\t\t} else {\n\t\t\t\tFiles.createFile(localfiletmp);\n\t\t\t}\n\t\t\tcfgpath = Paths.get(localfile.toAbsolutePath().toString() + \".pcd.dl.cfg\");// local cache of download file\n\t\t\tif (!Files.exists(cfgpath, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tFiles.createFile(cfgpath);\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(cfgpath.toFile());\n\t\t\tfw.write(url);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\treturn true;\n\t\t}\n\t}",
"private boolean touchFileExists() {\n File f = new File(touchFile);\n return f.exists();\n }",
"public void checkIfXslCreated() {\n final File extStore = Environment.getExternalStorageDirectory();\n File myFile = new File(extStore.getAbsolutePath() + \"/backup/\" + fileName);\n\n if (myFile.exists()) {\n Log.d(\"YES\", \"YES\");\n } else {\n Log.d(\"NO\", \"NO\");\n }\n }",
"boolean hasDeleteFile();",
"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}",
"private boolean cancelBecauseFileExist(File f) {\r\n\t\tif (f.exists()) {\r\n\t\t\tint res = JOptionPane.showInternalConfirmDialog(getContentPane(), \"The file \" + f.getName() + \" already exists. Do you want to replace the existing file?.\", \"File already exists\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null);\r\n\t\t\tif (res == JOptionPane.NO_OPTION) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tf.delete();\r\n\t\treturn false;\r\n\t}",
"public void tempcheck(){\r\n \t//clear last data\r\n if(workplace!=null){\r\n \tFile temp = new File(workplace +\"/temp\");\r\n \tif(temp.exists()){\r\n \t\tFile[] dels = temp.listFiles();\r\n \t\tif(dels[0]!=null){\r\n \t\t\tfor(int i=0; i<dels.length; i++){\r\n \t\t\t\tif(dels[i].isFile()){\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}else{\r\n \t\t\t\t\tFile[] delss = dels[i].listFiles();\r\n \t\t\t\t\tif(delss[0]!=null){\r\n \t\t\t\t\t\tfor(int k=0; k<delss.length; k++){\r\n \t\t\t\t\t\t\tdelss[k].delete();\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t}\r\n \t\t\t\t\tdels[i].delete();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \ttemp.delete();\r\n }\r\n }",
"boolean doesFileExist(String date)\n throws FlooringMasteryPersistenceException;",
"private boolean checkFileExists(String fPath) {\n\t\tFile file = new File(fPath);\n\t\treturn file.exists();\n\t}",
"private boolean existsFile(File testFile) {\n\t\tif (testFile.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean checkExistFile(String aFilePath) {\n\t\treturn eDao.checkExistFile(aFilePath);\n\t}",
"public boolean cacheExist(){\n\t\tFile f = new File(\"./cache.txt\");\n\t\tif(f.exists() && !f.isDirectory()){\n\t\t\t//if the cache is exist\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"private boolean oldEnoughForCleanup(File file)\r\n {\r\n if (minFileAgeMillis == 0)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n long now = System.currentTimeMillis();\r\n return (file.lastModified() < (now - minFileAgeMillis));\r\n }\r\n }",
"private boolean fileExists(Path p) {\n\t\treturn Files.exists(p);\n\t}",
"private void checkValidity() throws FileSystemException {\n\t\tif ( invalidated || cachedCurrentDirectory == null ) {\n\t\t\t\n\t\t\tfillCache();\n\t\t\tinvalidated = false;\n\t\t} \n\t\t\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 }",
"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 }",
"static boolean m1(Path path) {\n\t\tif (Files.exists(path))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"boolean hasReinitializeFile();",
"public boolean exists() {\n return _file.exists();\n }",
"@Override\n\tpublic boolean exists() {\n\t\treturn Files.exists(this.path);\n\t}",
"private boolean existsRotationFile(String clearName, int numberRotation, String extension, Path parent){\n Path newFile = getPathRotationFile(clearName, numberRotation, extension, parent);\n return Files.exists(newFile, LinkOption.NOFOLLOW_LINKS);\n }",
"private boolean deleteFilesNow(File cacheFile)\r\n {\r\n CacheFileProps props = new CacheFileProps(cacheFile);\r\n props.delete();\r\n long fileSize = cacheFile.length();\r\n boolean deleted = cacheFile.delete();\r\n if (deleted)\r\n {\r\n numFilesDeleted++;\r\n sizeFilesDeleted += fileSize;\r\n Deleter.deleteEmptyParents(cacheFile, cache.getCacheRoot());\r\n }\r\n \r\n return deleted;\r\n }",
"Object getUptodatefile();",
"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 }",
"private boolean checkDeletion(Path folder) {\n if (logger.isDebugEnabled()) {\n logger.log(Level.DEBUG, \"Checking for: \" + folder.getFileName());\n }\n\n try {\n FileTime time = Files.getLastModifiedTime(folder);\n Calendar calTime = Calendar.getInstance();\n calTime.setTimeInMillis(time.toMillis());\n calTime.add(Calendar.HOUR_OF_DAY, CLEAN_HOURS);\n\n if (calTime.getTimeInMillis() <= Calendar.getInstance().getTimeInMillis()) {\n return true;\n }\n } catch (Exception ex) {\n logger.log(Level.ERROR, \"Cannot check file\", ex);\n }\n\n return false;\n }",
"public boolean exists() {\n\t\t\n\t\tFile temp = new File(this.path);\n\t\treturn temp.exists();\n\t}",
"public void testGetCachedFileObject() throws IOException {\n FileObject fobj = getFileObject(testFile);\n FileObject parent = fobj.getParent();\n parent = parent.createFolder(\"parent\");\n FileObject child = parent.createData(\"child\");\n monitor.reset();\n FileObject ch = parent.getFileObject(\"child\");\n monitor.getResults().assertResult(0, StatFiles.ALL);\n //second time\n monitor.reset();\n ch = parent.getFileObject(\"child\");\n monitor.getResults().assertResult(0, StatFiles.ALL);\n }",
"public boolean existsLock() throws IOException{\n\t\tint n = 1;\n\t\twhile (n <= maxNum) {\n\t\t\tFile file = new File(baseDir, constructFilename(n));\n\t\t\tif (isLockValid(file)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean exist(String fileName) throws DataAccessException;",
"@Override\n public boolean onCreate() {\n File[] files = getContext().getCacheDir().listFiles();\n for (File file : files) {\n String filename = file.getName();\n if (filename.endsWith(\".tmp\") || filename.startsWith(\"thmb_\")) {\n file.delete();\n }\n }\n return true;\n }",
"public boolean fileExistance(String fileName) {\n File file = getActivity().getFileStreamPath(fileName);\n return file.exists();\n }",
"public Boolean isExist() {\n\t\tif(pfDir.exists())\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean isExist() {\n\t\treturn false;\r\n\t}",
"public boolean existeCache() {\n\t\tFile file = new File(Environment.getExternalStorageDirectory() + \"/\" + pasta + \"/\", \"ccentral.html\");\n\t\tFile file2 = new File(Environment.getExternalStorageDirectory() + \"/\" + pasta + \"/\", \"cfisica.html\");\n\t\tFile file3 = new File(Environment.getExternalStorageDirectory() + \"/\" + pasta + \"/\", \"ccocesp.html\");\n\t\tFile file4 = new File(Environment.getExternalStorageDirectory() + \"/\" + pasta + \"/\", \"cquimica.html\");\n\t\tFile file5 = new File(Environment.getExternalStorageDirectory() + \"/\" + pasta + \"/\", \"cprofessores.html\");\n\t\tFile file6 = new File(Environment.getExternalStorageDirectory() + \"/\" + pasta + \"/\", \"cenfermagem.html\");\n\t\tFile file7 = new File(Environment.getExternalStorageDirectory() + \"/\" + pasta + \"/\", \"csaude.html\");\n\t\tFile file8 = new File(Environment.getExternalStorageDirectory() + \"/\" + pasta + \"/\", \"cdireito.html\");\n\t\tboolean f1 = file.exists();\n\t\tboolean f2 = file2.exists();\n\t\tboolean f3 = file3.exists();\n\t\tboolean f4 = file4.exists();\n\t\tboolean f5 = file5.exists();\n\t\tboolean f6 = file6.exists();\n\t\tboolean f7 = file7.exists();\n\t\tboolean f8 = file8.exists();\n\t\tboolean res = f1 && f2 && f3 && f4 && f5 && f6 && f7 && f8 ;\n\t\t\n\t\tif (res) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean fileExists(String path) throws IOException;",
"private boolean m20375d(File file) {\n C3927c b = DefaultDiskStorage.this.m20339b((DefaultDiskStorage) file);\n boolean z = false;\n if (b == null) {\n return false;\n }\n if (b.f17425a == \".tmp\") {\n return m20376e(file);\n }\n if (b.f17425a == \".cnt\") {\n z = true;\n }\n Preconditions.m20549b(z);\n return true;\n }",
"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 }",
"private void checkFileStatus() throws CustomException, IOException\n\t{\n\t\t//For all .mgf files\n\t\tfor (int i=0; i<mgfFiles.size(); i++)\n\t\t{\n\n\t\t\tString resultFileName = \n\t\t\t\t\tmgfFiles.get(i).substring(0,mgfFiles.get(i).lastIndexOf(\".\"))+\"_Results.csv\";\n\t\t\t//TODO: Cannot write files if checking for file. \n\t\t\t/*\n\t\t\tif (isFileUnlocked(resultFileName))\n\t\t\t\tthrow new CustomException(\"Please close \"+resultFileName, null);\n\t\t\t */\n\t\t}\n\n\t}",
"private static boolean fileExists(String filename) {\n return new File(filename).exists();\n }",
"private boolean markOrDelete(File file, CacheFileProps props)\r\n {\r\n Integer deleteWatchCount = props.getDeleteWatchCount();\r\n\r\n // Just in case the value has been corrupted somehow.\r\n if (deleteWatchCount < 0)\r\n deleteWatchCount = 0;\r\n \r\n boolean deleted = false;\r\n \r\n if (deleteWatchCount < maxDeleteWatchCount)\r\n {\r\n deleteWatchCount++;\r\n \r\n if (log.isDebugEnabled())\r\n {\r\n log.debug(\"Marking file for deletion, deleteWatchCount=\" + deleteWatchCount + \", file: \"+ file);\r\n }\r\n props.setDeleteWatchCount(deleteWatchCount);\r\n props.store();\r\n numFilesMarked++;\r\n }\r\n else\r\n {\r\n if (log.isDebugEnabled())\r\n {\r\n log.debug(\"Deleting cache file \" + file);\r\n }\r\n deleted = deleteFilesNow(file);\r\n }\r\n \r\n return deleted;\r\n }",
"boolean hasFileLoc();",
"public boolean checkIfRememberFileExists()\n {\n File file = new File(System.getProperty(\"user.home\")+\"\\\\remember.ser\");\n if (file.exists()) return true;\n return false; \n }",
"private void ensureFile(File destFile) {\n\t\tif (destFile.exists()) {\n\t\t\tLog.i(\"[\" + destFile.getName() + \"]\"\n\t\t\t\t\t+ \" has already exsited, previous content cleared\");\n\t\t}\n\n\t\ttry {\n\t\t\tdestFile.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public int fileExists(SrvSession sess, TreeConnection tree, String name) {\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Check if the path contains an NTFS stream name\n\n int fileSts = FileStatus.NotExist;\n \n if ( FileName.containsStreamName(name)) {\n \n // Split the path into directory, file and stream name components\n \n String[] paths = FileName.splitPathStream(name); \n\n // Get, or create, the file state for main file path\n \n String filePath = paths[0] + paths[1];\n FileState fstate = getFileState(filePath,dbCtx,true);\n\n // Check if the top level file exists\n \n if ( fstate != null && fstate.fileExists() == true) {\n \n // Get the top level file details\n \n DBFileInfo dbInfo = getFileDetails(name, dbCtx, fstate);\n \n if ( dbInfo != null) {\n\n // Checkif the streams list is cached\n \n StreamInfoList streams = (StreamInfoList) fstate.findAttribute(DBStreamList);\n \n // Get the list of available streams\n\n if ( streams == null) {\n \n // Load the streams list for the file\n \n streams = loadStreamList(fstate, dbInfo, dbCtx, true);\n \n // Cache the streams list\n \n if ( streams != null)\n fstate.addAttribute(DBStreamList, streams);\n }\n \n if ( streams != null && streams.numberOfStreams() > 0) {\n \n // Check if the required stream exists\n \n if ( streams.findStream(paths[2]) != null)\n fileSts = FileStatus.FileExists;\n }\n }\n }\n\n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DB fileExists() name=\" + filePath + \", stream=\" + paths[2] + \", fileSts=\" + FileStatus.asString(fileSts));\n }\n else {\n\n // Get, or create, the file state for the path\n \n FileState fstate = getFileState( name, dbCtx, true);\n \n // Check if the file exists status has been cached\n \n fileSts = fstate.getFileStatus();\n \n if ( fstate.getFileStatus() == FileStatus.Unknown) {\n \n // Get the file details\n \n DBFileInfo dbInfo = getFileDetails(name,dbCtx,fstate);\n if ( dbInfo != null) {\n if ( dbInfo.isDirectory() == true)\n fileSts = FileStatus.DirectoryExists;\n else\n fileSts = FileStatus.FileExists;\n }\n else {\n \n // Indicate that the file does not exist\n \n fstate.setFileStatus( FileStatus.NotExist);\n fileSts = FileStatus.NotExist;\n }\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DB fileExists() name=\" + name + \", fileSts=\" + FileStatus.asString(fileSts));\n }\n else {\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"@@ Cache hit - fileExists() name=\" + name + \", fileSts=\" + FileStatus.asString(fileSts));\n }\n }\n \n // Return the file exists status\n \n return fileSts;\n }",
"@Override\n\t\t\tpublic boolean accept(File dir, String filename)\n\t\t\t{\n\t\t\t\tFile file = new File(path + \"/\" + filename);\n\t\t\t\tLong ago = file.lastModified();\n\t\t\t\tLong now = System.currentTimeMillis();\n\t\t\t\t// 如果最后一次修改时间超过一年:3153600秒\n\t\t\t\tif ((now - ago) > 31536000 / 12)\n\t\t\t\t{\n\t\t\t\t\tfile.delete();\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}",
"private static boolean hasTempPermission() {\n\n if (System.getSecurityManager() == null) {\n return true;\n }\n File f = null;\n boolean hasPerm = false;\n try {\n f = File.createTempFile(\"+~JT\", \".tmp\", null);\n f.delete();\n f = null;\n hasPerm = true;\n } catch (Throwable t) {\n /* inc. any kind of SecurityException */\n }\n return hasPerm;\n }",
"@Override\n\tpublic boolean isLocked() { The lock file must be manually deleted.\n\t\t//\n\t\treturn lockFile.exists();\n\t}",
"@Override\n\tpublic synchronized boolean exists(String key) {\n\t\treturn getFile(key).exists();\n\t}",
"protected boolean csv_exists() {\n\t\tFile tmpDir = new File(csv_path + \"\\\\\" + taskdata_name + \".csv\");\n\t\treturn tmpDir.exists();\n\t}",
"boolean hasUpdateInodeFile();",
"boolean hasFilePath();",
"@Test(timeout = 4000)\n public void test01() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = MockFile.createTempFile(\"ShoppingCart=get&f=xml&dev-t=\", \"\");\n file0.delete();\n boolean boolean0 = fileUtil0.isAgeGood(file0);\n assertFalse(boolean0);\n }",
"public static boolean alreadyExistCheck(String filePath) {\n File f = new File(filePath);\n return f.exists() && !f.isDirectory();\n }",
"public static void insurePathToFileExists(String filename) {\r\n insurePathToFileExists(new File(filename));\r\n }",
"public boolean setTempFile() {\n try {\n tempFile = File.createTempFile(CleanupThread.DOWNLOAD_FILE_PREFIX_PR, FileExt);\n Log.getInstance().write(Log.LOGLEVEL_TRACE, \"RecordingEpisode.setTempFile: \" + tempFile.getAbsolutePath());\n } catch (IOException e) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Exception creating tempfile. \" + e.getMessage());\n return false;\n }\n\n if (tempFile==null || !(tempFile instanceof File)) {\n Log.getInstance().write(Log.LOGLEVEL_ERROR, \"RecordingEpisode.setTempFile: Failed to create valid tempFile.\");\n return false;\n }\n\n return true;\n }",
"public void manageFile() {\n long seconds = System.currentTimeMillis();\n filename = \"sdcard/LocationWise/LocationWiseImages/\" + seconds + \".png\";\n path_to_file = new File(filename);\n if (path_to_file.exists()) {\n boolean delete = path_to_file.delete();\n if (delete == true) {\n writeFile();\n // Toast.makeText(this, \"Deleted Successfully\", Toast.LENGTH_SHORT).show();\n\n } else {\n\n // Toast.makeText(this, \"Deletion Failed\", Toast.LENGTH_SHORT).show();\n }\n\n } else {\n writeFile();\n\n }\n }",
"private static boolean isValidCreate(String pFilePath) {\n\t\tassert pFilePath != null;\n\t\tFile f = new File(pFilePath);\n\t\treturn f.exists();\n\t}",
"boolean getWorkfileExists();",
"public abstract boolean doesExist();",
"public boolean isCachedFile() {\n return true;\n }",
"@Override\r\n\t\t\tpublic Boolean call() throws Exception {\n\t\t\t\tS3FileHandle updated = fileHandleDao.createFile(fh);\r\n\t\t\t\ttoDelete.add(updated.getId());\r\n\t\t\t\treturn true;\r\n\t\t\t}",
"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}",
"FileState checkFileState(FsPath path);",
"private boolean fileNameExists(String fileName) {\n return inputOutputStream.hexists(Constants.DIR_METADATA_BYTES, fileName.getBytes());\n }",
"private void checkForOrphanFiles() {\n List<String> dbFileNames = getPhotoFilesInDatabase();\n List<String> dirFileNames = getPhotoFilesInDirectory();\n\n // Find files that are not in the db.\n dirFileNames.removeAll(dbFileNames);\n\n // Create a new photo shoot for the orphaned photos.\n if (dirFileNames.size() > 0) {\n long shootId = createOrphanShoot(dirFileNames);\n\n GhostPhotoPreferences.setHasOrphanPhotoShootBeenCreated(getApplicationContext(), true);\n Log.d(LOG_TAG, \"checkForOrphanFiles: Created orphan photo shoot: \" + shootId);\n }\n }",
"public void testNonExistentFile() {\n TestWARCBatchJob job = new TestWARCBatchJob();\n boolean success =\n job.processFile(NON_EXISTENT_FILE, new ByteArrayOutputStream());\n assertEquals(\"Should record exactly one exception\",\n job.getExceptionArray().length, 1);\n assertFalse(\"Should fail on missing file\", success);\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n\n Log.d(\"Paul\", \"delete file\");\n\n File file = new File(Environment.getExternalStorageDirectory().getPath(), getString(R.string.temp_file_name));\n try {\n // if file exists in memory\n if (file.exists()) {\n file.delete();\n Log.d(\"Paul\", \"file deleted\");\n }\n } catch (Exception e) {\n Log.d(\"Paul\",\"Some error happened?\");\n }\n\n }",
"@Test\n public void testFileInDirectoryFileExists() {\n\n File file1 = new File(\"file1\");\n parent.storeFile(file1);\n assertTrue(parent.fileInDirectory(\"file1\"));\n }",
"private static boolean assetIsInPersistentCache(MD5Key id) {\n \n \t\treturn getAssetCacheFile(id).exists() && getAssetCacheFile(id).length() > 0;\n \t}",
"private static boolean needsUpdate(File file, File oldFile, JsonObject old_manifest, JsonObject obj, long size, String hash) {\n try {\n boolean check1 = !oldFile.exists();\n if (check1) return true;\n boolean check2 = !file.exists();\n if (check2) return true;\n boolean check3 = file.length() != size;\n if (check3) return true;\n boolean check4 = old_manifest == null;\n if (check4) return true;\n boolean check5 = old_manifest.get(\"files\") == null;\n if (check5) return true;\n boolean check6 = getHashFromPath(old_manifest.get(\"files\").getAsJsonArray(), obj.get(\"path\").getAsString()) == null;\n if (check6) return true;\n boolean check7 = !getHashFromPath(old_manifest.get(\"files\").getAsJsonArray(), obj.get(\"path\").getAsString()).equals(hash);\n if (check7) return true;\n\n return false;\n } catch (Exception ex) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n ex.printStackTrace(pw);\n log(sw.toString());\n return true;\n }\n }",
"public String checkDuplicates(String path)\n\t{\n\t\tFile file = new File(path);\n\n\t\t//If this file has already been created\n\t\tif(duplicates.containsKey(file))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tint append = duplicates.get(file).size();\n\t\n\t\t\t\tLinkedList<File> newVal = duplicates.get(file);\n\n\t\t\t\t//create new filename\n\t\t\t\tFile newFile = File.createTempFile(file.getName().substring(0, file.getName().length()-4), \".csv\", new File(aida.getConfigValue(\"aida_dir\")));\n\t\t\t\tnewFile.deleteOnExit();\n\t\n\t\t\t\tnewVal.add(newFile);\n\t\n\t\t\t\t//store record of this file in the duplicates hashmap\n\t\t\t\tduplicates.put(file, newVal);\n\t\t\t\t\n\t\t\t\tfile = newFile;\n\t\t\t}\n\t\t\tcatch(IOException e)\n\t\t\t{\n\t\t\t\taida.logAdd(\"!Duplicate file could not be created\");\n\t\t\t\taida.logAdd(\"!\"+e.getMessage());\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tduplicates.put(file, new LinkedList<File>());\n\t\t}\n\n\t\t//return the (possibly renamed) filename\n\t\treturn file.getAbsolutePath();\n\t}",
"public static boolean logExiste(String nomeArquivo) throws InterruptedException{\n\t\tFile file = new File(nomeArquivo);\n\t\tif(!file.exists()){\n\t\t\tSystem.out.print(\"\\nNenhum contrato cadastrado.\");\n\t\t\tThread.sleep(3000);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean exists() {\n return Files.exists(path);\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 }",
"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 isEmptyFile(String filename) {\n try (InputStream in = IO.openFile(filename)) {\n int b = in.read();\n return (b == -1);\n } catch (IOException ex) {\n throw IOX.exception(ex);\n }\n }",
"public boolean existCache() {\n return false;\n }",
"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}",
"protected void invalidateCache() {\r\n\tcurrentFilesFresh = false;\r\n }",
"boolean hasCompleteFile();",
"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 hasFileInfo();",
"boolean hasFileInfo();",
"public boolean checkCache(HttpServletRequest request, HttpServletResponse response, File file) throws IOException\n {\n String requestIfModifiedSince = request.getHeader(IF_MODIFIED_SINCE);\n Date lastModified = new Date(file.lastModified());\n try {\n if(requestIfModifiedSince!=null){\n Date requestDate = getDateFromHttpDate(requestIfModifiedSince);\n if (file != null)\n if (!requestDate.before(lastModified))\n { // Not modified since last time\n response.setHeader(LAST_MODIFIED, request.getHeader(IF_MODIFIED_SINCE));\n response.sendError(HttpServletResponse.SC_NOT_MODIFIED);\n return true; // Success - use your cached copy\n }\n }\n } catch (ParseException e) {\n // Fall through\n }\n // If they want it again, send them my cached copy\n if ((file == null) || (!file.exists()))\n return false; // Error - cache doesn't exist\n response.addHeader(LAST_MODIFIED, getHttpDate(lastModified));\n \n InputStream inStream = new FileInputStream(file);\n OutputStream writer = response.getOutputStream();\n copyStream(inStream, writer);\n inStream.close();\n writer.close();\n return true; // Success - I returned the cached copy\n }",
"public boolean isExists(){\n for(int i=0;i<=5;i++){\n //File file=new File(\"/sdcard/\"+videosName[i]+\".mp4\");\n File file=new File(\"/sdcard/\"+videosName[i]+\".3gp\");\n if(!file.exists()){\n Log.e(TAG,videosName[i]+\"不存在\");\n return false;\n }\n Log.e(TAG,videosName[i]+\"存在\");\n }\n return true;\n }",
"boolean hasFileLocation();",
"@java.lang.Deprecated boolean hasFile();",
"public void testIsNewer_fails() throws Exception {\n TestableAndroidNativeDevice testDevice = new TestableAndroidNativeDevice() {\n @Override\n public String getProperty(String name) throws DeviceNotAvailableException {\n return \"Asia/Seoul\";\n }\n @Override\n protected long getDeviceTimeOffset(Date date) throws DeviceNotAvailableException {\n return 0;\n }\n };\n File localFile = FileUtil.createTempFile(\"timezonetest\", \".txt\");\n try {\n localFile.setLastModified(1470906000000l); // Thu, 11 Aug 2016 09:00:00 GMT\n IFileEntry remoteFile = EasyMock.createMock(IFileEntry.class);\n EasyMock.expect(remoteFile.getDate()).andReturn(\"2016-08-11\");\n EasyMock.expect(remoteFile.getTime()).andReturn(\"18:10\");\n EasyMock.replay(remoteFile);\n assertFalse(testDevice.isNewer(localFile, remoteFile));\n EasyMock.verify(remoteFile);\n } finally {\n FileUtil.deleteFile(localFile);\n }\n }",
"boolean dealWithFileOverwrite(String filename);",
"public boolean exists(File file) {\n return file.exists();\n }",
"boolean getFileErr();",
"boolean hasInodeFile();",
"boolean hasRetrieveFile();",
"boolean exists(String path) throws IOException;",
"public static void insurePathToFileExists(File f) {\r\n File p = f.getParentFile();\r\n //System.out.println(\"uu.iPE: parent of \"+filename+\" is \"+parent);\r\n\r\n if (!p.exists()) {\r\n // parent doesn't exist, create it:\r\n if (!p.mkdirs()) {\r\n throw new IllegalStateException(\"Unable to make directory \" + p.getPath());\r\n } // endif -- second mkdir unsuc\r\n } // endif -- parent exists\r\n }",
"boolean safeIsFile(FsPath path);"
] | [
"0.6554806",
"0.65343297",
"0.6465328",
"0.646381",
"0.64128536",
"0.6386362",
"0.6376408",
"0.63568",
"0.6340106",
"0.6338064",
"0.62603265",
"0.62565804",
"0.6250887",
"0.61830956",
"0.61408633",
"0.6121118",
"0.6114681",
"0.60934407",
"0.60418546",
"0.5984287",
"0.59801596",
"0.59769905",
"0.5967417",
"0.59653306",
"0.5958536",
"0.5931437",
"0.59236056",
"0.59074754",
"0.5904439",
"0.5879152",
"0.58640635",
"0.58510774",
"0.5844703",
"0.5831677",
"0.58315617",
"0.58308285",
"0.5829169",
"0.5828736",
"0.58148867",
"0.57995373",
"0.5795516",
"0.5790758",
"0.578672",
"0.57598263",
"0.57589006",
"0.57584304",
"0.57475764",
"0.57415104",
"0.5720575",
"0.57166874",
"0.5713026",
"0.57122016",
"0.5708887",
"0.57074773",
"0.5706685",
"0.5706128",
"0.57053244",
"0.56889933",
"0.56795734",
"0.56746054",
"0.56736547",
"0.5664247",
"0.5658259",
"0.56568927",
"0.56537294",
"0.5651881",
"0.5649279",
"0.56460524",
"0.5643088",
"0.5637672",
"0.56226635",
"0.5621603",
"0.56180656",
"0.56179184",
"0.56161857",
"0.5612877",
"0.5608875",
"0.5604611",
"0.5603891",
"0.560386",
"0.5595479",
"0.55905265",
"0.5581912",
"0.55795383",
"0.5567389",
"0.55667514",
"0.55636054",
"0.55636054",
"0.5556513",
"0.5552725",
"0.5552576",
"0.5549144",
"0.55481106",
"0.5547763",
"0.55414027",
"0.55393904",
"0.55382115",
"0.5535329",
"0.553199",
"0.5526747",
"0.55120444"
] | 0.0 | -1 |
Get data from transition grid | public Set<Transition> getGridSectionDataAsTransitionSet(String sectionName) {
ListGridRecord[] records = super.getGridData(sectionName);
if (records != null) {
Set<Transition> transitions = new HashSet<Transition>();
for (ListGridRecord r : records) {
TransitionRecord record = (TransitionRecord) r;
Transition trans = record.getTransition();
if (trans != null) {
transitions.add(trans);
}
}
return transitions;
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public DataImpl getData() {\n RealTupleType domain = overlay.getDomainType();\n TupleType range = overlay.getRangeType();\n \n float[][] setSamples = nodes;\n float r = color.getRed() / 255f;\n float g = color.getGreen() / 255f;\n float b = color.getBlue() / 255f;\n float[][] rangeSamples = new float[3][setSamples[0].length];\n Arrays.fill(rangeSamples[0], r);\n Arrays.fill(rangeSamples[1], g);\n Arrays.fill(rangeSamples[2], b);\n \n FlatField field = null;\n try {\n GriddedSet fieldSet = new Gridded2DSet(domain,\n setSamples, setSamples[0].length, null, null, null, false);\n FunctionType fieldType = new FunctionType(domain, range);\n field = new FlatField(fieldType, fieldSet);\n field.setSamples(rangeSamples);\n }\n catch (VisADException exc) { exc.printStackTrace(); }\n catch (RemoteException exc) { exc.printStackTrace(); }\n return field;\n }",
"public int[][] calGrid(CensusData data){\n\t\tGridThread[] gt = new GridThread[THREAD_NUM];\n\t\tint[][] result = new int[y + 1][x + 1];\n\t\tint[] xOrY = new int[]{x, y};\n\t\tString[][] lock = new String[y + 1][x + 1];\n\t\tfor(int i = 0; i < y + 1; i++) {\n\t\t\tfor(int j = 0; j < x + 1; j++) {\n\t\t\t\tlock[i][j] = i + \",\" + j;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < THREAD_NUM - 1; i++) {\n\t\t\tint lo = i * (data.data_size / THREAD_NUM);\n\t\t\tint hi = (i + 1) * (data.data_size / THREAD_NUM);\n\t\t\tgt[i] = new GridThread(lo, hi, lock, result, map, xOrY, data);\n\t\t\tgt[i].start();\n\t\t}\n\t\tint lo = (THREAD_NUM -1 ) * (data.data_size / THREAD_NUM);\n\t\tgt[THREAD_NUM - 1] = new GridThread(lo, data.data_size, lock, result, map, xOrY, data);\n\t\tgt[THREAD_NUM - 1].start();\n\t\tfor(int i = 0; i < THREAD_NUM; i++) {\n\t\t\ttry {\n\t\t\t\tgt[i].join();\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn result;\n\t}",
"private List<Map<Player, Integer>> collectBoardData() {\n List<Map<Player, Integer>> list = new ArrayList<>();\n\n for (int i = 0; i < board.length; i++) {\n list.add(collectLine(getRow(i)));\n list.add(collectLine(getColumn(i)));\n }\n\n list.add(collectLine(getMainDiagonal()));\n list.add(collectLine(getSecondDiagonal()));\n\n return list;\n }",
"private static String[][] getDataForGrid(CWaypoint[] wayPoints) {\r\n\t\tString data[][] = new String[wayPoints.length][1];\r\n\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\tdata[i][0] = wayPoints[i].getTime().toString();\r\n\t\t}\r\n\t\treturn data;\r\n\t}",
"public MMPCOrderNodeNext[] getTransitions() {\n\n MMPCOrderNodeNext[]\tretValue\t= new MMPCOrderNodeNext[m_next.size()];\n\n m_next.toArray(retValue);\n\n return retValue;\n\n }",
"public Gr[] fetchObservations (int start, int stop){\n\t\tArrayList<Gr> subAL = new ArrayList<Gr>();\n\t\tint[] pos = grGraph.getBasePositions();\n\t\tfloat[] val = grGraph.getValues();\n\t\tfor (int i=0; i< pos.length; i++){\n\t\t\tif (pos[i]>= start && pos[i]<= stop) subAL.add(new Gr(pos[i], val[i]));\n\t\t}\n\t\tGr[] slice = new Gr[subAL.size()];\n\t\tsubAL.toArray(slice);\n\t\treturn slice;\n\t}",
"@DataProvider(name=\"nearestTSS\")\n public Object[][] getNearestTSSData() {\n return new Object[][] {\n { new SimpleInterval(\"chr1\", 1, 50), \"A\" },\n { new SimpleInterval(\"chr2\", 105, 110), \"B\" }, // Before first gene on contig\n { new SimpleInterval(\"chr2\", 155, 160), \"B\" }, // Closer left\n { new SimpleInterval(\"chr2\", 160, 195), \"C\" }, // Closer right\n { new SimpleInterval(\"chr2\", 3000, 4000), \"D\" }, // After last gene on contig\n { new SimpleInterval(\"chr3\", 33, 33), \"E\" },\n { new SimpleInterval(\"chr4\", 900, 4000), null }, // On different contig from TSS data\n };\n }",
"Animation getStructure();",
"@Override\n public Tile[][] getGrid() { return grid; }",
"private void getGraph (ActionEvent evt) {\n\t\t\t//TODO\n\t}",
"com.ctrip.ferriswheel.proto.v1.Grid getGrid();",
"List<DataGatherMoment> getDataGatherMoments();",
"private void prepareTransitions() {\n setExitTransition(TransitionInflater.from(getContext())\n .inflateTransition(R.transition.grid_exit_transition));\n\n // A similar mapping is set at the ImagePagerFragment with a setEnterSharedElementCallback.\n setExitSharedElementCallback(\n new SharedElementCallback() {\n @Override\n public void onMapSharedElements(List<String> names, Map<String, View> sharedElements) {\n // Locate the ViewHolder for the clicked position.\n RecyclerView.ViewHolder selectedViewHolder = mPhotosListView\n .findViewHolderForAdapterPosition(MainActivity.currentPosition);\n if (selectedViewHolder == null) {\n return;\n }\n\n // Map the first shared element name to the child ImageView.\n sharedElements\n .put(names.get(0), selectedViewHolder.itemView.findViewById(R.id.ivPhoto));\n }\n });\n }",
"public int[][] getTransitionMatrix() {\n\t\treturn null;\n\t}",
"int[][] getData()\n {\n return block;\n }",
"private void constructTransitionMatrix() {\r\n\t\tfor(Node node: mNodes) {\r\n\t\t\tint nodeId = node.getId();\r\n\t\t\tint outDegree = node.getOutDegree();\r\n\t\t\tArrayList<NodeTransition> transitionList = new ArrayList<NodeTransition>();\r\n\t\t\t\r\n\t\t\tSet<Integer> outEdges = getOutEdges(nodeId);\r\n\t\t\tfor(Integer edgeId: outEdges) {\r\n\t\t\t\tint toId = getEdge(edgeId).getToId();\r\n\t\t\t\tdouble pTransition = (double) getEdge(edgeId).getWeight() / (double) outDegree;\r\n\t\t\t\ttransitionList.add( new NodeTransition(toId, pTransition) );\r\n\t\t\t}\r\n\t\t\tmTransition.add( transitionList );\r\n\t\t}\r\n\t}",
"@JavascriptInterface\n public float[] getData() {\n float[]mis;\n int i,k;\n mis[0]=misC;\n for(k=0;k<12;k++){\n for (i=0;i<(k+1)*misC;i++){\n mis[k*i+1]=misure[i][k];\n }\n }\n\n return mis; // JS non ha gli array bidimensionali !!!!\n }",
"public MapTile[] getData() {\n\t\treturn this.data;\n\t}",
"public List<Grid> getPossibleMoves(Grid g){\n\t\tint i=g.row, j=g.col;\n\t\tif(i>=0 && i<data.length && j>=0 && j<data[i].length){\n\t\t\tList<Grid> list=new ArrayList<>();\n\t\t\tif(isFree(i, j-1)) list.add(new Grid(i,j-1));\n\t\t\tif(isFree(i-1, j-1)) list.add(new Grid(i-1,j-1));\n\t\t\tif(isFree(i-1, j)) list.add(new Grid(i-1,j));\n\t\t\tif(isFree(i-1, j+1)) list.add(new Grid(i-1,j+1));\n\t\t\tif(isFree(i, j+1)) list.add(new Grid(i,j+1));\n\t\t\tif(isFree(i+1, j+1)) list.add(new Grid(i+1,j+1));\n\t\t\tif(isFree(i+1, j)) list.add(new Grid(i+1,j));\n\t\t\tif(isFree(i+1, j-1)) list.add(new Grid(i+1,j-1));\n\t\t\treturn list;\n\t\t}\n\t\treturn null;\n\t}",
"public ISlideDataElement getSlideDataElement(int row, int col);",
"public String[][] rowData(){\n\t\t int n=(int) ((endeInterval-startInterval)/schritt);\n\t\t String[][] Data = new String[n+1][2];\n\t\t for(int i = 0;i<=n;i++){\n\t\t\t Data[i][0] = String.valueOf(startInterval + i*schritt);\n\t\t\t Data[i][1] = String.valueOf(Auswerten.plotter((startInterval + i*schritt),funcString));\n\t\t }\n\t\treturn Data ; \n\t }",
"@Override\n public Raster getData() {\n final Rectangle rect = new Rectangle(getMinX(), getMinY(), getWidth(),\n getHeight());\n return getData(rect);\n }",
"public boolean getData(int x,int y){\r\n\t\treturn grid[x][y];\r\n\t}",
"Object getDataValue(final int row, final int column);",
"public interface IDataSource {\n\n Mat getX();\n\n Mat getY();\n\n List<Mat> getThetas();\n\n}",
"public static int[][] GetValues() {\n\t\t\treturn gridValues;\n\t\t}",
"int getStateValues(int index);",
"public int[][][] getdata(){\r\n\t\theight = BfImage.getHeight();\r\n\t\twidth = BfImage.getWidth();\r\n\t\tint[][][] data = new int[height][width][3];\r\n\t\t\r\n\t\tfor (int x = 0; x < width; x++)\t\t\t\t//store image's RGB data\r\n\t\t\tfor (int y = 0; y < height; y++) {\r\n\t\t\t\tint rgb = BfImage.getRGB(x, y);\r\n\t\t\t\tif (rgb == 0 || rgb == 3){\t//is transparent || Transparency.TRANSLUCENT\r\n\t\t\t\t\tdata[y][x][0] = -1;\r\n\t\t\t\t\tdata[y][x][1] = -1;\r\n\t\t\t\t\tdata[y][x][2] = -1;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tdata[y][x][0] = Utils.getR(rgb);\r\n\t\t\t\t\tdata[y][x][1] = Utils.getG(rgb);\r\n\t\t\t\t\tdata[y][x][2] = Utils.getB(rgb);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn data;\r\n\t}",
"com.rpg.framework.database.Protocol.MonsterState getData(int index);",
"Collection getData();",
"List<Coord> getDependents(int col, int row);",
"private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }",
"private void prepareDataAnimation() {\n for (SliceValue value : pieChartData.getValues()) {\n value.setTarget((float) Math.random() * 30 + 15);//更新数据\n }\n detailLineChart.startDataAnimation();\n }",
"private static void collectData(Cell cell){\n float distMidX = midX-cell.x;\n float distMidY = midY-cell.y;\n float thisDist = (float) (Math.sqrt(distMidX*distMidX+distMidY*distMidY));\n int thisAng = (int) (180.f*Math.atan2(distMidY,distMidX)/Math.PI);\n thisAng = (thisAng<0) ? thisAng+360 : (thisAng>360) ? thisAng-360 : thisAng;\n float tempT = (cell.quiescent) ? Pars.divMax/Pars.divConv : 1.f/(cell.envRespDiv()*Pars.divConv);\n Data.findDistStats(thisDist,thisAng,tempT,cell.envRespSp()/Pars.speedConv,cell.prevDiv/Pars.divConv,cell.prevSp/Pars.speedConv);//collect -> Data.popR\n Data.findIR(cell.x, cell.y, cell.pop);//collect infected and recruited sample\n }",
"public int[][] getGrid()\n {\n return grid;\n }",
"E getData(int index);",
"public RegionTransitionData() {}",
"private void graphInfo() {\n \n this.distances = new double[this.cities.size()][this.cities.size()];\n \n City c1, c2;\n \n // take the city\n for (int i = 0; i < this.cities.size(); i++) {\n // go through all the other cities\n c1 = this.cities.get(i);\n for (int j = 0; j < this.cities.size(); j++) {\n c2 = this.cities.get(j);\n this.distances[i][j] = c1.to(c2);\n }\n }\n \n }",
"public long[][] getTransitionIds() {\n\t\treturn this.transitionIds;\n\t}",
"private static String[][] getDataForGrid(TrackPointOverlay trackPointOverlay) {\r\n\t\tString data[][] = new String[trackPointOverlay.getVertexCount()][1];\r\n\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\tdata[i][0] = trackPointOverlay.getWaypoint(i).getTime() == null ? \"\"\r\n\t\t\t\t\t: dateFormat.format(trackPointOverlay.getWaypoint(i)\r\n\t\t\t\t\t\t\t.getTime());\r\n\t\t}\r\n\t\treturn data;\r\n\t}",
"float[] getColorData(int trisCount, int color) {\n float[] colDat = new float[trisCount * 4];\n float alpha = 255;\n float red = 255;\n float green = 255;\n float blue = 255;\n if(color != -1) {\n alpha = color >> 24 & 0xff;\n red = color >> 16 & 0xff;\n green = color >> 8 & 0xff;\n blue = color & 0xff;\n }\n// Log.e(\"Modelbase\", \"shift = \" + red + \",\" + green + \",\" + blue + \",\" + alpha);\n red /= 255f;\n green /= 255f;\n blue /= 255f;\n alpha /= 255f;\n// Log.e(\"Modelbase\", \"div by 255 = \" + red + \",\" + green + \",\" + blue + \",\" +\n// alpha);\n for (int i = 0; i < colDat.length; i += 4) {\n colDat[i] = red;\n colDat[i + 1] = green;\n colDat[i + 2] = blue;\n colDat[i + 3] = alpha;\n }\n return colDat;\n }",
"public Object[][] buildNewGraphDataModel() {\r\n\t\t\r\n\t\tresetDataStructures();\r\n\t\tGraph g = UIFacade.getInstance().getGraph();\r\n\t\t\r\n\t\tObject[][] result = new Object[g.getN()][5];\r\n\t\t\r\n\t\tfor (int i = 0; i < g.getN(); i++) {\r\n\t\t\tNode node = g.getNode(i);\r\n\t\t\tComponentProperties cp = node.getProperties();\r\n //\t\t\t ID\r\n\t\t\tresult[i][0] = new Integer(\r\n\t\t\t\t\t((ID)cp.getPropertyByName(\"ID\")).getValue()); \t\t\t\r\n\t\t\tresult[i][1] = new Integer(DEFAULT_CLIENT_DEMAND); // Demand\t\t\t\r\n\t\t\tresult[i][2] = new Double(DEFAULT_CLIENT_TW_BEGIN);\r\n\t\t\tresult[i][3] = new Double(DEFAULT_CLIENT_TW_END);\r\n\t\t\tresult[i][4] = new Double(DEFAULT_CLIENT_TW_SERVICE);\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public G getData (){\n return this._data;\n }",
"public final Layers getData()\r\n {\r\n return _theData;\r\n }",
"public Grid2DByte getWeatherGrid() {\n if (useCache && (cacheId != null)) {\n try {\n @SuppressWarnings(\"unchecked\")\n ICache<IGrid2D> diskCache = CacheFactory.getInstance()\n .getCache(\"GFE\");\n\n return (Grid2DByte) diskCache.getFromCache(cacheId);\n } catch (CacheException e) {\n statusHandler.handle(Priority.ERROR,\n \"Unable to load data from GFE cache.\", e);\n }\n }\n\n return this.weatherGrid;\n }",
"private void getActivityData(String accessToken, boolean getGoal) {\r\n // Hide previous and next buttons until new data is loaded\r\n Button btnPrev = findViewById(R.id.btn_prev);\r\n btnPrev.setVisibility(View.GONE);\r\n Button btnNext = findViewById(R.id.btn_next);\r\n btnNext.setVisibility(View.GONE);\r\n\r\n // Call method to get data based on data type\r\n switch(dataType) {\r\n case \"NON-SED\":\r\n getDayNonSedTimeData(accessToken);\r\n break;\r\n case \"CALORIE\":\r\n getWeekCalorieData(accessToken, getGoal);\r\n break;\r\n case \"ACTIVE\":\r\n getWeekActiveTimeData(accessToken);\r\n break;\r\n }\r\n }",
"@DataProvider(name = \"tasksForUserStory\")\n\tpublic Object[][] createData1() {\n\t\treturn new Object[][] {\n\t\t\t\t{\"Task 1\"}, \n\t\t\t\t{\"Task 2\"},\n\t\t\t\t{\"Task 3\"},\n\t\t\t\t{\"Task 4\"} \n\t\t};\n\t}",
"private void constructTransitionTransposeMatrix() {\r\n\t\tfor(int i=0; i<getNodeCnt(); i++) {\r\n\t\t\tArrayList<NodeTransition> transitionList = new ArrayList<NodeTransition>();\r\n\t\t\tmTransitionTranspose.add( transitionList );\r\n\t\t}\r\n\t\tfor(Node node: mNodes) {\r\n\t\t\tint fromId = node.getId();\r\n\t\t\tint outDegree = node.getOutDegree();\r\n\t\t\t\r\n\t\t\tSet<Integer> outEdges = getOutEdges(fromId);\r\n\t\t\tfor(Integer edgeId: outEdges) {\r\n\t\t\t\tint toId = getEdge(edgeId).getToId();\r\n\t\t\t\tdouble pTransition = (double) getEdge(edgeId).getWeight() / (double) outDegree;\r\n\t\t\t\t\r\n\t\t\t\tArrayList<NodeTransition> transitionList = mTransitionTranspose.get(toId);\r\n\t\t\t\ttransitionList.add( new NodeTransition(fromId, pTransition) );\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Object[][] retrieveDataBasedOnViewSeq(ArrayList<String> columns) {\n Object cellData;\r\n Object[][] data = new Object[this.viewSequence.size()][columns.size()];\r\n int j;\r\n int columnType;\r\n\r\n for (int i = 0; i < this.viewSequence.size(); i++) {\r\n j = 0;\r\n for (String column : columns) {\r\n columnType = this.getColumnType(column);\r\n\r\n if (isNumberColumn(columnType)) {\r\n cellData = this.getMeasureColumnData(column, this.viewSequence.get(i));//this.getFieldValueBigDecimal(i,column);\r\n } else {\r\n cellData = this.getDimensionColumnData(column, this.viewSequence.get(i)); //hardcoding not good assuming C is Dimension\r\n }\r\n data[i][j] = cellData;\r\n j++;\r\n }\r\n }\r\n // long endTime = System.currentTimeMillis();\r\n// \r\n return data;\r\n }",
"List<Point> getPath(int grid[][], Point src, Point dest);",
"public int[][] getState(){\r\n return this.state;\r\n }",
"@Parameters\n public static Iterable<Object[]> getData() {\n List<Object[]> obj = new ArrayList<>();\n obj.add(new Object[] {3, 12});\n obj.add(new Object[] {2, 8});\n obj.add(new Object[] {1, 4});\n \n return obj;\n }",
"private void getTiles() {\n for (int i=0; i<rows.size(); i++) {\n LinearLayout row = rows.get(i);\n int count = row.getChildCount();\n for (int j=0; j<count; j++) {\n LinearLayout tile = (LinearLayout) row.getChildAt(j);\n TextView textView = (TextView) tile.getChildAt(1);\n String text = (String) textView.getText();\n String id = \"tile\" + text.replaceAll(\"\\\\s+\",\"\");\n tiles.put(id, tile);\n }\n }\n }",
"public Grid generateGrid(){\n myGrid = new RectGrid();\n myStates = new HashMap<>();\n\n for(int row = 0; row < imageHeight; row++){\n for(int column = 0; column < imageWidth; column++){\n int color = myImage.getRGB(column, row);\n int blue = color & 0xff;\n int green = (color & 0xff00) >> 8;\n int red = (color & 0xff0000) >> 16;\n\n int stateValue = color*-1;\n System.out.println(stateValue);\n //int stateValue = Integer.parseInt(hex, 16);\n //System.out.println(stateValue);\n\n Cell myCell = new RPSCell();\n myCell.setState(stateValue);\n myGrid.placeCell(row, column, myCell);\n\n Color myColor = Color.rgb(red, green, blue);\n myStates.put(stateValue, myColor);\n }\n }\n return myGrid;\n }",
"public Table<Integer, Integer, String> getData();",
"public float[] getData()\n {\n return this.pixels;\n }",
"private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}",
"public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}",
"private void getFlowData() {\n\t\tdbService.getCacheLastUpdated(Tables.STATIONS, new ListCallback<GenericRow>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(List<GenericRow> result) {\n\t\t\t\tString currentMap = localStorage.getItem(\"KEY_CURRENT_MAP\");\n\t\t\t\tboolean shouldUpdate = true;\n\n\t\t\t\tif (!result.isEmpty()) {\n\t\t\t\t\tdouble now = System.currentTimeMillis();\n\t\t\t\t\tdouble lastUpdated = result.get(0).getDouble(CachesColumns.CACHE_LAST_UPDATED);\n\t\t\t\t\tshouldUpdate = (Math.abs(now - lastUpdated) > (3 * 60000)); // Refresh every 3 minutes.\n\t\t\t\t}\n\n\t\t\t view.showProgressIndicator();\n\t\t\t \n\t\t\t if (!currentMap.equalsIgnoreCase(\"seattle\")) {\n\t\t\t \tshouldUpdate = true;\n\t\t\t\t\tlocalStorage.setItem(\"KEY_CURRENT_MAP\", \"seattle\");\n\t\t\t }\n\t\t\t \n\t\t\t if (shouldUpdate) {\n\t\t\t \ttry {\n\t\t\t \t String url = Consts.HOST_URL + \"/api/flowdata/MinuteDataNW\";\n\t\t\t \t JsonpRequestBuilder jsonp = new JsonpRequestBuilder();\n\t\t\t \t jsonp.setTimeout(30000); // 30 seconds\n\t\t\t \t jsonp.requestObject(url, new AsyncCallback<FlowDataFeed>() {\n\n\t\t\t \t\t\t@Override\n\t\t\t \t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t \t\t\t\tview.hideProgressIndicator();\n\t\t\t \t\t\t\tGWT.log(\"Failure calling traffic flow api.\");\n\t\t\t \t\t\t}\n\n\t\t\t \t\t\t@Override\n\t\t\t \t\t\tpublic void onSuccess(FlowDataFeed result) {\n\t\t\t \t\t\t\tstationItems.clear();\n\t\t\t \t\t\t\t\n\t\t\t \t\t\t\tif (result.getFlowData() != null) {\n\t\t\t \t\t\t\t\tint numStations = result.getFlowData().getStations().length();\n\t\t\t \t\t\t\t\tString timestamp = result.getFlowData().getTimestamp();\n\t\t\t \t\t\t\t\ttimestamp = timestamp.replaceAll(\"PST|PDT\", \"\");\n\t\t\t \t\t\t\t\tDate date = parseDateFormat.parse(timestamp);\n\t\t\t \t\t\t\t\tString lastUpdated = displayDateFormat.format(date);\n\t\t\t \t\t\t\t\tlocalStorage.setItem(\"KEY_LAST_UPDATED\", lastUpdated);\n\t\t\t \t\t\t\t\tStationItem item;\n\t\t\t \t\t\t\t\t\n\t\t\t \t\t\t\t\tfor (int i = 0; i < numStations; i++) {\n\t\t\t \t\t\t\t\t\tString stationId = result.getFlowData().getStations().get(i).getId();\n\t\t\t \t\t\t\t\t\tString status = result.getFlowData().getStations().get(i).getStat();\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\tif (stationItemsMap.containsKey(stationId) && status.equalsIgnoreCase(\"good\")) {\n\t\t\t\t \t\t\t\t\t\titem = new StationItem();\n\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t \t\t\t\t\t\titem.setId(stationId);\n\t\t\t \t\t\t\t\t\t\titem.setVolume(result.getFlowData().getStations().get(i).getVol());\n\t\t\t \t\t\t\t\t\t\titem.setSpeed(result.getFlowData().getStations().get(i).getSpd());\n\t\t\t \t\t\t\t\t\t\titem.setOccupancy(result.getFlowData().getStations().get(i).getOcc());\n\t\t\t \t\t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\t\tstationItems.add(item);\n\t\t\t \t\t\t\t\t\t}\n\t\t\t \t\t\t\t\t}\n\t\t\t \t\t\t\t}\n\t\t\t \t\t\t\t\n\t\t\t \t\t\t\t// Purge existing stations covered by incoming data\n\t\t\t \t\t\t\tdbService.deleteStations(new VoidCallback() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t\t\t\t\t// Bulk insert all the new stations and data.\n\t\t\t\t\t\t\t\t\t\tdbService.insertStations(stationItems, new RowIdListCallback() {\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t\t\t\tview.hideProgressIndicator();\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void onSuccess(List<Integer> rowIds) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Update the cache table with the time we did the update\n\t\t\t\t\t\t\t\t\t\t\t\tList<CacheItem> cacheItems = new ArrayList<CacheItem>();\n\t\t\t\t\t\t\t\t\t\t\t\tcacheItems.add(new CacheItem(Tables.STATIONS, System.currentTimeMillis()));\n\t\t\t\t\t\t\t\t\t\t\t\tdbService.updateCachesTable(cacheItems, new VoidCallback() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Get all the stations and data just inserted.\n\t\t\t\t\t\t\t\t\t\t\t\t \tdbService.getStations(new ListCallback<GenericRow>() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onSuccess(List<GenericRow> result) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetStations(result);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t \t\t\t}\n\t\t\t \t\t});\n\n\t\t\t \t} catch (Exception e) {\n\t\t\t \t\t// TODO Do something with the exception\n\t\t\t \t}\n\t\t\t } else {\n\t\t\t \tdbService.getStations(new ListCallback<GenericRow>() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSuccess(List<GenericRow> result) {\n\t\t\t\t\t\t\tgetStations(result);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t }\n\t\t\t}\n\t\t});\n\t}",
"public Transition[] computeDistances(){\n\t\tSystem.out.println(\"Computing Transitions...\");\n\t\tTransition[] instanceTransitions = new Transition[nbBd*(nbBd-1)*4];\n\t\t//i sera l'indice de la cellule du tableau\n\t\tint i=0;\n\t\tfor (Strip aStrip : tabStrips){\n\t\t\tfor (Strip anotherStrip : tabStrips)\n\t\t\t\tif (aStrip != anotherStrip){\n\t\t\t\t\tdouble dist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX0(), 2) + Math.pow(aStrip.getY0() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), false, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX0() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY0(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), false, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t\tdist = Math.sqrt(Math.pow(anotherStrip.getX1() - aStrip.getX1(), 2) + Math.pow(aStrip.getY1() - anotherStrip.getY1(), 2));\n\t\t\t\t\tdist = 2*(Math.atan(dist/((double)2000*indAltitude)));\n\t\t\t\t\tinstanceTransitions[i] = new Transition(aStrip.getInd(), true, anotherStrip.getInd(), true, (int)((indDMin + (dist / indVr))*1000), i);\n\t\t\t\t\ti++;\n\t\t\t\t}//i != j\n\t\t\t//calcul de indMiddleTMin au fur et a mesure en utilisant des coefficients \n\t\t\t//pour eviter de depasser la taille maximale des int \n\t\t\tint divider = ((2*i) / ((nbBd-1) * 4));\n\t\t\tindMiddleTMin = ((indMiddleTMin * (divider - 2)) + (aStrip.indTMin0 + aStrip.indTMin1)) / divider;\n\t\t}//for\n\t\treturn instanceTransitions;\n\t}",
"public int[] getCurrentPieceGridPosition() {\n\t\treturn currentPieceGridPosition; \n\t}",
"public void getTile_B8();",
"private List<Matrix> obtainTransitions(List<Matrix>probs){\n\t\tList<Matrix> output = new ArrayList<Matrix>();\n\t\tfor (int i =0;i<probs.size();i++) {\n\t\t\toutput.add(genTransFunction(probs.get(i)));\n\t\t}\n\t\treturn output;\n\t}",
"public TransitionIterator transitionIterator () {\n\t\t\treturn transitionIterator (null, 0, null, 0);\n\t\t}",
"private int getAnimationRow() {\n double dirDouble = (Math.atan2(xSpeed, ySpeed) / (Math.PI / 2) + 2);\n int direction = (int) Math.round(dirDouble) % BMP_ROWS;\n return DIRECTION_TO_ANIMATION_MAP[direction];\n }",
"public abstract Etat transition();",
"TraceDataView data();",
"private static GVector getData(\tfinal Image image,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfinal int x,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfinal int y,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfinal int width,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfinal int height)\r\n\t{\r\n\t\tfinal int[] pixels = new int[width * height];\r\n\t\tfinal PixelGrabber pg = new PixelGrabber(\timage,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tx,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ty,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpixels,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\twidth);\r\n\t\ttry\r\n\t\t{\r\n\t\t\tpg.grabPixels();\r\n\t\t}\r\n\t\tcatch (final InterruptedException e)\r\n\t\t{\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\r\n\t\tfinal GVector data = new GVector(3 * pixels.length);\r\n\t\tfor (int i = 0; i < pixels.length; i++)\r\n\t\t{\r\n\t\t\tfinal int red = pixels[i] >> 16 & 0xff;\r\n\t\t\tfinal int green = pixels[i] >> 8 & 0xff;\r\n\t\t\tfinal int blue = pixels[i] & 0xff;\r\n\t\t\tdata.setElement(3 * i, red);\r\n\t\t\tdata.setElement(3 * i + 1, green);\r\n\t\t\tdata.setElement(3 * i + 2, blue);\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}",
"private static Step[] transition2StepArray(Transition transition) {\n assert (transition != null);\n int stepsCnt = transition.getStepCount();\n Step[] steps = new Step[stepsCnt];\n\n Step step = transition.getStep(0);\n for (int i = 0; i < stepsCnt; i++) {\n steps[i] = step;\n step = step.getNext();\n }\n return steps;\n }",
"public WeatherGridSlice(TimeRange validTime, GridParmInfo gpi,\n GridDataHistory[] history, Grid2DByte grid, WeatherKey[] keys) {\n super(validTime, gpi, history);\n setWeatherGrid(grid);\n this.keys = keys;\n }",
"public Grid grid() { return grid; }",
"void fetchStartHousesData();",
"public visibleObject[][] getVisibility() {\n\n\t\tvisibleObject visiblility[][] = new GridCell.visibleObject[2 * visionRange + 1][2 * visionRange + 1];\n\t\tGridCell[][] cellArray = MazeGame.worldGraph.cellArray;\n\n\t\tfor (int i = (-visionRange); i < visionRange + 1; i++) {\n\t\t\tfor (int j = (-visionRange); j < visionRange + 1; j++) {\n\n\t\t\t\tGridCell cell = MazeGame.worldGraph.cellArray[currentCell.rowIndex + i][currentCell.columnIndex + j];\n\n\t\t\t\tfor (int k = currentCell.rowIndex - visionRange; k < currentCell.rowIndex + visionRange + 1; k++) {\n\t\t\t\t\tfor (int l = (currentCell.columnIndex - visionRange); l < currentCell.columnIndex + visionRange\n\t\t\t\t\t\t\t+ 1; l++) {\n\n\t\t\t\t\t\tif (!cellArray[k][l].hasEastEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + j + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcurrentCell.rowIndex + 0.5, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex, \n\t\t\t\t\t\t\t\t\tcellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (!cellArray[k][l].hasSouthEdge) {\n\n\t\t\t\t\t\t\tBoolean isIntersected = isIntersected(currentCell.columnIndex + j + 0.5, currentCell.rowIndex + i + 0.5,\n\t\t\t\t\t\t\t\t\tcurrentCell.columnIndex + 0.5, currentCell.rowIndex + 0.5, cellArray[k][l].columnIndex,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex +1 , cellArray[k][l].columnIndex + 1,\n\t\t\t\t\t\t\t\t\tcellArray[k][l].rowIndex + 1);\n\n\t\t\t\t\t\t\tif (isIntersected != null) {\n\t\t\t\t\t\t\t\tif (isIntersected.booleanValue()) {\n\t\t\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.NULL;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n//\t\t\t\tif(visiblility[i + visionRange][j + visionRange] != visibleObject.NULL){\n//\n//\t\t\t\t\tif (cell.cheese != null) {\n//\t\t\t\t\t\tif (cell.jerry != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY_AND_CHEESE;\n//\t\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM_AND_CHEESE;\n//\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.CHEESE;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t} else if (cell.jerry != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.JERRY;\n//\t\t\t\t\t} else if (cell.tom != null) {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.TOM;\n//\t\t\t\t\t} else {\n//\t\t\t\t\t\tvisiblility[i + visionRange][j + visionRange] = visibleObject.EMPTY_SPACE;\n//\t\t\t\t\t}\n//\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.visiblility = visiblility;\n\t\treturn visiblility;\n\t}",
"public Matrix extract(){\r\n\t\t\r\n\t\tDouble[][] newVal = new Double[col][row - 1];\r\n\t\t\r\n\t\tfor(Double[] row: AllVal){\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public void devideDataWindow(int from, int to) {\n int i = 0, j = 0, interval = to - from;\n testingSet = new Double[interval][2];\n trainingSet = new Double[data.length - interval][2];\n while (i + j < data.length) {\n if (i + j >= from && i + j < to) {\n testingSet[i][0] = data[i + j][0];\n testingSet[i][1] = data[i + j][1];\n i++;\n } else {\n trainingSet[j][0] = data[i + j][0];\n trainingSet[j][1] = data[i + j][1];\n j++;\n }\n }\n }",
"private void createPendingCellData()\r\n\t{\r\n\r\n\t\tObject[][] cell = new Object[plans.size()][columnCount];\r\n\t\tAbstractPlan plan = null;\r\n\r\n\t\t//now for each thread populate the table\r\n\t\tfor(int i = 0; i < plans.size(); i++)\r\n\t\t{\r\n\t\t\tbyte[] by = new byte[3];\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tplan = (AbstractPlan) plans.get(i);\r\n\t\t\t}catch(ClassCastException e)\r\n\t\t\t{\r\n\t\t\t\tlogger.error(\"createPendingCellData - attempt to put non AbstPlan objects in thread-model failed\");\r\n\t\t\t}\r\n\t\t\tObject[] rowCell = cell[i];\r\n\t\t\t//now populate each column\r\n\t\t\trowCell[0] = plan.getPlanName();\r\n\t\t\tBoolean sampling = plan.getBayesNet() == null ? new Boolean(false) : new Boolean(plan.getBayesNet().isSampling());\r\n\t\t\trowCell[1] = sampling;\r\n\t\t\tBoolean paused = plan.getBayesNet() == null ? new Boolean(false) : new Boolean(plan.getBayesNet().isSamplerPaused());\r\n\t\t\trowCell[2] = paused;\r\n\t\t\trowCell[3] = new Boolean(false);\r\n\r\n\t\t}\r\n\t\t//make sure concurrency is safe\r\n\t\tsynchronized(dataLock)\r\n\t\t{\r\n\t\t\tpendingCellData = cell;\r\n\t\t}\r\n\t}",
"@DataProvider()\n\tpublic Object[][] getData() {\n\t\t\n\t\treturn ConstantsArray.getArrayData();\n\t}",
"public List<Integer> getNeighborStates(Grid theGrid) {\n ArrayList<Integer> neighborStates = new ArrayList();\n int[] neighborColIndexForMyRow = getNeighborColIndex();\n\n for (int i = 0; i < neighborColIndexForMyRow.length; i++) {\n if (theGrid.isValidIndex(myRow + neighborRowIndex[i], myCol + neighborColIndexForMyRow[i])) {\n neighborStates.add(\n theGrid.getCell((myRow + neighborRowIndex[i]), (myCol + neighborColIndexForMyRow[i]))\n .getCurrentState());\n } else if (toroidal) {\n int[] newIndexes = getTorodialIndex(theGrid, i);\n if (theGrid.isValidIndex(newIndexes[0], newIndexes[1])) {\n neighborStates.add(\n theGrid.getCell(newIndexes[0], newIndexes[1]).getCurrentState());\n }\n }\n\n }\n return neighborStates;\n }",
"public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }",
"public Tile[] getAdjs(){\r\n return adjTiles;\r\n }",
"String getFlowData(T nodeOrigin, F flow);",
"public abstract Grid<?> getGrid();",
"public int [][] getState() {\n return stateArray;\n }",
"public static Object[][] getData() {\n\t\tEntity[] data = db.getData();\n\t\tObject[][] toReturn = new Object[data.length][];\n\t\tfor(int i = 0; i < toReturn.length; i++) {\n\t\t\ttoReturn[i] = data[i].getObject();\n\t\t}\n\t\treturn toReturn;\n\t}",
"List<Tile> getAdjacentTiles();",
"public static int[][] getGridAndTotalPopulation(int[][] grid, UnchangedInfo info, String version) {\n\t\t// step 1\n\t\tRectangle censusRect = info.censusRect;\n\t\tCensusGroup[] blocks = info.input;\n\t\tint size = info.size;\n\t\tint x = info.x;\n\t\tint y = info.y;\n\t\t\n\t\tif(version.equals(\"-v3\")) {\n\t\t\tfloat censusX = censusRect.right - censusRect.left;\n\t\t\tfloat censusY = censusRect.top - censusRect.bottom;\n\t\t\tint gridX, gridY;\n\t\t\tfor(int j = 0; j < size; j++) {\n\t\t\t\tgridX = (int) ((blocks[j].longitude - censusRect.left) * x / censusX);\n\t\t\t\tgridY = (int) ((blocks[j].latitude - censusRect.bottom) * y / censusY);\n\t\t\t\tif(gridX == x)\n\t\t\t\t\tgridX--;\n\t\t\t\tif(gridY == y)\n\t\t\t\t\tgridY--;\n\t\t\t\tgrid[gridX][gridY] += blocks[j].population;\n\t\t\t}\n\t\t} else if (version.equals(\"-v4\")){ // version equals v4\n\t\t\tgrid = fjPool.invoke(new BuildGrid(info, 0, size, fjPool));\n\t\t} else { // version 5\n\t\t\tBuildGridLocked lockedGrid = new BuildGridLocked(info, 0, size, fjPool);\n\t\t\tgrid = lockedGrid.grid;\n\t\t\t\n\t\t}\n\t\t// step 2\n\t\tfor(int a = 0; a < grid.length; a++) {\n\t\t\tfor(int b = grid[a].length - 1; b >= 0; b--) {\n\t\t\t\tif(a == 0 && b != grid[a].length - 1) \n\t\t\t\t\tgrid[a][b] += grid[a][b + 1];\n\t\t\t\telse if(a != 0 && b == grid[a].length - 1) \n\t\t\t\t\tgrid[a][b] += grid[a - 1][b];\n\t\t\t\telse if(a != 0 && b != grid[a].length - 1)\n\t\t\t\t\tgrid[a][b] += grid[a - 1][b] + grid[a][b + 1] - grid[a - 1][b + 1];\n\t\t\t}\t\n\t\t}\n\t\tinfo.totalPop = grid[info.x - 1][0];\n\t\treturn grid;\n\t}",
"public int[] mouseToCell()\n {\n int x = mouseX;\n int y = mouseY;\n if(x > firstCellPosition[0] && x < firstCellPosition[0]+xCells*cellSize &&\n y > firstCellPosition[1] && y < firstCellPosition[1]+yCells*cellSize)\n {\n showHover = true;\n x = x-firstCellPosition[0];\n y = y-firstCellPosition[1];\n int[] cell = new int[2];\n cell[0] = x/cellSize;\n cell[1] = y/cellSize;\n return cell;\n }\n showHover = false;\n return null;\n }",
"public int[][] getRawGrid()\n\t{\n\t\treturn grid;\n\t}",
"private TreeSet<SpatialTemporal> gatherData() {\r\n TreeSet<SpatialTemporal> dataPoints = new TreeSet<>(new Comparator<SpatialTemporal>() {\r\n @Override\r\n public int compare(SpatialTemporal o1, SpatialTemporal o2) {\r\n return (new Double(o1.position)).compareTo(new Double(o2.position));\r\n }\r\n });\r\n\r\n double positionOnRoute = 0;\r\n for (final RoadSegment roadSegment : route) {\r\n for (Vehicle veh : roadSegment) {\r\n if (veh.type() == AgentType.OBSTACLE) {\r\n continue;\r\n }\r\n double position = positionOnRoute + veh.getFrontPosition();\r\n dataPoints.add(new SpatialTemporal(position, veh.getSpeed(), veh.getLength(), veh.getAcc()));\r\n }\r\n positionOnRoute += roadSegment.roadLength();\r\n }\r\n return dataPoints;\r\n }",
"List<Coord> allActiveCells();",
"Vector<Vector<Object>> getDataVector();",
"private void convertData() {\n m_traces = new ArrayList<Trace>();\n\n for (final TraceList trace : m_module.getContent().getTraceContainer().getTraces()) {\n m_traces.add(new Trace(trace));\n }\n\n m_module.getContent().getTraceContainer().addListener(m_traceListener);\n\n m_functions = new ArrayList<Function>();\n\n for (final INaviFunction function :\n m_module.getContent().getFunctionContainer().getFunctions()) {\n m_functions.add(new Function(this, function));\n }\n\n for (final Function function : m_functions) {\n m_functionMap.put(function.getNative(), function);\n }\n\n m_views = new ArrayList<View>();\n\n for (final INaviView view : m_module.getContent().getViewContainer().getViews()) {\n m_views.add(new View(this, view, m_nodeTagManager, m_viewTagManager));\n }\n\n createCallgraph();\n }",
"public void load_grid(){\n RecyclerView moduleRecycler = (RecyclerView) findViewById(R.id.semestre_recycler);\n EtudiantSemestreRecycler adapter = new EtudiantSemestreRecycler(this, semestres);\n moduleRecycler.setAdapter(adapter);\n\n LinearLayoutManager manager = new LinearLayoutManager(this);\n manager.setOrientation(RecyclerView.VERTICAL);\n moduleRecycler.setLayoutManager(manager);\n }",
"public Object[][] buildProblemDataModel() {\r\n\t\t\r\n\t\tint clientNodes[] = TSProblemModel.getInstance().getAllProblemNodes();\r\n\t\t\r\n\t\tObject[][] result = new Object[clientNodes.length][clientNodes.length];\r\n\t\t\r\n\t\tfor (int i = 0; i < clientNodes.length; i++) {\r\n\t\t\tint index = clientNodes[i];\r\n\t\t\t\r\n\t\t\tresult[i][0] = new Integer(index); // ID\r\n\t\t\tresult[i][1] = new Integer(getClientDemand(index)); // Demand\r\n\t\t\t\r\n\t\t\tTimeWindow tw = getClientTimeWindow(index); // TW\r\n\t\t\tresult[i][2] = new Double(tw.begin);\r\n\t\t\tresult[i][3] = new Double(tw.end);\r\n\t\t\tresult[i][4] = new Double(getTWClientServiceTime(index));\r\n\t\t\t\r\n\t\t\ti++;\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"public void getData() {\n\t\tcurrentDate = model.getCurrentDate();\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tevents = EventProcessor.filterEvents(model.getEvents(), firstDateOfMonth, firstDateOfMonth.plusMonths(1).minusDays(1));\n\t}",
"private double[] getCustomState() {\n double[] state = new double[this.stateLength];\n\n // *** YOUR CODE HERE **********************************************************************\n\n // *** END OF YOUR CODE ********************************************************************\n\n return state;\n }",
"public float[][][] getMap() {\r\n float[][][] res = new float[neurons.length - 1][][];\r\n for (int i = 1; i < neurons.length; i++) // layers (skip input layer)\r\n {\r\n res[i - 1] = new float[neurons[i].length][];\r\n for (int j = 0; j < neurons[i].length; j++) // neurons per layer\r\n {\r\n res[i - 1][j] = neurons[i][j].getWeights();\r\n }\r\n }\r\n return res;\r\n }",
"public float[][] convertGridValues(final Grid3d grid, final PostStack3d velocityVolume,\n final Method conversionMethod, final ConversionDirection conversionMode, final AreaOfInterest areaOfInterest,\n final IProgressMonitor monitor, final ILogger logger) {\n\n // Determine the geometry.\n GridGeometry3d gridGeometry = grid.getGeometry();\n float[][] outputData = new float[gridGeometry.getNumRows()][gridGeometry.getNumColumns()];\n\n // Get size of grid.\n int numRows = gridGeometry.getNumRows();\n int numCols = gridGeometry.getNumColumns();\n\n Unit velocityUnit = velocityVolume.getDataUnit();\n float zMin = velocityVolume.getZStart();\n float zMax = velocityVolume.getZEnd();\n\n // Determine the domain of the input grid.\n Domain inputGridDomain = grid.getZDomain();\n\n if (conversionMode.equals(ConversionDirection.TIME_TO_DEPTH)) {\n if (inputGridDomain.equals(Domain.DISTANCE)) {\n throw new RuntimeException(\"Grid should contain times in order to go from time to depth\");\n }\n } else if (conversionMode.equals(ConversionDirection.DEPTH_TO_TIME)) {\n if (inputGridDomain.equals(Domain.TIME)) {\n throw new RuntimeException(\"Grid should contain depths in order to go from depth to time\");\n }\n }\n\n // Determine data unit of the grid.\n Unit inputGridDataUnit = grid.getDataUnit();\n\n // We just want one inline and one xline.\n float[] inlines = new float[1];\n float[] xlines = new float[1];\n float inlineMin = Math.min(velocityVolume.getInlineStart(), velocityVolume.getInlineEnd());\n float inlineMax = Math.max(velocityVolume.getInlineStart(), velocityVolume.getInlineEnd());\n float xlineMin = Math.min(velocityVolume.getXlineStart(), velocityVolume.getXlineEnd());\n float xlineMax = Math.max(velocityVolume.getXlineStart(), velocityVolume.getXlineEnd());\n boolean processingDone = false;\n boolean validXYdata = false;\n\n StorageOrder storageOrder = velocityVolume.getPreferredOrder();\n\n float nullValue = grid.getNullValue();\n float[][] inputGridValues = grid.getValues();\n\n // Convert values for each point in the grid.\n if (storageOrder.equals(StorageOrder.INLINE_XLINE_Z)) {\n monitor.beginTask(\"Grid Stretch 3D\", numCols);\n for (int col = 0; col < numCols; col++) {\n for (int row = 0; row < numRows; row++) {\n\n float inputGridValue = inputGridValues[row][col];\n\n outputData[row][col] = nullValue;\n if (!grid.isNull(inputGridValue)) {\n\n // Determine x,y coordinates at the current point\n double[] xy = gridGeometry.transformRowColToXY(row, col);\n double x = xy[0];\n double y = xy[1];\n\n // Determine inline and xline that correspond to x,y.\n // (Get the closest inline and xline).\n SeismicSurvey3d geometry = velocityVolume.getSurvey();\n float[] lines = geometry.transformXYToInlineXline(x, y, true);\n\n inlines[0] = lines[0];\n xlines[0] = lines[1];\n\n // Determine trace based on the inline and crossline.\n // (Make sure trace is valid).\n Trace trace = null;\n Boolean processTrace = false;\n if (inlines[0] >= inlineMin && inlines[0] <= inlineMax && xlines[0] >= xlineMin && xlines[0] <= xlineMax) {\n validXYdata = true;\n // Determine if Inline and crossline is in the area of interest\n if (areaOfInterest == null) {\n processTrace = true;\n } else if (areaOfInterest.contains(x, y)) {\n processTrace = true;\n } else {\n processTrace = false;\n }\n // Determine the trace in the volume.\n if (processTrace) {\n TraceData traceData = velocityVolume.getTraces(inlines, xlines, zMin, zMax);\n trace = traceData.getTrace(0);\n // Make sure that the trace is a live trace.\n if (trace.isLive()) {\n processTrace = true;\n } else {\n processTrace = false;\n }\n }\n }\n\n // Process trace if it is valid.\n if (processTrace) {\n VelocityArrayTimeDepthConverter converter = new VelocityArrayTimeDepthConverter(trace.getData(),\n trace.getZDelta(), velocityVolume.getZDomain(), velocityUnit, conversionMethod);\n float outputGridValue = Float.NaN;\n\n if (conversionMode.equals(ConversionDirection.TIME_TO_DEPTH)) {\n outputGridValue = Unit.convert(inputGridValue, inputGridDataUnit, UNIT_PREFS.getTimeUnit());\n outputGridValue = converter.getDepth(outputGridValue);\n } else if (conversionMode.equals(ConversionDirection.DEPTH_TO_TIME)) {\n outputGridValue = Unit.convert(inputGridValue, inputGridDataUnit, UNIT_PREFS.getVerticalDistanceUnit());\n outputGridValue = converter.getTime(outputGridValue);\n }\n if (!Float.isNaN(outputGridValue)) {\n outputData[row][col] = outputGridValue;\n processingDone = true;\n }\n }\n }\n }\n monitor.subTask(\"Completed column \" + (col + 1) + \" of \" + numCols);\n monitor.worked(1);\n if (monitor.isCanceled()) {\n break;\n }\n }\n } else if (storageOrder.equals(StorageOrder.XLINE_INLINE_Z)) {\n monitor.beginTask(\"Grid Stretch 3D\", numRows);\n for (int row = 0; row < numRows; row++) {\n\n for (int col = 0; col < numCols; col++) {\n\n float inputGridValue = inputGridValues[row][col];\n\n outputData[row][col] = nullValue;\n if (!grid.isNull(inputGridValue)) {\n\n // Determine x,y coordinates at the current point.\n double[] xy = gridGeometry.transformRowColToXY(row, col);\n double x = xy[0];\n double y = xy[1];\n\n // Determine inline and xline that correspond to x,y.\n // (Get the closest inline and xline).\n SeismicSurvey3d geometry = velocityVolume.getSurvey();\n float[] lines = geometry.transformXYToInlineXline(x, y, true);\n\n inlines[0] = lines[0];\n xlines[0] = lines[1];\n\n // Determine trace based on the inline and crossline.\n // (Make sure trace is valid).\n Trace trace = null;\n Boolean processTrace = false;\n if (inlines[0] >= inlineMin && inlines[0] <= inlineMax && xlines[0] >= xlineMin && xlines[0] <= xlineMax) {\n validXYdata = true;\n // Determine if inline and crossline is in the area of interest.\n if (areaOfInterest == null) {\n processTrace = true;\n } else if (areaOfInterest.contains(x, y)) {\n processTrace = true;\n } else {\n processTrace = false;\n }\n // Determine the trace in the volume.\n if (processTrace) {\n TraceData traceData = velocityVolume.getTraces(inlines, xlines, zMin, zMax);\n trace = traceData.getTrace(0);\n // Make sure that the trace is a live trace.\n if (trace.isLive()) {\n processTrace = true;\n } else {\n processTrace = false;\n }\n }\n }\n\n // Process trace if it is valid.\n if (processTrace) {\n VelocityArrayTimeDepthConverter converter = new VelocityArrayTimeDepthConverter(trace.getData(),\n trace.getZDelta(), velocityVolume.getZDomain(), velocityUnit, conversionMethod);\n float outputGridValue = Float.NaN;\n\n if (conversionMode.equals(ConversionDirection.TIME_TO_DEPTH)) {\n outputGridValue = Unit.convert(inputGridValue, inputGridDataUnit, UNIT_PREFS.getTimeUnit());\n outputGridValue = converter.getDepth(outputGridValue);\n } else if (conversionMode.equals(ConversionDirection.DEPTH_TO_TIME)) {\n outputGridValue = Unit.convert(inputGridValue, inputGridDataUnit, UNIT_PREFS.getVerticalDistanceUnit());\n outputGridValue = converter.getTime(outputGridValue);\n }\n if (!Float.isNaN(outputGridValue)) {\n outputData[row][col] = outputGridValue;\n processingDone = true;\n }\n }\n }\n }\n monitor.subTask(\"Completed row \" + (row + 1) + \" of \" + numRows);\n monitor.worked(1);\n if (monitor.isCanceled()) {\n break;\n }\n }\n }\n\n // Make sure some processing has been done.\n if (!processingDone) {\n String msg = \"Unable to convert grid depths from depth to time\";\n if (validXYdata) {\n if (conversionMode.equals(ConversionDirection.TIME_TO_DEPTH)) {\n msg = \"Unable to convert grid times from time to depth\";\n }\n } else {\n msg = \"X,Y locations in the grid do not match the volume\";\n }\n logger.error(msg);\n throw new RuntimeException(msg);\n }\n\n return outputData;\n }",
"public double getTransition(){\n\t\treturn transition;\n\t}",
"public void updateGridX();"
] | [
"0.541398",
"0.5375457",
"0.53138185",
"0.5221334",
"0.5136964",
"0.50903744",
"0.5055671",
"0.5029679",
"0.5021821",
"0.50090635",
"0.49950287",
"0.49901137",
"0.4987638",
"0.49581993",
"0.4944357",
"0.4941231",
"0.4934024",
"0.49160638",
"0.48969477",
"0.489608",
"0.48870873",
"0.48593897",
"0.48498178",
"0.48478478",
"0.48394305",
"0.48302442",
"0.48210257",
"0.4820073",
"0.4789414",
"0.4784665",
"0.47739962",
"0.47620165",
"0.47458023",
"0.47436526",
"0.47291186",
"0.47221836",
"0.47156096",
"0.47107112",
"0.47097692",
"0.47052088",
"0.46992934",
"0.46963432",
"0.4693336",
"0.46800488",
"0.46747264",
"0.46730196",
"0.4668963",
"0.46633625",
"0.46627268",
"0.46584606",
"0.46577722",
"0.46394104",
"0.46355724",
"0.46347594",
"0.46324426",
"0.46285272",
"0.46239385",
"0.46123356",
"0.45986915",
"0.4595968",
"0.45953476",
"0.459375",
"0.45931783",
"0.4583051",
"0.45825335",
"0.45815852",
"0.4580509",
"0.4574932",
"0.45742977",
"0.45606428",
"0.4560606",
"0.4558028",
"0.45579168",
"0.45578784",
"0.45567542",
"0.45544523",
"0.455275",
"0.45515785",
"0.45448405",
"0.45440948",
"0.45363003",
"0.4532354",
"0.45262748",
"0.45256945",
"0.45233247",
"0.45223653",
"0.45207226",
"0.4520207",
"0.45189235",
"0.45175886",
"0.4515862",
"0.45154098",
"0.4514343",
"0.45103407",
"0.45067134",
"0.45052305",
"0.4500511",
"0.4500268",
"0.4493555",
"0.44923297"
] | 0.55843526 | 0 |
TODO Autogenerated method stub | @Override
public void onGridMultiRecordsEditorExit(final String sectionName, final ListGrid grid, final EditorRecord[] records, final ConfirmButton button) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onGridCellEditorEnter(String sectionName, ListGrid grid, int row, int col, Object value) {
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onGridCellEditorExit(String sectionName, ListGrid grid, int row, int col, Object newValue) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onGridRecordEditorEnter(String sectionName, ListGrid grid, GridRecordEditor editor) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public GridRecordEditor getGridRecordEditor(String sectionName, ListGrid grid) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Returns whether null is allowed by the schema. | private static boolean nullOk(Schema schema) {
if (Schema.Type.NULL == schema.getType()) {
return true;
} else if (Schema.Type.UNION == schema.getType()) {
for (Schema possible : schema.getTypes()) {
if (nullOk(possible)) {
return true;
}
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isNull_fields_allowed() {\n return null_fields_allowed;\n }",
"public boolean canProcessNull() {\n return false;\n }",
"public boolean allowsNull() {\n return this.allowsNullValue;\n }",
"@Override\n public boolean isMaybeNull() {\n checkNotPolymorphicOrUnknown();\n return (flags & NULL) != 0;\n }",
"public boolean isNullable() {\n return true;\n }",
"boolean isNull();",
"public boolean isNull(){\n return false;\n }",
"public boolean isNull() {\n return false;\n }",
"boolean isNullable();",
"boolean isNullable();",
"boolean isNullable();",
"public boolean isNull() {\n\t\treturn false;\n\t}",
"public boolean isNullOrUndef() {\n checkNotPolymorphicOrUnknown();\n return (flags & (NULL | UNDEF)) != 0\n && (flags & (NUM | STR | BOOL)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n }",
"public boolean isNonNull() {\n return true;\n }",
"boolean isNilConstraints();",
"boolean isNullOmittable();",
"public boolean anyNull () ;",
"public boolean isNullable() {\r\n return isNullable;\r\n }",
"public boolean isNullable() {\r\n\t\treturn nullable;\r\n\t}",
"public boolean isNull() {\n return this.data == null;\n }",
"public final boolean isNull()\n\t{\n\t\treturn (dataValue == null) && (stream == null) && (_blobValue == null);\n\t}",
"public boolean isNull()\n\t{\n\t\treturn cp.isNull();\n\t}",
"boolean supportsNotNullable();",
"public boolean isNullable() {\n return _isNullable;\n }",
"public boolean isNullable() {\n return _isNullable;\n }",
"public boolean isNone() {\n if (var == null)\n return (flags & (PRIMITIVE | ABSENT | UNKNOWN)) == 0 && num == null && str == null && object_labels == null && getters == null && setters == null;\n else\n return (flags & (ABSENT | PRESENT_DATA | PRESENT_ACCESSOR)) == 0;\n }",
"public Boolean isNull(){\n\t\treturn equals(NULL);\n\t}",
"boolean isNilValue();",
"boolean checkNull();",
"public boolean canBeNullObject() { // for future, nobody calls when first\n return _canBeNullObject;\n }",
"public boolean getNullsSupported() {\r\n\t\treturn fieldNullsSupported;\r\n\t}",
"public boolean isSetIs_null() {\n return this.is_null != null;\n }",
"public boolean isAnyAllowed() {\n return _types.size() == 0 || hasType(JSONSchemaTypes.ANY.getClass());\n }",
"private boolean isNillable(String name) {\r\n if (schema == null) {\r\n return true;\r\n }\r\n PropertyDescriptor descriptor = schema.getDescriptor(name);\r\n return descriptor == null || descriptor.isNillable();\r\n }",
"public final boolean getInputAllowNull() {\n\t\treturn wInputAllowNull;\n\t}",
"public boolean hasNullSig() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_NULLSIG)) {\n // The Mek has Null-Sig\n return true;\n }\n }\n return false;\n }",
"public boolean isNullRecord () {\n if ((latitude == FLOATNULL) &&\n (longitude == FLOATNULL) &&\n (depth == FLOATNULL) &&\n (temperatureMin == FLOATNULL) &&\n (temperatureMax == FLOATNULL) &&\n (salinityMin == FLOATNULL) &&\n (salinityMax == FLOATNULL) &&\n (oxygenMin == FLOATNULL) &&\n (oxygenMax == FLOATNULL) &&\n (nitrateMin == FLOATNULL) &&\n (nitrateMax == FLOATNULL) &&\n (phosphateMin == FLOATNULL) &&\n (phosphateMax == FLOATNULL) &&\n (silicateMin == FLOATNULL) &&\n (silicateMax == FLOATNULL) &&\n (chlorophyllMin == FLOATNULL) &&\n (chlorophyllMax == FLOATNULL)) {\n return true;\n } else {\n return false;\n } // if ...\n }",
"public boolean isUndefinedAllowed() {\n return _allowUndefined;\n }",
"public boolean isNull() {\n return channel instanceof NullChannel;\n }",
"public boolean isSetNullFlavor()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(NULLFLAVOR$28) != null;\n }\n }",
"public boolean isIdPermisosNull()\r\n\t{\r\n\t\treturn idPermisosNull;\r\n\t}",
"public static FieldValidator anyButNull() {\n return isNotNull();\n }",
"boolean getNullable();",
"public Boolean getAllowEmptyFields() {\n return (Boolean) getExtProperty(\"allowEmptyFields\", DatabaseConfig.FEATURE_ALLOW_EMPTY_FIELDS);\n }",
"public boolean isMaybePresent() {\n checkNotUnknown();\n if (isPolymorphic())\n return (flags & (PRESENT_DATA | PRESENT_ACCESSOR)) != 0;\n else\n return (flags & PRIMITIVE) != 0 || num != null || str != null || object_labels != null || getters != null || setters != null;\n }",
"public static void setNull_fields_allowed(boolean allowed) {\n GUI.null_fields_allowed = allowed;\n }",
"public boolean isSetSchema_name() {\n return this.schema_name != null;\n }",
"public boolean isSetSchema_id() {\n return this.schema_id != null;\n }",
"@SuppressWarnings(\"UnusedDeclaration\")\n public IsNull() {\n super();\n }",
"public static boolean isNull() {\r\n\t\tif(instance==null)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"public static boolean isNull()\r\n {\r\n return (page == null);\r\n }",
"public boolean hasUnionDefNull() {\n return fieldSetFlags()[6];\n }",
"@Override\n\tpublic boolean getIncludesNull() {\n\t\treturn false;\n\t}",
"public boolean isNull() {\n return Stream.<Object>of(airQualityIndex, humidity,\n measurementTime, pm1, pm25, pm10, pollutionLevel,\n pressure, temperature)\n .allMatch(Objects::isNull);\n }",
"public boolean isSetSchemaName() {\n return this.schemaName != null;\n }",
"public boolean isNull() {\n return originalValue == null;\n }",
"public static final Function<Object,Boolean> isNull() {\r\n return FnObject.isNull();\r\n }",
"boolean getFieldTypeIdNull();",
"public boolean is_pure_nil() {return true;}",
"public boolean externalFilled() {\n return firstName != null && !firstName.isEmpty()\n || lastName != null && !lastName.isEmpty()\n || email != null && !email.isEmpty();\n }",
"boolean isIsNotNull();",
"public boolean isEmpty()\n {\n return ( name == null ) && ( data == null ) && ( notes == null );\n }",
"public boolean isNotNullAuthorizationFrontEnd() {\n return genClient.cacheValueIsNotNull(CacheKey.authorizationFrontEnd);\n }",
"public boolean isMaybePresentData() {\n checkNotUnknown();\n if (isPolymorphic())\n return (flags & PRESENT_DATA) != 0;\n else\n return (flags & PRIMITIVE) != 0 || num != null || str != null || object_labels != null;\n }",
"public boolean getOnlyProceduresInAnyValuesNull() {\n return onlyProceduresInAnyValuesNull_;\n }",
"public boolean getOnlyProceduresInAnyValuesNull() {\n return onlyProceduresInAnyValuesNull_;\n }",
"private boolean hasNonNullableColumn (ForeignKeyElement fk)\n\t\t\t{\n\t\t\t\tColumnElement[] localColumns = fk.getLocalColumns();\n\t\t\t\tint count = ((localColumns != null) ? localColumns.length : 0);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < count; i++)\n\t\t\t\t{\n\t\t\t\t\tif (!localColumns[i].isNullable())\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t}",
"public final synchronized boolean wasNull() \n throws SQLException\n {\n return getCallableStatement().wasNull();\n }",
"@Override\n public boolean isNull(){\n return (this.nativeHandle == 0L); \n }",
"boolean getActiveNull();",
"default boolean isNil(final SObjectWithoutFields obj) {\n return obj == Nil.nilObject;\n }",
"public boolean isValid() {\n return _id != null && !_id.isEmpty() &&\n _name != null && !_name.isEmpty() &&\n _created != null && !_created.isEmpty();\n }",
"@Transient\n\tpublic boolean isProcessDocumentNotNull() {\n\t\treturn (getProcessDocument()!=null);\n\t}",
"public boolean isEmpty() {\n // TODO: implement this method\n return nil.next().value() == null;\n }",
"public boolean isNotNullAcquiringBackEnd() {\n return genClient.cacheValueIsNotNull(CacheKey.acquiringBackEnd);\n }",
"public boolean canUseSchema(FormatSchema schema)\n/* */ {\n/* 445 */ if (schema == null) {\n/* 446 */ return false;\n/* */ }\n/* 448 */ String ourFormat = getFormatName();\n/* 449 */ return (ourFormat != null) && (ourFormat.equals(schema.getSchemaType()));\n/* */ }",
"public static final Function<Object,Boolean> isNotNull() {\r\n return FnObject.isNotNull();\r\n }",
"@Override\n\tpublic boolean isValid(SchemaField field, Data data) {\n\t\treturn false;\n\t}",
"public boolean isNotNullFKColumn() {\n for (Entry<ColumnInfo, ColumnInfo> entry : getLocalForeignColumnInfoMap().entrySet()) {\n final ColumnInfo localColumnInfo = entry.getKey();\n if (!localColumnInfo.isNotNull()) {\n return false;\n }\n }\n return true;\n }",
"@Override\n\tpublic int isNullable(int arg0) throws SQLException {\n\t\treturn 0;\n\t}",
"boolean isOptional();",
"public String isValid() {\n\t\treturn null;\n\t}",
"public boolean isEmpty()\n {\n return !(((this.gatewayIPAddress != null && this.gatewayPort != null)\n || (this.serialParameters != null)) && (this.address >= 0)\n && (this.slaveId > 0) && (this.xlator != null));\n }",
"@Override\npublic Boolean isEmpty() {\n\treturn null;\n}",
"public boolean isEmpty() {\n if (getData() == null) {\n return true;\n }\n else {\n return false;\n }\n }",
"public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }",
"static public boolean isNull(Object value) {\r\n\t\treturn value == null || value instanceof JSNull;\r\n\t}",
"public boolean isEmpty()\n {return data == null;}",
"public boolean isNotNullSupportsNakedCredit() {\n return genClient.cacheValueIsNotNull(CacheKey.supportsNakedCredit);\n }",
"public boolean supportNullRowForAggregateFunctions() {\n return true;\n }",
"public boolean isNull() {\r\n\t\treturn target == null;\r\n\t}",
"private boolean checkNullAllowed(Node parentNode, TableColumnBean columnBean, String newValue) {\n boolean isOkNullCheck = false;\n //displayColumnProps(columnBean);\n //System.out.println(\"value: \" + newValue);\n if(columnBean.isNullAllowed()) {\n isOkNullCheck = true;\n } else {\n if(newValue.equals(\"\") || newValue == null ||\n newValue.equalsIgnoreCase(\"null\")) {\n isOkNullCheck = false;\n } else {\n isOkNullCheck = true;\n }\n }\n return isOkNullCheck;\n }",
"boolean getCampaignTypeIdNull();",
"public boolean isValid() {\n\t\tif(username == null)\n\t\t\treturn false;\n\t\telse if(createdAt == null)\n\t\t\treturn false;\n\t\telse if(updatedAt == null)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}",
"public boolean supportsEqualNullSyntax() {\n return true;\n }",
"public boolean isBlank() {\n return (tags.length() == 0);\n }",
"boolean isNilRequiredResources();",
"boolean isNilDescription();",
"public boolean isNullInstance()\n {\n return code == null;\n }",
"public ObjectSchema allowUndefined(boolean value) {\n _allowUndefined = value;\n return this;\n }"
] | [
"0.76883423",
"0.7590312",
"0.7560029",
"0.7478895",
"0.7286974",
"0.71524286",
"0.7083695",
"0.7041443",
"0.7001046",
"0.7001046",
"0.7001046",
"0.6991056",
"0.6936174",
"0.68632156",
"0.6834531",
"0.6831872",
"0.6789854",
"0.67761207",
"0.67498314",
"0.6691162",
"0.6670461",
"0.6630255",
"0.6622741",
"0.65707374",
"0.65707374",
"0.6567384",
"0.65409124",
"0.6513977",
"0.6502152",
"0.64815235",
"0.64587224",
"0.64565223",
"0.645391",
"0.64398754",
"0.6423081",
"0.64189994",
"0.64034086",
"0.6297305",
"0.6286685",
"0.62847954",
"0.62634933",
"0.6218185",
"0.6215246",
"0.6208522",
"0.6201528",
"0.61928606",
"0.6187958",
"0.61851853",
"0.618011",
"0.6178975",
"0.61742",
"0.61586016",
"0.61374474",
"0.6128895",
"0.61175597",
"0.61148125",
"0.60540324",
"0.60421544",
"0.60230017",
"0.602187",
"0.6011874",
"0.6007004",
"0.5987327",
"0.59723413",
"0.5961331",
"0.5946513",
"0.5940203",
"0.59390724",
"0.5934987",
"0.5933071",
"0.5921725",
"0.591419",
"0.5913464",
"0.58943605",
"0.58919",
"0.58852166",
"0.58768034",
"0.587562",
"0.58750856",
"0.5855269",
"0.5843713",
"0.5841861",
"0.5832539",
"0.5821652",
"0.58170706",
"0.5786071",
"0.5777377",
"0.5774822",
"0.5765966",
"0.57608956",
"0.5756608",
"0.5743846",
"0.5732827",
"0.57311875",
"0.5720579",
"0.57199913",
"0.5718141",
"0.57179946",
"0.5717629",
"0.5717475"
] | 0.7011705 | 8 |
Returns a the value as the first matching schema type or null. Note that if the value may be null even if the schema does not allow the value to be null. | private static Object makeValue(String string, Schema schema) {
if (string == null) {
return null;
}
try {
switch (schema.getType()) {
case BOOLEAN:
return Boolean.valueOf(string);
case STRING:
return string;
case FLOAT:
return Float.valueOf(string);
case DOUBLE:
return Double.valueOf(string);
case INT:
return Integer.valueOf(string);
case LONG:
return Long.valueOf(string);
case ENUM:
// TODO: translate to enum class
if (schema.hasEnumSymbol(string)) {
return string;
} else {
try {
return schema.getEnumSymbols().get(Integer.valueOf(string));
} catch (IndexOutOfBoundsException ex) {
return null;
}
}
case UNION:
Object value = null;
for (Schema possible : schema.getTypes()) {
value = makeValue(string, possible);
if (value != null) {
return value;
}
}
return null;
case NULL:
return null;
default:
// FIXED, BYTES, MAP, ARRAY, RECORD are not supported
throw new RuntimeException(
"Unsupported field type:" + schema.getType());
}
} catch (NumberFormatException ex) {
return null;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<ValueType> getSingle(KeyType key);",
"org.apache.calcite.avatica.proto.Common.TypedValue getValue();",
"IfaceValue findAnyValue(IfaceType typ);",
"<V> V getValue(final URI keyedSchemaUri);",
"private boolean isValidSchemaForValue(@Nullable Schema schema, Object value) throws RecordConvertorException {\n if (schema == null) {\n return false;\n }\n Schema generated = schemaGenerator.getSchema(value, \"temp_field_name\");\n generated = generated.isNullable() ? generated.getNonNullable() : generated;\n schema = schema.isNullable() ? schema.getNonNullable() : schema;\n return generated.getLogicalType() == schema.getLogicalType() && generated.getType() == schema.getType();\n }",
"public TapSchema findOneSchema(String schemaName);",
"public static APIVersionType get(String literal) {\n for (int i = 0; i < VALUES_ARRAY.length; ++i) {\n APIVersionType result = VALUES_ARRAY[i];\n if (result.toString().equals(literal)) {\n return result;\n }\n }\n return null;\n }",
"T getNullValue();",
"public static JdbcTypeType get(String literal) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tJdbcTypeType result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@NotNull\n T getValue();",
"public static Object ElementDefaultValidImmediate(XSTypeDefinition type, String value, ValidationContext context, ValidatedInfo vinfo) {\n/* 288 */ XSSimpleType dv = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 293 */ if (type.getTypeCategory() == 16) {\n/* 294 */ dv = (XSSimpleType)type;\n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* 300 */ XSComplexTypeDecl ctype = (XSComplexTypeDecl)type;\n/* */ \n/* */ \n/* 303 */ if (ctype.fContentType == 1) {\n/* 304 */ dv = ctype.fXSSimpleType;\n/* */ \n/* */ }\n/* 307 */ else if (ctype.fContentType == 3) {\n/* 308 */ if (!((XSParticleDecl)ctype.getParticle()).emptiable()) {\n/* 309 */ return null;\n/* */ }\n/* */ } else {\n/* 312 */ return null;\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* 317 */ Object actualValue = null;\n/* 318 */ if (dv == null)\n/* */ {\n/* */ \n/* */ \n/* 322 */ dv = STRING_TYPE;\n/* */ }\n/* */ \n/* */ try {\n/* 326 */ actualValue = dv.validate(value, context, vinfo);\n/* */ \n/* 328 */ if (vinfo != null)\n/* 329 */ actualValue = dv.validate(vinfo.stringValue(), context, vinfo); \n/* 330 */ } catch (InvalidDatatypeValueException ide) {\n/* 331 */ return null;\n/* */ } \n/* */ \n/* 334 */ return actualValue;\n/* */ }",
"public static APIVersionType getByName(String name) {\n for (int i = 0; i < VALUES_ARRAY.length; ++i) {\n APIVersionType result = VALUES_ARRAY[i];\n if (result.getName().equals(name)) {\n return result;\n }\n }\n return null;\n }",
"public Type getValue() {\n Type ret = null;\n try {\n Constructor constructor = valueClass.getConstructor(new Class[] { String.class });\n ret = (Type) constructor.newInstance(data);\n } catch (Exception e) {\n throw new ClassCastException();\n }\n return ret;\n }",
"gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type.Value xgetValue();",
"public Object getValue() {\n Object o = null; \n if (type == \"string\") { o = svalue; }\n if (type == \"int\" ) { o = ivalue; }\n return o;\n }",
"public Object caseSchema(Schema object) {\r\n\t\treturn null;\r\n\t}",
"public String getValueType() {\n String valueType = getAttribute(\"ValueType\");\n if (valueType.equals(\"\"))\n return null;\n return valueType;\n }",
"@Override\r\n\t\tpublic TypeInfo getSchemaTypeInfo()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"ValueType getValue();",
"private TsPrimitiveType readOneValue() {\n switch (dataType) {\n case BOOLEAN:\n return new TsBoolean(valueDecoder.readBoolean(valueInputStream));\n case INT32:\n return new TsInt(valueDecoder.readInt(valueInputStream));\n case INT64:\n return new TsLong(valueDecoder.readLong(valueInputStream));\n case FLOAT:\n return new TsFloat(valueDecoder.readFloat(valueInputStream));\n case DOUBLE:\n return new TsDouble(valueDecoder.readDouble(valueInputStream));\n case TEXT:\n return new TsBinary(valueDecoder.readBinary(valueInputStream));\n default:\n break;\n }\n throw new UnSupportedDataTypeException(\"Unsupported data type :\" + dataType);\n }",
"@Nullable\n public T firstOrNull() {\n return Query.firstOrNull(iterable);\n }",
"@Nullable\n public <T> T getFirst(MDSKey id, Type typeOfT) {\n try {\n try (Scanner scan = table.scan(id.getKey(), Bytes.stopKeyForPrefix(id.getKey()))) {\n Row row = scan.next();\n if (row == null || row.isEmpty()) {\n return null;\n }\n\n byte[] value = row.get(COLUMN);\n if (value == null) {\n return null;\n }\n\n return deserialize(id, value, typeOfT);\n }\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n }",
"public ValueType peek() {\r\n // TODO\r\n return null;\r\n }",
"@Override\r\n\t\tpublic final INamedElement resolveTypeForValueContext() {\n\t\t\treturn null;\r\n\t\t}",
"public static JdbcTypeType get(int value) {\r\n\t\tswitch (value) {\r\n\t\t\tcase _1: return _1_LITERAL;\r\n\t\t\tcase _2: return _2_LITERAL;\r\n\t\t\tcase _3: return _3_LITERAL;\r\n\t\t\tcase _4: return _4_LITERAL;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private static String getSqlType(Schema schema) {\n\t\t\n\t\tString sqlType = null;\n\t\t\n\t\tSchema.Type schemaType = schema.isNullable() ? schema.getNonNullable().getType() : schema.getType();\n\t switch (schemaType) {\n\t case ARRAY:\n\t break;\n\t case BOOLEAN:\n\t break;\n\t case BYTES:\n\t break;\n\t case DOUBLE:\n\t break;\n\t case ENUM:\n\t break;\n\t case FLOAT:\n\t break;\n\t case INT:\n\t break;\n\t case LONG:\n\t break;\n\t case MAP:\n\t break;\n\t case NULL:\n\t \t \tbreak;\n\t case RECORD:\n\t break;\n\t case STRING:\n\t break;\n\t case UNION:\n\t break;\n\t }\n\t \n\t\treturn sqlType;\n\t\n\t}",
"public Class getType() {\n Object value = getValue();\n if (value == null)\n return null;\n\n Class type = value.getClass();\n if (type == Integer.class)\n return int.class;\n if (type == Float.class)\n return float.class;\n if (type == Double.class)\n return double.class;\n if (type == Long.class)\n return long.class;\n return String.class;\n }",
"private StdType stdtype() {\n String val;\n\n if ((lexer.token == Symbol.INTEGER) || (lexer.token == Symbol.REAL) || \n (lexer.token == Symbol.CHAR) || (lexer.token == Symbol.STRING)) {\n val = lexer.getStringValue();\n lexer.nextToken();\n return new StdType(val);\n }else{\n lexer.error(\"Missing Type\\n\");\n return null;\n }\n }",
"@CheckForNull public Archetype getAnyArchetype() {\n if (map.isEmpty()) {\n return null;\n }\n return map.values().iterator().next();\n }",
"public static JdbcTypeType getByName(String name) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tJdbcTypeType result = VALUES_ARRAY[i];\r\n\t\t\tif (result.getName().equals(name)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public QxType getValue( final String key ) {\n return getValue( key, null );\n }",
"org.apache.calcite.avatica.proto.Common.TypedValueOrBuilder getValueOrBuilder();",
"@NonNull\n public String getSchemaType() {\n return mBundle.getString(SCHEMA_TYPE_FIELD, \"\");\n }",
"public T first(String attr, Object value) throws SQLException {\n\t\t\n\t\tPreparedStatement stmt = statement(\"`\"+ attr + \"` = ? \",\"1\");\n\t\tstmt.setObject(1, value);\n\t\tResultSet rs = stmt.executeQuery();\n\t\tResultSetMetaData meta = rs.getMetaData();\n\t\tif(rs.first()) {\n\t\t\tT obj = null;\n\t\t\ttry {\n\t\t\t\tobj = cls().newInstance();\n\t\t\t\tobj.set_from_db(meta, rs);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn obj;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public Integer getType()\r\n\t\t{ return element instanceof Schema ? SCHEMA : element instanceof Alias ? ALIAS : ELEMENT; }",
"S getSchema();",
"public E head() {\n E ret = (val == null\n ? null\n : val ); //@ nowarn Cast;\n //@ assume ret != null ==> \\typeof(ret) <: elementType;\n //@ assume !containsNull ==> ret != null;\n return ret;\n }",
"protected static Object getObjectFromValue(Value value)\n {\n switch (value.getDataType())\n {\n case Boolean:\n return value.getBoolean();\n case Integer:\n return value.getInteger();\n case Long:\n return value.getLong();\n case Double:\n return value.getDouble();\n default:\n return value.getString();\n }\n }",
"public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }",
"@NonNull\n public String getSchemaType() {\n return Preconditions.checkNotNull(mBundle.getString(SCHEMA_TYPE_FIELD));\n }",
"private String getSqLiteType(Class<?> value){\r\n\t\tString sn = value.getSimpleName();\r\n\t\tif(sn.equalsIgnoreCase(\"String\"))\r\n\t\t\treturn \"text\";\r\n\t\tif(sn.equalsIgnoreCase(\"int\") || sn.equalsIgnoreCase(\"Integer\") || \r\n\t\t sn.equalsIgnoreCase(\"long\") || sn.equalsIgnoreCase(\"Long\") || \r\n\t\t sn.equalsIgnoreCase(\"BigDecimal\")){\r\n\t\t\treturn \"integer\";\r\n\t\t}\r\n\t\tif(sn.equalsIgnoreCase(\"double\") || sn.equalsIgnoreCase(\"Double\") || \r\n\t\t sn.equalsIgnoreCase(\"float\") || sn.equalsIgnoreCase(\"Float\")){\r\n\t\t\treturn \"integer\";\r\n\t\t}\r\n\t\tif(sn.equalsIgnoreCase(\"byte[]\") || sn.equalsIgnoreCase(\"Byte[]\")){\r\n\t\t\treturn \"blob\";\r\n\t\t}\r\n\t\tthrow new NullPointerException(\"type not found \" + sn);\r\n\t}",
"T getOrderedQueryParameterFirstValue();",
"public AnyType get(AnyType key) {\n \tif (contains(key)) {\n \t\tint currentPos = findPos( key );\n \t\t\treturn ((array[currentPos] != null) ? array[currentPos].value : null); \n \t}\n \telse {\n \t\treturn null;\n \t}\n }",
"public Type getTypeFirstRep() {\n\t\tif (getType().isEmpty()) {\n\t\t\treturn addType();\n\t\t}\n\t\treturn getType().get(0); \n\t}",
"public static <T> T getFirstNotNullValue(final Collection<T> collection) {\n\n if (isNotEmpty(collection)) {\n for (T element : collection) {\n if (element != null) {\n return element;\n }\n }\n }\n return null;\n }",
"public org.apache.calcite.avatica.proto.Common.TypedValue getValue() {\n return value_ == null ? org.apache.calcite.avatica.proto.Common.TypedValue.getDefaultInstance() : value_;\n }",
"public static TopmarkType get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTopmarkType result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static Object getDefaultValue(Object value) {\n if (value instanceof String) {\n return FieldType.STRING_TYPE.getDefaultValue();\n } else if (value instanceof ActivityStreamRest) {\n return FieldType.ACTIVITY_STREAM_REST.getDefaultValue();\n } else if (value instanceof ActivityRest) {\n return FieldType.ACTIVITY_REST_TYPE.getDefaultValue();\n }\n return new HashMap<String, Object>();\n }",
"public Integer getSchema()\r\n\t{\r\n\t\tif(element instanceof Schema)\r\n\t\t\treturn ((Schema)element).getId();\r\n\t\treturn ((SchemaElement)element).getBase();\r\n\t}",
"public T caseDatatype(Datatype object)\n {\n return null;\n }",
"private static Optional<Schema> isOfOptionType(Schema schema) {\n Preconditions.checkNotNull(schema);\n\n // If not of type UNION, cant be an OPTION\n if (!Schema.Type.UNION.equals(schema.getType())) {\n return Optional.<Schema>absent();\n }\n\n // If has more than two members, can't be an OPTION\n List<Schema> types = schema.getTypes();\n if (null != types && types.size() == 2) {\n Schema first = types.get(0);\n Schema second = types.get(1);\n\n // One member should be of type NULL and other of non NULL type\n if (Schema.Type.NULL.equals(first.getType()) && !Schema.Type.NULL.equals(second.getType())) {\n return Optional.of(second);\n } else if (!Schema.Type.NULL.equals(first.getType()) && Schema.Type.NULL.equals(second.getType())) {\n return Optional.of(first);\n }\n }\n\n return Optional.<Schema>absent();\n }",
"protected T getFirstValue(List<T> list) {\n\t\treturn list != null && !list.isEmpty() ? list.get(0) : null;\n\t}",
"@Override\r\n public ConceptType getValue()\r\n {\r\n ConceptType value = this.value;\r\n String rawValue = this.getRawValue();\r\n if (null != value && value.getDisplay().equals(rawValue))\r\n return value;\r\n return super.getValue();\r\n }",
"@Override\r\n\tpublic E getFirst() {\n\t\treturn null;\r\n\t}",
"public Object getTypeValueForInternalValue(String value) {\n\t\tObject r = null;\n\t\tString prefix = value.split(getValueConcatenator())[0] + getValueConcatenator();\n\t\tEntityObject eo = getEntityObject(prefix);\n\t\tif (eo!=null) {\n\t\t\tr = eo.getTypeValueForInternalValue(value);\n\t\t}\n\t\treturn r;\n\t}",
"public static APIVersionType get(int value) {\n switch (value) {\n case NONE_VALUE: return NONE;\n case CONTEXT_VALUE: return CONTEXT;\n case URL_VALUE: return URL;\n }\n return null;\n }",
"public static DataType get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tDataType result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Optional<String> getType() {\n return Optional.ofNullable(type);\n }",
"public E getFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}",
"public SchemaType getResponseSchemaType()\n {\n return responseSchemaType;\n }",
"public T caseFieldType(FieldType object)\n {\n return null;\n }",
"public <T extends Object> T one() throws DBException {\n List values = list();\n return values.size() > 0 ? (T) values.get(0) : null;\n }",
"AstroSchema getSchema();",
"@Override\n public Object toJdbcType(Object value) {\n return value;\n }",
"public V getFirstValue()\n\t{\n\t\tV amount = null;\n\t\tfinal Entry< Double, V > entry = getFirstEntry();\n\t\tif( entry != null )\n\t\t{\n\t\t\tamount = entry.getElement();\n\t\t}\n\t\treturn amount;\n\t}",
"public static TableSpaceType get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tTableSpaceType result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Optional<Type<?>> findFieldTypeOpt(final String name) {\n return Optional.empty();\n }",
"static private boolean isFirstOfValue(Token.Code code) {\r\n \t\t\t\treturn isFirstOfLiteral(code) || isFirstOfObject(code) || isFirstOfArray(code);\r\n \t\t\t}",
"NullValue createNullValue();",
"NullValue createNullValue();",
"private SchemaWrapper findSchemaWrapperInTree( String name )\n {\n List<TreeNode> schemaWrappers = ( ( TreeNode ) viewer.getInput() ).getChildren();\n for ( TreeNode sw : schemaWrappers )\n {\n if ( ( ( SchemaWrapper ) sw ).getSchema().getName().toLowerCase().equals( name.toLowerCase() ) )\n {\n return ( SchemaWrapper ) sw;\n }\n }\n \n return null;\n }",
"public Optional<String> type() {\n\t\t\treturn Optional.ofNullable(_type);\n\t\t}",
"private Type get_value_type(long xx) {\n Type vt = _values.get(xx);\n assert vt!=null;\n return vt;\n }",
"public org.apache.avro.Schema getSchema() { return SCHEMA$; }",
"public static TypeOfContext get(String literal) {\r\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n\t\t\tTypeOfContext result = VALUES_ARRAY[i];\r\n\t\t\tif (result.toString().equals(literal)) {\r\n\t\t\t\treturn result;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public PrimitiveType getDefaultPrimitiveType()\n {\n try {\n return (PrimitiveType)(primitiveTypes.elementAt(0));\n } catch(Exception e) {\n return null;\n }\n }",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"T getValue();",
"public TypeDescription getSchema() {\n return schema;\n }",
"public static HydroPlantType get(String literal) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tHydroPlantType result = VALUES_ARRAY[i];\n\t\t\tif (result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static Type getType(Object value) {\n\t\tif (isBool(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createTypeBool();\n\t\t} else if (isFloat(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createTypeFloat();\n\t\t} else if (isInt(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createTypeIntOrUint((BigInteger) value);\n\t\t} else if (isString(value)) {\n\t\t\treturn IrFactory.eINSTANCE.createTypeString();\n\t\t} else if (isList(value)) {\n\t\t\tint size = Array.getLength(value);\n\t\t\tType type = null;\n\t\t\tif (size > 0) {\n\t\t\t\ttype = getType(Array.get(value, 0));\n\t\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\t\tType t2 = getType(Array.get(value, i));\n\t\t\t\t\ttype = TypeUtil.getLub(type, t2);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn IrFactory.eINSTANCE.createTypeList(size, type);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public Optional<String> getType() {\n\t\treturn Optional.ofNullable(_type);\n\t}",
"public T caseFieldType(FieldType object) {\n\t\treturn null;\n\t}",
"public AnyType findMin() {\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new UnderflowException();\r\n\t\treturn findMin(root).element;\r\n\t}",
"@Override\r\n\t\tpublic final E getFirst() {\n\t\t\treturn null;\r\n\t\t}",
"public /* @Nullable */ T getValue() {\n return value;\n }",
"public /*override*/ Type GetValueType() \r\n {\r\n if (_dictionary != null)\r\n {\r\n // Take a peek at the element type of the ElementStartRecord \r\n // within the ResourceDictionary's deferred content.\r\n boolean found; \r\n return _dictionary.GetValueType(_keyOrValue, /*out*/ found); \r\n }\r\n else \r\n {\r\n return _keyOrValue != null ? _keyOrValue.GetType() : null;\r\n }\r\n }",
"public Optional<E> first() {\n return Optional.ofNullable(queryFirst());\n }",
"public AnyType findMin() {\n\t\treturn elementAt(findMin(root));\n\t}",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();"
] | [
"0.59763134",
"0.5902457",
"0.56087905",
"0.55954385",
"0.5566499",
"0.5545862",
"0.55321515",
"0.55045927",
"0.5482679",
"0.54590803",
"0.5422133",
"0.53946245",
"0.5380756",
"0.5379855",
"0.5373037",
"0.5365734",
"0.5345773",
"0.53385377",
"0.5320639",
"0.5300383",
"0.52897125",
"0.5279116",
"0.52646613",
"0.5258751",
"0.52490175",
"0.5234557",
"0.52226835",
"0.52138877",
"0.52111495",
"0.5209524",
"0.51979715",
"0.51887864",
"0.5188556",
"0.51725125",
"0.51593643",
"0.5157354",
"0.51469266",
"0.5129509",
"0.5126061",
"0.50968766",
"0.5092655",
"0.5091132",
"0.508535",
"0.5079841",
"0.506638",
"0.5054483",
"0.50493443",
"0.50481534",
"0.50360847",
"0.50112045",
"0.50067073",
"0.50057006",
"0.4998852",
"0.49908707",
"0.49905008",
"0.4985727",
"0.4978422",
"0.49756533",
"0.4972553",
"0.4960994",
"0.49413997",
"0.49411198",
"0.49371874",
"0.4935991",
"0.49186638",
"0.49149463",
"0.4905126",
"0.49017024",
"0.48954836",
"0.48954836",
"0.48938304",
"0.4893277",
"0.48843244",
"0.48829052",
"0.48776856",
"0.487639",
"0.48747405",
"0.48747405",
"0.48747405",
"0.48747405",
"0.48747405",
"0.48747405",
"0.48720723",
"0.48719877",
"0.48631042",
"0.48608997",
"0.48564768",
"0.48564762",
"0.4856431",
"0.48463735",
"0.4846356",
"0.48433524",
"0.4842743",
"0.48394307",
"0.48394307",
"0.48394307",
"0.48394307",
"0.48394307",
"0.48394307",
"0.48394307"
] | 0.58238214 | 2 |
image2 = (ImageView) itemView.findViewById(R.id.detail_gambar); | @Override
public void onClick(View view) {
int position = getAdapterPosition();
Review reviewsarapan = this.list.get(position);
Intent intent = new Intent(ctx, ReviewDetails.class);
intent.putExtra("detail_id", reviewsarapan.getId_review());
intent.putExtra("detail_gambar", "http://192.168.1.36/Pampo/gambar_detail/"+reviewsarapan.getGambar_detail());
System.out.println("Gambar : "+ reviewsarapan.getGambar_detail());
intent.putExtra("detail_judul", reviewsarapan.getJudul_review());
intent.putExtra("detail_deskripsi", reviewsarapan.getDeskripsi_review());
this.ctx.startActivity(intent);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void findViewById() {\n ivGraffit = (ImageView) findView(R.id.ivGraffit);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n imgView = (ImageView)findViewById(R.id.ImageView01);\t\n imgView.setImageResource(Imgid[0]);\n \n gallery = (Gallery) findViewById(R.id.examplegallery);\n gallery.setAdapter(new AddImgAdp(this));\n\n gallery.setOnItemClickListener(new OnItemClickListener() {\n public void onItemClick(AdapterView parent, View v, int position, long id) {\n imgView.setImageResource(Imgid[position]); \n }\n });\n\n }",
"private void setupView() {\n\t\timg=(ImageView) findViewById(R.id.imageView1);\n\t}",
"public RecyclerCardViewHolder(View itemView) {\n super(itemView);\n ivLsPicture = (ImageView) itemView.findViewById(R.id.ivLsPicture);\n tvTitle = (TextView) itemView.findViewById(R.id.tvTitle);\n // textView5 = (TextView) itemView.findViewById(R.id.textView5);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_dialouge, container, false);\n\n ImageView image = (ImageView) v.findViewById(R.id.imageView);\n DogList myActivity = (DogList) getActivity();\n\n int iconresID = getResources().getIdentifier(myActivity.getClickedImage().toLowerCase(),\"drawable\", myActivity.getPackageName());\n\n image.setImageResource(iconresID);\n\n return v;\n }",
"public ItemViewHolder(View itemView) {\n super(itemView);\n iv_image = (RoundedImageView)itemView.findViewById(R.id.item_photo);\n tv_title = (TextView)itemView.findViewById(R.id.item_title);\n tv_subtitle = (TextView)itemView.findViewById(R.id.item_subtitle);\n iv_image2 = (ImageView)itemView.findViewById(R.id.imageView1);\n }",
"@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn imageItem.get(position);\n\t}",
"protected ImageView getImageView(){\n\t\treturn iv1;\n\t}",
"public void setimageitem(items item){\n ImageView item_icon = (ImageView) mView.findViewById(R.id.imageitem);\n //If the current weight is greater than half of the original weight, full Icon is displayed\n if(item.getCurrent_wieght() > item.getOriginal_weight()/2)\n item_icon.setImageResource(R.drawable.fullicon);\n //If the current weight is greater than quarter of the original weight, the half icon will be displayed\n else if (item.getCurrent_wieght() <= item.getOriginal_weight()/ 2 && item.getCurrent_wieght() > item.getOriginal_weight()/ 4)\n item_icon.setImageResource(R.drawable.halficon);\n //If the current weight is less than a quarter of the original weight\n // to suggest that the item is empty, a quarter icon will be displayed.\n else if(item.getCurrent_wieght() <= item.getOriginal_weight()/ 4 && item.getCurrent_wieght()> (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.quartericon);\n }\n //if the item is empty an alert icon will be displayed.\n else if(item.getCurrent_wieght()<= (item.getOriginal_weight()/ 4)/2 ) {\n item_icon.setImageResource(R.drawable.alerticon);\n }\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n ImageView imageView = (ImageView) findViewById(R.id.bisonImage);\n// String imgRef = imgRefArrayList.get(position);\n //Log.d(\"IMGREF\", imgRef);\n// Glide.with(MyOffers.this)\n// .load(\"http://bisonswap.com/uploads/\" + imgRef)\n// .into(imageView);\n String itemKey = itemKeys.get(position);\n String stuff = String.valueOf(parent.getItemAtPosition(position));\n Intent o_Menu = new Intent(MyOffers.this, OfferMenu_manageOffers.class);\n o_Menu.putExtra(\"ownsItem\", \"1\");\n o_Menu.putExtra(\"offerItemKey\", offerBaseKeys.get(position));\n o_Menu.putExtra(\"itemKey\", itemKey);\n startActivity(o_Menu);\n// startActivity((new Intent(MyOffers.this, ItemActivity.class)).putExtra(\"itemKey\", itemKey));\n }",
"@Override\n public View onCreateView(final LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_wardrobe, container, false);\n\n ImageItemUtil imageItemUtil = new ImageItemUtil(getActivity());\n imageItems.addAll(imageItemUtil.getData(\"Top\"));\n gridView = (GridView) view.findViewById(R.id.gridViewFragment);\n gridAdapter = new GridViewAdapter(getActivity(), R.layout.wardrobe_item, imageItems);\n gridView.setAdapter(gridAdapter);\n gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n public void onItemClick(AdapterView<?> parent, View v, int position, long id) {\n ImageItem item = (ImageItem) parent.getItemAtPosition(position);\n //Create intent\n Intent intent = new Intent(getActivity(), ItemDetailActivity.class);\n intent.putExtra(\"title\", item.getDescription());\n intent.putExtra(\"image\", item.getImage());\n String tags = \"\";\n for (int i = 0; i < item.getTags().size(); i++)\n {\n tags += item.getTags().get(i) + \", \";\n }\n String tag = tags.substring(0, tags.length() - 2);\n intent.putExtra(\"tags\", tag);\n intent.putExtra(\"category\", item.getCategory());\n intent.putExtra(\"id\",item.getId());\n intent.putExtra(\"path\", item.getFilepath());\n //Start details activity\n startActivity(intent);\n //getActivity().finish();\n }\n });\n\n return view;\n }",
"void mo36480a(int i, int i2, ImageView imageView, Uri uri);",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn imageItems.get(position);\n\t}",
"ImageView getBadgeView();",
"@Override\n protected void initView(View view) {\n super.initView(view);\n picture1 = (ImageView) rootview.findViewById(R.id.picture1);\n picture2=(ImageView) rootview.findViewById(R.id.picture2);\n\n }",
"@Override\n public Object getItem(int position) {\n return imgUrl[position];\n }",
"void mo36483b(int i, ImageView imageView, Uri uri);",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn imagelist[position];\n\t}",
"public void setImage(Image itemImg) \n {\n img = itemImg;\n }",
"void mo36481a(int i, ImageView imageView, Uri uri);",
"public ViewHolder(View itemView) {\n super(itemView);\n /*imgOverFlow = (ImageView) itemView.findViewById(R.id.overflow);*/\n bookThumbnail = (ImageView) itemView.findViewById(R.id.book_thumbnail);\n// bookAuthor= (TextView) itemView.findViewById(R.id.book_author);\n// bookTitle = (TextView) itemView.findViewById(R.id.book_title);\n }",
"public View getView(int index, View view, ViewGroup viewGroup)\n {\n // TODO Auto-generated method stub\n ImageView i = new ImageView(mContext);\n\n// i.setImageResource(mImageIds.get(index));\n\n if(mImageIds.size() > 0 ){\n Picasso.with(mContext).load(mImageIds.get(index)).into(i);\n }\n\n\n i.setLayoutParams(new Gallery.LayoutParams(200, 200));\n\n i.setScaleType(ImageView.ScaleType.FIT_XY);\n\n\n return i;\n }",
"private void m16075b() {\n this.f13513b = (ImageView) getInflater().inflate(C0633g.abc_list_menu_item_icon, this, false);\n addView(this.f13513b, 0);\n }",
"public View getGraphic(T anItem)\n{\n Image img = getImage(anItem);\n return img!=null? new ImageView(img) : null;\n}",
"@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.profile,\n container, false);\n\n profilePicture = rootView.findViewById(R.id.profileImage);\n\n\n\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tab, container, false);\n\n Drawable myDrawable = getResources().getDrawable(R.drawable.youtube_boton);\n\n Imagen = (ImageView) view.findViewById(R.id.Imagen1);\n Imagen.setImageDrawable(myDrawable);\n\n return view;\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String currentID = listOverView.get(position).getIdSQLData(); // put image to static variable\n Intent intentToShowBigPicture = new Intent(ActivityScreans.this, ActivityShowImage.class);\n intentToShowBigPicture.putExtra(\"intentToShowBigPicture\", currentID);\n startActivity(intentToShowBigPicture);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n Bundle args = getArguments();\n int i = args.getInt(\"ARG_OBJECT\");\n\n View rootView = inflater.inflate(\n R.layout.fragment_collection_object, container, false);\n ImageView imageView = (ImageView) rootView.findViewById(R.id.item_gallery);\n\n if (imageArray.size() > 0) {\n Log.d(\"imageArray i:\", String.valueOf(i));\n imageView.setImageBitmap(imageArray.get(i));\n } else {\n // Insert image to indicate no images present\n Bitmap noImageBitmap = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.no_image_found);\n imageView.setImageBitmap(noImageBitmap);\n }\n\n return rootView;\n\n }",
"@Override\n public void onItemClicked(View itemView, Photo photo) {\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View myView = inflater.inflate(R.layout.fragment_first, container, false);\n ImageView bck = (ImageView)myView.findViewById(R.id.imgWal);\n int[] rse = new int[] {R.drawable.princi18,R.drawable.homescreen1,R.drawable.coleg,R.drawable.back,R.drawable.bck,R.drawable.screen,R.drawable.volleymen,R.drawable.balsir2,R.drawable.balsir3,R.drawable.colgevent};\n Random rnd = new Random();\n int r = rnd.nextInt(rse.length);\n bck.setImageDrawable(getResources().getDrawable(rse[r]));\n\n return myView;\n\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n View dialogView = (View) View.inflate(getApplicationContext(), R.layout.activity_image_view, null);\n AlertDialog.Builder dlg = new AlertDialog.Builder(ImageGridActivity.this);\n ImageView ivPoster = (ImageView) dialogView.findViewById(R.id.image_view);\n ivPoster.setImageResource(posterID[position]);\n\n // Log.i(\"이미지아이디\", ((ImageView) view.findViewById(R.id.grid_item_image)).getResources()));\n dlg.setTitle(movies[position]);\n // dlg.setIcon(R.drawable.ic_launcher);\n dlg.setView(dialogView);\n dlg.setNegativeButton(\"닫기\", null);\n dlg.show();\n /* Toast.makeText( getApplicationContext(),\n ((TextView)view.findViewById(R.id.grid_item_label)).getText()\n ,Toast.LENGTH_SHORT\n\n ).show();*/\n }",
"@Override\n public void onItemClick(View v, int pos) {\n holder.img.buildDrawingCache();\n Bitmap bitmap = holder.img.getDrawingCache();\n\n\n Intent i = new Intent(context, DetailedActivity.class);\n\n i.putExtra(\"image\", bitmap);\n i.putExtra(\"title\", title[position]);\n i.putExtra(\"desc\", description[position]);\n context.startActivity(i);\n }",
"public void bindItem(ItemList1_Structure item) {\n\n /*Bitmap icon = BitmapFactory.decodeResource(Resources.getSystem(), item.getImage());\n\n iv_image.setImageBitmap(icon);*/\n\n iv_image.setImageResource(item.getImage());\n\n tv_title.setText(item.getTitle());\n tv_subtitle.setText(item.getSubtitle());\n\n\n //LIBRERIA PICASSO\n //CON IMAGENES DEMASIADO GRANDES LANZA UN ERROR EN LA CLASE ROUNDEDIMAGEVIEW...algun conflicto al convertir a bitmap\n Picasso.with(context)\n .load(\"http://whosbehindmask.weebly.com/uploads/2/8/3/6/28365549/5831103_orig.jpg\") //http://viralandscdn.net/posts/13668/image-sg3SqUON.jpg\n .into(iv_image2);\n\n //MUESTRA UN INDICADOR EN LA ESQUINA SUPERIOR IZQUIERDA CON COLOR INDICANDO DE DONDE PROVIENE LA IMAGEN:\n // ROJO = NETWORK, AZUL = DISK, VERDE = MEMORY\n Picasso.with(context).setIndicatorsEnabled(true);\n\n /*** //EJEMPLO LIBRERIA PICASSO, LEER IMAGEN DE INTERNET, LEER DEL HOLDER, ASIGNAR IMAGEN DE ERROR, REDIMENSIONAR IMAGEN Y ROTAR IMAGEN\n Picasso.with(this)\n .load(\"YOUR IMAGE URL HERE\")\n .placeholder(R.drawable.ic_placeholder) // optional\n .error(R.drawable.ic_error_fallback) // optional\n .resize(250, 200) // optional\n .rotate(90) // optional\n .into(imageView);\n *///\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_lihat_gambar);\n mURL = findViewById(R.id.linkImg);\n mImage = findViewById(R.id.imageResult);\n btnImage = findViewById(R.id.btnSearch);\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_item_details);\n SetActionBarTitle(actionBarTitle);\n\n// if(savedInstanceState != null){\n// savedInstanceState.getBundle(bundle);\n// }\n\n imageDetail = findViewById(R.id.image_detail);\n titleDetail = findViewById(R.id.title_detail);\n descriptionDetail = findViewById(R.id.description_detail);\n priceDetail = findViewById(R.id.price_detail);\n\n imageUrl = getIntent().getStringExtra(imageUrl);\n Glide.with(this).load(imageUrl).into(imageDetail);\n titleDetail.setText(getIntent().getStringExtra(title));\n descriptionDetail.setText(getIntent().getStringExtra(description));\n priceDetail.setText(getIntent().getStringExtra(price));\n\n }",
"@NonNull\r\n @Override\r\n public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {\n\r\n ImageView view = new ImageView(getApplicationContext());\r\n\r\n\r\n return new RecyclerView.ViewHolder(view) {\r\n\r\n };\r\n }",
"public View getGraphicAfter(T anItem)\n{\n Image img = getImageAfter(anItem);\n return img!=null? new ImageView(img) : null;\n}",
"public ImageView getImageView() {\n return (ImageView) getView().findViewById(imageViewId);\n }",
"public void setImage(){\n\n Bundle extras = getIntent().getExtras();\n String image = extras.getString(\"pic\");\n String imageFlower = extras.getString(\"picflower\");\n\n\n\n if(image != null) {\n int pic = getResources().getIdentifier(image + \".png\",\"drawable\",getPackageName());\n\n achvImage.setImageResource(pic);\n achvImage.setVisibility(View.VISIBLE);\n\n }else {\n int flowerPic = getResources().getIdentifier(imageFlower + \".jpg\", \"drawable\", getPackageName());\n achvImage.setImageResource(flowerPic);\n achvImage.setVisibility(View.VISIBLE);\n }\n\n achvImage.setImageResource(R.drawable.medaldetails);\n\n\n String text = extras.getString(\"text\");\n achvDetails.setText(text);\n\n String title = extras.getString(\"title\");\n achvTitle.setText(title);\n\n int points1 = extras.getInt(\"points\");\n points.setText(\"Points: \" + points1);\n\n\n String desText1 = extras.getString(\"achDesA\");\n des1.setText(desText1);\n\n\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.time_tab_fragment, container, false);\n final GridView gridView = (GridView) view.findViewById(R.id.time_tab_gridview);\n GridViewAdaptor adaptor = new GridViewAdaptor(gridView, BitmapFactory.decodeResource(getResources(), R.drawable.blank));\n inflater.inflate(R.layout.time_tab_fragment, container, false);\n gridView.setAdapter(adaptor);\n\n ArrayList<GridViewItem> gridViewItems = LocalImageManager.getTimeTabGridViewItemList(getContext());\n for(int i = 0;i < gridViewItems.size(); i++)\n adaptor.addItem(gridViewItems.get(i));\n\n final ArrayList<String> imagepath = LocalImageManager.getAllImagePath(getContext(), \"DESC\");\n\n gridView.setOnItemClickListener(new AdapterView.OnItemClickListener(){\n @Override\n public void onItemClick(AdapterView parent, View v, int position, long id){\n String selectedimage = imagepath.get(position);\n\n Intent intent = new Intent(getActivity(), GalleryActivity.class);\n intent.putExtra(\"filepath\", selectedimage);\n startActivity(intent);\n\n }\n });\n return view;\n }",
"@Override\r\n\t\tpublic Object getItem(int position) {\n\t\t\treturn MainActivity.pictures[position];\r\n\t\t}",
"@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int position,\r\n\t\t\t\t\t\tlong id) {\n\t\t\t\t\timgID=(int)imgadapter.getItemId(position);\r\n\t\t\t\t\timgv.setImageResource(imgID);\r\n\t\t\t\t\t//imgv.setId(imgID);\r\n\t\t\t\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n Log.d(TAG, \"onCreate\");\n \n mBtn1 = (Button) findViewById(R.id.button1);\n mBtn1.setOnClickListener(this);\n mBtn2 = (Button) findViewById(R.id.button2);\n mBtn2.setOnClickListener(this);\n mImg1 = (ImageView) findViewById(R.id.imageView1);\n }",
"String getItemImage();",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_proposition_message_board, container, false);\n image2=view.findViewById(R.id.search_profile_image2);\n Glide.with(view).load(R.drawable.serach_image_avatar).circleCrop().into(image2);\n return view;}",
"ImageView getView() {\n return view;\n }",
"ViewHolder(View itemView) {\n super(itemView);\n myImageView = itemView.findViewById(R.id.info_image); // myTextView = itemView.findViewById(R.id.info_text)\n itemView.setOnClickListener(this);\n }",
"@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int position,\r\n\t\t\t\t\tlong id) {\n\t\t\t\timgID=(int)imgadapter.getItemId(position);\r\n\t\t\t\timgv.setImageResource(imgID);\r\n\t\t\t\t//imgv.setId(imgID);\r\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View rootView = inflater.inflate(R.layout.fragment_main, container, false);\n movies = new ArrayList<>();\n gridView = (GridView) rootView.findViewById(R.id.gridview);\n mAdapter = new ImageAdapter(getContext(), movies);\n gridView.setAdapter(mAdapter);\n gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(getActivity(), \"\" + position,Toast.LENGTH_SHORT).show();\n }\n });\n return rootView;\n }",
"public View getView(int index, View view, ViewGroup viewGroup)\n {\n // TODO Auto-generated method stub\n ImageView img = new ImageView(context);\n\n //imageloader.DisplayImage(GlobalVariable.link+\"files/\"+array_image_id.get(index), R.drawable.ic_temp_logo, img);\n img.setLayoutParams(new Gallery.LayoutParams(200, 200));\n img.setScaleType(ImageView.ScaleType.FIT_XY);\n\n return img;\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_display);\n\n tv5 =(TextView)findViewById(R.id.textView5);\n tv7 =(TextView)findViewById(R.id.textView7);\n tv9 =(TextView)findViewById(R.id.textView9);\n tv11 =(TextView)findViewById(R.id.textView11);\n\n\n final Intent inte = getIntent();\n String src = inte.getStringExtra(\"picture_src\");\n\n\n String imageUrl = Gallery.PHOTO_BASE_URL + src;\n final NetworkImageView image = (NetworkImageView) findViewById(R.id.imageView2);\n mImageLoader = AppController.getInstance().getImageLoader();\n image.setImageUrl(imageUrl, mImageLoader);\n\n sd = (SlidingDrawer)findViewById(R.id.slidingDrawer);\n sd.setOnDrawerOpenListener(new SlidingDrawer.OnDrawerOpenListener() {\n @Override\n public void onDrawerOpened() {\n tv5.setText(inte.getStringExtra(\"picture_name\"));\n tv7.setText(inte.getStringExtra(\"picture_description\"));\n tv9.setText(inte.getStringExtra(\"autor_name\"));\n tv11.setText(inte.getStringExtra(\"autor_description\"));\n }\n });\n\n\n\n }",
"public ImageView getId_image_item_shown() {\n return mHolder.id_image_item_shown;\n }",
"public void onItemClick(AdapterView<?> parent,\n View v, int position, long id){\n Intent i = new Intent(getApplicationContext(), SingleViewActivity.class);\n // Pass image index\n i.putExtra(\"id\", position);\n startActivity(i);\n }",
"public void loadImage1(View view) {\n Intent intent = new Intent(this, SelectImageActivity.class);\n startActivityForResult(intent, REQUEST_SELECT_IMAGE_1);\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.template_three_detail, container, false);\n ImageView imageView = (ImageView) view.findViewById(R.id.pagerDetailImage);\n\n Bundle bundle = getArguments();\n String imageString = bundle.getString(\"IMAGE\");\n\n Picasso.with(getActivity()).load(imageString).into(imageView);\n\n return imageView;\n\n }",
"@Override\n public void onItemClick(View view, int position) {\n Intent intent = new Intent(getActivity(), DetailActivity.class);\n intent.putExtra(DetailActivity.EXTRA_PARAM_ID, position);\n ImageView placeImage = (ImageView) view.findViewById(R.id.placeImage);\n LinearLayout placeHoldername = (LinearLayout) view.findViewById(R.id.placeNameHolder);\n Pair<View, String > imagePair = Pair.create((View) placeImage, \"tImage\");\n Pair<View, String> holderPair = Pair.create((View) placeHoldername, \"tNameHolder\");\n ActivityOptionsCompat options = ActivityOptionsCompat.makeSceneTransitionAnimation(getActivity(),\n imagePair, holderPair);\n ActivityCompat.startActivity(getActivity(), intent, options.toBundle());\n }",
"@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_merah);\n TampilGambar.startAnimation(animScale);\n suara1.start();\n }",
"public ViewHolder(View itemView) {\n super(itemView);\n imageView = itemView.findViewById(R.id.ivSomeImage);\n textView = itemView.findViewById(R.id.tvSomeText);\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n ImageView imgView = new ImageView(getActivity());\n imgView.setImageResource(R.drawable.img1);\n return imgView;\n }",
"@Override\r\n public void onBindViewHolder(AdapterList.ViewHolder holder, final int position) {\r\n Glide.with(context)\r\n .load(\"http://192.168.43.228/app_blogvolley/img/\" + list_data.get(position).get(\"gambar\"))\r\n .crossFade()\r\n .placeholder(R.drawable.no_available)\r\n .into(holder.imghape);\r\n // holder.txthape.setText(list_data.get(position).get(\"merk\"));\r\n holder.imghape.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View view) {\r\n Glide.with(context)\r\n .load(\"http://192.168.43.228/app_blogvolley/img/\" + list_data.get(position).get(\"gambar\"))\r\n .crossFade()\r\n .placeholder(R.drawable.no_available)\r\n .into(imgViewOne);\r\n txtArab.setText((CharSequence) list_data.get(position).get(\"tipe\"));\r\n txtIndo.setText(list_data.get(position).get(\"merk\"));\r\n }\r\n });\r\n HashMap<String, String> data = list_data.get(position);\r\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n ImageView image = (ImageView) findViewById(R.id.imageView1);\n \n image.setImageURI((Uri) getIntent().getExtras().get(Intent.EXTRA_STREAM)); \n }",
"@Override\n\t public Drawable getItem(int position) {\n\t return listImg.get(position);\n\t }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_good_image, container, false);\n ButterKnife.bind(this, view);\n Glide.with(getActivity())\n .load(imagePath)\n .error(Glide.with(getActivity()).load(R.drawable.goods_default))\n .into(goodImg);\n return view;\n }",
"public taskimage(ImageView t134){\n t34=t134;\n\n\n }",
"@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_kuning);\n TampilGambar.startAnimation(animScale);\n suara2.start();\n }",
"public void drawImage() {\n ImageView imageView = (ImageView) findViewById(R.id.photo);\n imageView.setVisibility(View.VISIBLE);\n Glide.with(MainActivity.this).load(iURI).fitCenter().into(imageView);\n }",
"@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\timageView = (ImageView) arg1.findViewById(R.id.imageView);\r\n\t\t\t\tLog.d(\"1111\",\"...............arg1 =\"+(String)imageView.getTag());\r\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW);\r\n\t\t\t\t//Uri mUri = Uri.parse(\"file://\" + picFile.getPath());Android3.0以后最好不要通过该方法,存在一些小Bug\r\n\t\t\t\tfile = new File((String)imageView.getTag());\r\n\t\t\t\t//File file = new File(Environment.getExternalStorageDirectory().toString()+GlobalApp.DOWNLOAD_PATH);\r\n\t\t\t\tintent.setDataAndType(Uri.fromFile(file), \"image/*\");\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@NonNull\n @Override\n public Object instantiateItem(@NonNull ViewGroup container, int position) {\n\n final SimpleDraweeView imageView = new SimpleDraweeView(MainActivity.this);\n imageView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT,\n ViewGroup.LayoutParams.WRAP_CONTENT));\n\n imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);\n// Uri uri = Uri.parse(bannerList.get(position).getImagePath());\n// imageView.setImageURI(uri);\n imageView.setActualImageResource(bannerImageList.get(position).getImageId());\n\n\n container.addView(imageView);\n return imageView;\n\n }",
"public ShowDataViewHolder(final View itemView) {\n super(itemView);\n // image_url = (ImageView) itemView.findViewById(R.id.fetch_image);\n image_title = (TextView) itemView.findViewById(R.id.fetch_image_title);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View contentView = inflater.inflate(R.layout.fragment_restaurant_details_full_image, container, false);\n\n Log.d(\"mife\",\"stid = \" + stId);\n Button backBtn = (Button) contentView.findViewById(R.id.back_button);\n backBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if(listener != null)\n listener.onBack();\n }\n });\n imageView = (ImageView) contentView.findViewById(R.id.full_image);\n progressBar = (ProgressBar) contentView.findViewById(R.id.full_image_progressBar);\n st = Model.instace.getRestaurant(stId);\n Log.d(\"TAG\",\"got restaurant name: \" + st.name);\n\n\n if (st.imageUrl != null && !st.imageUrl.isEmpty() && !st.imageUrl.equals(\"\")){\n progressBar.setVisibility(View.VISIBLE);\n Model.instace.getImage(st.imageUrl, new Model.GetImageListener() {\n @Override\n public void onSuccess(Bitmap image) {\n imageView.setImageBitmap(image);\n progressBar.setVisibility(View.GONE);\n }\n\n @Override\n public void onFail() {\n progressBar.setVisibility(View.GONE);\n }\n });\n }\n\n\n return contentView;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState){\n super.onCreate(savedInstanceState);\n uri = getIntent().getStringExtra(\"uri\");\n imageArray = getIntent().getStringArrayListExtra(\"array\");\n getIntent().getParcelableArrayListExtra(\"array\");\n\n setContentView(R.layout.image_view_main);\n\n imageView = (ImageView) findViewById(R.id.imageView);\n Picasso.with(this).load(uri).into(imageView);\n\n index = getIntent().getIntExtra(\"index\", 0);\n\n }",
"void mo36482a(ImageView imageView, Uri uri);",
"@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hijau);\n TampilGambar.startAnimation(animScale);\n suara3.start();\n }",
"public MyViewHolder(View view) {\n super(view);\n mb=(PhotoView) view.findViewById(R.id.imageView);\n fullscreen=view.findViewById(R.id.full_screen);\n }",
"private void showImageDetail() {\n }",
"@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_pink);\n TampilGambar.startAnimation(animScale);\n suara6.start();\n }",
"@Override\n public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ){\n View rootView= inflater.inflate(R.layout.fragment_gallery_detail, container, false);\n\n mHeader = (NetworkImageView) rootView.findViewById(R.id.fragment_detail_header);\n// mAvatar = (NetworkImageView) rootView.findViewById(R.id.fragment_detail_ic_avatar);\n mAvatar = (CircularNetworkImageView) rootView.findViewById(R.id.fragment_detail_ic_avatar);\n\n // NetworkImageView\n mHeader.setImageUrl( mGalleryItem.getHeaderUrl(), mImageLoader);\n mAvatar.setImageUrl( mGalleryItem.getAvatarUrl() , mImageLoader );\n\n // TextView\n mUserName = (TextView) rootView.findViewById(R.id.fragment_detail_username);\n String userName= mGalleryItem.getFirstName()+\" \"+mGalleryItem.getLastName();\n mUserName.setText( userName );\n\n mAddress = (TextView) rootView.findViewById(R.id.fragment_detail_address);\n mAddress.setText( mGalleryItem.getAddress() );\n\n mTime = (TextView) rootView.findViewById(R.id.fragment_detail_time);\n mTime.setText( mGalleryItem.getTime() );\n\n mCaption = (TextView) rootView.findViewById(R.id.fragment_detail_caption);\n mCaption.setText( mGalleryItem.getCaption());\n\n\n mIconAddress = (ImageView) rootView.findViewById(R.id.fragment_detail_ic_address);\n mIconTime= (ImageView)rootView.findViewById(R.id.fragment_detail_ic_time);\n\n // ImageView\n //mIconAddress.setImageDrawable();\n //mIconTime.setImageDrawable();\n\n return rootView;\n }",
"private void initialisers() {\n\t\tgear= (ImageView)findViewById(R.id.launchgear);\n\t}",
"@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_hitam);\n TampilGambar.startAnimation(animScale);\n suara12.start();\n }",
"protected void init_adapter()\n {\n manager = new GridLayoutManager(this, 2);\n recycler_view.setLayoutManager(manager);\n //recycler_view.setit\n\n adapter = new NasaApodAdapter();\n\n adapter.setOnItemClickListener(new NasaApodAdapter.OnItemClickListener()\n {\n @Override\n public void onItemClick(Photo photo)\n {\n Log.d(\"APOD\", photo.getImgSrc());\n\n intent = new Intent(getApplicationContext(), DetailActivity.class);\n intent.putExtra(\"photo\", photo);\n\n startActivity(intent);\n }\n });\n }",
"private void findView() {\n\t\tibtn_trigger = (ImageButton) findViewById(R.id.ibtn_right_menu);\n\t}",
"@Override\n public Object instantiateItem(ViewGroup container, int position) {\n ImageView imageView = new ImageView(getContext());\n imageView.setImageURI(m_step.getImage(position).getImageURI());\n\n container.addView(imageView, new ViewGroup.LayoutParams(\n ViewGroup.LayoutParams.MATCH_PARENT,\n ViewGroup.LayoutParams.MATCH_PARENT\n ));\n return imageView;\n }",
"private void initUI() {\n\t\timageview = (ImageView) v.findViewById(R.id.shezhi);\r\n\t\timageview.setOnClickListener(this);\r\n\r\n\t\tmytaobao = (ImageView) v.findViewById(R.id.taobao_go);\r\n\t\tmytaobao.setOnClickListener(this);\r\n\r\n\t\twuliu = (ImageView) v.findViewById(R.id.wuliu);\r\n\t\twuliu.setOnClickListener(this);\r\n\r\n\t\tgouwuche = (ImageView) v.findViewById(R.id.gouwuche);\r\n\t\tgouwuche.setOnClickListener(this);\r\n\r\n\t\tchadingdan = (ImageView) v.findViewById(R.id.dingdan);\r\n\t\tchadingdan.setOnClickListener(this);\r\n\r\n\t\tshoucang = (ImageView) v.findViewById(R.id.shoucang);\r\n\t\tshoucang.setOnClickListener(this);\r\n\t}",
"@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\timgView.setImageResource(imageIds[position]);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_abu);\n TampilGambar.startAnimation(animScale);\n suara0.start();\n }",
"@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_biru);\n TampilGambar.startAnimation(animScale);\n suara4.start();\n }",
"@Override\n\t\tpublic Object getItem(int position)\n\t\t{\n\t\t\treturn imageIds[position];\n\t\t}",
"public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }",
"@Override\r\n\t\tpublic Object getItem(int position) {\n\t\t\treturn pictures[position];\r\n\t\t}",
"@Override \n \tpublic void onItemClick(AdapterView<?> parent, View v, int position, long id)\n \t{\n \t\tIntent intent = new Intent(GridLayoutActivity.this,ImageViewActivity.class);\n \t\tintent.putExtra(GridLayoutActivity.EXTRA_RES_ID,(int)id);\n// \t\tSystem.out.println(\"===============>\"+id);\n \t\tToast.makeText(getApplicationContext(), \"Displaying \"+carsName[position],\n \t\t\t\t Toast.LENGTH_LONG).show();//Showing toast in the bottom for the selected car\n \t\tstartActivity(intent);\n \t}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.detailacheivements);\n\n achvImage = findViewById(R.id.detailimage1);\n achvDetails = findViewById(R.id.detailtextview1);\n achvTitle = findViewById(R.id.detailtitle);\n points = findViewById(R.id.pointtextview);\n des1 = findViewById(R.id.des1);\n\n setImage();\n }",
"public View getView(int position, View convertView, ViewGroup parent) {\n\n LayoutInflater inflater = (LayoutInflater) mContext\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View itemView = inflater.inflate(R.layout.attractions_grid_item, parent,\n false);\n\n ImageView imageView;\n TextView titleTextView;\n\n// if (convertView == null) {\n if (itemView != null) {\n // if it's not recycled, initialize some attributes\n// imageView = new ImageView(mContext);\n imageView = (ImageView)itemView.findViewById(R.id.attractions_grid_item_image);\n// DisplayMetrics displayMetrics = mContext.getResources().getDisplayMetrics();\n// float dpHeight = displayMetrics.heightPixels / displayMetrics.density;\n// float dpWidth = displayMetrics.widthPixels / displayMetrics.density;\n//\n Display display= ((WindowManager) mContext.getSystemService(Context.WINDOW_SERVICE)).getDefaultDisplay();\n// int screenHeight = display.getHeight();\n\n// int width = (int)dpWidth / 2;\n// int height = width * 38 / 62;\n\n int width = (int)display.getWidth() / 2;\n int height = width * 38 / 62;\n\n// imageView.setLayoutParams(new GridView.LayoutParams(width, height));\n imageView.setLayoutParams(new RelativeLayout.LayoutParams(width, height));\n imageView.setScaleType(ImageView.ScaleType.FIT_XY);\n imageView.setPadding(8, 8, 8, 8);\n\n titleTextView = (TextView)itemView.findViewById(R.id.attractions_grid_item_title);\n// titleTextView.setTextSize(18 * mContext.getResources().getDisplayMetrics().density);\n\n if (mAttractions != null && mAttractions.size() > position) {\n AroundPlaceAttraction attraction = mAttractions.get(position);\n titleTextView.setText(attraction.getName());\n if (attraction.getImages() != null && attraction.getImages().length > 0)\n Picasso.with(mContext).load(attraction.getImages()[0]).transform(new RoundedTransformation(15, 2)).into(imageView);\n }\n\n\n } /*else {\n imageView = (ImageView) convertView;\n }*/\n\n// imageView.setImageResource(mThumbIds[position]);\n// return imageView;\n return itemView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.detail_viewpager, container, false);\n title = getArguments().getString(\"title\");\n subtitle = getArguments().getString(\"subtitle\");\n writer = getArguments().getString(\"writer\");\n image = getArguments().getString(\"image\");\n position = getArguments().getInt(\"position\");\n max = getArguments().getInt(\"max\");\n\n TextView titleView = (TextView)v.findViewById(R.id.detail_viewpager_title);\n TextView subtitleView = (TextView)v.findViewById(R.id.detail_viewpager_subtitle);\n TextView writerView = (TextView)v.findViewById(R.id.detail_viewpager_writer);\n ImageView imageView = (ImageView)v.findViewById(R.id.detail_viewpager_image);\n TextView indexView = (TextView)v.findViewById(R.id.detail_viewPager_index);\n\n titleView.setText(title);\n subtitleView.setText(subtitle);\n writerView.setText(\"by.\"+writer);\n indexView.setText((position+1)+\"/\"+max);\n Glide.with(getContext()).load(image).into(imageView);\n imageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(getContext(), FullScreenImageActivity.class);\n intent.putExtra(\"url\", image);\n startActivity(intent);\n }\n });\n\n return v;\n\n }",
"public void AddImgToRecyclerView()\n {\n imgsource = new Vector();\n Resources res = getResources();\n imgsource.add(res.getIdentifier(\"@drawable/add_overtime_schedule\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/add_overtime\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/clock_in\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/vacation\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/document\", null, getPackageName()));\n imgsource.add(res.getIdentifier(\"@drawable/order\", null, getPackageName()));\n }",
"@Override\n public void onClick(View view) {\n Glide.with(HomeActivity.this).load(\"https://steamcdn-a.akamaihd.net/steam/apps/570840/logo.png?t=1574384831\").into(imageViewNeko);\n }",
"@Override\n public void onClick(View v) {\n TampilGambar.setImageResource(R.drawable.pop_i);\n TampilGambar.startAnimation(animScale);\n suaraI.start();\n }",
"public void onItemClick(AdapterView<?> parent, View v,\n int position, long id) {\n Intent intent = new Intent(GridLayoutActivity.this,\n ImageViewActivity.class);\n\n // Add the ID of the thumbnail to display as an Intent Extra\n intent.putExtra(EXTRA_RES_ID, (int) id);\n\n pos = position;\n\n String IDTest = String.valueOf(id);\n\n Log.i(\"ID OF PICTURE:\", IDTest);\n\n // Start the ImageViewActivity\n startActivity(intent);\n\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\t this.requestWindowFeature(Window.FEATURE_NO_TITLE);\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.styles_gallery);\n\t\tgridView_meme=(GridView)findViewById(R.id.gridview_styles);\n\t\ttry {\n\t\t\tstyle=getIntent().getExtras().getString(\"style\");\n\t\t\t items_meme=new ArrayList<Item>();\n \t\tnew Load_Images().execute(style);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\t\n\t\t\n\t\tgridView_meme.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tItem itm=items_meme.get(position);\n\t\t\t\n\t\t\t\tString path =itm.path;\n\t\t\t\t\n\t\t\t\tIntent mIntent=new Intent();\n\t\t\t\tmIntent.putExtra(\"stylepath\",path);\n\t\t\t\tsetResult(RESULT_OK, mIntent);\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}",
"@Override\n public void onItemClick(ItemGirlBinding binding, int position) {\n MzituGalleryActivity.launch(context, binding.girliv,\n mzituVM.galleries.get(position));\n// GirlPhotoActivity.launch(context, binding.girliv, position,\n// mzituVM.getItems().get(position));\n }",
"public void setView(List<String> listImage, int position){\n selectedImage = position;\n this.listImage = listImage;\n\n /*Glide.with(this).load(listImage.get(selectedImage)).\n apply(new RequestOptions().override(imgWidth, imgHeight)).into(img_galeri_selected);*/\n Glide.with(this).load(listImage.get(selectedImage)).into(img_galeri_selected);\n layout_zoom.zoomTo(1, false);\n layout_overlay.setVisibility(View.VISIBLE);\n detail = true;\n\n layout_galeri_selected.startAnimation(anim_popin);\n //img_galeri_selected.startAnimation(anim_popin);\n }"
] | [
"0.7213043",
"0.6743205",
"0.6652796",
"0.662352",
"0.6500526",
"0.641296",
"0.6367756",
"0.6366082",
"0.6358048",
"0.63573086",
"0.63271",
"0.6325199",
"0.63172615",
"0.6271471",
"0.6231522",
"0.6226843",
"0.62239116",
"0.62156093",
"0.6212796",
"0.6207967",
"0.6198222",
"0.61823213",
"0.6174519",
"0.6159968",
"0.61491144",
"0.6143923",
"0.61438006",
"0.6131663",
"0.6117964",
"0.61174446",
"0.6116367",
"0.6114523",
"0.6112359",
"0.61110306",
"0.6109574",
"0.60894483",
"0.60887116",
"0.60746264",
"0.60618305",
"0.6052022",
"0.6048054",
"0.60451376",
"0.6044871",
"0.60416067",
"0.60415906",
"0.6030683",
"0.60031146",
"0.600153",
"0.5999501",
"0.5999383",
"0.59918666",
"0.5961986",
"0.596066",
"0.5956758",
"0.59560513",
"0.5949327",
"0.59473586",
"0.59419715",
"0.59335184",
"0.59332806",
"0.59312046",
"0.5928094",
"0.5923477",
"0.5913235",
"0.59122634",
"0.5910423",
"0.5904066",
"0.59004134",
"0.5894573",
"0.5884877",
"0.5877238",
"0.58765036",
"0.58742046",
"0.58735555",
"0.5870089",
"0.5868344",
"0.58646554",
"0.5862649",
"0.58626115",
"0.5861724",
"0.58534014",
"0.5847382",
"0.5845607",
"0.58434045",
"0.5842298",
"0.58390623",
"0.5830212",
"0.58257097",
"0.58247113",
"0.5823631",
"0.582195",
"0.5818581",
"0.58167344",
"0.5812343",
"0.58108574",
"0.58083385",
"0.5803871",
"0.58038265",
"0.5794838",
"0.57913285",
"0.57905906"
] | 0.0 | -1 |
Tests positive cases for relation loading for all types One to One One to Many Many to One Many to Many Also test cases where join table is specified. Test cases where child is loaded first and then child and vise versa. Join tables when column names are specified and when they are not specified | @Test(dataProvider = "repositoryFactories")
public void testRelationLoading(RepositoryFactory factory)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeftEvenWhenOnlyIdSelected() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getId());\n \n validate(\"select hobj3.id from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeft() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getAge());\n \n validate(\"select hobj3.age from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"@AllowFailure(message=\"Fails after first run with duplicate key value in a unique PK constraint or index\")\n public void testEagerFetch() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + TblChild.class.getName() + \";\"\n + TblGrandChild.class.getName() + \";\"\n + TblParent.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n\n OpenJPAEntityManagerFactorySPI emf1 = (OpenJPAEntityManagerFactorySPI) OpenJPAPersistence.\n cast(Persistence.createEntityManagerFactory(\"test\", props));\n try {\n EntityManagerImpl em = (EntityManagerImpl)emf1.createEntityManager();\n\n em.getTransaction().begin();\n\n for (int i = 1; i < 3; i++) {\n TblParent p = new TblParent();\n p.setParentId(i);\n TblChild c = new TblChild();\n c.setChildId(i);\n c.setTblParent(p);\n p.addTblChild(c);\n em.persist(p);\n em.persist(c);\n\n TblGrandChild gc = new TblGrandChild();\n gc.setGrandChildId(i);\n gc.setTblChild(c);\n c.addTblGrandChild(gc);\n\n em.persist(p);\n em.persist(c);\n em.persist(gc);\n }\n em.flush();\n em.getTransaction().commit();\n em.clear();\n\n for (int i = 1; i < 3; i++) {\n TblParent p = em.find(TblParent.class, i);\n int pid = p.getParentId();\n assertEquals(pid, i);\n Collection<TblChild> children = p.getTblChildren();\n boolean hasChild = false;\n for (TblChild c : children) {\n hasChild = true;\n Collection<TblGrandChild> gchildren = c.getTblGrandChildren();\n int cid = c.getChildId();\n assertEquals(cid, i);\n boolean hasGrandChild = false;\n for (TblGrandChild gc : gchildren) {\n hasGrandChild = true;\n int gcId = gc.getGrandChildId();\n assertEquals(gcId, i);\n }\n assertTrue(hasGrandChild);\n }\n assertTrue(hasChild);\n em.close();\n }\n } finally {\n closeEMF(emf1);\n }\n }",
"@Test\n public void testDAM32102001() {\n // By default the loading related entity is eager.\n testDAM32101001();\n }",
"@Test\n public void testJoinOn_withTwoValidTables() {\n String table1column0 = \"user_id\";\n String table1column1 = \"age\";\n int idValue0 = 0;\n int ageValue0 = 23;\n int idValue1 = 1;\n int ageValue1 = 22;\n int idValue2 = 2;\n int ageValue2 = 18;\n String table2column0 = \"pet_id\";\n String table2column1 = \"owner_id\";\n int pet1_id = 0;\n int pet2_id = 1;\n\n try {\n // Set up ModelExtension Table\n String sql = \"CREATE TABLE ModelExtension (\" +\n table1column0 + \" int, \" +\n table1column1 + \" int)\";\n PreparedStatement pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO ModelExtension (\" +\n table1column0 + \", \" +\n table1column1 + \") VALUES (\" +\n idValue0 + \", \" +\n ageValue0 + \"), (\" +\n idValue1 + \", \" +\n ageValue1 + \"), (\" +\n idValue2 + \", \" +\n ageValue2 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n // Set up Test Table\n sql = \"CREATE TABLE Test (\" +\n table2column0 + \" int, \" +\n table2column1 + \" int)\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO Test (\" +\n table2column0 + \", \" +\n table2column1 + \") VALUES (\" +\n pet1_id + \", \" +\n idValue0 + \"), (\" +\n pet2_id + \", \" +\n idValue1 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n\n List<ModelExtension> models = child.findAll()\n .joinOn(\n new ModelExtensionWithAnnotation(), \n table1column0, \n table2column1)\n .execute(ModelExtension.class);\n\n assertEquals(2, models.size());\n assertEquals(idValue0, models.get(0).get(table1column0));\n assertEquals(ageValue0, models.get(0).get(table1column1));\n assertEquals(pet1_id, models.get(0).get(table2column0));\n assertEquals(idValue0, models.get(0).get(table2column1));\n\n assertEquals(idValue1, models.get(1).get(table1column0));\n assertEquals(ageValue1, models.get(1).get(table1column1));\n assertEquals(pet2_id, models.get(1).get(table2column0));\n assertEquals(idValue1, models.get(1).get(table2column1));\n }",
"private void checkMappedByOneToMany(DeployBeanInfo<?> info, DeployBeanPropertyAssocMany<?> prop) {\n if (prop.isElementCollection()) {\n // skip mapping check\n return;\n }\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n if (targetDesc.isDraftableElement()) {\n // automatically turning on orphan removal and CascadeType.ALL\n prop.setModifyListenMode(BeanCollection.ModifyListenMode.REMOVALS);\n prop.getCascadeInfo().setSaveDelete(true, true);\n }\n\n if (prop.hasOrderColumn()) {\n makeOrderColumn(prop);\n }\n\n if (prop.getMappedBy() == null) {\n // if we are doc store only we are done\n // this allows the use of @OneToMany in @DocStore - Entities\n if (info.getDescriptor().isDocStoreOnly()) {\n prop.setUnidirectional();\n return;\n }\n\n if (!findMappedBy(prop)) {\n if (!prop.isO2mJoinTable()) {\n makeUnidirectional(prop);\n }\n return;\n }\n }\n\n // check that the mappedBy property is valid and read\n // its associated join information if it is available\n String mappedBy = prop.getMappedBy();\n\n // get the mappedBy property\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedManyToOne(prop, targetDesc, mappedBy);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());\n }\n\n PropertyForeignKey foreignKey = mappedAssocOne.getForeignKey();\n if (foreignKey != null) {\n ConstraintMode onDelete = foreignKey.getOnDelete();\n switch (onDelete) {\n case SET_DEFAULT:\n case SET_NULL:\n case CASCADE: {\n // turn off cascade delete when we are using the foreign\n // key constraint to cascade the delete or set null\n prop.getCascadeInfo().setDelete(false);\n }\n }\n }\n }",
"public void testMember(){\n\r\n parser.sqltext = \"select f from t1\";\r\n assertTrue(parser.parse() == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getKind() == TBaseType.join_source_fake );\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().toString().compareToIgnoreCase(\"t1\") == 0);\r\n\r\n parser.sqltext = \"select f from t as t1 join t2 on t1.f1 = t2.f1\";\r\n assertTrue(parser.parse() == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getKind() == TBaseType.join_source_table );\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().toString().compareToIgnoreCase(\"t\") == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().getAliasClause().toString().compareToIgnoreCase(\"t1\") == 0);\r\n\r\n\r\n parser.sqltext = \"select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1 ) as a_join join b on a_join.f1 = b.f1;\";\r\n assertTrue(parser.parse() == 0);\r\n TJoin lcJoin = parser.sqlstatements.get(0).joins.getJoin(0);\r\n //System.out.println(lcJoin.getKind());\r\n assertTrue(lcJoin.getKind() == TBaseType.join_source_join );\r\n\r\n assertTrue(lcJoin.getJoin().toString().compareToIgnoreCase(\"(a as a_alias left join a1 on a1.f1 = a_alias.f1 )\") == 0);\r\n assertTrue(lcJoin.getJoin().getAliasClause().toString().compareToIgnoreCase(\"a_join\") == 0);\r\n assertTrue(lcJoin.getJoin().getJoinItems().getJoinItem(0).getJoinType() == EJoinType.left);\r\n\r\n assertTrue(lcJoin.getJoinItems().getJoinItem(0).getJoinType() == EJoinType.join);\r\n\r\n parser.sqltext = \"select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1 ) as a_join\";\r\n assertTrue(parser.parse() == 0);\r\n TJoin lcJoin1 = parser.sqlstatements.get(0).joins.getJoin(0);\r\n assertTrue(lcJoin1.getKind() == TBaseType.join_source_join );\r\n assertTrue(lcJoin1.getJoin().toString().compareToIgnoreCase(\"(a as a_alias left join a1 on a1.f1 = a_alias.f1 )\") == 0);\r\n assertTrue(lcJoin1.getJoin().getAliasClause().toString().compareToIgnoreCase(\"a_join\") == 0);\r\n\r\n }",
"private void checkMappedByOneToOne(DeployBeanPropertyAssocOne<?> prop) {\n String mappedBy = prop.getMappedBy();\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedOneToOne(prop, mappedBy, targetDesc);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyWithoutType(tableJoin, true, tableJoin.getTable());\n }\n\n if (mappedAssocOne.isPrimaryKeyJoin()) {\n // bi-directional PrimaryKeyJoin ...\n mappedAssocOne.setPrimaryKeyJoin(false);\n prop.setPrimaryKeyExport();\n addPrimaryKeyJoin(prop);\n }\n }",
"@Test\r\n\tvoid join() {\r\n\t\tQuery query = entityManager.createQuery(\"Select c,s from Course c JOIN c.students s\");\r\n\t\tList<Object[]> resultList = query.getResultList();\r\n\t\tlog.info(\"Result Size -> {}\", resultList.size());\r\n\t\tfor (Object[] result : resultList) {\r\n\t\t\tlog.info(\"Course -> {}\", result[0]);\r\n\t\t\tlog.info(\"Student -> {}\", result[1]);\r\n\t\t}\r\n\t}",
"private void readEntityRelationships() {\n List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck = new ArrayList<>();\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n checkMappedBy(info, primaryKeyJoinCheck);\n }\n for (DeployBeanPropertyAssocOne<?> prop : primaryKeyJoinCheck) {\n checkUniDirectionalPrimaryKeyJoin(prop);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n secondaryPropsJoins(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n setInheritanceInfo(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n if (!info.isEmbedded()) {\n registerDescriptor(info);\n }\n }\n }",
"@Test\n public void testMixedJoin3() throws Exception {\n String sql = \"SELECT * FROM g1, g2 inner join g3 on g2.a=g3.a\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g1\");\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, 2, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_INNER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"g2.a\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"g3.a\");\n \n verifySql(\"SELECT * FROM g1, g2 INNER JOIN g3 ON g2.a = g3.a\", fileNode);\n }",
"@Test\n\tpublic void testHybridLoading(){\n\t\t//get the hybrid parents of a hybrid taxon\n\t\tTaxonModel taxon = taxonDAO.loadTaxon(2663, false);\n\t\tList<TaxonModel> hybridParents = taxon.getHybridparents();\n\t\tassertFalse(hybridParents.isEmpty());\n\t\tassertEquals(new Integer(2658), hybridParents.get(0).getId());\n\t\t\n\t\t//get the hybrid taxon from the hybrid parent\n\t\ttaxon = taxonDAO.loadTaxon(2658, false);\n\t\tList<TaxonModel> hybridChildren = taxon.getHybridchildren();\n\t\tassertFalse(hybridChildren.isEmpty());\n\t\tassertEquals(new Integer(2663), hybridChildren.get(0).getId());\n\t}",
"@Test\n public void testMixedJoin() throws Exception {\n String sql = \"SELECT * FROM g1 cross join (g2 cross join g3), g4\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode2 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n \n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"g4\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN (g2 CROSS JOIN g3), g4\", fileNode);\n }",
"@Test\n public void testMixedJoin2() throws Exception {\n String sql = \"SELECT * FROM g1 cross join (g2 cross join g3), g4, g5 cross join g6\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, 1, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n \n Node jpNode2 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n \n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"g4\");\n\n Node jpNode3 = verify(fromNode, From.CLAUSES_REF_NAME, 3, JoinPredicate.ID);\n verifyJoin(jpNode3, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g5\");\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g6\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN (g2 CROSS JOIN g3), g4, g5 CROSS JOIN g6\", fileNode);\n }",
"boolean isOneToMany();",
"private void checkMappedBy(DeployBeanInfo<?> info, List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck) {\n for (DeployBeanPropertyAssocOne<?> oneProp : info.getDescriptor().propertiesAssocOne()) {\n if (!oneProp.isTransient()) {\n if (oneProp.getMappedBy() != null) {\n checkMappedByOneToOne(oneProp);\n } else if (oneProp.isPrimaryKeyJoin()) {\n primaryKeyJoinCheck.add(oneProp);\n }\n }\n }\n\n for (DeployBeanPropertyAssocMany<?> manyProp : info.getDescriptor().propertiesAssocMany()) {\n if (!manyProp.isTransient()) {\n if (manyProp.isManyToMany()) {\n checkMappedByManyToMany(manyProp);\n } else {\n checkMappedByOneToMany(info, manyProp);\n }\n }\n }\n }",
"@Test\n public void testSqlExistsBasedJoin() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Map<Car, Set<Garage>> results = new LinkedHashMap<Car, Set<Garage>>();\n for (Car car : cars.retrieve(carsQuery)) {\n Query<Garage> garagesWhichServiceThisCarInDublin\n = and(equal(Garage.BRANDS_SERVICED, car.name), equal(Garage.LOCATION, \"Dublin\"));\n for (Garage garage : garages.retrieve(garagesWhichServiceThisCarInDublin)) {\n Set<Garage> garagesWhichCanServiceThisCar = results.get(car);\n if (garagesWhichCanServiceThisCar == null) {\n garagesWhichCanServiceThisCar = new LinkedHashSet<Garage>();\n results.put(car, garagesWhichCanServiceThisCar);\n }\n garagesWhichCanServiceThisCar.add(garage);\n }\n }\n\n assertEquals(\"join results should contain 2 cars\", 2, results.size());\n Assert.assertTrue(\"join results should contain car1\", results.containsKey(car1));\n Assert.assertTrue(\"join results should contain car4\", results.containsKey(car4));\n\n assertEquals(\"join results for car1\", asSet(garage3, garage4), results.get(car1));\n assertEquals(\"join results for car4\", asSet(garage2), results.get(car4));\n }",
"@Test\n public void testTableDependencies() throws Exception {\n Table table = database.findTableByName(\"programs_with_twitter_tags\");\n assertDependentTables(table, \"programs\", \"broadcasts\", \"clusters\");\n }",
"@Override\n @Test\n public void testSimpleJoin() throws Exception { }",
"@Test\n\tpublic void testCreateRowRelation() throws SQLException\n\t{\n\t\tnew PowerTool(\"asdf\", 5, 5, \"PowerTooldescription\", true);\n\t\tnew StripNail(\"UPC\", 5, 5, 3.33, 9);\n\t\t\n\t\tnew PowerToolsToStripNailsMapper(1,2);\n\t\t\n\t\tResultSet rs = DatabaseGateway.getTable(\"PowerToolsTOStripNails\");\n\t\tif(rs.next())\n\t\t{\n\t\t\tassertEquals(rs.getInt(\"PowerToolid\"),1);\n\t\t\tassertEquals(rs.getInt(\"StripNailid\"),2);\n\t\t}\n\t}",
"private void handleJoinTable(JFieldVar field, JDefinedClass clazz, String propertyName, JsonNode propertyNode) {\n if (propertyNode.has(JpaConstants.JOIN_TABLE)) {\n JAnnotationUse jAnnotationUse = field.annotate(JoinTable.class);\n JsonNode node = propertyNode.get(JpaConstants.JOIN_TABLE);\n\n if (node.has(JpaConstants.NAME)) {\n String tableName = node.get(JpaConstants.NAME).asText();\n jAnnotationUse.param(JpaConstants.NAME, tableName);\n }\n\n if (node.has(JpaConstants.JOIN_COLUMNS)) {\n handleJoinColumns(node, jAnnotationUse, JpaConstants.JOIN_COLUMNS);\n handleJoinColumns(node, jAnnotationUse, JpaConstants.INVERSE_JOIN_COLUMNS);\n }\n }\n }",
"void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }",
"@Test\n\tpublic void testLoadTaxonModel(){\n\t\tTaxonModel taxon = taxonDAO.loadTaxon(73, false);\n\t\tassertEquals(\"Equisetopsida\",taxon.getUninomial());\n\t\t//validate joins\n\t\tassertEquals(\"accepted\",taxon.getStatus().getStatus());\n\t\tassertEquals(\"Class\",taxon.getRank().getRank());\n\t\t\n\t\t//validate taxonomy\n\t\tTaxonModel childTaxon = null;\n\t\tIterator<TaxonModel> taxonIt = taxon.getChildren().iterator();\n\t\twhile(taxonIt.hasNext()){\n\t\t\tchildTaxon = taxonIt.next();\n\t\t\t//try to find back Equisetidae (id == 26)\n\t\t\tif(childTaxon.getId().intValue() == 26){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//validate distribution\n\t\tint qty = 0;\n\t\tIterator<DistributionModel> distIt = taxon.getDistribution().iterator();\n\t\twhile(distIt.hasNext()){\n\t\t\tdistIt.next();\n\t\t\tqty++;\n\t\t}\n\t\tassertTrue(qty > 2);\n\t\t\n\t\tassertEquals(\"Equisetidae\",childTaxon.getUninomial());\n\t\tassertEquals(\"accepted\",childTaxon.getStatus().getStatus());\n\t\tassertEquals(\"Subclass\",childTaxon.getRank().getRank());\n\t\t\n\t\tassertEquals(new Integer(73),childTaxon.getParents().get(0).getId());\n\t\t\n\t\tList<TaxonModel> taxonList = taxonDAO.loadTaxonByName(\"Equisetopsida\");\n\t\tassertEquals(new Integer(73),taxonList.get(0).getId());\n\t\t\n\t\t//test loadTaxonList(...)\n\t\tList<TaxonModel> taxonModelList = taxonDAO.loadTaxonList(Arrays.asList(new Integer[]{73,26}));\n\t\tassertTrue(taxonModelList.get(0).getId().equals(73) || taxonModelList.get(0).getId().equals(26));\n\t\tassertTrue(taxonModelList.get(1).getId().equals(73) || taxonModelList.get(1).getId().equals(26));\n\t}",
"public void fetchRelative(String tableName, JoinType joinType) {\n JoinType queryJoin = joinType;\n if (queryJoin == null) {\n queryJoin = JoinType.INNER;\n }\n fetchTables.add(new BaseJoin(tableName, queryJoin));\n }",
"@Test\n\tpublic void manyToManyTest() {\n\t\tSystem.out.println(\"============manyToManyTest=========\");\n\t\tUser u = new User();\n\t\tRole r = new Role();\n\t\tPrivilege p = new Privilege();\n\t\tUserRole ur = new UserRole();\n\t\tRolePrivilege rp = new RolePrivilege();\n\t\tDao.getDefaultContext().setShowSql(true);\n\t\tList<User> users = Dao.queryForEntityList(User.class,\n\t\t\t\tu.pagination(1, 10, //\n\t\t\t\t\t\tselect(), u.all(), \",\", ur.all(), \",\", r.all(), \",\", rp.all(), \",\", p.all(), from(), u.table(), //\n\t\t\t\t\t\t\" left join \", ur.table(), \" on \", oneToMany(), u.ID(), \"=\", ur.UID(), bind(), //\n\t\t\t\t\t\t\" left join \", r.table(), \" on \", oneToMany(), r.ID(), \"=\", ur.RID(), bind(), //\n\t\t\t\t\t\t\" left join \", rp.table(), \" on \", oneToMany(), r.ID(), \"=\", rp.RID(), bind(), //\n\t\t\t\t\t\t\" left join \", p.table(), \" on \", oneToMany(), p.ID(), \"=\", rp.PID(), bind(), //\n\t\t\t\t\t\t\" order by \", u.ID(), \",\", r.ID(), \",\", p.ID()));\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tSet<Role> roles = user.getUniqueNodeSet(Role.class);\n\t\t\tfor (Role role : roles)\n\t\t\t\tSystem.out.println(\"\\t\" + role.getRoleName());\n\t\t\tSet<Privilege> privs = user.getUniqueNodeSet(Privilege.class);\n\t\t\tfor (Privilege priv : privs)\n\t\t\t\tSystem.out.println(\"\\t\" + priv.getPrivilegeName());\n\t\t}\n\t}",
"@Test\n public void test() {\n manager.clear();\n TypedQuery<MasterEntity> query2 = manager.createQuery(\"select m from MasterEntity m join fetch m.ref\", MasterEntity.class);\n logger.debug(query2.getResultList().toString());\n// manager.clear();\n// CriteriaBuilder cb = manager.getCriteriaBuilder();\n// CriteriaQuery<MasterEntity> q = cb.createQuery(MasterEntity.class);\n// Root<MasterEntity> root = q.from(MasterEntity.class);\n// root.fetch(\"ref\");\n// manager.createQuery(q).getResultList();\n\n }",
"@Test\n public void testMultiCrossJoin2() throws Exception {\n String sql = \"SELECT * FROM (g1 cross join g2) cross join (g3 cross join g4)\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode2 = verify(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode3 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode3, JoinTypeTypes.JOIN_CROSS);\n \n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g2\");\n\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g3\");\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g4\");\n \n verifySql(\"SELECT * FROM (g1 CROSS JOIN g2) CROSS JOIN (g3 CROSS JOIN g4)\", fileNode);\n }",
"@Test\r\n\tpublic void addRelatedTable() {\r\n\t\ttestObj.addRelatedTable(1);\r\n\t\ttestObj.makeArrays();\r\n\t\tassertEquals(\"relatedTables size should be 1\", 1, testObj.getRelatedTablesArray().length);\r\n\t}",
"@Test\n public void testCrossJoin() throws Exception {\n String sql = \"SELECT * FROM g1 cross join g2\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g2\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN g2\", fileNode);\n }",
"public void testJoinKey() {\n em.getTransaction().begin();\n em.createQuery(\"DELETE FROM Student s\").executeUpdate();\n em.createQuery(\"DELETE FROM Course s\").executeUpdate();\n em.createQuery(\"DELETE FROM Semester s\").executeUpdate();\n em.getTransaction().commit();\n\n em.getTransaction().begin();\n Student s1 = new Student(); s1.setName(\"S1\");\n Student s2 = new Student(); s2.setName(\"S2\");\n Student s3 = new Student(); s3.setName(\"S3\");\n Student s4 = new Student(); s4.setName(\"S4\");\n Semester sm1 = new Semester(); sm1.setName(\"Summer\");\n Semester sm2 = new Semester(); sm2.setName(\"Fall\");\n Course c1 = new Course(); c1.setName(\"C1\");\n Course c2 = new Course(); c2.setName(\"C2\");\n\n s1.addToEnrollment(c1, sm1); s1.addToEnrollment(c2, sm2);\n s2.addToEnrollment(c2, sm1); s2.addToEnrollment(c1, sm2);\n s3.addToEnrollment(c1, sm2);\n s4.addToEnrollment(c2, sm1);\n\n em.persist(s1); em.persist(s2); em.persist(s3); em.persist(s4);\n em.persist(c1); em.persist(c2);\n em.persist(sm1); em.persist(sm2);\n em.getTransaction().commit();\n\n String jpql = \"select s from Student s JOIN s.enrollment e where KEY(e).name=:name\";\n List<Student> jResult = em.createQuery(jpql).setParameter(\"name\", \"C1\").getResultList();\n\n CriteriaQuery<Student> q = cb.createQuery(Student.class);\n Root<Student> s = q.from(Student.class);\n Join<Map<Course,Semester>,Course> c = ((Joins.Map)s.join(Student_.enrollment)).joinKey();\n q.where(cb.equal(c.get(Course_.name), cb.parameter(String.class, \"name\")));\n\n List<Student> cResult = em.createQuery(q).setParameter(\"name\",\"C1\").getResultList();\n\n assertFalse(jResult.isEmpty());\n assertEquals(cResult.size(), jResult.size());\n for (int i = 0; i < jResult.size(); i++) {\n assertEquals(jResult.get(i).getName(), cResult.get(i).getName());\n }\n }",
"@Override\n public void prepare() {\n leftChild.prepare();\n rightChild.prepare();\n\n // Use the parent class' helper-function to prepare the schema.\n prepareSchemaStats();\n\n /** if the join is an anti or semi join, must change the schema to that of the left child*/\n if (joinType == JoinType.ANTIJOIN || joinType == JoinType.SEMIJOIN) {\n schema = leftChild.getSchema();\n sem_ant = true;\n outer = false;\n }\n /** If the join type is an outer, sets state variables and creates the null-pad tuple*/\n else if (joinType == JoinType.LEFT_OUTER || joinType == JoinType.RIGHT_OUTER) {\n outer = true;\n sem_ant = false;\n if (joinType == JoinType.LEFT_OUTER)\n nullPad = new TupleLiteral(rightChild.getSchema().numColumns());\n else {\n nullPad = new TupleLiteral(leftChild.getSchema().numColumns());\n }\n }\n /** if the join is an inner join*/\n else {\n sem_ant = false;\n outer = false;\n }\n \n // We obtain the cost of our children\n PlanCost lChildCost = leftChild.getCost();\n PlanCost rChildCost = rightChild.getCost();\n \n // Our base number of tuples is the two tuples multiplied together\n float totalTuples = lChildCost.numTuples * rChildCost.numTuples;\n \n // If we have a predicate, we multiply by this value\n if (predicate != null) {\n // We use a selectivity estimator if necessary\n float selValue = SelectivityEstimator.estimateSelectivity(\n predicate, \n schema, \n stats);\n \n // Anti-joins will have the opposite of our estimated selectivity\n if (joinType == JoinType.ANTIJOIN || \n joinType == JoinType.SEMIJOIN) {\n selValue = 1 - selValue;\n }\n totalTuples *= selValue;\n }\n // Outer joins require extra nodes for their bounds\n if (joinType == JoinType.LEFT_OUTER) {\n totalTuples += lChildCost.numTuples;\n }\n else if (joinType == JoinType.RIGHT_OUTER) {\n totalTuples += rChildCost.numTuples;\n }\n \n cost = new PlanCost(\n // We have our total number of tuples\n totalTuples,\n // Our overall tuple size is now the size of the two\n // tuples added together\n lChildCost.tupleSize + rChildCost.tupleSize,\n // Our CPU cost is the cost of going through every tuple\n // on the right child for every tuple on the left\n // and for computing both tables\n lChildCost.numTuples * rChildCost.numTuples + lChildCost.cpuCost + rChildCost.cpuCost,\n // Our block cost is the cost of going through the blocks\n // in the two children\n lChildCost.numBlockIOs + rChildCost.numBlockIOs);\n }",
"@Test\n\tpublic void join(){\n\t\t\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);\n\t\t\n\t\t\n\t\t// Define roots\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\n\t\t\n\t\t// Define Predicate\n\t\tJoin<Object, Object> join = courseRoot.join(\"students\");\n\t\t\n\t\t// Add Predicate\n\t\n\t\t//5. Defined Typed Query\n\t\t\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));\n\t\t\t\t\n\t\t\t\tList<Course> resultList = query.getResultList();\n\t\t\t\t\n\t\t\t\tlogger.info(\"JOINED COURSES ==> {}\", resultList);\n\t\t\t\t\t\n\t}",
"@Transactional(readOnly = true)\n public void associationsAndJoinsExamples() {\n List<Customer> customersWithOrders = getSession().createQuery(\"from Customer as customer inner join customer.orders as ord with ord.shipCountry = 'UK'\").list();\n System.out.println(customersWithOrders.size());\n\n List<Customer> customersWithFetchOrders = getSession().createQuery(\"from Customer as customer inner join fetch customer.orders as ord where ord.shipCountry = 'UK'\").list();\n System.out.println(customersWithOrders.size());\n\n //FETCH keyword - dociąganie obiektów - iloczyn kartezjanski - sa 2 kolekcje\n //List<Customer> customersWithOrderDetails = getSession().createQuery(\"from Customer as customer inner join fetch customer.orders as ord inner join fetch ord.orderDetails as orderDetail\").list();\n //System.out.println(customersWithOrderDetails.size());\n }",
"private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n return;\n }\n\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocMany<?> mappedAssocMany = mappedManyToMany(prop, mappedBy, targetDesc);\n\n // define the relationships/joins on this side as the\n // reverse of the other mappedBy side ...\n DeployTableJoin mappedIntJoin = mappedAssocMany.getIntersectionJoin();\n DeployTableJoin mappendInverseJoin = mappedAssocMany.getInverseJoin();\n\n String intTableName = mappedIntJoin.getTable();\n\n DeployTableJoin tableJoin = prop.getTableJoin();\n mappedIntJoin.copyTo(tableJoin, true, targetDesc.getBaseTable());\n\n DeployTableJoin intJoin = new DeployTableJoin();\n mappendInverseJoin.copyTo(intJoin, false, intTableName);\n prop.setIntersectionJoin(intJoin);\n\n DeployTableJoin inverseJoin = new DeployTableJoin();\n mappedIntJoin.copyTo(inverseJoin, false, intTableName);\n prop.setInverseJoin(inverseJoin);\n\n if (targetDesc.isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n }",
"boolean hasRelation();",
"private void switchRelations() throws TransactionAbortedException, DbException {\n // IMPLEMENT ME\n }",
"@Test(description = \"positive test to change from all relationships to multiple relationships\")\n public void positiveTestChangeFromRelationshipAll()\n throws Exception\n {\n new RelationshipData(this, \"Test\")\n .from().defDataAll(\"relationship\")\n .create();\n\n new RelationshipData(this, \"Test\")\n .from().defData(\"relationship\", new RelationshipData(this, \"Test1\"))\n .from().defData(\"relationship\", new RelationshipData(this, \"Test2\"))\n .createDependings()\n .update(\"\")\n .checkExport();\n }",
"@Test(description = \"positive test that a derived relationship is defined\")\n public void t23a_positiveTestDerived()\n throws Exception\n {\n this.createNewData(\"Parent\")\n .create();\n this.createNewData(\"Test\")\n .create()\n .update(\"\")\n .setValue(\"derived\", AbstractTest.PREFIX + \"Parent\")\n .update(\"\")\n .checkExport();\n }",
"private void buildRowMapping() {\n final Map<String, ColumnDescriptor> targetSource = new TreeMap<>();\n\n // build a DB path .. find parent node that terminates the joint group...\n PrefetchTreeNode jointRoot = this;\n while (jointRoot.getParent() != null && !jointRoot.isDisjointPrefetch()\n && !jointRoot.isDisjointByIdPrefetch()) {\n jointRoot = jointRoot.getParent();\n }\n\n final String prefix;\n if (jointRoot != this) {\n Expression objectPath = ExpressionFactory.pathExp(getPath(jointRoot));\n ASTPath translated = (ASTPath) ((PrefetchProcessorNode) jointRoot)\n .getResolver()\n .getEntity()\n .translateToDbPath(objectPath);\n\n // make sure we do not include \"db:\" prefix\n prefix = translated.getOperand(0) + \".\";\n } else {\n prefix = \"\";\n }\n\n // find propagated keys, assuming that only one-step joins\n // share their column(s) with parent\n\n if (getParent() != null\n && !getParent().isPhantom()\n && getIncoming() != null\n && !getIncoming().getRelationship().isFlattened()) {\n\n DbRelationship r = getIncoming()\n .getRelationship()\n .getDbRelationships()\n .get(0);\n for (final DbJoin join : r.getJoins()) {\n appendColumn(targetSource, join.getTargetName(), prefix\n + join.getTargetName());\n }\n }\n\n ClassDescriptor descriptor = resolver.getDescriptor();\n\n descriptor.visitAllProperties(new PropertyVisitor() {\n\n public boolean visitAttribute(AttributeProperty property) {\n String target = property.getAttribute().getDbAttributePath();\n if(!property.getAttribute().isLazy()) {\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n\n public boolean visitToMany(ToManyProperty property) {\n return visitRelationship(property);\n }\n\n public boolean visitToOne(ToOneProperty property) {\n return visitRelationship(property);\n }\n\n private boolean visitRelationship(ArcProperty arc) {\n DbRelationship dbRel = arc.getRelationship().getDbRelationships().get(0);\n for (DbAttribute attribute : dbRel.getSourceAttributes()) {\n String target = attribute.getName();\n\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n });\n\n // append id columns ... (some may have been appended already via relationships)\n for (String pkName : descriptor.getEntity().getPrimaryKeyNames()) {\n appendColumn(targetSource, pkName, prefix + pkName);\n }\n\n // append inheritance discriminator columns...\n for (ObjAttribute column : descriptor.getDiscriminatorColumns()) {\n String target = column.getDbAttributePath();\n appendColumn(targetSource, target, prefix + target);\n }\n\n int size = targetSource.size();\n this.rowCapacity = (int) Math.ceil(size / 0.75);\n this.columns = new ColumnDescriptor[size];\n targetSource.values().toArray(columns);\n }",
"@Override\n public boolean supportsRootTreatTreatJoin() {\n return true;\n }",
"private void setRelationships(Map<String, StringBuilder> tablesSQLMap, \n\t\t\tTable table) {\n\t\tfor(String tableName : table.getRelationships().keySet()) {\n\t\t\tStringBuilder createStatement = tablesSQLMap.get(tableName);\n\t\t\tint length;\n\t\t\tStringBuilder constraint;\n\t\t\t\n\t\t\tswitch(table.getRelationships().get(tableName)) {\n\t\t\t\tcase MANYTOMANY:\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase ONETOMANY:\n\t\t\t\t\tconstraint = new StringBuilder();\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(\",\\n\\t\"+table.getTableName()+\"_id \")\n\t\t\t\t\t\t.append(ColumnType.INTEGER.getValue())\n\t\t\t\t\t\t.append(\" \"+ColumnConstraint.NOT_NULL.getValue()+\", \\n\\t\");\n\t\t\t\t\t\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(TableConstraint.FOREIGN_KEY.getValue())\n\t\t\t\t\t\t.append(\" (\"+tableName+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.REFERENCES)\n\t\t\t\t\t\t.append(\" \"+table.getTableName()+\"(\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.DELETE_CASCADE.getValue());\n\t\t\t\t\t\n\t\t\t\t\tlength = createStatement.length();\n\t\t\t\t\tcreateStatement.replace(length-6, length-5, constraint.toString());\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase ONETOONE:\n\t\t\t\t\tconstraint = new StringBuilder();\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(\",\\n\\t\"+table.getTableName()+\"_id \")\n\t\t\t\t\t\t.append(ColumnType.INTEGER.getValue())\n\t\t\t\t\t\t.append(\" \"+ColumnConstraint.NOT_NULL.getValue()+\", \\n\\t\");\n\t\t\t\t\t\n\t\t\t\t\tconstraint.append(TableConstraint.CONSTRAINT.getValue()+\" \")\n\t\t\t\t\t\t.append(\"fk_\"+table.getTableName()+\"_id\"+\" \")\n\t\t\t\t\t\t.append(TableConstraint.FOREIGN_KEY.getValue())\n\t\t\t\t\t\t.append(\" (\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.REFERENCES)\n\t\t\t\t\t\t.append(\" \"+table.getTableName()+\"(\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.DELETE_CASCADE.getValue());\n\t\t\t\t\t\n\t\t\t\t\tlength = createStatement.length();\n\t\t\t\t\tcreateStatement.replace(length-6, length-5, constraint.toString());\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Test\n public void testMultiCrossJoin() throws Exception {\n String sql = \"SELECT * FROM (g1 cross join g2) cross join g3\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode2 = verify(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n \n verifySql(\"SELECT * FROM (g1 CROSS JOIN g2) CROSS JOIN g3\", fileNode);\n }",
"private void setUpRelations() {\n g[0].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[0]);\n g[1].getAuthorities().add(a[1]);\n g[2].getAuthorities().add(a[2]);\n\n u[0].getGroups().add(g[0]);\n u[0].getOwnAuthorities().add(a[2]);\n u[1].getGroups().add(g[1]);\n u[1].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[2]);\n u[2].getOwnAuthorities().add(a[3]);\n u[3].getGroups().add(g[1]);\n u[3].getGroups().add(g[2]);\n merge();\n }",
"@Override\n @Test\n public void testQuery_advancedRankingWithJoin() throws Exception { }",
"@Override\n public void onRelationshipMapLoaded() {\n }",
"protected void createSubQueryJoinTable() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Team -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Person -->\r\n createSelectClauseJoin(subQuery, queryRoot, right);\r\n Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, left);\r\n whereCondition = cb.and(whereCondition, createWhereByAssociation(queryJoinTable, queryRoot, right));\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n\r\n }",
"@Override\n\tprotected boolean chooseTargetRels() throws Exception {\n\t\tList<RelationType> rels = new ArrayList<RelationType> ();\n\t\tint numTries = 0;\n\t\tint created = 0;\n\t\tboolean found = false;\n\t\tRelationType rel;\n\t\t//MN wanted to preserve the initial values of numOfTgtTables and attsPerTargetRel - 26 April 2014\n\t\tString[][] attrs = new String[numOfTgtTables][];\n\t\t\t\n\t\t// first choose one that has attsPerTargetRel\n\t\twhile(created < numOfTgtTables) {\n\t\t\tfound = true;\n\t\t\t\t\n\t\t\t//MN check the following again (it is really tricky) - 26 April 2014\n\t\t\tif(created == 0){\n\t\t\t\tif(keySize < attsPerTargetRel)\n\t\t\t\t\trel = getRandomRel(false, attsPerTargetRel);\n\t\t\t\telse\n\t\t\t\t\t//MN we use minimum to increase reusability - 3 May 2014\n\t\t\t\t\trel = getRandomRel(false, keySize);\n\t\t\t}\n\t\t\telse{\n\t\t\t\trel = getRandomRel(false, attsPerTargetRel+keySize, attsPerTargetRel+keySize);\n\t\t\t\t\t\n\t\t\t\tif(rel != null){\n\t\t\t\t\tfor(int j=0; j<rels.size(); j++)\n\t\t\t\t\t\tif(rels.get(j).getName().equals(rel.getName()))\n\t\t\t\t\t\t\tfound = false;\n\t\t\t\t}else{\n\t\t\t\t\tfound = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t//MN VPISA cares about primary key - 26 April 2014\n\t\t\tif(found && !rel.isSetPrimaryKey()) {\n\t\t\t\t//MN set to false because this is target relation (Am I right?) - 3 May 2014\n\t\t\t\tint [] primaryKeyPos = new int [keySize];\n\t\t\t\tfor(int i=0; i<keySize; i++)\n\t\t\t\t\tprimaryKeyPos[i] = i;\n\t\t\t\tfac.addPrimaryKey(rel.getName(), primaryKeyPos, false);\n\t\t\t}\n\t\t\t\t\n\t\t\tif(found && rel.isSetPrimaryKey()){\n\t\t\t\t//MN keySize should be keySize and key attrs should be the first attrs- 3 May 2014\n\t\t\t\tint[] pkPos = model.getPKPos(rel.getName(), false);\n\t\t\t\t\t\n\t\t\t\tif(pkPos[0] != 0)\n\t\t\t\t\tfound = false;\n\t\t\t}\n\t\t\t\t\n\t\t\t// found a fitting relation\n\t\t\tif (found) {\n\t\t\t\trels.add(rel);\n\t\t\t\tm.addTargetRel(rel);\n\n\t\t\t\tattrs[created] = new String[rel.sizeOfAttrArray()];\n\t\t\t\tfor(int i = 0; i < rel.sizeOfAttrArray(); i++)\n\t\t\t\t\tattrs[created][i] = rel.getAttrArray(i).getName();\n\t\t\t\t\t\n\t\t\t\t//MN attsPerTargetRel should be set (check that) (it is really tricky) - 26 April 2014\n\t\t\t\tif(created == 0){\n\t\t\t\t\tkeySize = model.getPKPos(rel.getName(), false).length; \n\t\t\t\t\tattsPerTargetRel = rel.getAttrArray().length- keySize;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcreated++;\n\t\t\t\tnumTries = 0;\n\t\t\t}\n\t\t\t// not found, have exhausted number of tries? then create new one - path tested 1 May 2014\n\t\t\telse {\n\t\t\t\tnumTries++;\n\t\t\t\tif (numTries >= MAX_NUM_TRIES)\n\t\t\t\t{\n\t\t\t\t\tnumTries = 0;\n\t\t\t\t\tattrs[created] = new String[attsPerTargetRel+keySize];\n\t\t\t\t\tfor(int j = 0; j < attsPerTargetRel+keySize; j++)\n\t\t\t\t\t\tattrs[created][j] = randomAttrName(created, j);\n\t\t\t\t\t\t\n\t\t\t\t\t// create the relation\n\t\t\t\t\tString relName = randomRelName(created);\n\t\t\t\t\trels.add(fac.addRelation(getRelHook(created), relName, attrs[created], false));\n\t\t\t\t\t\t\n\t\t\t\t\t// primary key should be set and its size should be 1- 26 April 2014\n\t\t\t\t\tint [] primaryKeyPos = new int [keySize];\n\t\t\t\t\tfor(int i=0; i<keySize; i++)\n\t\t\t\t\t\tprimaryKeyPos[i] = i;\n\t\t\t\t\tfac.addPrimaryKey(relName, primaryKeyPos, false);\n\t\t\t\t\t\t\n\t\t\t\t\t//MN should I add it to TargetRel? - 26 April 2014\n\t\t\t\t\t//m.addTargetRel(rels.get(rels.size()-1));\n\t\t\t\t\t\t\n\t\t\t\t\tcreated++;\n\t\t\t\t\tnumTries = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t//MN set attrRemainder and numOfSrcTables - 26 April 2014\n\t\tnumOfSrcTblAttr= (numOfTgtTables * attsPerTargetRel) + keySize; \n\t\t//MN considering only this case - 26 April 2014\n\t\tattrRemainder =0;\n\t\t\t\n\t\t//MN foreign key should be set - 26 April 2014\n\t\t//MN should be fixed - 24 June 2014\n\t\taddFKsNoReuse();\n\t\t\n\t\t//MN - 13 May 2014\n\t\ttargetReuse = true;\n\t\t//MN\n\t\treturn true;\n\t}",
"public void testMultifilesLoadOrder() throws Exception {\n\t\tURI figureGalleryFileName = createURI(\"test_main.gmfgraph\"); //$NON-NLS-1$\n\t\t\n\t\tException caughtFGException = assertOrdinaryLoadModelProblems(figureGalleryFileName);\n\t\tassertTrue(\"expected diagnostic exception\", caughtFGException != null); //$NON-NLS-1$\t\t\t\t\n\n\t\tassertOnLoadModelMigrationSuccess(figureGalleryFileName);\n\t\tcheckMultifilesStructure(figureGalleryFileName, false);\n\t\t\n\t\tURI newFigureGalleryUri = temporarySaveMigratedModel(figureGalleryFileName, \"test_main\", \"gmfgraph\");\n\t\tchangeNsUriToOldOne(newFigureGalleryUri, \"gmfgraph\", \"http://www.eclipse.org/gmf/2005/GraphicalDefinition\");\n\t\t\n\t\tassertOnLoadModelMigrationDidNothing(newFigureGalleryUri);\n\t\tModelLoadHelper loadHelper = new ModelLoadHelper(new ResourceSetImpl(), newFigureGalleryUri);\n\t\tResource mainResource = loadHelper.getLoadedResource();\n\t\tassertEquals(1, mainResource.getResourceSet().getResources().size());\n\t\tcheckMultifilesGalleryStructure(mainResource);\n\n\t\t// and opposite load order - nodes first\n\t\tURI diagramElementsFileName = createURI(\"test_linked.gmfgraph\"); //$NON-NLS-1$\n\t\t\n\t\tException caughtDEException = assertOrdinaryLoadModelProblems(diagramElementsFileName);\n\t\tassertTrue(\"expected diagnostic exception\", caughtDEException != null); //$NON-NLS-1$\t\t\t\t\n\n\t\tassertOnLoadModelMigrationSuccess(diagramElementsFileName);\n\t\tcheckMultifilesStructure(diagramElementsFileName, true);\n\n\t\tURI newDiagramElementsUri = temporarySaveMigratedModel(diagramElementsFileName, \"test_linked\", \"gmfgraph\");\n\t\tchangeNsUriToOldOne(newDiagramElementsUri, \"gmfgraph\", \"http://www.eclipse.org/gmf/2005/GraphicalDefinition\");\n\t\t\n\t\tassertOnLoadModelMigrationDidNothing(newDiagramElementsUri);\n\t\tcheckMultifilesStructure(newDiagramElementsUri, true);\n\t}",
"@Test(description = \"positive test to change from multiple types to all types\")\n public void positiveTestChangeToRelationshipAll()\n throws Exception\n {\n new RelationshipData(this, \"Test\")\n .from().defData(\"relationship\", new RelationshipData(this, \"Test1\"))\n .from().defData(\"relationship\", new RelationshipData(this, \"Test2\"))\n .create();\n\n new RelationshipData(this, \"Test\")\n .from().defDataAll(\"relationship\")\n .update(\"\")\n .checkExport();\n }",
"public void testGetDataForInheritance()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\tAttributeInterface arivalDate = factory.createDateAttribute();\r\n\t\t\tarivalDate.setName(\"arivalDate\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(arivalDate);\r\n\r\n\t\t\t//step 2\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenA = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenA.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenA.setName(\"advanceTissueSpecimenA\");\r\n\r\n\t\t\tAttributeInterface newAttribute = factory.createIntegerAttribute();\r\n\t\t\tnewAttribute.setName(\"newAttributeA\");\r\n\t\t\tadvanceTissueSpecimenA.addAbstractAttribute(newAttribute);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenB = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenB.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenB.setName(\"advanceTissueSpecimenB\");\r\n\r\n\t\t\tAttributeInterface newAttributeB = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB.setName(\"newAttributeB\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB);\r\n\t\t\tAttributeInterface newAttributeB2 = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB2.setName(\"newAttributeB2\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB2);\r\n\r\n\t\t\tadvanceTissueSpecimenA = entityManagerInterface.persistEntity(advanceTissueSpecimenA);\r\n\t\t\tadvanceTissueSpecimenB = entityManagerInterface.persistEntity(advanceTissueSpecimenB);\r\n\r\n\t\t\t/*\r\n\t\t\t * Test getData method\r\n\t\t\t */\r\n\r\n\t\t\t//step 3\t\t\t\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\tdataValue.put(barcode, \"123456\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\tLong recordId = entityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\tMap outputMap = entityManagerInterface.getRecordById(tissueSpecimen, recordId);\r\n\r\n\t\t\t//step 4\t\r\n\t\t\tassertEquals(4, outputMap.size());\r\n\t\t\tassertEquals(\"123456\", outputMap.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label\", outputMap.get(label));\r\n\t\t\tassertEquals(\"45\", outputMap.get(quantityInCellCount));\r\n\t\t\tassertEquals(\"11-12-1982\", outputMap.get(arivalDate));\r\n\r\n\t\t\t//step 5\t\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"869\");\r\n\t\t\tdataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"46\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-11-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttribute, \"12\");\r\n\r\n\t\t\trecordId = entityManagerInterface.insertData(advanceTissueSpecimenA, dataValue);\r\n\r\n\t\t\toutputMap = entityManagerInterface.getRecordById(advanceTissueSpecimenA, recordId);\r\n\t\t\t//step 6\t\t\t\r\n\t\t\tassertEquals(5, outputMap.size());\r\n\t\t\tassertEquals(\"869\", outputMap.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label\", outputMap.get(label));\r\n\t\t\tassertEquals(\"46\", outputMap.get(quantityInCellCount));\r\n\t\t\tassertEquals(\"11-11-1982\", outputMap.get(arivalDate));\r\n\r\n\t\t\t//step 7\t\t\t\t\r\n\t\t\tdataValue.clear();\r\n\t\t\tdataValue.put(barcode, \"1001\");\r\n\t\t\tdataValue.put(label, \"specimen parent label new\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"411\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"01-11-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\t\t\tdataValue.put(newAttributeB, \"40\");\r\n\t\t\tdataValue.put(newAttributeB2, \"41\");\r\n\r\n\t\t\trecordId = entityManagerInterface.insertData(advanceTissueSpecimenB, dataValue);\r\n\t\t\toutputMap = entityManagerInterface.getRecordById(advanceTissueSpecimenB, recordId);\r\n\t\t\t//step 8\t\t\t\t\r\n\t\t\tassertEquals(6, outputMap.size());\r\n\t\t\tassertEquals(\"1001\", outputMap.get(barcode));\r\n\t\t\tassertEquals(\"specimen parent label new\", outputMap.get(label));\r\n\t\t\tassertEquals(\"411\", outputMap.get(quantityInCellCount));\r\n\t\t\tassertEquals(\"01-11-1982\", outputMap.get(arivalDate));\r\n\t\t\tassertEquals(\"40\", outputMap.get(newAttributeB));\r\n\t\t\tassertEquals(\"41\", outputMap.get(newAttributeB2));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testInternalEntityRelatedTypes() {\n\t\tlogger.info(\"Run testInternalEntityRelatedTypes\");\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\n\t\t// Entity1InputType\n\t\tfinal IntrospectionFullType entity1InputType = getFullType(introspection,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(27, entity1InputType.getInputFields().size());\n\n\t\tassertInputField(entity1InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"intAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertInputField(entity1InputType, \"longAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLLong.getName());\n\t\tassertInputField(entity1InputType, \"doubleAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLFloat.getName());\n\t\tassertInputField(entity1InputType, \"stringAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"booleanAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBoolean.getName());\n\t\tassertInputField(entity1InputType, \"bigIntAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBigInteger.getName());\n\t\tassertInputField(entity1InputType, \"bigDecimalAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBigDecimal.getName());\n\t\tassertInputField(entity1InputType, \"bytesAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLByte.getName());\n\t\tassertInputField(entity1InputType, \"shortAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLShort.getName());\n\t\tassertInputField(entity1InputType, \"charAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLChar.getName());\n\t\tassertInputField(entity1InputType, \"dateAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLDate.getName());\n\t\tassertInputField(entity1InputType, \"fileAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLFile.getName());\n\t\tassertInputField(entity1InputType, \"localDateAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLLocalDate.getName());\n\t\tassertInputField(entity1InputType, \"localDateTimeAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLLocalDateTime.getName());\n\t\tassertInputField(entity1InputType, \"instantAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLInstant.getName());\n\n\t\tassertInputField(entity1InputType, \"stringList\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"stringSet\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\n\t\tassertInputField(entity1InputType, \"stringList\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"stringSet\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\n\t\tassertInputField(entity1InputType, \"enumAttr\", IntrospectionTypeKindEnum.ENUM, Enum1.class.getSimpleName());\n\n\t\tassertInputField(entity1InputType, \"enumList\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tEnum1.class);\n\t\tassertInputField(entity1InputType, \"enumSet\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tEnum1.class);\n\n\t\tassertInputField(entity1InputType, \"entity2\" + schemaConfig.getAttributeIdSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"entity3\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"entity4\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\tassertInputField(entity1InputType, \"embeddedData1\", IntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEmbeddedData1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tassertInputField(entity1InputType, \"embeddedData1s\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEmbeddedData1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\n\t\t// Entity1LoadResult\n\t\tfinal IntrospectionFullType entity1LoadResult = getFullType(introspection,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, entity1LoadResult.getFields().size());\n\n\t\tassertField(entity1LoadResult, \"data\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity1.class.getSimpleName());\n\t\tassertField(entity1LoadResult, \"orderBy\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tgetOrderByOutputTypeName());\n\t\tassertField(entity1LoadResult, \"paging\", IntrospectionTypeKindEnum.OBJECT, getPagingOutputTypeName());\n\n\t\t// Entity2InputType\n\t\tfinal IntrospectionFullType entity2InputType = getFullType(introspection,\n\t\t\t\tEntity2.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity2InputType.getInputFields().size());\n\n\t\tassertInputField(entity2InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity2InputType, \"entity1\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\t// Entity2LoadResult\n\t\tfinal IntrospectionFullType entity2LoadResult = getFullType(introspection,\n\t\t\t\tEntity2.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, entity2LoadResult.getFields().size());\n\n\t\tassertField(entity2LoadResult, \"data\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity2.class.getSimpleName());\n\t\tassertField(entity2LoadResult, \"orderBy\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tgetOrderByOutputTypeName());\n\t\tassertField(entity2LoadResult, \"paging\", IntrospectionTypeKindEnum.OBJECT, getPagingOutputTypeName());\n\n\t\t// Entity3InputType\n\t\tfinal IntrospectionFullType entity3InputType = getFullType(introspection,\n\t\t\t\tEntity3.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity3InputType.getInputFields().size());\n\n\t\tassertInputField(entity3InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity3InputType, \"entity1\" + schemaConfig.getAttributeIdSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\t// Entity4InputType\n\t\tfinal IntrospectionFullType entity4InputType = getFullType(introspection,\n\t\t\t\tEntity4.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity4InputType.getInputFields().size());\n\n\t\tassertInputField(entity4InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity4InputType, \"entity1\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t}",
"@Test\n \tpublic void whereClauseDirectPointingRelation() {\n \t\tnode23.addJoin(new PointingRelation(node42, NAME, 1));\n \t\tcheckWhereCondition(\n //\t\t\t\tjoin(\"=\", \"_rank23.component_ref\", \"_rank42.component_ref\"),\n \t\t\t\tjoin(\"=\", \"_component23.type\", \"'p'\"),\n \t\t\t\tjoin(\"=\", \"_component23.name\", \"'\" + NAME + \"'\"),\n \t\t\t\tjoin(\"=\", \"_rank23.pre\", \"_rank42.parent\")\n \n \t\t);\n \t}",
"private List<EntityRelationshipType> parentPresent(String entityId, List<EntityRelationshipType> relationList,\n\t\t\tLosConfigDetails owner, LosConfigDetails owned, LosConfigDetails affilated, LosConfigDetails subsidary) {\n\t\tList<EntityRelationshipType> affialiateDataList = new ArrayList<>();\n\t\tList<EntityRelationshipType> child = new ArrayList<>();\n\t\tList<String> individualEntityId2List = new ArrayList<String>();\n\t\tList<String> commercialEntityId2List = new ArrayList<String>();\n\t\tList<String> childrenEntityId2List = new ArrayList<String>();\n\t\tList<EntityRelationshipType> children = entityRelationshipTypeRepository\n\t\t\t\t.findByEntityId1AndDeletedAndStatus(Arrays.asList(entityId));\n\t\tList<EntityRelationshipType> parents = entityRelationshipTypeRepository\n\t\t\t\t.findByEntityId2AndDeleted(Arrays.asList(entityId));\n\t\tparents.stream().forEach(getIndividualEntityId2 -> {\n\t\t\tif ((getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.OWNER)\n\t\t\t\t\t|| getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.OWNED))\n\t\t\t\t\t&& getIndividualEntityId2.getEntityId2().endsWith(LOSEntityConstants.INDIVIDUAL_SUFFIX_CODE)) {\n\t\t\t\tindividualEntityId2List.add(getIndividualEntityId2.getEntityId2());\n\t\t\t} else if (getIndividualEntityId2.getEntityId2().endsWith(LOSEntityConstants.COMMERCIAL_SUFFIX_CODE)\n\t\t\t\t\t&& (getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.SUBSIDIARY)\n\t\t\t\t\t\t\t|| getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.AFFILIATED)\n\t\t\t\t\t\t\t|| getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.OWNER))) {\n\t\t\t\tcommercialEntityId2List.add(getIndividualEntityId2.getEntityId2());\n\t\t\t}\n\t\t});\n\t\tchildren.forEach(getEntityId2 -> {\n\t\t\tif (!childrenEntityId2List.contains(getEntityId2.getEntityId2())) {\n\t\t\t\tchildrenEntityId2List.add(getEntityId2.getEntityId2());\n\t\t\t}\n\t\t});\n\t\tif (!individualEntityId2List.isEmpty() || !childrenEntityId2List.isEmpty()\n\t\t\t\t|| !commercialEntityId2List.isEmpty()) {\n\t\t\treturn checkEntityIdsList(entityId, relationList, owner, owned, affilated, subsidary, affialiateDataList,\n\t\t\t\t\tindividualEntityId2List, commercialEntityId2List, childrenEntityId2List, children, parents);\n\t\t} else {\n\t\t\tchild.addAll(children);\n\t\t\tchild.addAll(parents);\n\t\t}\n\t\treturn child;\n\t}",
"@Test\n public void testMultiCrossJoin3() throws Exception {\n String sql = \"SELECT * FROM g1 cross join (g2 cross join g3)\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n \n Node jpNode2 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n \n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN (g2 CROSS JOIN g3)\", fileNode);\n }",
"protected void sequence_FULL_INNER_JOIN_LEFT_OUTER_RIGHT_joins(ISerializationContext context, joins semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"@DataProvider(name = \"data\")\n public Object[][] getRelationships()\n {\n return this.prepareData(\"relationships\",\n new Object[]{\n \"relationship without anything (to test required fields)\",\n new RelationshipData(this, \"TestRelationship\")},\n new Object[]{\n \"relationship without anything (to test escaped characters)\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")},\n new Object[]{\n \"relationship without defined preventduplicates flag (to test default value)\",\n new RelationshipData(this, \"TestRelationship \\\" 1\"),\n new RelationshipData(this, \"TestRelationship \\\" 1\").setFlag(\"preventduplicates\", false)},\n new Object[]{\n \"relationship with triggers (to test escaped triggers)\",\n new RelationshipData(this, \"TestRelationship \\\" 1\").addTrigger(new AbstractDataWithTrigger.TriggerAction(\"modify\", new MQLProgramData(this, \"Test Program\")))},\n new Object[]{\n \"relationship with one rule (multiple are not working!)\",\n new RelationshipData(this, \"TestRelationship\").setRule(new RuleData(this, \"Rule\"))},\n new Object[]{\n \"relationship abstract true\",\n new RelationshipData(this, \"TestRelationship\").setFlag(\"abstract\", true, Create.ViaValue).defNotSupported(Version.V6R2011x, Version.V6R2012x)},\n new Object[]{\n \"relationship abstract false\",\n new RelationshipData(this, \"TestRelationship\").setFlag(\"abstract\", false, Create.ViaValue).defNotSupported(Version.V6R2011x, Version.V6R2012x),\n new RelationshipData(this, \"TestRelationship\")},\n // from side\n new Object[]{\n \"relationship without from propagate connection\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\")\n .from().defFlag(\"propagateconnection\", true)},\n new Object[]{\n \"relationship with from propagate connection true\",\n new RelationshipData(this, \"TestRelationship\")\n .from().defFlag(\"propagateconnection\", true)},\n new Object[]{\n \"relationship with from propagate connection false\",\n new RelationshipData(this, \"TestRelationship\")\n .from().defFlag(\"propagateconnection\", false)},\n new Object[]{\n \"relationship without from propagate modify\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\")\n .from().defFlag(\"propagatemodify\", false)},\n new Object[]{\n \"relationship with from propagate modify true\",\n new RelationshipData(this, \"TestRelationship\").from().defFlag(\"propagatemodify\", true)},\n new Object[]{\n \"relationship with from propagate modify false\",\n new RelationshipData(this, \"TestRelationship\").from().defFlag(\"propagatemodify\", false)},\n\n new Object[]{\n \"relationship with escaped from meaning\",\n new RelationshipData(this, \"TestRelationship\").from().defString(\"meaning\", \"this is a \\\"test\\\"\")},\n\n new Object[]{\n \"relationship without from cardinality\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"cardinality\", \"many\")},\n new Object[]{\n \"relationship with from cardinality one\",\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"cardinality\", \"one\")},\n new Object[]{\n \"relationship with from cardinality many\",\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"cardinality\", \"many\")},\n\n new Object[]{\n \"relationship without from clone behavior\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"clone\", \"none\")},\n new Object[]{\n \"relationship with from clone behavior none\",\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"clone\", \"none\")},\n new Object[]{\n \"relationship with from clone behavior float\",\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"clone\", \"float\")},\n new Object[]{\n \"relationship with from clone behavior replicate\",\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"clone\", \"replicate\")},\n\n new Object[]{\n \"relationship without from revision behavior\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"revision\", \"none\")},\n new Object[]{\n \"relationship with from revision behavior none\",\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"revision\", \"none\")},\n new Object[]{\n \"relationship with from revision behavior float\",\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"revision\", \"float\")},\n new Object[]{\n \"relationship with from revision behavior replicate\",\n new RelationshipData(this, \"TestRelationship\").from().defSingle(\"revision\", \"replicate\")},\n\n new Object[]{\n \"relationship with one from type\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .from().defData(\"type\", new TypeData(this, \"Test Type\"))},\n new Object[]{\n \"relationship with two escaped from types\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .from().defData(\"type\", new TypeData(this, \"Test Type \\\" 1\"))\n .from().defData(\"type\", new TypeData(this, \"Test Type \\\" 2\"))},\n new Object[]{\n \"relationship with all from types\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .from().defDataAll(\"type\")},\n new Object[]{\n \"relationship with one from relationship\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .from().defData(\"relationship\", new RelationshipData(this, \"Test Relationship\"))},\n new Object[]{\n \"relationship with two escaped from relationships\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .from().defData(\"relationship\", new RelationshipData(this, \"Test Relationship \\\" 1\"))\n .from().defData(\"relationship\", new RelationshipData(this, \"Test Relationship \\\" 2\"))},\n new Object[]{\n \"relationship with all from relationships\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .from().defDataAll(\"relationship\")},\n new Object[]{\n \"relationship with two escaped from types and relationships\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .from().defData(\"relationship\", new RelationshipData(this, \"Test Relationship \\\" 1\"))\n .from().defData(\"relationship\", new RelationshipData(this, \"Test Relationship \\\" 2\"))\n .from().defData(\"type\", new TypeData(this, \"Test Type \\\" 1\"))\n .from().defData(\"type\", new TypeData(this, \"Test Type \\\" 2\"))},\n // to side\n new Object[]{\n \"relationship without to propagate connection\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\").to().defFlag(\"propagateconnection\", true)},\n new Object[]{\n \"relationship with to propagate connection true\",\n new RelationshipData(this, \"TestRelationship\").to().defFlag(\"propagateconnection\", true)},\n new Object[]{\n \"relationship with to propagate connection false\",\n new RelationshipData(this, \"TestRelationship\").to().defFlag(\"propagateconnection\", false)},\n new Object[]{\n \"relationship without to propagate modify\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\").to().defFlag(\"propagatemodify\", false)},\n new Object[]{\n \"relationship with to propagate modify true\",\n new RelationshipData(this, \"TestRelationship\").to().defFlag(\"propagatemodify\", true)},\n new Object[]{\n \"relationship with to propagate modify false\",\n new RelationshipData(this, \"TestRelationship\").to().defFlag(\"propagatemodify\", false)},\n\n new Object[]{\n \"relationship with escaped meaning\",\n new RelationshipData(this, \"TestRelationship\").to().defString(\"meaning\", \"this is a \\\"test\\\"\")},\n\n new Object[]{\n \"relationship without cardinality\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"cardinality\", \"many\")},\n new Object[]{\n \"relationship with cardinality one\",\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"cardinality\", \"one\")},\n new Object[]{\n \"relationship with cardinality many\",\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"cardinality\", \"many\")},\n\n new Object[]{\n \"relationship without clone behavior\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"clone\", \"none\")},\n new Object[]{\n \"relationship with clone behavior none\",\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"clone\", \"none\")},\n new Object[]{\n \"relationship with clone behavior float\",\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"clone\", \"float\")},\n new Object[]{\n \"relationship with clone behavior replicate\",\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"clone\", \"replicate\")},\n\n new Object[]{\n \"relationship without to revision behavior\",\n new RelationshipData(this, \"TestRelationship\"),\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"revision\", \"none\")},\n new Object[]{\n \"relationship with to revision behavior none\",\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"revision\", \"none\")},\n new Object[]{\n \"relationship with to revision behavior float\",\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"revision\", \"float\")},\n new Object[]{\n \"relationship with to revision behavior replicate\",\n new RelationshipData(this, \"TestRelationship\").to().defSingle(\"revision\", \"replicate\")},\n\n new Object[]{\n \"relationship with one to type\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .to().defData(\"type\", new TypeData(this, \"Test Type\"))},\n new Object[]{\n \"relationship with two escaped to types\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .to().defData(\"type\", new TypeData(this, \"Test Type \\\" 1\"))\n .to().defData(\"type\", new TypeData(this, \"Test Type \\\" 2\"))},\n new Object[]{\n \"relationship with all to types\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .to().defDataAll(\"type\")},\n new Object[]{\n \"relationship with one to relationship\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .to().defData(\"relationship\", new RelationshipData(this, \"Test Relationship\"))},\n new Object[]{\n \"relationship with two escaped to relationships\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .to().defData(\"relationship\", new RelationshipData(this, \"Test Relationship \\\" 1\"))\n .to().defData(\"relationship\", new RelationshipData(this, \"Test Relationship \\\" 2\"))},\n new Object[]{\n \"relationship with all to relationships\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .to().defDataAll(\"relationship\")},\n new Object[]{\n \"relationship with two escaped to types and relationships\",\n new RelationshipData(this, \"TestRelationship \\\" 1\")\n .to().defData(\"relationship\", new RelationshipData(this, \"Test Relationship \\\" 1\"))\n .to().defData(\"relationship\", new RelationshipData(this, \"Test Relationship \\\" 2\"))\n .to().defData(\"type\", new TypeData(this, \"Test Type \\\" 1\"))\n .to().defData(\"type\", new TypeData(this, \"Test Type \\\" 2\"))}\n );\n }",
"private void setInheritanceInfo(DeployBeanInfo<?> info) {\n for (DeployBeanPropertyAssocOne<?> oneProp : info.getDescriptor().propertiesAssocOne()) {\n if (!oneProp.isTransient()) {\n DeployBeanInfo<?> assoc = deployInfoMap.get(oneProp.getTargetType());\n if (assoc != null) {\n oneProp.getTableJoin().setInheritInfo(assoc.getDescriptor().getInheritInfo());\n }\n }\n }\n for (DeployBeanPropertyAssocMany<?> manyProp : info.getDescriptor().propertiesAssocMany()) {\n if (!manyProp.isTransient()) {\n DeployBeanInfo<?> assoc = deployInfoMap.get(manyProp.getTargetType());\n if (assoc != null) {\n manyProp.getTableJoin().setInheritInfo(assoc.getDescriptor().getInheritInfo());\n }\n }\n }\n }",
"@Test\n\tpublic void leftJoin(){\n\t\t\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);\n\t\t\n\t\t//Define Roots\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\n\t\t\n\t\t//Define Predicates\n\t\tJoin<Object, Object> leftJoin = courseRoot.join(\"students\",JoinType.LEFT);\n\t\t\n\t\t//Add predicates\n\t\t\n\t\t//Define TypedQuery\n\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));\n\t\t\n\t\tList<Course> resultList = query.getResultList();\n\t\t\n\t\tlogger.info(\"LEFT JOINED COURSES ==> {}\", resultList);\n\t\t\n\t}",
"public boolean containsRelations();",
"protected boolean[] getEntityEagerPropertyFetches() {\n \t\treturn null;\n \t}",
"@Test(description = \"update interface with all relationships for existing interface with one relationship\")\n public void updateAllRelationships4ExistingRelationship()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestType\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel);\n data.create();\n\n inter.addAllRelationships();\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n \"all\",\n \"check that only all relationship is defined\");\n }",
"@Test(timeout = 4000)\n public void test134() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.leftJoin(\"deletesetci\", (String[]) null, \"deletesetci\", \"BouncyCastleProvider\", (String[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(description = \"update interface with one relationship for existing interface with all relationships\")\n public void updateOneRelationship4ExistingAllRelationships()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestRel\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addAllRelationships();\n data.create();\n\n inter.removeRelationships()\n .addRelationship(rel);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n rel.getName(),\n \"check that only one relationship is defined\");\n }",
"@Test\n public void testFullJoin() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG full join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_FULL_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n\n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG FULL OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }",
"@Test\r\n public void testLeftJoinWhenSynonymHasOneEntryWhileAntonymHasMany() {\r\n synonym.put(\"fond\", \"enamored\");\r\n\r\n antonym.put(\"fond\", \"averse\");\r\n antonym.put(\"wrath\", \"delight\");\r\n antonym.put(\"diligent\", \"idle\");\r\n antonym.put(\"guide\", \"follow\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"fond\", \"enamored\", \"averse\"} };\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"private void handleJoinColumns(JsonNode propertyNode, JAnnotationUse jAnnotationUse, String annotationKey) {\n if (propertyNode.has(JpaConstants.JOIN_COLUMNS)) {\n JsonNode node = propertyNode.get(annotationKey);\n if (Objects.isNull(node)) {\n return;\n }\n\n // Create Join Column\n JAnnotationUse joinColumn = jAnnotationUse.annotationParam(annotationKey, JoinColumn.class);\n // Get name value\n if (node.has(JpaConstants.NAME)) {\n String joinColumnName = node.get(JpaConstants.NAME).asText();\n joinColumn.param(JpaConstants.NAME, joinColumnName);\n }\n // Get REFERENCED_COLUMN_NAME value and append\n if (node.has(JpaConstants.REFERENCED_COLUMN_NAME)) {\n joinColumn.param(JpaConstants.REFERENCED_COLUMN_NAME, node.get(JpaConstants.REFERENCED_COLUMN_NAME).asText());\n }\n }\n }",
"@Test\n\tpublic void oneToManyNoBind() {\n\t\tSystem.out.println(\"============oneToManyNoBind1=========\");\n\t\tUser u = new User();\n\t\tEmail e = new Email();\n\t\tList<User> users = Dao.queryForEntityList(User.class, select(), u.all(), \",\", e.all(), from(), u.table(), \",\",\n\t\t\t\te.table(), \" where \", oneToMany(), u.ID(), \"=\", e.UID(), bind());\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tSet<Email> emails = user.getChildNodeSet(Email.class);\n\t\t\tfor (Email email : emails) {\n\t\t\t\tSystem.out.println(\"\\t\" + email.getEmailName());\n\t\t\t\tAssert.assertTrue(user == email.getParentNode(User.class));\n\t\t\t}\n\t\t}\n\t}",
"@Test(description = \"update interface with one relationship for existing interface with another interface\")\n public void updateOneRelationship4ExistingOneRelationships()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel1 = data.getRelationship(\"TestRel1\");\n final RelationshipData rel2 = data.getRelationship(\"TestRel2\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel1);\n data.create();\n\n inter.removeRelationships()\n .addRelationship(rel2);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n rel2.getName(),\n \"check that only second relationship is defined\");\n }",
"@Test\n\tpublic void testReadRowRelationPowerTool() throws SQLException\n\t{\n\t\tnew PowerTool(\"asdf\", 5, 5, \"PowerTooldescription\", true);\n\t\tnew StripNail(\"UPC\", 5, 5, 3.33, 9);\n\t\t\n\t\tnew PowerToolsToStripNailsMapper(1,2);\n\t\t\n\t\tArrayList<Integer> powerToolsRelatedToStripNail = DatabaseGateway.readRowRelationPowerTool(1);\n\t\tassertTrue(powerToolsRelatedToStripNail.contains(2));\n\t}",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.innerJoin(\"hd@\", (String[]) null, \"5|.Y]x-\", \"hd@\", (String[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"boolean isSetFurtherRelations();",
"public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }",
"public void getEntitiesWithConnection(String sQuerySelect,String sFinalQuery,List<String> listColumns,DeepLoadType deepLoadType,Boolean conMapGenerico)throws Exception {\t\r\n\t\tpresutipoproyectos = new ArrayList<PresuTipoProyecto>();\r\n\t\tQueryWhereSelectParameters queryWhereSelectParameters=new QueryWhereSelectParameters();\r\n\t\t\r\n try {\r\n\t\t\tconnexion=connexion.getNewConnexion(this.connexionType,this.parameterDbType,this.entityManagerFactory,PresuTipoProyecto.class.getSimpleName()+\"-getEntitiesWithConnection\");connexion.begin();\t\t\t\r\n\t\t\t\r\n\t\t\tqueryWhereSelectParameters.setFinalQuery(sFinalQuery);\r\n\t\t\t\r\n\t\t\tPresuTipoProyectoLogic.registrarAuditoria(this.connexion,datosCliente.getIdUsuario(),\"GETENTITIESWITHSELECT\",\"\",queryWhereSelectParameters,datosCliente.getsUsuarioPC(),datosCliente.getsNamePC(),datosCliente.getsIPPC());\r\n\t\t\t\r\n\t\t\tpresutipoproyectos=presutipoproyectoDataAccess.getEntities(connexion,sQuerySelect, queryWhereSelectParameters,listColumns,deepLoadType,conMapGenerico); \t \t \r\n\t\t\t\r\n\t\t\tthis.validarGuardarManejarPresuTipoProyecto(presutipoproyectos);\r\n\t\t\t\r\n\t\t\tif(this.isConDeep) {\r\n\t\t\t\tthis.deepLoads(this.datosDeep.getIsDeep(),this.datosDeep.getDeepLoadType(), this.datosDeep.getClases(),this.datosDeep.getSTituloMensaje());\r\n\t\t\t\t\r\n\t\t\t\tPresuTipoProyectoConstantesFunciones.refrescarForeignKeysDescripcionesPresuTipoProyecto(this.presutipoproyectos);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tconnexion.commit();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tconnexion.rollback();\r\n\t\t\t\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t\t\r\n \t} finally {\r\n\t\t\tconnexion.close();\t\t\t\t\r\n\t\t}\r\n\t}",
"public void joinRelative(String tableName, JoinType joinType) {\n JoinType queryJoin = joinType;\n if (queryJoin == null) {\n queryJoin = JoinType.INNER;\n }\n joinTables.add(new BaseJoin(tableName, queryJoin));\n }",
"FromTableJoin createFromTableJoin();",
"public void loadAssociations() {\n\n\t\tinitListSettingNames();\n\n\t\taddDefaultAssociations();\n\t}",
"public void testJoin() {\n\n\t\t\tSystem.out.println(\"\\nSELECT first,last,street,city,state,zip\" + \" FROM people, address\"\n\t\t\t\t\t+ \" WHERE people.addrId = address.addrId\");\n\n\t\t\t// Collection version chains to String[] version,\n\t\t\t// so this code tests both:\n\t\t\tList columns = new ArrayList();\n\t\t\tcolumns.add(\"first\");\n\t\t\tcolumns.add(\"last\");\n\t\t\tcolumns.add(\"street\");\n\t\t\tcolumns.add(\"city\");\n\t\t\tcolumns.add(\"state\");\n\t\t\tcolumns.add(\"zip\");\n\n\t\t\tList tables = new ArrayList();\n\t\t\ttables.add(address);\n\n\t\t\tTable result = // WHERE people.addrID = address.addrID\n\t\t\t\t\tpeople.select(new Selector.Adapter() {\n\t\t\t\t\t\tpublic boolean approve(Cursor[] tables) {\n\t\t\t\t\t\t\treturn tables[0].column(\"addrId\").equals(tables[1].column(\"addrId\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}, columns, tables);\n\n\t\t\tprint(result);\n\t\t\tSystem.out.println(\"\");\n\n\t\t\t// Now test a three-way join\n\t\t\t//\n\t\t\tSystem.out.println(\"\\nSELECT first,last,street,city,state,zip,text\" + \" FROM people, address, third\"\n\t\t\t\t\t+ \" WHERE (people.addrId = address.addrId)\" + \" AND (people.addrId = third.addrId)\");\n\n\t\t\tTable third = TableFactory.create(\"third\", new String[] { \"addrId\", \"text\" });\n\t\t\tthird.insert(new Object[] { \"1\", \"addrId=1\" });\n\t\t\tthird.insert(new Object[] { \"2\", \"addrId=2\" });\n\n\t\t\tresult = people.select(new Selector.Adapter() {\n\t\t\t\tpublic boolean approve(Cursor[] tables) {\n\t\t\t\t\treturn (tables[0].column(\"addrId\").equals(tables[1].column(\"addrId\"))\n\t\t\t\t\t\t\t&& tables[0].column(\"addrId\").equals(tables[2].column(\"addrId\")));\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t\t\tnew String[] { \"last\", \"first\", \"state\", \"text\" }, new Table[] { address, third });\n\n\t\t\tSystem.out.println(result.toString() + \"\\n\");\n\t\t}",
"@Test(timeout = 4000)\n public void test13() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.innerJoin(\"CONTAINER ~-1T&NQX{&OP~@\", (String[]) null, \"CONTAINER ~-1T&NQX{&OP~@\", \"CONTAINER ~-1T&NQX{&OP~@\", (String[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test09() throws Throwable {\n String[] stringArray0 = new String[0];\n SQLUtil.leftJoin(\"cxecute\", stringArray0, \"cxecute\", \"cxecute\", stringArray0);\n DBCatalog dBCatalog0 = new DBCatalog(\"cxecute\");\n DBSchema dBSchema0 = new DBSchema(\"\");\n // Undeclared exception!\n try { \n dBSchema0.getDatabase();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.model.DBSchema\", e);\n }\n }",
"@Test\r\n public void testManyToOneAfterClosed(){\r\n EntityManager em = factory.createEntityManager();\r\n // create MyTestObject1 and a 2 with a reference from 1 to 2.\r\n MyTestObject4 o4 = new MyTestObject4();\r\n o4.setName4(\"04\");\r\n em.persist(o4);\r\n MyTestObject2 o2 = new MyTestObject2(\"ob2\", 123);\r\n o2.setMyTestObject4(o4);\r\n em.persist(o2);\r\n MyTestObject o1 = new MyTestObject();\r\n o1.setMyTestObject2(o2);\r\n em.persist(o1);\r\n em.getTransaction().commit();\r\n // close em\r\n em.close();\r\n\r\n // clean out the caches\r\n clearCaches();\r\n\r\n em = factory.createEntityManager();\r\n // get all MyTestObject2's to get them in 2nd level cache\r\n Query query = em.createQuery(\"select o from MyTestObject2 o\");\r\n List<MyTestObject2> resultList = query.getResultList();\r\n for (MyTestObject2 myTestObject2 : resultList) {\r\n System.out.println(myTestObject2);\r\n }\r\n // close em\r\n em.close();\r\n\r\n em = factory.createEntityManager();\r\n // now get 1's and touch the referenced 2's, ie: getMyTestObject2();\r\n query = em.createQuery(\"select o from MyTestObject o\");\r\n List<MyTestObject> resultList2 = query.getResultList();\r\n for (MyTestObject myTestObject : resultList2) {\r\n System.out.println(myTestObject.getMyTestObject2().getMyTestObject4());\r\n }\r\n em.close();\r\n }",
"void processInheritanceAssociations() {\n\t\tFamixAssociation foundInheritance;\n\t\tHashSet<String> foundInheritanceList;\n\t\tHashSet<String> alreadyIncludedInheritanceList;\n\t\tinheritanceAssociationsPerClass = new HashMap<String, HashSet<String>>();\n\t\ttry{\n\t\t\tIterator<FamixAssociation> iterator = theModel.waitingAssociations.iterator();\n\t for (Iterator<FamixAssociation> i=iterator ; i.hasNext();) {\n\t \tboolean inheritanceAssociation = false;\n\t \tboolean fromExists = false;\n \tboolean toExists = false;\n \tboolean toHasValue = false;\n\t \tFamixAssociation association = (FamixAssociation) i.next();\n\t\t String uniqueNameFrom = association.from;\n\n \t/* Test helper\n \tif (association.from.startsWith(\"Limaki.Actions.Command\")){\n \t\tboolean breakpoint = true;\n \t} */\n\n\t\t if (association instanceof FamixInheritanceDefinition){\n\t\t \tinheritanceAssociation = true;\n\t\t }\n \tif (inheritanceAssociation) {\n\t\t\t if (theModel.classes.containsKey(uniqueNameFrom)) {\n\t\t\t \tfromExists = true;\n\t\t\t }\n \t}\n \tif (inheritanceAssociation && fromExists) {\n\t\t\t if ((association.to != null) && (!association.to.equals(\"\"))) {\n\t\t\t \ttoHasValue = true;\n\t\t\t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n\t\t\t\t \ttoExists = true;\n\t\t\t\t }\n\t\t\t }\n \t}\n\t\t // If association.to is not a unique name of an existing type, try to replace it by the complete unique name.\n\t \t// Determine the type of association.to, first based on imports, and second based on package contents.\n\t \tif (inheritanceAssociation && fromExists && !toExists && toHasValue) {\n String to = findClassInImports(association.from, association.to);\n if (!to.equals(\"\")) {\n association.to = to;\n }\n else {\n\t \tString belongsToPackage = theModel.classes.get(association.from).belongsToPackage;\n\t to = findClassInPackage(association.to, belongsToPackage);\n\t if (!to.equals(\"\")) { // So, in case association.to shares the same package as association.from \n\t association.to = to;\n\t }\n }\n \t\t if (theModel.classes.containsKey(association.to) || theModel.classes.containsKey(\"xLibraries.\" + association.to)) {\n \t\t \ttoExists = true;\n \t\t }\n \t}\n\t \tif (inheritanceAssociation && fromExists && toExists && !theModel.associations.contains(association)) {\n\t\t \t// Add the inheritance association to the FamixModel, but only if to and from are equal. \n\t \tif (!association.from.equals(association.to)) { \n\t \t\taddToModel(association);\n\t \t}\n\n\t \t// Fill the HashMap inheritanceAccociationsPerClass with inheritance dependencies to super classes or interfaces \n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = null;\n\t \tfoundInheritanceList = null;\n\t \talreadyIncludedInheritanceList = null;\n\t \tfoundInheritance = association;\n\t \tif(inheritanceAssociationsPerClass.containsKey(uniqueNameFrom)){\n\t \t\talreadyIncludedInheritanceList = inheritanceAssociationsPerClass.get(uniqueNameFrom);\n\t \t\tif (!alreadyIncludedInheritanceList.contains(association.to)) {\n\t \t\t\talreadyIncludedInheritanceList.add(foundInheritance.to);\n\t \t\t}\n\t \t\tinheritanceAssociationsPerClass.put(uniqueNameFrom, alreadyIncludedInheritanceList);\n\t \t}\n\t \telse{\n\t\t \tfoundInheritanceList = new HashSet<String>();\n\t\t \tfoundInheritanceList.add(foundInheritance.to);\n\t\t \tinheritanceAssociationsPerClass.put(uniqueNameFrom, foundInheritanceList);\n\t \t}\n\t \t\n\t \t// Remove from waitingAssociations afterwards, to enhance the performance. \t\n\t\t\t i.remove();\n\t \t}\n\t }\n\t\t} catch(Exception e) {\n\t this.logger.debug(new Date().toString() + \"Exception may result in incomplete dependency list. Exception: \" + e);\n\t //e.printStackTrace();\n\t\t}\n\t\tindirectAssociations_DeriveIndirectInheritance();\n this.logger.info(new Date().toString() + \" Finished: processInheritanceAssociations()\");\n }",
"@Test\n\tpublic void shouldEstablishCourseToTopicsRelationships(){\n\t\tTopic java = topicRepo.save(new Topic(\"Java\")); // create Topic first\n\t\tTopic ruby = topicRepo.save(new Topic(\"Ruby\"));\n\t\tCourse course = new Course(\"OO Languages\", \"description\", java, ruby); // including Topic objects in our course table \n\t\tcourse = courseRepo.save(course); // saving course in repo \n\t\tlong courseId = course.getId(); \n\t\tentityManager.flush(); \n\t\tentityManager.clear();\n\t\t\n\t\tOptional<Course> result = courseRepo.findById(courseId);\n\t\tcourse = result.get();\n\t\t\n\t\tassertThat(course.getTopics(), containsInAnyOrder(java,ruby));\t\n\t\t\t\t\n\t}",
"@Override\n\t\tpublic boolean hasRelationship(RelationshipType... types) {\n\t\t\treturn false;\n\t\t}",
"@Test\n @Tag(\"CREATE\")\n @Tag(\"RESOURCE\")\n @DisplayName(\"Test Hibernate Lazy Loading in Default\")\n public void testHibernateDefaultLazyLoading()\n {\n System.out.println(\"Programme Start\");\n long startTime = System.nanoTime();\n\n SBAddressVal01 addressVal01 = SBAddressVal01.of(\n \"Kusumarama Road\",\n \"Seenigama\",\n \"Hikkaduwa\",\n \"Sri Lanka\",\n \"292000\"\n );\n\n SBCustomerOrder order01 = SBCustomerOrder.of(\n \"IN0000001\",\n new Timestamp(new java.util.Date().getTime()),\n 2024.50\n );\n\n SBCustomerOrder order02 = SBCustomerOrder.of(\n \"IN0000002\",\n new Timestamp(new java.util.Date().getTime()),\n 1024.50\n );\n\n SBCustomerOrder order03 = SBCustomerOrder.of(\n \"IN0000003\",\n new Timestamp(new java.util.Date().getTime()),\n 3024.50\n );\n\n SBCustomerOrder order04 = SBCustomerOrder.of(\n \"IN0000004\",\n new Timestamp(new java.util.Date().getTime()),\n 5024.50\n );\n\n SBCustomer05 sbCustomer05 = new SBCustomer05();\n\n sbCustomer05.getCustomer05Orders().add(order01);\n sbCustomer05.getCustomer05Orders().add(order02);\n sbCustomer05.getCustomer05Orders().add(order03);\n sbCustomer05.getCustomer05Orders().add(order04);\n\n sbCustomer05.setCustomer05Email(\"umesh@slmora.com\");\n sbCustomer05.setCustomer05Sex(\"Male\");\n sbCustomer05.setCustomer05FirstName(\"Umesh\");\n sbCustomer05.setCustomer05LastName(\"Gunasekara\");\n sbCustomer05.setCustomer05Nic(\"901521344V\");\n sbCustomer05.setCustomer05Mobile(\"0711233000\");\n try {\n sbCustomer05.setCustomer05Birthday(new SimpleDateFormat(\"dd/MM/yyyy\").parse(\"31/05/1990\"));\n } catch (ParseException e) {\n LOGGER.error(ExceptionUtils.getFullStackTrace(e));\n e.printStackTrace();\n }\n sbCustomer05.setCustomer05Address(addressVal01);\n sbCustomer05.setRawLastUpdateDateTime(new Timestamp(new java.util.Date().getTime()));\n sbCustomer05.setRawLastUpdateLogId(1);\n sbCustomer05.setUpdateUserAccountId(1);\n sbCustomer05.setRawActiveStatus(1);\n sbCustomer05.setRawDeleteStatus(1);\n sbCustomer05.setRawShowStatus(1);\n sbCustomer05.setRawUpdateStatus(1);\n\n\n Transaction transaction = null;\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n session.save(sbCustomer05);\n transaction.commit();\n System.out.println(\"Added Customer 03: \" + sbCustomer05.getCustomer05FirstName());\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n //********************************************\n //The first session has benn closed with end of try catch\n //*******************************************\n\n try (Session session = HibernateUtil.getSessionFactory().openSession();) {\n transaction = session.beginTransaction();\n SBCustomer05 customer = session.get(SBCustomer05.class, sbCustomer05.getCustomer05Id());\n transaction.commit();\n System.out.println(\"Get Customer 05: \" + customer.getCustomer05FirstName());\n System.out.println(\"Get Customer 05 Orders \");\n customer.getCustomer05Orders().forEach(\n order ->\n {\n System.out.println(\"Order Invoice Number :\" + order.getCustomerOrderInvoiceNumber());\n System.out.println(\"\\tDate & Time :\" + order.getCustomerOrderDateTime());\n System.out.println(\"\\tTotal Amount:\" + order.getCustomerOrderTotal());\n });\n } catch (Throwable throwable) {\n if (transaction != null) {\n transaction.rollback();\n }\n LOGGER.error(ExceptionUtils.getFullStackTrace(throwable));\n throwable.printStackTrace();\n }\n\n long endTime = System.nanoTime();\n ELAPSED_TIME = endTime - startTime;\n System.out.println(\"Programme End\");\n\n }",
"@Test\n\tpublic void oneToManyNoBind2() {\n\t\tSystem.out.println(\"============oneToManyNoBind2=========\");\n\t\tUser u = new User();\n\t\tEmail e = new Email();\n\t\tList<Email> emails = Dao.queryForEntityList(Email.class, select(), u.all(), \",\", e.all(), from(), u.table(),\n\t\t\t\t\",\", e.table(), \" where \", oneToMany(), u.ID(), \"=\", e.UID(), bind());\n\t\tfor (Email email : emails) {\n\t\t\tSystem.out.println(email.getEmailName());\n\t\t\tUser user = email.getParentNode(User.class);\n\t\t\tSystem.out.println(\"\\t\" + user.getUserName());\n\t\t}\n\t}",
"public void testJoinOuter() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName, c.AD_Column_ID, c.ColumnName \" + \"FROM AD_Table t LEFT OUTER JOIN AD_Column c ON (t.AD_Table_ID=c.AD_Table_ID) WHERE t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t,AD_Column=c|0]\", fixture.toString());\n }",
"@Test\n public void testLeftJoinWithAliases() throws Exception {\n String sql = \"Select myG.a myA, myH.b from g myG left outer join h myH on myG.x=myH.x\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verifyAliasSymbolWithElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 1, \"myA\", \"myG.a\");\n verifyElementSymbol(selectNode, Select.SYMBOLS_REF_NAME, 2, \"myH.b\");\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_LEFT_OUTER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"myG\", \"g\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"myH\", \"h\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"myG.x\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"myH.x\");\n \n verifySql(\"SELECT myG.a AS myA, myH.b FROM g AS myG LEFT OUTER JOIN h AS myH ON myG.x = myH.x\", fileNode);\n }",
"private void constructJoins(CriteriaBuilderImpl cb, AbstractCriteriaQueryImpl<?> q, RootImpl<Object> r, Tree joins) {\n \t\tfor (int i = 0; i < joins.getChildCount(); i++) {\n \t\t\tfinal Tree join = joins.getChild(i);\n \n \t\t\tJoinType joinType = JoinType.INNER;\n \n \t\t\tfinal int joinSpecification = join.getChild(0).getType();\n \t\t\tint offset = 0;\n \n \t\t\tif (joinSpecification == JpqlParser.INNER) {\n \t\t\t\toffset = 1;\n \t\t\t\tjoinType = JoinType.INNER;\n \t\t\t}\n \t\t\telse if (joinSpecification == JpqlParser.LEFT) {\n \t\t\t\toffset = 1;\n \t\t\t\tjoinType = JoinType.LEFT;\n \t\t\t}\n \n \t\t\tif (join.getChildCount() == (offset + 3)) {\n \t\t\t\tFetchParent<?, ?> parent = this.getAliased(q, join.getChild(offset).getText());\n \n \t\t\t\tfinal Qualified qualified = new Qualified(join.getChild(offset + 1).getChild(0));\n \n \t\t\t\tfor (final String segment : qualified.getSegments()) {\n \t\t\t\t\tparent = parent.fetch(segment, joinType);\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tAbstractFrom<?, ?> parent = this.getAliased(q, join.getChild(offset).getText());\n \n \t\t\t\tfinal Aliased aliased = new Aliased(join.getChild(offset + 1));\n \n \t\t\t\tint depth = 0;\n \t\t\t\tfor (final String segment : aliased.getQualified().getSegments()) {\n \t\t\t\t\tif ((depth > 0) && (parent instanceof PluralJoin)) {\n \t\t\t\t\t\tthrow new PersistenceException(\"Cannot qualify, only embeddable joins within the path allowed, \" + \"line \" + join.getLine() + \":\"\n \t\t\t\t\t\t\t+ join.getCharPositionInLine());\n \t\t\t\t\t}\n \n \t\t\t\t\tparent = parent.join(segment, joinType);\n \n \t\t\t\t\tdepth++;\n \t\t\t\t}\n \n \t\t\t\tthis.putAlias(q, join.getChild(1), aliased, parent);\n \t\t\t}\n \t\t}\n \t}",
"@Test\r\n\tpublic void testLoad() {\n\t\tDalConfigure configure = null;\r\n\t\ttry {\r\n\t\t\tconfigure = DalConfigureFactory.load();\r\n\t\t\tassertNotNull(configure);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail();\r\n\t\t}\r\n\r\n\t\tDatabaseSet databaseSet = configure.getDatabaseSet(\"clusterName1\");\r\n\t\tassertTrue(databaseSet instanceof ClusterDatabaseSet);\r\n\t\tassertEquals(\"clusterName1\".toLowerCase(), ((ClusterDatabaseSet) databaseSet).getCluster().getClusterName());\r\n\t\ttry {\r\n\t\t\tconfigure.getDatabaseSet(\"clusterName1\".toLowerCase());\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tconfigure.getDatabaseSet(\"clusterName2\");\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdatabaseSet = configure.getDatabaseSet(\"DbSetName\");\r\n\t\tassertTrue(databaseSet instanceof ClusterDatabaseSet);\r\n\t\tassertEquals(\"clusterName2\".toLowerCase(), ((ClusterDatabaseSet) databaseSet).getCluster().getClusterName());\r\n\t\ttry {\r\n\t\t\tconfigure.getDatabaseSet(\"DbSetName\".toLowerCase());\r\n\t\t\tfail();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"RelationshipRecord relLoadLight( long id );",
"public void testInsertDataForInheritanceParentNoData()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\tAttributeInterface arivalDate = factory.createDateAttribute();\r\n\t\t\tarivalDate.setName(\"arivalDate\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(arivalDate);\r\n\r\n\t\t\t//step 2\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\r\n\t\t\tMap dataValue = new HashMap();\r\n\t\t\t//dataValue.put(barcode, \"123456\");\r\n\t\t\t//dataValue.put(label, \"specimen parent label\");\r\n\t\t\tdataValue.put(quantityInCellCount, \"45\");\r\n\t\t\tdataValue.put(arivalDate, Utility.parseDate(\"11-12-1982\",\r\n\t\t\t\t\tConstants.DATE_PATTERN_MM_DD_YYYY));\r\n\r\n\t\t\t//step 3\r\n\t\t\tLong recordId = entityManagerInterface.insertData(tissueSpecimen, dataValue);\r\n\r\n\t\t\t//step 4\r\n\t\t\tResultSet resultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ specimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\r\n\t\t\tresultSet = executeQuery(\"select * from \"\r\n\t\t\t\t\t+ tissueSpecimen.getTableProperties().getName());\r\n\t\t\tresultSet.next();\r\n\t\t\tassertEquals(1, resultSet.getInt(4));\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"private void semiEagerLoad(final Event event) {\n event.getAuthor();\n event.getCustomer(); event.getCustomer().getUnit();\n event.getProcedure(); event.getProcedure().getUnit();\n if (null == event.getCustomer().getUnit()) {\n LOG.warning(\"BF#42, customer without unit, id=\" + event.getCustomer().getId());\n customerDao.reload(event.getCustomer());\n }\n if (null == event.getProcedure().getUnit()) {\n LOG.warning(\"BF#42, procedure without unit, id=\" + event.getProcedure().getId());\n procedureDao.reload(event.getProcedure());\n }\n final Object customerUnitId = event.getCustomer().getUnit().getId();\n final Object procUnitId = event.getProcedure().getUnit().getId();\n if (LOG.isLoggable(Level.FINE)) {\n LOG.fine(\"semiEagerLoad of event: customer.unit.id=\" + customerUnitId\n + \", procedure.unit.id=\" + procUnitId);\n }\n }",
"public void testFlushCreateHeirarchy2() throws Exception {\n\n String selectCompanys = \"SELECT * FROM COMPANY LEFT JOIN DEPARTMENT ON COMPANY.ID = DEPARTMENT.COMPANYID\";\n\n DAS das = DAS.FACTORY.createDAS(getConfig(\"basicCompanyDepartmentMapping.xml\"), getConnection());\n Command select = das.createCommand(selectCompanys);\n DataObject root = select.executeQuery();\n\n // Create a new Company\n DataObject company = root.createDataObject(\"COMPANY\");\n company.setString(\"NAME\", \"Do-rite Pest Control\");\n\n // Create a new Department\n // Do not set ID or CompanyID since these are generated\n // ID INT, NAME VARCHAR(30), LOCATION VARCHAR(30), NUMBER VARCHAR(10),\n // COMPANYID INT, EOTM INT\n DataObject department = root.createDataObject(\"DEPARTMENT\");\n department.setString(\"NAME\", \"Do-rite Pest Control\");\n // Do not set this property to force storing NULL to DB\n // department.setString(\"LOCATION\", \"The boonies\");\n department.setString(\"DEPNUMBER\", \"101\");\n\n // Associate the new department with the new company\n company.getList(\"departments\").add(department);\n\n das.applyChanges(root);\n\n // Save the id\n Integer id = (Integer) company.get(\"ID\");\n\n // Verify the change\n String selectString = \"SELECT * FROM COMPANY LEFT JOIN DEPARTMENT \"\n + \"ON COMPANY.ID = DEPARTMENT.COMPANYID WHERE COMPANY.ID = ?\";\n\n select = das.createCommand(selectString);\n select.setParameter(1, id);\n root = select.executeQuery();\n assertEquals(\"Do-rite Pest Control\", root.getDataObject(\"COMPANY[1]\").getString(\"NAME\"));\n\n }",
"@Test\n public void testSqlExistsWithForeignRestriction() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Set<Car> results = asSet(cars.retrieve(carsQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain car1\", results.contains(car1));\n assertTrue(\"results should contain car4\", results.contains(car4));\n }",
"@BeforeEach\n public void setUp() {\n EntityManager em = emf.createEntityManager();\n p1 = new Person(\"Joakim\", \"Stensnaes\", \"joakim@mail.dk\");\n p2 = new Person(\"Benjamin\", \"Benzo\", \"benzo@mail.dk\");\n p3 = new Person(\"Thor\", \"Thorsten\", \"thorsten@thor.dk\");\n p4 = new Person(\"Lars\", \"Larsen\", \"lars@mail.dk\");\n\n Hobby h1 = new Hobby(\"Acting\", \"\", \"\", \"\");\n Hobby h2 = new Hobby(\"Baking\", \"\", \"\", \"\");\n Hobby h3 = new Hobby(\"Cooking\", \"\", \"\", \"\");\n\n Address a1 = new Address(\"Bagervej 12\", \"N/A\");\n Address a2 = new Address(\"Krystalgade 40\", \"N/A\");\n\n CityInfo c1 = new CityInfo(\"2200\", \"København N\");\n CityInfo c2 = new CityInfo(\"2400\", \"København N\");\n\n Phone ph1 = new Phone(\"20202020\", \"\");\n Phone ph2 = new Phone(\"30303030\", \"\");\n Phone ph3 = new Phone(\"40404040\", \"\");\n Phone ph4 = new Phone(\"50505050\", \"\");\n Phone ph5 = new Phone(\"60606060\", \"\");\n\n p1.addHobby(h1);\n p1.addHobby(h2);\n p2.addHobby(h1);\n p3.addHobby(h2);\n p3.addHobby(h3);\n p4.addHobby(h1);\n p4.addHobby(h2);\n p4.addHobby(h3);\n\n a1.setCityInfo(c1);\n a2.setCityInfo(c2);\n\n p1.setAddress(a1);\n p2.setAddress(a1);\n p3.setAddress(a2);\n p4.setAddress(a2);\n\n p1.addPhone(ph1);\n p1.addPhone(ph2);\n p2.addPhone(ph3);\n p3.addPhone(ph4);\n p4.addPhone(ph5);\n\n try {\n em.getTransaction().begin();\n em.createQuery(\"DELETE from CityInfo\").executeUpdate();\n em.createQuery(\"DELETE from Address\").executeUpdate();\n em.createQuery(\"DELETE from Hobby\").executeUpdate();\n em.createQuery(\"DELETE from Phone\").executeUpdate();\n em.createQuery(\"DELETE from Person\").executeUpdate();\n em.persist(p1);\n em.persist(p2);\n em.persist(p3);\n em.persist(p4);\n em.getTransaction().commit();\n } finally {\n em.close();\n }\n }",
"@Override\n public void setUp() {\n setUp(DROP_TABLES, Person.class, TblChild.class, TblGrandChild.class, TblParent.class);\n }",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n boolean boolean0 = SQLUtil.isQuery(\"SELECT * FROM join SELECT * FROM as SELECT * FROM on SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .SELECT * FROM = SELECT * FROM .SELECT * FROM and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null and SELECT * FROM .null = SELECT * FROM .null\");\n assertTrue(boolean0);\n }",
"public void testInheritanceGetAllAttributes()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\t\t\tEntityInterface advanceTissueSpecimenA = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenA.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenA.setName(\"advanceTissueSpecimenA\");\r\n\t\t\tAttributeInterface newAttribute = factory.createIntegerAttribute();\r\n\t\t\tnewAttribute.setName(\"newAttributeA\");\r\n\t\t\tadvanceTissueSpecimenA.addAbstractAttribute(newAttribute);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenB = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenB.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenB.setName(\"advanceTissueSpecimenB\");\r\n\t\t\tAttributeInterface newAttributeB = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB.setName(\"newAttributeB\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB);\r\n\t\t\tAttributeInterface newAttributeB2 = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB2.setName(\"newAttributeB2\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB2);\r\n\r\n\t\t\t// Step 2\t\t\t\r\n\t\t\tentityManagerInterface.persistEntity(advanceTissueSpecimenA);\r\n\t\t\tentityManagerInterface.persistEntity(advanceTissueSpecimenB);\r\n\r\n\t\t\t// Step 3\t\r\n\r\n\t\t\tCollection<AttributeInterface> specimenAttributes = specimen.getAllAttributes();\r\n\t\t\t//2 user attributes + 1 system attribute for id\r\n\t\t\tassertEquals(3, specimenAttributes.size());\r\n\r\n\t\t\t//2 child Attributes + 1 parent Attribute + 2 system generated attributes for id\r\n\t\t\tCollection<AttributeInterface> tissueSpecimenAttributes = tissueSpecimen\r\n\t\t\t\t\t.getAllAttributes();\r\n\t\t\tassertEquals(5, tissueSpecimenAttributes.size());\r\n\r\n\t\t\tCollection<AttributeInterface> advanceTissueSpecimenAAttributes = advanceTissueSpecimenA\r\n\t\t\t\t\t.getAllAttributes();\r\n\t\t\t//1 child attribute + 2 parent Attribute + 1 grand parent attribute + 3 system generated attributes\r\n\t\t\tassertEquals(7, advanceTissueSpecimenAAttributes.size());\r\n\r\n\t\t\tCollection<AttributeInterface> advanceTissueSpecimenBAttributes = advanceTissueSpecimenB\r\n\t\t\t\t\t.getAllAttributes();\r\n\t\t\t//2 child attribute + 2 parent Attribute + 1 grand parent attribute + 3 system generated attributes\r\n\t\t\tassertEquals(8, advanceTissueSpecimenBAttributes.size());\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }",
"public static void addDefaultJoinColumnForCompositePK(IdentifiableClass identifiableClass,\r\n Attribute attribute, Set<String> allFields, List<JoinColumn> joinColumns) {\r\n if (attribute instanceof SingleRelationAttribute) {\r\n SingleRelationAttribute relationAttribute = (SingleRelationAttribute) attribute;\r\n if (!relationAttribute.isOwner()) { //Only Owner will draw edge because in any case uni/bi owner is always exist\r\n return;\r\n }\r\n\r\n //check is it composite key\r\n Entity targetEntity = relationAttribute.getConnectedEntity();\r\n relationAttribute.getJoinColumn().clear();\r\n if (joinColumns == null || joinColumns.isEmpty()) {\r\n //unused snippet\r\n for (Attribute targetAttribute : targetEntity.getAttributes().getPrimaryKeyAttributes()) {\r\n JoinColumn joinColumn = new JoinColumn();\r\n String joinColumnName = (targetEntity.getClazz() + '_' + targetAttribute.getName()).toUpperCase();\r\n joinColumnName = getNext(joinColumnName, nextJoinColumnName -> allFields.contains(nextJoinColumnName));\r\n joinColumn.setName(joinColumnName);\r\n if (targetAttribute instanceof RelationAttribute) {\r\n Entity connectedEntity = ((RelationAttribute) targetAttribute).getConnectedEntity();\r\n if (connectedEntity.getCompositePrimaryKeyType() != null) {\r\n //TODO \r\n } else {\r\n Id id = connectedEntity.getAttributes().getId().get(0);\r\n joinColumn.setReferencedColumnName(targetAttribute.getName() + \"_\" + id.getDefaultColumnName());\r\n }\r\n } else {\r\n joinColumn.setReferencedColumnName(targetAttribute.getName());\r\n }\r\n relationAttribute.getJoinColumn().add(joinColumn);\r\n }\r\n } else {\r\n //called from db exception handeler\r\n relationAttribute.getJoinColumn().addAll(joinColumns);\r\n }\r\n }\r\n }"
] | [
"0.699409",
"0.6832691",
"0.6147836",
"0.6047594",
"0.6045613",
"0.5669342",
"0.5585474",
"0.555907",
"0.5557896",
"0.55536264",
"0.5548778",
"0.54901934",
"0.5476718",
"0.54636914",
"0.5457454",
"0.54175895",
"0.53419",
"0.5340484",
"0.53362787",
"0.53001815",
"0.5268601",
"0.52495885",
"0.5210181",
"0.52054584",
"0.5201815",
"0.51689345",
"0.51652384",
"0.5153493",
"0.51509637",
"0.5143227",
"0.514183",
"0.5134668",
"0.51334965",
"0.5133488",
"0.5114447",
"0.51112264",
"0.508337",
"0.50767994",
"0.50739706",
"0.5070775",
"0.50699526",
"0.50683814",
"0.50588655",
"0.50505346",
"0.50434875",
"0.50416285",
"0.5006022",
"0.49975646",
"0.49829608",
"0.49816528",
"0.4977159",
"0.49731255",
"0.49709898",
"0.49602914",
"0.49517384",
"0.49348402",
"0.49172089",
"0.491208",
"0.48931897",
"0.48768955",
"0.48684853",
"0.4853038",
"0.4849737",
"0.4849007",
"0.48407322",
"0.48400578",
"0.48374647",
"0.48321927",
"0.4827815",
"0.48169217",
"0.47922674",
"0.4789817",
"0.47878328",
"0.47866607",
"0.4786456",
"0.47650674",
"0.47592062",
"0.47586077",
"0.47517842",
"0.47500628",
"0.4750061",
"0.47491848",
"0.47467467",
"0.4745635",
"0.47421166",
"0.47417167",
"0.47388795",
"0.47341105",
"0.47286254",
"0.47233856",
"0.47188485",
"0.47137642",
"0.4712967",
"0.47072953",
"0.47071064",
"0.47062638",
"0.47055346",
"0.47053155",
"0.47036585",
"0.4700816"
] | 0.48244825 | 69 |
For each relation type, error test cases when collection is found when not expected and vise versa | @Test(dataProvider = "repositoryFactories")
public void testError_unexpectedCollection(RepositoryFactory factory)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testAddLinkInvalidSameLinkTwiceArrayList() {\n\t\tAddress adr = new Address();\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tTypePropertyCollection proptype = (TypePropertyCollection) adr.getProperty(\"inhabitants\").getType();\n\t\tClass<?> colClassBefore = proptype.getCollectionClass();\n\t\ttry {\n\t\t\tproptype.setCollectionClass(ArrayList.class);\n\t\t\tAssert.assertSame(ArrayList.class, proptype.getCollectionClass());\n\t\t\tAssert.assertNull(adr.getInhabitants());\n\t\t\tAssert.assertNull(martin.getAddress());\n\n\t\t\t// add the same Person to the Address as inhabitant twice\n\t\t\tadr.addInhabitant(martin);\n\t\t\ttry {\n\t\t\t\t// should Assert.fail because of the association end with\n\t\t\t\t// multiplicity\n\t\t\t\t// 1\n\t\t\t\tadr.addInhabitant(martin);\n\t\t\t\tAssert.fail(\"expected ValidationException exception\");\n\t\t\t} catch (ValidationException e) {\n\t\t\t\tAssert.assertTrue(true);\n\t\t\t}\n\t\t} finally {\n\t\t\tproptype.setCollectionClass(colClassBefore);\n\t\t}\n\t}",
"private void verifyUnchangedDerivedRelationships(String relationshipType, Collection<?> relationships,\n Collection<?> oldRelationships) {\n if (relationships.size() != oldRelationships.size()) {\n error = ArtificerConflictException.derivedRelationshipCreation(relationshipType);\n }\n }",
"@Test(description = \"update interface with non type / relationship for existing interface \"\n + \"with all types / relationships\")\n public void updateNon4ExistingAllTypesRelationships()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final InterfaceData inter = data.getInterface(\"TestInterface\")\n .addAllRelationships()\n .addAllTypes();\n data.create();\n\n inter.removeRelationships()\n .removeTypes();\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select type dump\"),\n \"\",\n \"check that no type is defined\");\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n \"\",\n \"check that no relationship is defined\");\n }",
"@Test\n public void testSqlExistsMultiValuedNoForeignRestriction() {\n Query<Garage> garagesQuery = not(\n existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME\n )\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 1 result\", 1, results.size());\n assertTrue(\"results should contain garage6\", results.contains(garage6));\n }",
"boolean isOneToMany();",
"private void verifyUnchangedDerivedRelationships(String relationshipType, Object relationship, Object oldRelationship) {\n if ((oldRelationship != null && relationship == null) || (oldRelationship == null && relationship != null)) {\n error = ArtificerConflictException.derivedRelationshipCreation(relationshipType);\n }\n }",
"@Test\n\tpublic void testAddLinkInvalidSameLinkTwiceHashSet() {\n\t\tAddress adr = new Address();\n\t\tTypePropertyCollection proptype = (TypePropertyCollection) adr.getProperty(\"inhabitants\").getType();\n\t\tAssert.assertSame(LinkedHashSet.class, proptype.getCollectionClass());\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tAssert.assertNull(adr.getInhabitants());\n\t\tAssert.assertNull(martin.getAddress());\n\n\t\t// add the same Person to the Address as inhabitant twice\n\t\tadr.addInhabitant(martin);\n\t\ttry {\n\t\t\tadr.addInhabitant(martin);\n\t\t\tAssert.fail(\"expected exception\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}",
"public void testAssertionsRelsExt() throws Exception{\n pid = PID.getInstance(\"demo:foo\");\n\n String p, o;\n\n p = \"http://purl.org/dc/elements/1.1/title\";\n o = \"The God of Small Things\";\n triples.add(createTriple(pid, p, o, true, null));\n\n try {\n validateAndClear(\"RELS-EXT\");\n fail(\"RELS-EXT Dublin Core assertions not allowed\");\n } catch (ValidationException e) {\n }\n\n // specific model relationships are allowed\n o = \"urn:xyz\";\n p = Constants.MODEL.HAS_SERVICE.uri;\n triples.add(createTriple(pid, p, o, false, null));\n try {\n validateAndClear(\"RELS-EXT\");\n } catch (ValidationException e) {\n fail(\"RELS-EXT Model relationship \" + p + \" should be allowed\");\n }\n\n p = Constants.MODEL.IS_CONTRACTOR_OF.uri;\n triples.add(createTriple(pid, p, o, false, null));\n try {\n validateAndClear(\"RELS-EXT\");\n } catch (ValidationException e) {\n fail(\"RELS-EXT Model relationship \" + p + \" should be allowed\");\n }\n\n p = Constants.MODEL.HAS_MODEL.uri;\n triples.add(createTriple(pid, p, o, false, null));\n try {\n validateAndClear(\"RELS-EXT\");\n } catch (ValidationException e) {\n fail(\"RELS-EXT Model relationship \" + p + \" should be allowed\");\n }\n\n p = Constants.MODEL.IS_DEPLOYMENT_OF.uri;\n triples.add(createTriple(pid, p, o, false, null));\n try {\n validateAndClear(\"RELS-EXT\");\n } catch (ValidationException e) {\n fail(\"RELS-EXT Model relationship \" + p + \" should be allowed\");\n }\n\n\n }",
"@Test\n public void testSqlExistsNoForeignRestriction() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED\n )\n );\n\n Set<Car> results = asSet(cars.retrieve(carsQuery));\n\n assertEquals(\"should have 3 results\", 3, results.size());\n assertTrue(\"results should contain car1\", results.contains(car1));\n assertTrue(\"results should contain car4\", results.contains(car4));\n assertTrue(\"results should contain car5\", results.contains(car5));\n }",
"@Test\n\tpublic void testAddLinkOkMultNtoNArrayList() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(ArrayList.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(ArrayList.class);\n\t\ttstNMAssociationInverse();\n\t}",
"@SuppressWarnings(\"rawtypes\")\n\t@Test\n\tpublic void retrieveCollections() {\n\t\t// We can also query for the collections themselves, since they are\n\t\t// first class objects.\n\n\t\tObjectSet result = db.queryByExample(new ArrayList());\n\t\tlistResult(result);\n\n\t\t// as we are initializing readouts\n\t\tassertEquals(2, result.size());\n\n\t}",
"@Test\n\tpublic void testInternalEntityRelatedTypes() {\n\t\tlogger.info(\"Run testInternalEntityRelatedTypes\");\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\n\t\t// Entity1InputType\n\t\tfinal IntrospectionFullType entity1InputType = getFullType(introspection,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(27, entity1InputType.getInputFields().size());\n\n\t\tassertInputField(entity1InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"intAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLInt.getName());\n\t\tassertInputField(entity1InputType, \"longAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLLong.getName());\n\t\tassertInputField(entity1InputType, \"doubleAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLFloat.getName());\n\t\tassertInputField(entity1InputType, \"stringAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"booleanAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBoolean.getName());\n\t\tassertInputField(entity1InputType, \"bigIntAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBigInteger.getName());\n\t\tassertInputField(entity1InputType, \"bigDecimalAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLBigDecimal.getName());\n\t\tassertInputField(entity1InputType, \"bytesAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLByte.getName());\n\t\tassertInputField(entity1InputType, \"shortAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLShort.getName());\n\t\tassertInputField(entity1InputType, \"charAttr\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLChar.getName());\n\t\tassertInputField(entity1InputType, \"dateAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLDate.getName());\n\t\tassertInputField(entity1InputType, \"fileAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLFile.getName());\n\t\tassertInputField(entity1InputType, \"localDateAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLLocalDate.getName());\n\t\tassertInputField(entity1InputType, \"localDateTimeAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLLocalDateTime.getName());\n\t\tassertInputField(entity1InputType, \"instantAttr\", IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tGQLJavaScalars.GraphQLInstant.getName());\n\n\t\tassertInputField(entity1InputType, \"stringList\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"stringSet\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\n\t\tassertInputField(entity1InputType, \"stringList\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\t\tassertInputField(entity1InputType, \"stringSet\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLString.getName());\n\n\t\tassertInputField(entity1InputType, \"enumAttr\", IntrospectionTypeKindEnum.ENUM, Enum1.class.getSimpleName());\n\n\t\tassertInputField(entity1InputType, \"enumList\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tEnum1.class);\n\t\tassertInputField(entity1InputType, \"enumSet\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.ENUM,\n\t\t\t\tEnum1.class);\n\n\t\tassertInputField(entity1InputType, \"entity2\" + schemaConfig.getAttributeIdSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"entity3\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity1InputType, \"entity4\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\tassertInputField(entity1InputType, \"embeddedData1\", IntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEmbeddedData1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tassertInputField(entity1InputType, \"embeddedData1s\", IntrospectionTypeKindEnum.LIST,\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEmbeddedData1.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\n\t\t// Entity1LoadResult\n\t\tfinal IntrospectionFullType entity1LoadResult = getFullType(introspection,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, entity1LoadResult.getFields().size());\n\n\t\tassertField(entity1LoadResult, \"data\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity1.class.getSimpleName());\n\t\tassertField(entity1LoadResult, \"orderBy\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tgetOrderByOutputTypeName());\n\t\tassertField(entity1LoadResult, \"paging\", IntrospectionTypeKindEnum.OBJECT, getPagingOutputTypeName());\n\n\t\t// Entity2InputType\n\t\tfinal IntrospectionFullType entity2InputType = getFullType(introspection,\n\t\t\t\tEntity2.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity2InputType.getInputFields().size());\n\n\t\tassertInputField(entity2InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity2InputType, \"entity1\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\t// Entity2LoadResult\n\t\tfinal IntrospectionFullType entity2LoadResult = getFullType(introspection,\n\t\t\t\tEntity2.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, entity2LoadResult.getFields().size());\n\n\t\tassertField(entity2LoadResult, \"data\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity2.class.getSimpleName());\n\t\tassertField(entity2LoadResult, \"orderBy\", IntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tgetOrderByOutputTypeName());\n\t\tassertField(entity2LoadResult, \"paging\", IntrospectionTypeKindEnum.OBJECT, getPagingOutputTypeName());\n\n\t\t// Entity3InputType\n\t\tfinal IntrospectionFullType entity3InputType = getFullType(introspection,\n\t\t\t\tEntity3.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity3InputType.getInputFields().size());\n\n\t\tassertInputField(entity3InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity3InputType, \"entity1\" + schemaConfig.getAttributeIdSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\n\t\t// Entity4InputType\n\t\tfinal IntrospectionFullType entity4InputType = getFullType(introspection,\n\t\t\t\tEntity4.class.getSimpleName() + schemaConfig.getInputTypeNameSuffix());\n\t\tAssert.assertEquals(2, entity4InputType.getInputFields().size());\n\n\t\tassertInputField(entity4InputType, \"id\", IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t\tassertInputField(entity4InputType, \"entity1\" + schemaConfig.getAttributeIdPluralSuffix(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.SCALAR, Scalars.GraphQLID.getName());\n\t}",
"@Test\n public void testGetProductsByType() throws Exception {\n System.out.println(\"getProductsByType\");\n \n prs = dao.getProductsByType(p1.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p2.getType());\n assertTrue(prs.size() == 2);\n assertTrue(prs.contains(p1));\n assertTrue(prs.contains(p2));\n prs = dao.getProductsByType(p3.getType());\n assertTrue(prs.size() == 1);\n assertTrue(prs.contains(p3));\n \n prs = dao.getProductsByName(nonExisten.getType());\n assertTrue(prs.isEmpty());\n }",
"public void testTypedCollection()\r\n\t{\r\n broker.beginTransaction();\r\n for (int i = 1; i < 4; i++)\r\n {\r\n ProductGroupWithTypedCollection example = new ProductGroupWithTypedCollection();\r\n example.setId(i);\r\n ProductGroupWithTypedCollection group =\r\n (ProductGroupWithTypedCollection) broker.getObjectByQuery(\r\n new QueryByIdentity(example));\r\n assertEquals(\"should be equal\", i, group.getId());\r\n //System.out.println(group + \"\\n\\n\");\r\n\r\n broker.delete(group);\r\n broker.store(group);\r\n }\r\n broker.commitTransaction();\r\n\t}",
"@Test(description = \"positive test to change from multiple types to all types\")\n public void positiveTestChangeToRelationshipAll()\n throws Exception\n {\n new RelationshipData(this, \"Test\")\n .from().defData(\"relationship\", new RelationshipData(this, \"Test1\"))\n .from().defData(\"relationship\", new RelationshipData(this, \"Test2\"))\n .create();\n\n new RelationshipData(this, \"Test\")\n .from().defDataAll(\"relationship\")\n .update(\"\")\n .checkExport();\n }",
"@Rollback\n @Test\n public void getAllCreditOperationsByCreditFamilyId() {\n expectedCollection.add(creditOperationFamilyExpected);\n\n //AssertUtils.assertCreditOperationsCollections(expectedCollection, actualCollection);\n }",
"@Test\n public void testSqlExistsMultiValuedWithForeignRestriction() {\n Query<Garage> garagesQuery = existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME,\n equal(Car.FEATURES, \"convertible\")\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain garage2\", results.contains(garage2));\n assertTrue(\"results should contain garage5\", results.contains(garage5));\n }",
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeftEvenWhenOnlyIdSelected() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getId());\n \n validate(\"select hobj3.id from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"@Test\n void test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork() {\n try {\n // Special case: if there is no existing user that correspond to any given\n // * name, then add the user(s) first and then add friendship between\n // them.\n christmasBuddENetwork.addUser(\"grinch\");\n christmasBuddENetwork.addFriendship(\"grinch\", \"santa\");\n\n Set<User> allChristmasBuddEs = christmasBuddENetwork.getAllUsers();\n ArrayList<String> allChristmasBuddEsList = new ArrayList<String>();\n for (User i : allChristmasBuddEs) {\n allChristmasBuddEsList.add(i.getName());\n }\n // please make sure that the size of the network is 2\n if ((!allChristmasBuddEsList.contains(\"grinch\"))\n || (!allChristmasBuddEsList.contains(\"santa\"))) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Did NOT add Santa to the network when trying to add \"\n + \"a friendship where Santa was not in the network.\");\n }\n\n int numChristmasbuddEs = allChristmasBuddEs.size();\n if ((numChristmasbuddEs != 2)) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Did NOT have a size of 2 for the \"\n + \"christmasBuddENetwork but instead had a size of \"\n + numChristmasbuddEs);\n }\n\n\n // Set<User> getAllUsers();\n\n } catch (IllegalNullArgumentException e1) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Incorrectly threw an IllegalNullArgumentException.\");\n\n\n // IllegalNullArgumentException, DuplicateUserException\n // DuplicateFriendshipException\n } catch (DuplicateUserException e2) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Incorrectly threw a DuplicateUserException.\");\n\n } catch (DuplicateFriendshipException e3) {\n fail(\"test004_addValidFriendshipWhereAtLeastOneBuddEIsNotInNetwork(): \"\n + \"FAILED! :( Incorrectly threw a DuplicateFriendshipException.\");\n\n }\n\n }",
"@Test\n\tpublic void testAddLinkOkMultNtoNLinkedHashSet() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(LinkedHashSet.class);\n\t\ttstNMAssociationInverse();\n\t}",
"public CaseClassRelation (scala.collection.Seq<A> data, scala.reflect.api.TypeTags.TypeTag<A> evidence$3) { throw new RuntimeException(); }",
"@Test\r\n public void testToJsonCollection() {\r\n System.out.println(\"testToJsonCollection()\");\r\n Relation instance = new Relation(\"singer\", Relation.OUT);\r\n String actualResult = \"\";\r\n String result = instance.toJsonCollection();\r\n assertNotSame(result, actualResult);\r\n }",
"@Test(description = \"update interface with one relationship for non existing interface\")\n public void updateOneRelationship4NonExisting()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestType\");\n data.create();\n\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n rel.getName(),\n \"check that only one relationship is defined\");\n }",
"@Test\n public void testSqlExistsWithForeignRestriction() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Set<Car> results = asSet(cars.retrieve(carsQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain car1\", results.contains(car1));\n assertTrue(\"results should contain car4\", results.contains(car4));\n }",
"@Test\n public void testSqlExistsBasedJoin() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Map<Car, Set<Garage>> results = new LinkedHashMap<Car, Set<Garage>>();\n for (Car car : cars.retrieve(carsQuery)) {\n Query<Garage> garagesWhichServiceThisCarInDublin\n = and(equal(Garage.BRANDS_SERVICED, car.name), equal(Garage.LOCATION, \"Dublin\"));\n for (Garage garage : garages.retrieve(garagesWhichServiceThisCarInDublin)) {\n Set<Garage> garagesWhichCanServiceThisCar = results.get(car);\n if (garagesWhichCanServiceThisCar == null) {\n garagesWhichCanServiceThisCar = new LinkedHashSet<Garage>();\n results.put(car, garagesWhichCanServiceThisCar);\n }\n garagesWhichCanServiceThisCar.add(garage);\n }\n }\n\n assertEquals(\"join results should contain 2 cars\", 2, results.size());\n Assert.assertTrue(\"join results should contain car1\", results.containsKey(car1));\n Assert.assertTrue(\"join results should contain car4\", results.containsKey(car4));\n\n assertEquals(\"join results for car1\", asSet(garage3, garage4), results.get(car1));\n assertEquals(\"join results for car4\", asSet(garage2), results.get(car4));\n }",
"@Test(description = \"positive test to change from all types to multiple types\")\n public void positiveTestChangeFromTypeAll()\n throws Exception\n {\n new RelationshipData(this, \"Test\")\n .from().defDataAll(\"type\")\n .create();\n\n new RelationshipData(this, \"Test\")\n .from().defData(\"type\", new TypeData(this, \"Test1\"))\n .from().defData(\"type\", new TypeData(this, \"Test2\"))\n .createDependings()\n .update(\"\")\n .checkExport();\n }",
"@Test\n @IgnoreWhen(hasCapabilities = Capabilities.COLLECTIONS, clusterTypes = ClusterType.MOCKED)\n void failsIfCollectionsNotSupported() {\n assertThrows(FeatureNotAvailableException.class, () -> collections.getAllScopes());\n assertThrows(FeatureNotAvailableException.class, () -> collections.createScope(\"foo\"));\n assertThrows(FeatureNotAvailableException.class, () -> collections.dropScope(\"foo\"));\n assertThrows(\n FeatureNotAvailableException.class,\n () -> collections.dropCollection(CollectionSpec.create(\"foo\", \"bar\"))\n );\n assertThrows(\n FeatureNotAvailableException.class,\n () -> collections.createCollection(CollectionSpec.create(\"foo\", \"bar\"))\n );\n }",
"public static ArrayList<Person> mapRelations(Person target,String relation){\n ArrayList<Person> result = new ArrayList<Person>();\n switch(relation){\n case Relationship.MOTHER:\n Person mum = target.getMother();\n result.add(mum);\n break;\n\n case Relationship.FATHER:\n Person father = target.getFather();\n result.add(father);\n break;\n\n case Relationship.SON: \n result = target.getSon(); \n break;\n\n case Relationship.DAUGHTER:\n result = target.getDaughter();\n break; \n \n case Relationship.CHILDREN:\n result = target.getChildren();\n break;\n \n case Relationship.COUSINS:\n result = NoneDirectRelationHandler.getCousin(target);\n break;\n\n case Relationship.BROTHER:\n result = NoneDirectRelationHandler.getBrother(target);\n break;\n \n case Relationship.SISTER:\n result = NoneDirectRelationHandler.getSister(target);\n break;\n\n case Relationship.PATERNAL_UNCLE:\n result = NoneDirectRelationHandler.getPaternalUncle(target);\n break;\n\n case Relationship.PATERNAL_AUNT:\n result = NoneDirectRelationHandler.getPaternalAunt(target);\n break;\n\n case Relationship.MATERNAL_UNCLE:\n result = NoneDirectRelationHandler.getMaternalUncle(target);\n break;\n\n case Relationship.MATERNAL_AUNT:\n result = NoneDirectRelationHandler.getMaternalAunt(target);\n break;\n \n case Relationship.SISTER_IN_LAW:\n result = NoneDirectRelationHandler.getSisterInLaw(target);\n break;\n\n case Relationship.BROTHER_IN_LAW:\n result = NoneDirectRelationHandler.getBrotherInLaw(target);\n break;\n\n case Relationship.GRAND_DAUGHTER:\n result = NoneDirectRelationHandler.getGrandDaughter(target);\n break;\n\n case Relationship.GRAND_SON:\n result = NoneDirectRelationHandler.getGrandSon(target);\n break;\n\n default:\n //TBD: throw error: no relations match \n break;\n\n }\n return result;\n }",
"@Test\n public void testFaultSuperTypesAndSuperset() throws Exception {\n // InterfaceContract source = new MockContract(\"FooContract\");\n // DataType sourceFaultType = new DataTypeImpl<Type>(Exception.class,\n // Exception.class);\n // DataType sourceFaultType2 = new\n // DataTypeImpl<Type>(RuntimeException.class, RuntimeException.class);\n // List<DataType> sourceFaultTypes = new ArrayList<DataType>();\n // sourceFaultTypes.add(0, sourceFaultType);\n // sourceFaultTypes.add(1, sourceFaultType2);\n // Operation opSource1 = newOperationImpl(\"op1\", null, null,\n // sourceFaultTypes, false, null);\n // Map<String, Operation> sourceOperations = new HashMap<String,\n // Operation>();\n // sourceOperations.put(\"op1\", opSource1);\n // source.getInterface().getOperations().addAll(sourceOperations.values());\n //\n // InterfaceContract target = new MockContract(\"FooContract\");\n // DataType targetFaultType = new\n // DataTypeImpl<Type>(TuscanyException.class, TuscanyException.class);\n // List<DataType> targetFaultTypes = new ArrayList<DataType>();\n // targetFaultTypes.add(0, targetFaultType);\n //\n // Operation opTarget = newOperationImpl(\"op1\", null, null,\n // targetFaultTypes, false, null);\n // Map<String, Operation> targetOperations = new HashMap<String,\n // Operation>();\n // targetOperations.put(\"op1\", opTarget);\n // target.getInterface().getOperations().addAll(targetOperations.values());\n // wireService.checkCompatibility(source, target, false);\n }",
"@Test(timeout = 4000)\n public void test19() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n DynamicSelectModel dynamicSelectModel1 = dynamicSelectModel0.collection(\"CHECKCAST [D\");\n // Undeclared exception!\n dynamicSelectModel1.getObjects();\n }",
"private void checkMappedByOneToMany(DeployBeanInfo<?> info, DeployBeanPropertyAssocMany<?> prop) {\n if (prop.isElementCollection()) {\n // skip mapping check\n return;\n }\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n if (targetDesc.isDraftableElement()) {\n // automatically turning on orphan removal and CascadeType.ALL\n prop.setModifyListenMode(BeanCollection.ModifyListenMode.REMOVALS);\n prop.getCascadeInfo().setSaveDelete(true, true);\n }\n\n if (prop.hasOrderColumn()) {\n makeOrderColumn(prop);\n }\n\n if (prop.getMappedBy() == null) {\n // if we are doc store only we are done\n // this allows the use of @OneToMany in @DocStore - Entities\n if (info.getDescriptor().isDocStoreOnly()) {\n prop.setUnidirectional();\n return;\n }\n\n if (!findMappedBy(prop)) {\n if (!prop.isO2mJoinTable()) {\n makeUnidirectional(prop);\n }\n return;\n }\n }\n\n // check that the mappedBy property is valid and read\n // its associated join information if it is available\n String mappedBy = prop.getMappedBy();\n\n // get the mappedBy property\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedManyToOne(prop, targetDesc, mappedBy);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());\n }\n\n PropertyForeignKey foreignKey = mappedAssocOne.getForeignKey();\n if (foreignKey != null) {\n ConstraintMode onDelete = foreignKey.getOnDelete();\n switch (onDelete) {\n case SET_DEFAULT:\n case SET_NULL:\n case CASCADE: {\n // turn off cascade delete when we are using the foreign\n // key constraint to cascade the delete or set null\n prop.getCascadeInfo().setDelete(false);\n }\n }\n }\n }",
"private void validateWebXmlReferences(GraphContext context)\n {\n WebXmlService webXmlService = new WebXmlService(context);\n Iterator<WebXmlModel> models = webXmlService.findAll().iterator();\n\n // There should be at least one file\n Assert.assertTrue(models.hasNext());\n WebXmlModel model = models.next();\n\n // and only one file\n Assert.assertFalse(models.hasNext());\n\n Assert.assertEquals(\"Sample Display Name\", model.getDisplayName());\n\n int numberFound = 0;\n for (EnvironmentReferenceModel envRefModel : model.getEnvironmentReferences())\n {\n Assert.assertEquals(\"jdbc/myJdbc\", envRefModel.getName());\n Assert.assertEquals(\"javax.sql.DataSource\", envRefModel.getReferenceType());\n numberFound++;\n }\n\n // there is only one env-ref\n Assert.assertEquals(1, numberFound);\n }",
"public boolean containsRelations();",
"@Test\r\n\tpublic void testGetPrimaryMigrationTypes(){\r\n\t\t// Only primary migration types should be returned.\r\n\t\tList<MigrationType> expectedPrimaryTypes = new LinkedList<MigrationType>();\r\n\t\texpectedPrimaryTypes.add(MigrationType.PRINCIPAL);\r\n\t\texpectedPrimaryTypes.add(MigrationType.PRINCIPAL_ALIAS);\r\n\t\texpectedPrimaryTypes.add(MigrationType.NOTIFICATION_EMAIL);\r\n\t\texpectedPrimaryTypes.add(MigrationType.USER_PROFILE);\r\n\t\texpectedPrimaryTypes.add(MigrationType.STORAGE_LOCATION);\r\n\t\texpectedPrimaryTypes.add(MigrationType.FILE_HANDLE);\r\n\t\texpectedPrimaryTypes.add(MigrationType.MESSAGE_CONTENT);\r\n\t\texpectedPrimaryTypes.add(MigrationType.V2_WIKI_PAGE);\r\n\t\texpectedPrimaryTypes.add(MigrationType.V2_WIKI_OWNERS);\r\n\t\texpectedPrimaryTypes.add(MigrationType.ACTIVITY);\r\n\t\texpectedPrimaryTypes.add(MigrationType.NODE);\r\n\t\texpectedPrimaryTypes.add(MigrationType.TEAM);\r\n\t\texpectedPrimaryTypes.add(MigrationType.MEMBERSHIP_INVITATION_SUBMISSION);\r\n\t\texpectedPrimaryTypes.add(MigrationType.MEMBERSHIP_REQUEST_SUBMISSION);\r\n\t\texpectedPrimaryTypes.add(MigrationType.EVALUATION);\r\n\t\texpectedPrimaryTypes.add(MigrationType.EVALUATION_SUBMISSIONS);\r\n\t\texpectedPrimaryTypes.add(MigrationType.PARTICIPANT);\r\n\t\texpectedPrimaryTypes.add(MigrationType.SUBMISSION);\r\n\t\texpectedPrimaryTypes.add(MigrationType.SUBMISSION_CONTRIBUTOR);\r\n\t\texpectedPrimaryTypes.add(MigrationType.SUBMISSION_STATUS);\r\n\t\texpectedPrimaryTypes.add(MigrationType.PROJECT_SETTINGS);\r\n\t\texpectedPrimaryTypes.add(MigrationType.PROJECT_STATS);\r\n\t\texpectedPrimaryTypes.add(MigrationType.ACCESS_REQUIREMENT);\r\n\t\texpectedPrimaryTypes.add(MigrationType.ACCESS_APPROVAL);\r\n\t\texpectedPrimaryTypes.add(MigrationType.ACL);\r\n\t\texpectedPrimaryTypes.add(MigrationType.FAVORITE);\r\n\t\texpectedPrimaryTypes.add(MigrationType.TRASH_CAN);\r\n\t\texpectedPrimaryTypes.add(MigrationType.DOI);\n\t\texpectedPrimaryTypes.add(MigrationType.CHALLENGE);\r\n\t\texpectedPrimaryTypes.add(MigrationType.CHALLENGE_TEAM);\r\n\t\texpectedPrimaryTypes.add(MigrationType.COLUMN_MODEL);\r\n\t\texpectedPrimaryTypes.add(MigrationType.BOUND_COLUMN_OWNER);\r\n\t\texpectedPrimaryTypes.add(MigrationType.TABLE_SEQUENCE);\n\t\texpectedPrimaryTypes.add(MigrationType.STORAGE_QUOTA);\r\n\t\texpectedPrimaryTypes.add(MigrationType.QUIZ_RESPONSE);\r\n\t\texpectedPrimaryTypes.add(MigrationType.CHANGE);\r\n\t\t// Get the list\r\n\t\tList<MigrationType> primary = migratableTableDAO.getPrimaryMigrationTypes();\r\n\t\tSystem.out.println(primary);\r\n\t\tassertEquals(expectedPrimaryTypes, primary);\r\n\t}",
"private void checkRelationship(Relationship relationship, ImportConflicts importConflicts) {\n RelationshipType relationshipType = null;\n\n if (StringUtils.isEmpty(relationship.getRelationshipType())) {\n importConflicts.addConflict(\n relationship.getRelationship(), \"Missing property 'relationshipType'\");\n } else {\n relationshipType = relationshipTypeCache.get(relationship.getRelationshipType());\n }\n\n if (relationship.getFrom() == null\n || getUidOfRelationshipItem(relationship.getFrom()).isEmpty()) {\n importConflicts.addConflict(relationship.getRelationship(), \"Missing property 'from'\");\n }\n\n if (relationship.getTo() == null || getUidOfRelationshipItem(relationship.getTo()).isEmpty()) {\n importConflicts.addConflict(relationship.getRelationship(), \"Missing property 'to'\");\n }\n\n if (relationship.getFrom().equals(relationship.getTo())) {\n importConflicts.addConflict(\n relationship.getRelationship(), \"Self-referencing relationships are not allowed.\");\n }\n\n if (importConflicts.hasConflicts()) {\n return;\n }\n\n if (relationshipType == null) {\n importConflicts.addConflict(\n relationship.getRelationship(),\n \"relationshipType '\" + relationship.getRelationshipType() + \"' not found.\");\n return;\n }\n\n addRelationshipConstraintConflicts(\n relationshipType.getFromConstraint(),\n relationship.getFrom(),\n relationship.getRelationship(),\n importConflicts);\n addRelationshipConstraintConflicts(\n relationshipType.getToConstraint(),\n relationship.getTo(),\n relationship.getRelationship(),\n importConflicts);\n }",
"@Test\n\tpublic void testAddLinkOkMultNtoNTreeSet() {\n\t\t// configure collection properties of Location and ClosingPeriod\n\t\t// to use TreeSet as collection implementing class\n\t\t((TypePropertyCollection) (new Location()).getProperty(\"closedons\").getType())\n\t\t\t\t.setCollectionClass(TreeSet.class);\n\t\t((TypePropertyCollection) (new ClosingPeriod()).getProperty(\"locations\").getType())\n\t\t\t\t.setCollectionClass(TreeSet.class);\n\t\ttstNMAssociationInverse();\n\t}",
"@Test\n public void testGetModel ()\n {\n System.out.println (\"getModel\");\n OrgOrgRelationInputModelFactory instance = getInstance ();\n OrgOrgRelationInputModel result = instance.getModel ();\n List<OrgOrgRelation> orgRalations = result.getOrgOrgRelations ();\n \n if (orgRalations.size () < 16)\n {\n fail (\" too few organizations\");\n }\n OrgOrgRelation orgRelation = orgRalations.get (1);\n assertEquals (\"4\", orgRelation.getOrgId());\n assertEquals (\"1\", orgRelation.getRelatedOrgId());\n assertEquals (\"kuali.org.Part\", orgRelation.getTypeKey ());\n assertEquals (\"kuali.org.org.relation.state.active\", orgRelation.getState ());\n assertEquals (\"KU\", orgRelation.getOrgShortName());\n assertEquals (\"KUSystem\", orgRelation.getRelatedOrgShortName());\n }",
"@Test\n public void testConvertPhenotypeAssociation() {\n assertThat( searchService.loadValueObject( SearchResult.from( PhenotypeAssociation.class, phenotypeAssociation, 1.0, \"test object\" ) ) )\n .extracting( \"resultObject\" )\n .isSameAs( phenotypeAssociation );\n assertThat( searchService.loadValueObjects( Collections.singleton( SearchResult.from( PhenotypeAssociation.class, phenotypeAssociation, 1.0, \"test object\" ) ) ) )\n .extracting( \"resultObject\" )\n .containsExactly( phenotypeAssociation );\n }",
"@Override\n\tprotected boolean chooseTargetRels() throws Exception {\n\t\tList<RelationType> rels = new ArrayList<RelationType> ();\n\t\tint numTries = 0;\n\t\tint created = 0;\n\t\tboolean found = false;\n\t\tRelationType rel;\n\t\t//MN wanted to preserve the initial values of numOfTgtTables and attsPerTargetRel - 26 April 2014\n\t\tString[][] attrs = new String[numOfTgtTables][];\n\t\t\t\n\t\t// first choose one that has attsPerTargetRel\n\t\twhile(created < numOfTgtTables) {\n\t\t\tfound = true;\n\t\t\t\t\n\t\t\t//MN check the following again (it is really tricky) - 26 April 2014\n\t\t\tif(created == 0){\n\t\t\t\tif(keySize < attsPerTargetRel)\n\t\t\t\t\trel = getRandomRel(false, attsPerTargetRel);\n\t\t\t\telse\n\t\t\t\t\t//MN we use minimum to increase reusability - 3 May 2014\n\t\t\t\t\trel = getRandomRel(false, keySize);\n\t\t\t}\n\t\t\telse{\n\t\t\t\trel = getRandomRel(false, attsPerTargetRel+keySize, attsPerTargetRel+keySize);\n\t\t\t\t\t\n\t\t\t\tif(rel != null){\n\t\t\t\t\tfor(int j=0; j<rels.size(); j++)\n\t\t\t\t\t\tif(rels.get(j).getName().equals(rel.getName()))\n\t\t\t\t\t\t\tfound = false;\n\t\t\t\t}else{\n\t\t\t\t\tfound = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t//MN VPISA cares about primary key - 26 April 2014\n\t\t\tif(found && !rel.isSetPrimaryKey()) {\n\t\t\t\t//MN set to false because this is target relation (Am I right?) - 3 May 2014\n\t\t\t\tint [] primaryKeyPos = new int [keySize];\n\t\t\t\tfor(int i=0; i<keySize; i++)\n\t\t\t\t\tprimaryKeyPos[i] = i;\n\t\t\t\tfac.addPrimaryKey(rel.getName(), primaryKeyPos, false);\n\t\t\t}\n\t\t\t\t\n\t\t\tif(found && rel.isSetPrimaryKey()){\n\t\t\t\t//MN keySize should be keySize and key attrs should be the first attrs- 3 May 2014\n\t\t\t\tint[] pkPos = model.getPKPos(rel.getName(), false);\n\t\t\t\t\t\n\t\t\t\tif(pkPos[0] != 0)\n\t\t\t\t\tfound = false;\n\t\t\t}\n\t\t\t\t\n\t\t\t// found a fitting relation\n\t\t\tif (found) {\n\t\t\t\trels.add(rel);\n\t\t\t\tm.addTargetRel(rel);\n\n\t\t\t\tattrs[created] = new String[rel.sizeOfAttrArray()];\n\t\t\t\tfor(int i = 0; i < rel.sizeOfAttrArray(); i++)\n\t\t\t\t\tattrs[created][i] = rel.getAttrArray(i).getName();\n\t\t\t\t\t\n\t\t\t\t//MN attsPerTargetRel should be set (check that) (it is really tricky) - 26 April 2014\n\t\t\t\tif(created == 0){\n\t\t\t\t\tkeySize = model.getPKPos(rel.getName(), false).length; \n\t\t\t\t\tattsPerTargetRel = rel.getAttrArray().length- keySize;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcreated++;\n\t\t\t\tnumTries = 0;\n\t\t\t}\n\t\t\t// not found, have exhausted number of tries? then create new one - path tested 1 May 2014\n\t\t\telse {\n\t\t\t\tnumTries++;\n\t\t\t\tif (numTries >= MAX_NUM_TRIES)\n\t\t\t\t{\n\t\t\t\t\tnumTries = 0;\n\t\t\t\t\tattrs[created] = new String[attsPerTargetRel+keySize];\n\t\t\t\t\tfor(int j = 0; j < attsPerTargetRel+keySize; j++)\n\t\t\t\t\t\tattrs[created][j] = randomAttrName(created, j);\n\t\t\t\t\t\t\n\t\t\t\t\t// create the relation\n\t\t\t\t\tString relName = randomRelName(created);\n\t\t\t\t\trels.add(fac.addRelation(getRelHook(created), relName, attrs[created], false));\n\t\t\t\t\t\t\n\t\t\t\t\t// primary key should be set and its size should be 1- 26 April 2014\n\t\t\t\t\tint [] primaryKeyPos = new int [keySize];\n\t\t\t\t\tfor(int i=0; i<keySize; i++)\n\t\t\t\t\t\tprimaryKeyPos[i] = i;\n\t\t\t\t\tfac.addPrimaryKey(relName, primaryKeyPos, false);\n\t\t\t\t\t\t\n\t\t\t\t\t//MN should I add it to TargetRel? - 26 April 2014\n\t\t\t\t\t//m.addTargetRel(rels.get(rels.size()-1));\n\t\t\t\t\t\t\n\t\t\t\t\tcreated++;\n\t\t\t\t\tnumTries = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t//MN set attrRemainder and numOfSrcTables - 26 April 2014\n\t\tnumOfSrcTblAttr= (numOfTgtTables * attsPerTargetRel) + keySize; \n\t\t//MN considering only this case - 26 April 2014\n\t\tattrRemainder =0;\n\t\t\t\n\t\t//MN foreign key should be set - 26 April 2014\n\t\t//MN should be fixed - 24 June 2014\n\t\taddFKsNoReuse();\n\t\t\n\t\t//MN - 13 May 2014\n\t\ttargetReuse = true;\n\t\t//MN\n\t\treturn true;\n\t}",
"@Test\n\tpublic void testQueryTypes() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\t// QueryType\n\t\tfinal IntrospectionFullType queryType = getFullType(introspection, schemaConfig.getQueryTypeName());\n\t\t// - check all queries are available\n\t\tfinal List<String> queryNames = new ArrayList<>();\n\t\tArrays.asList(Entity1.class, Entity2.class, Entity3.class, Entity4.class).stream().forEach(clazz -> {\n\t\t\tqueryNames.add(schemaConfig.getQueryGetByIdPrefix() + clazz.getSimpleName());\n\t\t\tqueryNames.add(schemaConfig.getQueryGetListPrefix() + clazz.getSimpleName());\n\t\t});\n\t\tqueryNames.forEach(queryName -> Assert.assertTrue(queryType.getFields().stream()\n\t\t\t\t.map(IntrospectionTypeField::getName).collect(Collectors.toList()).contains(queryName)));\n\n\t\t// - check one 'getSingle' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getEntity1 = assertField(queryType, queryNames.get(0),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT, Entity1.class);\n\t\tAssert.assertEquals(1, getEntity1.getArgs().size());\n\t\tassertArg(getEntity1, \"id\", IntrospectionTypeKindEnum.NON_NULL, IntrospectionTypeKindEnum.SCALAR,\n\t\t\t\tScalars.GraphQLID.getName());\n\n\t\t// - check one 'getAll' query (other ones are built the same way)\n\t\tfinal IntrospectionTypeField getAllEntity1 = assertField(queryType, queryNames.get(1),\n\t\t\t\tIntrospectionTypeKindEnum.OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListOutputTypeNameSuffix());\n\t\tAssert.assertEquals(3, getAllEntity1.getArgs().size());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT,\n\t\t\t\tEntity1.class.getSimpleName() + schemaConfig.getQueryGetListFilterEntityTypeNameSuffix());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListPagingAttributeName(),\n\t\t\t\tIntrospectionTypeKindEnum.INPUT_OBJECT, getPagingInputTypeName());\n\t\tassertArg(getAllEntity1, schemaConfig.getQueryGetListFilterAttributeOrderByName(),\n\t\t\t\tIntrospectionTypeKindEnum.LIST, IntrospectionTypeKindEnum.INPUT_OBJECT, getOrderByInputTypeName());\n\t}",
"private void checkLtContradictions(HashMap<ComparableExpression, HashSet<ComparableExpression>> ltRelation)\n throws QueryContradictoryException {\n for (Map.Entry<ComparableExpression, HashSet<ComparableExpression>> tuple : ltRelation.entrySet()) {\n ComparableExpression key = tuple.getKey();\n for (ComparableExpression value : tuple.getValue()) {\n if (key.equals(value)) {\n throw new QueryContradictoryException();\n }\n }\n }\n }",
"@Test(description = \"positive test to change from all relationships to multiple relationships\")\n public void positiveTestChangeFromRelationshipAll()\n throws Exception\n {\n new RelationshipData(this, \"Test\")\n .from().defDataAll(\"relationship\")\n .create();\n\n new RelationshipData(this, \"Test\")\n .from().defData(\"relationship\", new RelationshipData(this, \"Test1\"))\n .from().defData(\"relationship\", new RelationshipData(this, \"Test2\"))\n .createDependings()\n .update(\"\")\n .checkExport();\n }",
"@Test\n public void verifyAllRules() throws EdgeRuleNotFoundException {\n for (SchemaVersion v : schemaVersions.getVersions()) {\n Multimap<String, EdgeRule> all = edgeIngestor.getAllRules(schemaVersions.getDefaultVersion());\n\n // this part verifies the default properties\n // 1) can have only at most 1 containment edge between same node type pair\n // 2) if there is at least 1 cousin edge, there must be exactly 1 cousin edge with default=true\n for (String key : all.keySet()) {\n\n Collection<EdgeRule> edgeRuleCollection = all.get(key);\n\n boolean foundContainment = false; // can have at most 1 containment rel btwn same pair of node types\n boolean foundCousin = false;\n boolean cousinDefault = false; // if there is a cousin edge there must be at least 1 default cousin\n // defined\n Set<String> labels = new HashSet<>(); // all edges between the same pair must have different labels\n int cousinCount = 0;\n\n for (EdgeRule rule : edgeRuleCollection) {\n EdgeRule match = rule;\n // check containment\n if (!(\"NONE\".equals(match.getContains()))) {\n if (foundContainment) {\n fail(\"more than one containment edge defined for \" + v.toString() + \" \" + key);\n } else {\n foundContainment = true;\n }\n } else { // check cousin stuff\n foundCousin = true;\n cousinCount++;\n if (match.isDefault()) {\n if (!cousinDefault) {\n cousinDefault = true;\n } else {\n fail(\"more than one cousin edge defined as default for \" + v.toString() + \" \" + key);\n }\n }\n }\n\n // check labels\n String label = match.getLabel();\n if (labels.contains(label)) {\n fail(\"same label found for multiple edges for \" + v.toString() + \" \" + key);\n } else {\n labels.add(label);\n }\n }\n if (foundCousin && !cousinDefault && cousinCount > 1) {\n fail(\"there is at least one cousin edge but none are designated the default for \" + v.toString()\n + \" \" + key);\n }\n }\n }\n }",
"@Test(description = \"positive test to change from multiple types to all types\")\n public void positiveTestChangeToTypeAll()\n throws Exception\n {\n new RelationshipData(this, \"Test\")\n .from().defData(\"type\", new TypeData(this, \"Test1\"))\n .from().defData(\"type\", new TypeData(this, \"Test2\"))\n .create();\n\n new RelationshipData(this, \"Test\")\n .from().defDataAll(\"type\")\n .update(\"\")\n .checkExport();\n }",
"@Test\n\tpublic void oneToManyNoBind() {\n\t\tSystem.out.println(\"============oneToManyNoBind1=========\");\n\t\tUser u = new User();\n\t\tEmail e = new Email();\n\t\tList<User> users = Dao.queryForEntityList(User.class, select(), u.all(), \",\", e.all(), from(), u.table(), \",\",\n\t\t\t\te.table(), \" where \", oneToMany(), u.ID(), \"=\", e.UID(), bind());\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tSet<Email> emails = user.getChildNodeSet(Email.class);\n\t\t\tfor (Email email : emails) {\n\t\t\t\tSystem.out.println(\"\\t\" + email.getEmailName());\n\t\t\t\tAssert.assertTrue(user == email.getParentNode(User.class));\n\t\t\t}\n\t\t}\n\t}",
"@Test(description = \"update interface with all relationships for existing interface with one relationship\")\n public void updateAllRelationships4ExistingRelationship()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestType\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel);\n data.create();\n\n inter.addAllRelationships();\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n \"all\",\n \"check that only all relationship is defined\");\n }",
"@Test\n public void testFaultSuperTypes() throws Exception {\n // InterfaceContract source = new MockContract(\"FooContract\");\n // DataType sourceFaultType = new DataTypeImpl<Type>(Exception.class,\n // Exception.class);\n // List<DataType> sourceFaultTypes = new ArrayList<DataType>();\n // sourceFaultTypes.add(0, sourceFaultType);\n // Operation opSource1 = newOperationImpl(\"op1\", null, null,\n // sourceFaultTypes, false, null);\n // Map<String, Operation> sourceOperations = new HashMap<String,\n // Operation>();\n // sourceOperations.put(\"op1\", opSource1);\n // source.getInterface().getOperations().addAll(sourceOperations.values());\n //\n // InterfaceContract target = new MockContract(\"FooContract\");\n // DataType targetFaultType = new\n // DataTypeImpl<Type>(TuscanyException.class, TuscanyException.class);\n // List<DataType> targetFaultTypes = new ArrayList<DataType>();\n // targetFaultTypes.add(0, targetFaultType);\n //\n // Operation opTarget = newOperationImpl(\"op1\", null, null,\n // targetFaultTypes, false, null);\n // Map<String, Operation> targetOperations = new HashMap<String,\n // Operation>();\n // targetOperations.put(\"op1\", opTarget);\n // target.getInterface().getOperations().addAll(targetOperations.values());\n // wireService.checkCompatibility(source, target, false);\n }",
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeft() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getAge());\n \n validate(\"select hobj3.age from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"private boolean relationshipDefsMatch(AtlasTypesDef typesDef) {\n return compareLists(this.getRelationshipDefs(), typesDef.getRelationshipDefs());\n }",
"@Test(timeout = 4000)\n public void test22() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.collection(\"?_>Qp*Ds!n\\\"tiJ\");\n // Undeclared exception!\n try { \n dynamicSelectModel0.getObjects();\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // java.lang.Integer cannot be cast to java.lang.Boolean\n //\n verifyException(\"org.mvel.MVELInterpretedRuntime\", e);\n }\n }",
"boolean hasRelation();",
"@Test\n @Ignore\n public void testGetPerson() {\n Person person = dao.getPerson(\"KWCB-HZV\", \"\");\n assertEquals(\"KWCB-HZV\", person.id);\n assertEquals(\"Willis Aaron Dial\", person.name);\n assertFalse(person.living);\n \n assertArrayEquals(\"Facts don't match expected: \" + Arrays.deepToString(person.facts),\n new Fact[] { \n new Fact(\"birth\", \"23 December 1897\", null, 1897, \"Hooper, Weber, Utah, United States\"),\n new Fact(\"death\", \"19 January 1985\", null, 1985, \"Logan, Cache, Utah, United States\") },\n person.facts);\n assertArrayEquals(\"Parents don't match expected: \" + Arrays.deepToString(person.parents),\n new PersonReference[] {\n new PersonReference(\"KWZP-8K5\", \"William Burris Dial\", \"father\"),\n new PersonReference(\"KWZP-8KG\", \"Temperance Lavina Moore\", \"mother\")\n },\n person.parents);\n assertArrayEquals(\"Spouses don't match expected: \" + Arrays.deepToString(person.spouses),\n new PersonReference[] {\n new PersonReference(\"KWCB-HZ2\", \"Ida Lovisa Beckstrand\", \"wife\")\n },\n person.spouses);\n assertArrayEquals(\"Children don't match expected: \" + Arrays.deepToString(person.children),\n new PersonReference[] {\n new PersonReference(\"KWC6-X7D\", \"Glen \\\"B\\\" Dial\", \"son\"),\n new PersonReference(\"KWJJ-4XH\", \"Merlin \\\"B\\\" Dial\", \"son\")\n },\n person.children);\n }",
"void verifyNoReferences(Node n) {\n if (returned.contains(n))\n Assert.UNREACHABLE(\"ERROR: returned set contains \"+n);\n if (thrown.contains(n))\n Assert.UNREACHABLE(\"ERROR: thrown set contains \"+n);\n if (false) {\n for (int i=0; i<this.params.length; ++i) {\n if (this.params[i] == n)\n Assert.UNREACHABLE(\"ERROR: param #\"+i+\" \"+n);\n }\n }\n for (Iterator i = nodeIterator(); i.hasNext(); ) {\n Node n2 = (Node) i.next();\n if (n2 instanceof UnknownTypeNode) continue;\n if (multiset_contains(n2.addedEdges, n)) {\n Assert.UNREACHABLE(\"ERROR: \"+n2+\" contains an edge to \"+n);\n }\n if (multiset_contains(n2.predecessors, n)) {\n Assert.UNREACHABLE(\"ERROR: \"+n2+\" contains predecessor \"+n);\n }\n if (multiset_contains(n2.accessPathEdges, n)) {\n Assert.UNREACHABLE(\"ERROR: \"+n2+\" contains access path edge to \"+n);\n }\n if (n2 instanceof FieldNode) {\n FieldNode fn = (FieldNode) n2;\n if (fn.field_predecessors != null &&\n fn.field_predecessors.contains(n)) {\n Assert.UNREACHABLE(\"ERROR: \"+fn+\" contains a field predecessor \"+n);\n }\n }\n }\n }",
"@Test(description = \"update interface with one relationship for existing interface with another interface\")\n public void updateOneRelationship4ExistingOneRelationships()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel1 = data.getRelationship(\"TestRel1\");\n final RelationshipData rel2 = data.getRelationship(\"TestRel2\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addRelationship(rel1);\n data.create();\n\n inter.removeRelationships()\n .addRelationship(rel2);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n rel2.getName(),\n \"check that only second relationship is defined\");\n }",
"@Override\n\t\tpublic boolean hasRelationship(RelationshipType... types) {\n\t\t\treturn false;\n\t\t}",
"public interface HasRelation {\r\n\r\n\tpublic boolean addRelation(Relation relation);\r\n\tpublic boolean removeRelation(Relation relation);\r\n\tpublic List<Relation> getRelations();\r\n}",
"public interface RelationTypeExtractor {\n String getType(RelationEval e, boolean isActual);\n}",
"@Test\n\tpublic void testAddLinkOkMultNtoNArrayListSameLinkTwice() {\n\t\t// create 2 ClosingPeriods and 2 Locations\n\t\tTypePropertyCollection proptypeCpLocations = (TypePropertyCollection) TypeRapidBean\n\t\t\t\t.forName(ClosingPeriod.class.getName()).getPropertyType(\"locations\");\n\t\tTypePropertyCollection proptypeLocClosedons = (TypePropertyCollection) TypeRapidBean\n\t\t\t\t.forName(Location.class.getName()).getPropertyType(\"closedons\");\n\t\tClass<?> colClassCpLocationsBefore = proptypeCpLocations.getCollectionClass();\n\t\tClass<?> colClassLocClosedonsBefore = proptypeLocClosedons.getCollectionClass();\n\t\tproptypeCpLocations.setCollectionClass(ArrayList.class);\n\t\tproptypeLocClosedons.setCollectionClass(ArrayList.class);\n\t\tClosingPeriod cp1 = new ClosingPeriod(new String[] { \"20051225\", \"XMas Holidays\", \"20060101\" });\n\t\tLocation loc1 = new Location(new String[] { \"Location A\" });\n\t\ttry {\n\t\t\tcp1.addLocation(loc1);\n\t\t\tcp1.addLocation(loc1);\n\t\t\tAssert.assertEquals(2, cp1.getLocations().size());\n\t\t\tClosingPeriod cp11Inverse = loc1.getClosedons().iterator().next();\n\t\t\tAssert.assertSame(cp1, cp11Inverse);\n\t\t\tAssert.assertEquals(2, loc1.getClosedons().size());\n\t\t\tcp1.removeLocation(loc1);\n\t\t\tAssert.assertEquals(1, cp1.getLocations().size());\n\t\t\tcp1.removeLocation(loc1);\n\t\t\tAssert.assertEquals(0, cp1.getLocations().size());\n\t\t} finally {\n\t\t\tproptypeCpLocations.setCollectionClass(colClassCpLocationsBefore);\n\t\t\tproptypeLocClosedons.setCollectionClass(colClassLocClosedonsBefore);\n\t\t}\n\t}",
"static List<OSMTurnRelation> createTurnRelations(ReaderRelation relation) {\n List<OSMTurnRelation> osmTurnRelations = new ArrayList<>();\n String vehicleTypeRestricted = \"\";\n List<String> vehicleTypesExcept = new ArrayList<>();\n if (relation.hasTag(\"except\")) {\n String tagExcept = relation.getTag(\"except\");\n if (!Helper.isEmpty(tagExcept)) {\n List<String> vehicleTypes = new ArrayList<>(Arrays.asList(tagExcept.split(\";\")));\n for (String vehicleType : vehicleTypes)\n vehicleTypesExcept.add(vehicleType.trim());\n }\n }\n if (relation.hasTag(\"restriction\")) {\n OSMTurnRelation osmTurnRelation = createTurnRelation(relation, relation.getTag(\"restriction\"), vehicleTypeRestricted, vehicleTypesExcept);\n if (osmTurnRelation != null) {\n osmTurnRelations.add(osmTurnRelation);\n }\n return osmTurnRelations;\n }\n if (relation.hasTagWithKeyPrefix(\"restriction:\")) {\n List<String> vehicleTypesRestricted = relation.getKeysWithPrefix(\"restriction:\");\n for (String vehicleType : vehicleTypesRestricted) {\n String restrictionType = relation.getTag(vehicleType);\n vehicleTypeRestricted = vehicleType.replace(\"restriction:\", \"\").trim();\n OSMTurnRelation osmTurnRelation = createTurnRelation(relation, restrictionType, vehicleTypeRestricted, vehicleTypesExcept);\n if (osmTurnRelation != null) {\n osmTurnRelations.add(osmTurnRelation);\n }\n }\n }\n return osmTurnRelations;\n }",
"@Test\r\n\tpublic void testGetPersons() {\r\n\t\tassertTrue(teachu1.getPersons().contains(person1));\r\n\t\tassertFalse(teachu1.getPersons().contains(new PersonTime()));\r\n\t}",
"@Test\n void test03_addEdgeBetweenVerticesWhichDontExist() {\n graph.addEdge(\"a\", \"b\");\n Set<String> vertices = new LinkedHashSet<>();\n vertices.add(\"a\");\n vertices.add(\"b\"); // creates mock up vertex list\n if (!graph.getAllVertices().equals(vertices)) { // compares vertices list\n fail(\"Graph didn't add the vertices correctly\");\n }\n List<String> adjOfA = new ArrayList<>();\n adjOfA.add(\"b\"); // creates mock up adjacent list\n if (!graph.getAdjacentVerticesOf(\"a\").equals(adjOfA)) { // compares adjacent lists\n fail(\"Graph didn't correctly place adjacent vertices\");\n }\n }",
"RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);",
"@Test\n public void testDisconnectBidirectionalReferences() throws Exception {\n AtlasEntity.AtlasEntitiesWithExtInfo hrDept = TestUtilsV2.createDeptEg2();\n init();\n final EntityMutationResponse hrDeptCreationResponse = entityStore.createOrUpdate(new AtlasEntityStream(hrDept), false);\n\n final AtlasEntityHeader deptCreated = hrDeptCreationResponse.getFirstCreatedEntityByTypeName(DEPARTMENT_TYPE);\n final AtlasEntityHeader maxEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.EMPLOYEE_TYPE, NAME, \"Max\");\n final AtlasEntityHeader johnEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.EMPLOYEE_TYPE, NAME, \"John\");\n final AtlasEntityHeader janeEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.MANAGER_TYPE, NAME, \"Jane\");\n final AtlasEntityHeader juliusEmployee = hrDeptCreationResponse.getCreatedEntityByTypeNameAndAttribute(TestUtilsV2.MANAGER_TYPE, NAME, \"Julius\");\n\n ITypedReferenceableInstance hrDeptInstance = metadataService.getEntityDefinition(deptCreated.getGuid());\n Map<String, String> nameGuidMap = getEmployeeNameGuidMap(hrDeptInstance);\n\n // Verify that Max is one of Jane's subordinates.\n ITypedReferenceableInstance jane = metadataService.getEntityDefinition(janeEmployee.getGuid());\n Object refValue = jane.get(\"subordinates\");\n Assert.assertTrue(refValue instanceof List);\n List<Object> subordinates = (List<Object>)refValue;\n Assert.assertEquals(subordinates.size(), 2);\n List<String> subordinateIds = new ArrayList<>(2);\n for (Object listValue : subordinates) {\n Assert.assertTrue(listValue instanceof ITypedReferenceableInstance);\n ITypedReferenceableInstance employee = (ITypedReferenceableInstance) listValue;\n subordinateIds.add(employee.getId()._getId());\n }\n Assert.assertTrue(subordinateIds.contains(maxEmployee.getGuid()));\n\n init();\n EntityMutationResponse entityResult = entityStore.deleteById(maxEmployee.getGuid());\n ITypedReferenceableInstance john = metadataService.getEntityDefinitionReference(TestUtilsV2.EMPLOYEE_TYPE, NAME, \"John\");\n\n assertEquals(entityResult.getDeletedEntities().size(), 1);\n assertEquals(entityResult.getDeletedEntities().get(0).getGuid(), maxEmployee.getGuid());\n assertEquals(entityResult.getUpdatedEntities().size(), 3);\n\n assertEquals(extractGuids(entityResult.getUpdatedEntities()), Arrays.asList(janeEmployee.getGuid(), deptCreated.getGuid(), johnEmployee.getGuid()));\n assertEntityDeleted(maxEmployee.getGuid());\n\n assertMaxForTestDisconnectBidirectionalReferences(nameGuidMap);\n\n // Now delete jane - this should disconnect the manager reference from her\n // subordinate.\n init();\n entityResult = entityStore.deleteById(janeEmployee.getGuid());\n assertEquals(entityResult.getDeletedEntities().size(), 1);\n assertEquals(entityResult.getDeletedEntities().get(0).getGuid(), janeEmployee.getGuid());\n assertEquals(entityResult.getUpdatedEntities().size(), 2);\n assertEquals(extractGuids(entityResult.getUpdatedEntities()), Arrays.asList(deptCreated.getGuid(), johnEmployee.getGuid()));\n\n assertEntityDeleted(janeEmployee.getGuid());\n\n final AtlasEntity.AtlasEntityWithExtInfo johnUpdated = entityStore.getById(johnEmployee.getGuid());\n assertJohnForTestDisconnectBidirectionalReferences(johnUpdated, janeEmployee.getGuid());\n }",
"@Test(description = \"update interface with one relationship for existing interface with all relationships\")\n public void updateOneRelationship4ExistingAllRelationships()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final RelationshipData rel = data.getRelationship(\"TestRel\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addAllRelationships();\n data.create();\n\n inter.removeRelationships()\n .addRelationship(rel);\n this.update(inter);\n\n Assert.assertEquals(this.mql(\"print interface '\" + inter.getName() + \"' select relationship dump\"),\n rel.getName(),\n \"check that only one relationship is defined\");\n }",
"boolean isSetFurtherRelations();",
"@Test\n public void whenLinkIsNull() {\n try {\n link.iterator().hasNext();\n } catch (NullPointerException npe) {\n assertThat(npe.getMessage(), is(\"It is empty container\"));\n }\n }",
"@Test\n public void test_getAll_2() throws Exception {\n User user1 = createUser(1, false);\n User user2 = createUser(2, false);\n createUser(3, true);\n\n List<User> res = instance.getAll();\n\n assertEquals(\"'getAll' should be correct.\", 2, res.size());\n\n User entity1 = res.get(0);\n User entity2 = res.get(1);\n if (entity1.getUsername().equals(user2.getUsername())) {\n entity1 = res.get(1);\n entity2 = res.get(0);\n }\n\n assertEquals(\"'getAll' should be correct.\", user1.getUsername(), entity1.getUsername());\n assertEquals(\"'getAll' should be correct.\", user1.getDefaultTab(), entity1.getDefaultTab());\n assertEquals(\"'getAll' should be correct.\", user1.getNetworkId(), entity1.getNetworkId());\n assertEquals(\"'getAll' should be correct.\", user1.getRole().getId(), entity1.getRole().getId());\n assertEquals(\"'getAll' should be correct.\", user1.getFirstName(), entity1.getFirstName());\n assertEquals(\"'getAll' should be correct.\", user1.getLastName(), entity1.getLastName());\n assertEquals(\"'getAll' should be correct.\", user1.getEmail(), entity1.getEmail());\n assertEquals(\"'getAll' should be correct.\", user1.getTelephone(), entity1.getTelephone());\n assertEquals(\"'getAll' should be correct.\", user1.getStatus().getId(), entity1.getStatus().getId());\n\n assertEquals(\"'getAll' should be correct.\", user2.getUsername(), entity2.getUsername());\n assertEquals(\"'getAll' should be correct.\", user2.getDefaultTab(), entity2.getDefaultTab());\n assertEquals(\"'getAll' should be correct.\", user2.getNetworkId(), entity2.getNetworkId());\n assertEquals(\"'getAll' should be correct.\", user2.getRole().getId(), entity2.getRole().getId());\n assertEquals(\"'getAll' should be correct.\", user2.getFirstName(), entity2.getFirstName());\n assertEquals(\"'getAll' should be correct.\", user2.getLastName(), entity2.getLastName());\n assertEquals(\"'getAll' should be correct.\", user2.getEmail(), entity2.getEmail());\n assertEquals(\"'getAll' should be correct.\", user2.getTelephone(), entity2.getTelephone());\n assertEquals(\"'getAll' should be correct.\", user2.getStatus().getId(), entity2.getStatus().getId());\n }",
"@Test\n\tpublic void testNewInvalidNoTargetType() {\n\t\ttry {\n\t\t\tthis.createCollectionProperty(\"<property name=\\\"locales\\\"/>\");\n\t\t\tAssert.fail(\"expected ModelValidationException\");\n\t\t} catch (ModelValidationException e) {\n\t\t\tAssert.assertTrue(e.getMessage().contains(\"no targettype specified\"));\n\t\t}\n\t}",
"@Test\n\tpublic void testSelectByAssociationType() {\n\t\tmoduleAssociationRepo.insert(moduleAssociation);\n\t\tList<ModuleAssociation> moduleAssociations = moduleAssociationRepo\n\t\t\t\t.selectByAssociationType(moduleAssociation.getAssociationType());\n\t\tassertTrue(moduleAssociations.size() > 0);\n\t}",
"@Test\n public void validateInteractionTypes() throws Exception {\n // Query interaction types used in the database\n MySQLAdaptor dba = new MySQLAdaptor(\"localhost\",\n FIConfiguration.getConfiguration().get(\"REACTOME_SOURCE_DB_NAME\"),\n FIConfiguration.getConfiguration().get(\"DB_USER\"),\n FIConfiguration.getConfiguration().get(\"DB_PWD\"));\n Collection<?> interactions = dba.fetchInstancesByClass(ReactomeJavaConstants.Interaction);\n SchemaClass cls = dba.getSchema().getClassByName(ReactomeJavaConstants.Interaction);\n SchemaAttribute att = cls.getAttribute(ReactomeJavaConstants.interactionType);\n dba.loadInstanceAttributeValues(interactions, att);\n Set<String> types = new HashSet<String>();\n for (Iterator<?> it = interactions.iterator(); it.hasNext();) {\n GKInstance interaction = (GKInstance) it.next();\n String type = (String) interaction.getAttributeValue(ReactomeJavaConstants.interactionType);\n if (type != null)\n types.add(type);\n }\n logger.info(\"Total interaction types: \" + types.size());\n // Load listed InteractionTypes in the XML file\n String fileName = \"resources/InteractionTypeMapper.xml\";\n SAXBuilder builder = new SAXBuilder();\n org.jdom.Document document = builder.build(new File(fileName));\n Element root = document.getRootElement();\n List<?> children = root.getChildren(\"type\");\n Set<String> listedTypes = new HashSet<String>();\n for (Iterator<?> it = children.iterator(); it.hasNext();) {\n Element typeElm = (Element) it.next();\n listedTypes.add(typeElm.getAttributeValue(\"name\"));\n }\n logger.info(\"Listed interaction types: \" + listedTypes.size());\n types.removeAll(listedTypes);\n if (types.size() > 0) {\n logger.error(\"Interaction types have not been listed: \" + types.size());\n System.out.println(\"Add the following types into file resources/InteractionTypeMapper.xml \" +\n \"and make sure reverse types and directions are correct:\");\n for (String type : types) {\n // Print out in the XML element format for easy integation\n System.out.println(\"<type name=\\\"\" + type + \"\\\" reverse=\\\"\" + type + \"\\\" direction=\\\"-\\\" />\");\n }\n throw new IllegalStateException(\"Interaction types have not been listed: \" + types.size());\n }\n }",
"default boolean areRelated(Triple... elements) {\n return witnesses(elements).anyMatch(x -> true);\n }",
"@Test\n public void getPerrosTest() {\n List<PerroEntity> list = perroLogic.getPerros();\n Assert.assertEquals(Perrodata.size(), list.size());\n for (PerroEntity entity : list) {\n boolean found = false;\n for (PerroEntity storedEntity : Perrodata) {\n if (entity.getId().equals(storedEntity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }",
"public void testSearchAddresses_AssociationException() throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.searchAddresses(AddressFilterFactory.createCreatedByFilter(\"user\"));\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test33() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.collection((String) null);\n // Undeclared exception!\n try { \n dynamicSelectModel0.getObjects();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Expression null evaluated to null. Can't build a dynamic ISelectModel\n //\n verifyException(\"wheel.util.DynamicSelectModel\", e);\n }\n }",
"private Collection getRelatedClassValidationList (\n\t\tPersistenceFieldElement field)\n\t{\n\t\tString relatedClass = getRelatedClass(field);\n\t\tArrayList list = new ArrayList();\n\n\t\t// even though this is really already included in the validation \n\t\t// step, we only want to add the extra steps if the field exists\n\t\tif ((relatedClass != null) && \n\t\t\tgetModel().hasField(getClassName(), field.getName()))\n\t\t{\n\t\t\tMappingClassElement relatedClassElement = \n\t\t\t\tgetMappingClass(relatedClass);\n\n\t\t\tlist.add(createClassExistenceComponent(relatedClass, field));\n\t\t\tlist.add(createClassPersistenceComponent(relatedClass, field));\n\t\t\tlist.add(createSchemaExistenceComponent(relatedClass, field));\n\t\t\tlist.add(createRelatedSchemaMatchesComponent(relatedClass, field));\n\n\t\t\tif (relatedClassElement != null)\n\t\t\t{\n\t\t\t\tArrayList tables = relatedClassElement.getTables();\n\t\t\t\tMappingTableElement primaryTable = null;\n\t\t\t\tboolean hasTables = ((tables != null) && (tables.size() > 0));\n\n\t\t\t\tif (hasTables)\n\t\t\t\t{\n\t\t\t\t\tprimaryTable = (MappingTableElement)tables.get(0);\n\t\t\t\t\tlist.add(createTableExistenceComponent(\n\t\t\t\t\t\tprimaryTable.getTable(), field));\n\t\t\t\t}\n\n\t\t\t\tif (isRelationship(field))\n\t\t\t\t{\n\t\t\t\t\tRelationshipElement relElement = (RelationshipElement)field;\n\t\t\t\t\tObject rel = getMappingClass(getClassName()).\n\t\t\t\t\t\tgetField(field.getName());\n\n\t\t\t\t\tlist.add(createInverseFieldComponent(relElement));\n\t\t\t\t\tlist.add(createInverseMappingComponent(relElement));\n\n\t\t\t\t\t// verify that the columns from the primary table \n\t\t\t\t\t// of the related class are actually from that table\n\t\t\t\t\t// since it could have been changed\n\t\t\t\t\tif ((rel != null) && isRelationship(rel))\n\t\t\t\t\t{\n\t\t\t\t\t\tMappingRelationshipElement relationship = \n\t\t\t\t\t\t\t(MappingRelationshipElement)rel;\n\t\t\t\t\t\tArrayList columns = \n\t\t\t\t\t\t\trelationship.getAssociatedColumns();\n\t\t\t\t\t\tIterator iterator = null;\n\n\t\t\t\t\t\tif ((columns == null) || (columns.size() == 0))\n\t\t\t\t\t\t\tcolumns = relationship.getColumns();\n\n\t\t\t\t\t\tif (columns != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tList tableNames = new ArrayList();\n\n\t\t\t\t\t\t\tif (hasTables)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tIterator tableIterator = tables.iterator();\n\n\t\t\t\t\t\t\t\twhile (tableIterator.hasNext())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\ttableNames.add(((MappingTableElement)\n\t\t\t\t\t\t\t\t\t\ttableIterator.next()).getName());\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\titerator = columns.iterator();\n\n\t\t\t\t\t\t\twhile (iterator.hasNext())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlist.add(createRelatedTableMatchesComponent(\n\t\t\t\t\t\t\t\t\trelatedClass, field, tableNames, \n\t\t\t\t\t\t\t\t\t(String)iterator.next()));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"private void createTestEntities(final EntityManager em,\n Map<UUID, Entity> thingsMap, List<Entity> things, final String type) throws Exception {\n\n logger.debug(\"\\n\\nCreating new {} collection in application {}\\n\",\n type, em.getApplication().getName());\n\n setup.getEntityIndex().refresh(em.getApplicationId());\n\n\n List<Entity> created = new ArrayList<>();\n for (int i = 0; i < 10; i++) {\n final int count = i;\n Entity e = em.create(type, new HashMap<String, Object>() {{\n put(\"name\", em.getApplication().getName() + \"-\" + type + \"-\" + count);\n put(\"originalAppId\", em.getApplication().getUuid());\n put(\"originalAppName\", em.getApplication().getName());\n }});\n thingsMap.put(e.getUuid(), e);\n things.add(e);\n created.add(e);\n }\n\n // first two things are related to each other\n em.createConnection(new SimpleEntityRef(type, created.get(0).getUuid()),\n \"related\", new SimpleEntityRef(type, created.get(1).getUuid()));\n em.createConnection(new SimpleEntityRef(type, created.get(1).getUuid()),\n \"related\", new SimpleEntityRef(type, created.get(0).getUuid()));\n\n setup.getEntityIndex().refresh(em.getApplicationId());\n\n }",
"@Test(timeout = 4000)\n public void test34() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.collection(\"org.mvel.conversion.IntegerCH$8\");\n // Undeclared exception!\n try { \n dynamicSelectModel0.getObjects();\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Expression org.mvel.conversion.IntegerCH$8 evaluated to an object that is not an instance of Collection or Object[]. Can't build a dynamic ISelectModel\n //\n verifyException(\"wheel.util.DynamicSelectModel\", e);\n }\n }",
"@Test\n public void getGraph1() throws Exception {\n try (final Graph g1 = dataset.getGraph(graph1).get()) {\n assertEquals(4, g1.size());\n\n assertTrue(g1.contains(alice, name, aliceName));\n assertTrue(g1.contains(alice, knows, bob));\n assertTrue(g1.contains(alice, member, null));\n assertTrue(g1.contains(null, name, secretClubName));\n }\n }",
"@Test\n\tpublic void ensureBug77IsSolved() {\n\t\tTag a = new Tag(A);\n\t\ttagService.create(a);\n\t\tTag b = tagService.create(new Tag(B));\n\t\tTag c = tagService.create(new Tag(C));\n\t\tIterable<Tag> values = tagService.find().matching(\n\t\t\t\tnew QueryBuilder<TagInformer>() {\n\n\t\t\t\t\tpublic QueryExpression createMatchingExpression(\n\t\t\t\t\t\t\tTagInformer object) {\n\t\t\t\t\t\treturn object.getText().equalsToIgnoreCase(\"a\");\n\t\t\t\t\t}\n\t\t\t\t}).getAll();\n\t\tassertThat(values, IsCollectionContaining.hasItems(a));\n\t\tassertThat(values, IsNot.not(IsCollectionContaining.hasItems(b, c)));\n\t}",
"private void tryToInfer(Statement s, \n\t\t\t Model aboxAssertionsModel, \n\t\t\t Model aboxInferencesModel) {\n\t\tif (!aboxAssertionsModel.contains(s) && !aboxInferencesModel.contains(s)) {\n\t\t\taboxInferencesModel.add(s);\n\t\t}\n\t}",
"@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }",
"@Test\n\t@SuppressWarnings(\"unchecked\")\n\tpublic void testAddAndRemoveLinkOkComponentTreeSetSorted() {\n\t\tTypeRapidBean rtypeParent = (TypeRapidBean) TypeRapidBean\n\t\t\t\t.forName(\"org.rapidbeans.test.addressbook5.Addressbook\");\n\t\tTypePropertyCollection aetypeParentSons = (TypePropertyCollection) rtypeParent.getPropertyType(\"persons\");\n\t\tClass<?> colClassBefore = aetypeParentSons.getCollectionClass();\n\t\tAssert.assertSame(TreeSet.class, colClassBefore);\n\t\tRapidBean adrbook = RapidBeanImplParent.createInstance(\"org.rapidbeans.test.addressbook5.Addressbook\");\n\t\tRapidBean person1 = RapidBeanImplParent.createInstance(\"org.rapidbeans.test.addressbook5.Person\");\n\t\tperson1.setPropValue(\"lastname\", \"A\");\n\t\tRapidBean person2 = RapidBeanImplParent.createInstance(\"org.rapidbeans.test.addressbook5.Person\");\n\t\tperson2.setPropValue(\"lastname\", \"B\");\n\t\tAssert.assertNull(((PropertyCollection) adrbook.getProperty(\"persons\")).getValue());\n\t\tAssert.assertNull(person1.getParentBean());\n\t\tAssert.assertNull(person2.getParentBean());\n\n\t\t// add person 2 before person 1\n\t\t((PropertyCollection) adrbook.getProperty(\"persons\")).addLink(person2);\n\t\t((PropertyCollection) adrbook.getProperty(\"persons\")).addLink(person1);\n\t\tAssert.assertEquals(2,\n\t\t\t\t((Collection<Link>) ((PropertyCollection) adrbook.getProperty(\"persons\")).getValue()).size());\n\t\tIterator<Link> iter = ((Collection<Link>) ((PropertyCollection) adrbook.getProperty(\"persons\")).getValue())\n\t\t\t\t.iterator();\n\t\tAssert.assertSame(person1, iter.next());\n\t\tAssert.assertSame(person2, iter.next());\n\t\tAssert.assertSame(adrbook, person1.getParentBean());\n\t\tAssert.assertSame(adrbook, person2.getParentBean());\n\n\t\t// reset persons and add person 1 before person 2\n\t\t((PropertyCollection) adrbook.getProperty(\"persons\")).setValue(null);\n\t\t((PropertyCollection) adrbook.getProperty(\"persons\")).addLink(person1);\n\t\t((PropertyCollection) adrbook.getProperty(\"persons\")).addLink(person2);\n\t\tAssert.assertEquals(2,\n\t\t\t\t((Collection<Link>) ((PropertyCollection) adrbook.getProperty(\"persons\")).getValue()).size());\n\t\titer = ((Collection<Link>) ((PropertyCollection) adrbook.getProperty(\"persons\")).getValue()).iterator();\n\t\tAssert.assertSame(person1, iter.next());\n\t\tAssert.assertSame(person2, iter.next());\n\t\tAssert.assertSame(adrbook, person1.getParentBean());\n\t\tAssert.assertSame(adrbook, person2.getParentBean());\n\n\t\t// remove the links again\n\t\t((PropertyCollection) adrbook.getProperty(\"persons\")).removeLink(person2);\n\t\t((PropertyCollection) adrbook.getProperty(\"persons\")).removeLink(person1);\n\t\tAssert.assertEquals(0,\n\t\t\t\t((Collection<Link>) ((PropertyCollection) adrbook.getProperty(\"persons\")).getValue()).size());\n\t\tAssert.assertNull(person1.getParentBean());\n\t\tAssert.assertNull(person2.getParentBean());\n\t}",
"private <T extends AtlasBaseTypeDef> boolean compareLists(List<T> expected, List<T> actual) {\n if (expected.isEmpty() && actual.isEmpty()) {\n return true;\n }\n\n // initially this list contains all expected EntityDefs; we'll remove the actual EntityDefs;\n // the remaining items will contain the items found in this model but not in the other one\n final List<T> missingEntityDefs = newArrayList();\n missingEntityDefs.addAll(expected);\n\n for (T entityDef : actual) {\n Iterator<T> iter = missingEntityDefs.iterator();\n while (iter.hasNext()) {\n if (iter.next().getName().equals(entityDef.getName())) {\n iter.remove();\n break;\n }\n }\n }\n // not a full comparison since it's possible for this list to be empty but the other\n // model to have extra entities - but for our purposes that's good enough\n return missingEntityDefs.isEmpty();\n }",
"@Test\n public void getViajerosTest() {\n List<ViajeroEntity> list = vp.findAll();\n Assert.assertEquals(data.size(), list.size());\n for (ViajeroEntity ent : list) {\n boolean found = false;\n for (ViajeroEntity entity : data) {\n if (ent.getId().equals(entity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }",
"@Test\r\n\tpublic void addRelatedTable() {\r\n\t\ttestObj.addRelatedTable(1);\r\n\t\ttestObj.makeArrays();\r\n\t\tassertEquals(\"relatedTables size should be 1\", 1, testObj.getRelatedTablesArray().length);\r\n\t}",
"@Test\n\tpublic void testValidateSurveyIds() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateSurveyIds(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\tfor(String simpleValidList : ParameterSets.getSimpleValidLists()) {\n\t\t\t\ttry {\n\t\t\t\t\tSurveyResponseValidators.validateSurveyIds(simpleValidList);\n\t\t\t\t}\n\t\t\t\tcatch(ValidationException e) {\n\t\t\t\t\tfail(\"A valid list failed validation.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}",
"public void testGetAllAddresses_AssociationException() throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.getAllAddresses();\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"private List<EntityRelationshipType> parentPresent(String entityId, List<EntityRelationshipType> relationList,\n\t\t\tLosConfigDetails owner, LosConfigDetails owned, LosConfigDetails affilated, LosConfigDetails subsidary) {\n\t\tList<EntityRelationshipType> affialiateDataList = new ArrayList<>();\n\t\tList<EntityRelationshipType> child = new ArrayList<>();\n\t\tList<String> individualEntityId2List = new ArrayList<String>();\n\t\tList<String> commercialEntityId2List = new ArrayList<String>();\n\t\tList<String> childrenEntityId2List = new ArrayList<String>();\n\t\tList<EntityRelationshipType> children = entityRelationshipTypeRepository\n\t\t\t\t.findByEntityId1AndDeletedAndStatus(Arrays.asList(entityId));\n\t\tList<EntityRelationshipType> parents = entityRelationshipTypeRepository\n\t\t\t\t.findByEntityId2AndDeleted(Arrays.asList(entityId));\n\t\tparents.stream().forEach(getIndividualEntityId2 -> {\n\t\t\tif ((getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.OWNER)\n\t\t\t\t\t|| getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.OWNED))\n\t\t\t\t\t&& getIndividualEntityId2.getEntityId2().endsWith(LOSEntityConstants.INDIVIDUAL_SUFFIX_CODE)) {\n\t\t\t\tindividualEntityId2List.add(getIndividualEntityId2.getEntityId2());\n\t\t\t} else if (getIndividualEntityId2.getEntityId2().endsWith(LOSEntityConstants.COMMERCIAL_SUFFIX_CODE)\n\t\t\t\t\t&& (getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.SUBSIDIARY)\n\t\t\t\t\t\t\t|| getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.AFFILIATED)\n\t\t\t\t\t\t\t|| getRelationTypeId(getIndividualEntityId2).equals(LOSEntityConstants.OWNER))) {\n\t\t\t\tcommercialEntityId2List.add(getIndividualEntityId2.getEntityId2());\n\t\t\t}\n\t\t});\n\t\tchildren.forEach(getEntityId2 -> {\n\t\t\tif (!childrenEntityId2List.contains(getEntityId2.getEntityId2())) {\n\t\t\t\tchildrenEntityId2List.add(getEntityId2.getEntityId2());\n\t\t\t}\n\t\t});\n\t\tif (!individualEntityId2List.isEmpty() || !childrenEntityId2List.isEmpty()\n\t\t\t\t|| !commercialEntityId2List.isEmpty()) {\n\t\t\treturn checkEntityIdsList(entityId, relationList, owner, owned, affilated, subsidary, affialiateDataList,\n\t\t\t\t\tindividualEntityId2List, commercialEntityId2List, childrenEntityId2List, children, parents);\n\t\t} else {\n\t\t\tchild.addAll(children);\n\t\t\tchild.addAll(parents);\n\t\t}\n\t\treturn child;\n\t}",
"private void checkCollection(SnmpCollection collection) {\n if (collection.getSystems() == null)\n collection.setSystems(new Systems());\n if (collection.getGroups() == null)\n collection.setGroups(new Groups());\n }",
"@Test\n public void test11RelationshipConfigIdName() throws Exception\n {\n Collection<PSConfig> configs = ms_cms.findAllConfigs();\n assertTrue(configs.size() == 2);\n \n List<PSRelationshipConfigName> aaList = \n ms_cms.findRelationshipConfigNames(\"%Assembly%\");\n for (PSRelationshipConfigName cfg : aaList)\n {\n assertTrue(cfg.getName().contains(\"Assembly\"));\n }\n \n PSConfig cfg = ms_cms.findConfig(\n PSConfigurationFactory.RELATIONSHIPS_CFG);\n assertNotNull(cfg);\n \n PSRelationshipConfigSet relConfigSet = loadRelationshipConfigSet();\n\n //\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\\n // Negative testing various operations on SYSTEM relationship configs\n //\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\\n \n // modify an id of a system relationship config\n PSRelationshipConfig sysConfig = relConfigSet\n .getConfig(PSRelationshipConfig.TYPE_FOLDER_CONTENT);\n try\n {\n sysConfig.setId(100);\n // above line should fail, cannot set id to an object which already\n // has an assigned id.\n assertTrue(false); \n }\n catch (Exception e) {}\n sysConfig.resetId();\n sysConfig.setId(100); \n try\n {\n saveRelationshipConfigSet(relConfigSet, cfg);\n // above line should fail, id of a system config cannot be modified.\n assertTrue(false); \n }\n catch (Exception e) {}\n\n try\n {\n relConfigSet.deleteConfig(sysConfig.getName());\n // above line should fail, cannot delete a system config.\n assertTrue(false); \n }\n catch (Exception e) {}\n \n //\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\\n // Negative testing various operations on USER relationship configs\n //\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\/\\\n \n relConfigSet = loadRelationshipConfigSet();\n PSRelationshipConfig userConfig = (PSRelationshipConfig) relConfigSet\n .getConfig(PSRelationshipConfig.TYPE_FOLDER_CONTENT).clone();\n userConfig.setType(PSRelationshipConfig.RS_TYPE_USER);\n userConfig.resetId();\n relConfigSet.add(userConfig);\n try\n {\n saveRelationshipConfigSet(relConfigSet, cfg);\n // above line should fail, cannot save with a user config with DUP-NAME.\n assertTrue(false); \n }\n catch (Exception e) {}\n\n userConfig.setName(\"myFolderContent\");\n userConfig.resetId();\n userConfig.setId(\n PSRelationshipConfig.SysConfigEnum.FOLDER_CONTENT.getId());\n try\n {\n saveRelationshipConfigSet(relConfigSet, cfg);\n // above line should fail, cannot save with a user config with DUP-ID.\n assertTrue(false); \n }\n catch (Exception e) {}\n \n }",
"@Test(description = \"update interface with one type for non existing interface\")\n public void updateTwoTypes4NonExisting()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final TypeData type1 = data.getType(\"TestType1\");\n final TypeData type2 = data.getType(\"TestType2\");\n data.create();\n\n final InterfaceData inter = data.getInterface(\"TestInterface\")\n .addType(type1)\n .addType(type2);\n this.update(inter);\n\n final Set<String> result = new HashSet<String>();\n result.add(type1.getName());\n result.add(type2.getName());\n Assert.assertEquals(this.mqlAsSet(\"print interface '\" + inter.getName() + \"' select type dump '\\n'\"),\n result,\n \"check that all types are defined\");\n }",
"public static void validateRootRelations(Relation[] relations) {\n for(Relation relation: relations) {\n Preconditions.checkNotNull(\n relation.getDenormalizedName(),\n \"A root relation must have a denormalized object name\"\n );\n Preconditions.checkNotNull(\n relation.getEntity(),\n String.format(\"Top level relation '%s' must correspond to an input record type\", relation.getDenormalizedName())\n );\n Preconditions.checkNotNull(\n relation.getChildren(),\n String.format(\"Top level relation '%s' must have children\", relation.getDenormalizedName())\n );\n\n for(Relation child: relation.getChildren()) {\n validateChildRelation(child);\n }\n }\n }",
"@Test\n\tpublic void testAddLinkInvalidMultExceeded() {\n\n\t\t// create 1 Address and some Persons\n\t\tAddress adr = new Address();\n\t\tPerson jojo1 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo2 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641015\\\"\");\n\t\tPerson jojo3 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641016\\\"\");\n\t\tPerson jojo4 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641017\\\"\");\n\t\tPerson jojo5 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641018\\\"\");\n\t\tPerson jojo6 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641019\\\"\");\n\n\t\t// add more persons than allowed\n\t\tadr.addInhabitant(jojo1);\n\t\tadr.addInhabitant(jojo2);\n\t\tadr.addInhabitant(jojo3);\n\t\tadr.addInhabitant(jojo4);\n\t\tadr.addInhabitant(jojo5);\n\t\ttry {\n\t\t\tadr.addInhabitant(jojo6);\n\t\t\tAssert.fail();\n\t\t} catch (ValidationException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}",
"@Test(expected=IllegalArgumentException.class)\n public void testNamedParamValueInCollectionTypeValidation() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).in().named(NAMED_PARAM_1);\n query.named().setValue(NAMED_PARAM_1, Arrays.asList(10d, \"Moo\"));\n }",
"@Test\n public void missingEntity() {\n\n final URI entityURI =\n getClient().newURIBuilder(SERVICE_URI).appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(1).build();\n\n // Request to single (non collection) navigation property\n ClientEntity entity = getFactory().newEntity(ET_KEY_NAV);\n final ClientLink navLinkOne =\n getFactory().newEntityNavigationLink(NAV_PROPERTY_ET_KEY_NAV_ONE, getClient().newURIBuilder(SERVICE_URI)\n .appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(42).build());\n entity.addLink(navLinkOne);\n\n try {\n getEdmEnabledClient().getCUDRequestFactory()\n .getEntityUpdateRequest(entityURI, UpdateType.PATCH, entity).execute();\n fail();\n } catch (ODataClientErrorException e) {\n assertEquals(HttpStatusCode.NOT_FOUND.getStatusCode(), e.getStatusLine().getStatusCode());\n }\n\n // Request to collection navigation propetry\n entity = getFactory().newEntity(ET_KEY_NAV);\n final ClientLink navLinkMany =\n getFactory().newEntitySetNavigationLink(NAV_PROPERTY_ET_KEY_NAV_MANY, getClient().newURIBuilder(SERVICE_URI)\n .appendEntitySetSegment(ES_KEY_NAV).appendKeySegment(3).build());\n entity.addLink(navLinkMany);\n\n try {\n getEdmEnabledClient().getCUDRequestFactory()\n .getEntityUpdateRequest(entityURI, UpdateType.PATCH, entity).execute();\n } catch (ODataClientErrorException e) {\n assertEquals(HttpStatusCode.NOT_FOUND.getStatusCode(), e.getStatusLine().getStatusCode());\n }\n }",
"@Test\r\n\tpublic void testRuleSets2() throws Exception{\r\n\t\t\r\n\t\tAssert.assertEquals(0L, testAdminCon.size());\r\n\t\ttestAdminCon.add(micah, lname, micahlname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, fname, micahfname, dirgraph1);\r\n\t\ttestAdminCon.add(micah, developPrototypeOf, semantics, dirgraph1);\r\n\t\ttestAdminCon.add(micah, type, sEngineer, dirgraph1);\r\n\t\ttestAdminCon.add(micah, worksFor, ml, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(john, fname, johnfname,dirgraph);\r\n\t\ttestAdminCon.add(john, lname, johnlname,dirgraph);\r\n\t\ttestAdminCon.add(john, writeFuncSpecOf, inference, dirgraph);\r\n\t\ttestAdminCon.add(john, type, lEngineer, dirgraph);\r\n\t\ttestAdminCon.add(john, worksFor, ml, dirgraph);\r\n\t\t\r\n\t\ttestAdminCon.add(writeFuncSpecOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(developPrototypeOf, subProperty, design, dirgraph1);\r\n\t\ttestAdminCon.add(design, subProperty, develop, dirgraph1);\r\n\t\t\r\n\t\ttestAdminCon.add(lEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(sEngineer, subClass, engineer, dirgraph1);\r\n\t\ttestAdminCon.add(engineer, subClass, employee, dirgraph1);\r\n\t\t\r\n\t\tString query = \"select (count (?s) as ?totalcount) where {?s ?p ?o .} \";\r\n\t\tTupleQuery tupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS_PLUS_FULL);\r\n\t\tTupleQueryResult result\t= tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(374, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\r\n\t\tRepositoryResult<Statement> resultg = testAdminCon.getStatements(null, null, null, true, dirgraph, dirgraph1);\r\n\t\t\r\n\t\tassertNotNull(\"Iterator should not be null\", resultg);\r\n\t\tassertTrue(\"Iterator should not be empty\", resultg.hasNext());\r\n\t\t\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.EQUIVALENT_CLASS);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(SPARQLRuleset.RDFS,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(86, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets(null,SPARQLRuleset.INVERSE_OF);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(18, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t\t\r\n\t\ttupleQuery = testAdminCon.prepareTupleQuery(QueryLanguage.SPARQL, query);\r\n\t\t((MarkLogicQuery) tupleQuery).setRulesets((SPARQLRuleset)null, null);\r\n\t\ttupleQuery.setIncludeInferred(false);\r\n\t\tresult = tupleQuery.evaluate();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tassertThat(result, is(notNullValue()));\r\n\t\t\tassertThat(result.hasNext(), is(equalTo(true)));\r\n\t\t\twhile (result.hasNext()) {\r\n\t\t\t\tBindingSet solution = result.next();\r\n\t\t\t\tassertThat(solution.hasBinding(\"totalcount\"), is(equalTo(true)));\r\n\t\t\t\tValue count = solution.getValue(\"totalcount\");\r\n\t\t\t\tAssert.assertEquals(16, Integer.parseInt(count.stringValue()));\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tresult.close();\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void testNotAMatchOfAnyKind() {\n\t\tassertFalse(s4.equals(s3));\n\t\tassertFalse(streetAddresses.contains(s4));\n\t\tassertFalse(streetAddresses.stream().anyMatch(s -> comparator.compare(s4, s) == 0));\n\t}",
"@Test\n public void findAll() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Student s2 = new Student(2,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Nota n2 = new Nota(2, 2, \"prof\", 9, \"Nu ai teste\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n int countS=0, countT=0, countN=0;\n for(Student ignored : repo.findAll()) countS++;\n for(Tema ignored : repot.findAll()) countT++;\n for(Nota ignored : repon.findAll()) countN++;\n assert countS==2;\n assert countT==2;\n assert countN==2;\n\n }\n catch (ValidationException e){\n }\n }",
"@Test(timeout = 4000)\n public void test45() throws Throwable {\n DynamicSelectModel dynamicSelectModel0 = new DynamicSelectModel();\n dynamicSelectModel0.collection(\"*:zjZB0~Q/\");\n // Undeclared exception!\n try { \n dynamicSelectModel0.getObjects();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.mvel.MVELInterpretedRuntime\", e);\n }\n }",
"@Test\n public void testUnionOnSchemaNoSchema() throws Exception {\n String expectedErr = \"UNION ONSCHEMA cannot be used with \" +\n \"relations that have null schema\";\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' ;\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : float);\"\n + \"u = union onschema l1, l2;\"\n ; \n checkSchemaEx(query, expectedErr);\n \n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' ;\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' ;\"\n + \"u = union onschema l1, l2;\"\n ; \n checkSchemaEx(query, expectedErr);\n\n }"
] | [
"0.59734505",
"0.5868523",
"0.5529754",
"0.5426777",
"0.53827333",
"0.53769565",
"0.53471524",
"0.5322658",
"0.5278089",
"0.5223896",
"0.5211869",
"0.5205548",
"0.520009",
"0.51874954",
"0.5176224",
"0.5171575",
"0.51515853",
"0.51503044",
"0.5146733",
"0.51337665",
"0.5129375",
"0.5124168",
"0.51078826",
"0.5082883",
"0.5077419",
"0.5066129",
"0.50203127",
"0.49995747",
"0.49984744",
"0.4991971",
"0.49846688",
"0.4984357",
"0.498245",
"0.49793446",
"0.496697",
"0.49632484",
"0.49612027",
"0.49576858",
"0.49553168",
"0.4944706",
"0.49374184",
"0.49357164",
"0.4933969",
"0.49287325",
"0.49284822",
"0.49272528",
"0.49099073",
"0.49030548",
"0.4895675",
"0.48848754",
"0.48788756",
"0.4876462",
"0.48725924",
"0.4872243",
"0.48702312",
"0.48666522",
"0.4861438",
"0.485272",
"0.4843057",
"0.4833395",
"0.48246774",
"0.4820244",
"0.48096985",
"0.48052725",
"0.4797301",
"0.47964308",
"0.47926688",
"0.4784922",
"0.4781528",
"0.47745398",
"0.47730625",
"0.47659817",
"0.47656342",
"0.47595993",
"0.47580302",
"0.47529662",
"0.47505236",
"0.47482902",
"0.47400153",
"0.47345805",
"0.4730152",
"0.4729719",
"0.47108412",
"0.47093666",
"0.47048876",
"0.47045934",
"0.47016925",
"0.47009516",
"0.4700183",
"0.4685678",
"0.46784812",
"0.46783543",
"0.46712923",
"0.46685502",
"0.46648383",
"0.4664352",
"0.46619746",
"0.4652518",
"0.46500024",
"0.46499702"
] | 0.5146708 | 19 |
For each relation, error test cases when mappedBy is mentioned on both sides of relation and cases where it is not specified on both sides | @Test(dataProvider = "repositoryFactories")
public void testError_doubleMapping(RepositoryFactory factory)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n return;\n }\n\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocMany<?> mappedAssocMany = mappedManyToMany(prop, mappedBy, targetDesc);\n\n // define the relationships/joins on this side as the\n // reverse of the other mappedBy side ...\n DeployTableJoin mappedIntJoin = mappedAssocMany.getIntersectionJoin();\n DeployTableJoin mappendInverseJoin = mappedAssocMany.getInverseJoin();\n\n String intTableName = mappedIntJoin.getTable();\n\n DeployTableJoin tableJoin = prop.getTableJoin();\n mappedIntJoin.copyTo(tableJoin, true, targetDesc.getBaseTable());\n\n DeployTableJoin intJoin = new DeployTableJoin();\n mappendInverseJoin.copyTo(intJoin, false, intTableName);\n prop.setIntersectionJoin(intJoin);\n\n DeployTableJoin inverseJoin = new DeployTableJoin();\n mappedIntJoin.copyTo(inverseJoin, false, intTableName);\n prop.setInverseJoin(inverseJoin);\n\n if (targetDesc.isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n }",
"private void checkMappedByOneToMany(DeployBeanInfo<?> info, DeployBeanPropertyAssocMany<?> prop) {\n if (prop.isElementCollection()) {\n // skip mapping check\n return;\n }\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n if (targetDesc.isDraftableElement()) {\n // automatically turning on orphan removal and CascadeType.ALL\n prop.setModifyListenMode(BeanCollection.ModifyListenMode.REMOVALS);\n prop.getCascadeInfo().setSaveDelete(true, true);\n }\n\n if (prop.hasOrderColumn()) {\n makeOrderColumn(prop);\n }\n\n if (prop.getMappedBy() == null) {\n // if we are doc store only we are done\n // this allows the use of @OneToMany in @DocStore - Entities\n if (info.getDescriptor().isDocStoreOnly()) {\n prop.setUnidirectional();\n return;\n }\n\n if (!findMappedBy(prop)) {\n if (!prop.isO2mJoinTable()) {\n makeUnidirectional(prop);\n }\n return;\n }\n }\n\n // check that the mappedBy property is valid and read\n // its associated join information if it is available\n String mappedBy = prop.getMappedBy();\n\n // get the mappedBy property\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedManyToOne(prop, targetDesc, mappedBy);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());\n }\n\n PropertyForeignKey foreignKey = mappedAssocOne.getForeignKey();\n if (foreignKey != null) {\n ConstraintMode onDelete = foreignKey.getOnDelete();\n switch (onDelete) {\n case SET_DEFAULT:\n case SET_NULL:\n case CASCADE: {\n // turn off cascade delete when we are using the foreign\n // key constraint to cascade the delete or set null\n prop.getCascadeInfo().setDelete(false);\n }\n }\n }\n }",
"private void checkMappedBy(DeployBeanInfo<?> info, List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck) {\n for (DeployBeanPropertyAssocOne<?> oneProp : info.getDescriptor().propertiesAssocOne()) {\n if (!oneProp.isTransient()) {\n if (oneProp.getMappedBy() != null) {\n checkMappedByOneToOne(oneProp);\n } else if (oneProp.isPrimaryKeyJoin()) {\n primaryKeyJoinCheck.add(oneProp);\n }\n }\n }\n\n for (DeployBeanPropertyAssocMany<?> manyProp : info.getDescriptor().propertiesAssocMany()) {\n if (!manyProp.isTransient()) {\n if (manyProp.isManyToMany()) {\n checkMappedByManyToMany(manyProp);\n } else {\n checkMappedByOneToMany(info, manyProp);\n }\n }\n }\n }",
"private boolean findMappedBy(DeployBeanPropertyAssocMany<?> prop) {\n // this is the entity bean type - that owns this property\n Class<?> owningType = prop.getOwningType();\n Set<String> matchSet = new HashSet<>();\n\n // get the bean descriptor that holds the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n List<DeployBeanPropertyAssocOne<?>> ones = targetDesc.propertiesAssocOne();\n for (DeployBeanPropertyAssocOne<?> possibleMappedBy : ones) {\n Class<?> possibleMappedByType = possibleMappedBy.getTargetType();\n if (possibleMappedByType.equals(owningType)) {\n prop.setMappedBy(possibleMappedBy.getName());\n matchSet.add(possibleMappedBy.getName());\n }\n }\n\n if (matchSet.isEmpty()) {\n // this is a unidirectional relationship\n // ... that is no matching property on the 'detail' bean\n return false;\n }\n if (matchSet.size() == 1) {\n // all right with the world\n prop.clearTableJoin();\n return true;\n }\n if (matchSet.size() == 2) {\n // try to find a match implicitly using a common naming convention\n // e.g. List<Bug> loggedBugs; ... search for \"logged\" in matchSet\n String name = prop.getName();\n\n // get the target type short name\n String targetType = prop.getTargetType().getName();\n String shortTypeName = targetType.substring(targetType.lastIndexOf('.') + 1);\n\n // name includes (probably ends with) the target type short name?\n int p = name.indexOf(shortTypeName);\n if (p > 1) {\n // ok, get the 'interesting' part of the property name\n // That is the name without the target type\n String searchName = name.substring(0, p).toLowerCase();\n\n // search for this in the possible matches\n for (String possibleMappedBy : matchSet) {\n String possibleLower = possibleMappedBy.toLowerCase();\n if (possibleLower.contains(searchName)) {\n // we have a match\n prop.setMappedBy(possibleMappedBy);\n return true;\n }\n }\n }\n }\n // multiple options so should specify mappedBy property\n String msg = \"Error on \" + prop + \" missing mappedBy.\";\n msg += \" There are [\" + matchSet.size() + \"] possible properties in \" + targetDesc;\n msg += \" that this association could be mapped to. Please specify one using \";\n msg += \"the mappedBy attribute on @OneToMany.\";\n throw new PersistenceException(msg);\n }",
"private void checkMappedByOneToOne(DeployBeanPropertyAssocOne<?> prop) {\n String mappedBy = prop.getMappedBy();\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedOneToOne(prop, mappedBy, targetDesc);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyWithoutType(tableJoin, true, tableJoin.getTable());\n }\n\n if (mappedAssocOne.isPrimaryKeyJoin()) {\n // bi-directional PrimaryKeyJoin ...\n mappedAssocOne.setPrimaryKeyJoin(false);\n prop.setPrimaryKeyExport();\n addPrimaryKeyJoin(prop);\n }\n }",
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeftEvenWhenOnlyIdSelected() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getId());\n \n validate(\"select hobj3.id from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"@Test\n public void shouldGetBooks() {\n AutomappingTest.sqlSessionFactory.getConfiguration().setAutoMappingBehavior(PARTIAL);\n SqlSession sqlSession = AutomappingTest.sqlSessionFactory.openSession();\n try {\n Mapper mapper = sqlSession.getMapper(Mapper.class);\n // no errors throw\n List<Book> books = mapper.getBooks();\n Assert.assertTrue(\"should return results,no errors throw\", (!(books.isEmpty())));\n } finally {\n sqlSession.close();\n }\n }",
"@Test\n public void shouldIgnorePartialAutoMappingBehavior_ExternalNestedResultMap() {\n AutomappingTest.sqlSessionFactory.getConfiguration().setAutoMappingBehavior(PARTIAL);\n SqlSession sqlSession = AutomappingTest.sqlSessionFactory.openSession();\n try {\n Mapper mapper = sqlSession.getMapper(Mapper.class);\n User user = mapper.getUserWithPets_External(2);\n Assert.assertEquals(Integer.valueOf(2), user.getId());\n Assert.assertEquals(\"User2\", user.getName());\n Assert.assertNull(\"should not inherit auto-mapping\", user.getPets().get(0).getPetName());\n Assert.assertEquals(\"John\", user.getPets().get(0).getBreeder().getBreederName());\n } finally {\n sqlSession.close();\n }\n }",
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeft() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getAge());\n \n validate(\"select hobj3.age from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"@Test\n public void shouldIgnorePartialAutoMappingBehavior_InlineNestedResultMap() {\n AutomappingTest.sqlSessionFactory.getConfiguration().setAutoMappingBehavior(PARTIAL);\n SqlSession sqlSession = AutomappingTest.sqlSessionFactory.openSession();\n try {\n Mapper mapper = sqlSession.getMapper(Mapper.class);\n User user = mapper.getUserWithPets_Inline(2);\n Assert.assertEquals(Integer.valueOf(2), user.getId());\n Assert.assertEquals(\"User2\", user.getName());\n Assert.assertNull(\"should not inherit auto-mapping\", user.getPets().get(0).getPetName());\n Assert.assertEquals(\"John\", user.getPets().get(0).getBreeder().getBreederName());\n } finally {\n sqlSession.close();\n }\n }",
"Entity getMappedBy();",
"@Override\n public boolean isMapped() {\n return false;\n }",
"@Mapper(componentModel = \"spring\", uses = {UserMapper.class, })\npublic interface PeopleMapper extends EntityMapper <PeopleDTO, People> {\n\n @Mapping(source = \"user.id\", target = \"userId\")\n @Mapping(source = \"user.firstName\", target = \"userFirstName\")\n @Mapping(source = \"user.lastName\", target = \"userLastName\")\n PeopleDTO toDto(People people);\n\n @Mapping(source = \"userId\", target = \"user\")\n @Mapping(target = \"seminarsPresenteds\", ignore = true)\n @Mapping(target = \"seminarsAttendeds\", ignore = true)\n @Mapping(target = \"specialGuestAts\", ignore = true)\n People toEntity(PeopleDTO peopleDTO);\n default People fromId(Long id) {\n if (id == null) {\n return null;\n }\n People people = new People();\n people.setId(id);\n return people;\n }\n\n default String peopleName(People people) {\n String name = \"\";\n if (people == null) {\n return null;\n }\n if (people.getUser() == null) {\n return null;\n }\n String firstName = people.getUser().getFirstName();\n if (firstName != null) {\n name += firstName;\n }\n String lastName = people.getUser().getLastName();\n if (lastName != null) {\n name += \" \" + lastName;\n }\n return name;\n }\n}",
"public void test_findUniqueByPropertys() {\r\n\t\tPerson person = (Person) this.persistenceService.findUniqueByPropertys(Person.class, getParamMap(2));\r\n\t\tassertForFindUniquePerson(person);\r\n\t}",
"@Test\n public void testJoinOn_withTwoValidTables() {\n String table1column0 = \"user_id\";\n String table1column1 = \"age\";\n int idValue0 = 0;\n int ageValue0 = 23;\n int idValue1 = 1;\n int ageValue1 = 22;\n int idValue2 = 2;\n int ageValue2 = 18;\n String table2column0 = \"pet_id\";\n String table2column1 = \"owner_id\";\n int pet1_id = 0;\n int pet2_id = 1;\n\n try {\n // Set up ModelExtension Table\n String sql = \"CREATE TABLE ModelExtension (\" +\n table1column0 + \" int, \" +\n table1column1 + \" int)\";\n PreparedStatement pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO ModelExtension (\" +\n table1column0 + \", \" +\n table1column1 + \") VALUES (\" +\n idValue0 + \", \" +\n ageValue0 + \"), (\" +\n idValue1 + \", \" +\n ageValue1 + \"), (\" +\n idValue2 + \", \" +\n ageValue2 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n // Set up Test Table\n sql = \"CREATE TABLE Test (\" +\n table2column0 + \" int, \" +\n table2column1 + \" int)\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO Test (\" +\n table2column0 + \", \" +\n table2column1 + \") VALUES (\" +\n pet1_id + \", \" +\n idValue0 + \"), (\" +\n pet2_id + \", \" +\n idValue1 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n\n List<ModelExtension> models = child.findAll()\n .joinOn(\n new ModelExtensionWithAnnotation(), \n table1column0, \n table2column1)\n .execute(ModelExtension.class);\n\n assertEquals(2, models.size());\n assertEquals(idValue0, models.get(0).get(table1column0));\n assertEquals(ageValue0, models.get(0).get(table1column1));\n assertEquals(pet1_id, models.get(0).get(table2column0));\n assertEquals(idValue0, models.get(0).get(table2column1));\n\n assertEquals(idValue1, models.get(1).get(table1column0));\n assertEquals(ageValue1, models.get(1).get(table1column1));\n assertEquals(pet2_id, models.get(1).get(table2column0));\n assertEquals(idValue1, models.get(1).get(table2column1));\n }",
"public void testGetAllAddresses_AssociationException() throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.getAllAddresses();\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"public void testassociate4() throws Exception {\r\n try {\r\n Address address = new Address();\r\n address.setId(1);\r\n this.dao.associate(address, 1, true);\r\n fail(\"InvalidPropertyException expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"@Test\n public void testSqlExistsBasedJoin() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Map<Car, Set<Garage>> results = new LinkedHashMap<Car, Set<Garage>>();\n for (Car car : cars.retrieve(carsQuery)) {\n Query<Garage> garagesWhichServiceThisCarInDublin\n = and(equal(Garage.BRANDS_SERVICED, car.name), equal(Garage.LOCATION, \"Dublin\"));\n for (Garage garage : garages.retrieve(garagesWhichServiceThisCarInDublin)) {\n Set<Garage> garagesWhichCanServiceThisCar = results.get(car);\n if (garagesWhichCanServiceThisCar == null) {\n garagesWhichCanServiceThisCar = new LinkedHashSet<Garage>();\n results.put(car, garagesWhichCanServiceThisCar);\n }\n garagesWhichCanServiceThisCar.add(garage);\n }\n }\n\n assertEquals(\"join results should contain 2 cars\", 2, results.size());\n Assert.assertTrue(\"join results should contain car1\", results.containsKey(car1));\n Assert.assertTrue(\"join results should contain car4\", results.containsKey(car4));\n\n assertEquals(\"join results for car1\", asSet(garage3, garage4), results.get(car1));\n assertEquals(\"join results for car4\", asSet(garage2), results.get(car4));\n }",
"@Test\n public void map() {\n \n /*\n * Construct the mapper factory;\n */\n MapperFactory mapperFactory = new DefaultMapperFactory.Builder().build();\n \n /*\n * Register mappings for the fields whose names done match; 'byDefault' covers the matching ones\n */\n mapperFactory.classMap(A.class, B1.class)\n .field(\"a1.Pa11\", \"Pb11\")\n .field(\"a1.Pa12\", \"Pb12\")\n .byDefault()\n .register();\n \n mapperFactory.classMap(A.class, B2.class)\n .field(\"a2.Pa21\", \"Pb21\")\n .field(\"a2.Pa22\", \"Pb22\")\n .byDefault()\n .register();\n \n /*\n * Construct some test object\n */\n A source = new A();\n source.p1 = new Property(\"p1\", \"p1.value\");\n source.p2 = new Property(\"p2\", \"p2.value\");\n source.a1 = new A1();\n source.a1.Pa11 = new Property(\"Pa11\", \"Pa11.value\");\n source.a1.Pa12 = new Property(\"Pa12\", \"Pa12.value\");\n source.a2 = new A2();\n source.a2.Pa21 = new Property(\"Pa21\", \"Pa21.value\");\n source.a2.Pa22 = new Property(\"Pa22\", \"Pa22.value\");\n \n MapperFacade mapper = mapperFactory.getMapperFacade();\n \n Collection<A> collectionA = new ArrayList<>();\n collectionA.add(source);\n\n /*\n * Map the collection of A into a collection of B1 using 'mapAsList'\n */\n Collection<B1> collectionB1 = mapper.mapAsList(collectionA, B1.class);\n \n Assert.assertNotNull(collectionB1);\n B1 b1 = collectionB1.iterator().next();\n Assert.assertEquals(source.p1, b1.p1);\n Assert.assertEquals(source.p2, b1.p2);\n Assert.assertEquals(source.a1.Pa11, b1.Pb11);\n Assert.assertEquals(source.a1.Pa12, b1.Pb12);\n \n /*\n * Map the collection of A into a collection of B2 using 'mapAsList'\n */\n Collection<B2> collectionB2 = mapper.mapAsList(collectionA, B2.class);\n \n B2 b2 = collectionB2.iterator().next();\n Assert.assertNotNull(b2);\n Assert.assertEquals(source.p1, b2.p1);\n Assert.assertEquals(source.p2, b2.p2);\n Assert.assertEquals(source.a2.Pa21, b2.Pb21);\n Assert.assertEquals(source.a2.Pa22, b2.Pb22);\n }",
"public void testSearchAddresses_AssociationException() throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.searchAddresses(AddressFilterFactory.createCreatedByFilter(\"user\"));\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"public interface PromocionQryMapper {\r\n\r\n List<PromocionDetalle> findPromocionDetalleList(PromocionFlt proveedorFlt);\r\n\r\n List<Promocion> findPromocionList(PromocionFlt proveedorFlt);\r\n\r\n void deletePromocion(String coPromocion);\r\n void deletePromocionLocal(String coPromocion);\r\n\r\n List<PromocionLocal> findPromocionDetalleLocalList(PromocionFlt proveedorFlt);\r\n}",
"@Mapper(componentModel = \"spring\", uses = {AdGameMapper.class})\npublic interface AdChoiseMapper extends EntityMapper<AdChoiseDTO, AdChoise> {\n\n @Mapping(source = \"adGame.id\", target = \"adGameId\")\n AdChoiseDTO toDto(AdChoise adChoise); \n\n @Mapping(source = \"adGameId\", target = \"adGame\")\n @Mapping(target = \"corrects\", ignore = true)\n @Mapping(target = \"possiblities\", ignore = true)\n AdChoise toEntity(AdChoiseDTO adChoiseDTO);\n\n default AdChoise fromId(Long id) {\n if (id == null) {\n return null;\n }\n AdChoise adChoise = new AdChoise();\n adChoise.setId(id);\n return adChoise;\n }\n}",
"public void testassociate3() throws Exception {\r\n try {\r\n Address address = new Address();\r\n this.dao.associate(address, 1, true);\r\n fail(\"InvalidPropertyException expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"public abstract boolean hasMapped(Edge queryEdge);",
"public interface DepartmentMapper {\n\n public Department getDeptById(Integer id);\n\n public Department getDeptAndEmpListById(Integer id);\n}",
"@Mapper(componentModel = \"spring\", uses = {TipoDocumentoMapper.class, GeneroMapper.class, AseguradoraMapper.class, GrupoEtnicoMapper.class, RegimenMapper.class, MunicipioMapper.class, TipoResidenciaMapper.class})\npublic interface PacienteMapper extends EntityMapper<PacienteDTO, Paciente> {\n\n @Mapping(source = \"tipoDocumento.id\", target = \"tipoDocumentoId\")\n @Mapping(source = \"tipoDocumento.nombre\", target = \"tipoDocumentoNombre\")\n @Mapping(source = \"genero.id\", target = \"generoId\")\n @Mapping(source = \"genero.nombre\", target = \"generoNombre\")\n @Mapping(source = \"aseguradora.id\", target = \"aseguradoraId\")\n @Mapping(source = \"aseguradora.nombre\", target = \"aseguradoraNombre\")\n @Mapping(source = \"grupoEtnico.id\", target = \"grupoEtnicoId\")\n @Mapping(source = \"grupoEtnico.nombre\", target = \"grupoEtnicoNombre\")\n @Mapping(source = \"regimen.id\", target = \"regimenId\")\n @Mapping(source = \"regimen.nombre\", target = \"regimenNombre\")\n @Mapping(source = \"municipio.id\", target = \"municipioId\")\n @Mapping(source = \"municipio.nombre\", target = \"municipioNombre\")\n @Mapping(source = \"tipoResidencia.id\", target = \"tipoResidenciaId\")\n @Mapping(source = \"tipoResidencia.nombre\", target = \"tipoResidenciaNombre\")\n PacienteDTO toDto(Paciente paciente);\n\n @Mapping(target = \"aplicacions\", ignore = true)\n @Mapping(target = \"acudientes\", ignore = true)\n @Mapping(source = \"tipoDocumentoId\", target = \"tipoDocumento\")\n @Mapping(source = \"generoId\", target = \"genero\")\n @Mapping(source = \"aseguradoraId\", target = \"aseguradora\")\n @Mapping(source = \"grupoEtnicoId\", target = \"grupoEtnico\")\n @Mapping(source = \"regimenId\", target = \"regimen\")\n @Mapping(source = \"municipioId\", target = \"municipio\")\n @Mapping(source = \"tipoResidenciaId\", target = \"tipoResidencia\")\n Paciente toEntity(PacienteDTO pacienteDTO);\n\n default Paciente fromId(Long id) {\n if (id == null) {\n return null;\n }\n Paciente paciente = new Paciente();\n paciente.setId(id);\n return paciente;\n }\n}",
"@Test(dataProvider = \"repositoryFactories\")\r\n\tpublic void testError_missingJoinTable(RepositoryFactory factory)\r\n\t{\r\n\t\t\r\n\t}",
"@Mapper\npublic interface PatientAdministrationMapper {\n\n /**\n * Getting all patients from database.\n *\n * @return all patients from database written to list.\n */\n @Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number, id_firstcontact_doctor, password FROM patients;\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"password\", column = \"password\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n List<Patient> getAllPatientsDataToTable();\n\n\n /**\n * Getting patient by specified id.\n * Patient containing his full address, which is taken by Join using\n * EagerLoading. So his address will be storing just in address field in\n * patient POJO class.\n *\n * @param patientId id of patient, which you want to get from database.\n * @return single patient taken from database.\n */\n @Select(\"SELECT id_patient, first_name, last_name, PESEL, id_address,\" +\n \" email, phone_number,id_firstcontact_doctor FROM patients \" +\n \"WHERE id_patient = #{patientId}\")\n @Results({\n @Result(property = \"id\", column = \"id_patient\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"pesel\", column = \"PESEL\"),\n @Result(property = \"address\", column = \"id_address\",\n javaType = Address.class, one = @One(select = \"selectAddress\",\n fetchType = FetchType.EAGER)),\n @Result(property = \"email\", column = \"email\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"firstContactDoctor\", column = \"id_firstcontact_doctor\",\n javaType = Doctor.class, one = @One(select = \"selectFirstcontactDoctor\",\n fetchType = FetchType.EAGER))\n })\n Patient getPatient(int patientId);\n\n\n /**\n * Inserting specified patient object into database.\n * Before adding patient, you need to add address first, couse of constraints.\n *\n * @param patient patient to insert into database. Id is generated automatically.\n */\n @Insert(\"INSERT into patients(id_patient, first_name, last_name, PESEL, id_address, email, phone_number, \" +\n \"id_firstcontact_doctor, password) VALUES (#{id}, #{firstName}, #{lastName}, #{pesel}, #{address.addressId},\" +\n \"#{email}, #{phoneNumber}, #{firstContactDoctor.id}, #{password})\")\n @Options(useGeneratedKeys = true, keyProperty = \"id\", keyColumn = \"id_patient\")\n void addPatient(Patient patient);\n\n\n /**\n * Inserting specified address object into database.\n *\n * @param address address to insert into database. Id is generated automatically.\n */\n @Insert(\"INSERT into addresses(id_address, city, zip_code, street, number) VALUES (\" +\n \"#{addressId}, #{city}, #{zip}, #{street}, #{number})\")\n @Options(useGeneratedKeys = true, keyProperty = \"addressId\", keyColumn = \"id_address\")\n void addPatientAddressAsChild(Address address);\n\n\n /**\n * Updating patient in database.\n * Object id will be used to take existing doctor from database, and update\n * his values using data from object (all except id).\n *\n * @param patient all fields will be used for update patient, which will have\n * the same id like doctor in parameter.\n */\n @Update(\"UPDATE patients SET first_name=#{firstName}, last_name=#{lastName}, PESEL=#{pesel}, \" +\n \"email=#{email}, phone_number=#{phoneNumber} WHERE id_patient=#{id}\")\n void updatePatient(Patient patient);\n\n\n /**\n * Updating address in database.\n * Object id will be used to get address which you want update, and rest of then\n * for set new values.\n *\n * @param address object containing new data (except id).\n */\n @Update(\"UPDATE addresses SET city=#{city}, zip_code=#{zip}, street=#{street}, number=#{number} \" +\n \"WHERE id_address=#{addressId}\")\n void updatePatientAddress(Address address);\n\n\n /**\n * Updating patient firstcontact doctor using his id.\n *\n * @param patient patient, which firstcontact doctor you want update.\n * @param newDoctorId id of new patient firstcontact doctor.\n */\n @Update(\"UPDATE patients SET id_firstcontact_doctor=#{newDoctorId} WHERE id_patient=#{patient.id}\")\n void updatePatientFirstcontactDoctor(@Param(\"patient\") Patient patient,\n @Param(\"newDoctorId\") int newDoctorId);\n\n /**\n * Deleting patient specified by id\n *\n * @param patientId id of patient to remove.\n */\n @Delete(\"DELETE from patients WHERE id_patient=#{patientId}\")\n void deletePatient(int patientId);\n\n\n //TODO: it's necessary? Address should be dropped cascade. Test it.\n /**\n * Deleting address\n *\n * @param addressId id of address to remove.\n */\n @Delete(\"DELETE from addresses WHERE id_address=#{addressId}\")\n void deleteAddress(int addressId);\n\n\n\n\n\n\n\n\n\n @Select(\"SELECT id_address, city, zip_code, street, number from addresses \" +\n \"where id_address=#{addressId}\")\n @Results(value = {\n @Result(property = \"addressId\", column = \"id_address\"),\n @Result(property = \"city\", column = \"city\"),\n @Result(property = \"zip\", column = \"zip_code\"),\n @Result(property = \"street\", column = \"street\"),\n @Result(property = \"number\", column = \"number\")\n })\n Address selectAddress(int addressId);\n\n @Select(\"Select id_doctor, first_name, last_name, phone_number, id_specialization \" +\n \"from doctors where id_doctor=#{doctorId}\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n Doctor selectFirstcontactDoctor(int doctorId);\n\n @Select(\"SELECT * FROM specializations \" +\n \"WHERE id_specialization=#{specializationId}\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_specialization\"),\n @Result(property = \"name\", column = \"name\")\n })\n Specialization selectFirstcontactDoctorSpecialization(int specializationId);\n\n\n @Select(\"Select id_doctor, first_name, last_name, phone_number, d.id_specialization from doctors d INNER JOIN specializations AS s\\n\" +\n \"WHERE d.id_specialization = s.id_specialization AND s.name=\\\"First contact\\\"\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"phoneNumber\", column = \"phone_number\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n List<Doctor> getAllFirstContactDoctors();\n\n\n @Select(\"select * from singlevisits single JOIN admissiondays a on single.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE single.id_single_visit = #{visitId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\",\n javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER)),\n @Result(property = \"patient\", column = \"id_patient\", javaType = Patient.class,\n one = @One(select = \"getPatient\", fetchType = FetchType.EAGER))\n })\n SingleVisit getVisit(int visitId);\n\n\n @Select(\"select * from singlevisits single JOIN admissiondays a on single.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE single.id_patient = #{patientId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\",\n javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER))\n })\n List<SingleVisit> getVisitsForPatient(int patientId);\n\n\n @Select(\"select id_admission_day, a.date, d.id_doctor,\" +\n \" d.hour_from, d.hour_to, d.hour_interval, d.validate_date \" +\n \"from admissiondays a JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day\" +\n \" where a.id_admission_day=#{admissionDayId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_admission_day\"),\n @Result(property = \"date\", column = \"date\"),\n @Result(property = \"doctor\", column = \"id_doctor\", javaType = Doctor.class,\n one = @One(select = \"selectFirstcontactDoctor\", fetchType = FetchType.EAGER)),\n @Result(property = \"hourFrom\", column = \"hour_from\"),\n @Result(property = \"hourTo\", column = \"hour_to\"),\n @Result(property = \"hourInterval\", column = \"hour_interval\"),\n @Result(property = \"validateDate\", column = \"validate_date\")\n })\n AdmissionDay2 getAdmissionDay(int admissionDayId);\n\n\n @Delete(\"delete from singlevisits where id_single_visit = #{visitId};\")\n void deleteVisit(int visitId);\n\n\n @Delete(\"delete from singlevisits where id_patient = #{patientId}\")\n void deleteAllVisits(int patientId);\n\n @Select(\"select name from specializations\")\n @Results(@Result(property = \"name\", column = \"name\"))\n List<Specialization> getSpecializations();\n\n\n @Select(\"SELECT id_doctor, first_name, last_name, doc.id_specialization from doctors doc \" +\n \"LEFT JOIN specializations spec on doc.id_specialization = spec.id_specialization \" +\n \"WHERE spec.name = #{specializationName};\")\n @Results({\n @Result(property = \"id\", column = \"id_doctor\"),\n @Result(property = \"firstName\", column = \"first_name\"),\n @Result(property = \"lastName\", column = \"last_name\"),\n @Result(property = \"specialization\", column = \"id_specialization\",\n javaType = Specialization.class,\n one = @One(select = \"selectFirstcontactDoctorSpecialization\",\n fetchType = FetchType.EAGER))\n })\n List<Doctor> getDoctorsForVisitSpecialization(@Param(\"specializationName\") String specializationName);\n\n\n\n @Select(\"select id_admission_day, a.date, d.id_doctor,\" +\n \" d.hour_from, d.hour_to, d.hour_interval, d.validate_date \" +\n \"from admissiondays a JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day\" +\n \" where d.id_doctor = #{doctorId};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_admission_day\"),\n @Result(property = \"date\", column = \"date\"),\n @Result(property = \"doctor\", column = \"id_doctor\", javaType = Doctor.class,\n one = @One(select = \"selectFirstcontactDoctor\", fetchType = FetchType.EAGER)),\n @Result(property = \"hourFrom\", column = \"hour_from\"),\n @Result(property = \"hourTo\", column = \"hour_to\"),\n @Result(property = \"hourInterval\", column = \"hour_interval\"),\n @Result(property = \"validateDate\", column = \"validate_date\")\n })\n List<AdmissionDay2> getAdmissionDaysForDoctor(int doctorId);\n\n @Select(\"select s.id_single_visit, s.id_admission_day, visit_hour, id_patient, d.id_doctor from singlevisits s \" +\n \"JOIN admissiondays a on s.id_admission_day = a.id_admission_day \" +\n \"JOIN doctorworkingdays d on a.id_doctor_working_day = d.id_doctor_working_day \" +\n \"WHERE a.date = #{date} AND id_doctor = #{admissionDay.date};\")\n @Results(value = {\n @Result(property = \"id\", column = \"id_single_visit\"),\n @Result(property = \"visitHour\", column = \"visit_hour\"),\n @Result(property = \"patient\", column = \"id_patient\", javaType = Patient.class,\n one = @One(select = \"getPatient_OnlyId\", fetchType = FetchType.EAGER)),\n @Result(property = \"admissionDay2\", column = \"id_admission_day\", javaType = AdmissionDay2.class,\n one = @One(select = \"getAdmissionDay\", fetchType = FetchType.EAGER)),\n })\n List<SingleVisit> getSingleVisitsFreeFromAdmissionDay(@Param(\"admissionDay\") AdmissionDay2 admissionDay,\n @Param(\"doctorId\") int doctorId);\n\n @Update(\"update singlevisits set visit_hour = #{visitHour}, id_admission_day=#{admissionDayId} \" +\n \"Where id_single_visit = #{singleVisitId};\")\n void updateVisitDateAndHour(@Param(\"singleVisitId\") int singleVisitId,\n @Param(\"visitHour\")LocalTime visitHour,\n @Param(\"admissionDayId\") int admissionDayId);\n\n}",
"public void testRetrieveAddresses_AssociationException() throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.retrieveAddresses(new long[]{address.getId()});\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"public void testassociate6() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setModificationUser(null);\r\n this.dao.associate(address, 1, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"RelatedPerson<Person, Person> relatePerson(String person1, String person2, String relation);",
"@Mapper(componentModel = \"spring\", uses = {UtilisateurMapper.class, DepotMapper.class})\npublic interface UtilisateurDepotPKMapper extends EntityMapper<UtilisateurDepotPKDTO, UtilisateurDepotPK> {\n\n @Mapping(source = \"utilisateur.id\", target = \"utilisateurId\")\n @Mapping(source = \"depot.id\", target = \"depotId\")\n UtilisateurDepotPKDTO toDto(UtilisateurDepotPK utilisateurDepotPK);\n\n @Mapping(source = \"utilisateurId\", target = \"utilisateur\")\n @Mapping(source = \"depotId\", target = \"depot\")\n UtilisateurDepotPK toEntity(UtilisateurDepotPKDTO utilisateurDepotPKDTO);\n\n default UtilisateurDepotPK fromId(Long id) {\n if (id == null) {\n return null;\n }\n UtilisateurDepotPK utilisateurDepotPK = new UtilisateurDepotPK();\n utilisateurDepotPK.setId(id);\n return utilisateurDepotPK;\n }\n}",
"boolean isOneToMany();",
"@Test\n\tpublic void testSimple() throws MappableException, UserException {\n\t}",
"public static ArrayList<Person> mapRelations(Person target,String relation){\n ArrayList<Person> result = new ArrayList<Person>();\n switch(relation){\n case Relationship.MOTHER:\n Person mum = target.getMother();\n result.add(mum);\n break;\n\n case Relationship.FATHER:\n Person father = target.getFather();\n result.add(father);\n break;\n\n case Relationship.SON: \n result = target.getSon(); \n break;\n\n case Relationship.DAUGHTER:\n result = target.getDaughter();\n break; \n \n case Relationship.CHILDREN:\n result = target.getChildren();\n break;\n \n case Relationship.COUSINS:\n result = NoneDirectRelationHandler.getCousin(target);\n break;\n\n case Relationship.BROTHER:\n result = NoneDirectRelationHandler.getBrother(target);\n break;\n \n case Relationship.SISTER:\n result = NoneDirectRelationHandler.getSister(target);\n break;\n\n case Relationship.PATERNAL_UNCLE:\n result = NoneDirectRelationHandler.getPaternalUncle(target);\n break;\n\n case Relationship.PATERNAL_AUNT:\n result = NoneDirectRelationHandler.getPaternalAunt(target);\n break;\n\n case Relationship.MATERNAL_UNCLE:\n result = NoneDirectRelationHandler.getMaternalUncle(target);\n break;\n\n case Relationship.MATERNAL_AUNT:\n result = NoneDirectRelationHandler.getMaternalAunt(target);\n break;\n \n case Relationship.SISTER_IN_LAW:\n result = NoneDirectRelationHandler.getSisterInLaw(target);\n break;\n\n case Relationship.BROTHER_IN_LAW:\n result = NoneDirectRelationHandler.getBrotherInLaw(target);\n break;\n\n case Relationship.GRAND_DAUGHTER:\n result = NoneDirectRelationHandler.getGrandDaughter(target);\n break;\n\n case Relationship.GRAND_SON:\n result = NoneDirectRelationHandler.getGrandSon(target);\n break;\n\n default:\n //TBD: throw error: no relations match \n break;\n\n }\n return result;\n }",
"@Service(\"activityConditionRelationMapper\")\npublic interface ActivityConditionRelationMapper extends BaseMapper<ActivityConditionRelation, ActivityConditionRelationCondition> {\n\tpublic ActivityConditionRelation getInfoByConditionid(@Param(\"id\")int id);\n\n\tpublic int deleteInfoByCondId(@Param(\"id\")int id);\n}",
"@Override\n @Test\n public void testQuery_advancedRankingWithJoin() throws Exception { }",
"public interface NotMappedCause extends Cause {\n}",
"@Test\n public void testValidateShouldNotThrowExceptionWhenNeitherOfTheValidatorsThrowException() throws MapValidationException {\n underTest.validate(MAP_VO);\n\n // then\n verify(validator1).validate(MAP_VO);\n verify(validator2).validate(MAP_VO);\n }",
"@Repository\npublic interface AreaRelationMapper {\n\n /**\n * 查询--达成率权重\n * @return\n */\n Page<AreaRelation> queryAreaRelations(Map params);\n /**\n * 更新--公司大区关系\n * @param areaRelation\n * @return\n */\n int updateAreaRelation(AreaRelation areaRelation);\n /**\n * 新增--公司大区关系\n * @param areaRelation\n * @return\n */\n int insertAreaRelation(AreaRelation areaRelation);\n /**\n * 查询不重复的消金大区\n * @return\n */\n List<Map> queryDistinctAreaRelations();\n\n}",
"@Mapper\npublic interface NationReferenceMapper {\n\n @Insert(\"insert into t_timezerg_nation_reference values (#{id},#{nid},#{rid})\")\n int add(NationReference nationReference);\n\n @Select(\"select * from t_timezerg_nation_reference where nid = #{nid} and rid = #{rid}\")\n NationReference selectByNidAndRid(NationReference nationReference);\n\n @Select(\"select * from t_timezerg_nation_reference where id = #{id}\")\n NationReference selectById(String id);\n\n @Delete(\"delete from t_timezerg_nation_reference where rid = #{rid}\")\n void deleteByRid(String rid);\n\n @Delete(\"delete from t_timezerg_nation_reference where nid = #{nid}\")\n void deleteByNid(String nid);\n\n @Delete(\"delete from t_timezerg_nation_reference where id = #{id}\")\n void deleteById(String id);\n\n @Select(\"SELECT nr.*,n.title FROM t_timezerg_nation_reference nr LEFT JOIN t_timezerg_nation n ON nr.nid = n.id WHERE nr.rid = #{rid}\")\n List<HashMap> selectByRid(String rid);\n\n @Select(\"SELECT nr.*,r.title FROM t_timezerg_nation_reference nr LEFT JOIN t_timezerg_reference r ON nr.rid = r.id WHERE nr.nid = #{nid}\")\n List<HashMap> selectByNid(String nid);\n\n}",
"@Test\n\tpublic void oneToManyNoBind() {\n\t\tSystem.out.println(\"============oneToManyNoBind1=========\");\n\t\tUser u = new User();\n\t\tEmail e = new Email();\n\t\tList<User> users = Dao.queryForEntityList(User.class, select(), u.all(), \",\", e.all(), from(), u.table(), \",\",\n\t\t\t\te.table(), \" where \", oneToMany(), u.ID(), \"=\", e.UID(), bind());\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tSet<Email> emails = user.getChildNodeSet(Email.class);\n\t\t\tfor (Email email : emails) {\n\t\t\t\tSystem.out.println(\"\\t\" + email.getEmailName());\n\t\t\t\tAssert.assertTrue(user == email.getParentNode(User.class));\n\t\t\t}\n\t\t}\n\t}",
"private void readEntityRelationships() {\n List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck = new ArrayList<>();\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n checkMappedBy(info, primaryKeyJoinCheck);\n }\n for (DeployBeanPropertyAssocOne<?> prop : primaryKeyJoinCheck) {\n checkUniDirectionalPrimaryKeyJoin(prop);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n secondaryPropsJoins(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n setInheritanceInfo(info);\n }\n for (DeployBeanInfo<?> info : deployInfoMap.values()) {\n if (!info.isEmbedded()) {\n registerDescriptor(info);\n }\n }\n }",
"@Test\n\tpublic void testAddLinkInvalidSameLinkTwiceArrayList() {\n\t\tAddress adr = new Address();\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tTypePropertyCollection proptype = (TypePropertyCollection) adr.getProperty(\"inhabitants\").getType();\n\t\tClass<?> colClassBefore = proptype.getCollectionClass();\n\t\ttry {\n\t\t\tproptype.setCollectionClass(ArrayList.class);\n\t\t\tAssert.assertSame(ArrayList.class, proptype.getCollectionClass());\n\t\t\tAssert.assertNull(adr.getInhabitants());\n\t\t\tAssert.assertNull(martin.getAddress());\n\n\t\t\t// add the same Person to the Address as inhabitant twice\n\t\t\tadr.addInhabitant(martin);\n\t\t\ttry {\n\t\t\t\t// should Assert.fail because of the association end with\n\t\t\t\t// multiplicity\n\t\t\t\t// 1\n\t\t\t\tadr.addInhabitant(martin);\n\t\t\t\tAssert.fail(\"expected ValidationException exception\");\n\t\t\t} catch (ValidationException e) {\n\t\t\t\tAssert.assertTrue(true);\n\t\t\t}\n\t\t} finally {\n\t\t\tproptype.setCollectionClass(colClassBefore);\n\t\t}\n\t}",
"@Mapper(componentModel = \"spring\")\npublic interface DataDictItemMapping {\n DataDictItemVo asDataDictItemVo(DataDictItem entity);\n\n DataDictItemOrdinaryVo asOrdinary(DataDictItem entity);\n\n @Mapping(target = \"priority\", ignore = true)\n @Mapping(target = \"lastUpdater\", ignore = true)\n @Mapping(target = \"lastUpdatedAt\", ignore = true)\n @Mapping(target = \"id\", ignore = true)\n @Mapping(target = \"dictId\", ignore = true)\n @Mapping(target = \"creator\", ignore = true)\n @Mapping(target = \"createdAt\", ignore = true)\n DataDictItem asDataDictItem(DataDictItemInsertRo ro);\n\n DataDictItemComplexVo asComplex(DataDictItem entity);\n\n DataDictItem asDataDictItem(DataDictItemUpdateRo ro);\n}",
"private void createNonRelationalMapping(PropertyDescriptor property)\n throws Exception {\n ClassDescriptor declaringClassDescriptor = property.parent();\n JavaModel javaModel = du.getJavaModel();\n Object propertyType = getJavaType(property);\n if (javaModel.isBasic(propertyType)) {\n BasicDescriptor basic = of.createBasicDescriptor();\n basic.setFetch(FetchType.EAGER);\n property.setMapping(basic);\n return;\n } else if (declaringClassDescriptor.isEmbeddable()) {\n property.setEmbedded(of.createEmbeddedDescriptor());\n return;\n } else if (javaModel.isAssignable(\n javaModel.getJavaType(Clob.class.getName()), propertyType)) {\n LobDescriptor lob = of.createLobDescriptor();\n lob.setType(LobType.CLOB);\n lob.setFetch(FetchType.LAZY);\n property.setMapping(lob);\n } else if (javaModel.isAssignable(\n javaModel.getJavaType(Blob.class.getName()), propertyType)) {\n LobDescriptor lob = of.createLobDescriptor();\n lob.setType(LobType.BLOB);\n lob.setFetch(FetchType.LAZY);\n property.setMapping(lob);\n } else if (javaModel.isAssignable(\n javaModel.getJavaType(Serializable.class.getName()),\n propertyType)) {\n SerializedDescriptor serialized = of.createSerializedDescriptor();\n serialized.setFetch(FetchType.EAGER);\n property.setMapping(serialized);\n } else {\n // Should this be caught by verifier in an earlier step?\n throw new DeploymentException(\n i18NHelper.msg(\"EXC_NotAbleToDefaultMappingForProperty\", // NOI18N\n property.getName(),\n declaringClassDescriptor.getName()));\n }\n }",
"@Test\n public void testDAM32102001() {\n // By default the loading related entity is eager.\n testDAM32101001();\n }",
"private boolean isRelationship(Predicate p) throws MediatorException {\n\t// check if properties represented by the column names exist\n\tif (p.getName().startsWith(\"XW_\"))\n\t return true;\n\treturn false;\n\n }",
"@Test\n\tpublic void manyToManyTest() {\n\t\tSystem.out.println(\"============manyToManyTest=========\");\n\t\tUser u = new User();\n\t\tRole r = new Role();\n\t\tPrivilege p = new Privilege();\n\t\tUserRole ur = new UserRole();\n\t\tRolePrivilege rp = new RolePrivilege();\n\t\tDao.getDefaultContext().setShowSql(true);\n\t\tList<User> users = Dao.queryForEntityList(User.class,\n\t\t\t\tu.pagination(1, 10, //\n\t\t\t\t\t\tselect(), u.all(), \",\", ur.all(), \",\", r.all(), \",\", rp.all(), \",\", p.all(), from(), u.table(), //\n\t\t\t\t\t\t\" left join \", ur.table(), \" on \", oneToMany(), u.ID(), \"=\", ur.UID(), bind(), //\n\t\t\t\t\t\t\" left join \", r.table(), \" on \", oneToMany(), r.ID(), \"=\", ur.RID(), bind(), //\n\t\t\t\t\t\t\" left join \", rp.table(), \" on \", oneToMany(), r.ID(), \"=\", rp.RID(), bind(), //\n\t\t\t\t\t\t\" left join \", p.table(), \" on \", oneToMany(), p.ID(), \"=\", rp.PID(), bind(), //\n\t\t\t\t\t\t\" order by \", u.ID(), \",\", r.ID(), \",\", p.ID()));\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tSet<Role> roles = user.getUniqueNodeSet(Role.class);\n\t\t\tfor (Role role : roles)\n\t\t\t\tSystem.out.println(\"\\t\" + role.getRoleName());\n\t\t\tSet<Privilege> privs = user.getUniqueNodeSet(Privilege.class);\n\t\t\tfor (Privilege priv : privs)\n\t\t\t\tSystem.out.println(\"\\t\" + priv.getPrivilegeName());\n\t\t}\n\t}",
"@Test\n public void testGroupedItemsAreStillGroupedWhenBatchSplitResults() {\n IdentityFieldProvider<HasId> hasIdIdentifierProvider =\n new IdentityFieldProvider<HasId>() {\n @Override\n protected Object getIdentifier(HasId resultProxy) {\n return resultProxy.getId();\n }\n };\n TestDataCreator creator = new TestDataCreator(getSessionFactory());\n Town town = creator.createTestTown();\n Person johny = creator.createTestPerson(town, \"Johny\");\n Person angie = creator.createTestPerson(town, \"Angie\");\n Person josh = creator.createTestPerson(town, \"Josh\");\n Person alberta = creator.createTestPerson(town, \"Alberta\");\n\n Person becky = creator.createTestPerson(town, \"Becky\");\n Person fred = creator.createTestPerson(town, \"Fred\");\n Set<String> childNames = new HashSet<>();\n childNames.add(becky.getName());\n childNames.add(fred.getName());\n\n // johny has 2 kids, angie and alberta have 1, josh has none\n creator.addChildRelation(johny, becky);\n creator.addChildRelation(angie, becky);\n creator.addChildRelation(johny, fred);\n creator.addChildRelation(alberta, fred);\n\n Town townProxy = query.from(Town.class);\n Person inhabitant = query.join(townProxy.getInhabitants());\n Relation child = query.join(inhabitant.getChildRelations(), JoinType.Left);\n\n query.where(child.getChild().getId()).isNull().or(child.getChild().getName()).in(childNames, 1);\n\n TownDto selectTown = query.select(TownDto.class, hasIdIdentifierProvider);\n PersonDto selectParent = query.select(selectTown.getInhabitants(),\n PersonDto.class, hasIdIdentifierProvider);\n PersonDto selectChild = query.select(selectParent.getChildren(),\n PersonDto.class, hasIdIdentifierProvider);\n\n selectTown.setId(townProxy.getId());\n selectParent.setId(inhabitant.getId());\n selectParent.setThePersonsName(inhabitant.getName());\n selectChild.setId(child.getChild().getId());\n selectChild.setThePersonsName(child.getChild().getName());\n\n validate(\"select hobj1.id as id, hobj2.id as g1__id, hobj2.name as g1__thePersonsName, \"\n + \"hobj4.id as g2__id, hobj4.name as g2__thePersonsName \"\n + \"from Town hobj1 \"\n + \"join hobj1.inhabitants hobj2 \"\n + \"left join hobj2.childRelations hobj3 \"\n + \"left join hobj3.child hobj4 \"\n + \"where hobj4.id is null or hobj4.name in (:np1)\", childNames);\n\n @SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n List<TownDto> results = (List) doQueryResult;\n assertEquals(1, results.size());\n TownDto townResult = results.get(0);\n assertEquals(6, townResult.getInhabitants().size());\n\n Map<Long, Set<Long>> resultIds = new HashMap<>();\n for(PersonDto dto: townResult.getInhabitants()) {\n Set<Long> childIds = new HashSet<>();\n if (dto.getChildren() != null) {\n for(PersonDto dtoChild: dto.getChildren()) {\n childIds.add(dtoChild.getId());\n }\n }\n resultIds.put(dto.getId(), childIds);\n }\n assertEquals(toIds(becky, fred), resultIds.get(johny.getId()));\n assertEquals(toIds(becky), resultIds.get(angie.getId()));\n assertEquals(emptySet(), resultIds.get(josh.getId()));\n assertEquals(toIds(fred), resultIds.get(alberta.getId()));\n assertEquals(emptySet(), resultIds.get(becky.getId()));\n assertEquals(emptySet(), resultIds.get(fred.getId()));\n }",
"public interface USLActionBanHistoryMapping extends ObjectMapping<USLActionBanHistory> {\n\t/**\n\t * Fetch all of the maps where it has the given usl action id.\n\t * \n\t * @param uslActionId the id of the USLAction\n\t * @return the mapping to the bans for that action\n\t */\n\tpublic List<USLActionBanHistory> fetchByUSLActionID(int uslActionId);\n\t\n\t/**\n\t * Fetch all of the maps where we have the given ban history.\n\t * \n\t * @param banHistoryId the id of the ban history\n\t * @return the mapping to the actions for that ban history\n\t */\n\tpublic List<USLActionBanHistory> fetchByBanHistoryID(int banHistoryId);\n\t\n\t/**\n\t * Determines if this mapping contains the given relationship\n\t * \n\t * @param uslActionId the action\n\t * @param banHistoryId the ban history\n\t * @return if that relationship is in the database\n\t */\n\tpublic boolean contains(int uslActionId, int banHistoryId);\n\t\n\t/**\n\t * Delete the row with the specified columns\n\t * @param uslActionId the id of the action\n\t * @param banHistoryId the id of the ban history\n\t */\n\tpublic void delete(int uslActionId, int banHistoryId);\n\t\n}",
"@Mapper\npublic interface ProductPropertyValueMapper extends MyMapper<ProductPropertyValueRelations> {\n}",
"public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }",
"public void testassociate5() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationUser(null);\r\n this.dao.associate(address, 1, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }",
"@Mapper\npublic interface QuestionMapper {\n\n @Transactional\n @Select(\"select * from questions where categoryid in (select categoryid from category_language where language = #{language})\")\n @Results({\n @Result(property = \"questionId\",column = \"questionid\"),\n @Result(property = \"questionLove\",column = \"questionLove\"),\n @Result(property = \"questionContent\",column = \"questioncontent\"),\n @Result(property = \"categoryLanguage\",column = \"categoryid\",\n one=@One(select=\"com.caixueyuan.mapper.CategoryMapper.getCategoryByIdTrue\",fetchType= FetchType.EAGER)),\n @Result(property = \"userEntity\",column = \"userid\",\n one=@One(select=\"com.caixueyuan.mapper.UserMapper.getOneByIdWithOutPassword\",fetchType = FetchType.EAGER)),\n @Result(property = \"answerEntityList\",column=\"questionid\",javaType = List.class,\n many = @Many(select = \"com.caixueyuan.mapper.AnswerMapper.getAnswersByQuestionIdWithOneAnswer\"))\n\n })\n List<QuestionEntity> getQuestionsByLanguage(String language);\n\n @Transactional\n @Select(\"select * from questions where questionid = #{questionId}\")\n @Results({\n @Result(property = \"questionId\",column = \"questionid\"),\n @Result(property = \"questionLove\",column = \"questionLove\"),\n @Result(property = \"questionContent\",column = \"questioncontent\"),\n @Result(property = \"categoryLanguage\",column = \"categoryid\",\n one=@One(select=\"com.caixueyuan.mapper.CategoryMapper.getCategoryByIdTrue\",fetchType= FetchType.EAGER)),\n @Result(property = \"userEntity\",column = \"userid\",\n one=@One(select=\"com.caixueyuan.mapper.UserMapper.getOneByIdWithOutPassword\",fetchType = FetchType.EAGER)),\n @Result(property = \"answerEntityList\",column=\"questionid\",javaType = List.class,\n many = @Many(select = \"com.caixueyuan.mapper.AnswerMapper.getAnswersByQuestionIdWithQuestions\"))\n })\n QuestionEntity getQuestionsById(Integer questionId);\n\n @Transactional\n @Insert(\"insert into questions(categoryid,questiontitle,userid)\" +\n \"values\" +\n \"(#{categoryLanguage.categoryid},#{questionTitle},#{userEntity.id})\")\n void insertQuestion(QuestionEntity questionEntity);\n\n}",
"public void testassociate7() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationDate(new Date());\r\n address.setModificationDate(new Date());\r\n address.setCreationDate(null);\r\n this.dao.associate(address, 1, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"@Test\n void _correctThenCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableDependentReceiver(), \"!=\", assingablePair.getIndexdependentAssignable());\n }\n }\n }",
"@Override\r\n\tpublic boolean needDealMapper() {\n\t\treturn false;\r\n\t}",
"public interface HasRelation {\r\n\r\n\tpublic boolean addRelation(Relation relation);\r\n\tpublic boolean removeRelation(Relation relation);\r\n\tpublic List<Relation> getRelations();\r\n}",
"@Test(expected=IllegalArgumentException.class)\n public void testNamedValueNotDuplicateValidation() {\n Person personProxy = query.from(Person.class);\n query.where(personProxy.getId()).eq().named(NAMED_PARAM_1);\n query.where(personProxy.getName()).eq().named(NAMED_PARAM_1);\n }",
"public void testassociate1() throws Exception {\r\n try {\r\n this.dao.associate(null, 1, true);\r\n fail(\"IllegalArgumentException expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }",
"@Test\n public void testAdviceMap() {\n Demo demo = DemoData.random();\n Demo demo2 = BeanUtil.adviceMap(demo, Demo.class);\n }",
"public void testassociate_AssociationException2()\r\n throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.associate(address, 3, false);\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"@Test\n @Transactional\n public void ManyToManyQuery() {\n SysRole role = roleDao.findOne(4l);\n role.getUsers().forEach(u-> System.out.println(u));\n }",
"public void testRetrieveAddress_AssociationException() throws Exception {\r\n Address address = this.getAddress();\r\n this.dao.addAddress(address, false);\r\n this.dao.associate(address, 1, false);\r\n this.executeUpdate(\"insert into address_relation (creation_user,modification_user,\"\r\n + \"creation_date,modification_date,address_id,address_type_id,entity_id) values ('u','u',current,current,\"\r\n + address.getId() + \",1,2) \");\r\n try {\r\n this.dao.retrieveAddress(address.getId());\r\n fail(\"AssociationException expected\");\r\n } catch (AssociationException e) {\r\n //good\r\n this.executeUpdate(\"delete from address_relation\");\r\n this.executeUpdate(\"delete from address\");\r\n }\r\n }",
"@Mapper(componentModel = \"spring\", uses = {TravauxMapper.class, ChantierMapper.class, EmployeMapper.class})\npublic interface AffectationMapper extends EntityMapper<AffectationDTO, Affectation> {\n\n @Mapping(source = \"travaux.id\", target = \"travauxId\")\n @Mapping(source = \"travaux.nomTrav\", target = \"travauxNomTrav\")\n @Mapping(source = \"chantier.id\", target = \"chantierId\")\n @Mapping(source = \"chantier.nomChantier\", target = \"chantierNomChantier\")\n AffectationDTO toDto(Affectation affectation);\n\n @Mapping(source = \"travauxId\", target = \"travaux\")\n @Mapping(source = \"chantierId\", target = \"chantier\")\n Affectation toEntity(AffectationDTO affectationDTO);\n\n default Affectation fromId(Long id) {\n if (id == null) {\n return null;\n }\n Affectation affectation = new Affectation();\n affectation.setId(id);\n return affectation;\n }\n}",
"@Mapper\npublic interface PersonMapper {\n\n PersonDO selectPersonById(Integer id);\n\n List<PersonDO> selectAll();\n\n void insert(PersonDO personDO);\n\n Long update(PersonDO personDO);\n\n Long delete(Integer id);\n}",
"public interface RolePermsMapper {\n\n //根据角色查询权限\n Set<Permission> getPermsByRoleId(Integer roleId);\n}",
"@Test\n\tpublic void testAddLinkInvalidSameLinkTwiceHashSet() {\n\t\tAddress adr = new Address();\n\t\tTypePropertyCollection proptype = (TypePropertyCollection) adr.getProperty(\"inhabitants\").getType();\n\t\tAssert.assertSame(LinkedHashSet.class, proptype.getCollectionClass());\n\t\tPerson martin = new Person(\"\\\"Martin\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tAssert.assertNull(adr.getInhabitants());\n\t\tAssert.assertNull(martin.getAddress());\n\n\t\t// add the same Person to the Address as inhabitant twice\n\t\tadr.addInhabitant(martin);\n\t\ttry {\n\t\t\tadr.addInhabitant(martin);\n\t\t\tAssert.fail(\"expected exception\");\n\t\t} catch (ValidationInstanceAssocTwiceException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}",
"@Test\n public void idMappingTest() {\n // TODO: test idMapping\n }",
"public interface EntityMapper<T, F> {\n\n\t/**\n\t * Name of database table/collection that contains entities.\n\t * @return\n\t */\n\tString getDataSet();\n\n\t/**\n\t * Creates new instance of entity.\n\t * @return\n */\n\tT createEntity();\n\n\t/**\n\t * Returns definition of entity attributes.\n\t * @return\n\t */\n\tList<Attribute<T, ?>> getAttributes();\n\n\t/**\n\t * <p>Compose conditions from given filter.\n\t * <p>NOTE: This method is part of entity mapper because of filtering is tightly bound with available entity attributes\n\t * and filter composition with attributes composition.\n\t * @param filter\n\t * @return\n\t */\n\tList<Condition> composeFilterConditions(F filter);\n\n\t/**\n\t * Composes filter conditions to match primary key attributes.\n\t * @param id\n\t * @return\n\t */\n\tdefault <K> List<Condition> composeFilterConditionsForPrimaryKey(K id) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tList<Attribute<T, ?>> pkAttributes = getPrimaryAttributes();\n\t\tif (pkAttributes.size() == 1) {\n\t\t\tconditions.add(Condition.eq(pkAttributes.get(0), id));\n\t\t} else {\n\t\t\t// composed primary key\n\t\t\tconditions.addAll(composeFilterConditionsForCompositePrimaryKey(id));\n\t\t}\n\t\treturn conditions;\n\t}\n\n\t/**\n\t * Composes filter conditions to match primary key attributes.\n\t * @param entity\n\t * @return\n\t */\n\tdefault <K> List<Condition> composeFilterConditionsForPrimaryKeyOfEntity(T entity) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tfor (Attribute<T, ?> attr : getPrimaryAttributes()) {\n\t\t\tconditions.add(Condition.eq(attr, attr.getValue(entity)));\n\t\t}\n\t\treturn conditions;\n\t}\n\n\t/**\n\t * Composes filter conditions to match primary key attributes.\n\t * @param key\n\t * @return\n\t */\n\tdefault <K> List<Condition> composeFilterConditionsForCompositePrimaryKey(K key) {\n\t\tList<Condition> conditions = new ArrayList<>();\n\t\tList<Pair<Attribute<T, ?>, Object>> attributesToValues = decomposePrimaryKey(key);\n\t\tif (attributesToValues != null) {\n\t\t\tfor (Pair<Attribute<T, ?>, Object> p : attributesToValues) {\n\t\t\t\tAttribute<T, ?> attr = p.getFirst();\n\t\t\t\tObject value = p.getSecond();\n\t\t\t\tconditions.add(Condition.eq(attr, value));\n\t\t\t}\n\t\t}\n\t\treturn conditions;\n\t}\n\n\tdefault <K> List<Pair<Attribute<T, ?>, Object>> decomposePrimaryKey(K key) {\n\t\tList<Pair<Attribute<T, ?>, Object>> attributesToValues = new ArrayList<>();\n\t\tList<Attribute<T, ?>> pkAttributes = getPrimaryAttributes();\n\t\tif (pkAttributes.size() == 1) {\n\t\t\tattributesToValues.add(new Pair<>(pkAttributes.get(0), key));\n\t\t} else {\n\t\t\t// composed primary key\n\t\t\tthrow new UnsupportedOperationException(\"Decomposition of composite key to pairs: attribute to value is not implemented. Key: \" + key);\n\t\t}\n\t\treturn attributesToValues;\n\t}\n\t\n\t/**\n\t * Returns string that can be used to prefix all database attribute names for mapped entity to gain unique aliases.\n\t * @return\n\t */\n\tdefault String getAliasPrefix() {\n\t\treturn getDataSet() + \"_\";\n\t}\n\n\tdefault List<Attribute<T, ?>> getPrimaryAttributes() {\n\t\tList<Attribute<T, ?>> primAttrs = new ArrayList<>();\n\t\tList<Attribute<T, ?>> attributes = getAttributes();\n\t\tif (attributes != null) {\n\t\t\tfor (Attribute<T, ?> attr : attributes) {\n\t\t\t\tif (attr.isPrimary()) {\n\t\t\t\t\tprimAttrs.add(attr);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn primAttrs;\n\t}\n\t\n\t/**\n\t * Returns names of database attributes that represent primary key.\n\t * @return\n\t */\n\tdefault List<String> getPrimaryAttributeNames() {\n\t\treturn getPrimaryAttributes().stream().map(attr -> attr.getName()).collect(Collectors.toList());\n\t}\n\n\t/**\n\t * Extracts values of primary key attributes.\n\t * @param entity\n\t * @return\n\t */\n\tdefault List<Object> getPrimaryAttributeValues(T entity) {\n\t\treturn getPrimaryAttributes().stream().map(attr -> attr.getValue(entity)).collect(Collectors.toList());\n\t}\n\t\n\t/**\n\t * Returns names of database attributes.\n\t * @return\n\t */\n\tdefault List<String> getAttributeNames() {\n\t\treturn getAttributes().stream().map(v -> v.getName()).collect(Collectors.toList());\n\t}\n\t\n\t/**\n\t * Extracts values for database attributes from given entity instance.\n\t * @param instance\n\t * @return\n\t */\n\tdefault List<Object> getAttributeValues(T instance) {\n\t\tList<Object> attrValues = new ArrayList<>();\n\t\tfor (Attribute<T, ?> fld : getAttributes()) {\n\t\t\tattrValues.add(fld.getValue(instance));\n\t\t}\n\t\treturn attrValues;\n\t}\n\n\t/**\n\t * Returns full attribute names with aliases that can be used to extract attribute values from {@link AttributeSource}.\n\t * @return\n */\n\tdefault List<String> getAttributeNamesFullAliased() {\n\t\tString aliasPrefix = getAliasPrefix();\n\t\treturn getAttributes().stream()\n\t\t\t.map(v -> (v.getNameFull() + (aliasPrefix != null ? (\" AS \" + aliasPrefix + v.getName()) : \"\")))\n\t\t\t.collect(Collectors.toList());\n\t}\n\t\n\t/**\n\t * Builds new data entity from attribute source.\n\t * @param attributeSource\n\t * @param aliasPrefix alias prefix for all database fields \n\t * @return\n\t */\n\tdefault T buildEntity(AttributeSource attributeSource, String aliasPrefix) {\n\t\tT instance = createEntity();\n\t\tfor (Attribute<T, ?> attr : getAttributes()) {\n\t\t\tString alias = null;\n\t\t\tif (aliasPrefix != null) {\n\t\t\t\talias = aliasPrefix + attr.getName();\n\t\t\t}\n\t\t\tinstance = attr.entityWithAttribute(instance, attributeSource, attr.getName(alias));\n\t\t}\n\t\tboolean primaryKeyFilled = getPrimaryAttributeValues(instance).stream().anyMatch(v -> v != null);\n\t\treturn primaryKeyFilled ? instance : null;\n\t}\n\t\n\t/**\n\t * Builds new data entity from attribute source.\n\t * @param attributeSource\n\t * @return\n\t */\n\tdefault T buildEntity(AttributeSource attributeSource) {\n\t\treturn buildEntity(attributeSource, null);\n\t}\n\n\t/**\n\t * Creates entity mapper for joined entities.\n\t * @param secondMapper mapper of second entity to join with\n\t * @param onConditions condition(s) for joining the tables\n\t * @param composeEntity function combining joined entities together to resulting entity\n\t * @param decomposeFilter function returning partial filters for first and second joined entity\n\t * @param joinType type of join operation\n\t * @param <U> type of second entity to join with\n\t * @param <G> type of second entity filter\n\t * @param <V> type of resulting entity representing joined records, this can be also the same type as T or U\n\t * @param <H> type of resulting entity filter\n\t * @return mapper for joined entities\n\t */\n\tdefault <U, G, V, H> EntityMapper<V, H> join(EntityMapper<U, G> secondMapper, List<Condition> onConditions, BiFunction<T, U, V> composeEntity, Function<H, Pair<F, G>> decomposeFilter, JoinType joinType) {\n\t\treturn new JoinEntityMapper(this, secondMapper, onConditions, composeEntity, decomposeFilter, joinType);\n\t}\n\n\tdefault <U, G, V, H> EntityMapper<V, H> join(EntityMapper<U, G> secondMapper, List<Condition> onConditions, BiFunction<T, U, V> composeEntity, Function<H, Pair<F, G>> decomposeFilter) {\n\t\treturn join(secondMapper, onConditions, composeEntity, decomposeFilter, JoinType.INNER);\n\t}\n\n\tdefault <U, G, V, H> EntityMapper<V, H> join(EntityMapper<U, G> secondMapper, Condition onCondition, BiFunction<T, U, V> composeEntity, Function<H, Pair<F, G>> decomposeFilter) {\n\t\tList<Condition> onConditions = new ArrayList<>();\n\t\tonConditions.add(onCondition);\n\t\treturn join(secondMapper, onConditions, composeEntity, decomposeFilter);\n\t}\n\n\tdefault <U, G, V, H> EntityMapper<V, H> leftJoin(EntityMapper<U, G> secondMapper, List<Condition> onConditions, BiFunction<T, U, V> composeEntity, Function<H, Pair<F, G>> decomposeFilter) {\n\t\treturn join(secondMapper, onConditions, composeEntity, decomposeFilter, JoinType.LEFT);\n\t}\n\n\tdefault <U, G, V, H> EntityMapper<V, H> leftJoin(EntityMapper<U, G> secondMapper, Condition onCondition, BiFunction<T, U, V> composeEntity, Function<H, Pair<F, G>> decomposeFilter) {\n\t\tList<Condition> onConditions = new ArrayList<>();\n\t\tonConditions.add(onCondition);\n\t\treturn leftJoin(secondMapper, onConditions, composeEntity, decomposeFilter);\n\t}\n\n\tdefault <U, G, V, H> EntityMapper<V, H> rightJoin(EntityMapper<U, G> secondMapper, List<Condition> onConditions, BiFunction<T, U, V> composeEntity, Function<H, Pair<F, G>> decomposeFilter) {\n\t\treturn join(secondMapper, onConditions, composeEntity, decomposeFilter, JoinType.RIGHT);\n\t}\n\n\tdefault <U, G, V, H> EntityMapper<V, H> rightJoin(EntityMapper<U, G> secondMapper, Condition onCondition, BiFunction<T, U, V> composeEntity, Function<H, Pair<F, G>> decomposeFilter) {\n\t\tList<Condition> onConditions = new ArrayList<>();\n\t\tonConditions.add(onCondition);\n\t\treturn rightJoin(secondMapper, onConditions, composeEntity, decomposeFilter);\n\t}\n}",
"public void testassociate8() throws Exception {\r\n try {\r\n Address address = this.getAddress();\r\n address.setCreationDate(new Date());\r\n address.setModificationDate(new Date());\r\n address.setModificationDate(null);\r\n this.dao.associate(address, 1, false);\r\n fail(\"IPE expected\");\r\n } catch (InvalidPropertyException e) {\r\n //good\r\n }\r\n }",
"@Test\n public void testSqlExistsMultiValuedNoForeignRestriction() {\n Query<Garage> garagesQuery = not(\n existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME\n )\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 1 result\", 1, results.size());\n assertTrue(\"results should contain garage6\", results.contains(garage6));\n }",
"@Test\n public void testGetUsersSiblings() {\n UserMapping userMapping = new UserMapping();\n userMapping.setTenancy(tenancy);\n userMapping.setNhsno(\"nhsno1-GP\");\n userMapping.setUnitcode(\"unitcode1\");\n userMapping.setUsername(\"username1-GP\");\n\n userMappingDao.save(userMapping);\n\n userMapping = new UserMapping();\n userMapping.setTenancy(tenancy);\n userMapping.setNhsno(\"nhsno1\");\n userMapping.setUnitcode(\"PATIENT\");\n userMapping.setUsername(\"username1\");\n\n userMappingDao.save(userMapping);\n\n List<UserMapping> userMappings = userMappingDao.getUsersSiblings(\"username1\", \"unitcode1\", tenancy);\n\n // should get back 3 out of the total of 5\n assertEquals(\"incorrect number of mappings found for username1\", 3, userMappings.size());\n }",
"public interface RepairMapper {\n\n /** @param repairDO\n * @pdOid 2484230b-5678-4644-935c-982ff1d9a941 */\n void insert(RepairDO repairDO);\n /** @param repairDO\n * @pdOid bc186832-689c-481c-bdfc-b3908ecc0504 */\n void update(RepairDO repairDO);\n /** @param repairman\n * @pdOid 224e0b27-29f8-492b-b804-1dcd21844e92 */\n List<RepairDO> selectByRepairman(@Param(\"size\") int size,\n @Param(\"offset\") int offset,@Param(\"repairman\") long repairman);\n int selectCountByRepairman(@Param(\"repairman\") long repairman);\n\n /** @param callPerson\n * @pdOid 048e89be-da9b-4408-a442-01ddafa69aaf */\n List<RepairDO> selectByCallPerson(@Param(\"size\") int size,\n @Param(\"offset\") int offset,@Param(\"callPerson\") long callPerson);\n int selectCountByCallPerson(@Param(\"callPerson\") long callPerson);\n\n /** @pdOid 6a706c4b-4767-4fb5-a2db-34802be0095a */\n List<RepairDO> selectUnrepair(@Param(\"size\") int size,\n @Param(\"offset\") int offset);\n int selectCountUnrepair();\n}",
"@Mapper(componentModel = \"spring\", uses = {AuthorityMapper.class, })\npublic interface BizUserMapper {\n\n BizUserDTO bizUserToBizUserDTO(BizUser bizUser);\n\n List<BizUserDTO> bizUsersToBizUserDTOs(List<BizUser> bizUsers);\n\n @Mapping(target = \"companies\", ignore = true)\n @Mapping(target = \"products\", ignore = true)\n BizUser bizUserDTOToBizUser(BizUserDTO bizUserDTO);\n\n List<BizUser> bizUserDTOsToBizUsers(List<BizUserDTO> bizUserDTOs);\n\n default Authority authorityFromId(Long id) {\n if (id == null) {\n return null;\n }\n Authority authority = new Authority();\n authority.setId(id);\n return authority;\n }\n}",
"@Mapper\npublic interface TestMapper extends MyMapper<Person1> {\n //List<Person1> findAll();\n}",
"@Test\n\tpublic void testCreateRowRelation() throws SQLException\n\t{\n\t\tnew PowerTool(\"asdf\", 5, 5, \"PowerTooldescription\", true);\n\t\tnew StripNail(\"UPC\", 5, 5, 3.33, 9);\n\t\t\n\t\tnew PowerToolsToStripNailsMapper(1,2);\n\t\t\n\t\tResultSet rs = DatabaseGateway.getTable(\"PowerToolsTOStripNails\");\n\t\tif(rs.next())\n\t\t{\n\t\t\tassertEquals(rs.getInt(\"PowerToolid\"),1);\n\t\t\tassertEquals(rs.getInt(\"StripNailid\"),2);\n\t\t}\n\t}",
"@Mapper(componentModel = \"spring\", uses = {GovernorateMapper.class, DelegationMapper.class, UserMapper.class, })\npublic interface PolicyHolderMapper extends EntityMapper <PolicyHolderDTO, PolicyHolder> {\n\n @Mapping(source = \"governorate.id\", target = \"governorateId\")\n @Mapping(source = \"governorate.label\", target = \"governorateLabel\")\n\n @Mapping(source = \"delegation.id\", target = \"delegationId\")\n @Mapping(source = \"delegation.label\", target = \"delegationLabel\")\n\n @Mapping(source = \"creationUser.id\", target = \"creationUserId\")\n @Mapping(source = \"creationUser.login\", target = \"creationUserLogin\")\n\n @Mapping(source = \"updateUser.id\", target = \"updateUserId\")\n @Mapping(source = \"updateUser.login\", target = \"updateUserLogin\")\n PolicyHolderDTO toDto(PolicyHolder policyHolder); \n\n @Mapping(source = \"governorateId\", target = \"governorate\")\n\n @Mapping(source = \"delegationId\", target = \"delegation\")\n\n @Mapping(source = \"creationUserId\", target = \"creationUser\")\n\n @Mapping(source = \"updateUserId\", target = \"updateUser\")\n PolicyHolder toEntity(PolicyHolderDTO policyHolderDTO); \n default PolicyHolder fromId(Long id) {\n if (id == null) {\n return null;\n }\n PolicyHolder policyHolder = new PolicyHolder();\n policyHolder.setId(id);\n return policyHolder;\n }\n}",
"@Test\r\n public void testLeftJoinWhenSynonymHasOneEntryWhileAntonymHasMany() {\r\n synonym.put(\"fond\", \"enamored\");\r\n\r\n antonym.put(\"fond\", \"averse\");\r\n antonym.put(\"wrath\", \"delight\");\r\n antonym.put(\"diligent\", \"idle\");\r\n antonym.put(\"guide\", \"follow\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"fond\", \"enamored\", \"averse\"} };\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"public void testEntrySetIteratorHasProperMappings() {\n return;\r\n }",
"boolean hasRelation();",
"private void mockEnableAttributeDeletionWithRelationToService(AttributeDefinition attr) {\n\t\tPerunBl perunBl = attrManagerBlImpl.getPerunBl();\n\t\twhen(perunBl.getServicesManagerBl()).thenReturn(serviceManagerBlImplMock);\n\t\twhen(serviceManagerBlImplMock.getServicesByAttributeDefinition(eq(sessionMock), eq(attr)))\n\t\t\t.thenReturn(Collections.emptyList());\n\t}",
"public interface LinkMapper {\n final String SELECT_LINK_BY_ID = \"SELECT * FROM link WHERE id = #{id}\";\n final String SELECT_LINK_ALL = \"SELECT * FROM link\";\n final String INSERT_LINK = \"INSERT INTO link (url,comentario) VALUES (#{url},#{comentario})\";\n final String DELETE_LINK = \"DELETE FROM link WHERE (id=#{id},url=#{url},comentario=#{comentario})\";\n final String DELETE_LINK_BY_ID = \"DELETE FROM link WHERE (id=#{id})\";\n\n /**\n * Seleciona un link de la base de datos segun la id.<br>\n * \n * @param id\n * 'id' del link.\n * @return Entidad asociada al resultado.\n * @throws Exception\n */\n @Select(SELECT_LINK_BY_ID)\n Link selectLinkById ( final Integer id) throws Exception;\n\n @Select(SELECT_LINK_ALL)\n List<Link> selectAllLink () throws Exception;\n\n @Insert(INSERT_LINK)\n @Options(useGeneratedKeys = true, keyProperty = \"id\")\n Integer insertLink ( Link link) throws Exception;\n\n @Delete(DELETE_LINK)\n Integer deleteLink ( Link link) throws Exception;\n\n @Delete(DELETE_LINK_BY_ID)\n Integer deleteLinkById ( Integer id) throws Exception;\n}",
"@Mapper(componentModel = \"spring\", uses = {ProvinceMapper.class})\npublic interface CommuneMapper extends EntityMapper<CommuneDTO, Commune> {\n\n @Mapping(source = \"province.id\", target = \"provinceId\")\n CommuneDTO toDto(Commune commune);\n\n @Mapping(target = \"villageSecteurs\", ignore = true)\n @Mapping(target = \"cebs\", ignore = true)\n @Mapping(source = \"provinceId\", target = \"province\")\n Commune toEntity(CommuneDTO communeDTO);\n\n default Commune fromId(Long id) {\n if (id == null) {\n return null;\n }\n Commune commune = new Commune();\n commune.setId(id);\n return commune;\n }\n}",
"@Test\n public void testSqlExistsNoForeignRestriction() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED\n )\n );\n\n Set<Car> results = asSet(cars.retrieve(carsQuery));\n\n assertEquals(\"should have 3 results\", 3, results.size());\n assertTrue(\"results should contain car1\", results.contains(car1));\n assertTrue(\"results should contain car4\", results.contains(car4));\n assertTrue(\"results should contain car5\", results.contains(car5));\n }",
"void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }",
"boolean isSetFurtherRelations();",
"@Repository\npublic interface SuitCaseMapper {\n List<SuitCaseDTO> getRelaCases(int suitId);\n\n List<SuitCaseDTO> getNotRelaCases(int suitId);\n}",
"public void executeOneToManyAssociationsCriteria() {\n Session session = getSession();\n Transaction transaction = session.beginTransaction();\n\n // SELECT *\n // FROM Supplier s\n Criteria criteria = session.createCriteria(Supplier.class);\n\n // INNER JOIN Product p\n // ON s.id = p.supplier_id\n // WHERE p.price > 25;\n criteria.createCriteria(\"products\").add(Restrictions.gt(\"price\", new Double(25.0)));\n\n displaySupplierList(criteria.list());\n transaction.commit();\n }",
"@Test\n\tpublic void testAddLinkInvalidMultExceeded() {\n\n\t\t// create 1 Address and some Persons\n\t\tAddress adr = new Address();\n\t\tPerson jojo1 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641014\\\"\");\n\t\tPerson jojo2 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641015\\\"\");\n\t\tPerson jojo3 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641016\\\"\");\n\t\tPerson jojo4 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641017\\\"\");\n\t\tPerson jojo5 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641018\\\"\");\n\t\tPerson jojo6 = new Person(\"\\\"Johannes\\\" \\\"Bl�mel\\\" \\\"19641019\\\"\");\n\n\t\t// add more persons than allowed\n\t\tadr.addInhabitant(jojo1);\n\t\tadr.addInhabitant(jojo2);\n\t\tadr.addInhabitant(jojo3);\n\t\tadr.addInhabitant(jojo4);\n\t\tadr.addInhabitant(jojo5);\n\t\ttry {\n\t\t\tadr.addInhabitant(jojo6);\n\t\t\tAssert.fail();\n\t\t} catch (ValidationException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\t}",
"public void testInheritanceGetAllAttributes()\r\n\t{\r\n\r\n\t\tEntityManagerInterface entityManagerInterface = EntityManager.getInstance();\r\n\t\tDomainObjectFactory factory = DomainObjectFactory.getInstance();\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Step 1\r\n\t\t\tEntityInterface specimen = factory.createEntity();\r\n\t\t\tspecimen.setName(\"specimen\");\r\n\t\t\tspecimen.setAbstract(true);\r\n\t\t\tAttributeInterface barcode = factory.createStringAttribute();\r\n\t\t\tbarcode.setName(\"barcode\");\r\n\t\t\tspecimen.addAbstractAttribute(barcode);\r\n\r\n\t\t\tAttributeInterface label = factory.createStringAttribute();\r\n\t\t\tlabel.setName(\"label\");\r\n\t\t\tspecimen.addAbstractAttribute(label);\r\n\r\n\t\t\tEntityInterface tissueSpecimen = factory.createEntity();\r\n\t\t\ttissueSpecimen.setParentEntity(specimen);\r\n\r\n\t\t\tspecimen = entityManagerInterface.persistEntity(specimen);\r\n\r\n\t\t\ttissueSpecimen.setName(\"tissueSpecimen\");\r\n\t\t\tAttributeInterface quantityInCellCount = factory.createIntegerAttribute();\r\n\t\t\tquantityInCellCount.setName(\"quantityInCellCount\");\r\n\t\t\ttissueSpecimen.addAbstractAttribute(quantityInCellCount);\r\n\r\n\t\t\ttissueSpecimen = entityManagerInterface.persistEntity(tissueSpecimen);\r\n\t\t\tEntityInterface advanceTissueSpecimenA = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenA.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenA.setName(\"advanceTissueSpecimenA\");\r\n\t\t\tAttributeInterface newAttribute = factory.createIntegerAttribute();\r\n\t\t\tnewAttribute.setName(\"newAttributeA\");\r\n\t\t\tadvanceTissueSpecimenA.addAbstractAttribute(newAttribute);\r\n\r\n\t\t\tEntityInterface advanceTissueSpecimenB = factory.createEntity();\r\n\t\t\tadvanceTissueSpecimenB.setParentEntity(tissueSpecimen);\r\n\t\t\tadvanceTissueSpecimenB.setName(\"advanceTissueSpecimenB\");\r\n\t\t\tAttributeInterface newAttributeB = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB.setName(\"newAttributeB\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB);\r\n\t\t\tAttributeInterface newAttributeB2 = factory.createIntegerAttribute();\r\n\t\t\tnewAttributeB2.setName(\"newAttributeB2\");\r\n\t\t\tadvanceTissueSpecimenB.addAbstractAttribute(newAttributeB2);\r\n\r\n\t\t\t// Step 2\t\t\t\r\n\t\t\tentityManagerInterface.persistEntity(advanceTissueSpecimenA);\r\n\t\t\tentityManagerInterface.persistEntity(advanceTissueSpecimenB);\r\n\r\n\t\t\t// Step 3\t\r\n\r\n\t\t\tCollection<AttributeInterface> specimenAttributes = specimen.getAllAttributes();\r\n\t\t\t//2 user attributes + 1 system attribute for id\r\n\t\t\tassertEquals(3, specimenAttributes.size());\r\n\r\n\t\t\t//2 child Attributes + 1 parent Attribute + 2 system generated attributes for id\r\n\t\t\tCollection<AttributeInterface> tissueSpecimenAttributes = tissueSpecimen\r\n\t\t\t\t\t.getAllAttributes();\r\n\t\t\tassertEquals(5, tissueSpecimenAttributes.size());\r\n\r\n\t\t\tCollection<AttributeInterface> advanceTissueSpecimenAAttributes = advanceTissueSpecimenA\r\n\t\t\t\t\t.getAllAttributes();\r\n\t\t\t//1 child attribute + 2 parent Attribute + 1 grand parent attribute + 3 system generated attributes\r\n\t\t\tassertEquals(7, advanceTissueSpecimenAAttributes.size());\r\n\r\n\t\t\tCollection<AttributeInterface> advanceTissueSpecimenBAttributes = advanceTissueSpecimenB\r\n\t\t\t\t\t.getAllAttributes();\r\n\t\t\t//2 child attribute + 2 parent Attribute + 1 grand parent attribute + 3 system generated attributes\r\n\t\t\tassertEquals(8, advanceTissueSpecimenBAttributes.size());\r\n\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tLogger.out.debug(DynamicExtensionsUtility.getStackTrace(e));\r\n\t\t\tfail();\r\n\t\t}\r\n\t}",
"@Override\npublic List<Department> queryForEmp() {\n\treturn departmentMapper.queryForEmp();\n}",
"ImmutableList<MappingAssertion> addDistinct(ImmutableList<MappingAssertion> mapping);",
"@Test\n void _correctIfCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableReceiver(), \"=\", assingablePair.getIndexAssignable());\n }\n }\n }",
"public void setRelationAttributes(Map<String, String> relationAttributes) {\n this.relationAttributes = relationAttributes;\n }",
"@Override\n public void onRelationshipMapLoaded() {\n }",
"private void markDuplicateRelationships(EntityInstanceImpl ei)\n {\n EntityInstanceImpl parent = ei.getParent();\n EntityDef entityDef = ei.getEntityDef();\n\n // Duplicate relationship searching phase I, see if a linked instance to\n // the target instance in the same object instance represents the\n // same relationship type AND has the same parent.\n for ( EntityInstanceImpl linked : ei.getLinkedInstances() )\n {\n // Check to make sure linked EI has a parent--it is possible for a root\n // to be flagged as included and we don't care about roots.\n if ( linked.isDeleted() || linked.getParent() == null )\n continue;\n\n if ( ei.isExcluded() )\n {\n if ( ! linked.isExcluded() )\n continue;\n }\n else\n {\n if ( ! linked.isIncluded() )\n continue;\n }\n\n EntityDef linkedEntityDef = linked.getEntityDef();\n\n // Linked EI must have the same relationship and it can't be derived.\n if ( linkedEntityDef.getErRelToken() == entityDef.getErRelToken() ||\n linkedEntityDef.isDerivedPath() )\n {\n continue;\n }\n\n // Now check to see if the parents are linked.\n EntityInstanceImpl linkParent = linked.getParent();\n for ( EntityInstanceImpl parentLinked : linkParent.getLinkedInstances() )\n {\n if ( parentLinked == parent )\n {\n if ( ei.isExcluded() )\n linked.dbhExcluded = true;\n else\n linked.dbhIncluded = true;\n\n break;\n }\n }\n } // for each linked instance...\n\n // Duplicate relationship searching, phase II, see if the parent of\n // the instance has a linked instance representing the same relationship\n // type which is also a child of one of the targets linked instances.\n\n // If the parent isn't linked then there are no duplicate relationships.\n if ( parent.getLinkedInstances().size() == 0 )\n return;\n\n for ( EntityInstanceImpl linked : parent.getLinkedInstances() )\n {\n // Check for appropriate include/exclude flag.\n if ( ei.isExcluded() )\n {\n if ( ! linked.isExcluded() )\n continue;\n }\n else\n {\n if ( ! linked.isIncluded() )\n continue;\n }\n\n EntityDef linkedEntityDef = linked.getEntityDef();\n\n // Check to see if the relationship for the EI linked to the parent is\n // the same as the relationship of the original EI.\n if ( linkedEntityDef.getErRelToken() != entityDef.getErRelToken() )\n continue; // Nope.\n\n // OK, we have an EI ('linked') that has the same relationship as\n // ei. Check to see if the parent of 'linked' (grandParent)\n // is linked with ei. If they are linked then 'linked'\n // has the same physical relationship as ei.\n EntityInstanceImpl grandParent = linked.getParent();\n for ( EntityInstanceImpl gp : ei.getLinkedInstances() )\n {\n if ( gp == grandParent )\n {\n if ( ei.isExcluded() )\n linked.dbhExcluded = true;\n else\n linked.dbhIncluded = true;\n\n break;\n }\n }\n } // for each linked instance of parent...\n }",
"@Test\r\n public void testBusinessRulesNoDiseaseId() throws PAException {\r\n thrown.expect(PAException.class);\r\n thrown.expectMessage(\"Missing Disease/Condition. \");\r\n StudyDiseaseDTO dto = new StudyDiseaseDTO();\r\n bean.businessRules(dto);\r\n }"
] | [
"0.6477317",
"0.6353538",
"0.6345973",
"0.60613",
"0.5870598",
"0.5532938",
"0.54267335",
"0.5364086",
"0.52818596",
"0.522627",
"0.519965",
"0.5140627",
"0.5072981",
"0.5061582",
"0.5047727",
"0.5023508",
"0.49990422",
"0.49497157",
"0.494788",
"0.4939484",
"0.49152577",
"0.48922095",
"0.48600242",
"0.4853843",
"0.48533815",
"0.4852857",
"0.48375162",
"0.4823495",
"0.47919995",
"0.47787428",
"0.47596776",
"0.47554532",
"0.47505012",
"0.47405502",
"0.4738024",
"0.47339442",
"0.47297466",
"0.47219887",
"0.4720699",
"0.47200465",
"0.4716798",
"0.46886995",
"0.46814293",
"0.46758205",
"0.46733177",
"0.46658447",
"0.46657798",
"0.46627074",
"0.46442524",
"0.46354327",
"0.46217236",
"0.46158502",
"0.46117133",
"0.46091855",
"0.46077797",
"0.46054098",
"0.46010035",
"0.45953214",
"0.45893806",
"0.4586271",
"0.45861268",
"0.45854187",
"0.45837927",
"0.45801502",
"0.45774564",
"0.45731348",
"0.45703927",
"0.45646727",
"0.4559467",
"0.4558236",
"0.45535007",
"0.4548518",
"0.45433733",
"0.45362785",
"0.45316178",
"0.4528504",
"0.45152122",
"0.45114654",
"0.4506877",
"0.44926947",
"0.44923308",
"0.44908166",
"0.44836274",
"0.44803536",
"0.44799116",
"0.44680786",
"0.4462212",
"0.44608837",
"0.44553474",
"0.44538614",
"0.4449734",
"0.44490415",
"0.44442964",
"0.44378358",
"0.44281638",
"0.44258213",
"0.44226822",
"0.44209993",
"0.44195879",
"0.44146627"
] | 0.4749508 | 33 |
Test cases where join table is not specified for manytomany relation | @Test(dataProvider = "repositoryFactories")
public void testError_missingJoinTable(RepositoryFactory factory)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkMappedByManyToMany(DeployBeanPropertyAssocMany<?> prop) {\n // get the bean descriptor that holds the mappedBy property\n String mappedBy = prop.getMappedBy();\n if (mappedBy == null) {\n if (targetDescriptor(prop).isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n return;\n }\n\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocMany<?> mappedAssocMany = mappedManyToMany(prop, mappedBy, targetDesc);\n\n // define the relationships/joins on this side as the\n // reverse of the other mappedBy side ...\n DeployTableJoin mappedIntJoin = mappedAssocMany.getIntersectionJoin();\n DeployTableJoin mappendInverseJoin = mappedAssocMany.getInverseJoin();\n\n String intTableName = mappedIntJoin.getTable();\n\n DeployTableJoin tableJoin = prop.getTableJoin();\n mappedIntJoin.copyTo(tableJoin, true, targetDesc.getBaseTable());\n\n DeployTableJoin intJoin = new DeployTableJoin();\n mappendInverseJoin.copyTo(intJoin, false, intTableName);\n prop.setIntersectionJoin(intJoin);\n\n DeployTableJoin inverseJoin = new DeployTableJoin();\n mappedIntJoin.copyTo(inverseJoin, false, intTableName);\n prop.setInverseJoin(inverseJoin);\n\n if (targetDesc.isDraftable()) {\n prop.setIntersectionDraftTable();\n }\n }",
"@Override\n\tpublic String getJoinTable() {\n\t\treturn null;\n\t}",
"public JoinedTable[] getJoinedTables();",
"boolean isOneToMany();",
"@Test\n\tpublic void manyToManyTest() {\n\t\tSystem.out.println(\"============manyToManyTest=========\");\n\t\tUser u = new User();\n\t\tRole r = new Role();\n\t\tPrivilege p = new Privilege();\n\t\tUserRole ur = new UserRole();\n\t\tRolePrivilege rp = new RolePrivilege();\n\t\tDao.getDefaultContext().setShowSql(true);\n\t\tList<User> users = Dao.queryForEntityList(User.class,\n\t\t\t\tu.pagination(1, 10, //\n\t\t\t\t\t\tselect(), u.all(), \",\", ur.all(), \",\", r.all(), \",\", rp.all(), \",\", p.all(), from(), u.table(), //\n\t\t\t\t\t\t\" left join \", ur.table(), \" on \", oneToMany(), u.ID(), \"=\", ur.UID(), bind(), //\n\t\t\t\t\t\t\" left join \", r.table(), \" on \", oneToMany(), r.ID(), \"=\", ur.RID(), bind(), //\n\t\t\t\t\t\t\" left join \", rp.table(), \" on \", oneToMany(), r.ID(), \"=\", rp.RID(), bind(), //\n\t\t\t\t\t\t\" left join \", p.table(), \" on \", oneToMany(), p.ID(), \"=\", rp.PID(), bind(), //\n\t\t\t\t\t\t\" order by \", u.ID(), \",\", r.ID(), \",\", p.ID()));\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tSet<Role> roles = user.getUniqueNodeSet(Role.class);\n\t\t\tfor (Role role : roles)\n\t\t\t\tSystem.out.println(\"\\t\" + role.getRoleName());\n\t\t\tSet<Privilege> privs = user.getUniqueNodeSet(Privilege.class);\n\t\t\tfor (Privilege priv : privs)\n\t\t\t\tSystem.out.println(\"\\t\" + priv.getPrivilegeName());\n\t\t}\n\t}",
"private boolean isMultiTable() {\n\t\treturn fromElement.getQueryable() != null &&\n\t\t\t\tfromElement.getQueryable().isMultiTable();\n\t}",
"@Test\n public void testJoinOn_withTwoValidTables() {\n String table1column0 = \"user_id\";\n String table1column1 = \"age\";\n int idValue0 = 0;\n int ageValue0 = 23;\n int idValue1 = 1;\n int ageValue1 = 22;\n int idValue2 = 2;\n int ageValue2 = 18;\n String table2column0 = \"pet_id\";\n String table2column1 = \"owner_id\";\n int pet1_id = 0;\n int pet2_id = 1;\n\n try {\n // Set up ModelExtension Table\n String sql = \"CREATE TABLE ModelExtension (\" +\n table1column0 + \" int, \" +\n table1column1 + \" int)\";\n PreparedStatement pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO ModelExtension (\" +\n table1column0 + \", \" +\n table1column1 + \") VALUES (\" +\n idValue0 + \", \" +\n ageValue0 + \"), (\" +\n idValue1 + \", \" +\n ageValue1 + \"), (\" +\n idValue2 + \", \" +\n ageValue2 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n // Set up Test Table\n sql = \"CREATE TABLE Test (\" +\n table2column0 + \" int, \" +\n table2column1 + \" int)\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.execute();\n sql = \"INSERT INTO Test (\" +\n table2column0 + \", \" +\n table2column1 + \") VALUES (\" +\n pet1_id + \", \" +\n idValue0 + \"), (\" +\n pet2_id + \", \" +\n idValue1 + \")\";\n pstmt = Setup.getConnection().prepareStatement(sql);\n pstmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n assertTrue(false);\n }\n\n List<ModelExtension> models = child.findAll()\n .joinOn(\n new ModelExtensionWithAnnotation(), \n table1column0, \n table2column1)\n .execute(ModelExtension.class);\n\n assertEquals(2, models.size());\n assertEquals(idValue0, models.get(0).get(table1column0));\n assertEquals(ageValue0, models.get(0).get(table1column1));\n assertEquals(pet1_id, models.get(0).get(table2column0));\n assertEquals(idValue0, models.get(0).get(table2column1));\n\n assertEquals(idValue1, models.get(1).get(table1column0));\n assertEquals(ageValue1, models.get(1).get(table1column1));\n assertEquals(pet2_id, models.get(1).get(table2column0));\n assertEquals(idValue1, models.get(1).get(table2column1));\n }",
"private void checkMappedByOneToMany(DeployBeanInfo<?> info, DeployBeanPropertyAssocMany<?> prop) {\n if (prop.isElementCollection()) {\n // skip mapping check\n return;\n }\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n if (targetDesc.isDraftableElement()) {\n // automatically turning on orphan removal and CascadeType.ALL\n prop.setModifyListenMode(BeanCollection.ModifyListenMode.REMOVALS);\n prop.getCascadeInfo().setSaveDelete(true, true);\n }\n\n if (prop.hasOrderColumn()) {\n makeOrderColumn(prop);\n }\n\n if (prop.getMappedBy() == null) {\n // if we are doc store only we are done\n // this allows the use of @OneToMany in @DocStore - Entities\n if (info.getDescriptor().isDocStoreOnly()) {\n prop.setUnidirectional();\n return;\n }\n\n if (!findMappedBy(prop)) {\n if (!prop.isO2mJoinTable()) {\n makeUnidirectional(prop);\n }\n return;\n }\n }\n\n // check that the mappedBy property is valid and read\n // its associated join information if it is available\n String mappedBy = prop.getMappedBy();\n\n // get the mappedBy property\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedManyToOne(prop, targetDesc, mappedBy);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyTo(tableJoin, true, tableJoin.getTable());\n }\n\n PropertyForeignKey foreignKey = mappedAssocOne.getForeignKey();\n if (foreignKey != null) {\n ConstraintMode onDelete = foreignKey.getOnDelete();\n switch (onDelete) {\n case SET_DEFAULT:\n case SET_NULL:\n case CASCADE: {\n // turn off cascade delete when we are using the foreign\n // key constraint to cascade the delete or set null\n prop.getCascadeInfo().setDelete(false);\n }\n }\n }\n }",
"protected void createSubQueryJoinTable() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Team -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Person -->\r\n createSelectClauseJoin(subQuery, queryRoot, right);\r\n Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, left);\r\n whereCondition = cb.and(whereCondition, createWhereByAssociation(queryJoinTable, queryRoot, right));\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n\r\n }",
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeftEvenWhenOnlyIdSelected() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getId());\n \n validate(\"select hobj3.id from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"public boolean hasJoins() {\r\n\t\treturn joins != null &&\r\n\t\t !joins.isNull();\r\n\t}",
"public void manyToManyDeleteNonOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n // remove the owning side\n em.remove(b1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() == 0);\n\n em.close();\n }",
"FromTableJoin createFromTableJoin();",
"public boolean isJoin()\r\n {\n return false;\r\n }",
"public void manyToManyDeleteOwningSideTest() throws Exception {\n EntityManager em = createEntityManager();\n \n em.getTransaction().begin();\n \n EntityA a1 = new EntityA();\n a1.setName(\"EntityA1\");\n EntityB b1 = new EntityB();\n b1.setName(\"EntityB1\");\n\n a1.getBs().add(b1);\n b1.getAs().add(a1);\n\n em.persist(a1);\n\n em.getTransaction().commit();\n\n Integer idA1 = a1.getId();\n Integer idB1 = b1.getId();\n \n em.getTransaction().begin();\n \n // remove the relationship\n a1.getBs().remove(b1);\n b1.getAs().remove(a1);\n\n // remove the non-owning side\n em.remove(a1);\n try {\n em.getTransaction().commit();\n } catch (RuntimeException ex) {\n if (em.getTransaction().isActive()) {\n em.getTransaction().rollback();\n }\n em.close();\n \n throw ex;\n }\n \n clearCache();\n \n assertTrue(\"EntityA a1 should have been removed!\", \n em.createQuery(\"SELECT a FROM EntityA a WHERE a.id = ?1\").setParameter(1, idA1).getResultList().size() == 0);\n assertTrue(\"EntityB b1 should not have been removed!\", \n em.createQuery(\"SELECT b FROM EntityB b WHERE b.id = ?1\").setParameter(1, idB1).getResultList().size() != 0);\n\n em.close();\n }",
"boolean isMany();",
"@Test\r\n public void testLeftJoinWhenSynonymHasOneEntryWhileAntonymHasMany() {\r\n synonym.put(\"fond\", \"enamored\");\r\n\r\n antonym.put(\"fond\", \"averse\");\r\n antonym.put(\"wrath\", \"delight\");\r\n antonym.put(\"diligent\", \"idle\");\r\n antonym.put(\"guide\", \"follow\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"fond\", \"enamored\", \"averse\"} };\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"@Test\r\n\tvoid join() {\r\n\t\tQuery query = entityManager.createQuery(\"Select c,s from Course c JOIN c.students s\");\r\n\t\tList<Object[]> resultList = query.getResultList();\r\n\t\tlog.info(\"Result Size -> {}\", resultList.size());\r\n\t\tfor (Object[] result : resultList) {\r\n\t\t\tlog.info(\"Course -> {}\", result[0]);\r\n\t\t\tlog.info(\"Student -> {}\", result[1]);\r\n\t\t}\r\n\t}",
"protected void createSubQueryJoinTableAggregation() throws ODataApplicationException {\r\n try {\r\n final List<JPAOnConditionItem> left = association\r\n .getJoinTable()\r\n .getJoinColumns(); // Person -->\r\n final List<JPAOnConditionItem> right = association\r\n .getJoinTable()\r\n .getInverseJoinColumns(); // Team -->\r\n createSelectClauseAggregation(subQuery, queryJoinTable, left);\r\n final Expression<Boolean> whereCondition = createWhereByAssociation(from, queryJoinTable, parentQuery.jpaEntity);\r\n subQuery.where(applyAdditionalFilter(whereCondition));\r\n handleAggregation(subQuery, queryJoinTable, right);\r\n } catch (final ODataJPAModelException e) {\r\n throw new ODataJPAQueryException(e, HttpStatusCode.INTERNAL_SERVER_ERROR);\r\n }\r\n }",
"private void handleJoinTable(JFieldVar field, JDefinedClass clazz, String propertyName, JsonNode propertyNode) {\n if (propertyNode.has(JpaConstants.JOIN_TABLE)) {\n JAnnotationUse jAnnotationUse = field.annotate(JoinTable.class);\n JsonNode node = propertyNode.get(JpaConstants.JOIN_TABLE);\n\n if (node.has(JpaConstants.NAME)) {\n String tableName = node.get(JpaConstants.NAME).asText();\n jAnnotationUse.param(JpaConstants.NAME, tableName);\n }\n\n if (node.has(JpaConstants.JOIN_COLUMNS)) {\n handleJoinColumns(node, jAnnotationUse, JpaConstants.JOIN_COLUMNS);\n handleJoinColumns(node, jAnnotationUse, JpaConstants.INVERSE_JOIN_COLUMNS);\n }\n }\n }",
"@Test\n\tpublic void join(){\n\t\t\n\t\tCriteriaBuilder criteriaBuilder = em.getCriteriaBuilder();\n\t\tCriteriaQuery<Course> criteriaQuery = criteriaBuilder.createQuery(Course.class);\n\t\t\n\t\t\n\t\t// Define roots\n\t\tRoot<Course> courseRoot = criteriaQuery.from(Course.class);\n\t\t\n\t\t// Define Predicate\n\t\tJoin<Object, Object> join = courseRoot.join(\"students\");\n\t\t\n\t\t// Add Predicate\n\t\n\t\t//5. Defined Typed Query\n\t\t\t\tTypedQuery<Course> query = em.createQuery(criteriaQuery.select(courseRoot));\n\t\t\t\t\n\t\t\t\tList<Course> resultList = query.getResultList();\n\t\t\t\t\n\t\t\t\tlogger.info(\"JOINED COURSES ==> {}\", resultList);\n\t\t\t\t\t\n\t}",
"public boolean isJoin()\r\n { return type == JOIN; }",
"public boolean containsRelations();",
"@Test\n public void testSqlExistsBasedJoin() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Map<Car, Set<Garage>> results = new LinkedHashMap<Car, Set<Garage>>();\n for (Car car : cars.retrieve(carsQuery)) {\n Query<Garage> garagesWhichServiceThisCarInDublin\n = and(equal(Garage.BRANDS_SERVICED, car.name), equal(Garage.LOCATION, \"Dublin\"));\n for (Garage garage : garages.retrieve(garagesWhichServiceThisCarInDublin)) {\n Set<Garage> garagesWhichCanServiceThisCar = results.get(car);\n if (garagesWhichCanServiceThisCar == null) {\n garagesWhichCanServiceThisCar = new LinkedHashSet<Garage>();\n results.put(car, garagesWhichCanServiceThisCar);\n }\n garagesWhichCanServiceThisCar.add(garage);\n }\n }\n\n assertEquals(\"join results should contain 2 cars\", 2, results.size());\n Assert.assertTrue(\"join results should contain car1\", results.containsKey(car1));\n Assert.assertTrue(\"join results should contain car4\", results.containsKey(car4));\n\n assertEquals(\"join results for car1\", asSet(garage3, garage4), results.get(car1));\n assertEquals(\"join results for car4\", asSet(garage2), results.get(car4));\n }",
"@Override\n\tvoid addOneToManyJoin(QueryBuilder sb, Relation relation, EFieldAccessType fieldReferenceType, SourceReference from, SourceReference to) {\n\t\t\n\t\t\n\t\tfinal String entityAliasName = from.getVarName();\n\t\tfinal String collectionAttrName = relation.getFrom().getAttribute().getName();\n\n\t\t// final String joinVarName = \"join\" + joinParamIdx++;\n\n\t\tfinal String joinVarName = to.getVarName();\n\t\t\n\t\taddOneToManyJoin(sb, entityAliasName, collectionAttrName, joinVarName);\n\t}",
"public void testJoinInner() {\n\n String\tsql\t= \"SELECT t.AD_Table_ID, t.TableName, c.AD_Column_ID, c.ColumnName \" + \"FROM AD_Table t INNER JOIN AD_Column c ON (t.AD_Table_ID=c.AD_Table_ID) WHERE t.IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table=t,AD_Column=c|0]\", fixture.toString());\n }",
"private void checkMappedBy(DeployBeanInfo<?> info, List<DeployBeanPropertyAssocOne<?>> primaryKeyJoinCheck) {\n for (DeployBeanPropertyAssocOne<?> oneProp : info.getDescriptor().propertiesAssocOne()) {\n if (!oneProp.isTransient()) {\n if (oneProp.getMappedBy() != null) {\n checkMappedByOneToOne(oneProp);\n } else if (oneProp.isPrimaryKeyJoin()) {\n primaryKeyJoinCheck.add(oneProp);\n }\n }\n }\n\n for (DeployBeanPropertyAssocMany<?> manyProp : info.getDescriptor().propertiesAssocMany()) {\n if (!manyProp.isTransient()) {\n if (manyProp.isManyToMany()) {\n checkMappedByManyToMany(manyProp);\n } else {\n checkMappedByOneToMany(info, manyProp);\n }\n }\n }\n }",
"@Test\n public void testJoinTypeLeftWhenParentEffectiveJoinTypeIsLeft() {\n Person parent = query.from(Person.class);\n Relation relation = query.join(parent.getChildRelations(), JoinType.Left);\n \n query.select(relation.getChild().getAge());\n \n validate(\"select hobj3.age from Person hobj1 left join hobj1.childRelations hobj2 left join hobj2.child hobj3\");\n }",
"@Override\n public boolean supportsRootTreatTreatJoin() {\n return true;\n }",
"private void checkMappedByOneToOne(DeployBeanPropertyAssocOne<?> prop) {\n String mappedBy = prop.getMappedBy();\n // get the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n DeployBeanPropertyAssocOne<?> mappedAssocOne = mappedOneToOne(prop, mappedBy, targetDesc);\n DeployTableJoin tableJoin = prop.getTableJoin();\n if (!tableJoin.hasJoinColumns()) {\n // define Join as the inverse of the mappedBy property\n DeployTableJoin otherTableJoin = mappedAssocOne.getTableJoin();\n otherTableJoin.copyWithoutType(tableJoin, true, tableJoin.getTable());\n }\n\n if (mappedAssocOne.isPrimaryKeyJoin()) {\n // bi-directional PrimaryKeyJoin ...\n mappedAssocOne.setPrimaryKeyJoin(false);\n prop.setPrimaryKeyExport();\n addPrimaryKeyJoin(prop);\n }\n }",
"public void testJoinKey() {\n em.getTransaction().begin();\n em.createQuery(\"DELETE FROM Student s\").executeUpdate();\n em.createQuery(\"DELETE FROM Course s\").executeUpdate();\n em.createQuery(\"DELETE FROM Semester s\").executeUpdate();\n em.getTransaction().commit();\n\n em.getTransaction().begin();\n Student s1 = new Student(); s1.setName(\"S1\");\n Student s2 = new Student(); s2.setName(\"S2\");\n Student s3 = new Student(); s3.setName(\"S3\");\n Student s4 = new Student(); s4.setName(\"S4\");\n Semester sm1 = new Semester(); sm1.setName(\"Summer\");\n Semester sm2 = new Semester(); sm2.setName(\"Fall\");\n Course c1 = new Course(); c1.setName(\"C1\");\n Course c2 = new Course(); c2.setName(\"C2\");\n\n s1.addToEnrollment(c1, sm1); s1.addToEnrollment(c2, sm2);\n s2.addToEnrollment(c2, sm1); s2.addToEnrollment(c1, sm2);\n s3.addToEnrollment(c1, sm2);\n s4.addToEnrollment(c2, sm1);\n\n em.persist(s1); em.persist(s2); em.persist(s3); em.persist(s4);\n em.persist(c1); em.persist(c2);\n em.persist(sm1); em.persist(sm2);\n em.getTransaction().commit();\n\n String jpql = \"select s from Student s JOIN s.enrollment e where KEY(e).name=:name\";\n List<Student> jResult = em.createQuery(jpql).setParameter(\"name\", \"C1\").getResultList();\n\n CriteriaQuery<Student> q = cb.createQuery(Student.class);\n Root<Student> s = q.from(Student.class);\n Join<Map<Course,Semester>,Course> c = ((Joins.Map)s.join(Student_.enrollment)).joinKey();\n q.where(cb.equal(c.get(Course_.name), cb.parameter(String.class, \"name\")));\n\n List<Student> cResult = em.createQuery(q).setParameter(\"name\",\"C1\").getResultList();\n\n assertFalse(jResult.isEmpty());\n assertEquals(cResult.size(), jResult.size());\n for (int i = 0; i < jResult.size(); i++) {\n assertEquals(jResult.get(i).getName(), cResult.get(i).getName());\n }\n }",
"boolean hasRelation();",
"@Override\n @Test\n public void testSimpleJoin() throws Exception { }",
"@Test\n @Transactional\n public void ManyToManyQuery() {\n SysRole role = roleDao.findOne(4l);\n role.getUsers().forEach(u-> System.out.println(u));\n }",
"@Override\n\tpublic boolean isAssociatedEntity(String field) {\n\t\treturn false;\n\t}",
"private void addOneToManyJoin(QueryBuilder sb, String entityAliasName, String collectionAttrName, String joinVarName) {\n\t\tsb.append(\" \")\n\t\t .append(entityAliasName).append(\".\").append(collectionAttrName)\n\t\t .append(\" \")\n\t\t .append(joinVarName);\n\t}",
"private void setRelationships(Map<String, StringBuilder> tablesSQLMap, \n\t\t\tTable table) {\n\t\tfor(String tableName : table.getRelationships().keySet()) {\n\t\t\tStringBuilder createStatement = tablesSQLMap.get(tableName);\n\t\t\tint length;\n\t\t\tStringBuilder constraint;\n\t\t\t\n\t\t\tswitch(table.getRelationships().get(tableName)) {\n\t\t\t\tcase MANYTOMANY:\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase ONETOMANY:\n\t\t\t\t\tconstraint = new StringBuilder();\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(\",\\n\\t\"+table.getTableName()+\"_id \")\n\t\t\t\t\t\t.append(ColumnType.INTEGER.getValue())\n\t\t\t\t\t\t.append(\" \"+ColumnConstraint.NOT_NULL.getValue()+\", \\n\\t\");\n\t\t\t\t\t\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(TableConstraint.FOREIGN_KEY.getValue())\n\t\t\t\t\t\t.append(\" (\"+tableName+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.REFERENCES)\n\t\t\t\t\t\t.append(\" \"+table.getTableName()+\"(\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.DELETE_CASCADE.getValue());\n\t\t\t\t\t\n\t\t\t\t\tlength = createStatement.length();\n\t\t\t\t\tcreateStatement.replace(length-6, length-5, constraint.toString());\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase ONETOONE:\n\t\t\t\t\tconstraint = new StringBuilder();\n\t\t\t\t\tconstraint\n\t\t\t\t\t\t.append(\",\\n\\t\"+table.getTableName()+\"_id \")\n\t\t\t\t\t\t.append(ColumnType.INTEGER.getValue())\n\t\t\t\t\t\t.append(\" \"+ColumnConstraint.NOT_NULL.getValue()+\", \\n\\t\");\n\t\t\t\t\t\n\t\t\t\t\tconstraint.append(TableConstraint.CONSTRAINT.getValue()+\" \")\n\t\t\t\t\t\t.append(\"fk_\"+table.getTableName()+\"_id\"+\" \")\n\t\t\t\t\t\t.append(TableConstraint.FOREIGN_KEY.getValue())\n\t\t\t\t\t\t.append(\" (\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.REFERENCES)\n\t\t\t\t\t\t.append(\" \"+table.getTableName()+\"(\"+table.getTableName()+\"_id)\")\n\t\t\t\t\t\t.append(\" \"+TableConstraint.DELETE_CASCADE.getValue());\n\t\t\t\t\t\n\t\t\t\t\tlength = createStatement.length();\n\t\t\t\t\tcreateStatement.replace(length-6, length-5, constraint.toString());\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public boolean joinHelper(Person p){\n\t return false;\n\t}",
"private static boolean isSelfJoin(Join rel, RelMetadataQuery mq) {\n // Find left keys and right keys of equi-join condition\n List<Integer> leftKeys = new ArrayList<>();\n List<Integer> rightKeys = new ArrayList<>();\n RelOptUtil.splitJoinCondition(rel.getLeft(), rel.getRight(), rel.getCondition(),\n leftKeys, rightKeys, new ArrayList<>());\n if (leftKeys.isEmpty()) {\n return false;\n }\n\n // Check each pair of join key\n for (int i = 0; i < leftKeys.size(); ++i) {\n int leftKey = leftKeys.get(i);\n int rightKey = rightKeys.get(i);\n RelColumnOrigin leftColumnOrigin = mq.getColumnOrigin(rel.getLeft(), leftKey);\n RelColumnOrigin rightColumnOrigin = mq.getColumnOrigin(rel.getRight(), rightKey);\n if (leftColumnOrigin == null || rightColumnOrigin == null) {\n return false;\n }\n List<String> leftTableName = leftColumnOrigin.getOriginTable().getQualifiedName();\n List<String> rightTableName = rightColumnOrigin.getOriginTable().getQualifiedName();\n if (!leftTableName.equals(rightTableName)) {\n return false;\n }\n }\n return true;\n }",
"@Test\r\n public void testLeftJoinWhenAntonymDoNotHaveAnyKeysMatchWithSynonym() {\r\n synonym.put(\"fond\", \"enamored\");\r\n synonym.put(\"wrath\", \"anger\");\r\n synonym.put(\"diligent\", \"employed\");\r\n synonym.put(\"outfit\", \"garb\");\r\n synonym.put(\"guide\", \"usher\");\r\n\r\n antonym.put(\"love\", \"hate\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"diligent\", \"employed\", null},\r\n {\"outfit\", \"garb\", null},\r\n {\"wrath\", \"anger\", null},\r\n {\"guide\", \"usher\", null},\r\n {\"fond\", \"enamored\", null} };\r\n assertArrayEquals(expected, result);\r\n }",
"boolean isSetFurtherRelations();",
"@Test(timeout = 4000)\n public void test043() throws Throwable {\n String[] stringArray0 = new String[8];\n String[] stringArray1 = new String[1];\n // Undeclared exception!\n try { \n SQLUtil.innerJoin(\"XSRS9.S, XSRS9.S, XSRS9.S, XSRS9.S, XSRS9.S, XSRS9.S\", stringArray0, \"create table\", (String) null, stringArray1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.innerJoin(\"hd@\", (String[]) null, \"5|.Y]x-\", \"hd@\", (String[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Test\n public void testTableDependencies() throws Exception {\n Table table = database.findTableByName(\"programs_with_twitter_tags\");\n assertDependentTables(table, \"programs\", \"broadcasts\", \"clusters\");\n }",
"public UserJoins getUserJoins(Integer tid, int uid);",
"public boolean isJoining(){\n\t\treturn join!=null;\n\t}",
"@Test\n public void testMixedJoin3() throws Exception {\n String sql = \"SELECT * FROM g1, g2 inner join g3 on g2.a=g3.a\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g1\");\n\n Node jpNode = verify(fromNode, From.CLAUSES_REF_NAME, 2, JoinPredicate.ID);\n verifyJoin(jpNode, JoinTypeTypes.JOIN_INNER);\n\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n\n Node criteriaNode = verify(jpNode, JoinPredicate.JOIN_CRITERIA_REF_NAME, CompareCriteria.ID);\n verifyProperty(criteriaNode, AbstractCompareCriteria.OPERATOR_PROP_NAME, CriteriaOperator.Operator.EQ.name());\n\n Node leftExpression = verify(criteriaNode, AbstractCompareCriteria.LEFT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(leftExpression, Symbol.NAME_PROP_NAME, \"g2.a\");\n\n Node rightExpression = verify(criteriaNode, CompareCriteria.RIGHT_EXPRESSION_REF_NAME, ElementSymbol.ID);\n verifyProperty(rightExpression, Symbol.NAME_PROP_NAME, \"g3.a\");\n \n verifySql(\"SELECT * FROM g1, g2 INNER JOIN g3 ON g2.a = g3.a\", fileNode);\n }",
"@Test\r\n public void testLeftJoinKeysInSynonymBothExistAndNotExistInAntonym() {\r\n synonym.put(\"fond\", \"enamored\");\r\n synonym.put(\"wrath\", \"anger\");\r\n synonym.put(\"diligent\", \"employed\");\r\n synonym.put(\"outfit\", \"garb\");\r\n synonym.put(\"guide\", \"usher\");\r\n\r\n antonym.put(\"fond\", \"averse\");\r\n antonym.put(\"wrath\", \"delight\");\r\n antonym.put(\"diligent\", \"idle\");\r\n antonym.put(\"guide\", \"follow\");\r\n antonym.put(\"flow\", \"jam\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"diligent\", \"employed\", \"idle\"},\r\n {\"outfit\", \"garb\", null},\r\n {\"wrath\", \"anger\", \"delight\"},\r\n {\"guide\", \"usher\", \"follow\"},\r\n {\"fond\", \"enamored\", \"averse\"} };\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"public boolean isOneToMany() {\n\t\treturn singluarAttribute == null;\n\t}",
"public Joins()\n {\n joins = new ArrayList<Join>();\n }",
"@Test\n public void testSqlExistsMultiValuedNoForeignRestriction() {\n Query<Garage> garagesQuery = not(\n existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME\n )\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 1 result\", 1, results.size());\n assertTrue(\"results should contain garage6\", results.contains(garage6));\n }",
"@Test\n public void testMixedJoin() throws Exception {\n String sql = \"SELECT * FROM g1 cross join (g2 cross join g3), g4\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode2 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n \n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"g4\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN (g2 CROSS JOIN g3), g4\", fileNode);\n }",
"protected FetchJoinInformation[] getFetchJoins() {\n\t\treturn new FetchJoinInformation[] {};\n\t}",
"public boolean autoJoinAllowed() {\n return _autoJoin;\n }",
"private boolean canJoinTuples() {\n if (predicate == null)\n return true;\n\n environment.clear();\n environment.addTuple(leftSchema, leftTuple);\n environment.addTuple(rightSchema, rightTuple);\n\n return predicate.evaluatePredicate(environment);\n }",
"@Override\n\tpublic void onJoinFailed() {\n\n\t}",
"public void testMember(){\n\r\n parser.sqltext = \"select f from t1\";\r\n assertTrue(parser.parse() == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getKind() == TBaseType.join_source_fake );\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().toString().compareToIgnoreCase(\"t1\") == 0);\r\n\r\n parser.sqltext = \"select f from t as t1 join t2 on t1.f1 = t2.f1\";\r\n assertTrue(parser.parse() == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getKind() == TBaseType.join_source_table );\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().toString().compareToIgnoreCase(\"t\") == 0);\r\n assertTrue(parser.sqlstatements.get(0).joins.getJoin(0).getTable().getAliasClause().toString().compareToIgnoreCase(\"t1\") == 0);\r\n\r\n\r\n parser.sqltext = \"select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1 ) as a_join join b on a_join.f1 = b.f1;\";\r\n assertTrue(parser.parse() == 0);\r\n TJoin lcJoin = parser.sqlstatements.get(0).joins.getJoin(0);\r\n //System.out.println(lcJoin.getKind());\r\n assertTrue(lcJoin.getKind() == TBaseType.join_source_join );\r\n\r\n assertTrue(lcJoin.getJoin().toString().compareToIgnoreCase(\"(a as a_alias left join a1 on a1.f1 = a_alias.f1 )\") == 0);\r\n assertTrue(lcJoin.getJoin().getAliasClause().toString().compareToIgnoreCase(\"a_join\") == 0);\r\n assertTrue(lcJoin.getJoin().getJoinItems().getJoinItem(0).getJoinType() == EJoinType.left);\r\n\r\n assertTrue(lcJoin.getJoinItems().getJoinItem(0).getJoinType() == EJoinType.join);\r\n\r\n parser.sqltext = \"select a_join.f1 from (a as a_alias left join a1 on a1.f1 = a_alias.f1 ) as a_join\";\r\n assertTrue(parser.parse() == 0);\r\n TJoin lcJoin1 = parser.sqlstatements.get(0).joins.getJoin(0);\r\n assertTrue(lcJoin1.getKind() == TBaseType.join_source_join );\r\n assertTrue(lcJoin1.getJoin().toString().compareToIgnoreCase(\"(a as a_alias left join a1 on a1.f1 = a_alias.f1 )\") == 0);\r\n assertTrue(lcJoin1.getJoin().getAliasClause().toString().compareToIgnoreCase(\"a_join\") == 0);\r\n\r\n }",
"@Test(timeout = 4000)\n public void test13() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.innerJoin(\"CONTAINER ~-1T&NQX{&OP~@\", (String[]) null, \"CONTAINER ~-1T&NQX{&OP~@\", \"CONTAINER ~-1T&NQX{&OP~@\", (String[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"private boolean isTable(ElementType elementType)\n {\n\n return (!elementType.children.isEmpty() ||\n !elementType.attributes.isEmpty());\n }",
"@Test\n public void testSqlExistsNoForeignRestriction() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED\n )\n );\n\n Set<Car> results = asSet(cars.retrieve(carsQuery));\n\n assertEquals(\"should have 3 results\", 3, results.size());\n assertTrue(\"results should contain car1\", results.contains(car1));\n assertTrue(\"results should contain car4\", results.contains(car4));\n assertTrue(\"results should contain car5\", results.contains(car5));\n }",
"Join createJoin();",
"@Test\n\tpublic void oneToManyNoBind() {\n\t\tSystem.out.println(\"============oneToManyNoBind1=========\");\n\t\tUser u = new User();\n\t\tEmail e = new Email();\n\t\tList<User> users = Dao.queryForEntityList(User.class, select(), u.all(), \",\", e.all(), from(), u.table(), \",\",\n\t\t\t\te.table(), \" where \", oneToMany(), u.ID(), \"=\", e.UID(), bind());\n\t\tfor (User user : users) {\n\t\t\tSystem.out.println(user.getUserName());\n\t\t\tSet<Email> emails = user.getChildNodeSet(Email.class);\n\t\t\tfor (Email email : emails) {\n\t\t\t\tSystem.out.println(\"\\t\" + email.getEmailName());\n\t\t\t\tAssert.assertTrue(user == email.getParentNode(User.class));\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic boolean isJoinedToTransaction() {\n\t\treturn false;\n\t}",
"@Test\n public void testMixedJoin2() throws Exception {\n String sql = \"SELECT * FROM g1 cross join (g2 cross join g3), g4, g5 cross join g6\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, 1, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n \n Node jpNode2 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n \n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 2, \"g4\");\n\n Node jpNode3 = verify(fromNode, From.CLAUSES_REF_NAME, 3, JoinPredicate.ID);\n verifyJoin(jpNode3, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g5\");\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g6\");\n \n verifySql(\"SELECT * FROM g1 CROSS JOIN (g2 CROSS JOIN g3), g4, g5 CROSS JOIN g6\", fileNode);\n }",
"private boolean findMappedBy(DeployBeanPropertyAssocMany<?> prop) {\n // this is the entity bean type - that owns this property\n Class<?> owningType = prop.getOwningType();\n Set<String> matchSet = new HashSet<>();\n\n // get the bean descriptor that holds the mappedBy property\n DeployBeanDescriptor<?> targetDesc = targetDescriptor(prop);\n List<DeployBeanPropertyAssocOne<?>> ones = targetDesc.propertiesAssocOne();\n for (DeployBeanPropertyAssocOne<?> possibleMappedBy : ones) {\n Class<?> possibleMappedByType = possibleMappedBy.getTargetType();\n if (possibleMappedByType.equals(owningType)) {\n prop.setMappedBy(possibleMappedBy.getName());\n matchSet.add(possibleMappedBy.getName());\n }\n }\n\n if (matchSet.isEmpty()) {\n // this is a unidirectional relationship\n // ... that is no matching property on the 'detail' bean\n return false;\n }\n if (matchSet.size() == 1) {\n // all right with the world\n prop.clearTableJoin();\n return true;\n }\n if (matchSet.size() == 2) {\n // try to find a match implicitly using a common naming convention\n // e.g. List<Bug> loggedBugs; ... search for \"logged\" in matchSet\n String name = prop.getName();\n\n // get the target type short name\n String targetType = prop.getTargetType().getName();\n String shortTypeName = targetType.substring(targetType.lastIndexOf('.') + 1);\n\n // name includes (probably ends with) the target type short name?\n int p = name.indexOf(shortTypeName);\n if (p > 1) {\n // ok, get the 'interesting' part of the property name\n // That is the name without the target type\n String searchName = name.substring(0, p).toLowerCase();\n\n // search for this in the possible matches\n for (String possibleMappedBy : matchSet) {\n String possibleLower = possibleMappedBy.toLowerCase();\n if (possibleLower.contains(searchName)) {\n // we have a match\n prop.setMappedBy(possibleMappedBy);\n return true;\n }\n }\n }\n }\n // multiple options so should specify mappedBy property\n String msg = \"Error on \" + prop + \" missing mappedBy.\";\n msg += \" There are [\" + matchSet.size() + \"] possible properties in \" + targetDesc;\n msg += \" that this association could be mapped to. Please specify one using \";\n msg += \"the mappedBy attribute on @OneToMany.\";\n throw new PersistenceException(msg);\n }",
"public void customerJoins(Customer cust);",
"public void testJoin() {\n\n\t\t\tSystem.out.println(\"\\nSELECT first,last,street,city,state,zip\" + \" FROM people, address\"\n\t\t\t\t\t+ \" WHERE people.addrId = address.addrId\");\n\n\t\t\t// Collection version chains to String[] version,\n\t\t\t// so this code tests both:\n\t\t\tList columns = new ArrayList();\n\t\t\tcolumns.add(\"first\");\n\t\t\tcolumns.add(\"last\");\n\t\t\tcolumns.add(\"street\");\n\t\t\tcolumns.add(\"city\");\n\t\t\tcolumns.add(\"state\");\n\t\t\tcolumns.add(\"zip\");\n\n\t\t\tList tables = new ArrayList();\n\t\t\ttables.add(address);\n\n\t\t\tTable result = // WHERE people.addrID = address.addrID\n\t\t\t\t\tpeople.select(new Selector.Adapter() {\n\t\t\t\t\t\tpublic boolean approve(Cursor[] tables) {\n\t\t\t\t\t\t\treturn tables[0].column(\"addrId\").equals(tables[1].column(\"addrId\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}, columns, tables);\n\n\t\t\tprint(result);\n\t\t\tSystem.out.println(\"\");\n\n\t\t\t// Now test a three-way join\n\t\t\t//\n\t\t\tSystem.out.println(\"\\nSELECT first,last,street,city,state,zip,text\" + \" FROM people, address, third\"\n\t\t\t\t\t+ \" WHERE (people.addrId = address.addrId)\" + \" AND (people.addrId = third.addrId)\");\n\n\t\t\tTable third = TableFactory.create(\"third\", new String[] { \"addrId\", \"text\" });\n\t\t\tthird.insert(new Object[] { \"1\", \"addrId=1\" });\n\t\t\tthird.insert(new Object[] { \"2\", \"addrId=2\" });\n\n\t\t\tresult = people.select(new Selector.Adapter() {\n\t\t\t\tpublic boolean approve(Cursor[] tables) {\n\t\t\t\t\treturn (tables[0].column(\"addrId\").equals(tables[1].column(\"addrId\"))\n\t\t\t\t\t\t\t&& tables[0].column(\"addrId\").equals(tables[2].column(\"addrId\")));\n\t\t\t\t}\n\t\t\t},\n\n\t\t\t\t\tnew String[] { \"last\", \"first\", \"state\", \"text\" }, new Table[] { address, third });\n\n\t\t\tSystem.out.println(result.toString() + \"\\n\");\n\t\t}",
"@Test(timeout = 4000)\n public void test133() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.innerJoin((String) null, (String[]) null, \"a6+0S\", \"a6+0S\", (String[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"@Override\n\t\tpublic boolean hasRelationship() {\n\t\t\treturn false;\n\t\t}",
"private void handleJoinColumns(JsonNode propertyNode, JAnnotationUse jAnnotationUse, String annotationKey) {\n if (propertyNode.has(JpaConstants.JOIN_COLUMNS)) {\n JsonNode node = propertyNode.get(annotationKey);\n if (Objects.isNull(node)) {\n return;\n }\n\n // Create Join Column\n JAnnotationUse joinColumn = jAnnotationUse.annotationParam(annotationKey, JoinColumn.class);\n // Get name value\n if (node.has(JpaConstants.NAME)) {\n String joinColumnName = node.get(JpaConstants.NAME).asText();\n joinColumn.param(JpaConstants.NAME, joinColumnName);\n }\n // Get REFERENCED_COLUMN_NAME value and append\n if (node.has(JpaConstants.REFERENCED_COLUMN_NAME)) {\n joinColumn.param(JpaConstants.REFERENCED_COLUMN_NAME, node.get(JpaConstants.REFERENCED_COLUMN_NAME).asText());\n }\n }\n }",
"@Test(timeout = 4000)\n public void test134() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.leftJoin(\"deletesetci\", (String[]) null, \"deletesetci\", \"BouncyCastleProvider\", (String[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }",
"public static boolean onlyBroadcast(AbstractPhysicalJoin join) {\n return join.getJoinType().isCrossJoin();\n }",
"public abstract boolean hasMapped(Edge queryEdge);",
"@Override\n\tpublic boolean ignoreForeignItems() {\n\t\treturn false;\n\t}",
"default boolean areRelated(Triple... elements) {\n return witnesses(elements).anyMatch(x -> true);\n }",
"@Override\n\tpublic boolean isAssociatedEntityField(String field) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean ignoreForeignItems() {\n\t\treturn true;\n\t}",
"@Test\r\n public void testLeftJoinWhenAntonymHaveAllKeysMatchWithSynonym() {\r\n synonym.put(\"fond\", \"enamored\");\r\n synonym.put(\"wrath\", \"anger\");\r\n synonym.put(\"diligent\", \"employed\");\r\n synonym.put(\"guide\", \"usher\");\r\n\r\n antonym.put(\"fond\", \"averse\");\r\n antonym.put(\"wrath\", \"delight\");\r\n antonym.put(\"diligent\", \"idle\");\r\n antonym.put(\"guide\", \"follow\");\r\n\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{ {\"diligent\", \"employed\", \"idle\"},\r\n {\"wrath\", \"anger\", \"delight\"},\r\n {\"guide\", \"usher\", \"follow\"},\r\n {\"fond\", \"enamored\", \"averse\"} };\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"@Test\n\tpublic void oneToManyNoBind2() {\n\t\tSystem.out.println(\"============oneToManyNoBind2=========\");\n\t\tUser u = new User();\n\t\tEmail e = new Email();\n\t\tList<Email> emails = Dao.queryForEntityList(Email.class, select(), u.all(), \",\", e.all(), from(), u.table(),\n\t\t\t\t\",\", e.table(), \" where \", oneToMany(), u.ID(), \"=\", e.UID(), bind());\n\t\tfor (Email email : emails) {\n\t\t\tSystem.out.println(email.getEmailName());\n\t\t\tUser user = email.getParentNode(User.class);\n\t\t\tSystem.out.println(\"\\t\" + user.getUserName());\n\t\t}\n\t}",
"@Override\n @Test\n public void testQuery_advancedRankingWithJoin() throws Exception { }",
"public static int numJoinTypes() {\n return 3;\n }",
"public interface ISQLiteJoinTableCreator {\n\n}",
"@Test\n public void testSqlExistsWithForeignRestriction() {\n Query<Car> carsQuery = and(\n in(Car.FEATURES, \"sunroof\", \"convertible\"),\n existsIn(garages,\n Car.NAME,\n Garage.BRANDS_SERVICED,\n equal(Garage.LOCATION, \"Dublin\")\n )\n );\n\n Set<Car> results = asSet(cars.retrieve(carsQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain car1\", results.contains(car1));\n assertTrue(\"results should contain car4\", results.contains(car4));\n }",
"abstract protected Object joinClause(Object o1, Object o2);",
"@Test\r\n\tpublic void getRelatedTablesArrayEmpty() {\r\n\t\tassertEquals(\"relatedTables should be empty\", 0, testObj.getRelatedTablesArray().length);\r\n\t}",
"@Test\n public void testMultiCrossJoin2() throws Exception {\n String sql = \"SELECT * FROM (g1 cross join g2) cross join (g3 cross join g4)\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode2 = verify(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode3 = verify(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode3, JoinTypeTypes.JOIN_CROSS);\n \n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g2\");\n\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g3\");\n verifyUnaryFromClauseGroup(jpNode3, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g4\");\n \n verifySql(\"SELECT * FROM (g1 CROSS JOIN g2) CROSS JOIN (g3 CROSS JOIN g4)\", fileNode);\n }",
"@Test\n public void testMultiCrossJoin() throws Exception {\n String sql = \"SELECT * FROM (g1 cross join g2) cross join g3\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n\n verify(selectNode, Select.SYMBOLS_REF_NAME, MultipleElementSymbol.ID);\n\n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n\n Node jpNode1 = verify(fromNode, From.CLAUSES_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode1, JoinTypeTypes.JOIN_CROSS);\n\n Node jpNode2 = verify(jpNode1, JoinPredicate.LEFT_CLAUSE_REF_NAME, JoinPredicate.ID);\n verifyJoin(jpNode2, JoinTypeTypes.JOIN_CROSS);\n\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.LEFT_CLAUSE_REF_NAME, \"g1\");\n verifyUnaryFromClauseGroup(jpNode2, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g2\");\n verifyUnaryFromClauseGroup(jpNode1, JoinPredicate.RIGHT_CLAUSE_REF_NAME, \"g3\");\n \n verifySql(\"SELECT * FROM (g1 CROSS JOIN g2) CROSS JOIN g3\", fileNode);\n }",
"public void setJoin(boolean canJoin) {\n this.canJoin = canJoin;\n }",
"@Override\n public boolean supportsUpdateSetAssociationId() {\n return false;\n }",
"@Test\r\n public void testLeftJoinWhenBothHashMapAreEmpty() {\r\n String[][] result = leftJoin(synonym, antonym);\r\n String[][] expected = new String[][]{};\r\n\r\n assertArrayEquals(expected, result);\r\n }",
"public Object caseJoin(Join object) {\r\n\t\treturn null;\r\n\t}",
"public interface IEntry extends IRelation {\r\n\r\n String getJoinColumnName();\r\n\r\n\r\n void setJoinColumnName(String joinColumnName);\r\n\r\n\r\n String getJoinAttributeName();\r\n\r\n\r\n void setJoinAttributeName(String joinAttributeName);\r\n\r\n\r\n String getJoinEntityIdentifier();\r\n\r\n\r\n void setJoinEntityIdentifier(String joinEntityIdentifier);\r\n\r\n \r\n Entity getJoinEntity();\r\n}",
"@Override\n\tprotected boolean chooseTargetRels() throws Exception {\n\t\tList<RelationType> rels = new ArrayList<RelationType> ();\n\t\tint numTries = 0;\n\t\tint created = 0;\n\t\tboolean found = false;\n\t\tRelationType rel;\n\t\t//MN wanted to preserve the initial values of numOfTgtTables and attsPerTargetRel - 26 April 2014\n\t\tString[][] attrs = new String[numOfTgtTables][];\n\t\t\t\n\t\t// first choose one that has attsPerTargetRel\n\t\twhile(created < numOfTgtTables) {\n\t\t\tfound = true;\n\t\t\t\t\n\t\t\t//MN check the following again (it is really tricky) - 26 April 2014\n\t\t\tif(created == 0){\n\t\t\t\tif(keySize < attsPerTargetRel)\n\t\t\t\t\trel = getRandomRel(false, attsPerTargetRel);\n\t\t\t\telse\n\t\t\t\t\t//MN we use minimum to increase reusability - 3 May 2014\n\t\t\t\t\trel = getRandomRel(false, keySize);\n\t\t\t}\n\t\t\telse{\n\t\t\t\trel = getRandomRel(false, attsPerTargetRel+keySize, attsPerTargetRel+keySize);\n\t\t\t\t\t\n\t\t\t\tif(rel != null){\n\t\t\t\t\tfor(int j=0; j<rels.size(); j++)\n\t\t\t\t\t\tif(rels.get(j).getName().equals(rel.getName()))\n\t\t\t\t\t\t\tfound = false;\n\t\t\t\t}else{\n\t\t\t\t\tfound = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\n\t\t\t//MN VPISA cares about primary key - 26 April 2014\n\t\t\tif(found && !rel.isSetPrimaryKey()) {\n\t\t\t\t//MN set to false because this is target relation (Am I right?) - 3 May 2014\n\t\t\t\tint [] primaryKeyPos = new int [keySize];\n\t\t\t\tfor(int i=0; i<keySize; i++)\n\t\t\t\t\tprimaryKeyPos[i] = i;\n\t\t\t\tfac.addPrimaryKey(rel.getName(), primaryKeyPos, false);\n\t\t\t}\n\t\t\t\t\n\t\t\tif(found && rel.isSetPrimaryKey()){\n\t\t\t\t//MN keySize should be keySize and key attrs should be the first attrs- 3 May 2014\n\t\t\t\tint[] pkPos = model.getPKPos(rel.getName(), false);\n\t\t\t\t\t\n\t\t\t\tif(pkPos[0] != 0)\n\t\t\t\t\tfound = false;\n\t\t\t}\n\t\t\t\t\n\t\t\t// found a fitting relation\n\t\t\tif (found) {\n\t\t\t\trels.add(rel);\n\t\t\t\tm.addTargetRel(rel);\n\n\t\t\t\tattrs[created] = new String[rel.sizeOfAttrArray()];\n\t\t\t\tfor(int i = 0; i < rel.sizeOfAttrArray(); i++)\n\t\t\t\t\tattrs[created][i] = rel.getAttrArray(i).getName();\n\t\t\t\t\t\n\t\t\t\t//MN attsPerTargetRel should be set (check that) (it is really tricky) - 26 April 2014\n\t\t\t\tif(created == 0){\n\t\t\t\t\tkeySize = model.getPKPos(rel.getName(), false).length; \n\t\t\t\t\tattsPerTargetRel = rel.getAttrArray().length- keySize;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcreated++;\n\t\t\t\tnumTries = 0;\n\t\t\t}\n\t\t\t// not found, have exhausted number of tries? then create new one - path tested 1 May 2014\n\t\t\telse {\n\t\t\t\tnumTries++;\n\t\t\t\tif (numTries >= MAX_NUM_TRIES)\n\t\t\t\t{\n\t\t\t\t\tnumTries = 0;\n\t\t\t\t\tattrs[created] = new String[attsPerTargetRel+keySize];\n\t\t\t\t\tfor(int j = 0; j < attsPerTargetRel+keySize; j++)\n\t\t\t\t\t\tattrs[created][j] = randomAttrName(created, j);\n\t\t\t\t\t\t\n\t\t\t\t\t// create the relation\n\t\t\t\t\tString relName = randomRelName(created);\n\t\t\t\t\trels.add(fac.addRelation(getRelHook(created), relName, attrs[created], false));\n\t\t\t\t\t\t\n\t\t\t\t\t// primary key should be set and its size should be 1- 26 April 2014\n\t\t\t\t\tint [] primaryKeyPos = new int [keySize];\n\t\t\t\t\tfor(int i=0; i<keySize; i++)\n\t\t\t\t\t\tprimaryKeyPos[i] = i;\n\t\t\t\t\tfac.addPrimaryKey(relName, primaryKeyPos, false);\n\t\t\t\t\t\t\n\t\t\t\t\t//MN should I add it to TargetRel? - 26 April 2014\n\t\t\t\t\t//m.addTargetRel(rels.get(rels.size()-1));\n\t\t\t\t\t\t\n\t\t\t\t\tcreated++;\n\t\t\t\t\tnumTries = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\n\t\t//MN set attrRemainder and numOfSrcTables - 26 April 2014\n\t\tnumOfSrcTblAttr= (numOfTgtTables * attsPerTargetRel) + keySize; \n\t\t//MN considering only this case - 26 April 2014\n\t\tattrRemainder =0;\n\t\t\t\n\t\t//MN foreign key should be set - 26 April 2014\n\t\t//MN should be fixed - 24 June 2014\n\t\taddFKsNoReuse();\n\t\t\n\t\t//MN - 13 May 2014\n\t\ttargetReuse = true;\n\t\t//MN\n\t\treturn true;\n\t}",
"protected void sequence_FULL_INNER_JOIN_LEFT_OUTER_RIGHT_joins(ISerializationContext context, joins semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"@Override\n public boolean requiresSchemaQualifiedTableNames(final SqlGenerationContext context) {\n return true;\n }",
"@Test\n public void testSqlExistsMultiValuedWithForeignRestriction() {\n Query<Garage> garagesQuery = existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME,\n equal(Car.FEATURES, \"convertible\")\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain garage2\", results.contains(garage2));\n assertTrue(\"results should contain garage5\", results.contains(garage5));\n }",
"@Test\r\n\tpublic void addRelatedTable() {\r\n\t\ttestObj.addRelatedTable(1);\r\n\t\ttestObj.makeArrays();\r\n\t\tassertEquals(\"relatedTables size should be 1\", 1, testObj.getRelatedTablesArray().length);\r\n\t}",
"@Override\n\t\tpublic boolean hasRelationship(RelationshipType... types) {\n\t\t\treturn false;\n\t\t}",
"public void addJoinIfNotPresent(String joinPart) {\r\n\t\tif (this.joins.toLowerCase().indexOf(joinPart.toLowerCase())==-1) {\r\n\t\t\taddJoinOn(joinPart);\r\n\t\t}\r\n\t}",
"public boolean supportsOuterJoinForUpdate() {\n \t\treturn true;\n \t}"
] | [
"0.64476895",
"0.63116044",
"0.58323705",
"0.58018047",
"0.57777184",
"0.57749414",
"0.5701947",
"0.56552297",
"0.5585271",
"0.55600226",
"0.5506672",
"0.5497707",
"0.5492782",
"0.547106",
"0.54305166",
"0.5385605",
"0.5373586",
"0.5372331",
"0.53118384",
"0.52868843",
"0.5270566",
"0.5227372",
"0.52166235",
"0.51916224",
"0.5182619",
"0.51741976",
"0.517184",
"0.5147066",
"0.5146675",
"0.51443446",
"0.5110736",
"0.50874484",
"0.5078096",
"0.5068379",
"0.50532323",
"0.5051823",
"0.50252235",
"0.50013334",
"0.49961233",
"0.49580714",
"0.49547586",
"0.49541438",
"0.49482137",
"0.49213636",
"0.49191213",
"0.49106875",
"0.49099293",
"0.4908744",
"0.4899901",
"0.48931783",
"0.48872787",
"0.48803616",
"0.48788145",
"0.48780948",
"0.48629394",
"0.48492137",
"0.4835317",
"0.4824031",
"0.4823622",
"0.48215133",
"0.48059177",
"0.4796672",
"0.47830462",
"0.47816637",
"0.47799525",
"0.47565365",
"0.47534558",
"0.47531655",
"0.47382915",
"0.4733739",
"0.47273967",
"0.47225794",
"0.47217026",
"0.47192442",
"0.47148535",
"0.47129482",
"0.4712246",
"0.4697196",
"0.46771818",
"0.4658718",
"0.46511292",
"0.4639909",
"0.46382144",
"0.46356702",
"0.4635636",
"0.46333024",
"0.46280992",
"0.46210542",
"0.46172336",
"0.46114945",
"0.4601508",
"0.45953965",
"0.4594449",
"0.4594073",
"0.45829138",
"0.4572299",
"0.45715773",
"0.456632",
"0.45616361",
"0.454516"
] | 0.48220685 | 59 |
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `readonly` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared. string disk = 1; | java.lang.String getDisk(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDisk(String disk) {\n this.disk = disk == null ? null : disk.trim();\n }",
"public String getDisk() {\n return disk;\n }",
"com.google.protobuf.ByteString getDiskBytes();",
"public static void create(Disks disk){\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tHibernateUtilMastere.getSession().save(disk);\r\n\t\t\tHibernateUtilMastere.getSession().getTransaction().commit();\r\n\t\t} catch(HibernateException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void setIsBootDisk(Boolean isBootDisk) {\n this.isBootDisk = isBootDisk;\n }",
"String getDiskFileName();",
"public int getDisk()\n {\n return this.disk;\n }",
"public void setDiskFileName(String diskFileName) {\n this.diskFileName = diskFileName == null ? null : diskFileName.trim();\n }",
"public void startup( RawDisk disk) {\n\t\tthis.tempDisk = disk;\t\n }",
"public ReplicationConfigurationReplicatedDisk withIsBootDisk(Boolean isBootDisk) {\n setIsBootDisk(isBootDisk);\n return this;\n }",
"public void format( RawDisk disk) {\n \tthis.tempDisk.format();\n }",
"public long\n getDisk()\n {\n return pDisk;\n }",
"public String getDiskFileName() {\n return diskFileName;\n }",
"@Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskApi getDiskApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);",
"java.util.List<com.google.cloud.compute.v1.SavedAttachedDisk> getDisksList();",
"public String getVolumeDiskId() {\n return this.volumeDiskId;\n }",
"@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource getAzureDisk();",
"String getMountedDiskImageFileUri() {\n return mountedDiskImageFileUri;\n }",
"public String diskAccessId() {\n return this.diskAccessId;\n }",
"public Boolean getIsBootDisk() {\n return this.isBootDisk;\n }",
"public Boolean isBootDisk() {\n return this.isBootDisk;\n }",
"public void changeDisk(){\n if(isFull==true) {\n if (this.type == TYPE.WHITE) {\n this.type = TYPE.BLACK;\n } else {\n type = TYPE.WHITE;\n }\n }\n return;\n }",
"java.util.List<? extends com.google.cloud.compute.v1.SavedAttachedDiskOrBuilder>\n getDisksOrBuilderList();",
"public SnapshotUpdate setDiskSizeGB(Integer diskSizeGB) {\n this.diskSizeGB = diskSizeGB;\n return this;\n }",
"int getDiskNum();",
"com.google.protobuf.ByteString getMountPathBytes();",
"com.google.cloud.compute.v1.SavedAttachedDisk getDisks(int index);",
"public void setVolumeDiskId(String volumeDiskId) {\n this.volumeDiskId = volumeDiskId;\n }",
"public void setDiskControllerType(java.lang.String diskControllerType) {\r\n this.diskControllerType = diskControllerType;\r\n }",
"com.google.cloud.compute.v1.SavedAttachedDiskOrBuilder getDisksOrBuilder(int index);",
"public void setSystemDisk(SystemDisk SystemDisk) {\n this.SystemDisk = SystemDisk;\n }",
"void mountDiskImage(String diskImageFileUri, boolean isReadOnly) throws Exception {\n File diskImageFile = new File(new URI(diskImageFileUri));\n // Check disk image size\n if (diskImageFile.length() != BYTES_PER_DISK) {\n throw new IllegalArgumentException(\"Invalid disk image size: \" +\n diskImageFile.length());\n }\n if (isDiskImageMounted()) {\n unmountDiskImage();\n }\n isMountedDiskImageReadOnly = isReadOnly;\n mountedDiskImageFile = new RandomAccessFile(diskImageFile, isReadOnly ? \"r\" : \"rw\");\n mountedDiskImageBuffer = mountedDiskImageFile.getChannel().map(isReadOnly\n ? FileChannel.MapMode.READ_ONLY : FileChannel.MapMode.READ_WRITE,\n 0, BYTES_PER_DISK);\n this.mountedDiskImageFileUri = diskImageFileUri;\n // Reload track data\n setCurrentTrack(getCurrentTrackNumber(), getCurrentTrackSide());\n }",
"@Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskTypeApi getDiskTypeApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);",
"@JsonCreator\n public static DiskMode fromString(String name) {\n return fromString(name, DiskMode.class);\n }",
"public interface VirtualDisk {\n\n /**\n * Returns the name of the image; usually it's original\n * filename, without the suffix.\n *\n * @return The floppy disk image name.\n */\n String getName();\n\n /**\n * Returns the root directory folder of this virtual\n * floppy disk image.\n *\n * @return The root directory contents.\n */\n VirtualDirectory getRootContents();\n\n /**\n * Returns the type of this floppy disk image.\n *\n * @return The floppy disk image type.\n */\n ImageType getType();\n\n /**\n * Allows to retrieve one of the virtual files in this\n * virtual disk, based on its UUID.\n *\n * @param uuid The UUID value.\n * @return The file, or null, if no file with that UUID exists.\n */\n VirtualFile getFile(String uuid);\n\n /**\n * Exports the contents of this floppy disk image to a\n * local file system directory, retaining the relative\n * directory structure of the original image.\n * <p>\n * NOTE 1: In case of problems with the extraction caused by\n * weird file names causing issues with the rules of the local\n * file system, try exporting the contents as .zip archive\n * instead. That may work in cases where a plain file export\n * does not.\n * <p>\n * NOTE 2: If some file entries cannot be extracted, the extraction\n * will still be carried out for everything else.\n *\n * @param targetDirectory The target directory where to extract the contents.\n * @throws IOException If the extraction failed.\n */\n void exportToDirectory(File targetDirectory) throws IOException;\n\n void exportAsZip(File zipFile) throws IOException;\n\n void exportAsZip(OutputStream target) throws IOException;\n}",
"public static void setDiskCacheEnable(boolean enable) {\n sDiskCacheEnable = enable;\n }",
"public final void mT__17() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = T__17;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// sell/input/Matrix.g:13:7: ( 'disk' )\n\t\t\t// sell/input/Matrix.g:13:9: 'disk'\n\t\t\t{\n\t\t\tmatch(\"disk\"); \n\n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}",
"java.lang.String getMountPath();",
"public OSDiskImageEncryption osDiskImage() {\n return this.osDiskImage;\n }",
"public HWDiskStore(oshi.hardware.HWDiskStore diskStore) {\n this.diskStore = new oshi.hardware.HWDiskStore(diskStore);\n }",
"public HWDiskStore() {\n this.diskStore = new oshi.hardware.HWDiskStore();\n }",
"public RLDiskDrive() {\n }",
"public fileServer(String storage, String media) {\n if (storage == null || storage.equals(\"\") || storage.equals(\" \")) {\n throw new IllegalArgumentException(\"storage must be provided\");\n }\n if (media == null || media.equals(\"\") || media.equals(\" \")) {\n throw new IllegalArgumentException(\"media must be provided\");\n }\n if (tera < 0 || tera > 1024) {\n throw new NumberFormatException(\"Must be between 0 - 1024\");\n }\n\n this.storage = storage;\n this.media = media;\n this.tera = tera;\n }",
"Update withDiskSizeGB(Integer diskSizeGB);",
"public\n JobGetTotalDiskRsp\n (\n TaskTimer timer, \n long disk\n )\n { \n super(timer);\n\n if(disk < 0) \n throw new IllegalArgumentException(\"The disk size cannot be negative!\");\n pDisk = disk;\n\n LogMgr.getInstance().logAndFlush\n (LogMgr.Kind.Net, LogMgr.Level.Finest,\n \"JobMgr.getTotalDisk():\\n \" + getTimer());\n }",
"boolean isDiskImageMounted() {\n return (getMountedDiskImageFileUri() != null);\n }",
"public static String mount() {\n\n String mount = stringValue(\"treefs.mount\");\n if(isNullOrEmpty(mount)) {\n // default home location\n mount = home() + File.separator + \"treefs-data\";\n } else {\n mount = home() + File.separator + mount;\n }\n\n return mount;\n }",
"public Disk(int size){\n this.size = size;\n }",
"public DescribeDedicatedBlockStorageClusterDisksResponse describeDedicatedBlockStorageClusterDisksWithOptions(DescribeDedicatedBlockStorageClusterDisksRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {\n com.aliyun.teautil.Common.validateModel(request);\n java.util.Map<String, Object> query = new java.util.HashMap<>();\n if (!com.aliyun.teautil.Common.isUnset(request.dbscId)) {\n query.put(\"DbscId\", request.dbscId);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) {\n query.put(\"MaxResults\", request.maxResults);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) {\n query.put(\"NextToken\", request.nextToken);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.regionId)) {\n query.put(\"RegionId\", request.regionId);\n }\n\n com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(\n new TeaPair(\"query\", com.aliyun.openapiutil.Client.query(query))\n ));\n com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(\n new TeaPair(\"action\", \"DescribeDedicatedBlockStorageClusterDisks\"),\n new TeaPair(\"version\", \"2021-07-30\"),\n new TeaPair(\"protocol\", \"HTTPS\"),\n new TeaPair(\"pathname\", \"/\"),\n new TeaPair(\"method\", \"POST\"),\n new TeaPair(\"authType\", \"AK\"),\n new TeaPair(\"style\", \"RPC\"),\n new TeaPair(\"reqBodyType\", \"formData\"),\n new TeaPair(\"bodyType\", \"json\")\n ));\n return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeDedicatedBlockStorageClusterDisksResponse());\n }",
"public void setStorage(String storage) {\n if (storage == null || storage.equals(\"\") || storage.equals(\" \")) {\n throw new IllegalArgumentException(\"storage must be provided\");\n }\n this.storage = storage;\n }",
"public int mountVolume(String mountPoint) throws RemoteException;",
"public export.serializers.avro.DeviceInfo.Builder setSector(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.sector = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"public static disk_adapter get(nitro_service client, disk_adapter resource) throws Exception\r\n\t{\r\n\t\tresource.validate(\"get\");\r\n\t\treturn ((disk_adapter[]) resource.get_resources(client))[0];\r\n\t}",
"VolumeAttachment attachVolumeToServerAsDevice(String volumeId, String serverId, String device);",
"public long getDiskUsage() {\n\t\treturn diskUsage;\n\t}",
"public DiskRestorePointProperties withDiskAccessId(String diskAccessId) {\n this.diskAccessId = diskAccessId;\n return this;\n }",
"public java.lang.String getDiskControllerType() {\r\n return diskControllerType;\r\n }",
"public native int getDiskIO();",
"private int getDisk_wrapper() {\n int result = WsResultType.Success;\n ArrayList<WsFolder> r_wsFolder = new ArrayList<WsFolder>();\n result = ClientWS.getInstance(mContext).getDisk(r_wsFolder);\n for (WsFolder ws_f : r_wsFolder) {\n CloudFile f = new CloudFile();\n f.setFileType(CloudFileType.TYPE_FOLDER);\n f.setRemote_id(ws_f.ID);\n f.setFilePath(ws_f.Name);\n mFolderList.add(f);\n }\n return result;\n }",
"public ServiceRecordDisk(final ServiceRecordDisk o)\r\n { \r\n this.records = o.records;\r\n this.recordsByMemberNum = o.recordsByMemberNum;\r\n this.recordsByProviderNum = o.recordsByProviderNum;\r\n }",
"public void mount(String mountKey);",
"String getSnapshotDiskFileName();",
"boolean isMountedDiskImageReadOnly() {\n return (isDiskImageMounted() && isMountedDiskImageReadOnly);\n }",
"public DiskRequest getRequest () { return this.request; }",
"private static String addNull(String bitDisk) {\n\t\tbitDisk = \"0\" + bitDisk;\n\t\treturn bitDisk;\n\t}",
"@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource getGcePersistentDisk();",
"public void setSector(java.lang.CharSequence value) {\n this.sector = value;\n }",
"public SystemDisk getSystemDisk() {\n return this.SystemDisk;\n }",
"public abstract void schedRequest (DiskRequest dr);",
"public static disk_adapter[] get(nitro_service client) throws Exception\r\n\t{\r\n\t\tdisk_adapter resource = new disk_adapter();\r\n\t\tresource.validate(\"get\");\r\n\t\treturn (disk_adapter[]) resource.get_resources(client);\r\n\t}",
"static void print_disk(int size){\n for(int i = 0; i < 5-size; i++)\n System.out.print(\" \");\n for(int i = 0; i < size; i++){\n if(i == size/2 && size%2 == 0)\n System.out.print(\"||--\");\n else if(i == size/2 && size%2 == 1)\n System.out.print(\"-||-\");\n else\n System.out.print(\"--\");\n }\n for(int i = 0; i < 5-size; i++)\n System.out.print(\" \");\n System.out.print(\"\\t\");\n }",
"public double getHardDisk()\n\t{\n\t\treturn hardDiskSize;\n\t}",
"public interface CompactDisk {\n void play();\n}",
"WithCreate withDiskSizeGB(Integer diskSizeGB);",
"public D64DiskImage( String filename, List<Sector> sectorList) {\n\n\t// Use the constructor of the base class.\n\tsuper( filename, sectorList);\n }",
"public final void getDiskInformation(DiskDeviceContext ctx, SrvDiskInfo info)\n throws IOException {\n\n // Check if there is static disk size information available\n \n if ( ctx.hasDiskInformation())\n info.copyFrom(ctx.getDiskInformation());\n \n // Check that the context is a JDBC context\n \n if ( ctx instanceof DBDeviceContext) {\n \n // Access the associated file loader class, if it implements the disk size interface then call the loader\n // to fill in the disk size details\n \n DBDeviceContext dbCtx = (DBDeviceContext) ctx;\n \n if ( dbCtx.getFileLoader() instanceof DiskSizeInterface) {\n \n // Pass the disk size request to the associated file loader\n \n DiskSizeInterface sizeInterface = (DiskSizeInterface) dbCtx.getFileLoader();\n \n sizeInterface.getDiskInformation(ctx, info);\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DBDiskDriver getDiskInformation() handed to file loader\");\n }\n }\n \n // Check if there is a quota manager, if so then get the current free space from the quota manager\n \n if ( ctx.hasQuotaManager()) {\n \n // Get the free space, in bytes, from the quota manager\n \n long freeSpace = ctx.getQuotaManager().getAvailableFreeSpace();\n \n // Convert the free space to free units\n \n long freeUnits = freeSpace / info.getUnitSize();\n info.setFreeUnits(freeUnits);\n }\n }",
"public ADisk(boolean format)\n { \n\t // build lock\n\t this.setFailureProb(0);\n ADisk_lock = new SimpleLock();\n waitLock = new SimpleLock();\n atranslist = new ActiveTransactionList();\n //initialize lists and logs\n wblist = new WriteBackList(this);\n commitDone = waitLock.newCondition();\n writebackDone = waitLock.newCondition();\n readDone = waitLock.newCondition();\n logReadDone = waitLock.newCondition();\n wbbarrier = waitLock.newCondition();\n commitBarrierSector = -1;\n commitBarrierTid = -1;\n writebackBarrierSector = -1;\n writebackBarrierTid = -1;\n readSector = -1;\n readTid = -1;\n logReadSector = -1;\n logReadTid = -1;\n wbbarrierSec = -1;\n wbbarrierTag = -1;\n \n\t d = null;\n\t try{\n\t d = new Disk(this);\n\t }\n\t catch(FileNotFoundException fnf){\n\t System.out.println(\"Unable to open disk file\");\n\t System.exit(-1);\n\t }\n\t \n\t //create writeback thread\n\t writebackthread = new WriteBackThread();\n try {\n\t if (format == true){\n\t \t lstatus = new LogStatus(this, false);\n\t \t \n\t \t ///wipe the disk\n\t \t /*byte[] blank = new byte[Disk.SECTOR_SIZE];\n\t \t for(int i = 0; i < Disk.SECTOR_SIZE; i++)\n\t \t \tblank[i] = 0x00;\n\t \t for(int i = 0; i < this.getNSectors(); i++){\n\t \t \tif(i == this.getNSectors() - 1){\n\t \t \t\tthis.commitBarrierSector = i;\n\t \t \t\tthis.commitBarrierTid = Disk.SECTOR_SIZE + 10;\n\t \t \t\td.addBarrier(); // must wait for the entire wipe write to be on disk\n\t \t \t}\n\t \t \td.startRequest(Disk.WRITE, Disk.SECTOR_SIZE+10, i, blank);\n\t \t }\n \t \tcommitWait();*/\n\t \t // We decided not to wipe the disk because the instructions were vague and it seems insanely inefficient to wipe the disk and there doesnt seem to be reason to wipe it. It also makes our tests run very slow. \n\t } \n\t else {\n\t \t //RECOVERY\n\t \t lstatus = new LogStatus(this, true);\n\t \t byte[] next = lstatus.recoverNext();\n\t while(next != null){\n\t \t Transaction temp = Transaction.parseLogBytesDebug(next, this);\n\t \t wblist.addCommitted(temp);\t \n\t \t next = lstatus.recoverNext();\n\t } \n\t }\n }\n catch(IOException e){\n\t\t\tSystem.out.println(\"IO exception\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n }\n catch(IllegalArgumentException e){\n\t\t\tSystem.out.println(\"Illegal Argument exception\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n }\n \n }",
"public void setHardDisk(double systemHardDisk)\n\t{\n\t\thardDiskSize = systemHardDisk;\n\t}",
"public DescribeDedicatedBlockStorageClusterDisksResponse describeDedicatedBlockStorageClusterDisks(DescribeDedicatedBlockStorageClusterDisksRequest request) throws Exception {\n com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();\n return this.describeDedicatedBlockStorageClusterDisksWithOptions(request, runtime);\n }",
"public EncryptionImages withDataDiskImages(List<DataDiskImageEncryption> dataDiskImages) {\n this.dataDiskImages = dataDiskImages;\n return this;\n }",
"public SuperBlock(int diskSize) {\n\n //Byte array to read the first disk block\n byte[] superBlock = new byte[Disk.blockSize];\n SysLib.rawread(0, superBlock);\n\n //Set our three variables from the block\n totalBlocks = SysLib.bytes2int(superBlock, 0);\n totalInodes = SysLib.bytes2int(superBlock, 4);\n freeList = SysLib.bytes2int(superBlock,8);\n\n //Check to see if we need to format the disk\n if(totalBlocks != diskSize && totalInodes < 1 && freeList < 2){\n totalBlocks = diskSize;\n format(64);\n }\n \n \n }",
"@Override\n public void updateWithReplica(StorageLocation replicaLocation) {\n File diskFile = null;\n try {\n diskFile = new File(replicaLocation.getUri());\n } catch (IllegalArgumentException e) {\n diskFile = null;\n }\n\n if (null == diskFile) {\n setDirInternal(null);\n } else {\n setDirInternal(diskFile.getParentFile());\n }\n }",
"public void setStorageServerDriver(SCStorageServerDriver driver);",
"public static String readDiskMemory(String address){\n\t\treturn memory.get(address);\n\t}",
"public MountRequest(String p){\n\t\tpath = p;\n\t}",
"Long diskSizeBytes();",
"public Disk modelToView(Disk d){\n\t\treturn new Disk(d.x/zoom,height-d.y/zoom,d.r/zoom);\n\t}",
"public int formatVolume(String mountPoint) throws RemoteException;",
"public static void setDiskCacheDir(String dir) {\n sDiskCacheDir = dir;\n }",
"public DiskEncryptionInfo withDiskEncryptionKeyInfo(DiskEncryptionKeyInfo diskEncryptionKeyInfo) {\n this.diskEncryptionKeyInfo = diskEncryptionKeyInfo;\n return this;\n }",
"@Override\n\tpublic void startUp() {\n\t\tSystem.out.println(\"disk startup!\");\n\n\t}",
"DiscFileSystemInfo getFileSystemInfo(String path) throws IOException;",
"public void setTurnDiskLocatorLedSupported(java.lang.Boolean turnDiskLocatorLedSupported) {\r\n this.turnDiskLocatorLedSupported = turnDiskLocatorLedSupported;\r\n }",
"public EC2Volume attachVolume(EC2Volume request) {\n EC2Volume resp = new EC2Volume();\n try {\n request.setDeviceId(mapDeviceToCloudDeviceId(request.getDevice()));\n CloudStackVolume vol = getApi().attachVolume(request.getId(), request.getInstanceId(), request.getDeviceId());\n if (vol != null) {\n resp.setAttached(vol.getAttached());\n resp.setCreated(vol.getCreated());\n resp.setDevice(request.getDevice());\n resp.setDeviceId(vol.getDeviceId());\n resp.setHypervisor(vol.getHypervisor());\n resp.setId(vol.getId());\n resp.setInstanceId(vol.getVirtualMachineId());\n resp.setSize(vol.getSize());\n resp.setSnapshotId(vol.getSnapshotId());\n resp.setState(vol.getState());\n resp.setType(vol.getVolumeType());\n resp.setVMState(vol.getVirtualMachineState());\n resp.setAttachmentState(mapToAmazonVolumeAttachmentState(vol.getVirtualMachineState()));\n resp.setZoneName(vol.getZoneName());\n }\n } catch (Exception e) {\n logger.error(\"EC2 AttachVolume - \", e);\n handleException(e);\n }\n return resp;\n }",
"static private void inputHardDiskSize(System_Y3872052 system) {\n\t\tdouble hdSize = Double.parseDouble(getInputData(\"Please provide the hard disk size, in GB\"));\n\t\tsystem.setHardDisk(hdSize);\n\t}",
"public void setRing(String path);",
"public static disk_adapter[] get_filtered(nitro_service service, String filter) throws Exception\r\n\t{\r\n\t\tdisk_adapter obj = new disk_adapter();\r\n\t\toptions option = new options();\r\n\t\toption.set_filter(filter);\r\n\t\tdisk_adapter[] response = (disk_adapter[]) obj.getfiltered(service, option);\r\n\t\treturn response;\r\n\t}",
"public StartDiskReplicaGroupResponse startDiskReplicaGroupWithOptions(StartDiskReplicaGroupRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {\n com.aliyun.teautil.Common.validateModel(request);\n java.util.Map<String, Object> query = new java.util.HashMap<>();\n if (!com.aliyun.teautil.Common.isUnset(request.clientToken)) {\n query.put(\"ClientToken\", request.clientToken);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.oneShot)) {\n query.put(\"OneShot\", request.oneShot);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.regionId)) {\n query.put(\"RegionId\", request.regionId);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.replicaGroupId)) {\n query.put(\"ReplicaGroupId\", request.replicaGroupId);\n }\n\n com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(\n new TeaPair(\"query\", com.aliyun.openapiutil.Client.query(query))\n ));\n com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(\n new TeaPair(\"action\", \"StartDiskReplicaGroup\"),\n new TeaPair(\"version\", \"2021-07-30\"),\n new TeaPair(\"protocol\", \"HTTPS\"),\n new TeaPair(\"pathname\", \"/\"),\n new TeaPair(\"method\", \"POST\"),\n new TeaPair(\"authType\", \"AK\"),\n new TeaPair(\"style\", \"RPC\"),\n new TeaPair(\"reqBodyType\", \"formData\"),\n new TeaPair(\"bodyType\", \"json\")\n ));\n return TeaModel.toModel(this.callApi(params, req, runtime), new StartDiskReplicaGroupResponse());\n }",
"public java.util.List<AttachedDisk> getFromAttachedDisks() {\n return fromAttachedDisks;\n }",
"private void moveDisk(int start,int end){\n\n System.out.println(\"Move disk from \"+start+ \" to \"+end);\n }"
] | [
"0.7743976",
"0.6753175",
"0.6292509",
"0.603951",
"0.5740002",
"0.55382645",
"0.55009204",
"0.5492795",
"0.5415784",
"0.54142267",
"0.53722787",
"0.53612006",
"0.53399366",
"0.533395",
"0.533187",
"0.5273443",
"0.5238664",
"0.51920706",
"0.5164652",
"0.51422596",
"0.51397544",
"0.5114429",
"0.51115566",
"0.508541",
"0.5081494",
"0.5045988",
"0.50099003",
"0.4960232",
"0.48758417",
"0.48673624",
"0.47643793",
"0.4719428",
"0.47188875",
"0.47079256",
"0.47045168",
"0.46939296",
"0.46895278",
"0.46858624",
"0.46557334",
"0.4645347",
"0.46094105",
"0.45310003",
"0.45011637",
"0.44804615",
"0.44736218",
"0.4472811",
"0.4458201",
"0.4444715",
"0.44384012",
"0.4425147",
"0.4421121",
"0.44073364",
"0.43991935",
"0.43960524",
"0.43868268",
"0.4385363",
"0.4373833",
"0.43681967",
"0.43594396",
"0.43546188",
"0.43471098",
"0.4307508",
"0.4288751",
"0.42858377",
"0.42723745",
"0.42694527",
"0.42587656",
"0.42490056",
"0.42253345",
"0.42227045",
"0.42226738",
"0.42212036",
"0.4216165",
"0.42160675",
"0.42134988",
"0.42023587",
"0.42012802",
"0.41998225",
"0.419696",
"0.41829276",
"0.41653976",
"0.4151077",
"0.414252",
"0.4134346",
"0.41281733",
"0.41255796",
"0.41255754",
"0.4115263",
"0.41150808",
"0.41138706",
"0.4099576",
"0.40981117",
"0.40918753",
"0.40898973",
"0.4084939",
"0.40771767",
"0.40738314",
"0.40552968",
"0.40303165",
"0.4025854"
] | 0.6841348 | 1 |
If `disk` contains slashes, the Cloud Life Sciences API assumes that it is a complete URL for the disk. If `disk` does not contain slashes, the Cloud Life Sciences API assumes that the disk is a zonal disk and a URL will be generated of the form `zones/<zone>/disks/<disk>`, where `<zone>` is the zone in which the instance is allocated. The disk must be ext4 formatted. If all `Mount` references to this disk have the `read_only` flag set to true, the disk will be attached in `readonly` mode and can be shared with other instances. Otherwise, the disk will be available for writing but cannot be shared. string disk = 1; | com.google.protobuf.ByteString getDiskBytes(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setDisk(String disk) {\n this.disk = disk == null ? null : disk.trim();\n }",
"java.lang.String getDisk();",
"public String getDisk() {\n return disk;\n }",
"public static void create(Disks disk){\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tHibernateUtilMastere.getSession().save(disk);\r\n\t\t\tHibernateUtilMastere.getSession().getTransaction().commit();\r\n\t\t} catch(HibernateException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void setIsBootDisk(Boolean isBootDisk) {\n this.isBootDisk = isBootDisk;\n }",
"String getDiskFileName();",
"public int getDisk()\n {\n return this.disk;\n }",
"public void setDiskFileName(String diskFileName) {\n this.diskFileName = diskFileName == null ? null : diskFileName.trim();\n }",
"public void startup( RawDisk disk) {\n\t\tthis.tempDisk = disk;\t\n }",
"public ReplicationConfigurationReplicatedDisk withIsBootDisk(Boolean isBootDisk) {\n setIsBootDisk(isBootDisk);\n return this;\n }",
"public void format( RawDisk disk) {\n \tthis.tempDisk.format();\n }",
"public long\n getDisk()\n {\n return pDisk;\n }",
"public String getDiskFileName() {\n return diskFileName;\n }",
"@Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskApi getDiskApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);",
"java.util.List<com.google.cloud.compute.v1.SavedAttachedDisk> getDisksList();",
"public String getVolumeDiskId() {\n return this.volumeDiskId;\n }",
"@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource getAzureDisk();",
"String getMountedDiskImageFileUri() {\n return mountedDiskImageFileUri;\n }",
"public String diskAccessId() {\n return this.diskAccessId;\n }",
"public Boolean getIsBootDisk() {\n return this.isBootDisk;\n }",
"public Boolean isBootDisk() {\n return this.isBootDisk;\n }",
"public void changeDisk(){\n if(isFull==true) {\n if (this.type == TYPE.WHITE) {\n this.type = TYPE.BLACK;\n } else {\n type = TYPE.WHITE;\n }\n }\n return;\n }",
"java.util.List<? extends com.google.cloud.compute.v1.SavedAttachedDiskOrBuilder>\n getDisksOrBuilderList();",
"public SnapshotUpdate setDiskSizeGB(Integer diskSizeGB) {\n this.diskSizeGB = diskSizeGB;\n return this;\n }",
"int getDiskNum();",
"com.google.protobuf.ByteString getMountPathBytes();",
"com.google.cloud.compute.v1.SavedAttachedDisk getDisks(int index);",
"public void setVolumeDiskId(String volumeDiskId) {\n this.volumeDiskId = volumeDiskId;\n }",
"public void setDiskControllerType(java.lang.String diskControllerType) {\r\n this.diskControllerType = diskControllerType;\r\n }",
"com.google.cloud.compute.v1.SavedAttachedDiskOrBuilder getDisksOrBuilder(int index);",
"public void setSystemDisk(SystemDisk SystemDisk) {\n this.SystemDisk = SystemDisk;\n }",
"@Delegate\n @Path(\"/projects/{project}/zones/{zone}\")\n DiskTypeApi getDiskTypeApi(@PathParam(\"project\") String projectName, @PathParam(\"zone\") String zone);",
"void mountDiskImage(String diskImageFileUri, boolean isReadOnly) throws Exception {\n File diskImageFile = new File(new URI(diskImageFileUri));\n // Check disk image size\n if (diskImageFile.length() != BYTES_PER_DISK) {\n throw new IllegalArgumentException(\"Invalid disk image size: \" +\n diskImageFile.length());\n }\n if (isDiskImageMounted()) {\n unmountDiskImage();\n }\n isMountedDiskImageReadOnly = isReadOnly;\n mountedDiskImageFile = new RandomAccessFile(diskImageFile, isReadOnly ? \"r\" : \"rw\");\n mountedDiskImageBuffer = mountedDiskImageFile.getChannel().map(isReadOnly\n ? FileChannel.MapMode.READ_ONLY : FileChannel.MapMode.READ_WRITE,\n 0, BYTES_PER_DISK);\n this.mountedDiskImageFileUri = diskImageFileUri;\n // Reload track data\n setCurrentTrack(getCurrentTrackNumber(), getCurrentTrackSide());\n }",
"@JsonCreator\n public static DiskMode fromString(String name) {\n return fromString(name, DiskMode.class);\n }",
"public interface VirtualDisk {\n\n /**\n * Returns the name of the image; usually it's original\n * filename, without the suffix.\n *\n * @return The floppy disk image name.\n */\n String getName();\n\n /**\n * Returns the root directory folder of this virtual\n * floppy disk image.\n *\n * @return The root directory contents.\n */\n VirtualDirectory getRootContents();\n\n /**\n * Returns the type of this floppy disk image.\n *\n * @return The floppy disk image type.\n */\n ImageType getType();\n\n /**\n * Allows to retrieve one of the virtual files in this\n * virtual disk, based on its UUID.\n *\n * @param uuid The UUID value.\n * @return The file, or null, if no file with that UUID exists.\n */\n VirtualFile getFile(String uuid);\n\n /**\n * Exports the contents of this floppy disk image to a\n * local file system directory, retaining the relative\n * directory structure of the original image.\n * <p>\n * NOTE 1: In case of problems with the extraction caused by\n * weird file names causing issues with the rules of the local\n * file system, try exporting the contents as .zip archive\n * instead. That may work in cases where a plain file export\n * does not.\n * <p>\n * NOTE 2: If some file entries cannot be extracted, the extraction\n * will still be carried out for everything else.\n *\n * @param targetDirectory The target directory where to extract the contents.\n * @throws IOException If the extraction failed.\n */\n void exportToDirectory(File targetDirectory) throws IOException;\n\n void exportAsZip(File zipFile) throws IOException;\n\n void exportAsZip(OutputStream target) throws IOException;\n}",
"public static void setDiskCacheEnable(boolean enable) {\n sDiskCacheEnable = enable;\n }",
"public final void mT__17() throws RecognitionException {\n\t\ttry {\n\t\t\tint _type = T__17;\n\t\t\tint _channel = DEFAULT_TOKEN_CHANNEL;\n\t\t\t// sell/input/Matrix.g:13:7: ( 'disk' )\n\t\t\t// sell/input/Matrix.g:13:9: 'disk'\n\t\t\t{\n\t\t\tmatch(\"disk\"); \n\n\t\t\t}\n\n\t\t\tstate.type = _type;\n\t\t\tstate.channel = _channel;\n\t\t}\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t}",
"java.lang.String getMountPath();",
"public OSDiskImageEncryption osDiskImage() {\n return this.osDiskImage;\n }",
"public HWDiskStore(oshi.hardware.HWDiskStore diskStore) {\n this.diskStore = new oshi.hardware.HWDiskStore(diskStore);\n }",
"public HWDiskStore() {\n this.diskStore = new oshi.hardware.HWDiskStore();\n }",
"public RLDiskDrive() {\n }",
"public fileServer(String storage, String media) {\n if (storage == null || storage.equals(\"\") || storage.equals(\" \")) {\n throw new IllegalArgumentException(\"storage must be provided\");\n }\n if (media == null || media.equals(\"\") || media.equals(\" \")) {\n throw new IllegalArgumentException(\"media must be provided\");\n }\n if (tera < 0 || tera > 1024) {\n throw new NumberFormatException(\"Must be between 0 - 1024\");\n }\n\n this.storage = storage;\n this.media = media;\n this.tera = tera;\n }",
"Update withDiskSizeGB(Integer diskSizeGB);",
"public\n JobGetTotalDiskRsp\n (\n TaskTimer timer, \n long disk\n )\n { \n super(timer);\n\n if(disk < 0) \n throw new IllegalArgumentException(\"The disk size cannot be negative!\");\n pDisk = disk;\n\n LogMgr.getInstance().logAndFlush\n (LogMgr.Kind.Net, LogMgr.Level.Finest,\n \"JobMgr.getTotalDisk():\\n \" + getTimer());\n }",
"boolean isDiskImageMounted() {\n return (getMountedDiskImageFileUri() != null);\n }",
"public static String mount() {\n\n String mount = stringValue(\"treefs.mount\");\n if(isNullOrEmpty(mount)) {\n // default home location\n mount = home() + File.separator + \"treefs-data\";\n } else {\n mount = home() + File.separator + mount;\n }\n\n return mount;\n }",
"public Disk(int size){\n this.size = size;\n }",
"public DescribeDedicatedBlockStorageClusterDisksResponse describeDedicatedBlockStorageClusterDisksWithOptions(DescribeDedicatedBlockStorageClusterDisksRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {\n com.aliyun.teautil.Common.validateModel(request);\n java.util.Map<String, Object> query = new java.util.HashMap<>();\n if (!com.aliyun.teautil.Common.isUnset(request.dbscId)) {\n query.put(\"DbscId\", request.dbscId);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.maxResults)) {\n query.put(\"MaxResults\", request.maxResults);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.nextToken)) {\n query.put(\"NextToken\", request.nextToken);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.regionId)) {\n query.put(\"RegionId\", request.regionId);\n }\n\n com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(\n new TeaPair(\"query\", com.aliyun.openapiutil.Client.query(query))\n ));\n com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(\n new TeaPair(\"action\", \"DescribeDedicatedBlockStorageClusterDisks\"),\n new TeaPair(\"version\", \"2021-07-30\"),\n new TeaPair(\"protocol\", \"HTTPS\"),\n new TeaPair(\"pathname\", \"/\"),\n new TeaPair(\"method\", \"POST\"),\n new TeaPair(\"authType\", \"AK\"),\n new TeaPair(\"style\", \"RPC\"),\n new TeaPair(\"reqBodyType\", \"formData\"),\n new TeaPair(\"bodyType\", \"json\")\n ));\n return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeDedicatedBlockStorageClusterDisksResponse());\n }",
"public void setStorage(String storage) {\n if (storage == null || storage.equals(\"\") || storage.equals(\" \")) {\n throw new IllegalArgumentException(\"storage must be provided\");\n }\n this.storage = storage;\n }",
"public int mountVolume(String mountPoint) throws RemoteException;",
"public export.serializers.avro.DeviceInfo.Builder setSector(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.sector = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"public static disk_adapter get(nitro_service client, disk_adapter resource) throws Exception\r\n\t{\r\n\t\tresource.validate(\"get\");\r\n\t\treturn ((disk_adapter[]) resource.get_resources(client))[0];\r\n\t}",
"VolumeAttachment attachVolumeToServerAsDevice(String volumeId, String serverId, String device);",
"public long getDiskUsage() {\n\t\treturn diskUsage;\n\t}",
"public DiskRestorePointProperties withDiskAccessId(String diskAccessId) {\n this.diskAccessId = diskAccessId;\n return this;\n }",
"public java.lang.String getDiskControllerType() {\r\n return diskControllerType;\r\n }",
"public native int getDiskIO();",
"private int getDisk_wrapper() {\n int result = WsResultType.Success;\n ArrayList<WsFolder> r_wsFolder = new ArrayList<WsFolder>();\n result = ClientWS.getInstance(mContext).getDisk(r_wsFolder);\n for (WsFolder ws_f : r_wsFolder) {\n CloudFile f = new CloudFile();\n f.setFileType(CloudFileType.TYPE_FOLDER);\n f.setRemote_id(ws_f.ID);\n f.setFilePath(ws_f.Name);\n mFolderList.add(f);\n }\n return result;\n }",
"public ServiceRecordDisk(final ServiceRecordDisk o)\r\n { \r\n this.records = o.records;\r\n this.recordsByMemberNum = o.recordsByMemberNum;\r\n this.recordsByProviderNum = o.recordsByProviderNum;\r\n }",
"public void mount(String mountKey);",
"String getSnapshotDiskFileName();",
"boolean isMountedDiskImageReadOnly() {\n return (isDiskImageMounted() && isMountedDiskImageReadOnly);\n }",
"public DiskRequest getRequest () { return this.request; }",
"private static String addNull(String bitDisk) {\n\t\tbitDisk = \"0\" + bitDisk;\n\t\treturn bitDisk;\n\t}",
"@java.lang.Deprecated\n public io.kubernetes.client.openapi.models.V1GCEPersistentDiskVolumeSource getGcePersistentDisk();",
"public void setSector(java.lang.CharSequence value) {\n this.sector = value;\n }",
"public SystemDisk getSystemDisk() {\n return this.SystemDisk;\n }",
"public abstract void schedRequest (DiskRequest dr);",
"static void print_disk(int size){\n for(int i = 0; i < 5-size; i++)\n System.out.print(\" \");\n for(int i = 0; i < size; i++){\n if(i == size/2 && size%2 == 0)\n System.out.print(\"||--\");\n else if(i == size/2 && size%2 == 1)\n System.out.print(\"-||-\");\n else\n System.out.print(\"--\");\n }\n for(int i = 0; i < 5-size; i++)\n System.out.print(\" \");\n System.out.print(\"\\t\");\n }",
"public static disk_adapter[] get(nitro_service client) throws Exception\r\n\t{\r\n\t\tdisk_adapter resource = new disk_adapter();\r\n\t\tresource.validate(\"get\");\r\n\t\treturn (disk_adapter[]) resource.get_resources(client);\r\n\t}",
"public double getHardDisk()\n\t{\n\t\treturn hardDiskSize;\n\t}",
"public interface CompactDisk {\n void play();\n}",
"WithCreate withDiskSizeGB(Integer diskSizeGB);",
"public D64DiskImage( String filename, List<Sector> sectorList) {\n\n\t// Use the constructor of the base class.\n\tsuper( filename, sectorList);\n }",
"public final void getDiskInformation(DiskDeviceContext ctx, SrvDiskInfo info)\n throws IOException {\n\n // Check if there is static disk size information available\n \n if ( ctx.hasDiskInformation())\n info.copyFrom(ctx.getDiskInformation());\n \n // Check that the context is a JDBC context\n \n if ( ctx instanceof DBDeviceContext) {\n \n // Access the associated file loader class, if it implements the disk size interface then call the loader\n // to fill in the disk size details\n \n DBDeviceContext dbCtx = (DBDeviceContext) ctx;\n \n if ( dbCtx.getFileLoader() instanceof DiskSizeInterface) {\n \n // Pass the disk size request to the associated file loader\n \n DiskSizeInterface sizeInterface = (DiskSizeInterface) dbCtx.getFileLoader();\n \n sizeInterface.getDiskInformation(ctx, info);\n \n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DBDiskDriver getDiskInformation() handed to file loader\");\n }\n }\n \n // Check if there is a quota manager, if so then get the current free space from the quota manager\n \n if ( ctx.hasQuotaManager()) {\n \n // Get the free space, in bytes, from the quota manager\n \n long freeSpace = ctx.getQuotaManager().getAvailableFreeSpace();\n \n // Convert the free space to free units\n \n long freeUnits = freeSpace / info.getUnitSize();\n info.setFreeUnits(freeUnits);\n }\n }",
"public ADisk(boolean format)\n { \n\t // build lock\n\t this.setFailureProb(0);\n ADisk_lock = new SimpleLock();\n waitLock = new SimpleLock();\n atranslist = new ActiveTransactionList();\n //initialize lists and logs\n wblist = new WriteBackList(this);\n commitDone = waitLock.newCondition();\n writebackDone = waitLock.newCondition();\n readDone = waitLock.newCondition();\n logReadDone = waitLock.newCondition();\n wbbarrier = waitLock.newCondition();\n commitBarrierSector = -1;\n commitBarrierTid = -1;\n writebackBarrierSector = -1;\n writebackBarrierTid = -1;\n readSector = -1;\n readTid = -1;\n logReadSector = -1;\n logReadTid = -1;\n wbbarrierSec = -1;\n wbbarrierTag = -1;\n \n\t d = null;\n\t try{\n\t d = new Disk(this);\n\t }\n\t catch(FileNotFoundException fnf){\n\t System.out.println(\"Unable to open disk file\");\n\t System.exit(-1);\n\t }\n\t \n\t //create writeback thread\n\t writebackthread = new WriteBackThread();\n try {\n\t if (format == true){\n\t \t lstatus = new LogStatus(this, false);\n\t \t \n\t \t ///wipe the disk\n\t \t /*byte[] blank = new byte[Disk.SECTOR_SIZE];\n\t \t for(int i = 0; i < Disk.SECTOR_SIZE; i++)\n\t \t \tblank[i] = 0x00;\n\t \t for(int i = 0; i < this.getNSectors(); i++){\n\t \t \tif(i == this.getNSectors() - 1){\n\t \t \t\tthis.commitBarrierSector = i;\n\t \t \t\tthis.commitBarrierTid = Disk.SECTOR_SIZE + 10;\n\t \t \t\td.addBarrier(); // must wait for the entire wipe write to be on disk\n\t \t \t}\n\t \t \td.startRequest(Disk.WRITE, Disk.SECTOR_SIZE+10, i, blank);\n\t \t }\n \t \tcommitWait();*/\n\t \t // We decided not to wipe the disk because the instructions were vague and it seems insanely inefficient to wipe the disk and there doesnt seem to be reason to wipe it. It also makes our tests run very slow. \n\t } \n\t else {\n\t \t //RECOVERY\n\t \t lstatus = new LogStatus(this, true);\n\t \t byte[] next = lstatus.recoverNext();\n\t while(next != null){\n\t \t Transaction temp = Transaction.parseLogBytesDebug(next, this);\n\t \t wblist.addCommitted(temp);\t \n\t \t next = lstatus.recoverNext();\n\t } \n\t }\n }\n catch(IOException e){\n\t\t\tSystem.out.println(\"IO exception\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n }\n catch(IllegalArgumentException e){\n\t\t\tSystem.out.println(\"Illegal Argument exception\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n }\n \n }",
"public void setHardDisk(double systemHardDisk)\n\t{\n\t\thardDiskSize = systemHardDisk;\n\t}",
"public DescribeDedicatedBlockStorageClusterDisksResponse describeDedicatedBlockStorageClusterDisks(DescribeDedicatedBlockStorageClusterDisksRequest request) throws Exception {\n com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();\n return this.describeDedicatedBlockStorageClusterDisksWithOptions(request, runtime);\n }",
"public EncryptionImages withDataDiskImages(List<DataDiskImageEncryption> dataDiskImages) {\n this.dataDiskImages = dataDiskImages;\n return this;\n }",
"public SuperBlock(int diskSize) {\n\n //Byte array to read the first disk block\n byte[] superBlock = new byte[Disk.blockSize];\n SysLib.rawread(0, superBlock);\n\n //Set our three variables from the block\n totalBlocks = SysLib.bytes2int(superBlock, 0);\n totalInodes = SysLib.bytes2int(superBlock, 4);\n freeList = SysLib.bytes2int(superBlock,8);\n\n //Check to see if we need to format the disk\n if(totalBlocks != diskSize && totalInodes < 1 && freeList < 2){\n totalBlocks = diskSize;\n format(64);\n }\n \n \n }",
"@Override\n public void updateWithReplica(StorageLocation replicaLocation) {\n File diskFile = null;\n try {\n diskFile = new File(replicaLocation.getUri());\n } catch (IllegalArgumentException e) {\n diskFile = null;\n }\n\n if (null == diskFile) {\n setDirInternal(null);\n } else {\n setDirInternal(diskFile.getParentFile());\n }\n }",
"public void setStorageServerDriver(SCStorageServerDriver driver);",
"public static String readDiskMemory(String address){\n\t\treturn memory.get(address);\n\t}",
"public MountRequest(String p){\n\t\tpath = p;\n\t}",
"Long diskSizeBytes();",
"public Disk modelToView(Disk d){\n\t\treturn new Disk(d.x/zoom,height-d.y/zoom,d.r/zoom);\n\t}",
"public static void setDiskCacheDir(String dir) {\n sDiskCacheDir = dir;\n }",
"public int formatVolume(String mountPoint) throws RemoteException;",
"public DiskEncryptionInfo withDiskEncryptionKeyInfo(DiskEncryptionKeyInfo diskEncryptionKeyInfo) {\n this.diskEncryptionKeyInfo = diskEncryptionKeyInfo;\n return this;\n }",
"@Override\n\tpublic void startUp() {\n\t\tSystem.out.println(\"disk startup!\");\n\n\t}",
"DiscFileSystemInfo getFileSystemInfo(String path) throws IOException;",
"public void setTurnDiskLocatorLedSupported(java.lang.Boolean turnDiskLocatorLedSupported) {\r\n this.turnDiskLocatorLedSupported = turnDiskLocatorLedSupported;\r\n }",
"public EC2Volume attachVolume(EC2Volume request) {\n EC2Volume resp = new EC2Volume();\n try {\n request.setDeviceId(mapDeviceToCloudDeviceId(request.getDevice()));\n CloudStackVolume vol = getApi().attachVolume(request.getId(), request.getInstanceId(), request.getDeviceId());\n if (vol != null) {\n resp.setAttached(vol.getAttached());\n resp.setCreated(vol.getCreated());\n resp.setDevice(request.getDevice());\n resp.setDeviceId(vol.getDeviceId());\n resp.setHypervisor(vol.getHypervisor());\n resp.setId(vol.getId());\n resp.setInstanceId(vol.getVirtualMachineId());\n resp.setSize(vol.getSize());\n resp.setSnapshotId(vol.getSnapshotId());\n resp.setState(vol.getState());\n resp.setType(vol.getVolumeType());\n resp.setVMState(vol.getVirtualMachineState());\n resp.setAttachmentState(mapToAmazonVolumeAttachmentState(vol.getVirtualMachineState()));\n resp.setZoneName(vol.getZoneName());\n }\n } catch (Exception e) {\n logger.error(\"EC2 AttachVolume - \", e);\n handleException(e);\n }\n return resp;\n }",
"static private void inputHardDiskSize(System_Y3872052 system) {\n\t\tdouble hdSize = Double.parseDouble(getInputData(\"Please provide the hard disk size, in GB\"));\n\t\tsystem.setHardDisk(hdSize);\n\t}",
"public void setRing(String path);",
"public static disk_adapter[] get_filtered(nitro_service service, String filter) throws Exception\r\n\t{\r\n\t\tdisk_adapter obj = new disk_adapter();\r\n\t\toptions option = new options();\r\n\t\toption.set_filter(filter);\r\n\t\tdisk_adapter[] response = (disk_adapter[]) obj.getfiltered(service, option);\r\n\t\treturn response;\r\n\t}",
"public StartDiskReplicaGroupResponse startDiskReplicaGroupWithOptions(StartDiskReplicaGroupRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {\n com.aliyun.teautil.Common.validateModel(request);\n java.util.Map<String, Object> query = new java.util.HashMap<>();\n if (!com.aliyun.teautil.Common.isUnset(request.clientToken)) {\n query.put(\"ClientToken\", request.clientToken);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.oneShot)) {\n query.put(\"OneShot\", request.oneShot);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.regionId)) {\n query.put(\"RegionId\", request.regionId);\n }\n\n if (!com.aliyun.teautil.Common.isUnset(request.replicaGroupId)) {\n query.put(\"ReplicaGroupId\", request.replicaGroupId);\n }\n\n com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(\n new TeaPair(\"query\", com.aliyun.openapiutil.Client.query(query))\n ));\n com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(\n new TeaPair(\"action\", \"StartDiskReplicaGroup\"),\n new TeaPair(\"version\", \"2021-07-30\"),\n new TeaPair(\"protocol\", \"HTTPS\"),\n new TeaPair(\"pathname\", \"/\"),\n new TeaPair(\"method\", \"POST\"),\n new TeaPair(\"authType\", \"AK\"),\n new TeaPair(\"style\", \"RPC\"),\n new TeaPair(\"reqBodyType\", \"formData\"),\n new TeaPair(\"bodyType\", \"json\")\n ));\n return TeaModel.toModel(this.callApi(params, req, runtime), new StartDiskReplicaGroupResponse());\n }",
"public java.util.List<AttachedDisk> getFromAttachedDisks() {\n return fromAttachedDisks;\n }",
"private void moveDisk(int start,int end){\n\n System.out.println(\"Move disk from \"+start+ \" to \"+end);\n }"
] | [
"0.7744181",
"0.6842017",
"0.6753809",
"0.6039366",
"0.5740262",
"0.55389833",
"0.5501614",
"0.5492198",
"0.54161155",
"0.5414249",
"0.537294",
"0.5361823",
"0.5340353",
"0.533443",
"0.5330867",
"0.5273384",
"0.5238559",
"0.51914907",
"0.5164863",
"0.5142564",
"0.5140073",
"0.51148325",
"0.51109445",
"0.5086113",
"0.5082172",
"0.50458103",
"0.5009227",
"0.49602953",
"0.48763227",
"0.486701",
"0.4765635",
"0.4720057",
"0.47179812",
"0.47071168",
"0.47044298",
"0.46938157",
"0.46897066",
"0.46852887",
"0.46556428",
"0.46449438",
"0.4609335",
"0.45311245",
"0.45016438",
"0.4480931",
"0.44747356",
"0.44719917",
"0.44567525",
"0.4445364",
"0.4438621",
"0.4425437",
"0.4419709",
"0.440709",
"0.43994495",
"0.43954477",
"0.4386609",
"0.4385636",
"0.43745083",
"0.43684548",
"0.4359599",
"0.43546525",
"0.43454504",
"0.4307862",
"0.42878184",
"0.428678",
"0.42727697",
"0.42696676",
"0.42588758",
"0.4250347",
"0.42256254",
"0.4223725",
"0.42221865",
"0.42216766",
"0.42169347",
"0.4216228",
"0.42120817",
"0.42024466",
"0.42013016",
"0.420111",
"0.41968876",
"0.41813642",
"0.41656783",
"0.4149948",
"0.4142313",
"0.41350794",
"0.41274223",
"0.4126558",
"0.4125701",
"0.41147164",
"0.4114498",
"0.41132748",
"0.40996763",
"0.40977126",
"0.40912065",
"0.40899566",
"0.40865132",
"0.4077098",
"0.40733317",
"0.40553072",
"0.402942",
"0.402626"
] | 0.62935585 | 3 |
Palindrome = A word that is the same forward and backwards (racecar) | public static void main(String[] args) {
System.out.println(isPalindrome("Racecaf"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static boolean isPalindrome( String s ) {\n// two indexes --> front and back to move toowards each other\n if (s.length() == 0 || s.length() == 1)\n return false;\n int i = 0;\n int j = s.length() - 1;\n while (i != j && i < j ) {\n if (s.charAt(i) == s.charAt(j)) {\n i++; j--;\n }\n else\n return false;\n }\n return true;\n }",
"public static void main(String[] args) {\n String s = \"MOM\";\n String reverse = \"\";\n String d = \"IMTIAZ\";\n String back = \"\";\n char[] word = s.toLowerCase().toCharArray();\n for (int i = s.length() - 1; i >= 0; i--) {\n reverse = reverse + s.charAt(i);\n for (int j = d.length() - 1; j >= 0; j--) {\n back = back + d.charAt(j);\n }\n\n }\n if (s.equals(reverse)) {\n System.out.println(s + \"--word is a palindron\");\n\n } else {\n System.out.println(s + \"--word is not a palindron\");\n }\n if (d.equals(back))\n System.out.println(d + \"--word is a palindron\");\n else\n System.out.println(d + \"--word is not a palindron\");\n\n\n\n isPalindrome(\"MADAM\");\n isPalindrome(\"IMTIAZ\");\n isPalindrome(\"AHMED\");\n isPalindrome(\"MOM\");\n }",
"public static boolean isPalindrome(String a)\n { \n boolean flag = true; \n //Iterate the string forward and backward and compare one character at a time \n //till middle of the string is reached \n for(int i = 0; i < a.length()/2; i++)\n { \n if(a.charAt(i) != a.charAt(a.length()-i-1))\n { \n flag = false; \n break; \n } \n } \n return flag; \n }",
"public static boolean isPalindrome2(String s) {\n List<Character> list = new ArrayList<>();\n for (int i = 0; i < s.length(); i++) {\n char c = Character.toLowerCase(s.charAt(i));\n if (c >= 'a' && c <= 'z' || c >= '0' && c <='9')\n list.add(c);\n }\n for (int i = 0; i < list.size() / 2; i++)\n if (list.get(i) != list.get(list.size() - i - 1))\n return false;\n return true;\n }",
"public boolean isPalindrome(String s) {\n if (s == null || s.length() == 0) return true;\n s = s.replaceAll(\"[^a-zA-Z0-9]\", \"\").toLowerCase();\n int left = 0;\n int right = s.length() - 1;\n while (left < right) {\n if (s.charAt(left++) != s.charAt(right--)) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isPalindrome(String word){\r\n\t\tboolean palindrome = false;\r\n\t\tif(word.length()%2 == 1){\r\n\t\t\tfor(int a= 0; a<word.length()/2; a++){\r\n\t\t\t\tfor (int b = word.length()-1; b> word.length()/2; b--){\r\n\t\t\t\t\tif( word.charAt(a)== word.charAt(b)){\r\n\t\t\t\t\t\tpalindrome = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tpalindrome = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tfor(int a= 0; a<word.length()-1; a++){\r\n\t\t\t\tfor (int b = word.length()-1; b> 0; b--){\r\n\t\t\t\t\tif( word.charAt(a)== word.charAt(b)){\r\n\t\t\t\t\t\tpalindrome = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tpalindrome = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\treturn palindrome;\r\n\r\n}",
"public static boolean isPalindrome(String input){\n String backwards = \"\";\n int i = input.length();\n while (i > 0) { // creates a backwards string of input\n backwards = backwards + input.substring(i - 1, i);\n i--;\n }\n return (backwards.equals(input)); //returns true if backwards string is same as input\n }",
"public boolean testPalindromicity(String s) {\n s = s.replaceAll(\"[^a-zA-Z]\", \"\").toLowerCase();\n char[] sArr = s.toCharArray();\n\n int i=0;\n while (i < sArr.length-1-i) {\n if (sArr[i] != sArr[sArr.length-1-i])\n return false;\n i++;\n }\n return true;\n }",
"include<stdio.h>\nint main()\n{\n char t[1000]; \n scanf(\"%s\",t); \n \n int i,j,len; \n len=strlen(t); \n i=0; \n j=len-1; \n while(i<=j)\n {\n if(t[i]!=t[j])\n { break; } \n j--; i++;\n } \n \n if(i<j)\n printf(\"%s is not a palindrome\",t); \n else\n printf(\"%s is a palindrome\",t); \n \n return 0;\n}",
"public static boolean isPalindrome(String word) {\n String palindrome = new StringBuilder(word).reverse().toString();\n \n if(word.compareToIgnoreCase(palindrome) == 0) return true;\n else return false;\n }",
"private boolean isPalindrome(String s) {\r\n int l = 0, r = s.length() - 1;\r\n while (l <= r && s.charAt(l) == s.charAt(r)) {\r\n l++;\r\n r--;\r\n }\r\n return l >= r;\r\n }",
"public static boolean palindrome(String word) {\n\t\t\r\n\t\tint equalsCounter=0;\r\n\t\t\r\n\t\tfor(int i=0;i<word.length();i++) {\r\n\t\t\t\r\n\t\tif(word.contains(\" \")) {\r\n\t\t\t\r\n\t\t\tword=word.replace(\" \",\"\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t if(word.charAt(i)==word.charAt(word.length()-(i+1))){\r\n\t\t\t\t\r\n\t\t\t\tequalsCounter++;\r\n\t\t\t\t\r\n\t\t\t\tif(equalsCounter==word.length()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else {\r\n\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\t\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\tString str1 = \"madam\";\r\n\t\tString str2 = \"\";\r\n\t\tfor(int i = str1.length()-1;i>=0;i--) {\t\r\n\t\t\tchar[] rev = str1.toCharArray();\r\n\t\t\tstr2 =str2+ rev[i];\r\n\t\t}\r\n\t\tif(str1.equals(str2))System.out.println(\"The \"+str1+\" is a Palindrome\");\r\n\t\telse System.out.println(\"The \"+str1+\" is not a Palindrome\");\r\n\t}",
"static boolean isPalindrome(String str){\n\t\tString a = str.replaceAll(\"\\\\s+\",\"\");\n\t\tString b = new StringBuilder(a).reverse().toString();\n\t\treturn a.equalsIgnoreCase(b);\n\t}",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Palindrome Checker\");\n System.out.print(\"What phrase would you like to check? \");\n String original = in.nextLine();\n\n // Convert to lower case to simplify comparing strings\n String phrase = original.toLowerCase();\n\n String backwards = \"\"; //to be compared\n String forwardLetter = \"\"; //to be compared\n\n char [] charPhrase = phrase.toCharArray(); //change to a character array\n\n\n // loop through the string forwards, starting with the first character and append to a string\n for(int i = 0; i < charPhrase.length; i++){\n\n if( charPhrase[i] >= 'a' && charPhrase[i] <= 'z'){\n forwardLetter += charPhrase[i];\n }\n }\n // loop through the string backwards, starting with the last character and append to a string\n for (int i = charPhrase.length - 1; i >= 0; i--) {\n\n if( charPhrase[i] >= 'a' && charPhrase[i] <= 'z'){\n backwards += charPhrase[i];\n }\n\n /*\n // Extract each letter as the next character\n // and build the backwards string\n String letter = phrase.substring(i, i + 1);\n backwards += letter;\n */\n }\n\n // A palindrome is a word or phrase that is the same forward or\n // backward. This is where we check that.\n if (forwardLetter.equals(backwards)) {\n System.out.println(original + \" is a palindrome!\");\n } else {\n System.out.println(original + \" is not a palindrome!\");\n }\n\n }",
"public static boolean checkPalaindrome(String s) {\n if (s == null) return false;\n String refinedString = s.toLowerCase()\n .replaceAll(\" \",\"\")\n .replaceAll(\"[^a-z]\", \"\");\n int i =0;\n int j = refinedString.length() -1;\n while (i < j) {\n if (refinedString.charAt(i) != refinedString.charAt(j)) {\n return false;\n }\n i++ ; j--;\n }\n return true;\n }",
"public static void main(String[] args) {\n\t\tString original=\"kayak radar kayak\";\n\t\tString reversed=\"\";\n\t\t\n\t\tfor(int i=original.length()-1; i>=0; i--) {\n\t\t\t\n\t\t\treversed=reversed+original.charAt(i); // +k=k+a=ka+k\n\t\t}\n\t\tSystem.out.println(reversed);\n\t\t\n\t\tif(original.equals(reversed)) {\n\t\t\tSystem.out.println(\"String is a palindrome \");\n\t\t}else {\n\t\t\tSystem.out.println(\"String is NOT palindrome\");\n\t\t}\n\t\t\n\t}",
"public static void Palindromi(String s)\n\t{\n\t\tString novaR=\"\";\n\t\tint i=0;\n\t\twhile(i<s.length())\n\t\t{\n\t\t\tif(s.charAt(i)!= ' ') \n\t\t\t\tnovaR+=s.substring(i, i+1);\n\t\t\telse \n\t\t\t{\n\t\t\tif(DaLiJePalindrom(novaR)==true) System.out.println(novaR);\n\t\t\tnovaR=\"\";\n\t\t\t}\n\t\t\ti++;\t\t\n\t\t}\n\t}",
"static boolean isPalindrome(String s) {\n\t\tint i = 0, j = s.length() - 1;\n\t\twhile (i < j) {\n\t\t\tif (s.charAt(i) != s.charAt(j))\n\t\t\t\treturn false;\n\t\t\t++i;\n\t\t\t--j;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isPalindrome(String input){\n\t\t\n\t\t//if the input string is null, then return false\n\t\tif(input == null )\n\t\t\treturn false;\n\t\t\n\t\t//strip the input of all whitespaces\n\t\tinput = input.trim();\n\t\t\n\t\t//if what remains is of length 0 or 1, return true\n\t\tif(input.length()==0||input.length()==1)\n\t\t\treturn true;\n\t\telse\n\t\t{\n\t\t\t//set up two counters, one at the starting and one at the ending.\n\t\t\tint i = 0;\n\t\t\tint j = input.length() - 1;\n\t\t\t\n\t\t\t//while they don't cross paths, compare the characters at the counters and move them in opposite directions\n\t\t\t//return false if the characters don't match.\n\t\t\twhile(i < j)\n\t\t\t{\n\t\t\t\tif(input.charAt(i)!=input.charAt(j))\n\t\t\t\t\treturn false;\n\t\t\t\ti++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t\n\t\t\n\t}",
"private boolean isPalindrome(String str){\n for(int i=0, j=str.length()-1; i<j; i++,j--){\n if(str.charAt(i) != str.charAt(j)){\n return false;\n }\n }\n return true;\n }",
"private static boolean isPalindrome(String s) {\n\t\t\n\t\tString newS = s.replaceAll(\"[^a-zA-Z0-9]\", \"\").toLowerCase();\n\t\tSystem.out.println(newS);\n\t\t\n\t\treturn new StringBuilder(newS).reverse().toString().equals(newS);\n\t}",
"public boolean isPalindrome(String s) {\n int i = 0, j = s.length() - 1;\n while (i < j) {\n while (i < s.length() && !Character.isLetterOrDigit(s.charAt(i))) {\n i++;\n }\n\n while (j >= 0 && !Character.isLetterOrDigit(s.charAt(j))) {\n j--;\n }\n\n if (i < j && Character.toLowerCase(s.charAt(i++)) != Character.toLowerCase(s.charAt(j--))) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isPalindrome(String str)\n {\n String str2 = \"\";\n str = str.toLowerCase();\n for(int i = str.length() - 1; i > -1; i--)\n {\n str2 += str.substring(i, i + 1);\n }\n if (str.equals(str2))\n return true;\n return false;\n }",
"public boolean isPalindrome(String word) {\n if (word.length() == 0 || word.length() == 1) {\n return true;\n }\n Deque<Character> L = wordToDeque(word);\n return isPalindrome(L);\n }",
"public boolean isPalindrome(String input) {\n\t\t\n\t\tif(input == \"\") {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//strip out all spaces\n\t\tinput.replaceAll(\"\\\\s\", \"\");\n\t\tint i = 0; \n\t\tint j = input.length() - 1;\n\t\t\n\t\twhile(i < j) {\n\t\t\tif(Character.toLowerCase(input.charAt(i)) != Character.toLowerCase(input.charAt(j))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++;\n\t\t\tj--;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isPalindrome2(String s) {\n int start = 0;\n int end = s.length() - 1;\n while(start <= end) {\n while(start <= end && !Character.isLetterOrDigit(s.charAt(start))) {\n start++;\n }\n while(start <= end && !Character.isLetterOrDigit(s.charAt(end))) {\n end--;\n }\n if(start <= end && Character.toLowerCase(s.charAt(start)) != Character.toLowerCase(s.charAt(end))) {\n return false;\n }\n start++;\n end--;\n }\n return true;\n }",
"public static boolean palindrome(String s) {\n\t\tString uncluttered=new String();\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\tif(Character.isLetter(s.charAt(i))==true) {\n\t\t\tuncluttered=uncluttered+s.charAt(i);\n\t\t}\n\t\tuncluttered=uncluttered.toLowerCase();\n\t\t}\n\t\tfor(int i=0; i<uncluttered.length()/2; i++) {\n\t\t\tif(uncluttered.charAt(i)==uncluttered.charAt(uncluttered.length()-(i+1))) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean isItPalindrome(String s) {\n\t\t\n\t\ts = s.toLowerCase();\n\t\t\n\t\tint i = 0, j = s.length()-1;\n\t\t\n\t\twhile(i < j) {\t\t\t\t\t\t\n\t\t\t\n\t\t\t// Both i and j skips the non-alphanumerics.\n\t\t\twhile(!Character.isLetterOrDigit(s.charAt(i)) && i < j) { ++i; }\n\t\t\t\n\t\t\twhile(!Character.isLetterOrDigit(s.charAt(j)) && j > i) { --j; }\n\t\t\t\n\t\t\tif(s.charAt(i++) != s.charAt(j--))\n\t\t\t\treturn false;\t\t\t\t\t\t\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isPalindrome3(String s) {\n char[] c = s.toCharArray();\n for (int i = 0, j = c.length - 1; i < j; ) {\n if (!Character.isLetterOrDigit(c[i])) i++; // error: isWhitespace is not applicable eg.\":,1\"\n else if (!Character.isLetterOrDigit(c[j])) j--;\n else if (Character.toLowerCase(c[i++]) != Character.toLowerCase(c[j--]))\n return false;\n }\n return true;\n }",
"static boolean isRealPalindrome(String s) {\n return s.chars().distinct().count() > 1 // Contains more\n // than one letter\n && s.equals(new StringBuilder(s).reverse().toString()); // Is a palindrome\n }",
"public static void isPalindromeString(String palindrome){\n String result =\"\";\n for(int i = palindrome.length()-1; i>=0; i--){\n result += palindrome.charAt(i);\n }\n System.out.println(\"The reversed string is: \" + result);\n\n if(palindrome.equalsIgnoreCase(result)){\n System.out.println(result + \" IS a palindrome\");\n }else {\n System.out.println(result + \" is NOT a palindrome!\");\n }\n }",
"public boolean isPalindrom(String word) {\n boolean palindrom = false;\n int middle = word.length() / 2;\n\n for (int i = 0; i < middle; i++) {\n for (int j = word.length() - i - 1; j >= middle; j--) {\n if (word.charAt(i) == word.charAt(j)) {\n palindrom = true;\n break;\n } else {\n return false;\n }\n }\n }\n\n return palindrom;\n }",
"public boolean isPalindrome22(String s) {\n s = s.toLowerCase().replaceAll(\"[^a-z0-9]\", \"\");\n return new StringBuilder(s).reverse().toString().equals(s);\n }",
"private static boolean isPalindrome(String text, int left, int right)\n {\n\n if (right - left <= 0)\n return true;\n else if (text.charAt(left) != text.charAt(right))\n return false;\n else\n return isPalindrome(text, left + 1, right - 1);\n\n // do as homework the version that ignores non-alphabetic symbols\n }",
"public boolean isPalindrome(String word) {\n if (word == null) {\n /** Unsure about this. Need to verify. */\n return false;\n }\n if (word.length() == 0 || word.length() == 1) {\n return true;\n }\n StringBuilder reverse = new StringBuilder(word).reverse();\n return word.equals(reverse.toString());\n }",
"public static boolean checkPalindrome(String s){\n\t\t\n\t\tfor(int i=0;i<(s.length()/2);i++ ){\n\t\t\t\n\t\t\tif(s.charAt(i)!=s.charAt(s.length()-1-i)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public static void main(String[] args) {\r\n\t\tString str = \"madam\";\r\n\t\tString rev = \"\";\r\n\t\tfor(int i = str.length()-1; i>=0; i--)\r\n\t\t{\r\n\t\t rev = rev+str.charAt(i);\t\r\n\t\t}\r\n\t\tSystem.out.println(rev);\r\n\t\tif(rev.equals(str))\r\n\t\t{\r\n\t\t\tSystem.out.println(\"its a palendrome\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"its not palendrome\");\r\n\t\t}\r\n\t\treverse(\"avinesh\");\r\n\t\t\r\n\r\n\t}",
"static boolean isPalindrome(char []str) \n{ \n\tint len = str.length; \n\n\t// single character is always palindrome \n\tif (len == 1) \n\t\treturn true; \n\n\t// pointing to first character \n\tchar ptr1 = str[0]; \n\n\t// pointing to last character \n\tchar ptr2 = str[len-1]; \n\n\twhile (ptr2 > ptr1) \n\t{ \n\t\tif (ptr1 != ptr2) \n\t\t\treturn false; \n\t\tptr1++; \n\t\tptr2--; \n\t} \n\n\treturn true; \n}",
"public static boolean IsPalindrome(String string){\r\n \r\n string = string.replace(\" \", \"\");\r\n \r\n String reverseString = new StringBuilder(string).reverse().toString();\r\n\r\n return reverseString.equalsIgnoreCase(string);\r\n }",
"private boolean isPalindrome(String s) {\n if (!this.Memoize.containsKey(s)) {\n if (s.length() < 2) {\n this.Memoize.put(s, true);\n } else {\n String sub = s.substring(1, s.length() - 1);\n // check the recursed results\n this.Memoize.put(s, this.isPalindrome(sub) && s.charAt(0) == s.charAt(s.length() - 1));\n }\n }\n return this.Memoize.get(s);\n }",
"public static boolean isPalindrome(String str) {\n StringBuilder reverse = new StringBuilder();\n String clean = str.toLowerCase();\n char[] plain = clean.toCharArray();\n for (int i = plain.length - 1; i >= 0; i--) {\n reverse.append(plain[i]);\n }\n return (reverse.toString()).equals(clean);\n\n }",
"private boolean isPalindrome(String s) {\r\n\r\n if (s == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n // Implement this method body using your ArrayListStack. Be mindful of your algorithm!\r\n boolean isPal = true;\r\n String newString1 = s.toLowerCase().trim(); //Test if lower case trim off any spaces\r\n String newString2 = \"\";\r\n\r\n System.out.println(\"original \" + s);\r\n System.out.println(\"lower trimmed \" + newString1);\r\n\r\n //Removes any white spaces \r\n for (int i = 0; i < newString1.length(); i++) {\r\n if (Character.isWhitespace(newString1.charAt(i))) {\r\n continue;\r\n } else {\r\n newString2 += Character.toString(newString1.charAt(i));\r\n }\r\n }\r\n System.out.println(\"final \" + newString2); //Print the final string after we have cleaned it up\r\n\r\n ArrayListStack<Character> one; //Puts the string into an array list stack\r\n one = new ArrayListStack<>();\r\n\r\n for (int i = 0; i < newString2.length(); i++) {\r\n one.push(newString2.charAt(i)); //pushing each char into array list \"one\"\r\n }\r\n\r\n ArrayListStack<Character> two;\r\n two = new ArrayListStack<>();\r\n\r\n int len = newString2.length(); //put half on to array list \"two\"\r\n if (len % 2 == 0) {\r\n for (int i = 0; i < (len / 2); i++) {\r\n two.push(one.pop()); \r\n }\r\n } else {\r\n for (int i = 0; i <= (len / 2); i++) {\r\n if (i < (len - 1) / 2) {\r\n two.push(one.pop());\r\n } else {\r\n one.pop();\r\n }\r\n }\r\n }\r\n\r\n for (int i = 0; i < (len / 2); i++) { //This compares each of the slices\r\n if (!(one.pop().equals(two.pop()))) {\r\n isPal = false;\r\n break;\r\n }\r\n }\r\n System.out.println(\"palindrome? \" + isPal);\r\n return isPal;\r\n\r\n }",
"public static void main(String[] args)\n {\n String s=\"lksdhfsaklhsdszf\";\n System.out.println(\"lksdhfsaklhsdszf \"+ palindrome(s));\n \n }",
"public boolean isPalindrome(String s){ \n if(palindromes.containsKey(s))\n return (palindromes.get(s)).booleanValue();\n int m=0;\n int n=s.length()-1;\n while(m<n){\n if(s.charAt(m++)!=s.charAt(n--)){\n palindromes.put(s,new Boolean(false));\n return false;\n }\n }\n palindromes.put(s,new Boolean(true));\n return true;\n }",
"public static boolean palindrome(String s){\n \ts=helpPalindrome(s);\n \tif(s.length()>1){\n \t\tif(s.charAt(0)==s.charAt(s.length()-1)){\n \t\t\tpalindrome(s.substring(1,s.length()-1));\n \t\t} else\n \t\t\treturn false;\n \t}\n \t\n \tif(s.length()<2||s.length()>-1)\n \t\treturn true;\n \t\n \treturn false;\n }",
"public static boolean isPalindrome(String str) {\n\n String newstring = \"\";\n for (int i = str.length()-1; i >=0; i=i-1) {\n newstring = newstring + str.charAt(i);\n }\n if(str.equals(newstring)){\n return true;\n }\n else{\n return false;\n }\n\n }",
"private static boolean isPalindromic(String str) {\n if (str.length() < 3)\n return false;\n\n // Check to see if the word is a palindrome\n // From the first character to the midpoint...\n for (int i = 0; i <= str.length() / 2; i++) {\n // From the last chracter to the midpoint...\n for (int j = str.length() - 1; j >= str.length() / 2; j--) {\n // If the end characters are not equal, it's not a palindrome\n // Otherwise, assume it is until proven otherwise\n if (i >= j) {\n return true;\n }\n else if (str.charAt(i) != str.charAt(j)) {\n return false;\n }\n else\n i++;\n }\n }\n // If it is never disproved, it's probably a palindrome\n return true;\n }",
"public static boolean isPalindrome(String s) {\n if(s ==null||s.length()<=0)\n return true;\n int frontIndex=0;\n int backIndex = s.length()-1;\n \n char[] strChar = s.toCharArray();\n \n while(frontIndex < backIndex){\n while(!Character.isLetterOrDigit(strChar[frontIndex])&&frontIndex<s.length()-1)\n frontIndex++;\n while(!Character.isLetterOrDigit(strChar[backIndex])&&backIndex>0)\n backIndex--;\n if(Character.isUpperCase(strChar[frontIndex]))\n strChar[frontIndex] = Character.toLowerCase(strChar[frontIndex]);\n if(Character.isUpperCase(strChar[backIndex]))\n strChar[backIndex] = Character.toLowerCase(strChar[backIndex]);\n if(strChar[frontIndex]!=strChar[backIndex]&&(Character.isLetterOrDigit(strChar[frontIndex])&&Character.isLetterOrDigit(strChar[backIndex]))){\n return false;\n }else{\n frontIndex++;\n backIndex--;\n \n }\n }\n return true;\n \n \n }",
"public static boolean isPalindrome(String s) {\n if(s==null){\n return false;\n }\n\n s = s.toLowerCase();\n\n int i=0;\n int j=s.length()-1;\n\n while(i<j){\n while(i<j && !((s.charAt(i)>='a' && s.charAt(i)<='z')\n || (s.charAt(i)>='0'&&s.charAt(i)<='9'))){\n i++;\n }\n\n while(i<j && !((s.charAt(j)>='a' && s.charAt(j)<='z')\n || (s.charAt(j)>='0'&&s.charAt(j)<='9'))){\n j--;\n }\n\n if(s.charAt(i) != s.charAt(j)){\n return false;\n }\n\n i++;\n j--;\n }\n\n return true;\n }",
"public static boolean isPalindrome(String s) {\n s = s.toLowerCase();\n // Store all letters and digits in new string. We don't care about space and special characters etc.\n StringBuilder builder = new StringBuilder();\n for (char ch : s.toCharArray()) {\n if (Character.isLetterOrDigit(ch)) {\n builder.append(Character.toLowerCase(ch));\n }\n }\n String s1 = builder.toString();\n boolean palindrome = true;\n int length = s1.length();\n int frontIndex = 0;\n int backIndex = length - 1;\n // Two indexes, one that points to the first index and one to the last index\n while (frontIndex < backIndex) {\n char c1 = s1.charAt(frontIndex);\n char c2 = s1.charAt(backIndex);\n if (c1 != c2) {\n palindrome = false;\n break;\n }\n frontIndex += 1;\n backIndex -= 1;\n }\n return palindrome;\n }",
"public static void main(String[] args) {\n\t String s = \"Ah, Satan sees Natasha \".toLowerCase().replaceAll(\"\\\\W\", \"\");\n\t int j=0;\n\t int k = s.length() - 1;\n\t while(j < s.length() / 2) { //loops until half the length of the string if \n\t //even and floor value if odd.\n\t if (s.charAt(j++) != s.charAt(k--)){//check for first and last chars \n\t //and go inwards. if char do not match print 'Not a Palindrome' and exit \n\t System.out.println(\"Not a Palindrome\");\n\t System.exit(0);}\n\t }\n\t System.out.println(\"Palindrome\"); //if every chars match print \"Palindrome\"\n\t }",
"public boolean validPalindrome(String s) {\n\t\tif (s.length() <= 1)\n\t\t\treturn true;\n\n\t\tint l = 0;\n\t\tint r = s.length() - 1;\n\t\twhile (l <= r) {\n\t\t\tif (s.charAt(l) == s.charAt(r)) {\n\t\t\t\tl++;\n\t\t\t\tr--;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\treturn pali(s, l, r - 1) || pali(s, l + 1, r);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\n\t}",
"public static boolean isPalindrome_v2(String s)\n { \n return isPalindrome(s, 0, s.length()-1);\n }",
"public static boolean isPalindrome(String str) {\n\r\n StringBuilder reversedString = new StringBuilder();\r\n for (int i = str.length() - 1; i >= 0; i--) {\r\n reversedString.append(str.charAt(i));\r\n }\r\n\r\n return str.equals(reversedString.toString());\r\n }",
"public static boolean isPalindrome(String s) {\n int head = 0, tail = s.length() - 1;\n while (head < tail) {\n char cl = 0, cr = 0;\n while (!Character.isLetterOrDigit(cl) && head < s.length())\n cl = s.charAt(head++);\n while (!Character.isLetterOrDigit(cr) && tail >= 0)\n cr = s.charAt(tail--);\n if (head < s.length() && Character.toLowerCase(cl) != Character.toLowerCase(cr))\n return false;\n }\n return true;\n }",
"public boolean isPalindrome(String s) {\n s = s.toLowerCase();\n int start = 0;\n int end = s.length() - 1;\n char sc;\n char ec;\n boolean pass;\n while (end > start) {\n sc = s.charAt(start);\n ec = s.charAt(end);\n pass = false;\n if ((sc < 'a' || sc > 'z') && (sc < '0' || sc > '9')) {\n start++;\n pass = true;\n }\n if ((ec < 'a' || ec > 'z') && (ec < '0' || ec > '9')) {\n end--;\n pass = true;\n }\n if (pass) continue;\n if (s.charAt(start++) != s.charAt(end--)) return false;\n }\n return true;\n }",
"public static String isPalindrome(String str) {\n\t\tchar ch[] = new char[(str.length())];\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tfor (int i = str.length()-1; i>=0; i--) {\r\n\t\t\tch[i] = str.charAt(i);\r\n\t\t\t// System.out.println(ch[i]);\r\n\t\t\tsb.append(ch[i]);\r\n\t\t}\r\n\t\t// System.out.println(sb);\r\n\t\tString rev = sb.toString();\r\n\t\treturn rev;\r\n\t\t}",
"public static boolean IsPalindrome(String str) {\n\t\tint maxIndex = str.length() - 1;\n\t\tif (str.length() <= 1)\n\t\t\treturn true;\n\t\tfor (int i = 0; i < str.length() / 2; i++) {\n\t\t\tif (str.charAt(i) != str.charAt(maxIndex - i))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tString a= \"Deepa\";\n\t\tString t=\" \";\n\tfor(int i=a.length()-1;i>=0; i--)\n\t\t{\n\t\t\tt=t+a.charAt(i);\n\t\t}\n\t\t\n\t\tSystem.out.println(t);\n\t\tSystem.out.println(t.trim());\n\t\t\n\t\tif(a==t)\n\t\t{\n\t\t\tSystem.out.println(\"its a palindrome\");\n\t\t}\n\n\t\telse\n\t\t\tSystem.out.println(\"Not a aplindrome\");\n\t\t\n\t}",
"static boolean is_palindrome(String s) {\n /* using iteration */\n for (int i = 0; i < Math.floor(s.length() / 2); i++) {\n int lastindex = s.length() - 1 - i;\n String endchar = s.substring(lastindex, lastindex + 1);\n String startchar = s.substring(i, i + 1);\n if (!startchar.equals(endchar)) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isPalindrome(String inputString) {\n\t\tchar ar[] = inputString.toCharArray();\n\t\tfor (int i = 0, j = ar.length - 1; i < (ar.length / 2); i++, j--) {\n\t\t\tif (ar[i] != ar[j])\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean hasPalindromeRemaining(String s, int i) {\n int p1 = i;\n int p2 = s.length() - 1;\n while (p1 < p2) {\n if (s.charAt(p1) != s.charAt(p2)) return false;\n p1++; p2--;\n }\n return true;\n }",
"public static boolean isPalindrome(String s) {\n\t\t// base case\n\t\tif (s.length() < 2) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// compare first and last\n\t\tif (s.charAt(0) != s.charAt(s.length()-1)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// recursive case\n\t\tisPalindrome(s.substring(1, s.length()-1));\n\t\t\n\t\treturn true;\n\t}",
"public static boolean findStringPalindrome(String str) {\r\n\t\tString rev = \"\";\r\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\r\n\t\t\trev = rev + str.charAt(i);\r\n\t\t}\r\n\t\tif (str != rev) {\r\n\t\t\treturn false;\r\n\t\t} else\r\n\t\t\treturn true;\r\n\t}",
"public static boolean isPalindrome(String s, int length){\n if(length <= 1){\r\n return true;\r\n }\r\n // create a new string for the first letter\r\n String first = s.substring(0,1);\r\n \r\n //create a new string for the last letter\r\n String last = s.substring(s.length() - 1, s.length());\r\n \r\n //create an if statement if the first and the last letter equal together\r\n if(first.equals(last)){\r\n //use a subtring to seperate the letters\r\n return isPalindrome(s.substring(1, length - 1), length - 2); \r\n } else {\r\n //return false if the letters are not the same\r\n return false;\r\n }\r\n }",
"public static Pair isPalindrome(String name) {\n if(name.length() == 1) {\n return new Pair(name, true);\n }\n\n // Double-ended queue for comparison\n Deque<Character> deque = new LinkedList<Character>();\n\n // Build up the reverse string\n String reverse = \"\";\n for(int i = name.length() - 1; i >= 0; i--) {\n char letter = name.charAt(i);\n int asciiValue = (int)letter;\n\n if(asciiValue < 65 || asciiValue > 90 && asciiValue < 97 || asciiValue > 122) {\n return null;\n }\n\n if(asciiValue > 64 && asciiValue < 91) {\n letter = (char)(asciiValue + 32);\n }\n\n reverse += letter;\n deque.add(letter);\n }\n\n // Compare letters starting at the front and back until the middle is reached with only 0 or 1 letter(s) left\n boolean valid = true;\n while(deque.size() > 1) {\n // If the current letter pair doesn't match, the word is not a palindrome\n if(deque.pollFirst() != deque.pollLast()) {\n return new Pair(reverse, false);\n }\n }\n\n return new Pair(reverse, true);\n }",
"static int palindromeIndex(String s){\n // Complete this function\n int len = s.length();\n int pos = -1;\n for(int i=0;i<len/2;i++){\n if(s.charAt(i) != s.charAt(len-1-i)){\n if(s.charAt(i+1) == s.charAt(len-1-i) && s.charAt(i+2) == s.charAt(len-1-i-1)){\n pos = i;\n break;\n }else if(s.charAt(i) == s.charAt(len-1-i-1) && s.charAt(i+1) == s.charAt(len-1-i-2)){\n pos = len-1-i;\n break;\n }\n }\n }\n return pos;\n }",
"public boolean validPalindrome(String s) {\n int start = 0, end = s.length() - 1;\n int[] delete = new int[3];\n while (start < end) {\n char a = s.charAt(start);\n char b = s.charAt(end);\n \n if (a != b) {\n if (delete[0] == 2) {\n return false;\n }\n if (delete[0] == 1) {\n delete[0] = 2;\n start = delete[1];\n end = delete[2];\n end += 1;\n } else {\n delete[0] = 1;\n delete[1] = start;\n delete[2] = end;\n start -= 1;\n }\n }\n start += 1;\n end -= 1;\n }\n return true;\n }",
"private static boolean palindrome(String input, int i, int j) {\n\t while (i < j) {\n\t if (input.charAt(i) != input.charAt(j)) {\n\t return false;\n\t }\n\t i++;\n\t j--;\n\t }\n\t return true;\n\t }",
"static boolean isPalindrome(String str) {\n\n if (str.length() <= 1) return true;\n\n return str.charAt(0) != str.charAt(str.length()-1) ? false : isPalindrome(str.substring(1, str.length()-1));\n }",
"private boolean checkString(){\n createString();\n char[] charsJoinedString=this.joinedTextPalindrome.toCharArray();\n int lengthString=charsJoinedString.length-1;\n for(int i=0;i<charsJoinedString.length;i++){\n if(charsJoinedString[i]!=charsJoinedString[lengthString]){\n return false;\n }\n lengthString--;\n }\n return true;\n \n }",
"static String possiblePalindrome(String str) {\n int[] charCounts = new int[26];\n for (int i = 0; i < str.length(); i++)\n charCounts[str.charAt(i) - 'a']++;\n\n // If string length is even, can't be any odd number of chars\n // If string length is odd, one odd number of chars is needed\n int oddChars = 0;\n for (int i = 0; i < charCounts.length; i++) {\n if (charCounts[i] % 2 == 1)\n oddChars++;\n }\n\n if (str.length() % 2 == 0) {\n if (oddChars == 0)\n return \"YES\";\n }\n else {\n if (oddChars == 1)\n return \"YES\";\n }\n return \"NO\";\n }",
"public static PerformOperation isPalindrome() {\n return (num) -> {\n String number = Integer.toString(num);\n String reversed = new StringBuilder(number).reverse().toString();\n return number.equals(reversed);\n };\n }",
"public static void main(String args[]) {\n\t\t\n\t\tString input = \"ABCD\";\n\t\t\n\t\t\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int counter=input.length()-1;counter>=0;counter--) {\n\t\t\tbuilder.append(input.charAt(counter));\t\t\t\n\t\t}\n\t\t\n\t\tString reverseString = builder.toString();\n\t\t\n\t\tif(input.equals(reverseString)) { // if(input == reverseString)\n\t\t\tSystem.out.println(\"Given string is a Palindrome\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Given string is not a Palindrome\");\n\t\t}\n\t\t\n\t\t\n\t}",
"static boolean checkPalin(String word) {\n\t\tint n = word.length();\n\n\t\t// making the check case\n\t\t// case insensitive\n\t\tword = word.toLowerCase();\n\n\t\t// loop to check palindrome\n\t\tfor (int i = 0; i < n; i++, n--)\n\t\t\tif (word.charAt(i) != word.charAt(n - 1))\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"public static boolean palindrome(String s) {\n \tString x = \"\";\n \tfor(int i = 0; i<s.length(); i++) {\n \t\tif(Character.isLetter(s.charAt(i))) {\n \t\t\tx += s.substring(i, i + 1);\n \t\t}\n \t}\n \tString other = \"\";\n \tfor(int i = x.length() - 1; i>=0; i--) {\n \t\tother += x.substring(i, i + 1);\n \t}\n return other.compareToIgnoreCase(x) == 0;\n }",
"public final boolean isPalindromeEfficient(String stringToCheck){\n stringToCheck = stringToCheck.replaceAll(\"[^A-Za-z0-9]\", \"\").toLowerCase();\n int n = stringToCheck.length();\n stringToCheck = stringToCheck.toLowerCase();\n int limitSuperior = n-1;\n int stopCondition = (n / 2) + 1;\n for (int i = 0; i < stopCondition; ++i) {\n if (stringToCheck.charAt(i) != stringToCheck.charAt(limitSuperior - i)) {\n return false;\n }\n }\n return true;\n }",
"public final boolean isPalindrome(String stringToCheck){\n return stringToCheck.replaceAll(\"[^A-Za-z]\", \"\").toLowerCase().equals(\n new StringBuilder(stringToCheck.replaceAll(\"[^A-Za-z]\", \"\").toLowerCase()).reverse().toString());\n }",
"public void isValidPalindrome(String s, int left, int right) {\n while(left >= 0 && right<s.length() && s.charAt(left) == s.charAt(right)){\n left--;\n right++;\n }\n // check if we found a longer palindrome\n if(maxLen < right - left - 1){\n maxLen = right - left - 1;\n start = left + 1;\n }\n }",
"public boolean isPalindrome21(String s) {\n char[] c = s.toCharArray();\n // Invariant: [0,i) and (j,N-1] are matched excluding whitespace\n for (int i = 0, j = c.length - 1; i < j; ) {\n if (!Character.isLetterOrDigit(c[i])) i++; // error: isWhitespace is not applicable eg.\":,1\"\n else if (!Character.isLetterOrDigit(c[j])) j--;\n else if (Character.toLowerCase(c[i]) != Character.toLowerCase(c[j])) return false;\n else {\n i++;\n j--;\n }\n }\n return true;\n }",
"private static String helpPalindrome(String s){\n \ts=s.toLowerCase().trim();\n \tif(s.indexOf(\",\")>=0){\n \t\ts=s.substring(0, s.indexOf(\",\"))+s.substring(s.indexOf(\",\")+1);\n \t\ts=helpPalindrome(s);\n \t}else if(s.indexOf(\".\")>=0){\n \t\ts=s.substring(0, s.indexOf(\".\"))+s.substring(s.indexOf(\".\")+1);\n \t\ts=helpPalindrome(s);\n \t}else if(s.indexOf(\":\")>=0){\n \t\ts=s.substring(0, s.indexOf(\":\"))+s.substring(s.indexOf(\":\")+1);\n \t\ts=helpPalindrome(s);\n \t}else if(s.indexOf(\" \")>=0){\n \t\ts=s.substring(0, s.indexOf(\" \"))+s.substring(s.indexOf(\" \")+1);\n \t\ts=helpPalindrome(s);\n \t}else if(s.indexOf(\"'\")>=0){\n \t\ts=s.substring(0, s.indexOf(\"'\"))+s.substring(s.indexOf(\"'\")+1);\n \t\ts=helpPalindrome(s);\n \t}else if(s.indexOf(\"?\")>=0){\n \t\ts=s.substring(0, s.indexOf(\"?\"))+s.substring(s.indexOf(\"?\")+1);\n \t\ts=helpPalindrome(s);\n \t}else if(s.indexOf(\"!\")>=0){\n \t\ts=s.substring(0, s.indexOf(\"!\"))+s.substring(s.indexOf(\"!\")+1);\n \t\ts=helpPalindrome(s);\n \t}\n \treturn s;\n }",
"public boolean isPalindrome(String word, CharacterComparator cc) {\n if (word.length() == 0 || word.length() == 1) {\n return true;\n }\n Deque<Character> L = wordToDeque(word);\n return isPalindrome(L, cc);\n }",
"public boolean isPalindrome(String str) {\n\t\t//index of first element of the string\n\t\tint i = 0;\n\t\t//index of last element of the string\t\n\t\tint j = str.length() - 1;\t\n\t\t\n\t\t//iterate through the string\n\t\twhile (i < j) {\n\t\t\t//if a mismatch is found, return false\n\t\t\tif (str.charAt(i) != str.charAt(j)) \n return false;\n\t\t\t//if no mismatch is found at current stage, keep checking\n\t\t\ti++;\n\t\t\tj--;\n\t\t}\n\t\t//string is confirmed to be a palindrome, return true\n\t\treturn true;\n\t}",
"public static boolean DaLiJePalindrom(String s)\n\t{\n\t\tint i=0, j=0, brojac=0;\n\t\twhile(s.length()-1-j>=0)\n\t\t\t{\n\t\t\tif(s.charAt(s.length()-1-j)== s.charAt(i)) brojac++;\n\t\t\ti++;\n\t\t\tj++;\n\t\t\t}\n\t\tif(brojac==s.length())return true;\n\t\treturn false;\n\t}",
"public static boolean containsPalindrome(String str) {\n String[] words = str.split(\"\\\\s+\");\n int count = 0;\n for (String word : words) {\n if (isPalindromic(word))\n count++;\n }\n\n // Remove spaces to check entire sentence\n str = str.replaceAll(\"\\\\s\", \"\");\n\n return (count > 1) || isPalindromic(str);\n }",
"public Palindrome(String[] arguments){\n this.textPalindrome=arguments;\n this.joinedTextPalindrome=\"\";\n }",
"boolean checkPalindrome() {\n\t\t\n\t\tNode slow=head;\n\t\tNode fast=head;\n\t\t\n\t\tStack<Node> s= new Stack<Node>();\n\t\ts.push(slow);\n\t\t\n\t\twhile(fast.next!=null && fast.next.next!=null) {\n\t\t\t\n\t\t\tslow= slow.next;\n\t\t\tfast=fast.next.next;\n\t\t\ts.push(slow);\n\t\t}\n\t\t\n\t\tif(fast.next==null) //means ll has odd elements\n\t\t\ts.pop();\n\t\t\n\t\n\t\tNode secondhalf =slow.next;\n\t\twhile(secondhalf!=null) {\n\t\t\tif(s.pop().data!=secondhalf.data) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tsecondhalf=secondhalf.next;\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"private static boolean ifPalindrome(char[] input, int start, int end){\r\n\t\t//the idea is to scan from 1st to the mid point to see the reverse side char same as the picked one and return\r\n\t\tfor(int i=start;i<=(start+end)/2;i++){ //notice that we use <= other than<\r\n\t\t\tif(input[i] ==input[start+end-i]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we come here that means it is a palindrome for selected start/end\r\n\t\treturn true;\r\n\t}",
"public boolean validPalindrome(String s) {\n char[] chars = s.toCharArray();\n\n int i = 0;\n int j = s.length() - 1;\n\n int count = 1;\n boolean result = true;\n while (i < j) {\n if (chars[i] != chars[j] && count == 1) {\n //删掉当前的i\n i++;\n count--;\n }\n if (chars[i] != chars[j] && count == 0) {\n result = false;\n }\n i++;\n j--;\n }\n\n if (result) {\n return true;\n }\n\n i = 0;\n j = s.length() - 1;\n\n count = 1;\n while (i < j) {\n if (chars[i] != chars[j] && count == 1) {\n //删掉当前的j\n j--;\n count--;\n }\n if (chars[i] != chars[j] && count == 0) {\n return false;\n }\n i++;\n j--;\n }\n\n\n return true;\n }",
"public static void main(String[] args) {\n\n\t\tint i = 0;\n\t\tString s = \"madam\" ;\n\t\tString t = \"\";\n\t\tfor(i=s.length()-1;i>=0;i--)//3\n\t\t{\n\t\t\t//System.out.print(s.charAt(i));\n\t\t\tt = t+s.charAt(i);//m,ma,\n\t\t\t\n\t\t}\n\t\tSystem.out.println(t);\n\t\t\tif(s.equals(t))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"It is palindrome\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"This is not Palindrome\");\n\t\t\t}\n\t \n\t}",
"int main() {\n string s;\n getline(cin, s);\n \n // create the Solution class object p.\n Solution obj;\n \n // push/enqueue all the characters of string s to stack.\n for (int i = 0; i < s.length(); i++) {\n obj.pushCharacter(s[i]);\n obj.enqueueCharacter(s[i]);\n }\n \n bool isPalindrome = true;\n \n // pop the top character from stack.\n // dequeue the first character from queue.\n // compare both the characters.\n for (int i = 0; i < s.length() / 2; i++) {\n if (obj.popCharacter() != obj.dequeueCharacter()) {\n isPalindrome = false;\n \n break;\n }\n }\n \n // finally print whether string s is palindrome or not.\n if (isPalindrome) {\n cout << \"The word, \" << s << \", is a palindrome.\";\n } else {\n cout << \"The word, \" << s << \", is not a palindrome.\";\n }\n \n return 0;\n}",
"public boolean validPalindrome(String s) {\n int start = 0;\n int end = s.length() - 1;\n return validPalindrom(s, start, end, true);\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tchar ch[] = s.toCharArray();\n\t\tboolean t=true;\n\t\tfor(int i=0;i<ch.length/2;i++)\n\t\t{\n\t\t\tif(ch[i]!=ch[ch.length-1-i])\n\t\t\t{\n\t\t\t\tt=false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.print(\"Palindrome :\"+t);\n\t\tsc.close();\n\t}",
"private boolean checkPalindrome(String userWord, int currentIndex)\n {\n boolean result;\n\n int indexFromEnd = userWord.length() - currentIndex - 1;\n\n if (userWord.charAt(currentIndex) == userWord.charAt(indexFromEnd ) )\n {\n if(currentIndex == indexFromEnd || currentIndex == indexFromEnd - 1)\n {\n result = true;\n }\n else\n {\n result = checkPalindrome(userWord, currentIndex + 1 );\n }\n\n }else\n {\n result = false;\n }\n return result;\n\n }",
"public static void main(String[] args) {\n\t\tString s=\"abinaya\";\r\n\t\tint count=0;\r\n\t\tint n=s.length()-1;int i=0;int j=n;\r\n\t\twhile(i!=j) {\r\n\t\tif(s.charAt(i)==s.charAt(j)) {\r\n\t\t\ti++;j--;\r\n\t\t}\r\n\t\telse\r\n\t\t\tcount++;\r\n\t\ti++;j--;\r\n\t\t}\r\n\t\tif(count==0) {\r\n\t\t\tSystem.out.println(\"the given is string is palindrome\");\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"the given is string is not palindrome\");\r\n\t\r\n\r\n\t}",
"private static int palindromeIndex(String s) {\n int len = s.length();\n for (int i = 0; i < len / 2; i++) {\n int j = len-i-1;\n if (s.charAt(i) != s.charAt(j)) {\n if (isPalindrome(s.substring(0, i) + s.substring(i+1)))\n return i;\n else if (isPalindrome(s.substring(0, j) + s.substring(j+1)))\n return j;\n else\n return -1;\n }\n }\n return -1;\n }",
"public boolean isPalindromeNotWorking(String s) {\n\t\t\n if(s.isEmpty()) {\n \treturn true;\n }\n s = s.toLowerCase();\n int length = s.length();\n boolean ispalindrome = true;\n for(int i=0,j=length-1;i<j;) {\n \tint left = (int)s.charAt(i);\n \tint right = (int)s.charAt(j);\n \tboolean isleftAlphabet = isAlphabet(left);\n \tboolean isrightAlphabet = isAlphabet(right);\n \tif(!isleftAlphabet) {\n \t\ti++;\n \t}\n \tif(!isrightAlphabet) {\n \t\tj--;\n \t}\n \tif(isleftAlphabet && isrightAlphabet) {\n \t\tif(s.charAt(i) != s.charAt(j)) {\n \t\tispalindrome = false;\n \t\tbreak;\n \t}else {\n \t\ti++;\n \t\tj--;\n \t}\n \t}\n \t\n }\n return ispalindrome; \n }",
"public static boolean isPalindrome_v1(String s)\n { // if length is 0 or 1 then String is palindrome\n System.out.println(s);\n if(s.length() == 0 || s.length() == 1)\n return true; \n \n if(s.charAt(0) == s.charAt(s.length()-1)) //base case\n /* check for first and last char of String:\n * if they are same then do the same thing for a substring\n * with first and last char removed. and carry on this\n * until you string completes or condition fails\n * Function calling itself: Recursion\n */\n \n return isPalindrome_v1(s.substring(1, s.length()-1));\n\n /* If program control reaches to this statement it means\n * the String is not palindrome hence return false.\n */\n return false;\n }",
"public static void checkPalindrome(String str) {\n\n\t\tString reverse = new StringBuffer(str).reverse().toString();\n\n\t\t// check whether the string is palindrome or not\n\t\tif (str.equalsIgnoreCase(reverse)) {\n\n\t\t\tSystem.out.println(\"Given string is Palindrome\");\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Given string is Not Palindrome\");\n\t\t}\n\t}",
"public List<String> generatePalindromes(String s) {\n int[] letters = new int[256];\n int oddCount = 0;\n for(char c: s.toCharArray()) oddCount += ++letters[c] % 2 != 0 ? 1 : -1;\n if(oddCount > 1) return res;\n \n // put half of letters into arraylist\n for(int i = 0; i < letters.length; i++) {\n Character curr = (char)i;\n if(letters[i] % 2 == 1) middle = curr;\n for(int j = 0; j < letters[i] / 2; j++) list.add(curr);\n }\n\n // get the permutation\n getPermutation(new boolean[list.size()], new StringBuilder());\n return res;\n }"
] | [
"0.7547118",
"0.7540193",
"0.74555224",
"0.73867625",
"0.7376771",
"0.7364086",
"0.7359717",
"0.7357423",
"0.73090017",
"0.72795737",
"0.72444236",
"0.71697795",
"0.7166088",
"0.71613777",
"0.71476674",
"0.71171314",
"0.7085651",
"0.70699805",
"0.7062087",
"0.70590293",
"0.70589334",
"0.70392746",
"0.6991641",
"0.6986575",
"0.69854563",
"0.69743437",
"0.6960087",
"0.69554836",
"0.6932114",
"0.6911956",
"0.68863946",
"0.68771076",
"0.68768615",
"0.6858432",
"0.6828692",
"0.68285525",
"0.6813058",
"0.68122804",
"0.6810182",
"0.6807245",
"0.6803138",
"0.6798619",
"0.67856896",
"0.67654496",
"0.676447",
"0.6758809",
"0.6733511",
"0.6723975",
"0.67212313",
"0.670827",
"0.670075",
"0.6699996",
"0.6696115",
"0.66933125",
"0.669167",
"0.6672329",
"0.6655304",
"0.6652342",
"0.66502774",
"0.6634509",
"0.6632507",
"0.6627838",
"0.6618123",
"0.66087776",
"0.66076064",
"0.65958965",
"0.65950197",
"0.65777904",
"0.6576052",
"0.65744346",
"0.65646106",
"0.656263",
"0.6560737",
"0.656048",
"0.6559145",
"0.6548096",
"0.6537984",
"0.65310997",
"0.65209824",
"0.6519521",
"0.65130776",
"0.6502669",
"0.6486721",
"0.6485172",
"0.6484545",
"0.6483836",
"0.6461808",
"0.64527345",
"0.6445816",
"0.64432424",
"0.6427237",
"0.6423715",
"0.64144284",
"0.64091563",
"0.64066577",
"0.6404978",
"0.64005244",
"0.6398425",
"0.63799757",
"0.63711816",
"0.63604057"
] | 0.0 | -1 |
Interface for interest rate pricing methods. | public interface CapFloorIborSABRCapMethodInterface {
/**
* Computes the present value of the instrument.
*
* @param cap
* The cap/floor on Ibor.
* @param sabr
* The SABR cap/floor data and multi-curves provider.
* @return The present value.
*/
MultipleCurrencyAmount presentValue(CapFloorIbor cap, SABRCapProviderInterface sabr);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface IYieldCurve {\r\n public double getInterestRate(double time);\r\n public double getForwardRate(double t0, double t1);\r\n public double getDiscountFactor(double t);\r\n\r\n public void addBond(Bond bond);\r\n public void calculate();\r\n}",
"public interface IRate {\n\t\n\t//writing the class outline\n\tpublic void setRate();\n\tpublic void increaseRate();\n}",
"public double getInterestRate(){\n return interestRate;\n }",
"public double getInterest()\n {\n return interestRate;\n }",
"protected InterestRate() {\n\t}",
"public double getInterest(){return this.interest_rate;}",
"public double getInterestRate()\n {\n return this.interestRate;\n }",
"public interface Price {\n\n BigDecimal getSumPrice();\n}",
"public double getInterestRate() {\n return interestRate;\n }",
"public static double getInterestRate(){\n\t\t return interest_rate;\r\n\t }",
"public double getRate( ) {\nreturn monthlyInterestRate * 100.0 * MONTHS;\n}",
"public interface PriceProvider {\n /**\n * Get the current price.\n *\n * @return current price as a decimal string\n */\n String getPrice();\n }",
"public interface IRadius {\r\n IPrecipitationLevel radius(Double radius);\r\n}",
"public Money getInterestDue();",
"abstract protected BigDecimal getBasicTaxRate();",
"public double getInterestRate(){\n return annualInterestRate;\n }",
"public interface ExchangeRateService {\n BigDecimal exchange(Currency curr1, Currency curr2, BigDecimal amount);\n}",
"public interface SavingAccInterface {\n\n public void interestRate();\n\n}",
"public interface ICustomCurrency\n{\n\n}",
"public abstract double getDiscountRate();",
"public interface ICurrencyExchangeService {\n/**\n * Requests the current exchange rate from one currency\n * to another.\n * @param fromCurrency the original Currency\n * @param toCurrency the 'destination' or final Currency\n * @return the currency exchange rate\n */\n\n double requestCurrentRate(String fromCurrency,\n String toCurrency);\n}",
"public double getInterest ()\n {\n return interest;\n }",
"protected abstract Double getRate(T object);",
"public double getInterest()\r\n {\r\n return interest;\r\n }",
"public interface CurrencyExchangeInterface {\n float changeCurrency(float price, Currency $toConvert);\n}",
"public void setInterest(double rate)\n {\n interestRate = rate;\n }",
"public IShippingRate getRateObject();",
"public interface CurrencyConvertible<R> {\n\n /**\n * Returns a copy of the object with any currency amounts converted into the reporting currency.\n *\n * @param reportingCurrency the currency into which all currency amounts should be converted\n * @param marketData market data for multiple scenarios containing any FX rates needed to perform the conversion\n * @return a copy of the object with any currency amounts converted into the reporting currency\n */\n public abstract R convertedTo(Currency reportingCurrency, CalculationMarketData marketData);\n\n}",
"public interface CostByPriceKm {\n\n BigDecimal costByPriceInKm();\n}",
"public interface PricingService {\n\t\n\t/**\n\t * Get the Price information for the product\n\t *\n\t * @param product the ProductModel\n\t * l\n\t * @return list of PriceInformation for the corresponding product \n\t */\n\tList<PriceInformation> getPriceForProduct(ProductModel product);\n}",
"public SavingsAccount(double rate) //setting interest rate with constructor\r\n { \r\n interestRate = rate;\r\n }",
"abstract public double getPrice();",
"public interface StockPECalculator extends StockCalculator{\n BigDecimal calculatePE(Stock stock, LocalDate calculationDate);\n\n}",
"@Override\n\tint getRateOfInterest() {\n\t\treturn 7;\n\t}",
"public interface PriceRetriever {\n String getPrice(String upc);\n}",
"public interface PayCalculator {\n\n /**\n * Calculate the payment for the specified hours and\n * rate.\n */\n public double calculatePayment (int hours);\n}",
"public interface TwoWayPrice<P, C extends CurrencyId> extends TwoWay<P>, Price<C> {\n\n @Nonnull\n P mid();\n\n /**\n * @return true if the {@link #bid} exceeds the {@link #offer}.\n */\n boolean isCrossed();\n\n /**\n * @return true if there is any difference between the {@link #bid} and {@link #offer}.\n */\n boolean hasSpread();\n\n @Override\n default Map<String, Object> explain() {\n return this.explanationBuilder()\n .put(\"bid\", this.bid())\n .put(\"offer\", this.offer());\n }\n\n @Override\n TwoWayPrice<P, C> evaluate();\n\n}",
"public interface Discountable {\n\n double calcDiscountedPriceMarkUp(double discount);\n\n}",
"public interface Grocery {\n BigDecimal getCost();\n}",
"public BigDecimal getInterestAmount() {\n return interestAmount;\n }",
"public interface SacrificeCost extends Cost {\n}",
"public void setInterestRate(double interestRate) {\n this.interestRate = interestRate;\n }",
"public interface RiskSource {\n void newIncoming(double incoming);\n\n double getLeverage();\n\n double getCurrentRiskAvailable();\n}",
"public interface iPayroll {\n float Payroll();\n}",
"public interface BudgetRateAndBaseService {\n\n /**\n * Calculates the applicable F & A rate for the given award. This should be\n * the F&A rate based on the start date of the award's budget.\n *\n * @param award\n * the award to calculate the applicable rate for\n * @return a BudgetDecimal representing the rate, or null or no rate for the\n * given affective date could be found\n * @throws IllegalArgumentException\n * if the given award is null\n * @throws IllegalArgumentException\n * if the given award does not have a budget\n * @throws IllegalStateException\n * if the located budget does not have a start date\n */\n ScaleTwoDecimal calculateApplicableFandARate(Award award);\n\n}",
"public Saving interestRate(String interestRate) {\n this.interestRate = interestRate;\n return this;\n }",
"double getRate();",
"abstract double calculateCurrentDiscountRate();",
"public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}",
"public interface ComputatorService {\n\n /**\n * Compute basic risk premium value double.\n *\n * @param coverValue the cover value\n * @param riskValueInNumPerc the risk value in num perc\n * @return the double\n */\n BigDecimal computeBasicRiskPremiumValue(Double coverValue, Double riskValueInNumPerc);\n\n}",
"public interface Interestable {\n void applyInterest();\n}",
"public interface Costs {\n\n /**\n * Return costs for this object\n * @return Costs\n */\n public double getCosts();\n}",
"Price getTradePrice();",
"public Double getPrice();",
"public double calcInterest(){\n double interest = (interestRate + 1) * balance;\n return interest;\n }",
"public double getPrice();",
"Price getPrice() throws Exception;",
"public abstract void setRate();",
"public interface Discountable {\n void discountSell();\n}",
"public void setInterestRate(double newInterestRate) \n\t{\n\t\tinterestRate = newInterestRate;\n\t}",
"public abstract double pay();",
"public String getAccountInterestRate(){\n if (currentAccount instanceof SavingAccount){\n Float myFloat;\n myFloat = ((SavingAccount)currentAccount).getInterestRate();\n return myFloat.toString();\n }\n else if (currentAccount instanceof NetSavingAccount){\n Float myFloat;\n myFloat = ((NetSavingAccount)currentAccount).getInterestRate();\n return myFloat.toString();\n }\n else if (currentAccount instanceof ChequeAccount){\n Float myFloat;\n myFloat = ((ChequeAccount)currentAccount).getInterestRate();\n return myFloat.toString();\n }\n else if (currentAccount instanceof FixedAccount){\n Float myFloat;\n myFloat = ((FixedAccount)currentAccount).getInterestRate();\n return myFloat.toString();\n }\n else{\n System.out.println(\"Get Account interestRate not found\");\n return \"error\";\n }\n }",
"public interface Discountable {\n\n String discount();\n\n\n}",
"public static double getInterestRate() {\n return DEFAULT_INTEREST_RATE ;\n }",
"public BigDecimal\tgetPrice();",
"double getPrice();",
"double getPrice();",
"double getPrice();",
"@Override \npublic double getPaymentAmount() { \n return getCommissionRate() * getGrossSales(); \n}",
"public Currency getCurrency();",
"public void financialCrisis() {}",
"public double impurity();",
"public abstract R convertedTo(Currency resultCurrency, ScenarioFxRateProvider rateProvider);",
"@Override\n public double getPrice(){\n \n return currentPrice; \n }",
"public abstract Collection<Interest> getInterests();",
"public interface Curve extends OrientableCurve, GenericCurve {\n\n /**\n * returns the number of segments building the curve\n * \n * @return number of segments\n */\n int getNumberOfCurveSegments();\n\n /**\n * returns the curve segment at the passed index\n * \n * @param index\n * to get\n * \n * @return segment at passed index position\n * @throws GeometryException\n */\n CurveSegment getCurveSegmentAt( int index )\n throws GeometryException;\n\n /**\n * \n * @return all segments of a Curve\n * @throws GeometryException\n */\n CurveSegment[] getCurveSegments()\n throws GeometryException;\n\n}",
"public interface Discount {\n}",
"public int getPrice();",
"public void addInterestEarned(Equity holding) {\n \n double time = 0;\n double intrst = 0;\n double price = holding.getSimulationPrice();\n double newPrice = price;\n int steps = amount;\n \n switch(interval) {\n \n case DAY:\n time = amount / 365.0;\n break;\n case MONTH:\n time = amount / 12.0;\n break;\n case YEAR:\n time = amount;\n break;\n }\n \n switch(simType) {\n \n case NONE:\n holding.addPriceChange(newPrice);\n return;\n \n case BEAR:\n intrst = price * percentage * time;\n steps = amount;\n \n while(steps != 0) { \n \n newPrice -= ((1.0/amount) * intrst);\n steps--;\n }\n \n holding.addPriceChange(newPrice);\n break;\n \n case BULL:\n intrst = price * percentage * time;\n steps = amount;\n \n while(steps != 0) {\n \n newPrice += ((1.0/amount) * intrst);\n steps--;\n }\n \n holding.addPriceChange(newPrice);\n break;\n }\n }",
"BigDecimal getPrice();",
"public abstract double calculateAppraisalPrice();",
"public interface DiscountStrategy {\r\n \r\n /**\r\n * returns the discount type\r\n * @return \r\n */\r\n public double getDiscount();\r\n \r\n /**\r\n * returns the discounted price\r\n * @param itemPrice the items normal price\r\n * @return the discounted price\r\n */\r\n public double getDiscountedPrice(double itemPrice);\r\n}",
"public double getAnnualInterestRate() {\n return annualInterestRate;\n }",
"public double getAnnualInterestRate() {\n return annualInterestRate;\n }",
"public static void modifyInterestRate(double interestRate){\n annualInterestRate = interestRate;\n }",
"public Savings_Account (int account_num, double initial_balance, double interest_rate) \r\n {\r\n\r\n super (account_num, initial_balance);\r\n\r\n rate = interest_rate;\r\n\r\n }",
"public interface CalculateInterface {\n void calculate(Double randomValue, Double yourBid, Double theirBid, Double theirValue);\n}",
"public abstract double calculateTax();",
"double requestCurrentRate(String fromCurrency,\n String toCurrency);",
"int getPrice();",
"public double getOriPrice() {\n return oriPrice;\n }",
"public interface IStockOperations<T extends Stock> {\n\n /**\n * Exercise a. i.\n * \n * @param stock\n * the stock being evaluated\n * @param marketPrice\n * the established market price\n * \n * @return the stock dividend yield\n */\n public double calculateDividendYield(T stock, double marketPrice);\n\n /**\n * Exercise a. ii.\n * \n * @param stock\n * the stock being evaluated\n * @param marketPrice\n * the established market price\n * \n * @return the stock Price/Earnings ratio\n */\n public double calculatePeRatio(T stock, double marketPrice);\n\n /**\n * Exercise a. iii.\n * \n * @param stock\n * the stock being transacted\n * @param nShares\n * number of shares traded\n * @param tradeIndicator\n * indication if it's a sell or buy trade\n * @param tradePrice\n * the trade price\n * \n * @return a stock trade record object\n */\n public StockTrade recordTrade(T stock, int nShares, TradeIndicator tradeIndicator, double tradePrice);\n\n /**\n * Exercise a. iv.\n * \n * @param gbceStock\n * @param timeSpanInMinutes\n * calculate trades for the past n minutes\n * \n * @return the stocks volume weighted stock price\n */\n public double calculateVolumeWeightedStockPrice(T stock, int timeSpanInMinutes);\n\n /**\n * Exercise b.\n * \n * @param allStocks\n * The list of all available stocks\n * @return GBCE Price share index\n */\n public double calculateGBCEAllShareIndex(List<T> allStocks);\n}",
"public interface IBook {\n\n // Returns the number of days that the book is overdue\n public int daysOverdue(int today);\n\n // Is the book overdue?\n public boolean isOverdue(int today);\n\n // returns the price of the fine for an overdue book in cents\n public int computeFine(int today);\n\n}",
"public interface Weighted {\r\n\r\n}",
"public interface Account {\n\t\n//\t\n//\t\tMoney money;\n//\t\tInterestRate interestRate;\n//\t\tPeriod interestPeriod;\n\t\t\n\t\tpublic int deposit(int depositAmmount);\n//\t\t{\n//\t\t\treturn money.getMoney()+depositAmmount;\n//\t\t}\n\t\t\n\t\tpublic int withdrawl(int withdrawAmmount);\n//\t\t{\n//\t\t\treturn money.getMoney()-withdrawAmmount;\n//\t\t}\n\t\t\n\t\tpublic int getBalance();\n//\t\t{\n//\t\t\treturn money.getMoney()*interestRate.getInterestRate()*interestPeriod.getPeriod()/100;\n//\t\t}\n\t}",
"Currency getCurrency();",
"public void addInterest() {\n\t\tdouble interest = getBalance() * interestRate / 100;\n\t\tdeposit(interest);\n\t}",
"public interface DiscountStrategy {\n\n /**\n * Returns the discount amount given a quantity and a price.\n * @param qty\n * @param price\n * @return a double value for discount amount\n */\n public abstract double getDiscount(int qty, double price);\n \n /**\n * A getter for the discount rate\n * @return a double value\n */\n public abstract double getDiscountRate();\n\n /*\n * Setter for the discount rate.\n */\n public abstract void setDiscountRate(double discountRate);\n \n}",
"public interface Payable\r\n{\r\n\tdouble getPaymentAmount(); // calculate payment; no implementation\r\n}",
"public interface ImpurityMeasure<T extends ImpurityMeasure<T>> extends Comparable<T> {\n /**\n * Calculates impurity measure as a single double value.\n *\n * @return Impurity measure value.\n */\n public double impurity();\n\n /**\n * Adds the given impurity to this.\n *\n * @param measure Another impurity.\n * @return Sum of this and the given impurity.\n */\n public T add(T measure);\n\n /**\n * Subtracts the given impurity for this.\n *\n * @param measure Another impurity.\n * @return Difference of this and the given impurity.\n */\n public T subtract(T measure);\n\n /** {@inheritDoc} */\n default public int compareTo(T o) {\n return Double.compare(impurity(), o.impurity());\n }\n}"
] | [
"0.68802476",
"0.6840562",
"0.6699877",
"0.6688072",
"0.6631971",
"0.66284716",
"0.66144764",
"0.6548098",
"0.64812446",
"0.64244527",
"0.6417862",
"0.6413097",
"0.6412662",
"0.64055336",
"0.63574624",
"0.6303268",
"0.62708795",
"0.6261347",
"0.62205577",
"0.62186795",
"0.61812985",
"0.61549556",
"0.61223096",
"0.6093933",
"0.60837144",
"0.606118",
"0.60590225",
"0.6058151",
"0.60431963",
"0.6042293",
"0.60394204",
"0.6035513",
"0.6035487",
"0.60156095",
"0.60041595",
"0.59303486",
"0.5925599",
"0.59223",
"0.5896918",
"0.58863956",
"0.5885941",
"0.5885469",
"0.5860568",
"0.58539575",
"0.58521825",
"0.5833485",
"0.5833264",
"0.5828036",
"0.58274764",
"0.58148855",
"0.5796219",
"0.5793591",
"0.579343",
"0.57721937",
"0.57647246",
"0.5703944",
"0.5680284",
"0.56480396",
"0.56448174",
"0.56305295",
"0.5621828",
"0.5602316",
"0.5600225",
"0.55978125",
"0.55896837",
"0.55783343",
"0.55783343",
"0.55783343",
"0.55672693",
"0.5553938",
"0.553645",
"0.55335075",
"0.5529755",
"0.55248517",
"0.55103475",
"0.5498732",
"0.5491313",
"0.54871",
"0.5479993",
"0.54749566",
"0.54729325",
"0.5471552",
"0.546886",
"0.546886",
"0.5468598",
"0.54679567",
"0.546545",
"0.54633445",
"0.54618084",
"0.54537225",
"0.5452905",
"0.54517066",
"0.54436266",
"0.5438741",
"0.5421885",
"0.5418189",
"0.54181474",
"0.5414278",
"0.54131883",
"0.54097444"
] | 0.5774056 | 53 |
Computes the present value of the instrument. | MultipleCurrencyAmount presentValue(CapFloorIbor cap, SABRCapProviderInterface sabr); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getValue();",
"double getValue();",
"double getValue();",
"public double getValue()\n\t{\n\t\treturn ifD1.getValue();// X100 lux\n\t}",
"@VTID(14)\r\n double getValue();",
"public double getValue();",
"private double getValue() {\n return value;\n }",
"@Override\r\n protected double computeValue()\r\n {\n return interpFlow.getValue(Scheduler.getCurrentTime());\r\n }",
"public double getValue() {\n\t\treturn sensorval;\n\t}",
"public abstract double getValue();",
"double getPValue();",
"public double getValue() {\n return (numeratorValue * multiplier) / (denominatorValue * divisor);\n }",
"public double getValue(){\n return value;\n }",
"Double getValue();",
"float getValue();",
"float getValue();",
"float getValue();",
"@Override\n public double getValue()\n {\n return value;\n }",
"@Override\n\tpublic double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n\t\treturn(value);\n\t}",
"double getBasedOnValue();",
"Measurement getAccumulation();",
"public int getEstValue(){\r\n return this.estValue;\r\n }",
"public double getValue() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 1.00;\n\t}",
"public double getValue(){\n return (double) numerator / (double) denominator;\n }",
"@Override\n public double getValue() {\n return currentLoad;\n }",
"public double getSIvalue() {\n\t\treturn(value*factor + offset);\n\t}",
"public double getValue() {\n return value_;\n }",
"public double getValue() {\n return value;\n }",
"public double getValue() {\n return value;\n }",
"public double getValue() {\n return value;\n }",
"public static double value(){\n\t\t\tdouble Y0 = Store.getY0();\n\t\t\tdouble W = Store.getSampleWidth(); \n\t\t\tdouble Vr = Store.getDummyNotchVoltage();\n\t\t\tdouble ar = Store.getCrackSize()[0]; \n\t\t\tdouble V = Store.getNotchVoltage();\n\t\t\t\n\t\t\tdouble cracksize = 0;\n\t\t\t\n\t\t\tswitch(Store.getSampleType()){\n\t\t\t\tcase \"C(T)\":\n\t\t\t\t\t\tcracksize = ct(W, Vr, V);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase \"M(T)\": \n\t\t\t\t\tcracksize = johnsoneqn(ar,Vr, W, V, Y0);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"ESE(T)\":\n\t\t\t\t\tcracksize = johnsoneqn2(ar, Vr, W, V, Y0);\n\t\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\treturn cracksize;\n\t}",
"public double evaluate(){\n trialsSoFar++;\n double tot = 0;\n int ix = 0;\n while (ix < genome.getGenome().size()) {\n // directly access the current value field of each bandit\n boolean block = true;\n for (int j=0; j<blockSize; j++) {\n if (genome.getGenome().get(ix).getX() != 1)\n block = false;\n ix++;\n }\n if (block) {\n tot += blockSize;\n }\n }\n return tot;\n }",
"public double value() {\r\n return value;\r\n }",
"public double getValue() {\r\n\t\treturn value;\r\n\t}",
"@Override\n public Double getValue()\n {\n final ApdexSnapshot snapshot = getSnapshot();\n if (snapshot == null || snapshot.getSize() == 0)\n return 0.0D;\n\n final int satisfied = snapshot.getSatisfiedSize();\n final int tolerating = snapshot.getToleratingSize();\n final int total = snapshot.getSize();\n double score = (satisfied + (tolerating / 2.0)) / total;\n\n return score;\n }",
"public double getValue()\n {\n return this.value;\n }",
"public double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n\t\treturn value;\n\t}",
"public double getValue() {\n return 0.05;\n }",
"public double getValue() {\n return NUMERATOR / DENOMINATOR;\n }",
"public double getValue() {\n return value_;\n }",
"float getIva();",
"public double value() {\n return ((double) this.numerator / this.denominator);\n }",
"@Test\n /**\n * Tests the present value computation.\n */\n public void presentValue() {\n final MultipleCurrencyAmount pv = METHOD.presentValue(FX, CURVES);\n final CurrencyAmount ca1 = CurrencyAmount.of(CUR_1, PAY_1.accept(PVC_IR, CURVES));\n final CurrencyAmount ca2 = CurrencyAmount.of(CUR_2, PAY_2.accept(PVC_IR, CURVES));\n assertEquals(ca1, pv.getCurrencyAmount(CUR_1));\n assertEquals(ca2, pv.getCurrencyAmount(CUR_2));\n }",
"protected abstract void getPotentiometerValue(int value, int channelNo);",
"public double getValue() {\r\n return this.value;\r\n }",
"@Override\n public double getValue() {\n return 0;\n }",
"public abstract double getMeasurement();",
"public abstract double getMeasurement();",
"int getMPValue();",
"public double regionValue(){\n return counter.regionValue();\n }",
"public double calculateCommercialValue (){\n\t\t\n\t\treturn commericalValue;\n\t\t\n\t\n\t}",
"public double getCurrentFuel();",
"public double getValue() {\n return this.value;\n }",
"public double getValue() {\n return this.value;\n }",
"public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }",
"public abstract VALUEIN getCurrentValue() throws IOException, \n InterruptedException;",
"@Override\r\n public double calculatePiValue() {\r\n double variable = 0;\r\n double value = 0;\r\n for (int step =1;step<=steps; step++) {\r\n variable = step*2+1;\r\n if(step % 2 == 0) {\r\n value = value + ( (double)1 / variable);\r\n } else {\r\n value = value - ( (double)1 / variable);\r\n }\r\n }\r\n value = (1 + value)* 4;\r\n return value;\r\n }",
"public double getValue() {\n return this._value;\n }",
"double getValue(int id);",
"double get();",
"protected abstract float getMeasurement();",
"public double getValue() {\n\t\treturn this.value; \n\t}",
"double getValue() {\n return mValue;\n }",
"public abstract double GetRaw();",
"public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }",
"public double getCurrentValue()\r\n\t{\r\n\t\tcurrentValue=(2*border+24)/2;\r\n\t\treturn currentValue;\r\n\t}",
"public double getValue() {\n\t\treturn this.value;\n\t}",
"public double calculate() {\n\t\treturn area*1800;\r\n\t}",
"@Override\n public double getValue(Pin pin) {\n super.getValue(pin);\n return isInitiated() ? readAnalog(toCommand((short) pin.getAddress())) : INVALID_VALUE;\n }",
"@Override\n\tpublic double getMetricValue() {\n\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"public abstract float getValue();",
"public abstract double computeValue(Density density);",
"@Override\n public double calculate(double input)\n {\n return input/getValue();\n }",
"public double result() {return 0;}",
"protected double compute(int sample) {\n\t\tdouble v = Math.sin((double) sample * 2.0 * Math.PI * (double) frequency\n\t\t\t\t/ (double) AudioSequence.SAMPLES_PER_SECOND);\n\t\treturn v;\n\t}",
"protected abstract SoyValue compute();",
"public double obtValor() {\r\n\t\treturn v;\r\n\t}",
"public final float getValue() {\r\n\t\treturn value;\r\n\t}",
"public float getCurrentValue() {\n return currentValue;\n }",
"public abstract Double getDataValue();",
"V getValue();",
"V getValue();",
"V getValue();",
"private float getRsiPotential() {\r\n\t\treturn 1F - (float)(stochRsiCalculator.getCurrentValue()/50.0);\r\n\t}",
"@Override\n public double getOutput() {\n return this.inputValue;\n }",
"int getValue();",
"int getValue();",
"int getValue();",
"int getValue();",
"int getValue();",
"public double getInterest ()\n {\n return interest;\n }",
"@Override\n\tpublic double GetValue() {\n\t\tdouble spot = inputs.getSpot();\n\t\tdouble strike = inputs.getStrike();\n\t\tdouble vol = inputs.getVol();\n\t\tint noSteps=inputs.getNoSteps();\n\t\tdouble expiry=inputs.getExpiry();\n\t OptionType type=inputs.getType();\n\t ExerciseType exercise=inputs.getExercise();\n\t InterestRate interestRate=inputs.getR();\n\t\t\n\t double timestep = expiry/noSteps;\n\t double DF = Math.exp(-interestRate.GetRate(1.)*timestep);\n\t double temp1 = Math.exp((interestRate.GetRate(1.) + vol * vol)*timestep);\n\t double temp2 = 0.5 * (DF + temp1);\n\t double up = temp2 + Math.sqrt(temp2*temp2 - 1);\n\t double down = 1/ up;\n\t double probaUp = (Math.exp(interestRate.GetRate(1.) * timestep) - down)/(up -down) ;\n\t double probaDown = 1 - probaUp;\n\n\t //stock price tree\n\t\tstockPrice[0][0]=spot;\n\t for (int n = 1; n <= noSteps; n ++) {\n for (int j = n; j > 0; j--){\n \tstockPrice[j][n] = up * stockPrice[j-1][n-1];\n }\n \t\tstockPrice[0][n] = down * stockPrice[0][n-1];\n }\n\t \n\t //last column set payoffs\n\t\tfor (int j = 0; j <= noSteps; j++) {\n\t\t\t\tif(type.equals(OptionType.CALL)) {\n\t\t\t\t\tpayOff[j][noSteps] = Math.max(this.stockPrice[j][noSteps] - strike, .0);\n\t\t\t\t}else {\n\t\t\t\t\tpayOff[j][noSteps] = Math.max(strike - this.stockPrice[j][noSteps], .0);\n\t\t\t\t}\n\t\t}\n\n\t\t\n\t //payoff tree in backwardation\n\t \n\t for (int i = noSteps ; i >= 1; i--) {\n for (int j = 0; j <= i-1; j++) {\n\t \tif(exercise.equals(ExerciseType.AMERICAN)) { \n\t //American\t\n\t \t\tif(type.equals(OptionType.CALL)) {\n\t \t\t\t\tpayOff[j][i-1] = Math.max(DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]) ,\n\t \t\t\t\tMath.max(this.stockPrice[j][i-1] - strike, .0));\n\t \t\t\t\n\t \t\t}else \tpayOff[j][i-1] = Math.max(DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]) ,\n\t \t\t\t\tMath.max(strike - this.stockPrice[j][i-1] , .0));\n\t \t}else { \n\t \t\t\t//European put and call option\n\t \t\t\t\tpayOff[j][i-1] = DF * (probaUp * payOff[j+1][i] + probaDown * payOff[j][i]);\n\t }\n }\n }\n\t \n\t double deltaUp = (payOff[0][2]-payOff[1][2])/(stockPrice[0][2]-stockPrice[1][2]);\n\t double deltaDown = (payOff[1][2]-payOff[2][2])/(stockPrice[1][2]-stockPrice[2][2]);\n\t delta = (deltaUp + deltaDown) /2;\n\t gamma = (deltaUp-deltaDown)/((stockPrice[0][2]-stockPrice[2][2])/2);\n\t theta = (payOff[1][2]-payOff[0][0])/(365*2*timestep);//time in days\n\t \n\t long rounded = Math.round(payOff[0][0]*10000);\n\t return rounded/10000.0;\n\t}",
"public float getSignalValue(int index);",
"public abstract double calcSA();",
"public double calculateValue () {\n return double1 * double2;\n }",
"public Double getValue() {\n return value;\n }",
"public Double getValue() {\n return value;\n }",
"public double getValue(){\n\t\treturn slider.getValue() ;\n\t}"
] | [
"0.6770469",
"0.6770469",
"0.6770469",
"0.6705535",
"0.67048633",
"0.665411",
"0.6404109",
"0.63960266",
"0.6355643",
"0.6300834",
"0.62824214",
"0.6266896",
"0.6265342",
"0.6262162",
"0.62576866",
"0.62576866",
"0.62576866",
"0.6246582",
"0.6245436",
"0.62439585",
"0.6238794",
"0.6214742",
"0.6207277",
"0.6198873",
"0.6178328",
"0.61718714",
"0.6149984",
"0.61313975",
"0.61251414",
"0.61251414",
"0.61251414",
"0.61029613",
"0.6087677",
"0.6086535",
"0.6071422",
"0.6068562",
"0.6064555",
"0.6048964",
"0.6048964",
"0.6048964",
"0.60202336",
"0.601826",
"0.60179716",
"0.60178643",
"0.6012316",
"0.6006993",
"0.59983104",
"0.5995305",
"0.5978463",
"0.59599155",
"0.59599155",
"0.5942654",
"0.59417367",
"0.5935293",
"0.5931554",
"0.59276545",
"0.59276545",
"0.59227073",
"0.59152085",
"0.59068346",
"0.58921164",
"0.58838326",
"0.5865103",
"0.58594215",
"0.58563465",
"0.58540285",
"0.5852679",
"0.5844183",
"0.5831446",
"0.5810906",
"0.5809786",
"0.5796662",
"0.57735217",
"0.5769887",
"0.57687885",
"0.5758619",
"0.575585",
"0.5752408",
"0.5750242",
"0.5743725",
"0.57418275",
"0.57281643",
"0.5725715",
"0.57237285",
"0.57237285",
"0.57237285",
"0.57208896",
"0.5709681",
"0.57064325",
"0.57064325",
"0.57064325",
"0.57064325",
"0.57064325",
"0.57019305",
"0.56987953",
"0.5698724",
"0.5695368",
"0.56902206",
"0.5689449",
"0.5689449",
"0.56824255"
] | 0.0 | -1 |
Creates a new xforms error indication. | public XFormsErrorIndication(String message, Exception cause, EventTarget target, Object info) {
super(message, cause);
this.target = target;
this.info = info;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void test112() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.radio(\"-1kj9%E7\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"@Test\n public void test013() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.textInput(\"V\\\"i%{rPYE$\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"public ErrorGUI() {\n\t\terror = new Error();\n\t\t\n\t}",
"public void addError(String message);",
"@Test\n public void test109() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"-1Uj)9%67!\", \"-1Uj)9%67!\");\n // Undeclared exception!\n try {\n Component component0 = errorPage0.addFirst((Component) checkbox0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Cannot add a form element. No surrounding form found.\n //\n }\n }",
"void errorBox(String title, String message);",
"@Test\n public void test123() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.reset(\"\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"@Test\n public void test044() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.fileInput(\":JX\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"protected void createFrame(String x) {\n InternalFrame frame = new InternalFrame();\n frame.setVisible(true);\n JOptionPane.showMessageDialog(frame, x, \"ERROR\", JOptionPane.ERROR_MESSAGE);\n JLabel invalid = new JLabel(x);\n invalid.setBounds(180, 500, 200, 100);\n frame.add(invalid);\n try {\n frame.setSelected(true);\n } catch (java.beans.PropertyVetoException e) {\n e.printStackTrace();\n }\n }",
"public errPopUp(String value) {\n initComponents();\n errorMsg.setText(value);\n this.setVisible(false);\n }",
"void setError();",
"private JFrame popError() {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(\"Error!\");\n\t\tf.setSize(200, 200);\n\t\tf.setLocationRelativeTo(null);\n\t\tJPanel showResult = new JPanel();\n\t\tJTextArea area = new JTextArea(\"No such Record!\");\n\t\tshowResult.add(area);\n\t\tf.add(showResult);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}",
"public void showError(String error);",
"public void showError(String errorMessage);",
"public abstract void setError(String message);",
"void showError(String message);",
"void showError(String message);",
"public void makeError(){\n\t\tisError = true;\n\t}",
"void showError (String occurredWhile, String error) {\n\n// creates the VerticalBox for all elements\n VBox pane = new VBox();\n\n// creates all necessary labels, adds them to errPane\n Label genLabel = new Label(\"Error occured while \" + occurredWhile + \":\");\n Label errLabel = new Label(error);\n genLabel.setStyle(\"-fx-padding: 10, 10, 10, 10;\");\n errLabel.setStyle(\"-fx-padding: 10, 10, 10, 10;\");\n pane.getChildren().addAll(genLabel, errLabel);\n\n// creates a Scene, applies stylesheets\n Scene scene = new Scene(pane);\n scene.getStylesheets().add(getClass().getResource(\"stylesheet.css\").toExternalForm());\n scene.getStylesheets().add(stylesheet.toString());\n\n// creates a new errorWindow\n errorWindow = new Stage();\n errorWindow.setTitle(\"Error\");\n errorWindow.setResizable(false);\n errorWindow.setScene(scene);\n errorWindow.show();\n }",
"void showError(String errorMessage);",
"public abstract void showErrorBox(Throwable error);",
"public Builder setError(\n int index, WorldUps.UErr value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.set(index, value);\n onChanged();\n } else {\n errorBuilder_.setMessage(index, value);\n }\n return this;\n }",
"private void setErrorUI() {\n err = new JLabel(\" \");\n err.setBorder(BorderFactory.createMatteBorder(0, 15, 0, 15, new Color(248, 248, 251)));\n err.setFont(new Font(\"Nunito\", Font.PLAIN, 12));\n err.setForeground(new Color(247, 37, 133));\n err.setAlignmentX(Component.CENTER_ALIGNMENT);\n }",
"ResponseErrorAssembler addErrorMesage(Message errorMessage);",
"@Test\n public void test117() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.sub((Object) errorPage0);\n Table table0 = new Table(label0, (String) null);\n Table table1 = table0.renderHint((CharSequence) null);\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.checkbox((String) null);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"@Test\n public void test009() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.numberInput(\"2CVo`z1\", (CharSequence) \"2CVo`z1\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"public Builder addError(\n int index, WorldUps.UErr value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.add(index, value);\n onChanged();\n } else {\n errorBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private void setErrorMessage() {\n messageLabel.setText(NbBundle.getMessage(JavaFXPlatformCustomizer.class, \"Customizer_Invalid_Platform_Msg\")); // NOI18N\n }",
"@Override\n public void showError() {\n }",
"@Test\n public void test088() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.code();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"-1Uj)9%67!\", \"-1Uj)9%67!\");\n ElExpression elExpression0 = checkbox0.el(\"-1Uj)9%67!\");\n // Undeclared exception!\n try {\n FormElement formElement0 = checkbox0.fileInput(\"-1Uj)9%67!\", elExpression0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"void Alert(IErrorDisplayer displayer, T ex, String message);",
"public void addError(String response) {\n VBox error = new VBox();\n Text errorText = new Text(response);\n error.getChildren().add(errorText);\n root.setRight(error);\n }",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"private ErrorFactory() {\r\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 }",
"public String formInternalError() \r\n {\r\n return formError(\"500 Internal server error\",\"Server broke\");\r\n }",
"public String createErrorMessage(CommandSender sender, MCommand command);",
"@Test(timeout = 4000)\n public void test119() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.hidden(\"java.lang.String@0000000005\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n verifyException(\"wheel.components.ComponentCreator\", e);\n }\n }",
"private void showErrorDialog(){\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.booking_not_created));\n builder.setMessage(getString(R.string.customer_already_has_active_booking_error));\n builder.setIcon(R.drawable.ic_error_black_24dp);\n builder.setCancelable(false);\n // When users confirms dialog, close the activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n // Close the Activity..\n finish();\n });\n\n AlertDialog dialog = builder.create();\n dialog.setCanceledOnTouchOutside(false);\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n }",
"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 void addFieldError(String fieldExpression, String errorMessage)\n\t\t\tthrows XPathExpressionException {\n\t\tNode node = evaluateXPath(validationDoc, fieldExpression);\n\t\tNamedNodeMap attributes = node.getAttributes();\n\t\tAttr validAttr = validationDoc.createAttribute(\"v:valid\");\n\t\tvalidAttr.setValue(\"false\");\n\t\tattributes.setNamedItem(validAttr);\n\t\tAttr alertAttr = validationDoc.createAttribute(\"v:alert\");\n\t\talertAttr.setValue(errorMessage);\n\t\tattributes.setNamedItem(alertAttr);\n\t\tvalid = false;\n\t}",
"private ValidationError() {\n }",
"void showErrorMsg(String string);",
"void showErrorSnackbar();",
"@Test\n public void test019() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.numberInput(\"$.{\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"public noNamespace.ErrorDocument.Error insertNewError(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.ErrorDocument.Error target = null;\r\n target = (noNamespace.ErrorDocument.Error)get_store().insert_element_user(ERROR$0, i);\r\n return target;\r\n }\r\n }",
"void onCreateCaseError(ErrorResponse error);",
"private void showErrorDialog(String msg) {\n\t\tJFXDialogLayout content = new JFXDialogLayout();\n\t\tcontent.setHeading(new Text(\"ERROR\"));\n\t\tcontent.setBody(new Text(msg));\n\t\tJFXDialog dialog = new JFXDialog(stackPane, content, JFXDialog.DialogTransition.CENTER);\n\t\t;\n\n\t\tJFXButton button = new JFXButton(\"I understand\");\n\t\tbutton.setButtonType(ButtonType.RAISED);\n\t\tbutton.setCursor(Cursor.HAND);\n\t\tbutton.setOnAction(e -> dialog.close());\n\t\tcontent.setActions(button);\n\t\tdialog.show();\n\t}",
"public void error(ValidationType type, String validationName, String content);",
"void setCustomValidity(String error);",
"public ErrorGUI(int num) {\n\t\terror = new Error();\n\t\tthis.generateMessage(num);\n\n\t}",
"public HBox errorMessage() {\r\n\t\t// Setup Error Message\r\n\t\terrorMessage.setFill(Color.RED);\r\n\t\t\r\n\t\t// Setup HBox\r\n\t\tHBox error = new HBox();\r\n\t\terror.setAlignment(Pos.CENTER); \r\n\t\t\r\n\t\t// Add Error Message\r\n\t\terror.getChildren().add(errorMessage);\r\n\t\t\r\n\t\treturn error;\r\n\t}",
"@Test\n public void test045() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.dateInput(\"\", \"\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"private void showErrorDialog(int errorCode) {\n\t\t\n }",
"private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }",
"private void initializeComponent() throws Exception {\n System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(FormAlertSimple.class);\n this.labelMsg = new System.Windows.Forms.Label();\n this.SuspendLayout();\n //\n // labelMsg\n //\n this.labelMsg.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right)));\n this.labelMsg.Location = new System.Drawing.Point(12, 9);\n this.labelMsg.Name = \"labelMsg\";\n this.labelMsg.Size = new System.Drawing.Size(276, 82);\n this.labelMsg.TabIndex = 0;\n this.labelMsg.Text = \"Message\";\n this.labelMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;\n //\n // FormAlertSimple\n //\n this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None;\n this.ClientSize = new System.Drawing.Size(300, 100);\n this.Controls.Add(this.labelMsg);\n this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;\n this.Icon = ((System.Drawing.Icon)(resources.GetObject(\"$this.Icon\")));\n this.Name = \"FormAlertSimple\";\n this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;\n this.ResumeLayout(false);\n }",
"void setErrorAppTag(String errorMessage);",
"void drawError(String message);",
"private void showError(String message){\n\t\tsetupErrorState();\n\t\tsynapseAlert.showError(message);\n\t}",
"@Override\n\tpublic void showError(String message) {\n\t\t\n\t}",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"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 }",
"private void action_error(HttpServletRequest request, HttpServletResponse response, String message) {\n\n FailureResult fail = new FailureResult(getServletContext());\n fail.activate(message, request, response);\n }",
"public void error(String message);",
"void errorResponse( String error );",
"@Test\n public void test027() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.passwordInput(\"H6U@J\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"public void error();",
"private void printErrorAlert(String title, String header, String message) {\r\n\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\r\n\t\tif(title.length()>0)\r\n\t\t\talert.setTitle(title);\r\n\t\tif(header.length()>0)\r\n\t\t\talert.setHeaderText(header);\r\n\t\tif(message.length()>0)\r\n\t\t\talert.setContentText(message);\r\n\t\tStage stage = (Stage) alert.getDialogPane().getScene().getWindow();\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"x.png\").toString()));\r\n\t\talert.showAndWait();\r\n\t}",
"public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }",
"private void displayErrorDialog(String message) {\n AlertDialog.Builder builder;\n\n builder = new AlertDialog.Builder(this);\n builder.setTitle(getString(R.string.er_error))\n .setMessage(message)\n .setNegativeButton(getString(R.string.bt_close), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n }).setIcon(android.R.drawable.stat_notify_error).show();\n }",
"public Builder setError(protodef.b_error.info value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n error_ = value;\n onChanged();\n } else {\n errorBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }",
"public Builder setError(protodef.b_error.info value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n error_ = value;\n onChanged();\n } else {\n errorBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }",
"public noNamespace.ErrorDocument.Error addNewError()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.ErrorDocument.Error target = null;\r\n target = (noNamespace.ErrorDocument.Error)get_store().add_element_user(ERROR$0);\r\n return target;\r\n }\r\n }",
"public void fatalError(ValidationType type, String validationName, String content);",
"public abstract void showInitError(String s);",
"public noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors.Error insertNewError(int i)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors.Error target = null;\r\n target = (noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors.Error)get_store().insert_element_user(ERROR$0, i);\r\n return target;\r\n }\r\n }",
"public void inquiryError() {\n\t\t\n\t}",
"@Test\n public void test061() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Block block0 = (Block)errorPage0.link();\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.hidden(\"Col component can e added onlG to a TableBlock.\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"public noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors addNewErrors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors target = null;\r\n target = (noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors)get_store().add_element_user(ERRORS$4);\r\n return target;\r\n }\r\n }",
"public ModelAndView notifyAboutInvalidData() {\n \tSystem.out.println(\"radi ovo obavestenje\");\n this.template.convertAndSend(\"/nc/errors\", \"Registration failed\");\n //return \"Korisničko ime/email već postoji u sistemu\";\n String projectUrl = \"http://localhost:4200/registration/error\";\n\t\treturn new ModelAndView(\"redirect:\" + projectUrl);\n }",
"public ErrorInfo(Form3Exception ex) {\n this.details = ex.getMessage();\n this.code = ex.getErrorReason().toString();\n }",
"public CrashReport withError(String error);",
"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 ErrorMessage(String error) {\n \tJOptionPane.showMessageDialog(parent, error);\n }",
"private String renderErrorMessageBox(String errorMsg) {\n \t\tStringBuilder builder = new StringBuilder(\n \t\t\t\t\"<br/><br/><div align=center>\");\n \t\tbuilder.append(errorMsg);\n \t\tbuilder.append(\"</div>\");\n\n \t\treturn builder.toString();\n \t}",
"@Test\n public void test136() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n DynamicSelectModel dynamicSelectModel0 = errorPage0.selectModel();\n ElExpression elExpression0 = errorPage0.el(\"4~?^\");\n // Undeclared exception!\n try {\n FormElement formElement0 = errorPage0.radioGroup(\"4~?^\", (ISelectModel) dynamicSelectModel0, elExpression0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Form elements can be created only by compoents that are attached to a form component.\n //\n }\n }",
"abstract void setResponseErrorMsg(HttpServletResponse response, String msg) throws IOException;",
"protected static ExceptionSignalingNode createExceptionNode(final SourceSection ss) {\n CompilerDirectives.transferToInterpreter();\n return ExceptionSignalingNode.createNode(Symbols.symbolFor(\"TypeError\"), ss);\n }",
"public com.opentext.bn.converters.avro.entity.ContentErrorEvent.Builder setErrorId(java.lang.String value) {\n validate(fields()[3], value);\n this.errorId = value;\n fieldSetFlags()[3] = true;\n return this;\n }",
"@Test\n public void test140() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Label label0 = (Label)errorPage0.address((Object) errorPage0);\n Form form0 = label0._getVisibleForm(false);\n Checkbox checkbox0 = new Checkbox(errorPage0, \"Unspported type gien Hor dateFormt. Supported types are: Date, Calendr, Long/long .\", \"Unspported type gien Hor dateFormt. Supported types are: Date, Calendr, Long/long .\");\n Label label1 = (Label)label0.h2((Object) errorPage0);\n ElExpression elExpression0 = checkbox0.el(\"Unspported type gien Hor dateFormt. Supported types are: Date, Calendr, Long/long .\");\n // Undeclared exception!\n try {\n Component component0 = checkbox0.h3((Object) elExpression0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Could not evaluate expression Unspported type gien Hor dateFormt. Supported types are: Date, Calendr, Long/long . in class wheel.ErrorPage\n //\n }\n }",
"private void addGlobalExceptionToPage(Exception exception, BindingResult bindingResult) {\n ObjectError error = new ObjectError(\"globalError\", exception.getMessage());\n bindingResult.addError(error);\n }",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"@Test\n public void test020() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Checkbox checkbox0 = new Checkbox(errorPage0, \"LmHM9{y{68U,null,savored,null,null,null,null,null,null,null,null,null,null,null,null,\", \"LmHM9{y{68U,null,savored,null,null,null,null,null,null,null,null,null,null,null,null,\");\n // Undeclared exception!\n try {\n Component component0 = checkbox0.frame((CharSequence) \"LmHM9{y{68U,null,savored,null,null,null,null,null,null,null,null,null,null,null,null,\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public void setErrorMsg(String errorMsg) {\n this.errorMsg = errorMsg;\n }"
] | [
"0.6012028",
"0.5921286",
"0.5884488",
"0.5845584",
"0.583714",
"0.5802867",
"0.58009297",
"0.5779453",
"0.5758173",
"0.57316536",
"0.5666769",
"0.56420076",
"0.5635601",
"0.5629675",
"0.56289464",
"0.5626999",
"0.5626999",
"0.56150484",
"0.56145686",
"0.5590789",
"0.55885094",
"0.5580822",
"0.5565839",
"0.555688",
"0.55495626",
"0.55317456",
"0.5525655",
"0.5519138",
"0.54822433",
"0.54800165",
"0.5479575",
"0.5477871",
"0.5473477",
"0.545043",
"0.5422106",
"0.5422106",
"0.5422106",
"0.5422106",
"0.53926295",
"0.53810036",
"0.5364686",
"0.53534937",
"0.5350745",
"0.5350031",
"0.5333826",
"0.5325829",
"0.53251165",
"0.5324445",
"0.5324279",
"0.5314182",
"0.53110516",
"0.5309542",
"0.53053916",
"0.5299328",
"0.52947575",
"0.52931917",
"0.52928203",
"0.5287419",
"0.5287391",
"0.52724904",
"0.52671915",
"0.5267142",
"0.5259925",
"0.5254464",
"0.5254464",
"0.5254464",
"0.5254464",
"0.52469987",
"0.52426",
"0.52396864",
"0.52396536",
"0.5232833",
"0.5229123",
"0.5228791",
"0.5221512",
"0.5218327",
"0.52154416",
"0.52154416",
"0.5197091",
"0.518615",
"0.51837623",
"0.51820594",
"0.51785785",
"0.51773554",
"0.5173701",
"0.5168563",
"0.5166281",
"0.5157859",
"0.51505095",
"0.51500463",
"0.51492107",
"0.51388896",
"0.51306194",
"0.5128002",
"0.5121715",
"0.51173866",
"0.5114832",
"0.5104655",
"0.5100976",
"0.50974816"
] | 0.6047289 | 0 |
Specifies wether this error indication is fatal or nonfatal. | public abstract boolean isFatal(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ExceptionHit exceptionFatal(Boolean value) {\n setBoolean(EXCEPTION_FATAL, value);\n return this;\n }",
"public void fatal(String message);",
"public void fatal(Exception ex) {\n\t\t\n\t}",
"public boolean isFatalEnabled()\n/* */ {\n/* 266 */ return getLogger().isFatalErrorEnabled();\n/* */ }",
"@Override\n\tpublic boolean isFatalEnabled() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void fatal(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void fatal(String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic boolean isFatalEnabled(Marker marker) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void fatal(Marker marker, String message, Object p0) {\n\n\t}",
"@Override\n\tpublic void fatal(Object message) {\n\n\t}",
"@Override\n\tpublic void fatal(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 fatal(Marker marker, Message msg) {\n\n\t}",
"@Override\n\tpublic void fatal(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void fatal(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 fatal(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 fatal(Message msg) {\n\t}",
"@Override\n\tpublic void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void fatal(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}",
"@Override\n\tpublic void fatal(Marker marker, String message) {\n\n\t}",
"@Override\n\tpublic void fatal(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\n\tpublic void fatal(Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void fatal(String message, Object p0) {\n\n\t}",
"@Override\n\tpublic void fatal(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 fatal(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 fatal(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 fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5) {\n\n\t}",
"public void fatal(Object message)\n/* */ {\n/* 226 */ if (message != null) {\n/* 227 */ getLogger().fatalError(String.valueOf(message));\n/* */ }\n/* */ }",
"@Override\n\tpublic void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n\tpublic void fatal(Object message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public boolean isFatalCondition(QueryInfo queryInfo, int i) {\n return super.isFatalCondition(queryInfo, i) || i == 14;\n }",
"@Override\n\tpublic void fatal(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, Object message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, String message, Object... params) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, String message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void fatal(String message, Object... params) {\n\n\t}",
"@Override\n\tpublic void fatal(Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void fatal(CharSequence message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, CharSequence message) {\n\n\t}",
"@JRubyMethod(name = \"fatal\")\n public IRubyObject fatal(final ThreadContext context,\n final IRubyObject msg, final Block block) {\n return context.runtime.newBoolean( add(FATAL, context, msg, block) );\n }",
"@Override\n\tpublic void fatal(CharSequence message) {\n\n\t}",
"@Override\n\tpublic void fatal(Marker marker, CharSequence message, Throwable t) {\n\n\t}",
"public void setErr(boolean a) {\n\t\terr = a;\r\n\t}",
"public void fatal(Object message, Throwable t)\n/* */ {\n/* 240 */ if (message != null) {\n/* 241 */ getLogger().fatalError(String.valueOf(message), t);\n/* */ }\n/* */ }",
"@Override\n\tpublic void fatal(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public void fatal(Object message) {\n this.logger.fatal(message);\n }",
"public void fatalError(String s)\r\n\t{\n\t\tForm form = new Form(\"Fatal Error\");\r\n\t\tform.append(new StringItem(null, s));\r\n\t\tform.addCommand(exitCommand);\r\n\t\tform.setCommandListener(this);\r\n\t\tDisplay.getDisplay(this).setCurrent(form);\r\n\t}",
"@Override\n\tpublic void fatal(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void fatal(MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n public void fatal(String message) {\n if (Level.FATAL.getPriority() <= level.getPriority()) {\n print(\"FATAL: \" + message);\n }\n }",
"public static LogType FATAL()\n {\n if (g_oFatal == null)\n {\n try\n {\n g_oFatal = new LogType(\"FATAL\", 0);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oFatal;\n }",
"public static void fatal( String message ) {\n\twarn( message );\n\tSystem.exit( 1 );\n }",
"public boolean hasErrorLevel() {\n return fieldSetFlags()[5];\n }",
"public void fatal(String msg) {\n LOGGER_BASE.fatal(msg);\n }",
"private boolean isFatalException(SQLException e) {\n\t\tboolean fatalException = false;\n\t\tString state = e.getSQLState();\n\t\tif (state != null) {\n\t\t\tfatalException = state.startsWith(DISCONNECTION_SQL_CODE_PREFIX) \n\t\t\t\t\t\t\t\t\t\t|| DISCONNECTION_SQL_CODES.contains(state);\n\t\t\tif (!fatalException) {\n\t\t\t\tSQLException nextException = e.getNextException();\n\t\t\t\tif (nextException != null && nextException != e) {\n\t\t\t\t\tfatalException = isFatalException(nextException);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn fatalException;\n\t}",
"public void fatalError(String msg) {\n\t\tLog.e(\"FATAL ERROR\", msg);\n\t\tSystem.exit(0);\n\t}",
"public ProcessManagerException getFatalException() {\r\n return fatalException;\r\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 report_fatal_error(String message, Object info) {\r\n report_error(message, info);\r\n System.exit(1);\r\n }",
"public void fatal(String message, Throwable throwable);",
"@Override\n public boolean isSurroundingFatal() {\n return true;\n }",
"@SuppressWarnings(\"unused\")\n protected void fatal(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isFatalEnabled()) {\n this.getContainer().getLogger().fatal(msg);\n }\n }",
"@SuppressWarnings(\"unused\")\n public static void fatal(String message) {\n FacesContext.getCurrentInstance()\n .addMessage(null,\n new FacesMessage(FacesMessage.SEVERITY_FATAL,\n FacesUtils.getlocalizedString(ResourceBundles.GENERAL, \"fatal\") + \"!\",\n message));\n }",
"public void m16921a(boolean z) {\n this.f14943b.putInt(\"is_upload_err_log\", Integer.valueOf(z ? 0 : 1));\n }",
"void onFatal();",
"public void report_fatal_error(String message, Object info) throws java.lang.Exception {\r\n done_parsing();\r\n report_error(message, info);\r\n }",
"@Override\n\tpublic void fatal(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public static final void ccSetSilentError(boolean pxVal){\n cmErrOn=!pxVal;\n }",
"public void setFatalError(String message) {\n\t\tloadingInfo.setInnerText(message);\n\t}",
"boolean isExceptionFatal(SQLException e);",
"public boolean hasErrorInCounty() {\n\n return (this.getCountyFeature() == null) ? false : true;\n }",
"public boolean hasSeverity() {\n return fieldSetFlags()[2];\n }",
"protected final void fatal() throws SAXException {\n SAXParseException spe = new SAXParseException(\n \"Cannot recover after last error. Any further errors will be ignored.\", tokenizer);\n if (errorHandler != null) {\n errorHandler.fatalError(spe);\n }\n throw spe;\n }",
"public final boolean isQuiet() {\r\n return quiet;\r\n }",
"public boolean isQuiet() {\n return quiet;\n }",
"public boolean isQuiet() {\n return quiet;\n }",
"public void fatalError(SAXParseException exception) throws SAXException\n {\n\n // Increment counter, save the exception, and log what we got\n counters[TYPE_FATALERROR]++;\n\n String exInfo = getParseExceptionInfo(exception);\n\n setLastItem(exInfo);\n\n // Log or validate the exception\n logOrCheck(TYPE_FATALERROR, \"fatalError\", exInfo);\n\n // Also re-throw the exception if asked to\n if ((throwWhen & THROW_ON_FATAL) == THROW_ON_FATAL)\n {\n throw new SAXException(exception);\n }\n }",
"public void setQuiet(boolean isQuiet) {\r\n\t\tthis.isQuiet = isQuiet;\r\n\t}",
"public void setFinPreencumSufficientFundIndicator(boolean finPreencumSufficientFundIndicator) {\n this.finPreencumSufficientFundIndicator = finPreencumSufficientFundIndicator;\n }",
"@DataBoundSetter\n public void setQuiet(boolean quiet) {\n this.quiet = quiet;\n }",
"@Override\n\tpublic void fatal(Supplier<?> msgSupplier) {\n\n\t}",
"public void fatal(Object message, Throwable t) {\n this.logger.fatal(message, t);\n }",
"@Override\n\tpublic void fatal(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public final void mT65() throws RecognitionException {\n try {\n int _type = T65;\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:63:5: ( 'fatal' )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:63:7: 'fatal'\n {\n match(\"fatal\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }",
"public boolean isSetImportance() {\n return EncodingUtils.testBit(__isset_bitfield, __IMPORTANCE_ISSET_ID);\n }",
"public final void fatal(Component reporter, String message)\n\t{\n\t\tadd(new FeedbackMessage(reporter, message, FeedbackMessage.FATAL));\n\t}",
"public boolean isQuiet() {\n\t\treturn false;\n\t}",
"public void fatal(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 95 */ this.logger.fatal(loggerFqcn, message, t);\n/* */ }",
"@Override\n\tpublic void fatal(Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"@objid (\"9ecad15f-7403-4692-8909-d35b3a624c86\")\n void setIsException(boolean value);",
"boolean isIgnoreErrorPriority();",
"public void appendFatalErr(String err) {\n fatalMessages.append(err);\n }",
"@Override\r\n public void fatalError(SAXParseException e) throws SAXException\r\n {\r\n System.out.println(\"Fattal error: \"); \r\n printInfo(e);\r\n }",
"public static void fatal(String stepName, String description) \n\t{\n\t\ttry{\n\t\t\ttest.log(LogStatus.FATAL, stepName, description);\n\t\t\tReporter.blnStatus=false;\n\t\t}catch(Exception e){fnPrintException(e);}\t\n\t}",
"public boolean isFinPreencumSufficientFundIndicator() {\n return finPreencumSufficientFundIndicator;\n }",
"@Override\n\tpublic void fatalError(SAXParseException se) throws SAXException {\n\t\tthis.se = se;\n\t\tvalid = false;\n\t\tthrow se;\t\t\n\t}"
] | [
"0.6958026",
"0.6111474",
"0.6098331",
"0.6060648",
"0.6034688",
"0.5961061",
"0.595872",
"0.5924303",
"0.591636",
"0.5915374",
"0.58895105",
"0.5872893",
"0.5871825",
"0.58585227",
"0.58504504",
"0.5849312",
"0.5848845",
"0.5845144",
"0.5843463",
"0.5843393",
"0.5840759",
"0.5835098",
"0.57921106",
"0.57909536",
"0.5774055",
"0.5769209",
"0.5742853",
"0.57301474",
"0.5729764",
"0.5725994",
"0.56841344",
"0.56754947",
"0.5664979",
"0.5652525",
"0.5638011",
"0.561779",
"0.56123847",
"0.5588314",
"0.55718905",
"0.5531699",
"0.5518687",
"0.5515226",
"0.55052316",
"0.5495289",
"0.5488697",
"0.54788667",
"0.5459466",
"0.545442",
"0.5375499",
"0.5335069",
"0.5326991",
"0.53065675",
"0.5298679",
"0.5289662",
"0.5286075",
"0.52817315",
"0.5261728",
"0.5251636",
"0.52431",
"0.5236217",
"0.52227104",
"0.5205151",
"0.5197152",
"0.51910084",
"0.51816404",
"0.5172635",
"0.517011",
"0.5169637",
"0.51363444",
"0.51303273",
"0.5130163",
"0.5110035",
"0.5085297",
"0.5068914",
"0.50493145",
"0.5048573",
"0.5047992",
"0.5044023",
"0.5024598",
"0.5024598",
"0.5021298",
"0.4970597",
"0.49466994",
"0.49430794",
"0.4908513",
"0.4886001",
"0.48797876",
"0.48699322",
"0.48661467",
"0.48452917",
"0.4841768",
"0.48322555",
"0.48102775",
"0.4793087",
"0.47884962",
"0.47807917",
"0.47753528",
"0.47728083",
"0.47701958",
"0.4767802"
] | 0.63490564 | 1 |
Checks wether this error indication is handled or not. | public final boolean isHandled() {
return this.handled;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}",
"@Override\n public boolean isHandled() {\n return handled;\n }",
"public boolean isHandled() {\r\n return handled;\r\n }",
"@Override\r\n\tpublic boolean isHandled() {\n\t\treturn true;\r\n\t}",
"public boolean isInError()\r\n {\r\n return myCurrentState.equals(State.ERROR);\r\n }",
"public boolean proceedOnErrors() {\n return false;\n }",
"public boolean handleException(Throwable e);",
"public boolean isHandlingException() {\n return this.isHandlingException.get();\n }",
"public boolean isHandlingException() {\n return this.isHandlingException.get();\n }",
"public boolean hasError();",
"@Override\n\t\tprotected boolean onError(final Exception e) {\n\t\t\treturn false;\n\t\t}",
"public boolean isError() {\n return _type == Type.ERROR;\n }",
"@Override\r\n\tpublic boolean hasError() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}",
"protected void handleError(ErrorEvent event)\r\n\t{\r\n\t\t// no default behavior\r\n\t}",
"@Override\n\tpublic boolean hasError() {\n\t\treturn super.hasError() || (answerCode != null && answerCode == GeneralAnswerCode.FAIL);\n\t}",
"protected void userErrorOccurred()\n {\n traceOK = false;\n }",
"protected void handleError(String error, boolean fromSysErr) {}",
"@Override\n public void setHandled(boolean status) {\n handled = true;\n }",
"public boolean isError(){\r\n\t\tif(error!=0)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}",
"public boolean isHandled() \n { return (eventAction != null) ? eventAction.isHandled() : false; }",
"public boolean shift_under_error() {\r\n return get_action(((Symbol) this.stack.peek()).parse_state, error_sym()) > 0;\r\n }",
"public void checkHandler()\n {\n ContextManager.checkHandlerIsRunning();\n }",
"public boolean isError() {\n\t\treturn this == RF_ERROR;\n\t}",
"@Override\r\n\tpublic boolean handleFault(SOAPMessageContext smc) {\r\n\t\tSystem.out.println(\"Ignoring fault message...\");\r\n\t\treturn true;\r\n\t}",
"boolean hasError();",
"boolean hasError();",
"boolean hasError();",
"public void handleErrors() {\n // hook method\n }",
"@Override\n public boolean handleFault(SOAPMessageContext smc) {\n return true;\n }",
"public boolean isError() {\n\t\tif (response.containsKey(\"Result\")) {\n\t\t\tif (response.get(\"Result\").equals(\"E\") || response.get(\"Result\").equals(\"MISSING\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean errorFound()\r\n\t{\r\n\t\t\r\n\t}",
"boolean isError();",
"public boolean isError() {\n\t\treturn packet.isError();\n\t}",
"public boolean isError() {\r\n return textErrorIndex >= 0;\r\n }",
"public boolean isSubscriptionHandled() {\n return SUBSCRIPTIONHANDLED.equals(message);\n }",
"@Override\r\n\tpublic boolean handleFault(SOAPMessageContext arg0) {\r\n\t\treturn true;\r\n\t}",
"private boolean checkInstructionHandler(CodeAtt attribute) {\n //todo\n return false;\n }",
"public final void setHandled() {\n this.handled = true;\n this.target = null;\n this.info = null;\n }",
"public boolean hasErrors();",
"public boolean isError() { return error; }",
"public boolean hasError() {\n\t\treturn hasERR;\n\t}",
"public boolean isError(){\n\t\treturn isError;\n\t}",
"public boolean hasErrorInfo() {\n return fieldSetFlags()[4];\n }",
"public abstract boolean catches(final State state, final CatchableInSetlXException cise);",
"public boolean isError() {\n\t\treturn error;\n\t}",
"public static boolean m20204a(Throwable th) {\n return (th instanceof SocketException) || (th instanceof ClosedChannelException) || (th instanceof InterruptedIOException) || (th instanceof ProtocolException) || (th instanceof SSLException) || (th instanceof UnknownHostException) || (th instanceof UnknownServiceException);\n }",
"@java.lang.Override\n public boolean hasAbort() {\n return stepInfoCase_ == 14;\n }",
"@java.lang.Override\n public boolean hasAbort() {\n return stepInfoCase_ == 14;\n }",
"@Override\r\n\tpublic boolean hasPendingAsyncInterrupt() {\r\n\t\treturn this.hasFailedAccessAttempt && this.tapeIo != null;\r\n\t}",
"public void inquiryError() {\n\t\t\n\t}",
"public abstract boolean canHandle(Object event);",
"public boolean hasError()\n {\n return errorBuffer.length() != 0;\n }",
"boolean isIgnoreErrorPriority();",
"public boolean errorState();",
"public boolean hasError()\n {\n return data().containsKey(_ERROR);\n }",
"public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }",
"boolean hasErr();",
"public boolean isCaught() {\n\t\tboolean temp = pokemon.catchCheck();\n\t\tif (temp) {\n\t\t\ttrainer.addPokemon(pokemon);\n\t\t}\n\t\treturn temp;\n\t}",
"default boolean checkForError(HttpResponse response) {\n parameters.clear();\n\n\n if (response.getStatusCode() == 500) {\n System.out.println(\"Internal server error\");\n return true;\n } else if (response.getStatusCode() == 400) {\n System.out.println(\"Your input was not as expected. Use \\\"help\\\"-command to get more help.\");\n System.out.println(response.getBody());\n return true;\n } else if (response.getStatusCode() == 404) {\n System.out.println(\"The resource you were looking for could not be found. Use \\\"help\\\"-command to get more help.\");\n }\n\n return false;\n\n }",
"public boolean isError() {\n return error;\n }",
"@Override\n\tpublic boolean isErrorEnabled() {\n\t\treturn false;\n\t}",
"boolean hasException();",
"public boolean isValid() {\n return handle > 0;\n }",
"public boolean onErrorOccured(Throwable cause);",
"public abstract boolean isFatal();",
"boolean hasErrormessage();",
"@Override\n\tprotected void dealWithAnyErrors() {\n\t\tif (this.secConVariable == null) {\n\t\t\t//There is no secondary concept variable specified so do the standard error handling\n\t\t\tsuper.dealWithAnyErrors();\n\t\t}\n\t}",
"void handleError(Exception ex);",
"public boolean hasError()\n {\n return hasError;\n }",
"public void handleError(int code);",
"public boolean hasError() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"boolean hasErrorCode();",
"@Override\n\t\t\tpublic boolean hasError(ClientHttpResponse response) throws IOException {\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean hasExceptions();",
"boolean hadErrors();",
"@Override\n public boolean continuePastError() {\n return false;\n }",
"public boolean handleMessage(Message message)\n {\n return false;\n }",
"public boolean handleException(Exception exceptionToHandle) throws Exception\n {\n\n ExceptionPolicyEntry entry = GetPolicyEntry(exceptionToHandle);\n\n if (entry == null)\n {\n return true;\n }\n\n return entry.handle(exceptionToHandle);\n }",
"@Override\n\tpublic boolean hasStyleIssues() {\n\t\treturn sheets.hasErrorsOrWarnings() || getErrorHandler().hasErrors() || getErrorHandler().hasWarnings();\n\t}",
"@Override\n protected boolean closeOnReadError(Throwable cause) {\n if (cause instanceof SocketException) {\n return false;\n }\n return super.closeOnReadError(cause);\n }",
"boolean hasErrors();",
"public boolean hasError() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }",
"public boolean isError() {\n return code >= 400;\n }",
"boolean isError() {\n if (firstChar == '5' || firstChar == '4') {\n return true;\n }\n\n return false;\n }",
"public boolean hasError() {\r\n return \"\".equals(recentErrorCode) ? false : true;\r\n }",
"public boolean isValid() {\n return m_handle != 0;\n }",
"@Override\n public boolean onError(Throwable t) {\n connected.completeExceptionally(t);\n return true; //hints at handler to disconnect due to this error\n }",
"public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean errors() {\n \treturn semantErrors != 0;\n }",
"protected abstract void handleOk();",
"public boolean hasError() {\n return this.tail.value != null && NotificationLite.isError(leaveTransform(this.tail.value));\n }",
"public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasError() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasException() {\n return fieldSetFlags()[3];\n }",
"public boolean isErrorEnabled()\n/* */ {\n/* 258 */ return getLogger().isErrorEnabled();\n/* */ }",
"@Override\n\tpublic boolean isBusinessException() {\n\t\treturn false;\n\t}",
"protected void handleOther(final boolean invalidCmd) {\r\n\t\t// do nothing\r\n\t}",
"public boolean isApiError() {\n return this.getCode() != null && this.getCode() > 0;\n }"
] | [
"0.6752197",
"0.6651528",
"0.647092",
"0.63384044",
"0.6311389",
"0.6259447",
"0.622843",
"0.6124638",
"0.6124638",
"0.593765",
"0.59198153",
"0.58910567",
"0.58910024",
"0.58425856",
"0.5831806",
"0.57751745",
"0.5762513",
"0.57318383",
"0.5726343",
"0.5703443",
"0.5703178",
"0.56936336",
"0.56605804",
"0.5658454",
"0.56556827",
"0.5650089",
"0.5650089",
"0.5650089",
"0.55921155",
"0.55605716",
"0.55526584",
"0.55500555",
"0.55433345",
"0.5521202",
"0.5520682",
"0.55129737",
"0.54581416",
"0.5443474",
"0.5442861",
"0.54322904",
"0.54268557",
"0.5425939",
"0.5424886",
"0.54180974",
"0.54148704",
"0.53955746",
"0.53890777",
"0.5379539",
"0.53776866",
"0.5371654",
"0.5368979",
"0.53675365",
"0.5363531",
"0.53620905",
"0.53545547",
"0.53483236",
"0.53288364",
"0.5328572",
"0.532237",
"0.5316696",
"0.5309293",
"0.5304939",
"0.52998424",
"0.5298542",
"0.52954906",
"0.52844477",
"0.5282751",
"0.5281612",
"0.52793866",
"0.52787745",
"0.5272438",
"0.5270419",
"0.52686054",
"0.52672595",
"0.52644473",
"0.52528185",
"0.52525204",
"0.52454895",
"0.5245196",
"0.52449113",
"0.5244065",
"0.52391464",
"0.5239024",
"0.52327096",
"0.52286875",
"0.5227121",
"0.5224276",
"0.5220391",
"0.52011925",
"0.52011925",
"0.51939833",
"0.51909256",
"0.5169565",
"0.5162067",
"0.5162067",
"0.5159042",
"0.5158767",
"0.5152786",
"0.51463574",
"0.5140058"
] | 0.6237409 | 6 |
Sets the error indication state to handled. | public final void setHandled() {
this.handled = true;
this.target = null;
this.info = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setError();",
"protected abstract void setErrorCode();",
"void error() {\n status = ERROR;\n System.out.println(\"error\");\n stateChanged();\n }",
"public void setErrorHandler(ErrorHandler handler)\n {\n if (handler == null)\n {\n handler = base;\n }\n this.errorHandler = handler;\n }",
"protected void handleError(ErrorEvent event)\r\n\t{\r\n\t\t// no default behavior\r\n\t}",
"@Override\n public void setHandled(boolean status) {\n handled = true;\n }",
"public void setError() {\n _hasError = true;\n _highlight = HighlightMode.ERROR;\n _error = NodeError.ERROR;\n }",
"public void setErrorMode(int mode) {}",
"public abstract void setError(String message);",
"@Override\n public void setErrorHandler(ErrorHandler errorHandler) {\n this.errorHandler = errorHandler;\n }",
"public void setErrorIndicatorStroke(Stroke stroke) {\n/* 188 */ this.errorIndicatorStroke = stroke;\n/* 189 */ fireChangeEvent();\n/* */ }",
"public void markAsFailed() {\n execution.setErrorReported();\n }",
"public void setError(int value) {\n this.error = value;\n }",
"public void handleError(int code);",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"public void setErrorHandler(ErrorHandler errorHandler) {\n this.errorHandler = errorHandler;\n }",
"protected void userErrorOccurred()\n {\n traceOK = false;\n }",
"@Override\n\t\t\tpublic void handlerError(String error) {\n\t\t\t\tLog.e(TAG, error); \n\t\t\t\tisStart = false;\n\t\t\t}",
"public void makeError(){\n\t\tisError = true;\n\t}",
"public void markAsFailed() {\n \n \t\texecutionStateChanged(ExecutionState.FAILED, \"Execution thread died unexpectedly\");\n \t}",
"public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }",
"private void initErrorState()\n\t{\n\t\tthis.initErrorPath();\n\t\tthis.initErrorLoopCount();\n\t}",
"public void setErr(boolean a) {\n\t\terr = a;\r\n\t}",
"public void setFailed() throws RemoteException;",
"public void setError(File error) {\r\n this.error = error;\r\n incompatibleWithSpawn = true;\r\n }",
"public final void error(String error){\n lastKnownError = error;\n }",
"public void onFailure(Throwable caught) {\n\t\t\tGWT.log(\"Error changing status\", caught);\t\n\t\t}",
"public void setErrorOccured (boolean errorOccured)\n\t{\n\t\tmErrorOccured = errorOccured;\n\t\t\n\t}",
"protected void handleError(String error, boolean fromSysErr) {}",
"public static void error(boolean e) {\n E = e;\n }",
"@Override\n\tpublic void adjustToError() {\n\t\t\n\t}",
"@Override\n public void setError(@Nullable CharSequence error) {\n setErrorEnabled(error != null);\n super.setError(error);\n }",
"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}",
"public void setErrorIndicatorPaint(Paint paint) {\n/* 158 */ this.errorIndicatorPaint = paint;\n/* 159 */ fireChangeEvent();\n/* */ }",
"void setError(@Nullable Exception error) {\n this.error = error;\n }",
"public void markInterrupted() {\n\t\tenvironmentStatus = State.INTERRUPTED.name();\n\t\terrorMessage = \"setup was interrupted\";\n\t\tthis.statusCode = StatusCode.Interrupted.code;\n\t}",
"void handleError(Exception ex);",
"public void setError(CharSequence error) {\n/* 1515 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setErasable(int p_state)\n {\n if ((p_state < 0 ) || (p_state > 3))\n {\n return;\n }\n\n m_nErasable = p_state;\n }",
"public void setHandled()\n { if (eventAction != null) eventAction.setHandled(); }",
"void changed(State state, Exception e);",
"public OnError(String value) {\n setValue(value);\n }",
"@Override\n\t\t\t\t\t\t\tpublic void error(Exception e) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public void setError(RaftError error, String fmt, Object... args) {\n this.state = new State(error.getNumber(), String.format(String.valueOf(fmt), args));\n }",
"@Override\n public void onSetFailure(String s) {\n }",
"@Override\n public void onSetFailure(String s) {\n }",
"@Override\n\tpublic void setFailedError() {\n\t\tnew Customdialog_Base(this, \"정보가 올바르지 않습니다.\").show();\n\t}",
"private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }",
"public void setExceptionOn(boolean flag)\n {\n this.setProperty(GUILoggerSeverityProperty.EXCEPTION, flag);\n }",
"public abstract void OnError(int code);",
"public void setError(final XyzError error) {\n this.error = error;\n }",
"public void inquiryError() {\n\t\t\n\t}",
"@Override\n public void errorReceived(Exception ex) {\n }",
"@Override\n public void errorReceived(Exception ex) {\n }",
"public void handleErrors() {\n // hook method\n }",
"@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}",
"public boolean setErrorResult(Object result)\n/* */ {\n/* 248 */ return setResultInternal(result);\n/* */ }",
"public void onReceivedError();",
"public void mo55177a() {\n this.f1453a.onError(this.f1454b);\n }",
"public boolean errorState();",
"public void setError(double error) {\r\n this.error = error;\r\n }",
"protected void selectError(final Throwable caught, final String errorCode) {\n if (!applicationInitialized && BrowserType.isFirefox() && caught.getMessage() != null && caught.getMessage().contains(\"gwt$exception: <skipped>\")\n && caught.getMessage().contains(\"Permission denied to access property\")) {\n return;\n }\n Throwable cause = unwrapCause(caught);\n if (cause instanceof IsWarningException) {\n showWarning(cause.getMessage());\n } else if (cause instanceof UserRuntimeException) {\n showUserError(cause.getMessage(), (UserRuntimeException) cause);\n } else if (isVersionMismatch(cause)) {\n showReloadApplication();\n } else if (cause instanceof StatusCodeException) {\n int statusCode = ((StatusCodeException) cause).getStatusCode();\n if (isWindowClosing() && statusCode == 0) {\n // Ignore RPC errors when page is Closing e.g. navigating to another page in browser\n return;\n }\n switch (statusCode) {\n case Response.SC_NOT_FOUND:\n showReloadApplication();\n break;\n case Response.SC_PRECONDITION_FAILED:\n showThrottle();\n break;\n case Response.SC_UNAUTHORIZED:\n showUnauthorized();\n break;\n case 12007:\n case 12029:\n case 12152:\n showInternetConnectionError();\n break;\n default:\n if ((statusCode == 0) && (BrowserType.isFirefox() || BrowserType.isSafari())) {\n showInternetConnectionError();\n } else {\n showHttpStatusCode((StatusCodeException) cause, statusCode, errorCode);\n }\n }\n } else {\n showDefaultError(cause, errorCode);\n }\n }",
"public static final void ccSetSilentError(boolean pxVal){\n cmErrOn=!pxVal;\n }",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n\tpublic void setMyPhoneError() {\n\t\t\n\t}",
"private void fireOnIndicatorErrorEvent(Exception e) {\n \t\tif(!facade.getApplicationStateManager()\r\n \t\t\t\t.getApplicationState().equals(ApplicationState.LOADING_INDICATORS)) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tIterator<IndicatorDataListener> it = this.indicatorDataListeners.iterator();\r\n \t\t\r\n \t\twhile(it.hasNext()) {\r\n \t\t\tit.next().onIndicatorError(e);\r\n \t\t}\r\n \t}",
"public void set_state(String state) throws Exception{\n\t\tthis.state = state;\n\t}",
"@Override\n public void OnError() {\n bRemoteInitOk = false;\n }",
"@Override\r\n\tpublic void setException(Throwable throwable) {\r\n super.setException(throwable);\r\n if ( getFutureListenerProcessor() != null ) {\r\n getFutureListenerProcessor().futureSetException(this, throwable);\r\n }\r\n }",
"private void setStyleToIndicateCommandFailure() {\n //override style and disable syntax highlighting\n commandTextField.overrideStyle(ERROR_STYLE_CLASS);\n }",
"public void error(Exception e);",
"@Override\n\t\tpublic void setThrowable(Throwable throwable) {\n\t\t\t\n\t\t}",
"public void setErrorIndex(int index) {\r\n this.textErrorIndex = index;\r\n }",
"public abstract boolean catches(final State state, final CatchableInSetlXException cise);",
"void onErrorOccurred() {\n mUserAwarenessListener.onErrorOccurred(Errors.UNDEFINED);\n\n //start light sensor because eye tracking is not running we don't need light sensor now\n mLightIntensityManager.stopLightMonitoring();\n }",
"public void Error(String error) throws RemoteException;",
"private void handleError(Throwable error){\n // Re-enable button\n createBtn.setEnabled(true);\n // Hide Progress Bar\n progressIndicator.setVisibility(View.GONE);\n // Unlock screen orientation\n setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER);\n\n // Handle Errors using util class and save the error code\n int errorCode = errorHandler.handle(error, this, view);\n\n // If error is Code 11, show dialog\n if(errorCode == Errors.CUSTOMER_ALREADY_HAS_ACTIVE_BOOKING_ERROR.getErrorCode()){\n showErrorDialog();\n }\n }",
"public void handleException(String message, Exception error) {\n logger.error(message, error);\n JOptionPane.showMessageDialog(\n view.getGuiPanel(),\n message,\n error.getClass().getName(),\n JOptionPane.ERROR_MESSAGE\n );\n view.getFileProperties().setErrorFileStatus();\n }",
"public void setErrorCounter(int value) {\n errorCounter = value;\n }",
"@objid (\"9ecad15f-7403-4692-8909-d35b3a624c86\")\n void setIsException(boolean value);",
"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 }",
"public void error(Throwable e);",
"public void error(Context cxt) {\n recordEnhanced(ERROR, cxt);\n }",
"@Override\n\tpublic void catching(Throwable t) {\n\n\t}",
"public void setError(String error) {\n\t\tthis.error = error;\n\t}",
"private static void setFailed() {\n HealthCheck.failed = true;\n }",
"public void setException(Exception e)\n {\n this.exception = e;\n }",
"void errorOccurred(@Nonnull String errorMessage);",
"protected abstract void error(String err);",
"public void handleException(Throwable e) {\r\n handleException(e, mReportingInteractionMode);\r\n }",
"public void setFailOnErr(boolean failonerr) {\n mFailonerr = failonerr;\n }",
"private void initErrorPath()\n\t{\n\t\tfinal Path errorPath = Paths.get(\"io/errors\");\n\t\tthis.errorState.path().set(errorPath);\n\t\tthis.log.info(\"Set ErrorPath in Model.\");\n\t}",
"public void error(Throwable error) {\n\n }",
"public void error(Throwable error) {\n\n }",
"public void setError(String parseStatus) {\n this.parseStatus = parseStatus;\n }",
"public void onError(Exception e);",
"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 }",
"void error(Throwable t) {\n t = Conformance.onNextThrew(t);\n try {\n try {\n subscriber.onError(t);\n } catch (Throwable e) {\n Exceptions.handleUncaught(t);\n Exceptions.handleUncaught(Conformance.onErrorThrew(e));\n }\n } finally {\n try {\n cancel();\n } catch (Throwable t3) {\n Exceptions.handleUncaught(Conformance.cancelThrew(t3));\n }\n }\n }"
] | [
"0.65825766",
"0.62591547",
"0.6257812",
"0.6245702",
"0.62439406",
"0.61428094",
"0.60780436",
"0.6066035",
"0.59891915",
"0.59417385",
"0.59311354",
"0.5844318",
"0.582152",
"0.5800887",
"0.57975096",
"0.57573587",
"0.5752674",
"0.57404834",
"0.57106304",
"0.56944907",
"0.56873715",
"0.5669061",
"0.56477505",
"0.5637863",
"0.56320864",
"0.5623994",
"0.5620573",
"0.5597664",
"0.5596495",
"0.5596056",
"0.5595229",
"0.55833244",
"0.55350703",
"0.553446",
"0.5517283",
"0.5510142",
"0.5509912",
"0.5495424",
"0.5493908",
"0.5490854",
"0.5466218",
"0.5462074",
"0.54577893",
"0.5441273",
"0.5432526",
"0.5432526",
"0.54287106",
"0.54283005",
"0.54196334",
"0.53870505",
"0.5386035",
"0.53764",
"0.5335145",
"0.5335145",
"0.53330326",
"0.5320195",
"0.5320194",
"0.53196746",
"0.52900136",
"0.5285682",
"0.5283319",
"0.52826357",
"0.5281304",
"0.5280986",
"0.5260733",
"0.52568465",
"0.5249333",
"0.5246593",
"0.52365196",
"0.5223941",
"0.5216422",
"0.5207246",
"0.52007085",
"0.5193033",
"0.5187269",
"0.51815397",
"0.5160934",
"0.5160307",
"0.5156307",
"0.51512176",
"0.5145707",
"0.5145707",
"0.5145707",
"0.51273996",
"0.51112014",
"0.5098961",
"0.5094801",
"0.5091488",
"0.5082155",
"0.5079492",
"0.50737166",
"0.50644505",
"0.5060497",
"0.50600904",
"0.5051604",
"0.5051604",
"0.5049004",
"0.50470096",
"0.50417304",
"0.50393087"
] | 0.55651885 | 32 |
Returns the event type of this error indication. | public final String getEventType() {
return this.id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String event_type () throws BaseException;",
"public java.lang.String getEventtype() {\n\treturn eventtype;\n}",
"public String getTypeEvent() {\n\t\treturn typeEvent;\n\t}",
"public String getExceptionType() {\n return this.excType;\n }",
"public EventType type() {\n return _type;\n }",
"public EventType getEvntType() {\n\t\treturn evntType;\n\t}",
"public String getEventType() {\n\t\treturn eventType;\n\t}",
"public String getEventTypeName()\n {\n return eventTypeName;\n }",
"public String getEventType() {\n return eventType;\n }",
"public Err.Type type() {\r\n return type;\r\n }",
"public String getEventType() {\r\n return eventType;\r\n }",
"String getEventType();",
"public String getEventType()\r\n {\r\n return eventType;\r\n }",
"public String getEventType()\n {\n return eventType;\n }",
"public int getEventTypeCode()\n {\n return eventTypeCode;\n }",
"public EventType getEvent() {\n EventType result = EventType.valueOf(event_);\n return result == null ? EventType.UNRECOGNIZED : result;\n }",
"public EventType getEventType() {\n return this.eventType;\n }",
"public EventType getEvent() {\n EventType result = EventType.valueOf(event_);\n return result == null ? EventType.UNRECOGNIZED : result;\n }",
"public NotificationEventTypeCodeType getEventType() {\n\t return this.eventType;\n\t}",
"public ClEvent getEventType()\n {\n return eventType;\n }",
"public int eventType() {\n return this._evtType;\n }",
"java.lang.String getEventType();",
"@Override\n\tpublic EVENT_TYPE getEventType() {\n\t\treturn EVENT_TYPE.FLOW_EVENT;\n\t}",
"@SuppressWarnings(\"restriction\")\n\tpublic int getEventType() {\n\t\treturn invokeWithoutInvocationException(int.class, \"getEventType\");\n\t}",
"public String getEventClass() {\n return eventClass;\n }",
"private String getEventType(Event event) {\n if (event instanceof Seminar) {\n return \"[S]: \";\n } else {\n return \"[E]: \";\n }\n }",
"@JsonProperty(\"EventType\")\r\n\tpublic EventRequest.EventType getEventType() {\r\n\t\treturn eventType;\r\n\t}",
"public abstract NAEventType getEventType();",
"public String get_type() throws Exception {\n\t\treturn this.type;\n\t}",
"public String getErrorType() {\n return errorType;\n }",
"public final EventType getEventType() {\n return parent.getEventType();\n }",
"public ObjectType getExceptionType() {\n return catchType;\n }",
"Class<? extends Exception> getExceptionType();",
"@Override\n protected String handleGetExceptionType()\n {\n\n final Object value = this.findTaggedValue(GuiProfile.TAGGEDVALUE_EXCEPTION_TYPE);\n\n return (value == null) ? \"\" : value.toString();\n\n }",
"@Override\n\tpublic java.lang.String getType() {\n\t\treturn _dlSyncEvent.getType();\n\t}",
"@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic int getEventType() {\n\t\treturn 0;\r\n\t}",
"EventType getEvent();",
"public UnitManagerEventType getEventType() {\n\t\treturn eventType;\n\t}",
"public int getErrorType() {\r\n\t\treturn errorType;\r\n\t}",
"public String getMessageType() {\n return type.getMessage().getName();\n }",
"com.google.protobuf.ByteString getEventTypeBytes();",
"@Override\n public String getEventType()\n {\n\t return null;\n }",
"public String getViolationType() {\n\t\treturn violationType;\n\t}",
"public EventOriginatorType getType() {\n\t\treturn type;\n\t}",
"@java.lang.Override\n public int getSpeechEventTypeValue() {\n return speechEventType_;\n }",
"public String getEventTypeDescription()\n {\n return eventTypeDescription;\n }",
"@Override\n\tpublic ErrorType getErrorType() {\n\t\treturn null;\n\t}",
"public SyncFailureType getType() {\n return type;\n }",
"@java.lang.Override\n public int getSpeechEventTypeValue() {\n return speechEventType_;\n }",
"public String getTipoEvento() {\n return tipoEvento;\n }",
"public SignalType getType() {\n return type;\n }",
"@java.lang.Override\n public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType\n getSpeechEventType() {\n com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result =\n com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(\n speechEventType_);\n return result == null\n ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED\n : result;\n }",
"private EventType getEventType(Transition transition) {\n\t\tEventType result = EventType.COMPLETE;\n\t\t// get associated log event type\n\t\tLogEvent le = transition.getLogEvent();\n\n\t\t// check for invisible tasks\n\t\tif (le != null) {\n\t\t\tString type = le.getEventType();\n\t\t\tif (type.equals(\"schedule\")) {\n\t\t\t\tresult = EventType.SCHEDULE;\n\t\t\t} else if (type.equals(\"start\")) {\n\t\t\t\tresult = EventType.START;\n\t\t\t} else if (type.equals(\"complete\")) {\n\t\t\t\tresult = EventType.COMPLETE;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"@java.lang.Override\n public com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType\n getSpeechEventType() {\n com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType result =\n com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.forNumber(\n speechEventType_);\n return result == null\n ? com.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED\n : result;\n }",
"@Override\r\n\tpublic String getMessageType() {\n\t\treturn this.getClass().getName();\r\n\t}",
"public String getEvent_code() {\n\t\treturn event_code;\n\t}",
"public String getType()\n {\n try\n {\n if (result.has(\"error\"))\n {\n Object error;\n error = result.get(\"error\");\n\n if (error instanceof String)\n {\n // OAuth 2.0 Draft 10 style\n return (String) error;\n } else if (error instanceof JSONObject)\n {\n // OAuth 2.0 Draft 00 style\n if (((JSONObject) error).has(\"type\"))\n {\n return ((JSONObject) error).getString(\"type\");\n }\n }\n }\n } catch (JSONException e)\n {\n e.printStackTrace();\n }\n\n return \"Exception\";\n }",
"public static int getDefaultEventType(){\n\t\treturn prefs.getInt(DEFAULT_EVENT_TYPE, 0);\n\t}",
"public int getMsgType() {\n return msgType_;\n }",
"public int getEventCode() {\n return eventCode;\n }",
"public static EventType getEventType(final Integer i) {\n switch (i) {\n case javax.jcr.observation.Event.NODE_ADDED:\n return NODE_ADDED;\n case javax.jcr.observation.Event.NODE_REMOVED:\n return NODE_REMOVED;\n case javax.jcr.observation.Event.PROPERTY_ADDED:\n return PROPERTY_ADDED;\n case javax.jcr.observation.Event.PROPERTY_REMOVED:\n return PROPERTY_REMOVED;\n case javax.jcr.observation.Event.PROPERTY_CHANGED:\n return PROPERTY_CHANGED;\n case javax.jcr.observation.Event.NODE_MOVED:\n return NODE_MOVED;\n case javax.jcr.observation.Event.PERSIST:\n return PERSIST;\n // no default\n default:\n throw new IllegalArgumentException(\"Invalid JCR event type: \" +\n i);\n }\n }",
"public int getMsgType() {\n return msgType_;\n }",
"MessageType getType();",
"public static LogType EVENT()\n {\n if (g_oEvent == null)\n {\n try\n {\n g_oEvent = new LogType(\"EVENT\", 30);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oEvent;\n }",
"public CommunityProfileOutboundEventType getEventType()\n {\n return eventType;\n }",
"@Enumerated(EnumType.STRING)\n\t@DhtmlColumn(columnIndex = 2, headerName = \"事件\", coulumnType = DhtmlxBaseType.CORO, columnDataSets = ButtonEventTypeCobo.class)\n\t@NotNull\n\tpublic ButtonEventType getEventName() {\n\t\treturn eventName;\n\t}",
"public java.lang.String getEVENT_CODE()\n {\n \n return __EVENT_CODE;\n }",
"public String getType()\n\t{\n\t\t// The enumerated type's name satisfies all the type criteria, so use\n\t\t// it.\n\t\treturn name();\n\t}",
"public static Type<UserStatusChangeEvent.Handler> getType() {\r\n\t\treturn TYPE;\r\n\t}",
"public int getEventTypeID() {\r\n\treturn eventType;\r\n}",
"public final String type() {\n return type;\n }",
"public int getMsgType() {\n\t\treturn msgType;\n\t}",
"Enum getType();",
"public final String getType() {\n return this.getClass().getName();\n }",
"public static String getType() {\n\t\treturn type;\n\t}",
"public final String getType() {\n return this.type;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public int getType() {\n return type_;\n }",
"public messages.Basemessage.BaseMessage.Type getType() {\n return type_;\n }",
"final public int getType() {\n return type;\n }",
"public String getType() {\r\n return this.getClass().getName();\r\n }",
"public String getType() {\r\n return type;\r\n }",
"public messages.Basemessage.BaseMessage.Type getType() {\n return type_;\n }",
"public String getType()\n {\n return type;\n }",
"public String getType() {\n return type;\n }",
"public int getType() {\n return type;\n }",
"public String getType() {\n\t\treturn ELM_NAME;\n\t}"
] | [
"0.744027",
"0.72252333",
"0.7133309",
"0.69821244",
"0.68674",
"0.6830121",
"0.6825492",
"0.67875546",
"0.6779538",
"0.6772894",
"0.67616445",
"0.67482275",
"0.67181116",
"0.66875696",
"0.665775",
"0.6656431",
"0.66429555",
"0.66299313",
"0.6576891",
"0.6559364",
"0.6540866",
"0.650845",
"0.64675254",
"0.6357155",
"0.63478816",
"0.6324501",
"0.6316119",
"0.62525004",
"0.6240325",
"0.623176",
"0.6225292",
"0.6137452",
"0.6125234",
"0.6075913",
"0.6062909",
"0.6010797",
"0.6010797",
"0.5997961",
"0.5988835",
"0.5957763",
"0.5907476",
"0.5852115",
"0.57740635",
"0.5750979",
"0.5748398",
"0.57187897",
"0.5667003",
"0.5662984",
"0.56599474",
"0.5647839",
"0.56338036",
"0.56062496",
"0.55910224",
"0.55785674",
"0.5578016",
"0.55770063",
"0.5561091",
"0.55592144",
"0.555457",
"0.5498173",
"0.5497599",
"0.5496324",
"0.5493663",
"0.5487251",
"0.5485234",
"0.54398113",
"0.5422223",
"0.54214364",
"0.54166937",
"0.5397368",
"0.53910345",
"0.53895634",
"0.5389099",
"0.53888595",
"0.5374099",
"0.53560245",
"0.5353568",
"0.53521335",
"0.53521335",
"0.5351923",
"0.5351923",
"0.5351923",
"0.5351923",
"0.5351923",
"0.53387123",
"0.53387123",
"0.53387123",
"0.53387123",
"0.53387123",
"0.53387123",
"0.53387123",
"0.5329218",
"0.53287315",
"0.5320948",
"0.5316806",
"0.5298821",
"0.52960056",
"0.52903795",
"0.5286673",
"0.528431"
] | 0.6216956 | 31 |
Returns the event target of this error indication. | public final EventTarget getEventTarget() {
return this.target;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getViolationTarget() {\n return this.violationTarget;\n }",
"public String getTarget() {\n return this.target;\n }",
"public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}",
"String getTarget() {\r\n return this.target;\r\n }",
"public String getTarget() {\n return target;\n }",
"public String getTarget() {\n return target;\n }",
"public EObject getTarget() {\n\t\treturn adaptee.getTarget();\n\t}",
"public EntityID getTarget() {\n\t\treturn target.getValue();\n\t}",
"public java.lang.String getTarget() {\n return target;\n }",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n\t\treturn target;\n\t}",
"public Target getTarget() {\n return target;\n }",
"public IEvent getCauseEvent();",
"public Target getTarget() {\n\n return target;\n }",
"public Object getTarget()\n {\n return __m_Target;\n }",
"public DvEHRURI getTarget() {\n return target;\n }",
"public Name getTarget() {\n\t\treturn getSingleName();\n\t}",
"public RuntimeException getTargetException() {\n/* 76 */ return this.runtimeException;\n/* */ }",
"public String getTarget() {\n return JsoHelper.getAttribute(jsObj, \"target\");\n }",
"public String errorSource() {\n return this.errorSource;\n }",
"public AstNode getTarget() {\n return target;\n }",
"public String getTargetName() {\n return this.targetName;\n }",
"public Point getTarget()\n\t{\n\t\treturn this.target;\n\t}",
"public Entity getmTarget() {\n return mTarget;\n }",
"public Point getTarget() {\n\t\treturn _target;\n\t}",
"public String getViolationTargetDescription() {\n return this.violationTargetDescription;\n }",
"public Node getTarget() {\n return target;\n }",
"public String targetId() {\n return this.targetId;\n }",
"java.lang.String getTarget();",
"java.lang.String getTarget();",
"public String getTargetName() {\n\t\treturn targetName;\n\t}",
"@Nullable\n public NoSuchTargetException getErrorLoadingTarget() {\n return errorLoadingTarget;\n }",
"@objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();",
"public Throwable getReason() { return err; }",
"public Integer getCurrentTarget()\n\t{\n\t\treturn _currentTarget;\n\t}",
"public Event getCause(){\n return cause;\n }",
"public Node target() {\n return target;\n }",
"public long getTargetId() {\n return targetId;\n }",
"public Long getTargetId() {\r\n return targetId;\r\n }",
"String getTarget();",
"String getTarget();",
"public Entity.ID getTargetID() {\n return targetID;\n }",
"public Integer getTargetId() {\n\t\treturn targetId;\n\t}",
"String getCauseException();",
"public PhineasHoverListener getInnerListener()\n\t{\n\t\treturn target;\n\t}",
"public ObjectSequentialNumber getTarget() {\n return target;\n }",
"public StateID GetTarget()\n {\n return targetID;\n }",
"public com.commercetools.api.models.common.Reference getTarget() {\n return this.target;\n }",
"Attribute getTarget();",
"Event getE();",
"public Object getTargetObject() {\n return targetObject;\n }",
"public TestSetDiscrepancyReportResourceTarget getTarget() {\n return this.target;\n }",
"public String targetResourceId() {\n return this.targetResourceId;\n }",
"State getTarget();",
"public static String getEventHost() {\r\n return eventHost.getValue();\r\n }",
"public Mob getTarget() {\r\n return target.get();\r\n }",
"Object getTarget();",
"Object getTarget();",
"public Throwable getCause() {\n return getException();\n }",
"@Override\n public String getTarget()\n {\n return null;\n }",
"public double getTargetX() {\n return m_targetX;\n }",
"public SoEvent getEvent() {\n\t\treturn (eventAction != null ? eventAction.getEvent() : null); \n\t}",
"public TestExecutionTarget getTarget() {\n return this.target;\n }",
"public Player getTarget() {\n return target;\n }",
"public static String getLogTarget()\n {\n return BaseBoot.getInstance().getGlobalConfig().getConfigProperty\n (LOGTARGET, LOGTARGET_DEFAULT);\n }",
"public String getTargetType() {\n return this.targetType;\n }",
"public String getTargetTaskID() {\n\t\treturn this.targetTaskId;\n\t}",
"protected final LogTarget getLogTarget() \n {\n return m_wrappedLogTarget; \n }",
"public Throwable getCause(){\n\t\treturn status.getException();\n\t}",
"public String getEvent() {\n return this.event;\n }",
"public java.lang.String getTargetNumber() {\r\n return targetNumber;\r\n }",
"public Integer getTargetid() {\n return targetid;\n }",
"public Event getEvent() {\n\t\treturn event;\n\t}",
"public String getEventMessage() {\n return eventMessage;\n }",
"String getFaultActor();",
"public DNode getTo() { return targetnode; }",
"private void fireOnTargetErrorEvent(Exception e) {\n \t\tif(!facade.getApplicationStateManager()\r\n \t\t\t\t.getApplicationState().equals(ApplicationState.LOADING)) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tIterator<TargetDataListener> it = this.targetDataListeners.iterator();\r\n \t\t\r\n \t\twhile(it.hasNext()) {\r\n \t\t\tit.next().onTargetError(e);\r\n \t\t}\r\n \t}",
"@Override\n\t\tpublic Throwable getCause() {\n\t\t\treturn super.getCause();\n\t\t}",
"public Throwable getCause() {\n\t\treturn (iCause == this) ? null : iCause;\n\t}",
"public Object getEvent() {\r\n return event;\r\n }",
"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 }",
"@NotNull\n Resource getTarget();",
"public IEventCollector getSource();",
"public Error getError() {\r\n\t\treturn error;\r\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 }",
"public Cause getParent() {\n\t\tif (this.equals(this.rcaCase.problem)) {\n\t\t\treturn null;\n\t\t} else if (this.effectRelations.size() > 0) {\n\t\t\treturn ((Relation) this.effectRelations.toArray()[0]).causeTo;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@EventName(\"targetCrashed\")\n EventListener onTargetCrashed(EventHandler<TargetCrashed> eventListener);",
"public Event getEvent(){\n\t\t\treturn event;\n\t\t}",
"public Symbol cur_err_token() {\r\n return this.lookahead[this.lookahead_pos];\r\n }",
"public static Image target()\n\t{\n\t\treturn targetImg;\n\t}",
"public String getEventLocation() {\n\t\treturn eventLocation;\n\t}",
"public Throwable getCause () {\n\t\treturn ex;\n\t}",
"public int getTargetArgIndex() {\n\t\treturn this.targetArgIndex;\n\t}",
"public final Class<?> getTargetType(){\n return this.targetType;\n }",
"public XFormsErrorIndication(String message, Exception cause, EventTarget target, Object info) {\n super(message, cause);\n this.target = target;\n this.info = info;\n }",
"protected String getTargetClassName() {\r\n return m_targetClassName;\r\n }",
"public IEvent getPreviousEvent();",
"public Living getTarget();",
"public Class<T> getTargetType() {\n return this.targetType;\n }"
] | [
"0.64277405",
"0.63267714",
"0.6249262",
"0.62066597",
"0.6192292",
"0.6192292",
"0.61229265",
"0.61191124",
"0.6087025",
"0.60213566",
"0.60213566",
"0.60213566",
"0.6006764",
"0.60060376",
"0.6002957",
"0.5904638",
"0.59040034",
"0.58913344",
"0.58868814",
"0.5825835",
"0.58063895",
"0.57793856",
"0.57293093",
"0.57115895",
"0.5679585",
"0.5647746",
"0.56050694",
"0.55998164",
"0.55929303",
"0.55777913",
"0.55777913",
"0.55637974",
"0.5553143",
"0.5551401",
"0.5549673",
"0.5536168",
"0.55344737",
"0.55016947",
"0.5493536",
"0.5487387",
"0.5482382",
"0.5482382",
"0.54767054",
"0.54088086",
"0.54064965",
"0.5395406",
"0.5391635",
"0.5381429",
"0.5370326",
"0.53562194",
"0.5348741",
"0.53473073",
"0.5338289",
"0.5336005",
"0.5327524",
"0.5322851",
"0.5317271",
"0.53069705",
"0.53069705",
"0.53041524",
"0.53020275",
"0.52898914",
"0.52754897",
"0.5263374",
"0.52524894",
"0.5237059",
"0.5224358",
"0.5220114",
"0.52170783",
"0.52107227",
"0.5200522",
"0.51981986",
"0.5193599",
"0.51907176",
"0.51843643",
"0.51798064",
"0.5176992",
"0.5174872",
"0.5174054",
"0.51604706",
"0.51416713",
"0.51294535",
"0.5128422",
"0.51251847",
"0.51164156",
"0.51156974",
"0.51148313",
"0.51115084",
"0.51051265",
"0.51046085",
"0.5103993",
"0.5099809",
"0.5097643",
"0.5073377",
"0.50721514",
"0.5059634",
"0.5058413",
"0.5044886",
"0.5043798",
"0.50290006"
] | 0.6624299 | 0 |
Returns the context information of this error indication. | public final Object getContextInfo() {
return this.info;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"DiagnosticInfo getInnerDiagnosticInfo();",
"public String getContext() {\n int l=code.getCurLine();\n String s=\"\\t\\t at line:\" + l + \" \";\n if (l>-1) {\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-2);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l-1);\n s+=\"\\n\\t\\t\\t> \"+code.getLineAsString(l)+\" <\";\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+1);\n s+=\"\\n\\t\\t\\t \"+code.getLineAsString(l+2);\n s=s+ \"\\n\\t\\t current token:\" + tok.toString();;\n s=s+ \"\\n\\t\\t Variable dump:\" + vars;\n if (gVars!=null) {\n s=s+ \"\\n\\t\\t Globals:\" + gVars;\n }\n } else s+=\"\\n\\t\\t\\t> \"+tok.getLine()+\" <\";\n\n return s;\n }",
"java.lang.String getContext();",
"public String getExceptioninfo() {\n return exceptioninfo;\n }",
"public String getContext() {\n\t\treturn context;\n\t}",
"public String getContextString();",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"public String getErrorDetails() {\n return super.getString(Constants.Properties.ERROR_DETAILS);\n }",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public String getContext() { return context; }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public org.omg.CORBA.Context read_Context() {\n throw new org.omg.CORBA.NO_IMPLEMENT();\n }",
"public interface ExceptionContext {\n\n String DEFUALT_EX_MSG =\"网络异常\";//默认异常信息\n\n String DEFUALT_EX_CODE =\"500\";//默认异常状态码\n\n String UNKNOW_EX_MSG =\"未知异常\";//未知异常信息\n\n}",
"public String getThrowInfo() {\n if (null == throwable) {\n return throwText;\n }\n // return from throwable;\n StringBuffer sb = new StringBuffer();\n StackTraceElement[] stackArray = throwable.getStackTrace();\n for (int i = 0; i < stackArray.length; ++i) {\n StackTraceElement element = stackArray[i];\n sb.append(element.toString() + \"\\n\");\n }\n return sb.toString();\n }",
"public ExceptionInfo getExceptionInfo() {\n return exceptionInfo;\n }",
"com.google.protobuf.ByteString getContext();",
"public com.opentext.bn.converters.avro.entity.ErrorInfo getErrorInfo() {\n return errorInfo;\n }",
"public com.opentext.bn.converters.avro.entity.ErrorInfo getErrorInfo() {\n return errorInfo;\n }",
"public String errorDetails() {\n return this.errorDetails;\n }",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"private String context(){\r\n \r\n assert iMessage!=null;\r\n assert iIndex>=0;\r\n assert iIndex<=iMessage.length();\r\n\r\n return iMessage.substring(0, iIndex)+\" ^ \"+iMessage.substring(iIndex);//return parse context\r\n \r\n }",
"public String getTraceInformation() {\n\t\treturn (traceInformation);\n\t}",
"public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }",
"public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }",
"public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }",
"public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }",
"public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }",
"public Throwable getReason() { return err; }",
"public String getContextAssertion() {\n return this.contextAssertion;\n }",
"com.google.protobuf.ByteString\n getContextBytes();",
"com.google.protobuf.ByteString\n getErrorInfoBytes();",
"com.google.protobuf.ByteString\n getErrorInfoBytes();",
"com.google.protobuf.ByteString\n getErrorInfoBytes();",
"com.google.protobuf.ByteString\n getErrorInfoBytes();",
"default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }",
"String getGetErrorAppTag();",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"Context getContext();",
"public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}",
"public Object getWarningContext() {\n\t\treturn warningContext;\n\t}",
"public IContextInformation getContextInformation()\n {\n return null;\n }",
"public String getErrorState();",
"public String errorSource() {\n return this.errorSource;\n }",
"public MessageContext getMessageContext() {\n return msgContext;\n }",
"public com.google.protobuf.ByteString\n getErrorInfoBytes() {\n java.lang.Object ref = errorInfo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n errorInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getErrorInfoBytes() {\n java.lang.Object ref = errorInfo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n errorInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getErrorInfoBytes() {\n java.lang.Object ref = errorInfo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n errorInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getErrorInfoBytes() {\n java.lang.Object ref = errorInfo_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n errorInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"Map<String, Object> getContext();",
"protected abstract String transactionContextMessage();",
"java.lang.String getSourceContext();",
"public com.google.protobuf.ByteString\n getContextBytes() {\n java.lang.Object ref = context_;\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 context_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getExtendedStackTrace() {\n return getExtendedStackTrace(null);\n }",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"public com.google.protobuf.ByteString\n getErrorInfoBytes() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getErrorInfoBytes() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getErrorInfoBytes() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getErrorInfoBytes() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Attributes getContextAttributes() {\r\n return this.atts;\r\n }",
"public LoggerContext getContext() {\n return context;\n }",
"public Map<String, String> getTraceContext() {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl().debug(\"No tracing context; unable to get Trace ID\");\n return null;\n }\n return this.tracing.getLogCorrelationTraceAndSpanIDsMap();\n }",
"@Override public String toString() {\n return \"\" + \"Context=\" + \"[LLVMContext]\" // NOI18N\n + \", GlobalList=\" + NativeTrace.getIdentityStr(GlobalList) // NOI18N\n + \", FunctionList=\" + NativeTrace.getIdentityStr(FunctionList) // NOI18N\n + \", AliasList=\" + NativeTrace.getIdentityStr(AliasList) // NOI18N\n + \", IFuncList=\" + NativeTrace.getIdentityStr(IFuncList) // NOI18N\n + \", NamedMDList=\" + NativeTrace.getIdentityStr(NamedMDList) // NOI18N\n + \", GlobalScopeAsm=\" + GlobalScopeAsm // NOI18N\n + \", ValSymTab=\" + NativeTrace.getIdentityStr(ValSymTab) // NOI18N\n + \", ComdatSymTab=\" + NativeTrace.getIdentityStr(ComdatSymTab) // NOI18N\n + \", Materializer=\" + Materializer // NOI18N\n + \", ModuleID=\" + ModuleID // NOI18N\n + \", SourceFileName=\" + SourceFileName // NOI18N\n + \", TargetTriple=\" + TargetTriple // NOI18N\n + \", NamedMDSymTab=\" + NativeTrace.getIdentityStr(NamedMDSymTab) // NOI18N\n + \", DL=\" + DL; // NOI18N\n }",
"@java.lang.Override public int getContextValue() {\n return context_;\n }",
"public java.lang.String[] getMessageContexts(){\n return localMessageContexts;\n }",
"@java.lang.Override\n public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }",
"@java.lang.Override public POGOProtos.Rpc.QuestProto.Context getContext() {\n @SuppressWarnings(\"deprecation\")\n POGOProtos.Rpc.QuestProto.Context result = POGOProtos.Rpc.QuestProto.Context.valueOf(context_);\n return result == null ? POGOProtos.Rpc.QuestProto.Context.UNRECOGNIZED : result;\n }",
"public protodef.b_error.info getError() {\n return error_ == null ? protodef.b_error.info.getDefaultInstance() : error_;\n }",
"public protodef.b_error.info getError() {\n return error_ == null ? protodef.b_error.info.getDefaultInstance() : error_;\n }",
"public protodef.b_error.info getError() {\n if (errorBuilder_ == null) {\n return error_ == null ? protodef.b_error.info.getDefaultInstance() : error_;\n } else {\n return errorBuilder_.getMessage();\n }\n }",
"public protodef.b_error.info getError() {\n if (errorBuilder_ == null) {\n return error_ == null ? protodef.b_error.info.getDefaultInstance() : error_;\n } else {\n return errorBuilder_.getMessage();\n }\n }",
"public Context getContext() {\n\t\treturn context;\n\t}",
"public Map getError() {\n return this.error;\n }",
"public String getError() {\n return error != null ? error : \"An unknown error occurred.\";\n }",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public String getContextCharacters() {\r\n return this.text.toString();\r\n }",
"public Symbol cur_err_token() {\r\n return this.lookahead[this.lookahead_pos];\r\n }",
"public String getMessage() {\n return super.getMessage()+\"\\n error code=\"+error_code+\" error value=\"+error_value; //$NON-NLS-1$ //$NON-NLS-2$\n }",
"CTX_Context getContext();",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public protodef.b_error.infoOrBuilder getErrorOrBuilder() {\n return error_ == null ? protodef.b_error.info.getDefaultInstance() : error_;\n }",
"public protodef.b_error.infoOrBuilder getErrorOrBuilder() {\n return error_ == null ? protodef.b_error.info.getDefaultInstance() : error_;\n }",
"com.google.protobuf.ByteString\n getSourceContextBytes();",
"public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n }\n }",
"public AgnTagErrorKey getErrorKey() {\n\t\treturn errorKey;\n\t}",
"public String getContextID() throws PolicyContextException {\n\tcheckSetPolicyPermission();\n\treturn this.CONTEXT_ID;\n }",
"public java.lang.String getSourceContext() {\n java.lang.Object ref = sourceContext_;\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 sourceContext_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Property\n public native MintMessageException getExceptionError ();",
"public String getErrorMsg() {\n return this.emsg;\n }"
] | [
"0.64536506",
"0.6380919",
"0.61184716",
"0.60604537",
"0.6028776",
"0.60274893",
"0.6019215",
"0.6015519",
"0.5971979",
"0.5967242",
"0.595027",
"0.595027",
"0.595027",
"0.5946694",
"0.59417397",
"0.5939057",
"0.59341717",
"0.5929372",
"0.5925682",
"0.5890668",
"0.58844393",
"0.5866194",
"0.5865327",
"0.5828865",
"0.58137614",
"0.58137614",
"0.58137614",
"0.58137614",
"0.577929",
"0.57575554",
"0.57384354",
"0.57384354",
"0.57384354",
"0.57384354",
"0.5730754",
"0.5730754",
"0.5730754",
"0.5730754",
"0.57131684",
"0.5697566",
"0.56888926",
"0.5686223",
"0.5677343",
"0.5677343",
"0.5677343",
"0.5677343",
"0.5669107",
"0.56504",
"0.56234044",
"0.5595568",
"0.55848706",
"0.5572673",
"0.5561068",
"0.555517",
"0.5553347",
"0.55149907",
"0.5511066",
"0.5511066",
"0.5511066",
"0.5511066",
"0.550068",
"0.5497902",
"0.54862195",
"0.5479652",
"0.54785365",
"0.5475389",
"0.54547256",
"0.54547256",
"0.54547256",
"0.54547256",
"0.54486865",
"0.5447665",
"0.54454505",
"0.5421536",
"0.5418568",
"0.54122436",
"0.5392593",
"0.53913844",
"0.53667676",
"0.53667676",
"0.5341779",
"0.5341779",
"0.53352547",
"0.5317122",
"0.53113407",
"0.5294691",
"0.529215",
"0.52775383",
"0.5275457",
"0.5266722",
"0.52603555",
"0.5254388",
"0.5254388",
"0.52475536",
"0.5243014",
"0.5241792",
"0.5240888",
"0.52308637",
"0.5230861",
"0.5226083"
] | 0.58879536 | 20 |
Constructor file, adding in all the evaluations for the Naive Bayes and SMO. | public ExportResults()
{
this.evalNaiveBayesList = new ArrayList<Evaluation>();
this.evalSMOList = new ArrayList<Evaluation>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void init() {\n initGate(); // 1. initialize Gate library\n loadAnnie(); // 2. load Annie plugin\n addPR(); // 3. initialise ANNIE\n setCorpus(); // 4. set corpus and extract with files.\n execute(); // 5. run the PR through the corpus in the ANNIE\n Out.prln(\"annotation completed ....\");\n MyWriter.write(corpus, outCorpusFile);\n Out.prln(\"*** ENTITY ANNOTATION COMPLETED *** \");\n }",
"public NBClassifier(String trainDataFolder, int trainPortion)\n\t{\n\t\ttrainingDocs = new ArrayList<String>();\n\t\tallDocs = new ArrayList<String>();\n\t\tnumClasses = 2;\n\t\tclassCounts = new int[numClasses];\n\t\tclassStrings = new String[numClasses];\n\t\tclassTokenCounts = new int[numClasses];\n\t\tcondProb = new HashMap[numClasses];\n\t\tvocabulary = new HashSet<String>();\n\t\tfor(int i=0;i<numClasses;i++){ //just initialization\n\t\t\tclassStrings[i] = \"\";\n\t\t\tcondProb[i] = new HashMap<String,Double>();\n\t\t}\n\t\ttotalDocs = 5574;\n\t\toffset = Math.round(totalDocs) * trainPortion / 100;\n\t\tSystem.out.println(\"Numer of Documents For Training: \"+offset);\n\t\tSystem.out.println(\"Numer of Documents For Testing: \"+(totalDocs-offset));\n\t\tpreprocess(trainDataFolder);\n\t\t\n\t\tfor(int i=0;i<numClasses;i++){\n\t\t\tString[] tokens = classStrings[i].split(\" \");\n\t\t\tclassTokenCounts[i] = tokens.length;\n\t\t\t//collecting the counts\n\t\t\tfor(String token:tokens){\n\t\t\t\t//System.out.println(token);\n\t\t\t\tvocabulary.add(token);\n\t\t\t\tif(condProb[i].containsKey(token)){\n\t\t\t\t\tdouble count = condProb[i].get(token);\n\t\t\t\t\tcondProb[i].put(token, count+1);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tcondProb[i].put(token, 1.0);\n\t\t\t\t//System.out.println(token+\" : \"+condProb[i].get(token));\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<numClasses;i++){\n\t\t\tIterator<Map.Entry<String, Double>> iterator = condProb[i].entrySet().iterator();\n\t\t\tint vSize = vocabulary.size();\n\t\t\twhile(iterator.hasNext())\n\t\t\t{\n\t\t\t\tMap.Entry<String, Double> entry = iterator.next();\n\t\t\t\tString token = entry.getKey();\n\t\t\t\tDouble count = entry.getValue();\n\t\t\t\t//System.out.println(count+1+\" / ( \"+classTokenCounts[i]+\" + \"+vSize+\" )\");\n\t\t\t\tcount = (count+1)/(classTokenCounts[i]+vSize);\n\t\t\t\tcondProb[i].put(token, count);\n\t\t\t}\n\t\t\t//System.out.println(\"dekho: \"+condProb[i]);\n\t\t}\n\t\ttestModel();\n\t}",
"protected Analyzer() {\n super();\n this.inputClasses = null;\n this.outputFeatures = null;\n this.producesRankings = false;\n this.producesScores = false;\n }",
"public void initialize() {\n\n\t\tthis.subNetGenes = getSubNetGenes(species, xmlFile);\n\t\tthis.subNetwork = getSubNetwork(subNetGenes, oriGraphFile);\n\t\tHPNUlilities.dumpLocalGraph(subNetwork, subNetFile);\n\t\t/* Create level file for the original graph */\n\t\tHPNUlilities.createLevelFile(codePath, oriGraphFile, oriLevel,\n\t\t\t\tglobalLevelFile, penaltyType, partitionSize);\n\n\t}",
"public AnalysisProfile(){\n\t\tsuper();\n\t\tthis.terms = new HashMap<String, Integer>();\n\t\tthis.sources = new ArrayList<String>();\n\t\tthis.stopWords = new HashSet<String>();\n\t\tthis.yearFrom = -1;\n\t\tthis.yearTo = -1;\n\t\tthis.contextSize = 5;\n\t\tthis.useCompounds = false;\n\t\tthis.useStopwords = true;\n\t\tthis.useOnlyContexts = true;\n\t\tthis.results = new StringBuilder();\n\t\tthis.corpus = new ArrayList<File>();\n\t}",
"public ExamMB() {\n }",
"@Override\r\n\tpublic void init() { \r\n\t\t\r\n\t\tsession = -1;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseLearn = 20;\r\n\t\tprogressLearn = 10;\r\n\t\tnoisLearn = 0.2;\r\n\t\t\r\n\t\treservationPanic = 0.2;\r\n\t\tmyBids = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\t\topponentBidsB = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\r\n\t\tdf = utilitySpace.getDiscountFactor();\r\n\t\tif (df==0) df = 1; \r\n\r\n\t\ttry {\r\n\t\t\tinitStates();\r\n\t\t} catch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}",
"public TesterPSO() {\n\t\tlogWriter = new Writer();\n\t\tMAX_RUN = 50;\n\t\truntimes = new long[MAX_RUN];\n\t}",
"private void initializeFile() {\n\t\twriter.println(\"name \\\"advcalc\\\"\");\n\t\twriter.println(\"org 100h\");\n\t\twriter.println(\"jmp start\");\n\t\tdeclareArray();\n\t\twriter.println(\"start:\");\n\t\twriter.println(\"lea si, \" + variables);\n\t}",
"public DataParser() throws IOException {\n cem = loadCEM();\n summits = readSummitsFrom(new File(\"alps.txt\"));\n }",
"private void initiliaze() {\r\n\t\tthis.inputFile = cd.getInputFile();\r\n\t\tthis.flowcell = cd.getFlowcell();\r\n\t\tthis.totalNumberOfTicks = cd.getOptions().getTotalNumberOfTicks();\r\n\t\tthis.outputFile = cd.getOutputFile();\r\n\t\tthis.statistics = cd.getStatistic();\r\n\t}",
"public void wekaCalculate()\n\t{\n\t\tfor (int categoryStep = 0; categoryStep < 6; categoryStep++)\n\t\t{\n\t\t\tString trainString = \"Train\";\n\t\t\tString testString = \"Test\";\n\t\t\tString categoryString;\n\t\t\tString resultString = \"Results\";\n\t\t\tString textString;\n\t\t\tString eventString;\n\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: categoryString = \"Cont.arff\"; break;\n\t\t\tcase 1: categoryString = \"Dona.arff\"; break;\n\t\t\tcase 2: categoryString = \"Offi.arff\"; break;\n\t\t\tcase 3: categoryString = \"Advi.arff\"; break;\n\t\t\tcase 4: categoryString = \"Mult.arff\"; break;\n\t\t\tdefault: categoryString = \"Good.arff\";\n\t\t\t}\n\t\t\t\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: textString = \"Cont.txt\"; break;\n\t\t\tcase 1: textString = \"Dona.txt\"; break;\n\t\t\tcase 2: textString = \"Offi.txt\"; break;\n\t\t\tcase 3: textString = \"Advi.txt\"; break;\n\t\t\tcase 4: textString = \"Mult.txt\"; break;\n\t\t\tdefault: textString = \"Good.txt\";\n\t\t\t}\n\t\t\t\n\t\t\tfor (int eventStep = 0; eventStep < 15; eventStep++)\n\t\t\t{\n\t\t\t\tString trainingData;\n\t\t\t\tString testData;\n\t\t\t\tString resultText;\n\n\t\t\t\tswitch (eventStep)\n\t\t\t\t{\n\t\t\t\tcase 0: eventString = \"2011Joplin\"; break;\n\t\t\t\tcase 1: eventString = \"2012Guatemala\"; break; \n\t\t\t\tcase 2: eventString = \"2012Italy\"; break;\n\t\t\t\tcase 3: eventString = \"2012Philipinne\"; break;\n\t\t\t\tcase 4: eventString = \"2013Alberta\";\tbreak;\n\t\t\t\tcase 5: eventString = \"2013Australia\"; break;\n\t\t\t\tcase 6: eventString = \"2013Boston\"; break;\t\t\t\t\n\t\t\t\tcase 7: eventString = \"2013Manila\"; break;\n\t\t\t\tcase 8: eventString = \"2013Queens\"; break;\n\t\t\t\tcase 9: eventString = \"2013Yolanda\"; break;\n\t\t\t\tcase 10: eventString = \"2014Chile\"; break;\n\t\t\t\tcase 11: eventString = \"2014Hagupit\"; break;\n\t\t\t\tcase 12: eventString = \"2015Nepal\"; break;\n\t\t\t\tcase 13: eventString = \"2015Paris\"; break;\n\t\t\t\tdefault: eventString = \"2018Florida\"; \t\t\t\t\n\t\t\t\t}\n\n\t\t\t\ttrainingData = eventString;\n\t\t\t\ttrainingData += trainString;\n\t\t\t\ttrainingData += categoryString;\n\n\t\t\t\ttestData = eventString;\n\t\t\t\ttestData += testString;\n\t\t\t\ttestData += categoryString;\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tresultText = eventString;\n\t\t\t\tresultText += resultString;\n\t\t\t\tresultText += textString;\n\t\t\t\t\n\n\t\t\t\ttry {\n\t\t\t\t\tConverterUtils.DataSource loader1 = new ConverterUtils.DataSource(trainingData);\n\t\t\t\t\tConverterUtils.DataSource loader2 = new ConverterUtils.DataSource(testData);\n\n\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(resultText));\n\t\t\t\t\tInstances trainData = loader1.getDataSet();\n\t\t\t\t\ttrainData.setClassIndex(trainData.numAttributes() - 1);\n\n\t\t\t\t\tInstances testingData = loader2.getDataSet();\n\t\t\t\t\ttestingData.setClassIndex(testingData.numAttributes() - 1);\n\n\t\t\t\t\tClassifier cls1 = new NaiveBayes();\t\t\t\t\t\n\t\t\t\t\tcls1.buildClassifier(trainData);\t\t\t\n\t\t\t\t\tEvaluation eval1 = new Evaluation(trainData);\n\t\t\t\t\teval1.evaluateModel(cls1, testingData);\t\n\t\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\t\t\t\t\tbw.write(eval1.toSummaryString());\n\t\t\t\t\tbw.write(eval1.toClassDetailsString());\n\t\t\t\t\tbw.write(eval1.toMatrixString());\n\t\t\t\t\tbw.write(\"\\n\");\n\n\t\t\t\t\tthis.evalNaiveBayesList.add(eval1);\n\n\t\t\t\t\tClassifier cls2 = new SMO();\n\t\t\t\t\tcls2.buildClassifier(trainData);\n\t\t\t\t\tEvaluation eval2 = new Evaluation(trainData);\n\t\t\t\t\teval2.evaluateModel(cls2, testingData);\n\t\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\t\t\t\t\tbw.write(eval2.toSummaryString());\n\t\t\t\t\tbw.write(eval2.toClassDetailsString());\n\t\t\t\t\tbw.write(eval2.toMatrixString());\n\n\t\t\t\t\tthis.evalSMOList.add(eval2);\n\n\t\t\t\t\tbw.close();\n\t\t\t\t} catch (Exception e) {\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n String pathToTrain = \"train.csv\";\n String pathToTest = \"test.csv\";\n try {\n ArrayList<String> trainSentences = readCSV(pathToTrain);\n trainSentences.remove(0);\n ArrayList<String> testSentences = readCSV(pathToTest);\n testSentences.remove(0);\n\n ArrayList<String[]> trainWords = preprocess(trainSentences);\n NaiveBayesClassifier model = new NaiveBayesClassifier();\n model.fit(trainWords);\n\n ArrayList<String[]> testWords = preprocess(testSentences);\n double accuracy = evaluate(testWords, model);\n model.writeParams(\"params.json\");\n System.out.printf(\"Accuracy of the model is: %.4f%n\", accuracy);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public void init(){\r\n System.out.println(\"Application inits\");\r\n try {\r\n\t\t// Create file for logging\r\n\t\ttrainFile = new File(trainFileName);\r\n\t\tif(!trainFile.exists()) {\r\n\t\t\tSystem.out.println(\"\\n\\nTrain Log file does not exist. Create...\");\r\n\t\t\ttrainFile.createNewFile();\r\n\t\t\tSystem.out.println(\"\\n\\nTrain Log file created in folder: \" + trainFile.getAbsolutePath());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"\\n\\nTrain Log file created in folder: \" + trainFile.getAbsolutePath());\r\n\t\t}\r\n\t\ttestFile = new File(testFileName);\r\n\t\tif(!testFile.exists()) {\r\n\t\t\tSystem.out.println(\"\\n\\nTest Log file does not exist. Create...\");\r\n\t\t\ttestFile.createNewFile();\r\n\t\t\tSystem.out.println(\"\\n\\nTest Log file created in folder: \" + testFile.getAbsolutePath());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"\\n\\nTest Log file created in folder: \" + testFile.getAbsolutePath());\r\n\t\t}\r\n\t\t// Create file for saving config and results \r\n\t\tstatsFile = new File(statsFileName);\r\n\t\tif(!statsFile.exists()) {\r\n\t\t\tSystem.out.println(\"\\n\\nStats file does not exist. Create...\");\r\n\t\t\tstatsFile.createNewFile();\r\n\t\t\tSystem.out.println(\"\\n\\nStats file created in folder: \" + statsFile.getAbsolutePath());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"\\n\\nStats file created in folder: \" + statsFile.getAbsolutePath());\r\n\t\t}\r\n\t\t\r\n\t\t// Create FileWriters\r\n\t\ttrainWriter = new FileWriter(trainFile, false);\r\n\t\ttestWriter = new FileWriter(testFile, false);\r\n\t\tstatsWriter = new FileWriter(statsFile, false);\r\n\t\t\r\n\t\t\r\n } catch (Exception e) {\r\n System.err.println(\"Error in creating log files\");\r\n e.printStackTrace();\r\n }\r\n \r\n try {\r\n super.init();\r\n trainWriter.write(\"---Initialization of Application.--- \\nBuild model....\");\r\n this.vgg16Transfer = configurate();\r\n trainWriter.write(\"Configuration created successfully!\");\r\n System.out.println(\"Configuration created successfully!\");\r\n vgg16Transfer.init();\r\n trainWriter.write(\"Neural Network initialized successfully!\");\r\n trainWriter.write(vgg16Transfer.summary());\r\n System.out.println(vgg16Transfer.summary()); // Print changes config\r\n } catch (Exception e) {\r\n System.err.println(\"Error in configurating Neural Network\");\r\n e.printStackTrace();\r\n }\r\n\r\n // Load data for training\r\n try {\r\n \ttrainWriter.write(\"\\nStarted loading training data...\");\r\n loadDataTraining(trainDirAddr);\r\n } catch (IOException e) {\r\n System.err.println(\"Error while loading training dataset\");\r\n e.printStackTrace();\r\n }\r\n // Load data for testing\r\n try {\r\n \ttestWriter.write(\"Started loading training data...\");\r\n loadDataTesting(testDirAddr);\r\n } catch (IOException e) {\r\n System.err.println(\"Error while loading testing dataset\");\r\n e.printStackTrace();\r\n }\r\n\r\n /*\r\n * Check, if model is ready - then load it from file, then check it on test iterator.\r\n * Else - train it and save params to the specified file.\r\n */\r\n if(!collectStats) {\r\n try {\r\n \tSystem.out.println(\"\\n Model is already pre-trained. Loading...\");\r\n \ttestWriter.write(\"\\n Model is already pre-trained. Loading...\");\r\n \r\n // Load model\r\n vgg16Transfer = load();\r\n testWriter.write(\"\\n Model loaded successfully!\");\r\n } \r\n catch (IOException e) {\r\n System.err.println(\"Error while writing to log file\");\r\n e.printStackTrace();\r\n }\r\n catch (Exception e) {\r\n System.err.println(\"Error while loading Neural Network\");\r\n e.printStackTrace();\r\n }\r\n }\r\n else {\r\n \ttry {\r\n\t\t\t\ttrainWriter.write(\"\\n Model is not pre-trained.\");\r\n\t\t\t\tSystem.out.println(\"\\n Model is not pre-trained.\");\r\n\t // Train NN\r\n\t train();\r\n\t\t\t\t\r\n\t\t\t} \r\n catch (IOException e) {\r\n System.err.println(\"Error while writing to log file\");\r\n e.printStackTrace();\r\n }\r\n \tcatch (Exception e1) {\r\n\t\t\t\tSystem.err.println(\"Error while training Neural Network\");\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n \r\n // Save NN to file\r\n try {\r\n System.out.println(\"\\n Model is trained. Saving...\");\r\n trainWriter.write(\"\\n Model is trained. Saving...\");\r\n save(vgg16Transfer);\r\n trainWriter.write(\"\\n Model saved successfully!\");\r\n } catch (Exception e) {\r\n System.err.println(\"Error while saving Neural Network\");\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"public static void init(){\t\t\n\t\tParameters p = RunEnvironment.getInstance().getParameters();\n\n\t\tSIM_RANDOM_SEED = (Integer)p.getValue(\"randomSeed\");\n\t\tSIM_NUM_AGENTS = (Integer)p.getValue(\"maxAgents\");\n\t\tSIM_NORM_VIOLATION_RATE = (Float) p.getValue(\"Norm Violation Rate\");\n\t\tNUM_TICKS_TO_CONVERGE = (Long)p.getValue(\"NumTicksToConverge\");\n\t\tCONTENTS_QUEUE_SIZE = (Long)p.getValue(\"ContentsQueueSize\");\n\t\t\n\t\tNORM_GEN_EFF_THRESHOLD = (Double)p.getValue(\"NormsGenEffThreshold\");\n\t\tNORM_GEN_NEC_THRESHOLD = (Double)p.getValue(\"NormsGenNecThreshold\");\n\t\tNORM_SPEC_EFF_THRESHOLD = (Double)p.getValue(\"NormsSpecEffThreshold\");\n\t\tNORM_SPEC_NEC_THRESHOLD = (Double)p.getValue(\"NormsSpecNecThreshold\");\n\t\tNORM_UTILITY_WINDOW_SIZE = (Integer)p.getValue(\"NormsPerfRangeSize\");\n\t\tNORM_DEFAULT_UTILITY = (Double)p.getValue(\"NormsDefaultUtility\");\n\n\t\tNORM_SYNTHESIS_STRATEGY = (Integer)p.getValue(\"NormSynthesisStrategy\");\n\t\tNORM_GENERATION_REACTIVE = (Boolean)p.getValue(\"NormGenerationReactive\");\n\t\tNORM_GENERALISATION_MODE = (Integer)p.getValue(\"NormGeneralisationMode\");\n\t\tNORM_GENERALISATION_STEP = (Integer)p.getValue(\"NormGeneralisationStep\");\n\t\tNORM_SPEC_THRESHOLD_EPSILON = (Double)p.getValue(\"NormsSpecThresholdEpsilon\");\n\t\tNORMS_MIN_EVALS_CLASSIFY = (Integer)p.getValue(\"NormsMinEvaluationsToClassify\");\n\t\tNORMS_WITH_USER_ID = (Boolean)p.getValue(\"NormsWithUserId\");\n\n\t\t\n\t\t\n\t\t// System goals and their constants\n\t\tsystemGoals = new ArrayList<Goal>();\n\t\tsystemGoals.add(new GComplaints());\n\n\t\t//\t\tdouble tMinusEpsilon = NORM_SPEC_NEC_THRESHOLD - NORM_SPEC_THRESHOLD_EPSILON;\n\t\t//\t\t\n\t\t//\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\t//\t\tif(NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) {\n\t\t//\t\t\tNORM_DEFAULT_UTILITY = (float)(tMinusEpsilon * (NORM_MIN_EVALS+1)); \n\t\t//\t\t}\n\n\t\t/* For SIMON+ and LION, set default utility in a different manner... */\n\t\tif((NORM_SYNTHESIS_STRATEGY == 3 || NORM_SYNTHESIS_STRATEGY == 4) &&\n\t\t\t\t!NORM_GENERATION_REACTIVE) \n\t\t{\n\t\t\tNORM_DEFAULT_UTILITY = 0f; \n\t\t\tSystem.out.println(\"Norm generation is set as Deliberative\");\n\t\t}\n\t}",
"protected void init()\r\n\t{\n\t\tif (ConfigManager.getInstance().getIsCrossClassify() && WekaTool.dataStageOn)\r\n\t\t{\r\n\t\t\t//System.out.println(\"in init for data stage\");\r\n\t\t\tsrcDirUrl = ConfigManager.getInstance().getTrainPath();\r\n\t\t\tdestDirUrl = ConfigManager.getInstance().getTrainPath() +\r\n\t\t\t File.separator + \"output\";\r\n\t\t\t//System.out.println(\"srcDirUrl = \" + srcDirUrl);\r\n\t\t\t//System.out.println(\"destDirUrl = \" + destDirUrl);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t//System.out.println(\"here, good\");\r\n\t\t\tsrcDirUrl = getSrcDirUrl();\r\n\t\t\tdestDirUrl = getDestDirUrl();\r\n\t\t}\r\n\t\tdatalibSVMUrl = getLibSVMDirUrl();\r\n\t\ttry {\r\n\t\t\tsrcDir = Utils.getDir(srcDirUrl);\r\n\t\t\tdestDir = Utils.getDir(destDirUrl);\r\n\t\t} catch (Exception e)\r\n\t\t{\r\n\t\t}\r\n\t}",
"public Simulation() {\n ecosystem = new Ecosystem();\n weeksElapsed = 0;\n }",
"public StudentExamination() {\n initComponents();\n readExamSlip();\n readExamResult();\n }",
"public MyNLP()\n\t{\n\t\t//create StanfordNLP\n\t\tsnlp = new StanfordNLP();\n\t\t//create Recognizer\n\t\trec = new MyRecognizer();\n\t\t//build recognizers\n\t\trec.build();\n\t\t//create SentimentalAnalysis\n\t\tsa = new SentimentalAnalysis();\n\t}",
"public Driver() {\n setupFiles();\n }",
"static void initializeData() {\n\n if (timeLimitInHour != -1) {\n endTime = startTime + timeLimitInHour * 60 * 60 * 1000;\n }\n\n // Read the data file.\n data = new Data(dataFileName);\n\n // Build all variables.\n allVariable = data.buildAllVariable();\n\n // Read the target gene set.\n GeneSet geneSet = new GeneSet(allVariable, targetGeneSetFileName, minGeneSetSize, maxGeneSetSize, selectedCollections);\n listOfTargetGeneSets = geneSet.buildListOfGeneSets();\n\n // Read sample class labels.\n readSampleClass();\n\n // Initialize remaining fields.\n if (numberOfThreads == 0)\n numberOfThreads = getRuntime().availableProcessors();\n\n // Initialize BufferedWriter with preliminary info for log file.\n String fileInfo = \"EDDY OUTPUT FILE\\n\";\n fileInfo += (\"Data File: \" + dataFileName + \"\\n\");\n fileInfo += (\"Target Gene Set(s) File: \" + targetGeneSetFileName + \"\\n\");\n fileInfo += (\"Class Label File: \" + sampleClassInformationFileName + \"\\n\");\n fileInfo += (\"Number of Gene Sets: \" + listOfTargetGeneSets.size() + \"\\n\");\n fileInfo += (\"Number of Threads: \" + numberOfThreads + \"\\n\\n\");\n \n // log command line options, in verbatim \n fileInfo += concatStrings(commandLine) + \"\\n\\n\";\n \n fileInfo += (\"Name: \\tCollection: \\tSize: \\tURL: \\tJS Divergence: \\tP-Value: \\t#Permutations: \\tGenes: \\n\");\n try {\n \t// TODO: need to come up with a better way to assign the output file name.\n String fileName = targetGeneSetFileName.substring(0, targetGeneSetFileName.indexOf(\".gmt\")) + \"_output.txt\";\n \n File file = new File(fileName);\n \n output = new BufferedWriter(new FileWriter(file));\n output.write(fileInfo);\n } catch ( IOException e ) {\n e.printStackTrace();\n }\n\n }",
"public encogNeuralNet() {\n initComponents();\n this.INPUT_NODES=13;\n this.OUTPUT_NODES=31;\n this.shutDown=false;\n this.savedInstance= new File(\"network.csv\");\n this.network = new BasicNetwork();\n }",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[1] = \"\";\n Evaluation.main(stringArray0);\n NaiveBayesMultinomial naiveBayesMultinomial0 = new NaiveBayesMultinomial();\n try { \n Evaluation.evaluateModel((Classifier) naiveBayesMultinomial0, stringArray0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Exception e) {\n //\n // \n // Weka exception: No training file and no object input file given.\n // \n // General options:\n // \n // -h or -help\n // \\tOutput help information.\n // -synopsis or -info\n // \\tOutput synopsis for classifier (use in conjunction with -h)\n // -t <name of training file>\n // \\tSets training file.\n // -T <name of test file>\n // \\tSets test file. If missing, a cross-validation will be performed\n // \\ton the training data.\n // -c <class index>\n // \\tSets index of class attribute (default: last).\n // -x <number of folds>\n // \\tSets number of folds for cross-validation (default: 10).\n // -no-cv\n // \\tDo not perform any cross validation.\n // -split-percentage <percentage>\n // \\tSets the percentage for the train/test set split, e.g., 66.\n // -preserve-order\n // \\tPreserves the order in the percentage split.\n // -s <random number seed>\n // \\tSets random number seed for cross-validation or percentage split\n // \\t(default: 1).\n // -m <name of file with cost matrix>\n // \\tSets file with cost matrix.\n // -l <name of input file>\n // \\tSets model input file. In case the filename ends with '.xml',\n // \\ta PMML file is loaded or, if that fails, options are loaded\n // \\tfrom the XML file.\n // -d <name of output file>\n // \\tSets model output file. In case the filename ends with '.xml',\n // \\tonly the options are saved to the XML file, not the model.\n // -v\n // \\tOutputs no statistics for training data.\n // -o\n // \\tOutputs statistics only, not the classifier.\n // -i\n // \\tOutputs detailed information-retrieval statistics for each class.\n // -k\n // \\tOutputs information-theoretic statistics.\n // -classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\n // \\tUses the specified class for generating the classification output.\n // \\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\n // -p range\n // \\tOutputs predictions for test instances (or the train instances if\n // \\tno test instances provided and -no-cv is used), along with the \n // \\tattributes in the specified range (and nothing else). \n // \\tUse '-p 0' if no attributes are desired.\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -distribution\n // \\tOutputs the distribution instead of only the prediction\n // \\tin conjunction with the '-p' option (only nominal classes).\n // \\tDeprecated: use \\\"-classifications ...\\\" instead.\n // -r\n // \\tOnly outputs cumulative margin distribution.\n // -xml filename | xml-string\n // \\tRetrieves the options from the XML-data instead of the command line.\n // -threshold-file <file>\n // \\tThe file to save the threshold data to.\n // \\tThe format is determined by the extensions, e.g., '.arff' for ARFF \n // \\tformat or '.csv' for CSV.\n // -threshold-label <label>\n // \\tThe class label to determine the threshold data for\n // \\t(default is the first label)\n // \n // Options specific to weka.classifiers.bayes.NaiveBayesMultinomial:\n // \n // -D\n // \\tIf set, classifier is run in debug mode and\n // \\tmay output additional info to the console\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }",
"public Evaluator(RANKER_TYPE rType, String trainMetric, String testMetric) {\n/* 648 */ this.type = rType;\n/* 649 */ this.trainScorer = this.mFact.createScorer(trainMetric);\n/* 650 */ this.testScorer = this.mFact.createScorer(testMetric);\n/* 651 */ if (qrelFile.compareTo(\"\") != 0) {\n/* */ \n/* 653 */ this.trainScorer.loadExternalRelevanceJudgment(qrelFile);\n/* 654 */ this.testScorer.loadExternalRelevanceJudgment(qrelFile);\n/* */ } \n/* */ }",
"public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }",
"public TestDriverProgram(){\n iTestList = new SortableArray(iSize); // tests if parameterized constructor works\n iTestFileList = new SortableArray(); // tests if default constructor works\n runAllTests(); // run all of the tests\n }",
"public AnalysisDatasets() {\n }",
"public GeneticEngine() {\n avgFitnesses = new ArrayList<Double>();\n highFitnesses = new ArrayList<Double>();\n population = null;\n crossoverProbability = 0.07;\n mutationProbability = 0.001;\n maxGenerations = Integer.MAX_VALUE;\n }",
"public static void main(String[] args) {\n\t\tTraining publictraining=new PublicTraining(\"Java\",5000, 50);\r\n\t\tSystem.out.println(\"Cost of Public training with Id \"+Training.getId()+\" is: \"+publictraining.getOrderValue());\r\n\t\t//CONSTRUCTOR HAVING AGUMENTS AS SUBJECT,FEES,DAYS\r\n\t\tTraining corporatetraining=new PublicTraining(\"BigDAta\",35000, 4);\r\n\t\tSystem.out.println(\"Cost of Corporate training with Id \"+Training.getId()+\" is: \"+corporatetraining.getOrderValue());\r\n\t}",
"@BeforeClass\r\n public static void generateConfigurationOfClassifiersAndLoadData() {\r\n\r\n //one classifier in the ensemble will be ClassifierModel (Model for enach output class)\r\n GaussianMultiModelConfig gmc = new GaussianMultiModelConfig();\r\n gmc.setTrainerClassName(\"QuasiNewtonTrainer\");\r\n gmc.setTrainerCfg(new QuasiNewtonConfig());\r\n LinearModelConfig lmcpso = new LinearModelConfig();\r\n lmcpso.setTrainerClassName(\"PSOTrainer\");\r\n lmcpso.setTrainerCfg(new PSOConfig());\r\n ClassifierModelConfig clc = new ClassifierModelConfig();\r\n clc.setClassModelsDef(BaseModelsDefinition.RANDOM);\r\n clc.addClassModelCfg(lmcpso);\r\n clc.addClassModelCfg(gmc);\r\n clc.setClassRef(ClassifierModel.class);\r\n\r\n //todo second classifier in the ensemble will be Weka decision tree\r\n\r\n ClassifierBaggingConfig bagc = new ClassifierBaggingConfig();\r\n bagc.setClassifiersNumber(2);\r\n bagc.setBaseClassifiersDef(BaseModelsDefinition.UNIFORM);\r\n bagc.addBaseClassifierCfg(clc);\r\n\r\n generatedCfg = bagc;\r\n ConfigurationFactory.saveConfiguration(generatedCfg, cfgfilename);\r\n\r\n data = new FileGameData(datafilename);\r\n\r\n }",
"public static void main(String[] args) \n\t{\n\t\t// Konfiguration\n\t\tTraining training = new Training();\n\t\tint numberOfAttributes = 18;\n\t\tStatisticOutput statisticWriter = new StatisticOutput(\"data/statistics.txt\");\n\t\t\n\t\ttraining.printMessage(\"*** TCR-Predictor: Training ***\");\n\t\t\n\t\ttraining.printMessage(\"Datenbank von Aminosäure-Codierungen wird eingelesen\");\n\t\t// Lies die EncodingDB ein\n\t\tAAEncodingFileReader aa = new AAEncodingFileReader();\n\t\tAAEncodingDatabase db = aa.readAAEncodings(\"data/AAEncodings.txt\");\n\t\ttraining.printMessage(\"Es wurden \" + db.getEncodingDatabase().size() + \" Codierungen einglesen\");\n\t\t\n\t\ttraining.printMessage(\"Trainingsdatensatz wird eingelesen und prozessiert\");\n\t\t// Lies zunächst die gesamten Trainingsdaten ein\n\t\tExampleReader exampleReader = new ExampleReader();\n\t\t\n\t\t// Spalte das Datenset\n\t\tDataSplit dataSplit_positives = new DataSplit(exampleReader.getSequnces(\"data/positive.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_positiv = dataSplit_positives.getDataSet();\n\t\t\n\t\tDataSplit dataSplit_negatives = new DataSplit(exampleReader.getSequnces(\"data/negative.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_negativ = dataSplit_negatives.getDataSet();\n\t\t\n\t\t// Lege Listen für die besten Klassifizierer und deren Evaluation an\n\t\tModelCollection modelCollection = new ModelCollection();\n\t\t\n\t\t/*\n\t\t * \n\t\t * Beginne Feature Selection\n\t\t * \n\t\t */\n\t\tArrayList<String> positivesForFeatureSelection = training.concatenateLists(complete_list_positiv);\n\t\tArrayList<String> negativesForFeatureSelection = training.concatenateLists(complete_list_negativ);\n\t\t\n\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t// Convertiere Daten in Wekas File Format\n\t\tARFFFileGenerator arff = new ARFFFileGenerator();\n\t\tInstances dataSet = arff.createARFFFile(positivesForFeatureSelection, negativesForFeatureSelection, db.getEncodingDatabase());\n\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\n\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) aus\");\n\t\t// Beginne Feature Selection\n\t\tFeatureFilter featureFilter = new FeatureFilter();\n\t\tfeatureFilter.rankFeatures(dataSet, numberOfAttributes);\t\t\t\t\t// Wähle die x wichtigsten Features aus\n\t\tdataSet = featureFilter.getProcessedInstances();\n\t\ttraining.printMessage(\"Ausgewählte Features: \" + featureFilter.getTopResults());\n\n\t\t/*\n\t\t * Führe die äußere Evaluierung fünfmal durch und wähle das beste Modell\n\t\t */\n\t\tfor (int outer_run = 0; outer_run < 5; outer_run++)\n\t\t{\n\t\t\tstatisticWriter.writeString(\"===== Äußere Evaluation \" + (outer_run + 1) + \"/5 =====\\n\\n\");\n\t\t\t\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_positives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_positives.addAll(complete_list_positiv);\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_negatives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_negatives.addAll(complete_list_negativ);\n\t\t\t\n\t\t\t// Lege das erste Fragment beider Listen für nasted-Crossvalidation beiseite\n\t\t\tArrayList<String> outer_List_pos = new ArrayList<String>();\n\t\t\touter_List_pos.addAll(list_positives.get(outer_run));\n\t\t\tlist_positives.remove(outer_run);\n\t\t\t\n\t\t\tArrayList<String> outer_List_neg = new ArrayList<String>();\n\t\t\touter_List_neg.addAll(list_negatives.get(outer_run));\n\t\t\tlist_negatives.remove(outer_run);\n\t\t\t\n\t\t\t// Füge die verbleibende Liste zu einer Zusammen\n\t\t\tArrayList<String> inner_List_pos = training.concatenateLists(list_positives);\n\t\t\tArrayList<String> inner_List_neg = training.concatenateLists(list_negatives);\n\t\t\t\t\n\n\t\t\t/*\n\t\t\t * \n\t\t\t * Ab hier nur noch Arbeiten mit innerer Liste, die Daten zum Evaluieren bekommt Weka vorerst \n\t\t\t * nicht zu sehen!\n\t\t\t * \n\t\t\t */\n\t\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t\t// Convertiere Daten in Wekas File Format\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(inner_List_pos, inner_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes); // Filtere das innere Datenset nach Vorgabe\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\ttraining.printMessage(\"Beginne Gridsearch\");\n\t\t\t// Gridsearch starten\n\t\n\t\t\t\n\t\t\t\n\t\t\tParameterOptimization optimizer = new ParameterOptimization();\n\t\t\tString logFileName = outer_run + \"_\" + numberOfAttributes;\n\t\t\tGridSearch gridSearch = optimizer.performGridSearch(dataSet, logFileName);\n\t\t\ttraining.printMessage(\"Gefundene Parameter [C, gamma]: \" + gridSearch.getValues()); // liefert unter diesen Settings 1.0 und 0.0\n\n\t\t\tSMO sMO = (SMO)gridSearch.getBestClassifier();\n\t\t\t\t\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t * Evaluationsbeginn \n\t\t\t *\n\t\t\t */\n\t\t\ttraining.printMessage(\"Evaluiere die Performance gegen das äußere Datenset\");\n\t\t\ttraining.printMessage(\"Transcodierung des Evaluationsdatensatzes\");\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(outer_List_pos, outer_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\t// Führe Feature-Filtering mit den Einstellungen der GridSearch aus\n\t\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) auf GridSearch-Basis aus\");\n\t\t\t// Beginne Feature Selection\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes);\t // Wähle die x wichtigsten Features aus\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttraining.printMessage(\"Ermittle Performance\");\n\t\t\tEvaluator eval = new Evaluator();\n\t\t\teval.classifyDataSet(sMO, dataSet);\n\t\t\ttraining.printMessage(eval.printRawData());\n\t\t\t\n\t\t\t/*\n\t\t\t * Füge das Modell und die externe Evaulation zur Sammlung hinzu\n\t\t\t */\t\t\t\n\t\t\tmodelCollection.bestClassifiers.add(sMO);\n\t\t\tmodelCollection.evalsOfBestClassifiers.add(eval);\n\t\t\tmodelCollection.listOfNumberOfAttributes.add(numberOfAttributes);\n\t\t\tmodelCollection.listOfFeatureFilters.add(featureFilter);\n\t\t\t\n\t\t\tstatisticWriter.writeString(\"Verwendete Attribute: \" + featureFilter.getTopResults());\n\t\t\tstatisticWriter.writeString(eval.printRawData());\n\t\t\t\n\t\t}\n\t\tstatisticWriter.close();\n\t\t\n\t\t// Wähle das beste aller Modelle aus\n\t\ttraining.printMessage(\"Ermittle die allgemein besten Einstellungen\");\n\t\tModelSelection modelSelection = new ModelSelection();\n\t\tmodelSelection.calculateBestModel(modelCollection);\n\t\t\n\t\ttraining.printMessage(\"Das beste Model: \");\n\t\ttraining.printMessage(modelSelection.getBestEvaluator().printRawData());\n\t\tSystem.out.println(\"------ SMO ------\");\n\t\tfor (int i = 0; i < modelSelection.getBestClassifier().getOptions().length; i++)\n\t\t{\n\t\t\tSystem.out.print(modelSelection.getBestClassifier().getOptions()[i] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n--- Features ---\");\n\t\tSystem.out.println(modelSelection.getBestListOfFeatures().getTopResults());\n\t\t\n\t\t// Schreibe das Modell in eine Datei\n\t\ttraining.printMessage(\"Das beste Modell wird auf Festplatte geschrieben\");\n\t\ttry\n\t\t{\n\t\t\tSerializationHelper.write(\"data/bestPredictor.model\", modelSelection.getBestClassifier());\n\t\t\tSerializationHelper.write(\"data/ranking.filter\", modelSelection.getBestListOfFeatures().getRanking());\n\t\t\tSerializationHelper.write(\"data/components.i\", (modelSelection.getBestListOfFeatures().getProcessedInstances().numAttributes()-1));\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.err.println(\"Fehler beim Schreiben des Modells auf Festplatte: \" + ex);\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tUtility utility = new Utility();\n\t\t\n\t\t// build trainingset\n\t\tSystem.out.println(\"Training System....\");\n\t\tArrayList<Student> trainingSet = utility.readStudentfile(\"porto_math_train.csv\");\n\t\tArrayList<Variable> variableSets = Student.getAllVar();\n\n\t\tTree tree = new Tree();\n\t\tNode decisionTree = tree.buildTree2(trainingSet, variableSets);\n\n\t\tutility .printNode(decisionTree);\n\n\t\t// testing DT\n\t\tSystem.out.println(\"\\tTesting System (trainingSet)....\");\n\t\tutility.testTree2(trainingSet, decisionTree);\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\tTesting System (testSet)....\");\n\t\tArrayList<Student> testSet = utility.readStudentfile(\"porto_math_test.csv\");\n\t\tutility.testTree2(testSet, decisionTree);\t\t\n\t}",
"private void setupStuff() {\n\t\tm_seenNumbers = new double[featureArray.length][];\n\t\tm_Weights = new double[featureArray.length][];\n\t\tm_NumValues = new int[featureArray.length];\n\t\tm_SumOfWeights = new double[featureArray.length];\n\t\tfeatureTotals = new int[featureArray.length];\n\n\t\tfor (int i = 0; i < featureArray.length; i++) {\n\t\t\tm_NumValues[i] = 0;\n\t\t\tm_seenNumbers[i] = new double[100];\n\t\t\tm_Weights[i] = new double[100];\n\t\t}\n\n\t\t/*\n\t\t * initialize structures for probabilities of each class and of each\n\t\t * feature\n\t\t */\n\t\tclassCounts = new double[MLearner.NUMBER_CLASSES];\n\t\tprobs = new HashMap[MLearner.NUMBER_CLASSES][featureArray.length];\n\t\tRealprobs = new HashMap[MLearner.NUMBER_CLASSES][featureArray.length];\n\t\tfor (int i = 0; i < MLearner.NUMBER_CLASSES; i++) {\n\t\t\tfor (int j = 0; j < featureArray.length; j++) {\n\t\t\t\tif (featureArray[j]) {//only create if we are using that\n\t\t\t\t\t// feature\n\t\t\t\t\tprobs[i][j] = new HashMap();\n\t\t\t\t\tif (EmailInternalConfigurationWindow.isFeatureDiscrete(j)) {\n\t\t\t\t\t\tprobs[i][j].put(\"_default\", new Double(0));\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tclassCounts[i] = 0;\n\t\t}\n\n\t}",
"public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}",
"public static void main(String[] args) throws Exception {\n DataSet houseVotes = DataParser.parseData(HouseVotes.filename, HouseVotes.columnNames, HouseVotes.dataTypes, HouseVotes.ignoreColumns, HouseVotes.classColumn, HouseVotes.discretizeColumns);\n DataSet breastCancer = DataParser.parseData(BreastCancer.filename, BreastCancer.columnNames, BreastCancer.dataTypes, BreastCancer.ignoreColumns, BreastCancer.classColumn, HouseVotes.discretizeColumns);\n DataSet glass = DataParser.parseData(Glass.filename, Glass.columnNames, Glass.dataTypes, Glass.ignoreColumns, Glass.classColumn, Glass.discretizeColumns);\n DataSet iris = DataParser.parseData(Iris.filename, Iris.columnNames, Iris.dataTypes, Iris.ignoreColumns, Iris.classColumn, Iris.discretizeColumns);\n DataSet soybean = DataParser.parseData(Soybean.filename, Soybean.columnNames, Soybean.dataTypes, Soybean.ignoreColumns, Soybean.classColumn, Soybean.discretizeColumns);\n \n /*\n * The contents of the DataSet are not always random.\n * You can shuffle them using Collections.shuffle()\n */\n \n Collections.shuffle(houseVotes);\n Collections.shuffle(breastCancer);\n Collections.shuffle(glass);\n Collections.shuffle(iris);\n Collections.shuffle(soybean);\n /*\n * Lastly, you want to split the data into a regular dataset and a testing set.\n * DataSet has a function for this, since it gets a little weird.\n * This grabs 10% of the data in the dataset and sets pulls it out to make the testing set.\n * This also means that the remaining 90% in DataSet can serve as our training set.\n */\n\n DataSet houseVotesTestingSet = houseVotes.getTestingSet(.1);\n DataSet breastCancerTestingSet = breastCancer.getTestingSet(.1);\n DataSet glassTestingSet = glass.getTestingSet(.1);\n DataSet irisTestingSet = iris.getTestingSet(.1);\n DataSet soybeanTestingSet = soybean.getTestingSet(.1);\n \n //KNN\n //House Votes\n System.out.println(HouseVotes.class.getSimpleName());\n KNN knn = new KNN(houseVotes, houseVotesTestingSet, HouseVotes.classColumn, 3);\n String[] knnHouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n knnHouseVotes[i] = knn.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(knnHouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnHouseVotes[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnHouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n \n //Breast Cancer\n System.out.println(BreastCancer.class.getSimpleName());\n knn = new KNN(breastCancer, breastCancerTestingSet, BreastCancer.classColumn, 3);\n String[] knnBreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n knnBreastCancer[i] = knn.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(knnBreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnBreastCancer[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnBreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n \n //Glass\n System.out.println(Glass.class.getSimpleName());\n knn = new KNN(glass, glassTestingSet, Glass.classColumn, 3);\n String[] knnGlass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n knnGlass[i] = knn.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(knnGlass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnGlass[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnGlass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n \n //Iris\n System.out.println(Iris.class.getSimpleName());\n knn = new KNN(iris, irisTestingSet, Iris.classColumn, 3);\n String[] knnIris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n knnIris[i] = knn.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(knnIris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnIris[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnIris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n \n //Soybean\n System.out.println(Soybean.class.getSimpleName());\n knn = new KNN(soybean, soybeanTestingSet, Soybean.classColumn, 3);\n String[] knnSoybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n knnSoybean[i] = knn.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(knnSoybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnSoybean[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnSoybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n \n \n /*\n * Lets setup ID3:\n * DataSet, TestSet, column with the class categorization. (republican, democrat in this case)\n */\n\n System.out.println(HouseVotes.class.getSimpleName());\n ID3 id3 = new ID3(houseVotes, houseVotesTestingSet, HouseVotes.classColumn);\n String[] id3HouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n id3HouseVotes[i] = id3.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(id3HouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3HouseVotes[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3HouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n\n System.out.println(BreastCancer.class.getSimpleName());\n id3 = new ID3(breastCancer, breastCancerTestingSet, BreastCancer.classColumn);\n String[] id3BreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n id3BreastCancer[i] = id3.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(id3BreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3BreastCancer[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3BreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Glass.class.getSimpleName());\n id3 = new ID3(glass, glassTestingSet, Glass.classColumn);\n String[] id3Glass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n id3Glass[i] = id3.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(id3Glass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Glass[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Glass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Iris.class.getSimpleName());\n id3 = new ID3(iris, irisTestingSet, Iris.classColumn);\n String[] id3Iris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n id3Iris[i] = id3.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(id3Iris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Iris[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Iris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Soybean.class.getSimpleName());\n id3 = new ID3(soybean, soybeanTestingSet, Soybean.classColumn);\n String[] id3Soybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n id3Soybean[i] = id3.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(id3Soybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Soybean[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Soybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n }",
"public Evaluator(RANKER_TYPE rType, METRIC trainMetric, METRIC testMetric) {\n/* 599 */ this.type = rType;\n/* 600 */ this.trainScorer = this.mFact.createScorer(trainMetric);\n/* 601 */ this.testScorer = this.mFact.createScorer(testMetric);\n/* 602 */ if (qrelFile.compareTo(\"\") != 0) {\n/* */ \n/* 604 */ this.trainScorer.loadExternalRelevanceJudgment(qrelFile);\n/* 605 */ this.testScorer.loadExternalRelevanceJudgment(qrelFile);\n/* */ } \n/* */ }",
"public TSysFileExample() {\n\t\toredCriteria = new ArrayList();\n\t}",
"private void init() throws IOException, ModelException{\r\n // Check if the input file should be convert to libSVM format\r\n if(this.reformatInputFile){\r\n reformatInputFile();\r\n this.inputFileName = this.inputFileName + \".svm\";\r\n }\r\n\r\n // Scale the training set\r\n if(this.scale){\r\n scale();\r\n }\r\n\r\n setProblem();\r\n checkParams();\r\n\r\n // Check if cross validation is needed\r\n if(this.crossValidation == 1){\r\n crossValidate();\r\n }\r\n // Goes to here only if you use SVMModel without project context\r\n else{\r\n train();\r\n }\r\n }",
"public CVSProcess() {\n }",
"public void dmall() {\n \r\n BufferedReader datafile = readDataFile(\"Work//weka-malware.arff\");\r\n \r\n Instances data = null;\r\n\t\ttry {\r\n\t\t\tdata = new Instances(datafile);\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n data.setClassIndex(data.numAttributes() - 1);\r\n \r\n // Choose a type of validation split\r\n Instances[][] split = crossValidationSplit(data, 10);\r\n \r\n // Separate split into training and testing arrays\r\n Instances[] trainingSplits = split[0];\r\n Instances[] testingSplits = split[1];\r\n \r\n // Choose a set of classifiers\r\n Classifier[] models = { new J48(),\r\n new DecisionTable(),\r\n new DecisionStump(),\r\n new BayesianLogisticRegression() };\r\n \r\n // Run for each classifier model\r\n//for(int j = 0; j < models.length; j++) {\r\n int j = 0;\r\n \tswitch (comboClassifiers.getSelectedItem().toString()) {\r\n\t\t\tcase \"J48\":\r\n\t\t\t\tj = 0;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionTable\":\r\n\t\t\t\tj = 1;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"DecisionStump\":\r\n\t\t\t\tj = 2;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"BayesianLogisticRegression\":\r\n\t\t\t\tj = 3;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n \t\r\n\r\n // Collect every group of predictions for current model in a FastVector\r\n FastVector predictions = new FastVector();\r\n \r\n // For each training-testing split pair, train and test the classifier\r\n for(int i = 0; i < trainingSplits.length; i++) {\r\n Evaluation validation = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tvalidation = simpleClassify(models[j], trainingSplits[i], testingSplits[i]);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n predictions.appendElements(validation.predictions());\r\n \r\n // Uncomment to see the summary for each training-testing pair.\r\n// textArea.append(models[j].toString() + \"\\n\");\r\n textArea.setText(models[j].toString() + \"\\n\");\r\n// System.out.println(models[j].toString());\r\n }\r\n \r\n // Calculate overall accuracy of current classifier on all splits\r\n double accuracy = calculateAccuracy(predictions);\r\n \r\n // Print current classifier's name and accuracy in a complicated, but nice-looking way.\r\n textArea.append(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\\n\");\r\n System.out.println(models[j].getClass().getSimpleName() + \": \" + String.format(\"%.2f%%\", accuracy) + \"\\n=====================\");\r\n//}\r\n \r\n\t}",
"public ExperimentInfo() { }",
"public NaiveBayes(FileProcessor file, Boolean test) {\t\r\n\t\tfile.getData(dataEntries);\r\n\t\tif (test == false) { findFrequency(dataEntries.size());}\t\r\n\t\telse {\r\n\t\t\tdouble split = ((float)dataEntries.size()/(float)100)*70;\r\n\t\t\tfindFrequency((int)split); \r\n\t\t}\r\n\t}",
"public Genetic() {\r\n }",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tDataSet ds, testDs;\n\t\tNBFileReader fr = new NBFileReader();\n\n\t\tNBMain = new NaiveBayesMain();\n\t\tNBMain.parseArguments(args);\n\n\t\tHashMap<String, HashMap<String, Integer>> confusionMatrix = new HashMap<String, HashMap<String,Integer>>();\n\t\t\n\t\tds = fr.readFile(NBMain.getTrainFile());\n\t\ttestDs = fr.readFile(NBMain.getTestFile());\n\t\t\n\t\tNaiveBayes nbobj = new NaiveBayes(ds,NBMain.getClassVariable());\n\t\t\n\t\tnbobj.setLabelCount(NBMain.getClassVariable());\n\t\t\n\t\tnbobj.trainNB(NBMain.getClassVariable());\n\n\t\tSystem.out.println(\"===================================================================\");\n\t\tSystem.out.println(\"Predictions: \");\n\t\tSystem.out.println(\"===================================================================\");\n\t\tSystem.out.println();\n\t\tint correctClass = nbobj.classifyNB(testDs, confusionMatrix);\n\n\t\t\n\t\t//train\n\n\t}",
"public TestNGParser(String fileName) {\n super(fileName);\n m_fileName = fileName;\n m_inputStream = null;\n m_postProcessor = null;\n }",
"public Property(String configFileName) {\r\n\r\n\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\tscoringmethod = 0;\r\n\t\tmindistance = 0.5;\r\n\r\n\t\tif (configFileName == null) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\tScanner in = null;\r\n\t\tScanner scan = null;\r\n\t\ttry {\r\n\t\t\tFile conf = new File(configFileName);\r\n\t\t\tin = new Scanner(conf);\r\n\t\t\twhile (in.hasNextLine()) {\r\n\t\t\t\tString line = in.nextLine().replace('=', ',');\r\n\t\t\t\tscan = new Scanner(line);\r\n\t\t\t\tscan.useDelimiter(\",\");\r\n\t\t\t\tString firstWord = scan.next();\r\n\t\t\t\tif (firstWord.equals(\"positive\")) {\r\n\t\t\t\t\tpositive = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"negative\")) {\r\n\t\t\t\t\tnegative = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"stop\")) {\r\n\t\t\t\t\tstop = termsArray(scan);\r\n\t\t\t\t} else if (firstWord.equals(\"scoringmethod\")) {\r\n\t\t\t\t\tString next = scan.next();\r\n\t\t\t\t\tscoringmethod = Integer.parseInt(next);\r\n\t\t\t\t} else if (firstWord.equals(\"mindistance\")) {\r\n\t\t\t\t\tString next = scan.next();\r\n\t\t\t\t\tmindistance = Double.parseDouble(next);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (NumberFormatException ex) {\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\t\tscoringmethod = 0;\r\n\t\t\tmindistance = 0.5;\r\n\t\t} catch (IOException ex) {\r\n\t\t\tSystem.out.println(ex.getMessage());\r\n\t\t\tpositive = new String[] { \"fun\", \"happy\", \"positive\" };\r\n\t\t\tnegative = new String[] { \"sad\", \"bad\", \"angry\" };\r\n\t\t\tstop = new String[] { \"a\", \"an\", \"the\" };\r\n\t\t\tscoringmethod = 0;\r\n\t\t\tmindistance = 0.5;\r\n\t\t} finally{\r\n\t\t\tif(scan != null)\r\n\t\t\t\tscan.close();\r\n\t\t}\r\n\t}",
"@Test\n public void testConstructor() {\n try {\n new File(\"./data/testemostate4.txt\").delete();\n new File(\"./data/testemostate5.txt\").delete();\n } catch (Exception e) {\n ;\n }\n try {\n AveragedEmotionalState avgEmoState = new AveragedEmotionalState(\"./data/\", \"testemostate\");\n ArrayList<Emotion> moodVector = avgEmoState.getMoodVector();\n assertEquals(10, moodVector.get(0).getScaleValue());\n assertEquals(0, moodVector.get(1).getScaleValue());\n assertEquals(20, moodVector.get(2).getScaleValue());\n assertEquals(100, moodVector.get(3).getScaleValue());\n } catch (NoRecordedEmotionalStates e) {\n fail(\"Should be three emotional states for constructor to load so should not fail.\");\n }\n }",
"public BhiEnvironmentalAssessmentExample() {\r\n oredCriteria = new ArrayList<Criteria>();\r\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}",
"public AcceptanceTestRun() {\n }",
"public static void main(String[] args) {\n\n\t\tlong startTime = System.currentTimeMillis();\n\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"data/split1.arff\",\"data/split1_test.arff\");\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"/media/F/Acads/iitb/mtp/naivebayesdataset/bronchiolitis/br-processed.arff\",\"\" +\n\t\t//\t\t\"/media/F/Acads/iitb/mtp/naivebayesdataset/bronchiolitis/br-processed.arff\");\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"/media/F/Acads/iitb/mtp/naivebayesdataset/01/sylva_agnostic_valid.arff\",\"\" +\n\t\t//\t\t\"/media/F/Acads/iitb/mtp/naivebayesdataset/01/sylva_agnostic_valid.arff\");\n\n\t\t// NaiveBayesParam nb = new NaiveBayesParam(\"data/split1lac.arff\",\n\t\t// \"data/split1lacTest.arff\");\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"data/split1b.arff\", \"data/split1bTest.arff\");\n\t\t// NaiveBayesParam nb = new NaiveBayesPFaram(\"data/split1lac.arff\",\n\t\t// \"data/split1bTest.arff\");\n\t\t//NaiveBayesParam nb = new NaiveBayesParam(\"data/split1lac.arff\",\"data/split1hTest.arff\");\n\t\t\n\t\t\n\t\tNaiveBayesParam nb = new NaiveBayesParam(\"/media/F/Acads/iitb/mtp/QuickHeal/data/split1per1.arff\", \"/media/F/Acads/iitb/mtp/QuickHeal/data/split1.arff\");\n\t\t\t\t\n\t\tInputData initialData = nb.calcInitialState();\n\t\ttry {\n\t\t\tinitialData.serialize(\"/home/agam/nb.dat\");\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t/*nb.calcNewState(nb.param);\n\n\n\t\ttry {\n\t\t\tdouble dist1[][] = nb.distributionForInstances(nb.trainInstances);\n\t\t\tdouble dist2[][] = nb.distributionForInstances(nb.testInstances);\n\t\t\t\n\t\t\tint countFN=0;\n\t\t\tint countFP=0;\n\t\t\tSystem.out.println(\"1.# prob0 - prob1 - actual - pred\");\n\t\t\tfor (int i = 0; i < nb.trainInstances.numInstances(); i++)\n\t\t\t{\n\t\t\t\tdouble pred;\n\t\t\t\tdouble actual = nb.trainInstances.instance(i).classValue();\n\t\t\t\t//System.out.print(\"actual=\"+actual);\n\t\t\t\tif(dist1[i][0] >= dist1[i][1])\n\t\t\t\t\tpred=0d;\n\t\t\t\telse\n\t\t\t\t\tpred=1d;\n\t\t //if (pred != actual)\n\t\t if (!(pred > actual-0.1d && pred < actual + 0.1d))\n\t\t {\n//\t\t \tif(pred == 1)\n\t\t \tif(pred > 0.9d && pred < 1.1d)\n\t\t \t\tcountFP++;\n\t\t \telse\n\t\t \t\tcountFN++;\n\t\t }\n\t\t\t}\n\t\t\tSystem.out.println(\"countFP=\"+countFP);\n\t\t\tSystem.out.println(\"%FP=\"+countFP*200.0/nb.trainInstances.numInstances());\n\t\t\tSystem.out.println(\"countFN=\"+countFN);\n\t\t\tSystem.out.println(\"%FN=\"+countFN*200.0/nb.trainInstances.numInstances());\n\t\t\t\n\t\t\tcountFN=0;\n\t\t\tcountFP=0;\n\t\t\tSystem.out.println(\"2.# prob0 - prob1 - actual - pred\");\n\t\t\tfor (int i = 0; i < nb.testInstances.numInstances(); i++)\n\t\t\t{\n\t\t\t\tdouble pred;\n\t\t\t\tdouble actual = nb.testInstances.instance(i).classValue();\n\t\t\t\tif(dist2[i][0] >= dist2[i][1])\n\t\t\t\t\tpred=0d;\n\t\t\t\telse\n\t\t\t\t\tpred=1d;\n//\t\t if (pred != actual)\n\t\t if (!(pred > actual-0.1d && pred < actual + 0.1d))\n\t\t {\n\t\t \tif(pred > 0.9d && pred < 1.1d)\n//\t\t \tif(pred == 1)\n\t\t \t\tcountFP++;\n\t\t \telse\n\t\t \t\tcountFN++;\n\t\t }\n\t\t System.out.println(\"2.#\"+dist2[i][0]+\" \"+dist2[i][1]+\" \" +actual+\" \"+pred);\n\t\t\t}\n\t\t\tSystem.out.println(\"countFP=\"+countFP);\n\t\t\tSystem.out.println(\"%FP=\"+countFP*100.0/nb.testInstances.numInstances());\n\t\t\tSystem.out.println(\"countFN=\"+countFN);\n\t\t\tSystem.out.println(\"%FN=\"+countFN*100.0/nb.testInstances.numInstances());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n*/\n/*\t\t\n\t\tdouble jac[][]=nb.calcJacobian(nb.trainInstances.instance(0));\n\n\t\tfor(int i=0;i<nb.trainInstances.numClasses();i++)\n\t\t{\n\t\t\tfor(int j=0;j<4*nb.trainInstances.numAttributes()-4+nb.trainInstances.numClasses();j++)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"jac[\"+i+\"]=[\"+j+\"]=\"+jac[i][j]);\n\t\t\t}\n\t\t}\n*/\t\t\n\t\tlong endTime = System.currentTimeMillis();\n\t\tlong totalTime = endTime - startTime;\n\t\tSystem.out.println(totalTime + \" milliseconds\");\n\t}",
"public QuinzicalModel() throws Exception {\n\t\tinitialiseCategories();\n\t\treadCategories();\n\t\tsetFiveRandomCategories();\n\t\tloadCurrentPlayer();\n\t\tsetAnsweredQuestions();\n\t\tFile winnings = new File(\"data/winnings\");\n\t\tif (!winnings.exists()) {\n\t\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/winnings\");\n\t\t\tBashCmdUtil.bashCmdNoOutput(\"echo 0 >> data/winnings\");\n\t\t}\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/tts_speed\");\n\t\tloadInternationalUnlocked();\n\t}",
"public RuleParser() {\n this.fileName = \"\";\n }",
"public static void main(String[] args) throws IOException {\n\t\tString [] words ={\"good\", \"bad\"};\n\t\tNaiveBayes nb =new NaiveBayes(words);\n\t\tnb.trainClassifier(new File(\"traindata.txt\"));\n\t\tnb.classifyFile(new File(\"newdata.txt\"),new File(\"classifications.txt\"));\n\t\t\n\t\t\n\t\t//To test the accuracy. Still in work\n\t\t\n//\t\tString [] words ={\"good\", \"bad\"};\n//\t\tNaiveBayes nb =new NaiveBayes(words);\n//\t\tnb.trainClassifier(new File(\"traindata.txt\"));\n//\t\tConfusionMatrix cm = nb.computeAccuracy(new File(\"testdata.txt\"));\n//\t\tSystem.out.println(cm.getTruePositives());\n//\t\tSystem.out.println(cm.getFalsePositives());\n//\t\tSystem.out.println(cm.getTrueNegatives());\n//\t\tSystem.out.println(cm.getFalseNegatives());\n\t\t\n\t}",
"private void init(String filename){\n // create product cateogries \n // hard coded key-value for this project \n productCategory.addProduct(\"book\", \"books\");\n productCategory.addProduct(\"books\", \"books\");\n productCategory.addProduct(\"chocolate\", \"food\");\n productCategory.addProduct(\"chocolates\", \"food\");\n productCategory.addProduct(\"pills\", \"medical\");\n \n // read input\n parser.readInput(filename);\n \n // addProducts\n try {\n this.addProducts(parser.getRawData());\n } catch (Exception e) {\n System.out.println(\"Check input integrity\");\n }\n \n this.generateReceipt();\n\n }",
"public static void main(String[] args) { \n\t\tDiversityBuilder builder = new DiversityBuilder();\n\t\tString filePath = builder.readFileNameFromArgs(args);\n\t\tMovieDataPreProcessor mdpp = new MovieDataPreProcessor(filePath);\n\t\tmdpp.readDataFiles();\n\t\tBayesianClassifier bc = new BayesianClassifier();\n\t\t// hard wired the executions - to reduce the output generations\n\t\tint[] k = new int[]{10};\n\t\tint[] l = new int[]{20};\n\t\tfor(int x: k){\n\t\t\tfor (int y :l){\n\t\t\t\tRelevanceOptimizer.getDiversifiedResults(bc,mdpp, x,y);\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tRelevanceOptimizer.getPRPResults(bc,mdpp, 30);\n\t\t\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tStoreAlphaWeight.dimensionForSVM=200;\n\t\tLibEstimate le=new LibEstimate();\n\t\tle.countLine();\n\t\tle.readVec();\n\t\tle.readLabel();\n\t\tle.readBias();\n\t\tle.addBiastoVec();\n\t\tle.prepTrainData();\n\t\tle.prepTestData();\n\t\tle.lib();\n\t}",
"public Student()\r\n {\r\n // initialise variables with defult values\r\n ID=-1;\r\n Name=null;\r\n University=null;\r\n Department=null;\r\n term=0;\r\n cgpa=0.0;\r\n Gpa=new double[10];\r\n Creditsandgrades=new double[10][10][10];\r\n }",
"public void initialize(Instance inst){\n\n\t\t\tDoubleVector weights = CreateDoubleVector(inst.numAttributes(),0) ;// extended length ;\n// \t\tVarianceRationREduction\n\t\t\tif (learningCriteriaOption.getChosenIndex()==1) {\n\t\t\t\tdefaultRule = new RuleVR(this);\n\t\t\t}else {\n\t\t\t\tdefaultRule = new RuleErrR(this);\n\t\t\t}\n\n\t\t\tVector<FuzzySet> terms = new Vector<FuzzySet>();\n\t\t\tfor (int i = 0; i < inst.numAttributes(); i++) {\n\t\t\t\tif (inst.classIndex()==i)\n\t\t\t\t\tcontinue ;\n\t\t\t\tterms.add(new FuzzySet.LOToRO()) ;\n\t\t\t}\n\t\t\n\t\t\tdefaultRule.setAll(terms, weights);\n\t\t\tdefaultRule.setPrefixAndVersion(\"\", currentSystemVersion);\n\t\t\trs.add(defaultRule);\n\t\t\tcurrentValidCandidates = new Vector<FuzzyRuleExtendedCandidate>() ;\n\t\t\tcurrentNonReadyCandidates = new Vector<FuzzyRuleExtendedCandidate>() ;\n\t\t\tinitialized = true ;\n\t\n\t\t\tif (statsAttributes.size()==0){\n\t\t\t\tfor (int j = 0; j < inst.numAttributes(); j++) {\n\t\t\t\t\tif (inst.classIndex()==j)\n\t\t\t\t\t\tcontinue ;\n\t\t\t\t\tstatsAttributes.add(new IncrementalVariance()) ;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public NarrativeStructInterpreter()\n {\n\n }",
"protected void initialize() {\n // Attribute Load\n this.attributeMap.clear();\n this.attributeMap.putAll(this.loadAttribute());\n // RuleUnique Load\n this.unique = this.loadRule();\n // Marker Load\n this.marker = this.loadMarker();\n // Reference Load\n this.reference = this.loadReference();\n }",
"@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }",
"public ModelSourceFile() {\n\t\t\n\t}",
"public static void main(String abc[]) throws Exception{\n\tScanner scan=new Scanner(System.in); //for taking the input from user\n\t//Asking the user for the description\n\tSystem.out.println(\"Please mention the description of the ontology\");\n\tString s1_des;\n\ts1_des=scan.nextLine();\n\t//Asking the user for the competency questions\n\tSystem.out.println(\"Please mention the Competency Questions related to the Ontology\");\n\tString s2_cq;\n\ts2_cq=scan.nextLine();\t\n\t//This java file has code for OWL file and classifying different properties\n\tOwl_Lexical owl_ontology=new Owl_Lexical();\n\towl_ontology.owlOntology();\n\t//Saving the description of the ontology in a file\n\tBufferedWriter writer_des=new BufferedWriter(new FileWriter(\"ontology_description\"));\n\twriter_des.write(s1_des);\n\twriter_des.close();\n\t//Saving the competency questions of the ontology in a file\n\tBufferedWriter writer_cq=new BufferedWriter(new FileWriter(\"ontology_cq\"));\n\twriter_cq.write(s2_cq);\n\twriter_cq.close();\n\t//Stop words from competency questions are removed\n\tStopWords_CqOntology stop_cq=new StopWords_CqOntology();\n\tstop_cq.stopWordsCQOntology();\n\t//Stop Words from the description are removed\n\tStopWords_Ontology stop_des=new StopWords_Ontology();\n\tstop_des.stopWordsDesOntology();\t\n\t\n/*--------------------------------EXECUTION PART------------------------------------------------\n <-------------------------------STRUCTURAL ANALYSIS---------------------------------------------->\t\n Properties obtained from the OWL file are analysed. Doc2Vec is used and cosine similarity \n gives the numeric score of the ontology against each ODP.The below functions call the respective\n class that holds the code for each Structural Property that we have taken under consideration \n for the analysis. */\n\t// 1. CHAIN OF PROPERTY\n\tParagraphVectorsChainOfProperty cp=new ParagraphVectorsChainOfProperty();\n\tcp.chainOf();\n\t// 2. DATA DOMAIN Property\n\tParagraphVectorsDataPropertyDomain pd=new ParagraphVectorsDataPropertyDomain();\n\tpd.dataPropertyDomain();\n\t// 3. DATA RANGE PROPERTY\n\tParagraphVectorsDataPropertyRange pr=new ParagraphVectorsDataPropertyRange();\n\tpr.dataPropertyRange();\n\t// 4. DISJOINT CLASSES\n\tParagraphVectorsDisjointClasses dc=new ParagraphVectorsDisjointClasses();\n\tdc.disjointClasses();\n\t// 5. OBJECT DOMAIN PROPERTY\n\tParagraphVectorsObjectDomainProperty od=new ParagraphVectorsObjectDomainProperty();\n\tod.objectDomainProperty();\n\t// 6. OBJECT RANGE PROPERTY\n\tParagraphVectorsObjectPropertyRange op=new ParagraphVectorsObjectPropertyRange();\n\top.objectRangeProperty();\n\t// 7. SUB-CLASS PROPERTY\n\tParagraphVectorsSubClassProperty sc=new ParagraphVectorsSubClassProperty();\n\tsc.subClassProperty();\n\t// 8. SUB-DATA PROPERTY\n\tParagraphVectorsSubDataProperty sd=new ParagraphVectorsSubDataProperty();\n\tsd.subDataProperty();\n\t// 9. SUB-OBJECT PROPERTY\n\tParagraphVectorsSubObjectProperty so=new ParagraphVectorsSubObjectProperty();\n\tso.subObjectProperty();\n\t\n/*<-----------------------------------BEHAVIOURAL ANALYSIS-------------------------------------------->\n The Competency Question of the ontology are saved and mappped with the competency questions \n of the ODPs in the list. The ODPs obtained manchester site do not have competency questions, but \n the rest all ontologies have.So, approximately 15 among the 73 ODPs present are without CQs\t\n\t*/\n\tParagraphVectors_CQ cq=new ParagraphVectors_CQ();\n\tcq.cqMapping();\n/*<------------------------------------LEXICAL ANALYSIS------------------------------------------------>\n Lexical Analysis involves the analysis by use of the description and by the names of classes\n properties present in the OWL file. The description along with the description(classes and properties) \n of the OWL file of the ontology are compared against the ODPs. All the ODPs present have description\n *along with the classes and properties.\n */\n // 1. DESCRIPTION\n\tParagraphVectorsTextExample te=new ParagraphVectorsTextExample();\n\tte.description();\n\t// 2. SIGNATURE\n\tParagraphVectors_Signature vs=new ParagraphVectors_Signature();\n\tvs.signature();\n/*<--------------------------------------INTEGRATION OF SCORES----------------------------------------->\n * After obtaning the numeric values of lexical, structural and behavioural parts, the cosine \n * similarity scores are combined together of the ontology and the ODPs and placed in a single\n * file.\n */\n\tIntegration_Of_Scores os=new Integration_Of_Scores();\n\tos.integratingScores();\n/*<----------------------------------------NORMALISING SCORES------------------------------------------->\n * After all the scores of an ODP (against the given ontology) are added up, the scores are normalised\n * so that these range between 0 to 1 and we can set a particular threshold for the ODP recommendations\n */\n\tNormalising_Scores ns=new Normalising_Scores();\n\tns.normalisingScores();\n/*<------------------------------------------ODP RECOMMENDER-------------------------------------------->\n * \tAfter we have normalised the scores against the ODPs, we run the this java program from where the\n * recommendations can be suggested. \n */\n ODPRecommender reco=new ODPRecommender();\n reco.odpRecommender();\n\t\n}",
"public FrequencyAnalysis()\n {\n }",
"public Model(){\r\n try{\r\n File file = new File(\"./config.ini\");\r\n boolean firstRun = file.createNewFile();\r\n\r\n //If this is the first run for the application\r\n if (firstRun){\r\n //Ask user the amount of hours he wants to work per day\r\n dailyWorkload = Integer.parseInt(JOptionPane.showInputDialog(\"Enter number of hours you want to work per day\"));\r\n numDayWorkWeek = Integer.parseInt(JOptionPane.showInputDialog(\"Enter number of days you want to work per week\"));\r\n\r\n //Allocate memory for data structures\r\n unfinished = new TreeSet<>();\r\n finished = new ArrayList<>();\r\n activities = new ArrayList<>();\r\n\r\n FileWriter fw = new FileWriter(file);\r\n PrintWriter pw = new PrintWriter(fw);\r\n\r\n pw.println(dailyWorkload);\r\n pw.println(numDayWorkWeek);\r\n pw.close();\r\n fw.close();\r\n\r\n weeklySchedule = new ArrayList<>(numDayWorkWeek);\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.add(new TreeSet<Task>());\r\n }\r\n //Else if this is not the first run of the application\r\n else{\r\n FileReader fr = new FileReader(file);\r\n BufferedReader br = new BufferedReader(fr);\r\n dailyWorkload = Integer.parseInt(br.readLine());\r\n numDayWorkWeek = Integer.parseInt(br.readLine());\r\n br.close();\r\n fr.close();\r\n\r\n weeklySchedule = new ArrayList<>(numDayWorkWeek);\r\n for (int i = 0; i < numDayWorkWeek; i++)\r\n weeklySchedule.add(new TreeSet<Task>());\r\n loadFromDatabase();\r\n }\r\n\r\n }\r\n catch (Exception e){\r\n System.out.println(\"Stress is constructor: \" + e.getMessage());\r\n }\r\n }",
"protected FitnessAssignmentProcess() {\r\n super();\r\n }",
"public LogAnalyzer()\n { \n // Create the array object to hold the hourly\n // access counts.\n hourCounts = new int[24];\n // Create the reader to obtain the data.\n reader = new LogfileReader();\n }",
"public void initLadiesDay() {\n\t // your code here\n\t\t\n\t\tFileReader classesReader = null;\n\t\ttry\t{\n\t\t\ttry {\n\t\t\tclassesReader = new FileReader(classesInFile);\n\t\t\tScanner classesScanner = new Scanner(classesReader);\n\t\t\tfitnessProg = new FitnessProgram();\n\t\t\t\n\t\t\twhile (classesScanner.hasNextLine() ) {\n\t\t\t\tString classLine = classesScanner.nextLine();\n\t\t\t\tfc = new FitnessClass(classLine);\n\t\t\t\tfitnessProg.addFitnessClass(fc);\n\t\t\t}\n\t\t\t\n\t\t\tupdateDisplay(fitnessProg);\n\t\t\t\n\t\t\t}\n\t\t\tfinally {\n\n\t\t\t\tif (classesReader != null) {\n\t\t\t\t\tclassesReader.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tcatch (IOException ioe) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"File not found\",\n\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\n\t\t\t}\n\t\t\tcatch (InputMismatchException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid file content\",\n\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\t\n\t}",
"public C2BoogieRegressionTestSuite() {\r\n\t\tsuper();\r\n\t\tmTimeout = DEFAULT_TIMEOUT_MILLIS;\r\n\t\tmRootFolder = ROOT_FOLDER;\r\n\t\tmFiletypesToConsider = new String[] { \".c\" };\r\n\t}",
"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 }",
"public Training() {\n }",
"@Test\n public void testConstruction() {\n VecFile = new assignmentPackage.VecFile.VecFile(testFile, colour, fill);\n }",
"public Statistics() {}",
"private FileLoader(){\n rows =new Vector<String>();\n //tsptwinstance= new TSPTWinstance();\n }",
"@Override\n public void init() throws Exception {\n try {\n Parameters params = getParameters();\n String filename = params.getRaw().get(0);\n this.model = new LasersModel(filename);\n this.msg=new Label(filename+\" loaded\");\n this.safeFile=filename;\n } catch (FileNotFoundException fnfe) {\n System.out.println(fnfe.getMessage());\n System.exit(-1);\n }\n this.model.addObserver(this);\n }",
"protected TestBench() {}",
"public void trainData() throws IOException {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttestingFold = i;\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Training Tree-Augmented Naive Bayes for writing Fold\");\n\t\t\t}\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Calculating Class Priors across Data set.\\n\");\n\t\t\t}\n\t\t\tbuildPriors();\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Priors built.\\n Discretizing data into Naive Bin Estimator...\\n\" +\n\t\t\t\t\t\t\"Generating Completed Graph...\\nWeighting Edges...\\n\");\n\t\t\t}\n\t\t\tdiscretizeData();\n\t\t\ttest();\n\t\t}\n\n\t}",
"public TwoClassConfusionMatrix() {\n\t}",
"constructalgo(ArrayList<String> m,ArrayList<String> w,String mpref[][],String wpref[][]) throws IOException\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tmen = m;\r\n\t\t\t\twomen = w;\r\n\t\t\t\t\r\n\t\t\t\tmenpreflist = mpref;\r\n\t\t\t\t\r\n\t\t\t\twomenpreflist = wpref;\r\n\t\t\t\t\r\n\t\t\t\t// calculate a size of men Array List\r\n\t\t\t\tnumberofmen = men.size();\r\n\t\t\t\t\r\n\t\t\t\t// calculate a size of women Array List\r\n\t\t\t\tnumberofwomen = women.size();\r\n\t\t\t\t\r\n\t\t\t\t// Initially all the men are free so add them into freeman array list\r\n\t\t\t\tfreeman.addAll(men);\r\n\t\t\t\t\r\n\t\t\t//\tSystem.out.println(freeman);\r\n\t\t\t\t\r\n\t\t\t//\tSystem.out.println(\"Inside Constructor\");\r\n\t\t\t\t\r\n\t\t\t\t// Call calculatematches for follow Gale shapley Algorithm\r\n\t\t\t\tcalculatematches();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t}",
"public Statistics() {\n }",
"@Override\n public void initialize() {\n // TODO Auto-generated method stub\n String name = (String)getConfigParameterValue(\"OutputPath\");\n File file = new File(name);\n try {\n bout = new BufferedWriter(new FileWriter(file));\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n throw new UIMARuntimeException(e);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n throw new UIMARuntimeException(e);\n }\n output = new HashSet<String>();\n }",
"public AdvConditionParser()\n{\n //nothing to do\n}",
"public Ylqs() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}",
"public NaiveBayes(String trainset_directory){\r\n\t\t// Build the Naive Classifier\r\n\t\t// Using all the characters in the training data, build a Naive Bayes \r\n\t\t// classifier for the three languages. Implement the classifier using \r\n\t\t// a log-likelihood formulation of Naive Bayes.\r\n\t\t\r\n\t\tFile englishDir = new File(trainset_directory + \"/English\");\r\n\t\tFile japaneseDir = new File(trainset_directory + \"/Japanese\");\r\n\t\tFile spanishDir = new File(trainset_directory + \"/Spanish\");\r\n\r\n\t\t/* COMPUTING PRIOR PROBABILITIES */\r\n\t\t// Count the number of English documents in the training set:\r\n\t\tfloat nEnglish = englishDir.listFiles().length;\r\n\t\t\r\n\t\t// Count the number of Spanish documents in the training set:\r\n\t\tfloat nSpanish = spanishDir.listFiles().length;\r\n\t\t\r\n\t\t// Count the number of Japanese documents in the training set:\r\n\t\tfloat nJapanese = japaneseDir.listFiles().length;\r\n\t\t\r\n\t\t// Compute the total number of training documents:\r\n\t\tfloat nTotal = nEnglish + nSpanish + nJapanese;\r\n\t\t\r\n\t\t// Compute the prior probability for English:\r\n\t\tp_english = nEnglish / nTotal;\r\n\t\t// Compute the prior probability for Spanish:\r\n\t\tp_spanish = nSpanish / nTotal;\r\n\t\t// Compute the prior probability for Japanese:\r\n\t\tp_japanese = nJapanese / nTotal;\r\n\r\n\t\t/* COMPUTING CONDITIONAL LIKELIHOODS */\r\n\t\t// ENGLISH\r\n\t\tfillConditionalProb(englishConditional, englishDir);\r\n\t\t// SPANISH\r\n\t\tfillConditionalProb(spanishConditional, spanishDir);\r\n\t\t// JAPANESE\r\n\t\tfillConditionalProb(japaneseConditional, japaneseDir);\r\n\t\t\r\n\t\t/* FROM PROBABILITIES TO LOG PROBABILITIES */\r\n\t\t// Convert all probabilities to log probabilities to avoid underflow \r\n\t\t// problems. Use the natural logarithm (log(x) in Java). Apply the log \r\n\t\t// function to all probabilities\r\n\t}",
"private void train() throws IOException {\n\t\thamContent = new String();// the content of ham training files\n\t\tspamContent = new String();// the content of spam training files\n\t\tvocabulary = new ArrayList<String>();// all the\n\t\t\t\t\t\t\t\t\t\t\t\t// vocabulary\n\t\t\t\t\t\t\t\t\t\t\t\t// within\n\t\t\t\t\t\t\t\t\t\t\t\t// training\n\t\t\t\t\t\t\t\t\t\t\t\t// files\n\t\thamSenderDomainHash = new HashMap<String, Integer>();\n\t\thamTimeHash = new HashMap<String, Integer>();\n\t\thamReplyHash = new HashMap<String, Integer>();\n\t\thamNonCharNumHash = new HashMap<String, Integer>();\n\t\tspamSenderDomainHash = new HashMap<String, Integer>();\n\t\tspamTimeHash = new HashMap<String, Integer>();\n\t\tspamReplyHash = new HashMap<String, Integer>();\n\t\tspamNonCharNumHash = new HashMap<String, Integer>();\n\n\t\thamWordProb = new HashMap<String, Double>();\n\t\tspamWordProb = new HashMap<String, Double>();\n\t\tclassProb = new HashMap<String, Double>();\n\n\t\tfor (int i = 0; i < 24; i++) {\n\t\t\thamTimeHash.put(String.valueOf(i), 0);\n\t\t\tspamTimeHash.put(String.valueOf(i), 0);\n\t\t}\n\t\tint numSpam = 0, numHam = 0, numFile = 0;// numbers of training files\n\t\tString buff;// file reading tmp buffer\n\n\t\t/* get all the files in the directory */\n\t\tFile directory = new File(inputDirectory);\n\t\tFile[] files = directory.listFiles();\n\n\t\t/*\n\t\t * assign the content of hams and spams while counting the number of\n\t\t * files\n\t\t */\n\t\tfor (File f : files) {\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(spamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(spamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (f.getName().startsWith(\"ham\")) {\n\t\t\t\tString readbufferString = readFile(f, 0);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tspamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 0);\n\t\t\t\t\tspamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (File f : files) {\n\t\t\tnumFile++;\n\t\t\t// System.out.println(f.getName());\n\t\t\tif (f.getName().startsWith(\"spam\")) {\n\t\t\t\tnumSpam++; // add to the number of spams\n\t\t\t\tString readbuffer = readFile(f, 1);\n\t\t\t\tif (!spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum, 1);\n\t\t\t\telse if (spamNonCharNumHash.containsKey(spamNonCharNum))\n\t\t\t\t\tspamNonCharNumHash.put(spamNonCharNum,\n\t\t\t\t\t\t\tspamNonCharNumHash.get(spamNonCharNum) + 1);\n\t\t\t\tif (!spamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain, 1);\n\t\t\t\t\telse if (spamSenderDomainHash.containsKey(spamSenderDomain)\n\t\t\t\t\t\t\t&& !(spamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (spamSenderDomain.length() <= 3))\n\t\t\t\t\t\tspamSenderDomainHash.put(spamSenderDomain,\n\t\t\t\t\t\t\t\tspamSenderDomainHash.get(spamSenderDomain) + 1);\n\t\t\t\t\tif (!spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime, 1);\n\t\t\t\t\telse if (spamTimeHash.containsKey(spamTime))\n\t\t\t\t\t\tspamTimeHash.put(spamTime,\n\t\t\t\t\t\t\t\tspamTimeHash.get(spamTime) + 1);\n\t\t\t\t\tif (!spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply, 1);\n\t\t\t\t\telse if (spamReplyHash.containsKey(spamReply))\n\t\t\t\t\t\tspamReplyHash.put(spamReply,\n\t\t\t\t\t\t\t\tspamReplyHash.get(spamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\tspamContent += readbuffer.toLowerCase();\n\t\t\t\tspamContent = spamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\n\t\t\t} else if (f.getName().startsWith(\"ham\")) { // the same thing for\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ham\n\t\t\t\tnumHam++;\n\t\t\t\tString readbuffer = readFile(f, 0);\n\t\t\t\tif (!hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum, 1);\n\t\t\t\telse if (hamNonCharNumHash.containsKey(hamNonCharNum))\n\t\t\t\t\thamNonCharNumHash.put(hamNonCharNum,\n\t\t\t\t\t\t\thamNonCharNumHash.get(hamNonCharNum) + 1);\n\t\t\t\tif (!hamTime.equals(\"-1\")) {\n\t\t\t\t\tif (!hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain, 1);\n\t\t\t\t\telse if (hamSenderDomainHash.containsKey(hamSenderDomain)\n\t\t\t\t\t\t\t&& !(hamSenderDomain.equals(\"\"))\n\t\t\t\t\t\t\t&& (hamSenderDomain.length() <= 3))\n\t\t\t\t\t\thamSenderDomainHash.put(hamSenderDomain,\n\t\t\t\t\t\t\t\thamSenderDomainHash.get(hamSenderDomain) + 1);\n\n\t\t\t\t\tif (!hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, 1);\n\t\t\t\t\telse if (hamTimeHash.containsKey(hamTime))\n\t\t\t\t\t\thamTimeHash.put(hamTime, hamTimeHash.get(hamTime) + 1);\n\t\t\t\t\tif (!hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply, 1);\n\t\t\t\t\telse if (hamReplyHash.containsKey(hamReply))\n\t\t\t\t\t\thamReplyHash.put(hamReply,\n\t\t\t\t\t\t\t\thamReplyHash.get(hamReply) + 1);\n\n\t\t\t\t}\n\t\t\t\thamContent += readbuffer.toLowerCase();\n\t\t\t\thamContent = hamContent.replaceAll(\"[^a-zA-Z$\\n]+\", \" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"file read complete!!!\");\n\t\t// System.out.println(hamSenderDomainHash);\n\t\t// System.out.println(hamTimeHash);\n\t\t// System.out.println(hamReplyHash);\n\t\t// System.out.println(hamNonCharNumHash);\n\t\t// System.out.println(spamSenderDomainHash);\n\t\t// System.out.println(spamTimeHash);\n\t\t// System.out.println(spamReplyHash);\n\t\t// System.out.println(spamNonCharNumHash);\n\t\t// System.out.println(spamContent);\n\t\t// System.out.println(hamContent);\n\n\t\t/* calculate probabilities */\n\t\tpHam = (double) numHam / (double) numFile;\n\t\tpSpam = (double) numSpam / (double) numFile;\n\t\t// System.out.println(numHam);\n\t\t// System.out.println(numSpam);\n\t\t// System.out.println(numFile);\n\n\t\tclassProb.put(\"hamProb\", pHam);\n\t\tclassProb.put(\"spamProb\", pSpam);\n\n\t\t/* get vocabulary and its length */\n\t\tString[] hamWord = hamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> hamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < hamWord.length; i++) {\n\t\t\tif (hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], hamWordFreq.get(hamWord[i]) + 1);\n\t\t\tif (!hamWordFreq.containsKey(hamWord[i]))\n\t\t\t\thamWordFreq.put(hamWord[i], 1);\n\t\t}\n\t\thamWordCount = hamWord.length;\n\t\tString[] spamWord = spamContent.split(\"\\\\s+\");\n\t\tHashMap<String, Integer> spamWordFreq = new HashMap<String, Integer>();\n\t\tfor (int i = 0; i < spamWord.length; i++) {\n\t\t\tif (spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq\n\t\t\t\t\t\t.put(spamWord[i], spamWordFreq.get(spamWord[i]) + 1);\n\t\t\tif (!spamWordFreq.containsKey(spamWord[i]))\n\t\t\t\tspamWordFreq.put(spamWord[i], 1);\n\t\t}\n\t\tspamWordCount = spamWord.length;\n\t\tSystem.out.println(hamWordFreq.size());\n\t\tSystem.out.println(spamWordFreq.size());\n\t\tSystem.out.println(\"count get!!!\");\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(spamWordCount);\n\t\tfor (int i = 0; i < hamWordCount; i++) {\n\t\t\tif (!vocabulary.contains(hamWord[i]) && !hamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(hamWord[i]);\n\t\t}\n\t\t// System.out.println(hamWordFreq);\n\t\tfor (int i = 0; i < spamWordCount; i++)\n\t\t\tif (!vocabulary.contains(spamWord[i]) && !spamWord[i].equals(\"\"))\n\t\t\t\tvocabulary.add(spamWord[i]);\n\t\tvocabLen = vocabulary.size();\n\t\tSystem.out.println(\"vocab init\");\n\t\t/* remove unnecessary words */\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\tif ((hamwordFreq <= 3) && (spamwordFreq <= 3)) {\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (((double) ((double) hamwordFreq / (double) hamWordCount) >= 0.005)\n\t\t\t\t\t&& ((double) ((double) spamwordFreq / (double) spamWordCount) >= 0.005)) {\n\t\t\t\t// System.out.println(vocabulary.get(i));\n\t\t\t\tvocabulary.remove(i);\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"vocab complete!!!\");\n\t\tSystem.out.println(vocabulary.size());\n\t\tvocabLen = vocabulary.size();\n\t\tfor (int i = 0; i < vocabulary.size(); i++) {\n\t\t\tint hamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\thamwordFreq = hamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\thamwordFreq = 0;\n\t\t\t}\n\t\t\tint spamwordFreq = 0;\n\t\t\ttry {\n\t\t\t\tspamwordFreq = spamWordFreq.get(vocabulary.get(i));\n\t\t\t} catch (Exception e) {\n\t\t\t\tspamwordFreq = 0;\n\t\t\t}\n\t\t\thamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (hamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (hamWordCount + vocabLen)));\n\t\t\tspamWordProb.put(\n\t\t\t\t\tvocabulary.get(i),\n\t\t\t\t\tjava.lang.Math.log((double) (spamwordFreq + 1)\n\t\t\t\t\t\t\t/ (double) (spamWordCount + vocabLen)));\n\t\t\t// System.out.println(i);\n\n\t\t}\n\t\t// System.out.println(hamWordCount);\n\t\t// System.out.println(hamContent);\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(spamWordProb.size());\n\t\t// System.out.println(vocabulary.size());\n\t\t//\n\t\t// System.out.println(hamWordProb.size());\n\t\t// System.out.println(vocabulary);\n\t\t// System.out.println(vocabLen);\n\t\tSystem.out.println(\"word prob complete!!!\");\n\t}",
"public WorkDataFile()\n\t{\n\t\tsuper();\n\t}",
"public Sample()\n {\n inputs = new ArrayList<>();\n outputs = new ArrayList<>();\n numberOfInputs = 0;\n numberOfOutputs = 0;\n comment = \"\";\n }",
"public static void init() {\n\t\tList<Object> objects = FileManager.readObjectFromFile(\"student.dat\");\n\t\tfor (Object o : objects)\n\t\t\tStudentList.add((Student) o);\n\t}",
"private void init(Simulation simulation) {\n // create RDF model\n model = ModelFactory.createDefaultModel();\n provOutputFileURI = simulation.getProvLocation()\n .resolve(simulation.getName() + \".ttl\").toString();\n // set prefixes for...\n // RDF syntax\n model.setNsPrefix(\"rdf\", ProvOntology.getRDFNameSpaceURI());\n // RDF schema\n model.setNsPrefix(\"rdfs\", ProvOntology.getRDFSNameSpaceURI());\n // w3 Prov Ontology\n model.setNsPrefix(\"prov\", ProvOntology.getPROVNameSpaceURI());\n // XML schema\n model.setNsPrefix(\"xsd\", ProvOntology.getXSDNameSpaceURI());\n localNameSpaceURI = getLocalNameSpaceURI();\n // Graphitti Prov\n model.setNsPrefix(LOCAL_NS_PREFIX, localNameSpaceURI);\n }",
"private void initialize() {\n this.docTypeList = new ArrayList<>();\n this.problemTypeList = new ArrayList<>();\n\n // The add() function should be called in the order specified since together\n // they form a mapping mechanism,\n // for example 'ENCAPSULATED' before 'POSTSCRIPT' and 'RICH' before 'TEXT'.\n\n this.docTypeList.add(\"ENCAPSULATED\");\n this.problemTypeList.add(ProblemType.NON_ENCAPSULATED_POSTSCRIPT_FILE);\n\n this.docTypeList.add(\"EXCEL\");\n this.problemTypeList.add(ProblemType.NON_MSEXCEL_FILE);\n\n this.docTypeList.add(\"GIF\");\n this.problemTypeList.add(ProblemType.NON_GIF_FILE);\n\n this.docTypeList.add(\"HTML\");\n this.problemTypeList.add(ProblemType.NON_HTML_FILE);\n\n this.docTypeList.add(\"LATEX\");\n this.problemTypeList.add(ProblemType.NON_LATEX_FILE);\n\n this.docTypeList.add(\"MPEG\");\n this.problemTypeList.add(ProblemType.NON_MP4_FILE);\n\n this.docTypeList.add(\"POSTSCRIPT\");\n this.problemTypeList.add(ProblemType.NON_POSTSCRIPT_FILE);\n\n this.docTypeList.add(\"TIFF\");\n this.problemTypeList.add(ProblemType.NON_TIFF_FILE);\n\n this.docTypeList.add(\"WORD\");\n this.problemTypeList.add(ProblemType.NON_MSWORD_FILE);\n\n this.classInitialized = true;\n\n LOG.debug(\"initialize:this.docTypeList.size {}\", this.docTypeList.size());\n LOG.debug(\"initialize:this.problemTypeList.size {}\", this.problemTypeList.size());\n }",
"public StStatutesub() {\n }",
"public SimulationConfig() {\r\n\t}",
"public Evaluator(RANKER_TYPE rType, METRIC trainMetric, int trainK, METRIC testMetric, int testK) {\n/* 612 */ this.type = rType;\n/* 613 */ this.trainScorer = this.mFact.createScorer(trainMetric, trainK);\n/* 614 */ this.testScorer = this.mFact.createScorer(testMetric, testK);\n/* 615 */ if (qrelFile.compareTo(\"\") != 0) {\n/* */ \n/* 617 */ this.trainScorer.loadExternalRelevanceJudgment(qrelFile);\n/* 618 */ this.testScorer.loadExternalRelevanceJudgment(qrelFile);\n/* */ } \n/* */ }",
"public Naive() {\n\n }",
"public Simulation() {\n\t\tstation = new Station();\n\t\ttaxis = new Taxi[NR_OF_TAXIS];\n\t\tfor (int i = 0; i < NR_OF_TAXIS; i++) {\n\t\t\ttaxis[i] = i < NR_OF_SMALL_TAXIS ? new Taxi(i + 1, CAPACITY_SMALL, TIME_SMALL, station)\n\t\t\t\t\t: new Taxi(i + 1, CAPACITY_LARGE, TIME_LARGE, station);\n\t\t}\n\t\ttrain = new Train(station);\n\t}",
"public simulation() {\n\n }",
"private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}",
"@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }",
"public AdvancedCFG(String constructor){\n super(constructor);\n }"
] | [
"0.6045545",
"0.58968276",
"0.5890767",
"0.5866457",
"0.5851411",
"0.5838114",
"0.5822892",
"0.58097327",
"0.58082056",
"0.5776386",
"0.5772393",
"0.57478976",
"0.5746296",
"0.57377017",
"0.5716189",
"0.571207",
"0.57088846",
"0.5689491",
"0.5670311",
"0.5665523",
"0.56603724",
"0.5655777",
"0.5652656",
"0.564002",
"0.5635254",
"0.5617355",
"0.56144696",
"0.5609346",
"0.560885",
"0.55998284",
"0.5599814",
"0.5595434",
"0.5583163",
"0.55742",
"0.55704826",
"0.55655986",
"0.5564246",
"0.5540404",
"0.5538639",
"0.55381346",
"0.5538039",
"0.5531762",
"0.55259734",
"0.5524508",
"0.5514446",
"0.5510464",
"0.5510326",
"0.5510301",
"0.5499092",
"0.54949045",
"0.54904276",
"0.5482154",
"0.54751223",
"0.547504",
"0.54722583",
"0.54686725",
"0.54644454",
"0.54607505",
"0.5456678",
"0.54528534",
"0.5444647",
"0.5430427",
"0.54300445",
"0.5427257",
"0.54264855",
"0.5425047",
"0.5418492",
"0.5418177",
"0.5416138",
"0.5414003",
"0.54136205",
"0.54093564",
"0.540531",
"0.54052377",
"0.54050124",
"0.5404613",
"0.54031754",
"0.5402819",
"0.54023284",
"0.54021984",
"0.5400255",
"0.53946054",
"0.5392971",
"0.5392897",
"0.53828526",
"0.53813636",
"0.53794444",
"0.537896",
"0.53746194",
"0.53698856",
"0.536943",
"0.5367136",
"0.53606933",
"0.53510445",
"0.53504854",
"0.5339861",
"0.53392416",
"0.53372717",
"0.5336409",
"0.5323326"
] | 0.596008 | 1 |
Similar to Weka, this function outputs the results for each category and each event. | public void wekaCalculate()
{
for (int categoryStep = 0; categoryStep < 6; categoryStep++)
{
String trainString = "Train";
String testString = "Test";
String categoryString;
String resultString = "Results";
String textString;
String eventString;
switch (categoryStep)
{
case 0: categoryString = "Cont.arff"; break;
case 1: categoryString = "Dona.arff"; break;
case 2: categoryString = "Offi.arff"; break;
case 3: categoryString = "Advi.arff"; break;
case 4: categoryString = "Mult.arff"; break;
default: categoryString = "Good.arff";
}
switch (categoryStep)
{
case 0: textString = "Cont.txt"; break;
case 1: textString = "Dona.txt"; break;
case 2: textString = "Offi.txt"; break;
case 3: textString = "Advi.txt"; break;
case 4: textString = "Mult.txt"; break;
default: textString = "Good.txt";
}
for (int eventStep = 0; eventStep < 15; eventStep++)
{
String trainingData;
String testData;
String resultText;
switch (eventStep)
{
case 0: eventString = "2011Joplin"; break;
case 1: eventString = "2012Guatemala"; break;
case 2: eventString = "2012Italy"; break;
case 3: eventString = "2012Philipinne"; break;
case 4: eventString = "2013Alberta"; break;
case 5: eventString = "2013Australia"; break;
case 6: eventString = "2013Boston"; break;
case 7: eventString = "2013Manila"; break;
case 8: eventString = "2013Queens"; break;
case 9: eventString = "2013Yolanda"; break;
case 10: eventString = "2014Chile"; break;
case 11: eventString = "2014Hagupit"; break;
case 12: eventString = "2015Nepal"; break;
case 13: eventString = "2015Paris"; break;
default: eventString = "2018Florida";
}
trainingData = eventString;
trainingData += trainString;
trainingData += categoryString;
testData = eventString;
testData += testString;
testData += categoryString;
resultText = eventString;
resultText += resultString;
resultText += textString;
try {
ConverterUtils.DataSource loader1 = new ConverterUtils.DataSource(trainingData);
ConverterUtils.DataSource loader2 = new ConverterUtils.DataSource(testData);
BufferedWriter bw = new BufferedWriter(new FileWriter(resultText));
Instances trainData = loader1.getDataSet();
trainData.setClassIndex(trainData.numAttributes() - 1);
Instances testingData = loader2.getDataSet();
testingData.setClassIndex(testingData.numAttributes() - 1);
Classifier cls1 = new NaiveBayes();
cls1.buildClassifier(trainData);
Evaluation eval1 = new Evaluation(trainData);
eval1.evaluateModel(cls1, testingData);
bw.write("=== Summary of Naive Bayes ===");
bw.write(eval1.toSummaryString());
bw.write(eval1.toClassDetailsString());
bw.write(eval1.toMatrixString());
bw.write("\n");
this.evalNaiveBayesList.add(eval1);
Classifier cls2 = new SMO();
cls2.buildClassifier(trainData);
Evaluation eval2 = new Evaluation(trainData);
eval2.evaluateModel(cls2, testingData);
bw.write("=== Summary of SMO ===");
bw.write(eval2.toSummaryString());
bw.write(eval2.toClassDetailsString());
bw.write(eval2.toMatrixString());
this.evalSMOList.add(eval2);
bw.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printDecisionPointEvents() throws Exception\r\n\t{\r\n\t\tOWLClass firstSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE = this.getOWLClass(EFBO_V_URI, \"System-1_Event\");\r\n\t\t\r\n\t\tOWLClass secondSystemDPE = this.getOWLClass(EFBO_FRC_URI, \"DecisionPointEvent\");\r\n\t\tOWLClass nextOfDPE2 = this.getOWLClass(EFBO_V_URI, \"System-2_Event\");\r\n\t\t\r\n\t\tOWLObjectProperty hasNextEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasNextEvent\");\r\n\t\tOWLObjectProperty hasPrevEvent = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"hasPreviousEvent\");\r\n\t\tOWLObjectProperty isAltEventOf = efboStatusReportManager.getOWLObjectProperty(EFBO_CORE_URI, \"isAlternateEventOf\");\r\n\t\t\r\n\t\tSet<OWLNamedIndividual> inds = efboStatusReportManager.getOWLNamedIndividuals(firstSystemDPE);\r\n\t\t\r\n\t\tString dpeName = \"\";\r\n\t\tfor (OWLNamedIndividual i: inds)\r\n\t\t{\r\n\t\t\tdpeName += efboStatusReportManager.getLabel(i) + \"; \"; \r\n\t\t}\r\n\t\t\r\n\t\tString g = \"@startuml\";\r\n\t g += \"\\ntitle\\n\" + efboStatusReportManager.getLabel(firstSystemDPE)\r\n + \"\\n\" + dpeName\r\n + \"\\nend title\\n\";\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-1_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += getRelatedGraph(\"DecisionPointEvent\", \"System-2_Event\", \"hasNextEvent\", \"hasPreviousEvent\", \"isAlternateEventOf\");\r\n\t\tg += \"\\n@enduml\";\r\n\t\tSystem.out.println(g);\r\n\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(firstSystemDPE, hasNextEvent, nextOfDPE);\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"\\nDecesion Point Events\");\r\n\t\tthis.printEntityBySystem(secondSystemDPE, hasNextEvent, nextOfDPE2);\r\n\t\t\r\n\t}",
"public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));\n\t\t\tAggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));\n\t\t\tAggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));\n\t\t\tAggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));\n\t\t\tAggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));\n\t\t\tAggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));\n\t\t\tAggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));\n\t\t\tAggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));\n\t\t\tAggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));\n\t\t\tAggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));\n\t\t\t\n\n\t\t\tfor (int i = 1; i < 15; i++)\n\t\t\t{\n\t\t\t\taggContNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggContSMO.aggregate(this.evalSMOList.get(i));\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 16; i < 30; i++)\n\t\t\t{\n\t\t\t\taggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggDonaSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 31; i < 45; i++)\n\t\t\t{\n\t\t\t\taggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggOffiSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 46; i < 60; i++)\n\t\t\t{\n\t\t\t\taggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggAdviSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 61; i < 75; i++)\n\t\t\t{\n\t\t\t\taggMultNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggMultSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 76; i < 90; i++)\n\t\t\t{\n\t\t\t\taggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggGoodSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int a = 0; a < 6; a++)\n\t\t\t{\n\t\t\t\tString aggregateText;\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0: aggregateText = \"ContinuingNewsAggregateResults.txt\"; break;\n\t\t\t\tcase 1: aggregateText = \"DonationsAggregateResults.txt\"; break;\n\t\t\t\tcase 2: aggregateText = \"OfficialAggregateResults.txt\"; break;\n\t\t\t\tcase 3: aggregateText = \"AdviceAggregateResults.txt\"; break;\n\t\t\t\tcase 4: aggregateText = \"MultimediaAggregateResults.txt\"; break;\n\t\t\t\tcase 5: aggregateText = \"GoodsAggregateResults.txt\"; break;\n\t\t\t\tdefault: aggregateText = \"CompleteAggregateResults.txt\";\n\t\t\t\t}\n\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));\n\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContNaive.toSummaryString());\n\t\t\t\tbw.write(aggContNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggContNaive.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaNaive.toSummaryString());\n\t\t\t\tbw.write(aggDonaNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaNaive.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiNaive.toSummaryString());\n\t\t\t\tbw.write(aggOffiNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiNaive.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviNaive.toSummaryString());\n\t\t\t\tbw.write(aggAdviNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviNaive.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultNaive.toSummaryString());\n\t\t\t\tbw.write(aggMultNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggMultNaive.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodNaive.toSummaryString());\n\t\t\t\tbw.write(aggGoodNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodNaive.toMatrixString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContSMO.toSummaryString());\n\t\t\t\tbw.write(aggContSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggContSMO.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaSMO.toSummaryString());\n\t\t\t\tbw.write(aggDonaSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaSMO.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiSMO.toSummaryString());\n\t\t\t\tbw.write(aggOffiSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiSMO.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviSMO.toSummaryString());\n\t\t\t\tbw.write(aggAdviSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviSMO.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultSMO.toSummaryString());\n\t\t\t\tbw.write(aggMultSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggMultSMO.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodSMO.toSummaryString());\n\t\t\t\tbw.write(aggGoodSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodSMO.toMatrixString()); \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.close();\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void explain(Map<String, Double>[] result)\n {\n int i = 0;\n for (Map<String, Double> topicMap : result)\n {\n System.out.printf(\"topic %d :\\n\", i++);\n explain(topicMap);\n System.out.println();\n }\n }",
"@Override\n public void show(ResultComponent results) throws TrecEvalOOException {\n System.out.println(\"************************************************\");\n System.out.println(\"*************** Topic \" + topicId + \" output ****************\");\n System.out.println(\"************************************************\");\n\n if (results.getType() == ResultComponent.Type.GENERAL) {\n\n for (ResultComponent runResult : results.getResults()) {\n\n List<Result> resultList = runResult.getResultsByIdTopic(topicId);\n\n System.out.println(\"\\nResults for run: \" + runResult.getRunName());\n if (resultList.isEmpty()) {\n System.out.println(\"No results for topic \" + topicId);\n }\n\n for (Result result : resultList) {\n System.out.print(result.toString());\n }\n }\n }\n }",
"static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}",
"public CategoricalResults(){\n\n }",
"public void displayResults() {\n\t\tcreateCluster();\n\t\tassignClusterID();\n\t\tSystem.out.println(iterations);\n\t\tWriter writer;\n\t\ttry {\n\t\t\twriter = new FileWriter(\"/Users/saikalyan/Documents/ClusterResult_kmeans.txt\");\n\t\t\tfor (int key : labelsMap.keySet()) {\n\t\t\t\tclusterResultsList.add(clusterIdMap.get(labelsMap.get(key)));\n\t\t\t\twriter.write(String.valueOf(clusterIdMap.get(labelsMap.get(key))));\n\t\t\t\twriter.write(\"\\r\\n\");\n\t\t\t\tSystem.out.println(key + \" : \" + clusterIdMap.get(labelsMap.get(key)));\n\t\t\t}\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tExternalValidator extValidation = new ExternalValidator(count, groundTruthList, clusterResultsList);\n\n\t\tfloat res = extValidation.getCoefficient();\n\t\tSystem.out.println(\"Rand Index------------\" + res);\n\n\t\tfloat jaccard = extValidation.getJaccardCoeff();\n\t\tSystem.out.println(\"Jaccard co-efficient------------\" + jaccard);\n\n\t}",
"private static void writeResults() {\n\t\t//Sort hashMap before sending to file\n\t\tTreeSet<Word> mySet = new TreeSet<>(hm.values());\n\n\t\t//Create result.txt file and write treeMap out to it\n\t\tWriter writer = null;\n\t\ttry {\n\t\t\t//System.out.println(\"Here\");\n\t\t\twriter = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(\"output\\\\results.txt\")));\n\t\t\tfor (Word word : mySet) {\n\t\t\t\twriter.write(word.getValue() + \"\\t\" + word.getCount() + \"\\n\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\twriter.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public Map<Integer, Boolean> testCategorization(String topic, String[] features) {\n\n\t\tint n = trainingSet.size(); // Count docs.\n\n\t\t// Count docs in class.\n\t\tint nc = 0;\n\t\tfor (Integer id : trainingSet) {\n\t\t\tboolean inClass = this.getDocument(id).getTopics().contains(topic);\n\t\t\tif (inClass)\n\t\t\t\tnc++;\n\t\t}\n\n\t\tdouble prior_c = nc / (double) n;\n\t\tdouble prior_cbar = (n - nc) / (double) n;\n\n\t\tMap<String, Double> condProb_c = new HashMap<String, Double>();\n\t\tMap<String, Double> condProb_cbar = new HashMap<String, Double>();\n\n\t\t// Count docs in class containing term.\n\t\tfor (String term : features) {\n\t\t\tSet<Integer> postings = terms.get(term).getPostings().keySet();\n\t\t\tint nct_c = 0, nct_cbar = 0;\n\t\t\tfor (Integer id : trainingSet) {\n\t\t\t\tboolean inClass = this.getDocument(id).getTopics().contains(topic);\n\t\t\t\tif (postings.contains(id)) { // document contains the term\n\t\t\t\t\tif (inClass)\n\t\t\t\t\t\tnct_c++;\n\t\t\t\t\telse\n\t\t\t\t\t\tnct_cbar++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// And calculate conditional probabilities.\n\t\t\tcondProb_c.put(term, (nct_c + 1) / (double) (nc + 2));\n\t\t\tcondProb_cbar.put(term, (nct_cbar + 1) / (double) ((n - nc) + 2));\n\t\t}\n\n\t\t// ---APPLY BERNOULLI----\n\n\t\tMap<Integer, Boolean> marked = new HashMap<Integer, Boolean>();\n\t\tfor (Integer id : testSet) {\n\t\t\tdouble score_c = Math.log(prior_c);\n\t\t\tdouble score_cbar = Math.log(prior_cbar);\n\t\t\tfor (String term : features) {\n\t\t\t\tSet<Integer> postings = terms.get(term).getPostings().keySet();\n\t\t\t\tif (postings.contains(id)) {\n\t\t\t\t\tscore_c += Math.log(condProb_c.get(term));\n\t\t\t\t\tscore_cbar += Math.log(condProb_cbar.get(term));\n\t\t\t\t} else {\n\t\t\t\t\tscore_c += Math.log(1 - condProb_c.get(term));\n\t\t\t\t\tscore_cbar += Math.log(1 - condProb_cbar.get(term));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (score_c > score_cbar)\n\t\t\t\tmarked.put(id, true);\n\t\t\telse\n\t\t\t\tmarked.put(id, false);\n\t\t}\n\t\treturn marked;\n\t}",
"public XYMultipleSeriesDataset getDataset() {\n\t\tEnvironmentTrackerOpenHelper openhelper = new EnvironmentTrackerOpenHelper(ResultsContent.context);\n\t\tSQLiteDatabase database = openhelper.getReadableDatabase();\n\t\tString[] columns = new String[2];\n\t\tcolumns[0] = \"MOOD\";\n\t\tcolumns[1] = \"HUE_CATEGORY\";\n\t\tCursor results = database.query(true, \"Observation\", columns, null, null, null, null, null, null);\n\t\t\n\t\t// Make sure the cursor is at the start.\n\t\tresults.moveToFirst();\n\t\t\n\t\tint[] meanMoodCategoryHue = new int[4];\n\t\tint[] nrMoodCategoryHue = new int[4];\n\t\t\n\t\t// Overloop de verschillende observaties.\n\t\twhile (!results.isAfterLast()) {\n\t\t\tint mood = results.getInt(0);\n\t\t\tint hue = results.getInt(1);\n\t\t\t\n\t\t\t// Tel de mood erbij en verhoog het aantal met 1 in de juiste categorie.\n\t\t\tmeanMoodCategoryHue[hue-1] = meanMoodCategoryHue[hue-1] + mood;\n\t\t\tnrMoodCategoryHue[hue-1]++;\n\t\t\tresults.moveToNext();\n\t\t}\n\t\t\n\t\t// Bereken voor elke hue categorie de gemiddelde mood.\n\t\tfor (int i=1;i<=4;i++) {\n\t\t\tif (nrMoodCategoryHue[i-1] == 0) {\n\t\t\t\tmeanMoodCategoryHue[i-1] = 0;\n\t\t\t} else {\n\t\t\t\tmeanMoodCategoryHue[i-1] = meanMoodCategoryHue[i-1]/nrMoodCategoryHue[i-1];\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Plaats de gegevens samen in een dataset voor de grafiek.\n\t\tXYMultipleSeriesDataset myData = new XYMultipleSeriesDataset();\n\t XYSeries dataSeries = new XYSeries(\"data\");\n\t dataSeries.add(1,meanMoodCategoryHue[0]);\n\t dataSeries.add(2,meanMoodCategoryHue[1]);\n\t dataSeries.add(3,meanMoodCategoryHue[2]);\n\t dataSeries.add(4,meanMoodCategoryHue[3]);\n\t myData.addSeries(dataSeries);\n\t return myData;\n\t}",
"protected void write_results(String output) {\r\n\t\t// File OutputFile = new File(output_train_name.substring(1,\r\n\t\t// output_train_name.length()-1));\r\n\t\ttry {\r\n\t\t\tFileWriter file_write = new FileWriter(output);\r\n\r\n\t\t\tfile_write.write(IS.getHeader());\r\n\r\n\t\t\t// now, print the normalized data\r\n\t\t\tfile_write.write(\"@data\\n\");\r\n\t\t\tfor (int i = 0; i < ndatos; i++) {\r\n\t\t\t\tif (!filtered[i]) {\r\n\t\t\t\t\tfile_write.write(X[i][0]);\r\n\t\t\t\t\tfor (int j = 1; j < nvariables; j++) {\r\n\t\t\t\t\t\tfile_write.write(\",\" + X[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfile_write.write(\"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfile_write.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(\"IO exception = \" + e);\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}",
"private void outputResults()\n{\n try {\n PrintWriter pw = new PrintWriter(new FileWriter(output_file));\n pw.println(total_documents);\n for (Map.Entry<String,Integer> ent : document_counts.entrySet()) {\n String wd = ent.getKey();\n int ct = ent.getValue();\n pw.println(ct + \" \" + wd);\n }\n pw.println(START_KGRAMS);\n pw.println(total_kdocuments);\n for (Map.Entry<String,Integer> ent : kgram_counts.entrySet()) {\n String wd = ent.getKey();\n int ct = ent.getValue();\n pw.println(ct + \" \" + wd);\n } \n pw.close();\n }\n catch (IOException e) {\n IvyLog.logE(\"SWIFT\",\"Problem generating output\",e);\n }\n}",
"public void classify() throws IOException\n {\n TrainingParameters tp = new TrainingParameters();\n tp.put(TrainingParameters.ITERATIONS_PARAM, 100);\n tp.put(TrainingParameters.CUTOFF_PARAM, 0);\n\n DoccatFactory doccatFactory = new DoccatFactory();\n DoccatModel model = DocumentCategorizerME.train(\"en\", new IntentsObjectStream(), tp, doccatFactory);\n\n DocumentCategorizerME categorizerME = new DocumentCategorizerME(model);\n\n try (Scanner scanner = new Scanner(System.in))\n {\n while (true)\n {\n String input = scanner.nextLine();\n if (input.equals(\"exit\"))\n {\n break;\n }\n\n double[] classDistribution = categorizerME.categorize(new String[]{input});\n String predictedCategory =\n Arrays.stream(classDistribution).filter(cd -> cd > 0.5D).count() > 0? categorizerME.getBestCategory(classDistribution): \"I don't understand\";\n System.out.println(String.format(\"Model prediction for '%s' is: '%s'\", input, predictedCategory));\n }\n }\n }",
"public int trainEvents (File inputDir) {\n\t\t\n\n\t\tSystem.out.println(\"MobSens started event training. This may take some time... Go, grab some coffee!\");\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\tEventLabel[] labels = {\n\t\t\t\tDodgeLabel.DODGE,\n\t\t\t\tDodgeLabel.NODODGE,\n\t\t\t\tBrakeLabel.BRAKE,\n\t\t\t\tBrakeLabel.NOBRAKE,\n\t\t\t\tKerbstoneLabel.KERBSTONE,\n\t\t\t\tKerbstoneLabel.NOKERBSTONE\n\t\t\t\t};\n\t\t\n\t\tEventRawDataParser etdp = new EventRawDataParser(inputDir, labels);\n\t\t\n\t\tHashMap<SensorRecord, EventLabel> data = etdp.parse();\n\t\t\n\t\tHashMap<SensorRecord, DodgeLabel> dodgeData = new HashMap<SensorRecord, DodgeLabel>();\n\t\tHashMap<SensorRecord, BrakeLabel> brakeData = new HashMap<SensorRecord, BrakeLabel>();\n\t\tHashMap<SensorRecord, KerbstoneLabel> kerbstoneData = new HashMap<SensorRecord, KerbstoneLabel>();\n\t\t\n\t\t\n\t\tfor (SensorRecord sr : data.keySet()) {\n\t\t\t\n\t\t\tEventLabel label = data.get(sr);\n\t\t\t\n\t\t\tif (label.getClass().equals(DodgeLabel.class)) {\n\t\t\t\t\n\t\t\t\tdodgeData.put(sr, (DodgeLabel) label);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (label.getClass().equals(BrakeLabel.class)) {\n\t\t\t\t\n\t\t\t\tbrakeData.put(sr, (BrakeLabel) label);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (label.getClass().equals(KerbstoneLabel.class)) {\n\t\t\t\t\n\t\t\t\tkerbstoneData.put(sr, (KerbstoneLabel) label);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\n\t\ttry {\n\n\t\t\t(new BrakeTrainer(this.brakeModelFile)).train(brakeData);\n\t\t\t(new DodgeTrainer(this.dodgeModelFile)).train(dodgeData);\n\t\t\t(new KerbstoneTrainer(this.kerbstoneModelFile)).train(kerbstoneData);\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Finished Training. Ready to Rumble!\");\n\t\t\t\n\t\t\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Something went horribly wrong!\");\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\treturn -1;\n\t\t\n\t\t}\n\t\t\n\t\treturn 0;\n\t\t\n\t}",
"public void process(String query, Country country, Category category) {\n\t\tSystem.out.println(\"Start process\");\n\n\t\t//TODO implement Error handling\n\t\t//TODO load the news based on the parameters\n\t\tNewsApi newsApi = null;\n\t\ttry {\n\t\t\tnewsApi = new NewsApiBuilder()\n\t\t\t\t\t.setApiKey(APIKEY)\n\t\t\t\t\t.setQ(query)\n\t\t\t\t\t.setEndPoint(Endpoint.TOP_HEADLINES)\n\t\t\t\t\t.setSourceCountry(country)\n\t\t\t\t\t.setSourceCategory(category)\n\t\t\t\t\t.createNewsApi();\n\t\t}catch (Exception e){\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\n\n\n\t\tNewsResponse newsResponse = null;\n\t\ttry {\n\t\t\tnewsResponse = newsApi.getNews();\n\t\t}catch (Exception e){\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\n\n\n\t\tList<Article> articles = newsResponse.getArticles();\n\n\t\tSystem.out.println(\"Articles:\");\n\t\tfor (Article article:articles){\n\t\t\tSystem.out.println(article.toString());\n\t\t}\n\t\tSystem.out.println();\n\n\t\t//TODO implement methods for analysis\n\t\tif(!articles.isEmpty()){\n\t\t\t//a\n\t\t\tlong count = articles.stream()\n\t\t\t\t\t.count();\n\t\t\tSystem.out.println(\"There are \" + count + \" articles.\");\n\n\t\t\t//b\n\t\t\tString prov = articles.stream()\n\t\t\t\t\t.collect(Collectors.groupingBy(article -> article.getSource()\n\t\t\t\t\t\t\t.getName(),Collectors.counting()))\n\t\t\t\t\t.entrySet().stream()\n\t\t\t\t\t.max(Comparator.comparingInt(a -> Math.toIntExact(a.getValue()))).get().getKey();\n\t\t\tif(prov != null){\n\t\t\t\tSystem.out.println(\"The provider with the most puplished articles is: \" +\n\t\t\t\t\t\tprov);\n\t\t\t}\n\n\n\n\t\t\t//c\n\t\t\ttry {\n\t\t\t\tString author = articles.stream()\n\t\t\t\t\t\t.filter(article -> article.getAuthor() != null)\n\t\t\t\t\t\t.min(Comparator.comparingInt(article -> article.getAuthor().length()))\n\t\t\t\t\t\t.get().getAuthor();\n\t\t\t\tif(author != null){\n\t\t\t\t\tSystem.out.println(\"The shortest author by name is: \" + author);\n\t\t\t\t}\n\t\t\t}catch (Exception e){\n\t\t\t\tSystem.err.println(\"There is no Author in none of this articles\");\n\t\t\t}\n\n\n\n\t\t\t//d\n\t\t\tString leng_alph_art = articles.stream()\n\t\t\t\t\t.sorted(Comparator.comparingInt(a -> a.getTitle().length()))\n\t\t\t\t\t.sorted(Comparator.comparing(Article::getTitle))\n\t\t\t\t\t.collect(Collectors.toList()).get(0).getTitle();\n\n\t\t\tif(leng_alph_art != null){\n\t\t\t\tSystem.out.println(\"First article by length and alphabetic order is:\" + leng_alph_art);\n\t\t\t}\n\t\t}\n\n\t\t//for (Article article : articles) {\n\n\t\t\ttry {\n\t\t\t\tArticle article = articles.get(0);\n\t\t\t\tURL url = new URL(article.getUrl());\n\t\t\t\tInputStream is = url.openStream();\n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\n\t\t\t\tFile file = new File(article.getTitle().substring(0, 10) + \".html\");\n\t\t\t\tfile.createNewFile();\n\t\t\t\tBufferedWriter wr =\n\t\t\t\t\t\tnew BufferedWriter(new FileWriter(file));\n\t\t\t\tString line;\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\twr.write(line);\n\t\t\t\t}\n\t\t\t\tbr.close();\n\t\t\t\twr.close();\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t//}\n\n\n\t\tSystem.out.println(\"End process\");\n\t}",
"public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}",
"private void publishResults()\r\n\t{\n\t\tif (toBeOutputBranches.size() >= guiObject.getNumberOfBranchesFilter()) {\r\n\t\t\t\r\n\t\t\t//prints the default header each block gets\r\n\t\t\tmultiThreadingObj.myPublish(mainHeader);\r\n\t\t\t\r\n\t\t\t//prints out all of the branches (of a block) which passed the filters\r\n\t\t\tfor (Entry<String, String> branch : toBeOutputBranches.entrySet()) {\r\n\t\t\t\tString branchHeader = branch.getKey();\r\n\t\t\t\tString formattedBranch = branch.getValue();\r\n\t\t\t\tmultiThreadingObj.myPublish(branchHeader + formattedBranch);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//prints the upper state energies at the end of the block\r\n\t\t\tmultiThreadingObj.myPublish(energyVals);\r\n\t\t}\r\n\t}",
"public static void printResults() {\n System.out.println(\" Results: \");\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> System.out.println(keyWord + \" : \" + hitsNumber + \";\"));\n System.out.println(\" Total hits: \" + Crawler.getTotalHits());\n\n }",
"@SuppressWarnings({ \"deprecation\", \"serial\" })\n\tprivate void doBatchCompute() {\n\t\tHConnection hConnection = null;\n\t\tHTableInterface hTableInterface = null;\n\t\tHBaseAdmin admin = null;\n\t\ttry {\n\t\t\t//scan the events table\n\t\t\thConnection = HConnectionManager.createConnection(conf);\n\t\t\thTableInterface = hConnection.getTable(DashboardUtils.curatedEvents);\n\t\t\tadmin = new HBaseAdmin(conf);\n\t\t\t\n\t\t\t//create an empty dataset here and do union or intersections in subsequent nested iterations\n\t\t\tList<DatasetBean> emptyFeed = new ArrayList<DatasetBean>();\n\t\t\tDatasetBean datasetBean = new DatasetBean();\n\t\t\t\n\t\t\t//start scanning through the table\n\t\t\tScan scan = new Scan();\n\t\t\tResultScanner scanner = hTableInterface.getScanner(scan);\n\t\t\tfor(Result r = scanner.next(); r != null; r = scanner.next()) {\n\t\t\t\t//to stop scanner from creating too many threads\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch(InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//cumulative set which is empty containing the DatasetBean class object\n\t\t\t\tDataset<Row> cumulativeSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\n\t\t\t\t//scan through every row of feedEvents table and process each corresponding event\n\t\t\t\tif(!r.isEmpty()) {\n\t\t\t\t\teventTable = Bytes.toString(r.getRow());\n\t\t\t\t\t\n\t\t\t\t\t//create table if it didn't already exist\n\t\t\t\t\tif(!admin.tableExists(eventTable)) {\n\t\t\t\t\t\tHTableDescriptor creator = new HTableDescriptor(eventTable);\n\t\t\t\t\t\tcreator.addFamily(new HColumnDescriptor(DashboardUtils.eventTab_cf));\n\t\t\t\t\t\tadmin.createTable(creator);\n\t\t\t\t\t\tlogger.info(\"**************** just created the following table in batch process since it didn't exist: \" + eventTable);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//declare the dataset storing the data from betaFeed\n\t\t\t\t\tDataset<Row> feedDataSet;\n\t\t\t\t\t//long eventdatacount = eventmap.get(eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcurrentStore = RSSFeedUtils.betatable;\n\t\t\t\t\t//this dataset is populated with betaFeed data\n\t\t\t\t\tfeedDataSet = loadbetaFeed();\n\t\t\t\t\t\n\t\t\t\t\t//store the data as a temporary table to process via sparkSQL\n\t\t\t\t\tfeedDataSet.createOrReplaceTempView(currentStore);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfeedevents = Job.getInstance(conf);\n\t\t\t\t\tfeedevents.getConfiguration().set(TableOutputFormat.OUTPUT_TABLE, eventTable);\n\t\t\t\t\tfeedevents.setOutputFormatClass(TableOutputFormat.class);\n\t\t\t\t\t\n\t\t\t\t\t//read the tags attribute of the event, and start reading it from left to right....tags are in format as in the documentation\n\t\t\t\t\t//break the OR tag, followed by breaking the AND tag, followed by processing each tag or event contained in it\n\t\t\t\t\tString tags = \"\";\n\t\t\t\t\tif(r.containsColumn(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags))) {\n\t\t\t\t\t\ttags = Bytes.toString(r.getValue(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags)));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString backupTagStr = tags;\n\t\t\t\t\t\n\t\t\t\t\twhile(tags.contains(\")\")) {\n\t\t\t\t\t\tString threstr=null;\n\t\t\t\t\t\tSystem.out.println(\"tags:\" + tags.trim());\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] ortagstrings = tags.trim().split(\"OR\");\n\t\t\t\t\t\tfor(String ortag : ortagstrings) {\n\t\t\t\t\t\t\tSystem.out.println(\"val of ortag:\" + ortag);\n\t\t\t\t\t\t\tthrestr = ortag.trim();\n\t\t\t\t\t\t\t//these are the parameters being fetched and populated in the events...i.e, feedname,totle,link,description,categories and date\n\t\t\t\t\t\t\tString qry =\"SELECT rssFeed, title, articleLink, description, categories, articleDate FROM \" + currentStore + \" WHERE \";\n\t\t\t\t\t\t\tStringBuilder querybuilder = new StringBuilder(qry);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"tag:\"+ortag.trim());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] andtagstrings = ortag.trim().split(\"AND\");\n\t\t\t\t\t\t\tDataset<Row> andSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString proctag=null;\n\t\t\t\t\t\t\tfor(int i=0; i<andtagstrings.length; i++) {\n\t\t\t\t\t\t\t\tproctag = andtagstrings[i];\n\t\t\t\t\t\t\t\tSystem.out.println(\"process tag:\" + proctag);\n\t\t\t\t\t\t\t\t//if the part of the tag being processed is an event, open up a second stream to load data from corresponding table\n\t\t\t\t\t\t\t\tif(proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"qwerty:\" + proctag.trim());\n\t\t\t\t\t\t\t\t\tString curatedevent = proctag.trim().substring(6, proctag.trim().length()).trim().replaceAll(\" \", \"__\").replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t\t\t\t\tlogger.info(\"################################################################################# event:\"+curatedevent);\n\t\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\t\tif(admin.tableExists(curatedevent)) {\n\t\t\t\t\t\t\t\t\t\tDataset<Row> eventdataset = loadcuratedEvent(curatedevent);\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"**************************************************** event:\" + curatedevent + \" while processing:\"+eventTable);\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tif(i==0) {\n\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif(andSet.count() == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t\t} else if(andSet.count() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.intersect(andSet);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"*************************** event \" + curatedevent + \" does not exist *********************************\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//if it's a normal tag, make a sparkSQL query out of it\n\t\t\t\t\t\t\t\t} else if(!proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tquerybuilder.append(\"categories RLIKE '\" + proctag.trim().replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\") + \"' AND \");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//once the tag is fully processed, merge all data points and store in a resultant dataset\n\t\t\t\t\t\t\tif(querybuilder.toString().length() > qry.length()) {\n\t\t\t\t\t\t\t\t//logger.info(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inside query string ###############################\");\n\t\t\t\t\t\t\t\tquerybuilder = new StringBuilder(querybuilder.toString().substring(0, querybuilder.toString().length() -5));\n\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\tDataset<Row> queryset = sparkSession.sql(querybuilder.toString());\n\n\t\t\t\t\t\t\t\t//id the set it empty, fill it with the single data point\n\t\t\t\t\t\t\t\tif(andSet.count() == 0 && !backupTagStr.contains(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tandSet = queryset.union(andSet);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ doing query string with zero count:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ doing intersect for query:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet.createOrReplaceTempView(\"andSet1\");\n\t\t\t\t\t\t\t\t\tqueryset.createOrReplaceTempView(\"querySet1\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tDataset<Row> fSet = sparkSession.sql(\"SELECT DISTINCT(a.*) FROM andSet1 a INNER JOIN querySet1 b ON a.title = b.title\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet = fSet;\n\t\t\t\t\t\t\t\t\tqueryset.unpersist();\n\t\t\t\t\t\t\t\t\tfSet.unpersist();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcumulativeSet = andSet.union(cumulativeSet);\n\t\t\t\t\t\t\tandSet.unpersist();\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\ttags = tags.substring(threstr.length(), tags.length()).trim().replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"########################################################################################################### table:\"+eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcumulativeSet.createOrReplaceTempView(\"cumulativeEvent\");\n\t\t\t\t\n\t\t\t\t\t//as a double check, only fetch distinct records from all the merges...done via sparkSQL\n\t\t\t\t\tDataset<Row> finalSet = sparkSession.sql(\"SELECT DISTINCT(*) FROM cumulativeEvent\");\n\t\t\t\t\t\n\t\t\t\t\tJavaRDD<Row> eventRDD = finalSet.toJavaRDD();\n\t\t\t\t\tJavaPairRDD<ImmutableBytesWritable, Put> eventpairRDD = eventRDD.mapToPair(new PairFunction<Row, ImmutableBytesWritable, Put>() {\n\n\t\t\t\t\t\tpublic Tuple2<ImmutableBytesWritable, Put> call(Row arg0) throws Exception {\n\t\t\t\t\t\t\tObject link = arg0.getAs(\"articleLink\");\n\t\t\t\t\t\t\tif((String)link != null) {\n\t\t\t\t\t\t\t\t//parameters being populated into the events table\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), link, arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), \"link not available\", arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"******************************** going to dump curated events data in hbase for event: \" + eventTable);\n\t\t\t\t\teventpairRDD.saveAsNewAPIHadoopDataset(feedevents.getConfiguration());\n\t\t\t\t\t\n\t\t\t\t\teventRDD.unpersist();\n\t\t\t\t\tfinalSet.unpersist();\n\t\t\t\t\tcumulativeSet.unpersist();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tscanner.close();\n\t\t\thTableInterface.close();\n\t\t\thConnection.close();\n\t\t\t\n\t\t} catch(IOException e) {\n\t\t\tlogger.info(\"error while establishing Hbase connection...\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public String toString() {\n return super.toString() + \"{\"\n + \"film=\" + film\n + \",category=\" + category\n + \"}\";\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic Map<String,List<ContentItem>> getTagDocCluster() {\r\n\t\tSet<String> tagLabels = getDistinctTagLabels();\r\n\t\t\r\n\t\tList<ContentItem> pages = new ArrayList<ContentItem>(getTaggedPages()); \r\n\r\n\t\tSpectralClusterBean [][] spectralClusterBeans = new SpectralClusterBean[tagLabels.size()][pages.size()];\r\n\t\t\r\n\t\tList<String> tagCollection = new ArrayList(tagLabels);\r\n\r\n\t\tfor (int i = 0; i < tagCollection.size(); i++) {\r\n\t\t\tfor (int j = 0; j < pages.size(); j++) {\r\n\t\t\t\tfloat tagFrequency = taggingService.getTagFrequencyByContentItem(((String)tagCollection.get(i)).toLowerCase() , pages.get(j), new Float(pages.size()));\r\n\t\t//\t\tSystem.out.println(\" tag \"+((String)tagCollection.get(i)).toLowerCase() +\" has freq \" + tagFrequency+\" for page \"+pages.get(j).getTitle());\r\n\t\t\t\tspectralClusterBeans[i][j] = new SpectralClusterBean(pages.get(j).getId(),(String)tagCollection.get(i),i,j,tagFrequency);\r\n\t\t\t}\t\t\t\r\n\t\t}\t\t\r\n\r\n\t\tdouble [][] userTags = new double[tagCollection.size()][pages.size()];\r\n\t\tfor (int i = 0; i < tagCollection.size(); i++) {\r\n\t\t\tfor (int j = 0; j < pages.size(); j++) {\r\n\t\t\t\tuserTags[i][j] = (double)spectralClusterBeans[i][j].getScore();\t\t\t\t\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\tSpectralClusteringModel spectralClusteringRecommendation = new SpectralClusteringModel();\r\n\t\tMatrix frequencyMatrix = new Matrix(userTags);\r\n\t\t\r\n\t\tSingularValueDecomposition singularValueDecomposition=null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tsingularValueDecomposition = spectralClusteringRecommendation.computeLeftSigularValueDecompositionMatrix(frequencyMatrix);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tDataset[] dataSets = null;\r\n\t\ttry {\r\n\t\t\tdataSets = spectralClusteringRecommendation.clusterSpectralClusteringMatrix(singularValueDecomposition);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tMap<Set<Double>,Set<Double>> mapClusters = getMappingPositions(dataSets);\r\n\t\t\r\n\t\tMap<String,List<ContentItem>> showCLuster = new HashMap<String, List<ContentItem>>();\t\r\n\r\n\t\tfor (Set<Double> keys : mapClusters.keySet()) {\r\n\t\t\tStringBuffer tagStringBuffer = new StringBuffer();\r\n\t\t\tfor (Double tagPos : keys) {\r\n\t\t\t\ttagStringBuffer.append((spectralClusterBeans[tagPos.intValue()][0]).getTagLabel());\r\n\t\t\t\ttagStringBuffer.append(\"+\");\r\n\t\t\t}\r\n\t\t\tSet<ContentItem> cis = new HashSet<ContentItem>(); \r\n\t\t\t\r\n\t\t\tfor (Double tagPos : keys) {\r\n\t\t\t\tfor (int i = 0; i < pages.size(); i++) {\r\n\t\t\t\t\tif (spectralClusterBeans[tagPos.intValue()][i].getScore()>0) {\r\n\t\t\t\t\t\tLong ciId = spectralClusterBeans[tagPos.intValue()][i].getContentItemId();\r\n\t\t\t\t\t\tContentItem contentItem = getPagesById(ciId);\r\n\t\t\t\t\t\tcis.add(contentItem);\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t\t\tshowCLuster.put(tagStringBuffer.substring(0,tagStringBuffer.lastIndexOf(\"+\")), new ArrayList(cis));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn showCLuster;\r\n\t}",
"public static ArrayList<ArrayList<String>> getDataByMetric(String category) throws SQLException, CategoryException\n\t{\n\t\tMap<String, String> metrics = getMetricInfo(category);\n\t\t\t\t\t\t\n\t\tConnection conn = DBConnector.getInstance().getConn();\n\t\t\n\t\tArrayList<ArrayList<String>> data = new ArrayList<ArrayList<String>>();\n\t\t\n\t\tfor (Entry<String, String> e : metrics.entrySet())\n\t\t{\n\t\t\tString sql = \"SELECT * FROM mhtc_sch.getDataByMetric(?)\";\n\t\t\tPreparedStatement pstatement = conn.prepareStatement(sql);\n\t\t\tpstatement.setInt(1, Integer.parseInt(e.getValue()));\n\t\t\tResultSet rs = pstatement.executeQuery();\n\t\t\t\n\t\t\t/* Long: Convert it into JSON format for DataTable processing */\n\t\t\twhile (rs.next()) \n\t\t\t{\n\t\t\t\tArrayList<String> dataRows = new ArrayList<String>();\n\t\t\t\tdataRows.add(rs.getString(\"StateName\"));\n\t\t\t\tdataRows.add(e.getKey());\n\t\t\t\tdataRows.add(rs.getString(\"Value\"));\n\t\t\t\tdataRows.add(rs.getString(\"Year\"));\n\t\t\t\tdata.add(dataRows);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn data;\n\t}",
"private void printResultsData(BattleCompletedEvent event) {\n\t\tif ((setup.resultsFilename == null && (!setup.exitOnComplete || windowManager.isGUIEnabled()))) {\n\t\t\treturn;\n\t\t}\n\n\t\tPrintStream out = null;\n\t\tFileOutputStream fos = null;\n\n\t\ttry {\n\t\t\tif (setup.resultsFilename == null) {\n\t\t\t\tout = Logger.realOut;\n\t\t\t} else {\n\t\t\t\tFile f = new File(setup.resultsFilename);\n\t\n\t\t\t\ttry {\n\t\t\t\t\tfos = new FileOutputStream(f);\n\t\t\t\t\tout = new PrintStream(fos);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tLogger.logError(e);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (out != null) {\n\t\t\t\tBattleResultsTableModel resultsTable = new BattleResultsTableModel(event.getSortedResults(),\n\t\t\t\t\t\tevent.getBattleRules().getNumRounds());\n\n\t\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\n\t\t\t\tresultsTable.print(new PrintStream(baos));\n\t\t\t\tout.append(StringUtil.toBasicLatin(baos.toString()));\n\t\t\t}\n\t\t} finally {\n\t\t\tFileUtil.cleanupStream(out);\n\t\t\tFileUtil.cleanupStream(fos);\t\t\t\n\t\t}\n\t}",
"public static void loopCategories() throws IOException {\n //If all of the categories haven't been checked yet check the response at the current index (count).\n if (count < CATEGORY_ARRAY_SIZE) {\n //If that response if equal to TRUE (1).\n if (currentUser.getSingleCategory(count) == TRUE) {\n //Adjust the start index.\n startIndex = count * LOCATIONS_PER_CATEGORY;\n //Call the locaitons view.\n Main.FxmlLoader(LOCATIONS_PATH);\n }\n //Otherwise increment count and check the next index recursively.\n else {\n count++;\n loopCategories();\n }\n }\n }",
"public String getAllResults() {\n StringBuilder sb = new StringBuilder();\n for (Map.Entry<String, String> results : resultMap.entrySet()) {\n sb.append(results.getKey().toString() + \" : \" + results.getValue().toString() + \"\\n\");\n }\n return sb.toString();\n }",
"private void writeAnalysisResults(Map<SillyBot, List<IntermediateResult>> analysisCallResults)\n\t\t\tthrows InterruptedException, ExecutionException {\n\t\tfor (SillyBot sillyBot : analysisCallResults.keySet()) {\n\t\t\tSystem.out.println(\"PRINT SILLY BOT ANALYZED RESULTS:\");\n\t\t\tfor (IntermediateResult botsAnalysisCall : analysisCallResults.get(sillyBot)) {\n\t\t\t\tProposal propsal;\n\t\t\t\tif (sillyBot instanceof PerformanceSillyBot) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tpropsal = new PerformanceProposal(getResponseValue(botsAnalysisCall.analysisResult),\n\t\t\t\t\t\t\tbotsAnalysisCall.name);\n\t\t\t\t\tSystem.out.println(\"For Model \" + botsAnalysisCall.name + \" metric is \"\n\t\t\t\t\t\t\t+ getResponseValue(botsAnalysisCall.analysisResult));\n\t\t\t\t} else if (sillyBot instanceof ModifiabilitySillyBot) {\n\t\t\t\t\tpropsal = new ModifiabilityProposal(getResponseValue(botsAnalysisCall.analysisResult),\n\t\t\t\t\t\t\tbotsAnalysisCall.name);\n\t\t\t\t\tSystem.out.println(\"For Model \" + botsAnalysisCall.name + \" metric is \"\n\t\t\t\t\t\t\t+ getResponseValue(botsAnalysisCall.analysisResult));\n\t\t\t\t} else {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Unknown type of Silly Bot.\");\n\t\t\t\t}\n\n\t\t\t\tsillyBot.insertInOrder(propsal);\n\t\t\t}\n\t\t}\n\t}",
"public void printAverageRatingsByYearAfterAndGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n AllFilters f = new AllFilters();\n YearAfterFilter y = new YearAfterFilter(1990);\n GenreFilter g = new GenreFilter(\"Drama\");\n f.addFilter(y);\n f.addFilter(g);\n int minRatings = 8;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" \n + MovieDatabase.getYear(r.getItem()) + \"\\t\"\n + MovieDatabase.getTitle(r.getItem()) + \"\\t\"\n + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }",
"private static CategoryDataset createDataset() throws SQLException, InterruptedException \n\t{ \n\t\t// creating dataset \n\t\tDefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\t\n\t\t//setting up the connexion\n\t\tConnection con = null;\n\t\tString conUrl = \"jdbc:sqlserver://\"+Login.Host+\"; databaseName=\"+Login.databaseName+\"; user=\"+Login.user+\"; password=\"+Login.password+\";\";\n\t\ttry \n\t\t{\n\t\t\tcon = DriverManager.getConnection(conUrl);\n\t\t} \n\t\tcatch (SQLException e1) \n\t\t{\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\t//this counter will allow me to run my while loop only once\n\t\tint cnt=0;\n\t\twhile(cnt<1)\n\t\t{ \n\t\t\t//check the query number at each call to the function in order to know which procedure must me executed\n\t\t\tif (queryNumber==0){\n\t\t\t\tcnt++;\n\t\t\t\tcstmt = con.prepareCall(\"{call avgMonthly(?,?,?,?)}\");\n\t\t\t\t\n\t\t\t\t//setting the procedures parameters with the one chosen by the user\n\t\t\t\tcstmt.setInt(1, Integer.parseInt(year));\n\t\t\t\tcstmt.setInt(2, Integer.parseInt(month));\n\t\t\t\tcstmt.setString(3, featureStringH);\t\n\t\t\t\tcstmt.setString(4, actionStringH);\t\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t// extracting the data of my query in order to plot it\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);//latency\n\t\t\t\t\t\tint dayAxisNum=aveTempAvg.getInt(2);//average\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//Adding the result of the query to the data set and setting y value to the average latency and x to the corresponding day\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(dayAxisNum));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\" +\"\"+0), \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse if (queryNumber==1){\n\t\t\t\tcnt++;\n\t\t\t\tcstmt = con.prepareCall(\"{call avgDaily(?,?,?)}\");\t\n\t\t\t\t/*for the second query , the user will enter seperate year month and day \n\t\t\t\t so we wil have to concatenate the date into a string before setting the date value*/\n\t\t\t\tString newDate= year+\"-\"+month+\"-\"+day;\n\t\t\t\tcstmt.setString(1, newDate);\n\t\t\t\tcstmt.setString(2, featureStringH);\n\t\t\t\tcstmt.setString(3, actionStringH);\t\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t//extracting the data of the query\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\tint hour = 0;\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);\n\t\t\t\t\t\tint hour2=aveTempAvg.getInt(2);\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//setting y value to the average and the x is the corresponding hour\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(hour2));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//I will add 0 if I don't have the corresponding value of the specified Hour\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\" +\"\"+hour), \"\");\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\telse if (queryNumber==2){\n\t\t\t\tcnt++;\n\t\t\t\t//Thread.sleep(100);\n\t\t\t\tcstmt = con.prepareCall(\"{call avgHour(?,?,?,?)}\");\t\n\t\t\t\tString newDate2= year+\"-\"+month+\"-\"+day;\n\t\t\t\t//same as for the daily query we have to set the parameters , we add to that the hour as last parameter\n\t\t\t\tcstmt.setString(1, newDate2);\n\t\t\t\tcstmt.setString(2, featureStringH);\n\t\t\t\tcstmt.setString(3, actionStringH);\n\t\t\t\tcstmt.setInt(4,Integer.parseInt(hourString));\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t//extract the data from the query\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);\n\t\t\t\t\t\tint min=aveTempAvg.getInt(2);\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//setting y value to the average and the x is the corresponding minute\n\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(min));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//adding 0 if I don't have the corresponding minute\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\"+min),\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn dataset; \n\t}",
"public static void func(final Input input, final Writer fileWriter, final JSONArray arrayResult,\n final ActionInputData action) throws IOException {\n\n String message = \"Query result: [\";\n MyInput myInput = initializeInput(input);\n\n String thisYear = action.getFilters().get(0).get(0);\n String thisGenre = action.getFilters().get(1).get(0);\n\n HashMap<String, Integer> longest = new HashMap<>();\n\n // movie\n if (action.getObjectType().equals(\"movies\")) {\n\n // cycle all movies\n for (int i = 0; i < myInput.getMovies().size(); i++) {\n\n boolean isMovieFilters = functions.IsMovieFilters.func(\n myInput.getMovies(), myInput.getMovies().get(i).getTitle(),\n thisGenre, thisYear);\n\n // if it is a valid movie with given filters\n if (isMovieFilters) {\n longest.put(myInput.getMovies().get(i).getTitle(),\n myInput.getMovies().get(i).getDuration());\n }\n }\n } else if (action.getObjectType().equals(\"shows\")) { //serial\n\n // cycle all serials\n for (int i = 0; i < myInput.getSerials().size(); i++) {\n\n boolean isSerialFilters = functions.IsSerialFilters.func(\n myInput.getSerials(), myInput.getSerials().get(i).getTitle(),\n thisGenre, thisYear);\n\n // sum the duration of seasons\n if (isSerialFilters) {\n int sum = 0;\n\n for (int j = 0; j < myInput.getSerials().get(i).getSeasons().size(); j++) {\n sum += myInput.getSerials().get(i).getSeasons().get(j).getDuration();\n }\n longest.put(myInput.getSerials().get(i).getTitle(), sum);\n }\n }\n }\n Map<String, Integer> sortedLongest;\n\n if (action.getSortType().equals(\"asc\")) {\n sortedLongest = integerAscAsc(longest);\n } else {\n sortedLongest = integerDescDesc(longest);\n }\n\n if (sortedLongest.isEmpty()) {\n message += \"]\";\n JSONObject jsO = fileWriter.writeFile(action.getActionId(), \"\",\n message);\n arrayResult.add(jsO);\n } else {\n int cnt = 0;\n\n if (action.getNumber() >= sortedLongest.size()) {\n for (Map.Entry<String, Integer> entry : sortedLongest.entrySet()) {\n message += entry.getKey() + \", \";\n }\n } else {\n for (Map.Entry<String, Integer> entry : sortedLongest.entrySet()) {\n message += entry.getKey() + \", \";\n cnt++;\n if (cnt == action.getNumber()) {\n break;\n }\n }\n }\n\n // format message\n String strNew = message.substring(0, message.length() - 1);\n strNew = message.substring(0, message.length() - 2);\n message = strNew;\n message += \"]\";\n\n JSONObject jsO = fileWriter.writeFile(action.getActionId(), \"\",\n message);\n arrayResult.add(jsO);\n }\n }",
"private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}",
"private void test() {\r\n \ttry {\r\n\t\t\ttestWriter.write(\"Testing started...\");\r\n\t\t\r\n\t\t\tpredictions = new HashMap<>();\r\n \trightAnswers = new HashMap<>();\r\n\r\n\r\n \t// Get results and check them\r\n \tEvaluation eval = new Evaluation(numLabels);\r\n \tfinalTestIterator.reset();\r\n\r\n \tint metaDataCounter = 0;\r\n \tint addrCounter = 0;\r\n\r\n \twhile(finalTestIterator.hasNext()) {\r\n \t// If iterator has next dataset\r\n \tfinalTestData = finalTestIterator.next();\r\n \t// Get meta-data from this dataset\r\n\r\n \t@SuppressWarnings(\"rawtypes\")\r\n \tList<?> exampleMetaData = finalTestData.getExampleMetaData();\r\n \tIterator<?> exampleMetaDataIterator = exampleMetaData.iterator();\r\n \ttestWriter.write(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n \tSystem.out.println(\"\\n Metadata from dataset #\" + metaDataCounter + \":\\n\");\r\n\r\n \t// Normalize data\r\n \tnormalizer.fit(finalTestData);\r\n\r\n \t// Count processed images\r\n \tnumProcessed = (metaDataCounter + 1) * batchSizeTesting;\r\n \tloaded.setText(\"Loaded and processed: \" + numProcessed + \" pictures\");\r\n\r\n \tINDArray features = finalTestData.getFeatures();\r\n \tINDArray labels = finalTestData.getLabels();\r\n \tSystem.out.println(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Right labels #\" + metaDataCounter + \":\\n\");\r\n \t// Get right answers of NN for every input object\r\n \tint[][] rightLabels = labels.toIntMatrix();\r\n \tfor (int i = 0; i < rightLabels.length; i++) {\r\n \tRecordMetaDataURI metaDataUri = (RecordMetaDataURI) exampleMetaDataIterator.next();\r\n \t// Print address of image\r\n \tSystem.out.println(metaDataUri.getLocation());\r\n \tfor (int j = 0; j < rightLabels[i].length; j++) {\r\n \tif(rightLabels[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=right class label\r\n \trightAnswers.put(metaDataUri.getLocation(), j);\r\n \tthis.addresses.add(metaDataUri.getLocation());\r\n \t}\r\n \t}\r\n \t}\r\n \tSystem.out.println(\"\\nRight answers:\");\r\n \ttestWriter.write(\"\\nRight answers:\");\r\n \t// Print right answers\r\n \tfor(Map.Entry<String, Integer> answer : predictions.entrySet()){\r\n \t\ttestWriter.write(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \tSystem.out.printf(String.format(\"Address: %s Right answer: %s \\n\", answer.getKey(), answer.getValue().toString()));\r\n \t}\r\n\r\n \t// Evaluate on the test data\r\n \tINDArray predicted = vgg16Transfer.outputSingle(features);\r\n \tint predFoundCounter = 0;\r\n \tSystem.out.println(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \ttestWriter.write(\"\\n Labels predicted #\" + metaDataCounter + \":\\n\");\r\n \t// Get predictions of NN for every input object\r\n \tint[][] labelsPredicted = predicted.toIntMatrix();\r\n \tfor (int i = 0; i < labelsPredicted.length; i++) {\r\n \tfor (int j = 0; j < labelsPredicted[i].length; j++) {\r\n \tpredFoundCounter++;\r\n \tif(labelsPredicted[i][j] == 1) {\r\n \t//public V put(K key, V value) -> key=address, value=predicted class label\r\n \tpredFoundCounter = 0;\r\n \tthis.predictions.put(this.addresses.get(addrCounter), j);\r\n \t}\r\n \telse {\r\n \tif (predFoundCounter == 3) {\r\n \t// To fix bug when searching positive predictions\r\n \tthis.predictions.put(this.addresses.get(addrCounter), 2);\r\n \t}\r\n \t}\r\n \t}\r\n \taddrCounter++;\r\n \t}\r\n \tSystem.out.println(\"\\nPredicted:\");\r\n \ttestWriter.write(\"\\nPredicted:\");\r\n \t// Print predictions\r\n \tfor(Map.Entry<String, Integer> pred : rightAnswers.entrySet()){\r\n \tSystem.out.printf(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString());\r\n \ttestWriter.write(String.format(\"Address: %s Predicted answer: %s \\n\", pred.getKey(), pred.getValue().toString()));\r\n \t}\r\n \tmetaDataCounter++;\r\n\r\n \teval.eval(labels, predicted);\r\n \t}\r\n\r\n \tSystem.out.println(\"\\n\\n Cheack loaded model on test data...\");\r\n \tSystem.out.println(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \tSystem.out.println(eval.stats());\r\n \tSystem.out.println(eval.confusionToString());\r\n \ttestWriter.write(\"\\n\\n Cheack loaded model on test data...\");\r\n \ttestWriter.write(String.format(\"Evaluation on test data - [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n \t\t\teval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n \ttestWriter.write(eval.stats());\r\n \ttestWriter.write(eval.confusionToString());\r\n\r\n \t// Save test rates\r\n \tthis.f1_score = eval.f1();\r\n \tthis.recall_score = eval.recall();\r\n \tthis.accuracy_score = eval.accuracy();\r\n \tthis.precision_score = eval.precision();\r\n \tthis.falseNegativeRate_score = eval.falseNegativeRate();\r\n \tthis.falsePositiveRate_score = eval.falsePositiveRate();\r\n\r\n \tthis.f1.setText(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \tthis.recall.setText(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \tthis.accuracy.setText(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \tthis.precision.setText(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \tthis.falseNegativeRate.setText(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \tthis.falsePositiveRate.setText(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n \r\n \ttestWriter.write(\"F1 = \" + String.format(\"%.4f\", f1_score));\r\n \ttestWriter.write(\"Recall = \" + String.format(\"%.4f\", recall_score));\r\n \ttestWriter.write(\"Accuracy = \" + String.format(\"%.4f\", accuracy_score));\r\n \ttestWriter.write(\"Precision = \" + String.format(\"%.4f\", precision_score));\r\n \ttestWriter.write(\"False Negative Rate = \" + String.format(\"%.4f\", falseNegativeRate_score));\r\n \ttestWriter.write(\"False Positive Rate = \" + String.format(\"%.4f\", falsePositiveRate_score));\r\n\r\n \tshowBarChart();\r\n \t} catch (IOException e) {\r\n \t\tSystem.err.println(\"Error while writing to log file\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public static void eventList() {\n\t\tfor (Map.Entry<Calendar, TreeSet<Event>> entry : calendarToEvent.entrySet()) {\n\t\t\tTreeSet<Event> value = entry.getValue();\n\t\t\tfor (Event e: value) {\n\t\t\t\tSystem.out.println(e.toString());\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\tSystem.out.println(\"All Day Event = \" + getCSVDataByHeader(\"All Day Event\", 1));\n\t\tSystem.out.println(\"Event Title = \" + getCSVDataByHeader(\"Event Title\", 1));\n\t\tSystem.out.println(\"All Day Event = \" + getCSVDataByHeader(\"All Day Event\", 2));\n\t\tSystem.out.println(\"Event Title = \" + getCSVDataByHeader(\"Event Title\", 2));\n\n\n\t}",
"public void readInEvents() {\n // read CSV file for events\n allEvents = new ArrayList<Event>();\n InputStream inputStream = getResources().openRawResource(R.raw.events);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] eventData = (String[]) scoreList.get(i);\n\n // group together description\n String description = getDescription(8, eventData);\n\n // inputs to Event constructor:\n // String name, String date, String startTime, String endTime, String location,\n // int photoID, String organizations, String categories, String description\n\n // get image ID according to its name\n int photoID = context.getResources().getIdentifier(eventData[5], \"drawable\", context.getPackageName());\n allEvents.add(new Event(eventData[0], eventData[1], eventData[2], eventData[3], eventData[4],\n photoID, eventData[6], eventData[7], description));\n\n\n //System.out.println(\"ADD Event: \" + eventData[0]);\n }\n\n }",
"public static DataSet Make_DataSetFromEvents( String EventFileName,\n String DetCalFileName,\n String bankInfoFileName,\n String MappingFileName,\n float firstToLoad,\n float numToLoad,\n float min,\n float max,\n boolean isLog,\n float first_logStep,\n int nUniformbins,\n String x_axis_type )\n throws Exception\n {\n if ( ! x_axis_type.equalsIgnoreCase( MAG_Q ) &&\n ! x_axis_type.equalsIgnoreCase( WAVELENGTH ) &&\n ! x_axis_type.equalsIgnoreCase( D_SPACING ) && \n ! x_axis_type.equalsIgnoreCase( RAW_TOF ) && \n ! x_axis_type.equalsIgnoreCase( TOF ) )\n\n throw new IllegalArgumentException( \"x_axis_type MUST be one of \" +\n MAG_Q + \", \" + WAVELENGTH + \" or \" + D_SPACING );\n\n String Instrument = FileIO.getSNSInstrumentName( EventFileName );\n SNS_Tof_to_Q_map SMap = new SNS_Tof_to_Q_map( Instrument,\n DetCalFileName,\n bankInfoFileName,\n MappingFileName,\n null );\n\n SNS_TofEventList STOF = new SNS_TofEventList( EventFileName );\n\n IEventBinner binner;\n if ( isLog )\n binner = new LogEventBinner( min, max, first_logStep);\n else\n binner = new UniformEventBinner( min,max,nUniformbins);\n\n long firstEvent = (long)firstToLoad;\n long NumEventsToLoad = (long)numToLoad;\n\n if ( firstEvent >= STOF.numEntries() )\n throw new IllegalArgumentException(\"first event \" + firstEvent +\n \" exceeds number of events in file \" + STOF.numEntries());\n\n // keep events in range\n long last = firstEvent + NumEventsToLoad - 1;\n if ( last >= STOF.numEntries() )\n last = STOF.numEntries() - 1;\n\n long num_to_load = last - firstEvent + 1;\n long seg_size = DEFAULT_SEG_SIZE;\n long num_segments = num_to_load / seg_size + 1;\n long num_loaded = 0;\n\n Vector ops = new Vector();\n for ( int i = 0; i < num_segments; i ++ )\n {\n seg_size = Math.min( seg_size, num_to_load - num_loaded );\n\n Make_Histograms_Op op;\n op = new Make_Histograms_Op( SMap,\n x_axis_type,\n STOF, firstEvent, seg_size,\n binner );\n ops.add( op );\n num_loaded += seg_size;\n firstEvent += seg_size;\n }\n\n ParallelExecutor pe = new ParallelExecutor(ops, n_threads, max_time);\n Vector results = pe.runOperators();\n\n float[][] Histograms = CombinePartialHistograms( results );\n\n if ( Histograms == null)\n return null;\n\n int run_num = getRunNumber( EventFileName );\n\n String title = Instrument + \"_\"+ run_num;\n\n String log_message = \"Mapped events to \" + x_axis_type;\n\n DataSet DS = MakeDataSet( Histograms, \n binner, \n title, \n log_message, \n false );\n String x_units = \"\";\n if ( x_axis_type.equalsIgnoreCase(MAG_Q) )\n x_units = \"Inverse Angstroms\";\n else if ( x_axis_type.equalsIgnoreCase(WAVELENGTH) ||\n x_axis_type.equalsIgnoreCase(D_SPACING) )\n x_units = \"Angstroms\";\n else if ( x_axis_type.equalsIgnoreCase(TOF) )\n x_units = \"Time(us)\";\n\n DS.setX_units( x_units );\n DS.setX_label( x_axis_type );\n DS.setY_units( \"Counts\" );\n DS.setY_label( \"Scattering Intensity\" );\n\n AddBankDetectorPositions( DS, SMap );\n SetAttributes( DS, EventFileName, SMap );\n\n if ( x_axis_type.equalsIgnoreCase(MAG_Q) )\n DataSetFactory.add_q_Operators( DS );\n else if ( x_axis_type.equalsIgnoreCase(D_SPACING) )\n DataSetFactory.add_d_Operators( DS );\n else if ( x_axis_type.equalsIgnoreCase(TOF) )\n DataSetFactory.addOperators( DS, InstrumentType.TOF_DIFFRACTOMETER );\n\n return DS;\n }",
"public void createCSVFromClusteringResult(final String outputPath, final Map<Double, List<Instance>> data)\n throws IOException {\n if (!data.isEmpty()) {\n final File file = new File(outputPath + \"/hierarchResults.csv\");\n\n // Creates the csv file.\n file.createNewFile();\n final BufferedWriter writer = Files.newBufferedWriter(file.toPath(), StandardOpenOption.CREATE);\n writer.append(\"# of cluster\");\n writer.append(',');\n writer.append(String.valueOf(data.size()));\n writer.append('\\n');\n\n // Write names of attributes to the file.\n final Enumeration attributeNames = data.entrySet().iterator().next().getValue().get(0)\n .enumerateAttributes();\n String attrNameString = \"\";\n while (attributeNames.hasMoreElements()) {\n String attrName = attributeNames.nextElement().toString();\n attrName = attrName.replace(\"@attribute '><\", \"\");\n attrName = attrName.replace(\"' numeric\", \"\");\n attrNameString += attrName;\n attrNameString += \", \";\n }\n writer.append(attrNameString);\n writer.append('\\n');\n\n // Write the different clusters and their assigned instances to the file.\n writer.append(\"ClusterID\");\n writer.append(',');\n writer.append(\"# of instances\");\n writer.append(',');\n writer.append(\"Assigned instances\");\n writer.append('\\n');\n for (final Entry<Double, List<Instance>> entry : data.entrySet()) {\n // Write cluster\n writer.append(String.valueOf(entry.getKey().intValue()));\n writer.append(',');\n // Write number of instances in this cluster\n writer.append(String.valueOf(entry.getValue().size()));\n writer.append(',');\n // Write list of instances which are assigned to this cluster.\n writer.append(\"[\");\n for (final Instance instance : entry.getValue()) {\n writer.append(\"[\");\n writer.append(String.valueOf(instance));\n writer.append(\"],\");\n }\n writer.append(\"]\");\n writer.append('\\n');\n }\n\n writer.flush();\n writer.close();\n }\n }",
"protected CategorySeries buildCategoryDataset(String title, List<Evenement> values) {\n CategorySeries series = new CategorySeries(title);\n int k = 0;\n for (Evenement value : values) {\n series.add(value.getDescription(), value.getNb_participants());\n }\n\n return series;\n }",
"public void write(String outputFolder, String name) throws IOException {\n for (Gender gender : this.keySet1()) {\n for (EventScoringTable scoreTable : this.get(gender).values()) {\n File outFile = new File(String.format(\"%s/Table %s - %s - %s.csv\",\n outputFolder,\n name,\n gender,\n scoreTable.getEvent().getIaafName()\n ));\n if (outFile.getParentFile().mkdirs()) {\n System.out.println(\"Created directory: \" + outFile.getParent());\n }\n\n FileWriter fileWriter = new FileWriter(outFile);\n fileWriter.write(String.format(\"%s,%s%n\", \"performance\", \"points\"));\n\n for (Entry<Double, Integer> score : scoreTable.getPerformancePoints().entrySet()) {\n fileWriter.write(String.format(Locale.ENGLISH,\n \"%.2f,%d%n\",\n score.getKey(),\n score.getValue()\n ));\n }\n fileWriter.close();\n }\n }\n System.out.println(\"Written conversion tables to: \" + outputFolder);\n }",
"static void getResults2(String root) throws IOException {\n\t\tint k = 1;\n\t\twhile (k <= 1) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString multi = \"\";\n\t\t\tSystem.out.println(\"M\" + k);\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(new File(root\n\t\t\t\t\t\t+ \"M1/M1.1/Testbeds-\" + j + \"/Generated/PSL//test/Precision/multi.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tmulti += line;\n\t\t\t\t\tSystem.out.print(line + \",\");\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t}",
"public TreeMap<String, Integer[]> generateAppCategory(Date startDate, Date endDate) {\n\n //Total Usage Time for each appid\n TreeMap<Integer, Double> appResult = new TreeMap<Integer, Double>();\n //Total Usage Time for each category\n TreeMap<String, Double> result = new TreeMap<String, Double>();\n //Total Usage Time and Percent for each category\n TreeMap<String, Integer[]> toResult = new TreeMap<String, Integer[]>();\n\n AppUsageDAO auDAO = new AppUsageDAO();\n ArrayList<User> userList = new ArrayList<User>();\n\n userList = auDAO.retrieveUsers(startDate, endDate);\n for (int i = 0; i < userList.size(); i++) {\n\n User currUser = userList.get(i);\n ArrayList<AppUsage> userUsage = auDAO.retrieveByUser(currUser.getMacAddress(), startDate, endDate);\n Date nextDay = new Date(startDate.getTime() + 60 * 60 * 1000 * 24);\n\n Date oldTime = null;\n if (userUsage.size() > 0) {\n oldTime = userUsage.get(0).getDate();\n if (oldTime.after(nextDay)) {\n nextDay = new Date(nextDay.getTime() + 60 * 60 * 1000 * 24);\n }\n }\n\n for (int j = 1; j < userUsage.size(); j++) {\n AppUsage au = userUsage.get(j);\n Date newTime = au.getDate();\n\n //store oldTime appId\n int appId = userUsage.get(j - 1).getAppId();\n boolean beforeAppeared = false;\n if (newTime.before(nextDay)) {\n beforeAppeared = true;\n\n //difference = usage time of the oldTime appId\n double difference = Utility.secondsBetweenDates(oldTime, newTime);\n\n //If difference less than/equal 2 minutes\n if (difference <= 2 * 60) {\n // add time to the appId\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + difference));\n } else {\n appResult.put(appId, difference);\n }\n\n } else {\n // add 10sec to appid if > 2 mins\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + 10));\n } else {\n appResult.put(appId, 10.0);\n }\n\n }\n\n } else {\n nextDay = new Date(nextDay.getTime() + 60 * 60 * 1000 * 24);\n\n if (!beforeAppeared) {\n double diff = Utility.secondsBetweenDates(oldTime, newTime);\n //add time to the appid\n if (diff <= 2 * 60) {\n // add time to the appId\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + diff));\n } else {\n appResult.put(appId, diff);\n }\n\n } else {\n // add 10sec to appid if > 2 mins\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + 10));\n } else {\n appResult.put(appId, 10.0);\n }\n\n }\n }\n\n }\n\n oldTime = newTime;\n\n }\n\n //get the appId of the last user usage\n int lastAppId = userUsage.get(userUsage.size() - 1).getAppId();\n\n if (oldTime.before(nextDay)) {\n double difference = Utility.secondsBetweenDates(oldTime, nextDay);\n //add the time difference to last appId\n if (difference < 10) {\n if (appResult.containsKey(lastAppId)) {\n double value = appResult.get(lastAppId);\n appResult.put(lastAppId, (value + difference));\n } else {\n appResult.put(lastAppId, difference);\n }\n } else {\n if (appResult.containsKey(lastAppId)) {\n double value = appResult.get(lastAppId);\n appResult.put(lastAppId, (value + 10));\n } else {\n appResult.put(lastAppId, 10.0);\n }\n }\n } else {\n\n if (appResult.containsKey(lastAppId)) {\n double value = appResult.get(lastAppId);\n appResult.put(lastAppId, (value + 10));\n } else {\n appResult.put(lastAppId, 10.0);\n }\n\n }\n\n //DIVIDE TO GET INTO DAYS\n long days = Utility.daysBetweenDates(startDate, endDate);\n\n AppDAO app = new AppDAO();\n\n //Retrieve appid in each category\n TreeMap<String, ArrayList<Integer>> appCategoryList = app.retrieveByCategory();\n Iterator<String> iter = appCategoryList.keySet().iterator();\n double totTime = 0.0;\n //Sum the total time by category\n while (iter.hasNext()) {\n String key = iter.next();\n //EACH CATEGORY\n ArrayList<Integer> innerList = appCategoryList.get(key);\n double totCatTime = 0.0;\n for (int j = 0; j < innerList.size(); j++) {\n int appid = innerList.get(j);\n double timePerApp = 0.0;\n\n if (appResult.containsKey(appid)) {\n timePerApp = appResult.get(appid);\n\n }\n totCatTime += timePerApp;\n }\n\n double avgCatTime = totCatTime / days;\n\n totTime += avgCatTime;\n result.put(key, avgCatTime);\n }\n\n Iterator<String> iterator = result.keySet().iterator();\n //Calculate the percentage for each category\n while (iterator.hasNext()) {\n\n String name = iterator.next();\n double duration = result.get(name);\n double percent = (duration / totTime) * 100;\n Integer[] arrToReturn = new Integer[2];\n\n arrToReturn[0] = Integer.valueOf(Math.round(duration) + \"\");\n arrToReturn[1] = Integer.valueOf(Math.round(percent) + \"\");\n toResult.put(name, arrToReturn);\n\n }\n\n }\n ArrayList<String> catList = Utility.retrieveCategories();\n\n for (String cat : catList) {\n if (!toResult.containsKey(cat)) {\n Integer[] arrToReturn = new Integer[2];\n arrToReturn[0] = 0;\n arrToReturn[1] = 0;\n toResult.put(cat, arrToReturn);\n }\n }\n return toResult;\n }",
"@Override\r\n public void calculate() {\r\n // do the calculations\r\n this.categories = new String[]{\"one\", \"two\"};\r\n this.data = new double[]{75, 50};\r\n }",
"public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }",
"public void printAverageRatingsByGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new GenreFilter(\"Comedy\"); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }",
"public void printAllResults(){\n String round = \"Rounds: \\t\\t\";\n String team1 = fight_list.get(0).t1.name + \"\\t\\t\"; //note: We assume that all the FightResults in 1 DataBag all have the same 2 teams. Gotta write that better later.\n String team2 = fight_list.get(0).t2.name + \"\\t\\t\";\n\n for(FightResult fig : this.fight_list){\n round += fig.final_round + \"\\t\";\n team1 += fig.t1_deaths + \"\\t\";\n team2 += fig.t2_deaths + \"\\t\";\n }\n\n System.out.println(round);\n System.out.println(team1);\n System.out.println(team2);\n\n //System.out.println(\"\\n--------\\n\");\n }",
"private void categorize(Map<Integer, Double> trips,\n\t\t\tMap<Integer, Double> category1, Map<Integer, Double> category2,\n\t\t\tMap<Integer, Double> category3) {\n\t\t// Add 3 first elements to categories\n\t\tObject[] arrTrips = trips.keySet().toArray();\n\t\tcategory1.put((Integer) arrTrips[0], trips.get((Integer) arrTrips[0]));\n\t\tcategory2.put((Integer) arrTrips[1], trips.get((Integer) arrTrips[1]));\n\t\tcategory3.put((Integer) arrTrips[2], trips.get((Integer) arrTrips[2]));\n\n\t\t// Categorize all the entries a few times for better result\n\t\tfor (int i = 0; i < CATEGORIZING_TIMES; i++) {\n\t\t\t// Compute categories' averages\n\t\t\tDouble avg1 = getValuesAvg(category1);\n\t\t\tDouble avg2 = getValuesAvg(category2);\n\t\t\tDouble avg3 = getValuesAvg(category3);\n\n\t\t\t// Move each entry to it's closest category by average\n\t\t\tfor (Entry<Integer, Double> entry : trips.entrySet()) {\n\t\t\t\tcategorizeEntry(category1, category2, category3, avg1, avg2,\n\t\t\t\t\t\tavg3, entry);\n\t\t\t}\n\t\t}\n\t}",
"public List<book> getResultsByCategory(List<category> cInput) {\n\t\treturn null;\n\t}",
"public void quit() {\n\t\ttry {\n\t\t\tFile file = new File(\"output.txt\");\n\t\t\tFile eventFile = new File(\"events.txt\");\n\t\t\tFileWriter write = null;\n\t\t\tFileWriter eventwrite = null;\n\n\n\t\t\tif(!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\twrite = new FileWriter(file.getAbsoluteFile());\n\t\t\t}\n\t\t\tif(!eventFile.exists()) {\n\t\t\t\teventFile.createNewFile();\n\t\t\t\teventwrite = new FileWriter(file.getAbsoluteFile());\n\t\t\t}\n\t\t\tString path = file.getAbsolutePath();\n\t\t\tString eventPath = eventFile.getAbsolutePath();\n\n\t\t\twrite = new FileWriter(path);\n\t\t\teventwrite = new FileWriter(eventPath);\n\n\t\t\tBufferedWriter writer = new BufferedWriter(write);\n\t\t\tBufferedWriter eventBWriter = new BufferedWriter(eventwrite);\n\n\n\t\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet()) {\n\t\t\t\tLocalDate d = entry.getKey();\n\t\t\t\tArrayList<Event> list = map.get(d);\n\t\t\t\tfor(int i = 0; i<list.size(); i++) {\n\t\t\t\t\tEvent e = list.get(i);\n\t\t\t\t\twriter.write(e.name + \"\\n\" );\n\t\t\t\t\teventBWriter.append(e.name + \"\\n\" );\n\t\t\t\t\twriter.write(e.sDate + \" \" + e.sTime + \" \" + e.eTime + \"\\n\");\n\t\t\t\t\teventBWriter.append(e.sDate + \" \" + e.sTime + \" \" + e.eTime + \"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\twriter.close();\n\t\t\teventBWriter.close();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }",
"private void doSearch(String query, boolean art,\n boolean music,\n boolean tech,\n boolean careers,\n boolean culture,\n boolean sports,\n boolean science,\n boolean education){\n ArrayList<String> categories = new ArrayList<String>();\n if(art) categories.add(\"Art\");\n if(music) categories.add(\"Music\");\n if(tech) categories.add(\"Tech\");\n if(careers) categories.add(\"Careers\");\n if(culture) categories.add(\"Culture\");\n if(sports) categories.add(\"Sports\");\n if(science) categories.add(\"Science\");\n if(education) categories.add(\"Education\");\n\n //if none selected search for all categories\n if(!art && !music && !tech && !careers && !culture && !sports && !science && !education){\n categories.add(\"Art\");\n categories.add(\"Music\");\n categories.add(\"Tech\");\n categories.add(\"Careers\");\n categories.add(\"Culture\");\n categories.add(\"Sports\");\n categories.add(\"Science\");\n categories.add(\"Education\");\n }\n eventServices.searchEventFeed(query, null, null, categories, new AppCallback<List<Event>>() {\n @Override\n public void call(final List<Event> events) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n eventList.addAll(events);\n adapter.notifyDataSetChanged();\n }\n });\n }\n\n @Override\n public void call() {\n\n }\n });\n\n// Log.d(TAG, \"doSearch: \" + query + \" \" + SearchActivity.DATE_RANGE_LABELS[dateRange] + \" \");\n adapter.notifyDataSetChanged();\n }",
"public static void printClusters() {\n\t\tint count = 0;\n\t\tdouble[][] matrix = null;\n\t\tfor(String s:allClusters) {\n\t\t\tcount++;\n\t\t\tSystem.out.println(s);\n\t\t\tString points[] = s.split(\",\");\n\t\t\tmatrix = new double[points.length][cols];\n\t\t\tint k=0;\n\t\t\tfor(String p:points) {\n\t\t\t\tresultClusters.put(Integer.parseInt(p), count);\n\t\t\t\tArrayList<Double> features = geneAttributes.get(Integer.parseInt(p));\n\t\t\t\tdouble[] arr = new double[cols];\n\t\t\t\tfor(int i=0;i<features.size();i++)\n\t\t\t\t\tarr[i] = features.get(i);\n\t\t\t\tmatrix[k++] = arr;\n\t\t\t}\n\t\t\tpca_list.add(matrix);\n\t\t}\n\t\tPlot plot = new Plot((ArrayList<double[][]>) pca_list, \"HAC\");\n\t\tplot.plot();\n\t}",
"public static void knn(List<Integer> episodeLengths, List<Double> means, List<Double> pcts) throws Exception { \n\t\tSystem.out.println(\"Means: \" + means);\n\t\tSystem.out.println(\"Lengths: \" + episodeLengths);\n\t\tSystem.out.println(\"Pcts: \" + pcts);\n\t\t\n\t\tString key = System.currentTimeMillis() + \"\";\n\t\t\n\t\tBufferedWriter out = new BufferedWriter(new FileWriter(\"logs/synthetic-knn-\" + key + \".csv\"));\n\t\tout.write(\"classifier,elength,mean,pct,test,\" + BatchStatistics.csvHeader() + \"\\n\");\n\t\t\n\t\tfor (double pct : pcts) { \n\t\t\tfor (double mean : means) { \n\t\t\t\tfor (int length : episodeLengths) { \n\t\t\t\t\tSystem.out.println(\"Mean: \" + mean + \" Length: \" + length);\n\n\t\t\t\t\tString d1 = SyntheticData.generateABA(\"f\", 0, 0, length);\n\t\t\t\t\tString d2 = SyntheticData.generateABA(\"g\", mean, pct, length);\n\t\t\t\t\t\n\t\t\t\t\tif (!d1.equals(d2))\n\t\t\t\t\t\tthrow new RuntimeException(\"Directories not equal, but they should be.\");\n\n\t\t\t\t\tMap<String,List<Instance>> data = Utils.load(d1, SyntheticData.PREFIX, SequenceType.allen);\n\t\t\t\t\tList<String> classNames = new ArrayList<String>(data.keySet());\n\t\t\t\t\tCollections.sort(classNames);\n\n\t\t\t\t\tint[] ks = { 1, 10 };\n\t\t\t\t\tfor (int k : ks) { \n\t\t\t\t\t\tClassifyParams params = new ClassifyParams();\n\t\t\t\t\t\tparams.type = SequenceType.allen;\n\t\t\t\t\t\tparams.k = k;\n\t\t\t\t\t\tparams.weighted = true;\n\t\t\t\t\t\tClassifier c = Classify.knn.getClassifier(params);\n\n\t\t\t\t\t\tSplitAndTest sat = new SplitAndTest(Utils.EXPERIMENTS, 2.0/3.0);\n\t\t\t\t\t\tList<BatchStatistics> stats = sat.run(System.currentTimeMillis(), classNames, data, c);\n\n\t\t\t\t\t\tSummaryStatistics perf = new SummaryStatistics();\n\t\t\t\t\t\t// append to the file the results of this latest run...\n\t\t\t\t\t\tfor (int i = 0; i < stats.size(); ++i) { \n\t\t\t\t\t\t\tBatchStatistics batch = stats.get(i);\n\t\t\t\t\t\t\tout.write(batch.toCSV(\"knn\" + k + \",\" + length + \",\" + mean + \",\" + pct + \",\" + i + \",\", \"\"));\n\n\t\t\t\t\t\t\tperf.addValue(batch.accuracy());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tout.flush();\n\t\t\t\t\t\tSystem.out.println(\"[pct:\" + pct + \",mean:\" + mean + \",length:\" + length + \"] \" +\n\t\t\t\t\t\t\t\t\"performance: \" + perf.getMean() + \" sd -- \" + perf.getStandardDeviation());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"static ResultEvent classify(byte[][][][] data, int version, byte[] target) throws IOException {\n if (logger.isDebugEnabled()){\n logger.debug(\"Performing prediction...\");\n }\n\n String result = API.predict(PORT, Yolo.modelName, version, data, Yolo.signatureString);\n Gson g = new Gson();\n YoloResults yoloResults = g.fromJson(result, YoloResults.class);\n\n // Output tensor dimensions of YOLO\n float[][][][] predictions = new float[data.length][19][19][425];\n for(int i=0; i<data.length; i++){\n for(int x=0; x<19; x++){\n for(int y=0; y<19; y++){\n System.arraycopy(yoloResults.predictions[i][x][y], 0, predictions[i][x][y], 0, 425);\n }\n }\n }\n\n float[] certainty = null;\n\n return new ResultEvent(Configuration.ModelName.YOLO, target, predictions, certainty);\n }",
"private void renderCategories(){\n int[] arr = {1, 3, 6, 8, 10};\r\n for (int i : arr) requestQueue.add(getDataFromServer(webURL, String.valueOf(i)));\r\n }",
"public static AUCResult appendProcessedResult(BasicNetwork network, DataSet dataSet, int epoch) {\n MLDataSet dataSetTestingAdapted = new EncogMLDataSetTestingAdaptor(dataSet);\n\n double currentSignalAUC = 0.0;\n double step = 0.01;\n double previousOneMinusBackgroundRate = 0;\n double previousSignalRate = 0.0;\n\n // For each different threshold, calculate both signal and background rates.\n for( double threshold = 0.0; threshold < 1.0; threshold += step ) {\n int totalCorrectSignalSamples = 0;\n int totalWrongSignalSamples = 0;\n int totalCorrectBackgroundSamples = 0;\n int totalWrongBackgroundSamples = 0;\n int totalSamples = 0;\n int totalIdealSignalSamples = 0;\n int totalIdealBackgroundSamples = 0;\n \n int totalTrueSignal = 0;\n int totalTrueBackground = 0;\n \n // Go over the full testing set and check results.\n for ( MLDataPair pair : dataSetTestingAdapted ) {\n final MLData output = network.compute(pair.getInput());\n\n // This is specific to our case were we expect either one class or the other\n boolean netSignal = output.getData(0) > threshold ? true : false;\n boolean netBackground = output.getData(1) > threshold ? true : false;\n boolean idealSignal = pair.getIdeal().getData(0) > 0.5 ? true : false;\n \n if ( netSignal != netBackground ) {\n if ( idealSignal && netSignal ) {\n \ttotalCorrectSignalSamples++;\n \ttotalTrueSignal++;\n }\n if ( idealSignal && !netSignal ) totalWrongSignalSamples++;\n if ( !idealSignal && netSignal ) totalWrongBackgroundSamples++;\n if ( !idealSignal && !netSignal ) {\n \ttotalCorrectBackgroundSamples++;\n \ttotalTrueBackground++;\n }\n if ( idealSignal ) totalIdealSignalSamples++;\n if ( !idealSignal ) totalIdealBackgroundSamples++;\n }\n else {\n // Both classes cannot be of the same value, therefore resolution comes with where \n \t// values are: if above or below the threshold, and if ideal is signal or background.\n double doubleNetSignal = output.getData(0);\n double doubleNetBackground = output.getData(1);\n \n if ( idealSignal ) {\n \t// We are measuring only signal here.\n \t\ttotalIdealSignalSamples++;\n \t\tif ( doubleNetSignal < threshold ) totalWrongSignalSamples++;\n \t\tif ( doubleNetSignal > threshold ) totalCorrectSignalSamples++;\n \t}\n \telse {\n \t\t// We are measuring only background here.\n \t\ttotalIdealBackgroundSamples++;\n \t\tif ( threshold < doubleNetBackground ) totalCorrectBackgroundSamples++;\n \t\tif ( threshold > doubleNetBackground ) totalWrongBackgroundSamples++;\n \t}\n }\n\n totalSamples++;\n }\n\n double signalRate = (double) totalCorrectSignalSamples / (double) totalIdealSignalSamples;\n double backgroundRate = (double) totalCorrectBackgroundSamples / (double) totalIdealBackgroundSamples;\n double oneMinusBackgroundRate = 1.0 - backgroundRate;\n\n \tappend(epoch \n \t\t+ \",\" + threshold\n \t\t+ \",\" + totalCorrectSignalSamples\n \t\t+ \",\" + totalCorrectBackgroundSamples\n \t\t+ \",\" + totalWrongSignalSamples\n \t\t+ \",\" + totalWrongBackgroundSamples\n \t\t+ \",\" + totalIdealSignalSamples\n \t\t+ \",\" + totalIdealBackgroundSamples\n \t\t+ \",\" + totalSamples\n \t\t+ \",\" + signalRate\n \t\t+ \",\" + backgroundRate\n \t\t+ \",\" + oneMinusBackgroundRate\n \t\t+ \",\" + totalTrueSignal\n \t\t+ \",\" + totalTrueBackground\n \t\t+ \",\" + (totalTrueSignal + totalTrueBackground)\n );\n\n \tdouble xDelta = oneMinusBackgroundRate - previousOneMinusBackgroundRate;\n \tdouble ySignal = signalRate + previousSignalRate;\n \t\n \tdouble tempSignalAUC = ( ySignal * xDelta ) / 2.0;\n \tcurrentSignalAUC += tempSignalAUC;\n\n \tpreviousOneMinusBackgroundRate = oneMinusBackgroundRate;\n \tpreviousSignalRate = signalRate;\n }\n \n return new AUCResult(epoch, currentSignalAUC);\n }",
"public void getAllResults()\n {\n for(String module: modules.keySet())\n {\n getResults(module);\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html\");\n Categories recResp = new Categories();\n int getCount = 0;\n // recResp.recipeCategories.getRecipeCategory().get(0).categoryName;\n ArrayOfRecipeClassification tests = new ArrayOfRecipeClassification();\n GetRecipeCategoriesResponse ff = new GetRecipeCategoriesResponse();\n // rc = tests.recipeClassification;\n try (PrintWriter out = response.getWriter()) {\n /* TODO output your page here. You may use following sample code. */\n out.println(\"<!DOCTYPE html>\");\n out.println(\"<html>\");\n out.println(\" <style>\\n\" +\n \"#header {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#nav {\\n\" +\n \" line-height:30px;\\n\" +\n \" background-color:#eeeeee;\\n\" +\n \" \\n\" +\n \" width:100px;\\n\" +\n \" float:left;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"#row {\\n\" +\n \" display:inline-block;\\n\" +\n \"}\\n\" +\n \"#sectionl {\\n\" +\n \" width:350px;\\n\" +\n \" float:left;\\n\" +\n \" padding:30px;\\n\" +\n \"}\\n\" +\n \"#sectionC {\\n\" +\n \" width:500px;\\n\" +\n \" float:center;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"#sectionr {\\n\" +\n \" width:250px;\\n\" +\n \" float:right;\\n\" +\n \" padding:10px;\\n\" +\n \"}\\n\" +\n \"\\n\" +\n \"#footer {\\n\" +\n \" background-color:green;\\n\" +\n \" color:white;\\n\" +\n \" clear:both;\\n\" +\n \" text-align:center;\\n\" +\n \" padding:5px;\\n\" +\n \"}\\n\" +\n \"</style> \");\n out.println(\"<head>\" );\n out.println(\"<LINK href=\\\"C:/Users/hanemay/Documents/NetBeansProjects/CookingApp/web/style.css\\\" rel=\\\"stylesheet\\\" type=\\\"text/css\\\">\");\n out.println(\"<div id=\\\"header\\\">\\n\" +\n \"<h1>Kraft Recipes</h1>\\n\" +\n \"</div>\");\n out.println(\"</head>\");\n out.println(\"<body>\");\n Enumeration<String> infomaterials= request.getParameterNames();\n while(infomaterials.hasMoreElements()) {\n System.out.println(infomaterials.nextElement()); \n } \n int amount = 100;\n String[] test = recResp.returnCats();\n try{\n amount = Integer.parseInt(request.getParameter(\"Question3\"));\n }catch(Exception e){\n \n }\n Recipes reccResp = new Recipes(amount); \n try{\n if(request.getParameter(\"isHealthy\").equalsIgnoreCase(\"healthy\"))\n reccResp.setHealthy(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"isFastFood\").equalsIgnoreCase(\"Fast food\"))\n reccResp.setUnder30Minutes(true);\n }catch(Exception e){}\n try{\n if(request.getParameter(\"reqPic\").equalsIgnoreCase(\"Pictures required\"))\n reccResp.setbIsRecipePhotoRequired(true);\n }catch(Exception e){}\n reccResp.setbIsRecipePhotoRequired(true);\n while(recResp.amountOfCategories != getCount){\n reccResp.setbIsRecipePhotoRequired(true);\n reccResp.Search(recResp,recResp.recResp.getRecipeCategories().getRecipeCategory().get(getCount).categoryID);\n RecipeSummariesResponse recSumResp = reccResp.results();\n for(int recNames = 0; recNames < reccResp.getMaxAmountItems(); recNames++) {\n String url = recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).photoURL;\n if(recNames == 0){\n out.println(\"<div id=\\\"sectionC\\\">\\n\" +\n \"<h2>\"+test[getCount]+\"</h2>\\n\" +\n \"</div>\");}\n // if(recNames % 2==0){\n out.println(\"<div \\\"row\\\">\\n\" +\n \"<div id=\\\"sectionl\\\">\\n\" +\n \"<h3>\"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).recipeName+\"</h3>\\n\" + \n \"<img src=\\\"\"+url+\"\\\" style=\\\"height:254px;width:254px\\\">\\n\" +\n \"<p>\\n\" +\n \"<p>Number of ingrediens needed for this recipe : \"+reccResp.recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()+\"</p>\\n\" +\n \"\");\n RecipeDetailResponse rec = reccResp.soapService.getRecipeByRecipeID(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getRecipeID(), true, 1, 1);\n for(int ingredientCounter = 0; ingredientCounter < Integer.parseInt(recSumResp.getRecipeSummaries().getRecipeSummary().get(recNames).getNumberOfIngredients()); ingredientCounter++ ){\n out.println(\"<p>\" + rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).ingredientName + \" amount : \"+ rec.recipeDetail.ingredientDetails.getIngredientDetail().get(ingredientCounter).quantityNum+\" \"+\n \"</p>\");\n }\n out.println(\"</p>\");\n out.println(\"</div>\\n\" );\n } \n getCount ++;\n }\n out.println(\"</body>\"); \n out.println(\"</html>\");\n }\n }",
"public double classifyAll(String testDataFolder)\n\t{\n\t\tFile folder = new File(testDataFolder);\n\t\tFile[] listOfFiles = folder.listFiles();\n\t\tdouble accuracy = 0.0;\n\t\tint correct_classifications = 0;\n\t\tint testdata = 0;\n\t\tfor(int i=0;i<listOfFiles.length;i++){\n\t\t\tString doc = \"\";\n\t\t\ttry {\n\t\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(listOfFiles[i].getAbsoluteFile()));\n\t\t\t\t\tint count = 0;\n\t\t\t\t\tint actual_count = 0;\n\t\t\t\t\tint class_=0;\n\t\t\t\t\tint[] correct = new int[numClasses];\n\t\t\t\t\tint[] test = new int[numClasses];\n\t\t\t\t\tString line = \"\";\n\t\t\t\t\tint tabIndex=0;\n\t\t\t\t\tallDocs = new ArrayList<String>();\n\t\t\t\t\twhile((line=reader.readLine())!=null && !line.isEmpty()){\n\t\t\t\t\t\ttestdata++;\n\t\t\t\t\t\ttabIndex = line.indexOf('\\t');\n\t\t\t\t\t\tString type = line.substring(0, tabIndex);\n\t\t\t\t\t\tString msg = line.substring(tabIndex + 1);\n\t\t\t\t\t\tmsg = msg.toLowerCase();\n\t\t\t\t\t\tif(type.equals(\"ham\")){class_ = 0;}\n\t\t\t\t\t\telse{class_ = 1;}\n\t\t\t\t\t\ttest[class_]++;\n\t\t\t\t\t\tactual_count = actual_count + class_;\n\t\t\t\t\t\tint label = classify(msg);\n\t\t\t\t\t\tcount = count + label;\n\t\t\t\t\t\t//System.out.println(label+\"/\"+class_+\" \"+count);\n\t\t\t\t\t\tif(label-class_==0){\n\t\t\t\t\t\t\tcorrect_classifications++;\n\t\t\t\t\t\t\tcorrect[class_]++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tint label = classify(doc);\n\t\t\t\tif(label - class_==0){correct[class_]++;}\n\t\t\t} \n\t\t\tcatch (IOException e){e.printStackTrace();}\n\t\t}\n\t\taccuracy = Math.round(correct_classifications * 1000.0 / testdata)/1000.0;\n\t\tSystem.out.println(\"Accuracy: \"+accuracy);\n\t\treturn accuracy;\n\t}",
"public static void process(List<Measurement> measurements) {\n Collections.sort(measurements);\n try {\n FileWriter csvWriter = new FileWriter(\"summary.csv\");\n String[] header = {\"Test_UID\", \"Min Height\", \"Min Height Location\",\n \"Max Height\", \"Max Height Location\", \"Mean Height\",\"Height Range\",\n \"Average Roughness\", \"Root Mean Square Roughness (Standard Deviation)\",\n \"Measurements Inside Filter\", \"Measurements Outside Filter\"};\n csvWrite(csvWriter, header);\n\n System.out.println(\"How many standard deviations to use as a filter? (Default is 3)\");\n String input = scanner.next();\n int numFilter = 3;\n try {\n numFilter = Integer.parseInt(input);\n } catch (NumberFormatException e){\n System.out.println(\"Error: Integer not inputted.\");\n } finally {\n System.out.println(\"Filtering to \" + numFilter+ \" standard deviations.\");\n }\n\n int count = 0;\n // measurements list is sorted by test_uid\n // so we can set the for loop limit to the test_uid of the last element\n // in the measurements list\n for (int i = 1; i <= measurements.get(measurements.size()-1).getTest_uid(); i++) {\n List<Measurement> list = new ArrayList<>();\n\n while (count != measurements.size() && measurements.get(count).getTest_uid() == i) {\n list.add(measurements.get(count));\n count++;\n }\n\n String[] data = calculateTest(list, i, numFilter);\n csvWrite(csvWriter, data);\n csvWriter.write(\"\\n\");\n }\n csvWriter.close();\n\n } catch (IOException e) {\n System.out.println(\"Writing error: \" + e.getMessage());\n }\n }",
"public void printResults() {\r\n System.out.printf(\"\\nHistory\\n\\n\");\r\n String format = \"%-25s %s from %s\\n\";\r\n Collections.sort(results);\r\n for(Data data : results) {\r\n System.out.printf(format, data.getName(),\r\n defaultFormatter.format(data.getDate()), data.getComputer());\r\n }\r\n }",
"public void outputResults(int K)\n {\n //collect all sets\n int region_counter=1;\n ArrayList<Pair<Integer>> sorted_regions = new ArrayList<Pair<Integer>>();\n\n int width = this.image.getWidth();\n int height = this.image.getHeight();\n for(int h=0; h<height; h++){\n for(int w=0; w<width; w++){\n int id=getID(new Pixel(w,h));\n int setid=ds.find(id);\n if(id!=setid) continue;\n sorted_regions.add(new Pair<Integer>(ds.get(setid).size(),setid));\n }//end for w\n }//end for h\n\n //sort the regions\n Collections.sort(sorted_regions, new Comparator<Pair<Integer>>(){\n @Override\n public int compare(Pair<Integer> a, Pair<Integer> b) {\n if(a.p!=b.p) return b.p-a.p;\n else return b.q-a.q;\n }\n });\n\n //recolor and output region info\n\t\t\n //Todo: Your code here (remove this line)\n //Hint: Use image.setRGB(x,y,c.getRGB()) to change the color of a pixel (x,y) to the given color \"c\"\n\n //save output image\n String out_filename = img_filename+\"_seg_\"+K+\".png\";\n try\n {\n File ouptut = new File(out_filename);\n ImageIO.write(this.image, \"png\", ouptut);\n System.err.println(\"- Saved result to \"+out_filename);\n }\n catch (Exception e) {\n System.err.println(\"! Error: Failed to save image to \"+out_filename);\n }\n }",
"public void generateOutputData() {\n\t\tArrayList<String> inputDataArray = new ArrayList<String>();\n\t\tif (removeDuplicates) {\n\t\t\tinputDataArray = removeDuplicates();\n\t\t} else {\n\t\t\tinputDataArray = inputDataValues;\n\t\t}\n\t\t\n\t\toutputDataValues.clear();\n\t\tString outputDataValue = \"\";\n\t\tif (inputDataArray.isEmpty()) {\n\t\t\toutputDataValue = getOutputDataValue(\"\");\n\t\t\toutputDataValues.add(outputDataValue);\n\t\t} else {\n\t\t\tfor (String inputDataValue: inputDataArray) {\n\t\t\t\toutputDataValue = getOutputDataValue(inputDataValue);\n\t\t\t\toutputDataValues.add(outputDataValue);\n\t\t\t}\n\t\t}\n\t}",
"public void showCatalogue() {\n for (Record r : cataloue) {\n System.out.println(r);\n }\n }",
"private List<Category> extractTargets() {\n List<String> names = getNames(\"category\");\n CategorySelectAsyncTask task = new CategorySelectAsyncTask();\n CategoryMapper mapper = new CategoryMapper();\n task.setNames(names);\n List<Category> list = new ArrayList<>();\n try {\n list.addAll(mapper.to(task.execute().get()));\n } catch (ExecutionException | InterruptedException e) {\n Log.e(TAG, \"extractTargets: \" + e.getMessage(), e);\n }\n return list;\n }",
"public interface Aggregation {\n\n final int SST = 0;\n final int SST_ANOMALY = 1;\n final int RANDOM_UNCERTAINTY = 2;\n final int COVERAGE_UNCERTAINTY = 3;\n final int LARGE_SCALE_UNCERTAINTY = 4;\n final int ADJUSTMENT_UNCERTAINTY = 5;\n final int SYNOPTIC_UNCERTAINTY = 6;\n final int SEA_ICE_FRACTION = 7;\n\n long getSampleCount();\n\n Number[] getResults();\n\n public double getSeaSurfaceTemperature();\n\n public double getSeaSurfaceTemperatureAnomaly();\n\n public double getRandomUncertainty();\n\n public double getLargeScaleUncertainty();\n\n public double getCoverageUncertainty();\n\n public double getAdjustmentUncertainty();\n\n public double getSynopticUncertainty();\n\n public double getSeaIceFraction();\n}",
"public static void main(String[] args) {\n Kurs kurs1= new Kurs(1,\"Java Kamp Kursu\",\"Sifirdan Zirveye\",\"Java.jpeg\");\n\n\n Kurs kurs2= new Kurs();\n kurs2.name=\"C# KAMP KURSU\";\n kurs2.id=2;\n kurs2.details=\"C# SIFIRDAN ZIRVEYE PROFESYONEL TEKNIKLERLE\";\n kurs2.image=\"C#.jpeg\";\n\n\n Kurs[] kurslar= {kurs1,kurs2};\n\n for (Kurs kurs : kurslar) {\n System.out.println(kurs.name+\" \"+kurs.details);\n }\n\n System.out.println(kurs1.id+\" \"+kurs1.name+\" \"+kurs1.details+\" \"+kurs1.image);\n\n Category category1=new Category();\n category1.id=1;\n category1.Name=\"KURSLAR\";\n\n\n KursManager kursManager=new KursManager();\n kursManager.kaydol(kurs1);\n\n\n\n }",
"public static void main(String[] args) {\n\n int response [] = {1, 2, 5, 4, 3, 5, 2, 1, 3, 3, 1, 4, 3, 3, 3, 1 ,2, 3, 3, 2, 2};\n int frequency []=new int [6];\n\n for(int counter = 1; counter < response.length; counter++)\n {\n try\n {\n ++frequency[response[counter]];\n }\n catch (ArrayIndexOutOfBoundsException e)\n {\n System.out.println(e);\n\n System.out.printf(\" response[%d] = %d\\n\", counter, response[counter]);\n }\n }\n\n System.out.printf(\"%s%10s\\n\", \"Rating\", \"Frequency\");\n\n for(int rating = 1; rating < frequency.length; rating++)\n System.out.printf(\"%5d%10d\\n\", rating, frequency[rating]);\n }",
"public static void main(String[] args) {\n\t\ttry (InputStream modelInputStream = new FileInputStream(new File(\"en-frograt.bin\"));) {\r\n\r\n\t\t\tString testString = \"Amphibians are animals that dwell in wet environments\";\r\n\t\t\t\r\n\t\t\tDoccatModel documentCategorizationModel = new DoccatModel(modelInputStream);\r\n\t\t\tDocumentCategorizerME documentCategorizer = new \r\n\t\t\tDocumentCategorizerME(documentCategorizationModel);\r\n\t\t\t\r\n\t\t\tdouble[] probabilities = documentCategorizer.categorize(testString);\r\n\t\t\tString bestCategory = documentCategorizer.getBestCategory(probabilities);\r\n\t\t\tSystem.out.println(\"The best fit is: \" + bestCategory);\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < documentCategorizer.getNumberOfCategories(); i++) {\r\n\t\t\t System.out.printf(\"Category: %-4s - %4.2f\\n\", \r\n\t\t\t documentCategorizer.getCategory(i), probabilities[i]);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(documentCategorizer.getAllResults(probabilities));\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t // Handle exceptions\r\n\t\t} catch (IOException e) {\r\n\t\t // Handle exceptions\r\n\t\t}\r\n\t}",
"public static CategoryDataset createSampleDataset() {\n \t\n \t// row keys...\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n\n // column keys...\n final String type1 = \"Type 1\";\n final String type2 = \"Type 2\";\n final String type3 = \"Type 3\";\n final String type4 = \"Type 4\";\n final String type5 = \"Type 5\";\n final String type6 = \"Type 6\";\n final String type7 = \"Type 7\";\n final String type8 = \"Type 8\";\n\n // create the dataset...\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n dataset.addValue(1.0, series1, type1);\n dataset.addValue(4.0, series1, type2);\n dataset.addValue(3.0, series1, type3);\n dataset.addValue(5.0, series1, type4);\n dataset.addValue(5.0, series1, type5);\n dataset.addValue(7.0, series1, type6);\n dataset.addValue(7.0, series1, type7);\n dataset.addValue(8.0, series1, type8);\n\n dataset.addValue(5.0, series2, type1);\n dataset.addValue(7.0, series2, type2);\n dataset.addValue(6.0, series2, type3);\n dataset.addValue(8.0, series2, type4);\n dataset.addValue(4.0, series2, type5);\n dataset.addValue(4.0, series2, type6);\n dataset.addValue(2.0, series2, type7);\n dataset.addValue(1.0, series2, type8);\n\n dataset.addValue(4.0, series3, type1);\n dataset.addValue(3.0, series3, type2);\n dataset.addValue(2.0, series3, type3);\n dataset.addValue(3.0, series3, type4);\n dataset.addValue(6.0, series3, type5);\n dataset.addValue(3.0, series3, type6);\n dataset.addValue(4.0, series3, type7);\n dataset.addValue(3.0, series3, type8);\n\n return dataset;\n \n }",
"public static void main(String[] args) throws SQLException {\n\t\tEventExtractionWithoutBackGround bsl = new EventExtractionWithoutBackGround();\r\n//\t\ttry {\r\n//\t\t\tbsl.test();\r\n//\t\t} catch (IOException e) {\r\n//\t\t\t// TODO Auto-generated catch block\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t\t\r\n\t\tString sent =\"中俄两军第二十轮战略磋商在北京举行\";\r\n\t\tString newsURL = null;\r\n\t\tString imgAddress = null;\r\n\t\tString newsID = null;\r\n\t\tString saveTime = null;\r\n\t\tString newsTitle = null;\r\n\t\tString placeEntity = null;\r\n\t\tboolean isSummary = false;\r\n\t\tPair<String, LabelItem> result = bsl.extractbysentence(newsURL, imgAddress, newsID, saveTime, newsTitle, sent, placeEntity, isSummary);\r\n\t\tSystem.out.print(sent+'\\t'+result.getSecond().triggerWord+\"\\t\"+result.getSecond().sourceActor+'\\t'+result.getSecond().targetActor+\"\\n\");\r\n\t\tSystem.out.println(result.getSecond().eventTime);\r\n//\t\t\r\n\t}",
"@GetMapping(\"/activity/{category}\")\n Stats getStats(@PathVariable(value = \"category\") StatsCategory category) {\n Stats stats = new Stats();\n log.info(\"getting all activity\");\n List<Activity> allActivity = repository.findAll();\n Collections.sort(allActivity);\n Map<String, Integer> stepsByCategory = new TreeMap<String, Integer>();\n switch (category) {\n case DAILY:\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.DAY_OF_YEAR);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = DAY + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n break;\n case WEEKLY:\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.WEEK_OF_YEAR);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = WEEK + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n break;\n case MONTHLY:\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.MONTH);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = MONTH + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n break;\n default:\n break;\n }\n List<Details> details = new ArrayList<Stats.Details>();\n if(stepsByCategory != null) {\n for (Entry entry : stepsByCategory.entrySet()) {\n Details stat = stats.new Details();\n stat.key = entry.getKey().toString();\n stat.steps = entry.getValue().toString();\n details.add(stat);\n }\n stats.setDetails(details);\n }\n //stats.setStepsByCategory(stepsByCategory);\n stats.setCategory(category);\n return stats;\n }",
"@Override\r\n public void run() {\n int nchannels = parentFeature.getNchannels();\r\n\r\n ArrayList<Feature> set1, set2;\r\n String nameSet1, nameSet2;\r\n double dThresh = threshdist;\r\n double[] getMeanMedStdSet1, histo;\r\n String setPairNameCentroidNND, setPairNameEdgeNND;\r\n\r\n // compute the histograms \r\n computeHistogramBins();\r\n\r\n // first compute the distances between the features in each of the channels. \r\n for (int c1 = 0; c1 < nchannels; c1++) {\r\n // get the features we are going to compute the distances between. \r\n set1 = parentFeature.getFeatures(c1, featureName1);\r\n for (int c2 = 0; c2 < nchannels; c2++) {\r\n if (c1 == c2) {\r\n continue;\r\n }\r\n // the set we will compute the distance from. \r\n set2 = parentFeature.getFeatures(c2, featureName2);\r\n // The names used as keys within the Features numerical property may for the channel to channel distance. \r\n// nameSet1 = (C_EXT + (c1 + 1));\r\n// nameSet2 = (C_EXT + (c2 + 1));\r\n nameSet1 = (\"\" + (c1 + 1));\r\n nameSet2 = (\"\" + (c2 + 1));\r\n setPairNameCentroidNND = D_NN_CENT + C_EXT + \"_\" + nameSet1 + \"-\" + nameSet2;\r\n setPairNameEdgeNND = D_NN_EDGE + C_EXT + \"_\" + nameSet1 + \"-\" + nameSet2;\r\n\r\n // Compute the nearest neighbour distances between the sets. \r\n computePairedDistances(set1, set2, nameSet1, nameSet2);\r\n\r\n // some global NND stats \r\n getMeanMedStdSet1 = getMeanMedStd(set1, setPairNameCentroidNND, dThresh);\r\n parentFeature.addNumericProperty(setPairNameCentroidNND + MEAN_EXT, getMeanMedStdSet1[0]);\r\n parentFeature.addNumericProperty(setPairNameCentroidNND + MED_EXT, getMeanMedStdSet1[1]);\r\n parentFeature.addNumericProperty(setPairNameCentroidNND + STD_EXT, getMeanMedStdSet1[2]);\r\n parentFeature.addNumericProperty(setPairNameCentroidNND + FRAC_NN, getMeanMedStdSet1[3]);\r\n\r\n // now compute the histogram of the nearest neighbours\r\n histo = computeHistrogram(set1, setPairNameCentroidNND);\r\n\r\n // save the histogram as well\r\n parentFeature.addObjectProperty(setPairNameCentroidNND + HIST, Arrays.copyOf(histo, histoBins.length));\r\n parentFeature.addObjectProperty(setPairNameCentroidNND + HISTBINS, Arrays.copyOf(histoBins, histoBins.length));\r\n\r\n if (doPFA) {\r\n // proximal feature analysis. \r\n HashMap<String, Double> pfa;\r\n pfa = doPFAsetPair(set1, setPairNameCentroidNND, pfaFeatureNames); \r\n // store in the parent feature for saving later. \r\n parentFeature.addObjectProperty(setPairNameCentroidNND + \"_\" + PFA_EXT, pfa);\r\n //\r\n if(edgeDistance){\r\n // store in the parent feature for saving later. \r\n parentFeature.addObjectProperty(setPairNameEdgeNND + \"_\" + PFA_EXT, pfa);\r\n }\r\n }\r\n\r\n }\r\n }\r\n\r\n // stop here \r\n if (nRandomisations == 0) {\r\n return;\r\n }\r\n\r\n //System.out.println(\" started randomisations \");\r\n HashMap<String, ArrayList<Double>> statMap = new HashMap<String, ArrayList<Double>>();\r\n HashMap<String, double[][]> histogramValuesMap = new HashMap<String, double[][]>();\r\n\r\n long rand_seed;\r\n // Perform the same analysis but randomise the features of each set. \r\n for (int i = 0; i < nRandomisations; i++) {\r\n // get all of the feature sets for each channel. \r\n for (int c1 = 0; c1 < nchannels; c1++) {\r\n // the set we will keep fixed. \r\n set1 = FeatureOps.duplicateFeatureSet(parentFeature.getFeatures(c1, featureName1));\r\n // compute distance to features in the other sets. \r\n for (int c2 = 0; c2 < nchannels; c2++) {\r\n if (c1 == c2) {\r\n continue;\r\n }\r\n // random seed number for the random number generation. \r\n rand_seed = System.currentTimeMillis();\r\n set2 = FeatureOps.randomizeFeaturePositions(parentFeature, parentFeature.getFeatures(c2, featureName2), rand_seed);\r\n\r\n // The names used as keys within the Features numerical property may for the channel to channel distance. \r\n// nameSet1 = (C_EXT + (c1 + 1));\r\n// nameSet2 = (C_EXT + (c2 + 1));\r\n nameSet1 = (\"\" + (c1 + 1));\r\n nameSet2 = (\"\" + (c2 + 1));\r\n setPairNameCentroidNND = D_NN_CENT + C_EXT + \"_\" + nameSet1 + \"-\" + nameSet2;\r\n setPairNameEdgeNND = D_NN_EDGE + C_EXT + \"_\" + nameSet1 + \"-\" + nameSet2;\r\n \r\n // compute the distance between the \r\n computePairedDistances(set1, set2, nameSet1, nameSet2);\r\n\r\n // now compute the histogram of the nearest neighbours\r\n histo = computeHistrogram(set1, setPairNameCentroidNND);\r\n // save the histogram for this current iteration. \r\n addHistogram2map(histogramValuesMap, histo, setPairNameCentroidNND, i);\r\n\r\n // Do some NND global stats\r\n getMeanMedStdSet1 = getMeanMedStd(set1, setPairNameCentroidNND, dThresh);\r\n addValueToStatMap(statMap, setPairNameCentroidNND + MEAN_EXT, getMeanMedStdSet1[0]);\r\n addValueToStatMap(statMap, setPairNameCentroidNND + MED_EXT, getMeanMedStdSet1[1]);\r\n addValueToStatMap(statMap, setPairNameCentroidNND + STD_EXT, getMeanMedStdSet1[2]);\r\n addValueToStatMap(statMap, setPairNameCentroidNND + FRAC_NN, getMeanMedStdSet1[3]);\r\n }\r\n }\r\n }\r\n\r\n // now compute some stats for the randomised values\r\n Set<String> keys = statMap.keySet();\r\n double meanMean, pMean;\r\n double[] values;\r\n ArrayList<Double> vs;\r\n\r\n //System.out.println(\" sitsize \" + keys.size());\r\n for (String s : keys) {\r\n // walues for this \r\n vs = statMap.get(s);\r\n // extract the values \r\n values = List2Prims.doubleFromDouble(vs);\r\n meanMean = StatUtils.mean(values);\r\n pMean = TestUtils.tTest(parentFeature.getNumericPropertyValue(s), values);\r\n // store the values\r\n parentFeature.addNumericProperty(s + RAND_EXT, meanMean);\r\n parentFeature.addNumericProperty(s + RAND_EXT + PV, pMean);\r\n }\r\n\r\n // Compute the mean and standard deviation of the randomised histograms\r\n // and save in the parent features object map for saving later on. \r\n Set<String> histoKeys = histogramValuesMap.keySet();\r\n double[][] binsMeanStdevs;\r\n for (String s : histoKeys) {\r\n // histograms for this\r\n double[][] histos = histogramValuesMap.get(s);\r\n binsMeanStdevs = computeMeanAndStdevHistogram(histos);\r\n // save the values \r\n parentFeature.addObjectProperty(s + HIST + MEAN_EXT + RAND_EXT, Arrays.copyOf(binsMeanStdevs[1], binsMeanStdevs[1].length));\r\n parentFeature.addObjectProperty(s + HIST + STD_EXT + RAND_EXT, Arrays.copyOf(binsMeanStdevs[2], binsMeanStdevs[2].length));\r\n }\r\n\r\n }",
"public void readInCategories() {\n // read CSV file for Categories\n allCategories = new ArrayList<Category>();\n InputStream inputStream = getResources().openRawResource(R.raw.categories);\n CSVFile csvFile = new CSVFile(inputStream);\n List scoreList = csvFile.read();\n // ignore first row because it is the title row\n for (int i = 1; i < scoreList.size(); i++) {\n String[] categoryInfo = (String[]) scoreList.get(i);\n\n // inputs to Category constructor:\n // String name, int smallPhotoID, int bannerPhotoID\n\n // get all image IDs according to the names\n int smallPhotoID = context.getResources().getIdentifier(categoryInfo[1], \"drawable\", context.getPackageName());\n int bannerPhotoID = context.getResources().getIdentifier(categoryInfo[2], \"drawable\", context.getPackageName());\n allCategories.add(new Category(categoryInfo[0],smallPhotoID, bannerPhotoID));\n\n //System.out.println(\"categoryInfo: \" + categoryInfo[0] + \" \" + categoryInfo[1] + \" \" + categoryInfo[2]);\n }\n }",
"public static void main(String[] args)\r\n {\n Date date = new Date();\r\n Calendar calendar = Calendar.getInstance();\r\n calendar.setTime(date);\r\n \r\n year = calendar.get(Calendar.YEAR);\r\n month = calendar.get(Calendar.MONTH) + 1; // Januarry is Month 0 ???\r\n day = calendar.get(Calendar.DAY_OF_MONTH);\r\n \r\n //initialize a dictionary.\r\n Hdict dict = new Hdict();\r\n leechYahoo(dict);\r\n leechNytimes(dict);\r\n leechCNN(dict);\r\n //fox doesn't work, have to find the conversation element.\r\n //leechFOX(dict);\r\n \r\n Words[] output = dict.toArr();\r\n Hdict.arrSort(output);\r\n \r\n for(int i = 0; i < output.length; i++)\r\n {\r\n System.out.println(\"word \" + output[i].getName() + \" has popularity \" + output[i].getPopularity());\r\n }\r\n }",
"@Nonnull\n @Override\n public Iterable<KeyValueObject<KOUT, VOUT>> collect() {\n return output.collect();\n }",
"protected void calculaterVSMforAllQuery(String type)\n {\n ArrayList<String> resultAll=new ArrayList<>();\n for(String qid: this.queryTFscore.keySet())\n {\n //System.out.println(qid+\"----------------------------------------------------------------------------------------------\"+this.maxLength+\" \"+this.minLength);\n HashMap<String, Double> queryInfo=this.queryTFscore.get(qid);\n System.out.println(qid+\" \"+queryInfo);\n HashMap <String, Double> finalResult=new HashMap<>();\n for(String docID:this.corpusTFscore.keySet())\n {\n HashMap<String, Double> docInfo=this.corpusTFscore.get(docID);\n double upperscore=this.calculateUpperPart(queryInfo, docInfo, docID);\n double lowerscore=this.calculateLowerPart(queryInfo, docInfo, docID);\n double score=0.0;\n \n //Calculate gTerms\n //Calculate Nx\n double Nx=0.0;\n if(this.LengthInfoMap.containsKey(docID)){\n Nx=(this.LengthInfoMap.get(docID)-this.minLength)/(this.maxLength-this.minLength);\n }\n \n //Calculate gTerms\n double gTerms=1/(1+Math.exp(-Nx));\n if(upperscore!=0&&lowerscore!=0) score=gTerms*(upperscore)/lowerscore;\n //if(upperscore!=0&&lowerscore!=0) score=(upperscore)/lowerscore;\n if(score>0) {\n //System.out.println(docID+\" = \"+score);\n finalResult.put(docID, score);\n }\n \n }\n HashMap<String, Double> normalizedAndSortedResult=doNormalization(finalResult);\n //HashMap<String, Double> sortedResult=MiscUtility.sortByValues(finalResult);\n //System.out.println(normalizedAndSortedResult);\n int count=0;\n for(String docID:normalizedAndSortedResult.keySet())\n {\n if(count>9) break;\n String fullPath=this.corpusMap.get(docID);\n resultAll.add(qid+\",\"+fullPath+\",\"+normalizedAndSortedResult.get(docID));\n count++;\n }\n }\n ContentWriter.writeContent(this.base+\"\\\\Result\\\\\"+this.corpus+\"_result\"+type+\".txt\", resultAll);\n }",
"private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }",
"void createdOutput(TestResult tr, Section section, String outputName);",
"public void printAnalysis(){\n System.out.println(\"Product: \" + this.getName());\n System.out.println(\"History: \" + this.history());\n System.out.println(\"Largest amount of product: \" + this.inventoryHistory.maxValue());\n System.out.println(\"Smallest amount of product: \" + this.inventoryHistory.minValue());\n System.out.println(\"Average: \" + this.inventoryHistory.average());\n }",
"public void process()\n {\n for (int i = 0; i <= names.length-1; i++)\n {\n int x = 0;\n System.out.println(\"\");\n System.out.print(names[i] + \" had test scores of \");\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n System.out.print(scores[i][j] + \", \");\n \n x += scores[i][j];\n \n }\n System.out.print(\" Test average is \" + x/4 + \".\");\n }\n System.out.println(\"\");\n findL();\n findH();\n findAvg();\n }",
"private static void printOutput (int[][] results)\n {\n for (int i=0; i<=results[0].length-1; i++)\n {\n System.out.println(results[0][i] +\",\"+ results[1][i]);\n }\n System.out.println();\n }",
"public void ExperimentResults() {\n\t\t/*\n\t\t * Creating a ScreenPresenter. To create other ResultsPresenter, the\n\t\t * better idea is to create a Factory.\n\t\t */\n\t\tResultPresenter presenter = new ScreenPresenter();\n\t\tpresenter.setText(evaluator.evalResults.resultsInText());\n\n\t}",
"@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 }",
"private void printResults() {\n\t\tfor (Test test : tests) {\n\t\t\ttest.printResults();\n\t\t}\n\t}",
"public void Report() throws IOException {\n\t\tFile outputFile = new File(outputPath);\n\n\t\tif(!outputFile.exists()) {\n\t\t\toutputFile.createNewFile();\n\t\t}\n\t\t\n\t\tFileWriter writer = new FileWriter(outputPath);\n\t\tLinkedHashMap<Word, Integer> sortedResult = sortByValue();\n\t\tfloat frequency;\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor(Map.Entry<Word, Integer> entry: sortedResult.entrySet()) {\n\t\t\tsb.setLength(0);\n\t\t\t\n\t\t\tfor(char c: entry.getKey().getCharacters()) {\n\t\t\t\tsb.append(c + \", \");\n\t\t\t}\n\t\t\t\n\t\t\tsb.delete(sb.length()-2, sb.length());\n\t\t\tfrequency = (float)entry.getValue()/(float)total_targets;\n\t\t\twriter.write(\"{(\" + sb.toString() + \"), \" + entry.getKey().getLength() +\n\t\t\t\t\t\t\t\"} = \" + String.format(\"%.2f\",Math.round(frequency * 100.0) / 100.0) +\n\t\t\t\t\t\t\t\" (\" + entry.getValue() + \"/\" + total_targets + \")\\n\");\n\t\t\t\n\t\t\tSystem.out.println(\"{(\" + sb.toString() + \"), \" + entry.getKey().getLength() +\n\t\t\t\t\t\t\t\t\"} = \" + String.format(\"%.2f\",Math.round(frequency * 100.0) / 100.0) +\n\t\t\t\t\t\t\t\t\" (\" + entry.getValue() + \"/\" + total_targets + \")\");\n\t\t}\n\t\tfrequency = (float)total_targets/(float)total;\n\t\t\n\t\tSystem.out.println(\"TOTAL Frequency: \" + Math.round(frequency * 100.0) / 100.0 + \"(\" + total_targets + \"/\" + total + \")\");\n\t\twriter.write(\"TOTAL Frequency: \" + Math.round(frequency * 100.0) / 100.0 + \"(\" + total_targets + \"/\" + total + \")\\n\");\n\t\t\n\t\twriter.close();\n\t}",
"public void displayResult()\n {\n for(int i = 0; i < this.etatPopulation.size(); i++)\n {\n String line = \"\";\n for (int j = 0; j < this.etatPopulation.get(i).size(); j++)\n {\n line += this.etatPopulation.get(i).get(j).toString() + \" \";\n }\n System.out.println(line);\n }\n }",
"protected void doClassificationReport(ClassificationAlgorithm algorithm)\n\t{\n\t\t// Test report name\n\t\tString testReportFilename = \"TestClassificationReport.txt\";\n\t\t// Train report name\n\t\tString trainReportFilename = \"TrainClassificationReport.txt\";\n\t\t// Test report file\n\t\tFile testReportFile = new File(reportDirectory, testReportFilename);\n\t\t// Train report file\n\t\tFile trainReportFile = new File(reportDirectory, trainReportFilename);\n\t\t// Test file writer\n\t\tFileWriter testFile = null;\n\t\t// Train file writer\n\t\tFileWriter trainFile = null;\n\t\t// Number of conditions\n\t\tint conditions = 0;\n\t\t// Classifier\n\t\tIClassifier classifier = algorithm.getClassifier();\n\n\t\tint[][] confusionMatrixTrain = classifier.getConfusionMatrix(algorithm.getTrainSet());\n\t\tint[][] confusionMatrixTest = classifier.getConfusionMatrix(algorithm.getTestSet());\n\n\t\tint[] numberInstancesTrain = new int[confusionMatrixTrain.length];\n\t\tint[] numberInstancesTest = new int[confusionMatrixTest.length];\n\t\tint correctedClassifiedTrain = 0, correctedClassifiedTest = 0;\n\n\t\tfor(int i = 0; i < confusionMatrixTrain.length; i++)\n\t\t{\n\t\t\tcorrectedClassifiedTrain += confusionMatrixTrain[i][i];\n\t\t\tcorrectedClassifiedTest += confusionMatrixTest[i][i];\n\n\t\t\tfor(int j = 0; j < confusionMatrixTrain.length; j++)\n\t\t\t{\n\t\t\t\tnumberInstancesTrain[i] += confusionMatrixTrain[i][j];\n\t\t\t\tnumberInstancesTest[i] += confusionMatrixTest[i][j];\n\t\t\t}\n\t\t}\n\n\n\t\tDecimalFormat df = new DecimalFormat(\"0.00\");\n\t\tDecimalFormat df4 = new DecimalFormat(\"0.0000\");\n\n\t\ttry {\n\t\t\ttestReportFile.createNewFile();\n\t\t\ttrainReportFile.createNewFile();\n\t\t\ttestFile = new FileWriter (testReportFile);\n\t\t\ttrainFile = new FileWriter (trainReportFile);\n\n\t\t\t// Dataset metadata\n\t\t\tIMetadata metadata = algorithm.getTrainSet().getMetadata();\n\n\t\t\t// Get the classifier\n\t\t\tList<Rule> classificationRules = ((RuleBase) classifier).getClassificationRules();\n\n\t\t\t// Obtain the number of conditions\n\t\t\tconditions = ((RuleBase) classifier).getConditions();\n\n\t\t\t// Obtain the number of classes\n\t\t\tCategoricalAttribute catAttribute = (CategoricalAttribute) metadata.getAttribute(metadata.getClassIndex());\n\t\t\tint numClasses = catAttribute.getCategories().size();\n\n\t\t\t// Train data\n\t\t\ttrainFile.write(\"File name: \" + ((FileDataset) algorithm.getTrainSet()).getFileName());\n\t\t\ttrainFile.write((\"\\nRuntime (s): \" + (((double)(endTime-initTime)) / 1000.0)));\n\t\t\ttrainFile.write(\"\\nMemory Usage(bytes): \" + (afterUsedMem-beforeUsedMem));\n\t\t\ttrainFile.write(\"\\nNumber of rules: \" + (classificationRules.size()+1));\n\t\t\t//trainFile.write(\"\\nNumber of conditions: \"+ conditions);\n\t\t\t//trainFile.write(\"\\nAverage number of conditions per rule: \" + (double)conditions/((double)classificationRules.size()+1.0));\n\t\t\ttrainFile.write(\"\\nAccuracy: \" + df4.format((correctedClassifiedTrain / (double) algorithm.getTrainSet().getInstances().size())));\n\n\t\t\t// Write the geometric mean\n\t\t\t//trainFile.write(\"\\nGeometric mean: \" + df4.format(mediaGeoTrain));\n\t\t\t//trainFile.write(\"\\nCohen's Kappa rate: \" + df4.format(kappaRateTrain));\n\t\t\t//trainFile.write(\"\\nAUC: \" + df4.format(aucTrain));\n\n\t\t\ttrainFile.write(\"\\n\\n#Percentage of correct predictions per class\");\n\n\t\t\t// Test data\n\t\t\ttestFile.write(\"File name: \" + ((FileDataset) algorithm.getTestSet()).getFileName());\n\t\t\ttestFile.write((\"\\nRuntime (s): \" + (((double)(endTime-initTime)) / 1000.0)));\n\t\t\ttrainFile.write(\"\\nMemory Usage(bytes): \" + (afterUsedMem-beforeUsedMem));\n\t\t\t//\ttestFile.write(\"\\nNumber of different attributes: \" + (metadata.numberOfAttributes()-1));\n\t\t\ttestFile.write(\"\\nNumber of rules: \" + (classificationRules.size()+1));\n\t\t\t//\ttestFile.write(\"\\nNumber of conditions: \"+ conditions);\n\t\t\t//\ttestFile.write(\"\\nAverage number of conditions per rule: \" + (double)conditions/((double)classificationRules.size()+1.0));\n\t\t\ttestFile.write(\"\\nAccuracy: \" + df4.format((correctedClassifiedTest / (double) algorithm.getTestSet().getInstances().size())));\n\n\t\t\t// Write the geometric mean\n\t\t\t//testFile.write(\"\\nGeometric mean: \" + df4.format(mediaGeoTest));\n\t\t\t//testFile.write(\"\\nCohen's Kappa rate: \" + df4.format(kappaRateTest));\n\t\t\t//testFile.write(\"\\nAUC: \" + df4.format(aucTest));\n\n\t\t\ttestFile.write(\"\\n\\n#Percentage of correct predictions per class\");\n\n\t\t\t// Check if the report directory name is in a file\n\t\t\tString aux = \"\";\n\t\t\tif(getReportDirName().split(\"/\").length>1)\n\t\t\t\taux = getReportDirName().split(\"/\")[0]+\"/\";\n\t\t\telse\n\t\t\t\taux = \"./\";\n\n\t\t\t// Global report for train\n\t\t\tString nameFileTrain = aux +getGlobalReportName() + \"-train.txt\";\n\t\t\tFile fileTrain = new File(nameFileTrain);\n\t\t\tBufferedWriter bwTrain;\n\n\t\t\t// Global report for test\n\t\t\tString nameFileTest = aux +getGlobalReportName() + \"-test.txt\";\n\t\t\tFile fileTest = new File(nameFileTest);\n\t\t\tBufferedWriter bwTest;\n\n\t\t\t// If the global report for train exist\n\t\t\tif(fileTrain.exists())\n\t\t\t{\n\t\t\t\tbwTrain = new BufferedWriter (new FileWriter(nameFileTrain,true));\n\t\t\t\tbwTrain.write(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbwTrain = new BufferedWriter (new FileWriter(nameFileTrain));\n\t\t\t\tbwTrain.write(\"Dataset \t\t\t\t\t\t\t|| Accuracy || Execution time(s) || Memory Usage (bytes)\\n\");\t\t\t}\n\n\t\t\t// If the global report for test exist\n\t\t\tif(fileTest.exists())\n\t\t\t{\n\t\t\t\tbwTest = new BufferedWriter (new FileWriter(nameFileTest,true));\n\t\t\t\tbwTest.write(System.getProperty(\"line.separator\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbwTest = new BufferedWriter (new FileWriter(nameFileTest));\n\n\t\t\t\tbwTest.write(\"Dataset \t\t\t\t\t\t\t\t|| Accuracy || Execution time(s) || Memory Usage (bytes)\\n\");\n\n\t\t\t}\n\n\t\t\t//Write the train dataset name\n\t\t\tbwTrain.write(((FileDataset) algorithm.getTrainSet()).getFileName() + \"||\");\n\t\t\t//Write the test dataset name\n\t\t\tbwTest.write(((FileDataset) algorithm.getTestSet()).getFileName() + \"||\");\n\t\t\t//Write the percentage of correct predictions\n\t\t\tbwTrain.write(((correctedClassifiedTrain / (double) algorithm.getTrainSet().getInstances().size())) + \",\");\n\n\t\t\t//bwTrain.write(kappaRateTrain + \",\");\n\t\t\t//bwTrain.write(aucTrain + \",\");\n\n\t\t\tfor(int i=0; i<numClasses; i++)\n\t\t\t{\n\t\t\t\tString result = new String();\n\n\t\t\t\tresult = \"\\n Class \" + metadata.getAttribute(metadata.getClassIndex()).show(i) + \":\";\n\t\t\t\tif(numberInstancesTrain[i] == 0)\n\t\t\t\t{\n\t\t\t\t\tresult += \" 100.00\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tresult += \" \" + df.format((confusionMatrixTrain[i][i] / (double) numberInstancesTrain[i]) * 100) + \"%\";\n\t\t\t\t}\n\n\t\t\t\ttrainFile.write(result);\n\t\t\t}\n\n\t\t\ttrainFile.write(\"\\n#End percentage of correct predictions per class\");\n\n\n\t\t\t bwTrain.write((((double)(endTime-initTime)) / 1000.0) + \"\");\n\n\t\t\ttrainFile.write(\"\\n\\n#Classifier\\n\");\n\n\t\t\ttrainFile.write(classifier.toString(metadata));\n\n\t\t\t// Write the Percentage of correct predictions\n\t\t\tbwTest.write(((correctedClassifiedTest / (double) algorithm.getTestSet().getInstances().size())) + \",\");\n\t\t\t//bwTest.write(kappaRateTest + \",\");\n\t\t\t//bwTest.write(aucTest + \",\");\n\n\t\t\tfor(int i=0; i<numClasses; i++)\n\t\t\t{\n\t\t\t\tString result = new String();\n\n\t\t\t\tresult = \"\\n Class \" + metadata.getAttribute(metadata.getClassIndex()).show(i) +\":\";\n\t\t\t\tif(numberInstancesTest[i] == 0)\n\t\t\t\t{\n\t\t\t\t\tresult += \" 100.00\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tresult += \" \" + df.format((confusionMatrixTest[i][i] / (double) numberInstancesTest[i]) *100) + \"%\";\n\t\t\t\t}\n\t\t\t\ttestFile.write(result);\n\t\t\t}\n\n\t\t\ttestFile.write(\"\\n#End percentage of correct predictions per class\");\n\n\t\t\t//bwTest.write(mediaGeoTest + \",\");\n\t\t\t//bwTest.write((classificationRules.size()+1) + \",\");\n\t\t\t//bwTest.write(conditions + \",\");\n\t\t\t//bwTest.write((double)conditions/((double)classificationRules.size()+1.0) + \",\");\n\t\t\t//bwTest.write(algorithm.getEvaluator().getNumberOfEvaluations()+\",\");\n\t\t\tbwTest.write((((double)(endTime-initTime)) / 1000.0) + \"\");\n\n\t\t\ttestFile.write(\"\\n\\n#Classifier\\n\");\n\n\t\t\ttestFile.write(classifier.toString(metadata));\n\n\t\t\ttestFile.write(\"\\n#Test Classification Confusion Matrix\\n\");\n\n\t\t\ttestFile.write(\"\\t\\t\\tPredicted\\n\\t\\t\\t\");\n\n\t\t\tfor(int i = 0; i < metadata.numberOfClasses(); i++)\n\t\t\t\ttestFile.write(\"C\"+ i + \"\\t\");\n\n\t\t\ttestFile.write(\"|\\nActual\");\n\n\t\t\tfor(int i = 0; i < metadata.numberOfClasses(); i++)\n\t\t\t{\n\t\t\t\tif(i != 0)\n\t\t\t\t\ttestFile.write(\"\\t\");\n\n\t\t\t\ttestFile.write(\"\\tC\" + i + \"\\t\");\n\n\t\t\t\tfor(int j = 0; j < metadata.numberOfClasses(); j++)\n\t\t\t\t\ttestFile.write(confusionMatrixTest[i][j] + \"\\t\");\n\n\t\t\t\ttestFile.write(\"|\\tC\" + i + \" = \" + metadata.getAttribute(metadata.getClassIndex()).show(i) + \"\\n\");\n\t\t\t}\n\n\t\t\ttrainFile.write(\"\\n#Train Classification Confusion Matrix\\n\");\n\n\t\t\ttrainFile.write(\"\\t\\t\\tPredicted\\n\\t\\t\\t\");\n\n\t\t\tfor(int i = 0; i < metadata.numberOfClasses(); i++)\n\t\t\t\ttrainFile.write(\"C\"+ i + \"\\t\");\n\n\t\t\ttrainFile.write(\"|\\nActual\");\n\n\t\t\tfor(int i = 0; i < metadata.numberOfClasses(); i++)\n\t\t\t{\n\t\t\t\tif(i != 0)\n\t\t\t\t\ttrainFile.write(\"\\t\");\n\n\t\t\t\ttrainFile.write(\"\\tC\" + i + \"\\t\");\n\n\t\t\t\tfor(int j = 0; j < metadata.numberOfClasses(); j++)\n\t\t\t\t\ttrainFile.write(confusionMatrixTrain[i][j] + \"\\t\");\n\n\t\t\t\ttrainFile.write(\"||\\tC\" + i + \" = \" + metadata.getAttribute(metadata.getClassIndex()).show(i) + \"\\n\");\n\t\t\t}\n\n\t\t\t// Close the files\n\t\t\tbwTest.close();\n\t\t\tbwTrain.close();\n\t\t\ttestFile.close();\n\t\t\ttrainFile.close();\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void printAverageRatingsByYearAfterAndGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int year = 1980;\n String genre = \"Romance\";\n \n AllFilters all_filter = new AllFilters();\n GenreFilter gf = new GenreFilter(genre);\n YearAfterFilter yf = new YearAfterFilter(year);\n \n all_filter.addFilter(yf);\n all_filter.addFilter(gf);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, all_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n int mov_year = database.getYear(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" + mov_year + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }",
"public static void main(String[] args) {\r\n ArrayList<Integer> testDataInteger = new ArrayList<>(Arrays.asList(1, 2, 3, 4, 5)); // An array of Integer data \r\n ArrayList<Double> testDataDouble = new ArrayList<>(Arrays.asList(2.2, 3.3, 66.2, 17.5, 30.2, 31.1)); // An array of double data\r\n\r\n System.out.printf(\"The sum of the Integer array = %.0f\\n\", computeSum(testDataInteger, true)); // Print result of all Integer data's sum\r\n\r\n System.out.printf(\"The average of the Integer test set = %.0f\\n\", computeAverage(testDataInteger, true)); // Print result of all Integer data's Average\r\n System.out.printf(\"The average of the Double test set = %.2f\\n\", computeAverage(testDataDouble, true)); // Print result of all Double data's Average\r\n\r\n System.out.printf(\"The median value of the Integer data set = %.1f\\n\", computeMedian(testDataInteger)); // Print result of all Integer data's Median\r\n System.out.printf(\"The median value of the Double data set = %.1f\\n\", computeMedian(testDataDouble)); // Print result of all Double data's Median\r\n\r\n System.out.printf(\"The sample standard deviation of the Integer test set = %.2f\\n\", computeStandardDeviation(testDataInteger)); // Print result of all Integer data's Standard Deviation\r\n System.out.printf(\"The sample standard deviation of the Double test set = %.2f\\n\", computeStandardDeviation(testDataDouble)); // Print result of all Double data's Standard Deviation\r\n }",
"private void getChartStatistics(HttpServletResponse response, int scenario, int tickIndex) throws IOException {\n JSONObject obj = new JSONObject();\n Map<Integer, JSONArray> jsonArays = new HashMap<>();\n\n List<String> listOfStatistics = SimApi.getChartStatistics(scenario, tickIndex);\n\n if (listOfStatistics == null) {\n response.getWriter().write(obj.toJSONString());\n return;\n }\n\n if (tickIndex > 0) {\n for (int i = 0; i < listOfStatistics.size(); i++) {\n JSONArray listJ = new JSONArray();\n listJ.add(listOfStatistics.get(i));\n jsonArays.put(i, listJ);\n }\n }\n\n // always add the headers to the result.\n List<String> listOfHeaders = SimApi.getChartStatistics(0, 0);\n for (int i = 0; i < listOfHeaders.size(); i++) {\n if (jsonArays.size() > 0) {\n obj.put(listOfHeaders.get(i), jsonArays.get(i));\n } else {\n obj.put(listOfHeaders.get(i), new JSONArray());\n }\n }\n\n response.getWriter().write(obj.toJSONString());\n }",
"public List<Map<String, Object>> getStatisticsByStaff(String classify);",
"public static void printMovieByCategory(String category) {\n System.out.println(\"View movies in the \" + category + \" category\");\n for (Movie movie : moviesList) {\n if (movie.getCategory().equalsIgnoreCase(category)) {\n System.out.println(movie.getName() + \" -- \" + movie.getCategory());\n }\n\n }\n\n\n }",
"private List<List<XMLResults>> loadResults()\n {\n List<List<XMLResults>> ret = new ArrayList<List<XMLResults>>();\n\n for( Platform p : platforms ) {\n\n String platformResultsDir = p.resultsDir+\"/\"+p.libraryDir;\n\n File platformDir = new File(platformResultsDir);\n\n if( !platformDir.exists() ) {\n throw new RuntimeException(\"Results for \"+p.libraryDir+\" do not exist in \"+p.resultsDir);\n }\n\n List<XMLResults> opResults = new ArrayList<XMLResults>();\n\n File[] files = platformDir.listFiles();\n\n for( File f : files ) {\n String fileName = f.getName();\n\n if( fileName.contains(\".csv\")) {\n // extract the operation name\n String stripName = fileName.substring(0,fileName.length()-4);\n\n XMLResults r = new XMLResults();\n r.fileName = stripName;\n r.results = RuntimeResultsCsvIO.read(new File(f.getAbsolutePath()));\n\n opResults.add(r);\n }\n }\n\n ret.add( opResults );\n }\n\n return ret;\n }",
"@Override\n\tpublic List<EventCategory> getAllCategories() {\n\t\treturn categoriesRepository.findAll();\n\t}",
"private Map<String, Map<String, String>> getEventsFromAnXML(Activity activity)throws XmlPullParserException, IOException {\n\t\tMap<String, Map<String, String>>detailMap = new HashMap<String, Map<String,String>>();\n//\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\tResources res = activity.getResources();\n//\t\tXmlResourceParser xpp = res.getXml(R.xml.vacc_detail_eng);\n\t\tXmlResourceParser xpp = MiraConstants.LANGUAGE.equals(MiraConstants.HINDI)?res.getXml(R.xml.vacc_detail_hnd):res.getXml(R.xml.vacc_detail_eng);\n\t\txpp.next();\n\t\tint eventType = xpp.getEventType();\n\t\tString name = \"sorry\";\n\t\tString text = \"sorry\";\n\t\tHashMap<String, String>map= new HashMap<String, String>();\n\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n\t\t\tif (eventType == XmlPullParser.START_TAG) {\n\t\t\t\tname = xpp.getName();\n\n\t\t\t\tif(name.equals(\"VaccId\")){\n\t\t\t\t\tmap= new HashMap<String, String>();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (eventType == XmlPullParser.TEXT) {\n\t\t\t\ttext = xpp.getText();\n //System.out.println(\"Parsing \"+name +\" Value \"+text);\n\t\t\t}\n\t\t\tif (eventType == XmlPullParser.END_TAG) {\n\t\t\t\tif(xpp.getName().equals(\"VaccId\")){\n//\t\t\t\t\tpreArrayList.add(map);\n\t\t\t\t\tdetailMap.put(map.get(\"VaccName\"), map);\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (name.equals(\"VaccName\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"VaccMessage\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AdministrationMSG\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AboutMsg\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\t\t\t\n\t\t\t}\n System.out.println(\"In Xml....\"+detailMap);\n\t\t\teventType = xpp.next();\n\t\t}\n\t\treturn detailMap;\n\t}",
"public static void experiment(List<Integer> episodeLengths, List<Double> means, List<Double> pcts) throws Exception { \n\t\tSystem.out.println(\"Means: \" + means);\n\t\tSystem.out.println(\"Lengths: \" + episodeLengths);\n\t\tSystem.out.println(\"Pcts: \" + pcts);\n\t\t\n\t\tString key = System.currentTimeMillis() + \"\";\n\t\t\n\t\tBufferedWriter out = new BufferedWriter(new FileWriter(\"logs/synthetic-\" + key + \".csv\"));\n\t\tout.write(\"elength,mean,pct,test,\" + BatchStatistics.csvHeader() + \"\\n\");\n\t\t\n\t\t// Total number of experiments equals 25\n\t\tfor (double pct : pcts) { \n\t\t\tfor (double mean : means) { \n\t\t\t\tfor (int length : episodeLengths) { \n\t\t\t\t\tSystem.out.println(\"Mean: \" + mean + \" Length: \" + length);\n\n\t\t\t\t\tString d1 = SyntheticData.generateABA(\"f\", 0, 0, length);\n\t\t\t\t\tString d2 = SyntheticData.generateABA(\"g\", mean, pct, length);\n\n\t\t\t\t\tif (!d1.equals(d2))\n\t\t\t\t\t\tthrow new RuntimeException(\"Directories not equal, but they should be.\");\n\n\t\t\t\t\tMap<String,List<Instance>> data = Utils.load(d1, SyntheticData.PREFIX, SequenceType.allen);\n\t\t\t\t\tList<String> classNames = new ArrayList<String>(data.keySet());\n\t\t\t\t\tCollections.sort(classNames);\n\n\t\t\t\t\tClassifyParams params = new ClassifyParams();\n\t\t\t\t\tparams.type = SequenceType.allen;\n\t\t\t\t\tparams.prunePct = 0.5;\n\t\t\t\t\tClassifier c = Classify.prune.getClassifier(params);\n\n\t\t\t\t\t//\t\t\t\tCrossValidation cv = new CrossValidation(FOLDS);\n\t\t\t\t\tSplitAndTest sat = new SplitAndTest(Utils.EXPERIMENTS, 2.0/3.0);\n\t\t\t\t\tList<BatchStatistics> stats = sat.run(System.currentTimeMillis(), classNames, data, c);\n\n\t\t\t\t\t// print out the summary information for now. Later we will need to \n\t\t\t\t\t// print out all of it.\n\t\t\t\t\tSummaryStatistics perf = new SummaryStatistics();\n\t\t\t\t\tSummaryStatistics[][] confMatrix = new SummaryStatistics[classNames.size()][classNames.size()];\n\t\t\t\t\tfor (int i = 0; i < classNames.size(); ++i) \n\t\t\t\t\t\tfor (int j = 0; j < classNames.size(); ++j) \n\t\t\t\t\t\t\tconfMatrix[i][j] = new SummaryStatistics();\n\n\t\t\t\t\t// append to the file the results of this latest run...\n\t\t\t\t\tfor (int i = 0; i < stats.size(); ++i) { \n\t\t\t\t\t\tBatchStatistics batch = stats.get(i);\n\t\t\t\t\t\tout.write(batch.toCSV(length + \",\" + mean + \",\" + pct + \",\" + i + \",\", \"\"));\n\n\t\t\t\t\t\tperf.addValue(batch.accuracy());\n\t\t\t\t\t\tdouble[][] matrix = batch.normalizeConfMatrix();\n\t\t\t\t\t\tfor (int j = 0; j < classNames.size(); ++j)\n\t\t\t\t\t\t\tfor (int k = 0; k < classNames.size(); ++k)\n\t\t\t\t\t\t\t\tconfMatrix[j][k].addValue(matrix[j][k]);\n\t\t\t\t\t}\n\t\t\t\t\tout.flush();\n\t\t\t\t\tSystem.out.println(\"[pct:\" + pct + \",mean:\" + mean + \",length:\" + length + \"] \" +\n\t\t\t\t\t\t\t\"performance: \" + perf.getMean() + \" sd -- \" + perf.getStandardDeviation());\n\n\n\t\t\t\t\t// Write out the confusion matrix for this pairing of variables.\n\t\t\t\t\tBufferedWriter outMatrix = new BufferedWriter(new FileWriter(\"logs/matrix-\" + key + \"-\" + length + \"-\" + mean + \".csv\"));\n\t\t\t\t\tfor (int i = 0; i < classNames.size(); ++i) \n\t\t\t\t\t\toutMatrix.write(\",\" + classNames.get(i));\n\t\t\t\t\toutMatrix.write(\"\\n\");\n\n\t\t\t\t\tfor (int i = 0; i < classNames.size(); ++i) {\n\t\t\t\t\t\toutMatrix.write(classNames.get(i));\n\t\t\t\t\t\tfor (int j = 0; j < classNames.size(); ++j) \n\t\t\t\t\t\t\toutMatrix.write(\",\" + confMatrix[i][j].getMean());\n\t\t\t\t\t\toutMatrix.write(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\toutMatrix.close();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static double calculateEvidence(ArrayList<double[]> rawData, ArrayList<double[]> normalizedData, ArrayList<ArrayList> hitLists, HashMap<String, ArrayList<double[]>> table, HashMap<String, ArrayList<Integer>> categories, int column, double[] row, ArrayList<Normalizer> normalizers) {\n int i = 0;\n //System.out.println(\"\\nWorking on row: \" + Arrays.toString(row) + \" in column \" + column + \" with hit list \" + hitLists.get(column));\n\n double evidences = 0;\n int evidencesCount = 0;\n\n for(String category: table.keySet()) {\n ArrayList<double[]> categoryRows = table.get(category);\n for(double[] categoryRow: categoryRows) {\n ArrayList<Integer> columnHitList = hitLists.get(column);\n if(columnHitList.get(i) == 1) {\n //System.out.println(\"Row \" + i + \" in category \" + category + \" is relevant\");\n\n // Search for rows in pre-classified category rows in the normalized data that have the same normalized column like the current category row\n for(Integer rowId: categories.get(category)) {\n if(categoryRow[column] == normalizedData.get(rowId)[column]) {\n //System.out.println(\"Found a match!\" + categoryRow[column] + \";\" + normalizedData.get(rowId)[column]);\n\n double evidence = normalizers.get(column).getNormalizationEvidence(normalizedData.get(rowId)[column]);\n evidences += evidence;\n evidencesCount++;\n }\n }\n }\n i++;\n }\n }\n\n return evidences / evidencesCount;\n }",
"public void writeResults() {\n gfmBroker.storeResults(this.responses, fileOutputPath);\n }",
"protected abstract String[] summarize();",
"private HashMap<Integer, HashMap<String,String>> getAllFrequencies() {\n HashMap<Integer,HashMap<String,String>> freq\n = dbController.getAllFrequencies();\n if (freq == null)\n return null;\n HashMap<Integer, HashMap<String, String>> response = new HashMap<Integer, HashMap<String, String>>();\n int i = 2;\n //Passing on any frequency and creates a message to send\n for (Map.Entry<Integer,HashMap<String,String>> objs : freq.entrySet()){\n HashMap<String,String> obj = objs.getValue();\n\n response.put(i, new HashMapBuilder<String, String>().put(\"name\", obj.get(\"name\"))\n .put(\"frequency\",obj.get(\"frequency\")).build());\n i++;\n }\n return response;\n }",
"public void showBarChart() {\r\n\r\n // Count classes\r\n int neutralCountPred = 0;\r\n int negativeCountPred = 0;\r\n int positiveCountPred = 0;\r\n\r\n int neutralCountAnsw = 0;\r\n int negativeCountAnsw = 0;\r\n int positiveCountAnsw = 0;\r\n\r\n for(Integer pred : predictions.values()) {\r\n switch (pred.intValue()) {\r\n case 0:\r\n negativeCountPred++;\r\n break;\r\n case 1:\r\n neutralCountPred++;\r\n break;\r\n case 2:\r\n positiveCountPred++;\r\n break;\r\n default:\r\n System.err.println(\"Illegal class index\");\r\n break;\r\n }\r\n }\r\n System.out.printf(\"PREDICTED \\nnegativeCountPred = %d, neutralCountPred = %d, positiveCountPred = %d\", negativeCountPred,\r\n neutralCountPred, positiveCountPred);\r\n\r\n for(Integer answer : rightAnswers.values()) {\r\n switch (answer.intValue()) {\r\n case 0:\r\n negativeCountAnsw++;\r\n break;\r\n case 1:\r\n neutralCountAnsw++;\r\n break;\r\n case 2:\r\n positiveCountAnsw++;\r\n break;\r\n default:\r\n System.err.println(\"Illegal class index\");\r\n break;\r\n }\r\n }\r\n System.out.printf(\"\\nRIGHT ANSWERS \\nnegativeCountAnsw = %d, neutralCountAnsw = %d, positiveCountAnsw = %d\", negativeCountAnsw,\r\n neutralCountAnsw, positiveCountAnsw);\r\n\r\n // Predicted classes\r\n XYChart.Series<String, Number> dataSeries1 = new XYChart.Series();\r\n dataSeries1.setName(\"Predicted\");\r\n dataSeries1.getData().add(new XYChart.Data(\"Neutral\", neutralCountPred));\r\n dataSeries1.getData().add(new XYChart.Data(\"Positive\", positiveCountPred));\r\n dataSeries1.getData().add(new XYChart.Data(\"Negative\", negativeCountPred));\r\n resultChart.getData().add(dataSeries1);\r\n\r\n // Predicted classes\r\n XYChart.Series<String, Number> dataSeries2 = new XYChart.Series();\r\n dataSeries2.setName(\"Right answers\");\r\n dataSeries2.getData().add(new XYChart.Data(\"Neutral\", neutralCountAnsw));\r\n dataSeries2.getData().add(new XYChart.Data(\"Positive\", positiveCountAnsw));\r\n dataSeries2.getData().add(new XYChart.Data(\"Negative\", negativeCountAnsw));\r\n resultChart.getData().add(dataSeries2);\r\n\r\n }"
] | [
"0.51405984",
"0.5123723",
"0.50407606",
"0.50275016",
"0.4976762",
"0.49565938",
"0.4925689",
"0.48898265",
"0.48815152",
"0.4857147",
"0.48102447",
"0.48098075",
"0.48009676",
"0.47757423",
"0.4772276",
"0.47428858",
"0.47260776",
"0.47254658",
"0.4713377",
"0.47118357",
"0.46712622",
"0.46575105",
"0.46544313",
"0.46542332",
"0.4640915",
"0.46351478",
"0.4633188",
"0.4615295",
"0.46074602",
"0.46073517",
"0.46053848",
"0.4601981",
"0.45979202",
"0.4587283",
"0.45779634",
"0.4563785",
"0.45564002",
"0.45516777",
"0.45471114",
"0.45452714",
"0.45413363",
"0.45350352",
"0.4532509",
"0.45148888",
"0.45043895",
"0.45040575",
"0.4501834",
"0.44995448",
"0.44913378",
"0.44879025",
"0.44876498",
"0.44861495",
"0.44723013",
"0.44719702",
"0.44704714",
"0.4469021",
"0.44583264",
"0.4449578",
"0.44462335",
"0.4444946",
"0.4442128",
"0.4439268",
"0.44369394",
"0.44355083",
"0.44310063",
"0.44291607",
"0.44285142",
"0.44278973",
"0.44227156",
"0.441964",
"0.44181636",
"0.4413738",
"0.44109723",
"0.44095564",
"0.44056946",
"0.44034567",
"0.44016415",
"0.4400235",
"0.43962184",
"0.43938342",
"0.43936035",
"0.43933833",
"0.43896168",
"0.4386149",
"0.4381228",
"0.4378119",
"0.43738684",
"0.43703827",
"0.43700883",
"0.436919",
"0.43640593",
"0.43531936",
"0.43526182",
"0.43508333",
"0.4349844",
"0.43488",
"0.4343434",
"0.43417463",
"0.4341745",
"0.4340546"
] | 0.5982682 | 0 |
This function outputs results for aggregates for all categories. | public void aggregateResults()
{
try {
AggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));
AggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));
AggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));
AggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));
AggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));
AggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));
AggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));
AggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));
AggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));
AggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));
AggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));
AggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));
for (int i = 1; i < 15; i++)
{
aggContNaive.aggregate(this.evalNaiveBayesList.get(i));
aggContSMO.aggregate(this.evalSMOList.get(i));
}
for (int i = 16; i < 30; i++)
{
aggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));
aggDonaSMO.aggregate(this.evalSMOList.get(i));
}
for (int i = 31; i < 45; i++)
{
aggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));
aggOffiSMO.aggregate(this.evalSMOList.get(i));
}
for (int i = 46; i < 60; i++)
{
aggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));
aggAdviSMO.aggregate(this.evalSMOList.get(i));
}
for (int i = 61; i < 75; i++)
{
aggMultNaive.aggregate(this.evalNaiveBayesList.get(i));
aggMultSMO.aggregate(this.evalSMOList.get(i));
}
for (int i = 76; i < 90; i++)
{
aggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));
aggGoodSMO.aggregate(this.evalSMOList.get(i));
}
for (int a = 0; a < 6; a++)
{
String aggregateText;
switch (a)
{
case 0: aggregateText = "ContinuingNewsAggregateResults.txt"; break;
case 1: aggregateText = "DonationsAggregateResults.txt"; break;
case 2: aggregateText = "OfficialAggregateResults.txt"; break;
case 3: aggregateText = "AdviceAggregateResults.txt"; break;
case 4: aggregateText = "MultimediaAggregateResults.txt"; break;
case 5: aggregateText = "GoodsAggregateResults.txt"; break;
default: aggregateText = "CompleteAggregateResults.txt";
}
BufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));
bw.write("=== Summary of Naive Bayes ===");
switch (a)
{
case 0: bw.write(aggContNaive.toSummaryString());
bw.write(aggContNaive.toClassDetailsString());
bw.write(aggContNaive.toMatrixString()); break;
case 1: bw.write(aggDonaNaive.toSummaryString());
bw.write(aggDonaNaive.toClassDetailsString());
bw.write(aggDonaNaive.toMatrixString()); break;
case 2: bw.write(aggOffiNaive.toSummaryString());
bw.write(aggOffiNaive.toClassDetailsString());
bw.write(aggOffiNaive.toMatrixString()); break;
case 3: bw.write(aggAdviNaive.toSummaryString());
bw.write(aggAdviNaive.toClassDetailsString());
bw.write(aggAdviNaive.toMatrixString()); break;
case 4: bw.write(aggMultNaive.toSummaryString());
bw.write(aggMultNaive.toClassDetailsString());
bw.write(aggMultNaive.toMatrixString()); break;
default: bw.write(aggGoodNaive.toSummaryString());
bw.write(aggGoodNaive.toClassDetailsString());
bw.write(aggGoodNaive.toMatrixString());
}
bw.write("=== Summary of SMO ===");
switch (a)
{
case 0: bw.write(aggContSMO.toSummaryString());
bw.write(aggContSMO.toClassDetailsString());
bw.write(aggContSMO.toMatrixString()); break;
case 1: bw.write(aggDonaSMO.toSummaryString());
bw.write(aggDonaSMO.toClassDetailsString());
bw.write(aggDonaSMO.toMatrixString()); break;
case 2: bw.write(aggOffiSMO.toSummaryString());
bw.write(aggOffiSMO.toClassDetailsString());
bw.write(aggOffiSMO.toMatrixString()); break;
case 3: bw.write(aggAdviSMO.toSummaryString());
bw.write(aggAdviSMO.toClassDetailsString());
bw.write(aggAdviSMO.toMatrixString()); break;
case 4: bw.write(aggMultSMO.toSummaryString());
bw.write(aggMultSMO.toClassDetailsString());
bw.write(aggMultSMO.toMatrixString()); break;
default: bw.write(aggGoodSMO.toSummaryString());
bw.write(aggGoodSMO.toClassDetailsString());
bw.write(aggGoodSMO.toMatrixString());
}
bw.close();
}
} catch (Exception e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void aggregate() {\n\t\tIAggregate selectedAggregation = this.gui.getSelectedAggregation();\n\t\tthis.output(selectedAggregation.aggregate(satelliteList));\n\t}",
"@Override\n protected void printAggregates() {\n printRetrieveStudyAggregates(queryInstancesAggregates, firstResponseAggregates,\n firstFrameAggregates, totalAggregates, transferRateAggregates, frameRateAggregates);\n }",
"private static void DoGroupBy()\n\t{\n\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"o_orderkey\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_custkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderstatus\"));\n\t\tinAtts.add(new Attribute(\"Float\", \"o_totalprice\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderdate\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_orderpriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_clerk\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"o_shippriority\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"o_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Str\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Float\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att4\"));\n\n\t\tArrayList<String> groupingAtts = new ArrayList<String>();\n\t\tgroupingAtts.add(\"o_orderdate\");\n\t\tgroupingAtts.add(\"o_orderstatus\");\n\n\t\tHashMap<String, AggFunc> myAggs = new HashMap<String, AggFunc>();\n\t\tmyAggs.put(\"att1\", new AggFunc(\"none\",\n\t\t\t\t\"Str(\\\"status: \\\") + o_orderstatus\"));\n\t\tmyAggs.put(\"att2\", new AggFunc(\"none\", \"Str(\\\"date: \\\") + o_orderdate\"));\n\t\tmyAggs.put(\"att3\", new AggFunc(\"avg\", \"o_totalprice * Int (100)\"));\n\t\tmyAggs.put(\"att4\", new AggFunc(\"sum\", \"Int (1)\"));\n\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Grouping(inAtts, outAtts, groupingAtts, myAggs, \"orders.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public void printAllSummaries()\n {\n String sum = \"\";\n for(KantoDex entry : entries)\n {\n sum = entry.getDexNum() + \": \" + entry.getName() + \" Types: \" + entry.getType1();\n if(!entry.getType2().equals(\"\"))\n {\n sum += \"/\" + entry.getType2();\n }\n System.out.println(sum);\n }\n }",
"private List<Object> handleAggregates(List<Object> resultSet)\n {\n final Expression[] grouping = compilation.getExprGrouping();\n Comparator<Object> c = new Comparator<>()\n {\n public int compare(Object arg0, Object arg1)\n {\n for (int i=0; i<grouping.length; i++)\n {\n state.put(candidateAlias, arg0);\n Object a = grouping[i].evaluate(evaluator);\n state.put(candidateAlias, arg1);\n Object b = grouping[i].evaluate(evaluator);\n // Put any null values at the end\n if (a == null && b == null)\n {\n return 0;\n }\n else if (a == null)\n {\n return -1;\n }\n else if (b == null)\n {\n return 1;\n }\n else\n {\n int result = ((Comparable)a).compareTo(b);\n if (result != 0)\n {\n return result;\n }\n }\n }\n return 0;\n }\n };\n \n List<List<Object>> groups = new ArrayList<>();\n List<Object> group = new ArrayList<>();\n groups.add(group);\n for (int i=0; i<resultSet.size(); i++)\n {\n if (i > 0)\n {\n if (c.compare(resultSet.get(i-1), resultSet.get(i)) != 0)\n {\n group = new ArrayList<>();\n groups.add(group);\n }\n }\n group.add(resultSet.get(i));\n }\n List<Object> result = new ArrayList<>();\n Expression having = compilation.getExprHaving();\n if (having != null)\n {\n for (int i=0; i<groups.size(); i++)\n {\n if (satisfiesHavingClause(groups.get(i)))\n {\n result.addAll(groups.get(i));\n }\n }\n }\n else\n {\n for (int i = 0; i < groups.size(); i++)\n {\n result.addAll(groups.get(i));\n }\n }\n return result;\n }",
"static void aggregate(String workingDir) {\n String inputPath = workingDir + \"/processed\";\n String outputPath = workingDir + \"/aggregated\";\n\n File input = new File(inputPath);\n File output = new File(outputPath);\n\n System.out.format(\"Process %s to %s\\n\", inputPath, outputPath);\n \n\n AggregatorStrategy[] strategies = new AggregatorStrategy[] {\n new DomainCountCSVAggregatorStrategy(new TruncateDay()),\n new DomainCountCSVAggregatorStrategy(new TruncateMonth()),\n new FullDomainCountCSVAggregatorStrategy(new TruncateMonth()),\n new CodeCountCSVAggregatorStrategy(new TruncateMonth()),\n new CodeCountCSVAggregatorStrategy(new TruncateDay()),\n\n new GroupedFullDomainsAggregatorStrategy(),\n new DOICountCSVAggregatorStrategy(),\n\n new AllCountCSVAggregatorStrategy(new TruncateDay()),\n new AllCountCSVAggregatorStrategy(new TruncateMonth())\n };\n\n \n try {\n List<Thread> threads = new ArrayList<>();\n for (AggregatorStrategy strategy: strategies) {\n System.out.format(\"Aggregate with strategy: %s \\n\", strategy.toString());\n Aggregator aggregator = new Aggregator(input, output, strategy);\n Thread thread = new Thread(aggregator);\n threads.add(thread);\n thread.start(); \n System.out.format(\"Finished aggregate with strategy: %s \\n\", strategy.toString());\n }\n\n for (Thread thread: threads) {\n synchronized(thread) {\n System.out.println(\"Wait...\" + thread.toString());\n thread.join();\n System.out.println(\"Done \" + thread.toString());\n }\n }\n } catch (Exception e) {\n System.err.println(\"Error:\");\n e.printStackTrace();\n System.exit(1);\n }\n }",
"public void categoryTotal()\n {\n attiretra=c+c2+c3;\n audibitytra=d+d2+d3;\n emphasistra=e+e2+e3;\n gesturetra=f+f2+f3;\n contenttra=g+g2+g3;\n dikomatra=at+at2+at3;\n diagelotra=bt+bt2+bt3;\n humantra=ct+ct2+ct3;\n womenabusetra=dt+dt2+dt3;\n killingtra=ht+ht2+ht3;\n rapetra=et+et2+et3;\n xenophobiatra=gt+gt2+gt3;\n albinismtra=ft+ft2+ft3;\n }",
"private List<Object> handleResult(List<Object> resultSet)\n {\n List<Object> result = new ArrayList<>();\n final Expression[] grouping = compilation.getExprGrouping();\n if (grouping != null)\n {\n Comparator<Object> c = new Comparator<>()\n {\n public int compare(Object arg0, Object arg1)\n {\n for (int i = 0; i < grouping.length; i++)\n {\n state.put(candidateAlias, arg0);\n Object a = grouping[i].evaluate(evaluator);\n state.put(candidateAlias, arg1);\n Object b = grouping[i].evaluate(evaluator);\n\n // Put any null values at the end\n if (a == null && b == null)\n {\n return 0;\n }\n else if (a == null)\n {\n return -1;\n }\n else if (b == null)\n {\n return 1;\n }\n else\n {\n int result = ((Comparable)a).compareTo(b);\n if (result != 0)\n {\n return result;\n }\n }\n }\n return 0;\n }\n };\n \n List<List<Object>> groups = new ArrayList<>();\n List<Object> group = new ArrayList<>();\n if (!resultSet.isEmpty())\n {\n groups.add(group);\n }\n for (int i = 0; i < resultSet.size(); i++)\n {\n if (i > 0)\n {\n if (c.compare(resultSet.get(i - 1), resultSet.get(i)) != 0)\n {\n group = new ArrayList<>();\n groups.add(group);\n }\n }\n group.add(resultSet.get(i));\n }\n\n // Apply the result to the generated groups\n for (int i = 0; i < groups.size(); i++)\n {\n group = groups.get(i);\n result.add(result(group));\n }\n }\n else\n {\n boolean aggregates = false;\n Expression[] resultExprs = compilation.getExprResult();\n if (resultExprs.length > 0 && resultExprs[0] instanceof CreatorExpression)\n {\n Expression[] resExpr = ((CreatorExpression)resultExprs[0]).getArguments().toArray(\n new Expression[((CreatorExpression)resultExprs[0]).getArguments().size()]);\n for (int i = 0; i < resExpr.length; i++)\n {\n if (resExpr[i] instanceof InvokeExpression)\n {\n String method = ((InvokeExpression) resExpr[i]).getOperation().toLowerCase();\n if (method.equals(\"count\") || method.equals(\"sum\") || method.equals(\"avg\") || method.equals(\"min\") || method.equals(\"max\"))\n {\n aggregates = true;\n }\n }\n }\n }\n else\n {\n for (int i = 0; i < resultExprs.length; i++)\n {\n if (resultExprs[i] instanceof InvokeExpression)\n {\n String method = ((InvokeExpression)resultExprs[i]).getOperation().toLowerCase();\n if (method.equals(\"count\") || method.equals(\"sum\") || method.equals(\"avg\") || method.equals(\"min\") || method.equals(\"max\"))\n {\n aggregates = true;\n }\n }\n }\n }\n \n if (aggregates)\n {\n result.add(result(resultSet));\n }\n else\n {\n for (int i = 0; i < resultSet.size(); i++)\n {\n result.add(result(resultSet.get(i)));\n }\n }\n }\n\n if (!result.isEmpty() && ((Object[])result.get(0)).length == 1)\n {\n List r = result;\n result = new ArrayList<>();\n for (int i = 0; i < r.size(); i++)\n {\n result.add(((Object[]) r.get(i))[0]);\n }\n }\n return result;\n }",
"public void displayCategories() {\n System.out.println(\"Categories:\");\n for(int i = 0; i < categories.size(); i++)\n System.out.println((i + 1) + \". \" + categories.get(i).getName());\n }",
"@Override\n public List<ExpenceSummary> getReportsForMonth(String owner,int year, int month) {\n\n AggregationResults<ExpenceSummary> results = operations.aggregate(newAggregation(Expence.class, //\n match(where(\"owner\").is(owner))\n // .andOperator(where(\"date\").lte(LocalDateTime.now())\n //.andOperator(where(\"year(date)\").is(year)\n // .andOperator(where(\"date\").regex(\"2016\")\n // .andOperator(where(\"owner\").is(\"admin\")))\n , //\n // unwind(\"items\"), //\n // project(\"id\", \"customerId\", \"items\") //\n // .andExpression(\"'$items.price' * '$items.quantity'\").as(\"lineTotal\"), //\n project()\n .andExpression(\"type\").as(\"type\")\n .andExpression(\"year(date)\").as(\"year\")\n .andExpression(\"month(date)\").as(\"month\")\n .andExpression(\"amount\").as(\"amount\")\n ,\n match(where(\"year\").is(year)\n .andOperator(where(\"month\").is(month))\n )\n // .andOperator(where(\"date\").lte(LocalDateTime.now())\n //.andOperator(where(\"year(date)\").is(year)\n ,\n group(\"type\",\"year\",\"month\")\n\n // .addToSet(\"type\").as(\"type\")//, //\n // .addToSet(\"year\").as(\"year\")//, //\n // .addToSet(\"month\").as(\"month\")//, //\n .sum(\"amount\").as(\"totalAmount\") //\n .count().as(\"count\")\n // project(\"id\", \"items\", \"netAmount\") //\n // .and(\"orderId\").previousOperation() //\n // .andExpression(\"netAmount * [0]\", 1).as(\"taxAmount\") //\n // .andExpression(\"netAmount * (1 + [0])\", 1).as(\"totalAmount\") //\n ), Expence.class,ExpenceSummary.class);\n logger.info(\"getReportsForMonth results.size=\"+results.getMappedResults().size());\n return results.getMappedResults();\n }",
"@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn category.selectAllCategory();\n\t}",
"@Override\r\n public Set<VisualizationAggregateColumn> getAggregates()\r\n {\n return Collections.emptySet();\r\n }",
"@Ignore\n @Test\n public void aggregationQuery() throws IOException {\n String result = explain(String.format(\"{\\\"query\\\":\\\"\" +\n \"SELECT address, CASE WHEN gender='0' THEN 'aaa' ELSE 'bbb' END AS a2345, count(age) \" +\n \"FROM %s \" +\n \"GROUP BY terms('field'='address','execution_hint'='global_ordinals'), a2345\\\"}\", TestsConstants.TEST_INDEX_ACCOUNT));\n String expectedOutput = Files.toString(\n new File(getResourcePath() + \"src/test/resources/expectedOutput/aggregation_query_explain.json\"), StandardCharsets.UTF_8)\n .replaceAll(\"\\r\", \"\");\n\n assertThat(removeSpaces(result), equalTo(removeSpaces(expectedOutput)));\n }",
"@Override\n public List<Category> getAll()\n {\n \n ResultSet rs = DataService.getData(\"SELECT * FROM Categories\");\n \n List<Category> categories = new ArrayList<Category>();\n \n try\n {\n while (rs.next())\n {\n categories.add(convertResultSetToCategory(rs));\n }\n }\n catch (SQLException e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n return categories;\n }",
"@Override\n public List<CategoryDTO> listAll() {\n List<CategoryDTO> result = new ArrayList<>();\n List<Category> listCategory = categoryRepository.findAll();\n for (Category category: listCategory){\n result.add(categoryConverter.toDTO(category));\n }\n return result;\n }",
"@Override\n\tpublic List<Cat> getAll() {\n\t\treturn catRepository.findAll();\n\t}",
"public void getAllResults()\n {\n for(String module: modules.keySet())\n {\n getResults(module);\n }\n }",
"private\n void\n createReportAndDisplayResults(Date start, Date end, TotalFilter filter)\n {\n CategoryReport report = CategoryReport.createReport(start, end, filter);\n IncomeExpenseTotal expenses = new IncomeExpenseTotal(EXPENSE_SUMMARY, TOTAL.toString());\n IncomeExpenseTotal income = new IncomeExpenseTotal(INCOME_SUMMARY, TOTAL.toString());\n\n // Add expense totals.\n for(IncomeExpenseTotal total : report.getExpenses())\n {\n getExpensePanel().getTable().add(total);\n\n // Combine all the expense totals into the total.\n expenses.setAmount(expenses.getAmount() + total.getAmount());\n }\n\n getExpensePanel().getTable().add(expenses);\n\n // Add income totals.\n for(IncomeExpenseTotal total : report.getIncome())\n {\n getIncomePanel().getTable().add(total);\n\n // Combine all the income totals into the total.\n income.setAmount(income.getAmount() + total.getAmount());\n }\n\n getIncomePanel().getTable().add(income);\n\n // Add transfer totals.\n for(TransferTotal total : report.getTransfers())\n {\n getTransferPanel().getTable().add(total);\n }\n\n // Display results.\n getExpensePanel().getTable().display();\n getIncomePanel().getTable().display();\n getTransferPanel().getTable().display();\n }",
"@GET\n @Produces(APPLICATION_JSON)\n @ApiOperation(value = \"Find all authors\", response = CategoryDTO.class, responseContainer = \"List\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"All categories found\"),\n @ApiResponse(code = 404, message = \"Categories not found\")}\n )\n public Response getAllCategories() {\n log.debug(\"REST request to get all Categories\");\n List<CategoryDTO> result = categoryService.findAll();\n return ok(result).build();\n }",
"private void calculateOverall()\n {\n ArrayList<Integer> average = new ArrayList<Integer>(1);\n ArrayList<Integer> median = new ArrayList<Integer>(1);\n ArrayList<Integer> mode = new ArrayList<Integer>();\n ArrayList<Integer> stdDev = new ArrayList<Integer>(1);\n \n int avg = 0;\n int med = 90;\n int mod = 90;\n int dev = 0;\n \n int[] modeArray = new int[100];\n \n for (int i = 0; i < 100; i++) {\n \tmodeArray[i] = 0;\n }\n \n for (Integer score : allScores) {\n \tavg += score;\n \tmodeArray[score]++;\n }\n \n for (int i = 0; i < 100; i++) {\n \tif (modeArray[i] > mod) {\n \t\tmod = modeArray[i];\n \t}\n }\n \n avg = avg / allScores.size();\n \n Collections.sort(allScores);\n med = allScores.get(allScores.size() / 2);\n \n for (Integer score : allScores) {\n \tdev += Math.pow(score - avg, 2);\n }\n dev = (int)Math.floor(Math.sqrt(dev / allScores.size()));\n\n // TODO: Perform the actual calculations here\n average.add(avg);\n median.add(med);\n mode.add(mod);\n stdDev.add(dev);\n\n this.overallAnalytics.put(\"Average\", average);\n this.overallAnalytics.put(\"Median\", median);\n this.overallAnalytics.put(\"Mode\", mode);\n this.overallAnalytics.put(\"Standard Deviation\", stdDev);\n }",
"public static String showAll(){\n return resultsMap.toString();\n }",
"public List<ProductCatagory> getAllCategory() throws BusinessException;",
"public interface Aggregation {\n\n final int SST = 0;\n final int SST_ANOMALY = 1;\n final int RANDOM_UNCERTAINTY = 2;\n final int COVERAGE_UNCERTAINTY = 3;\n final int LARGE_SCALE_UNCERTAINTY = 4;\n final int ADJUSTMENT_UNCERTAINTY = 5;\n final int SYNOPTIC_UNCERTAINTY = 6;\n final int SEA_ICE_FRACTION = 7;\n\n long getSampleCount();\n\n Number[] getResults();\n\n public double getSeaSurfaceTemperature();\n\n public double getSeaSurfaceTemperatureAnomaly();\n\n public double getRandomUncertainty();\n\n public double getLargeScaleUncertainty();\n\n public double getCoverageUncertainty();\n\n public double getAdjustmentUncertainty();\n\n public double getSynopticUncertainty();\n\n public double getSeaIceFraction();\n}",
"protected abstract String[] summarize();",
"public void getCategorory(){\n\t\tDynamicQuery dynamicQuery = DynamicQueryFactoryUtil.forClass(AssetCategory.class, \"category\", PortalClassLoaderUtil.getClassLoader());\n\t\ttry {\n\t\t\tList<AssetCategory> assetCategories = AssetCategoryLocalServiceUtil.dynamicQuery(dynamicQuery);\n\t\t\tfor(AssetCategory category : assetCategories){\n\t\t\t\tlog.info(category.getName());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}",
"@Override\r\n public List<Anggota> getAll(String category, String sort) {\r\n List<Anggota> datas = new ArrayList<>();\r\n String query = \"SELECT *FROM Anggota ORDER BY \" + category + \" \" + sort;\r\n try {\r\n\r\n PreparedStatement preparedStatement = connection.prepareStatement(query);\r\n ResultSet rs = preparedStatement.executeQuery();\r\n\r\n while (rs.next()) {\r\n Anggota anggota = new Anggota();\r\n anggota.setKdAnggota(rs.getString(1));\r\n anggota.setNmAnggota(rs.getString(2));\r\n anggota.setTelepon(rs.getString(3));\r\n anggota.setAlamat(rs.getString(4));\r\n datas.add(anggota);\r\n }\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AnggotaDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return datas;\r\n }",
"public void summarizeData() {\n\t\t//take json object and populate a POJO\n\t\t\n//\t\tfor(javaObject : x) {\n\t\t\n\t\t\t//new JobSummaryObject\n\t\t\t//\n\t}",
"@Override\n\tpublic Long getTotalCat() {\n\t\treturn categoriesDAO.getTotalCat();\n\t}",
"@Override\r\n\tpublic List<Category> getAllCategory() {\n\t\tString hql = \"from Category\";\r\n\t\treturn (List<Category>) getHibernateTemplate().find(hql);\r\n\t}",
"public String getAllResults() {\n StringBuilder sb = new StringBuilder();\n for (Map.Entry<String, String> results : resultMap.entrySet()) {\n sb.append(results.getKey().toString() + \" : \" + results.getValue().toString() + \"\\n\");\n }\n return sb.toString();\n }",
"@Override\r\n\tpublic List<Category> getAllCategory() {\n\t\treturn categoryDao.getAll();\r\n\t}",
"@GetMapping(\"/listAll\")\n\tpublic ResponseEntity<?> findAll(){\n\t\treturn new ResponseEntity<>(catService.listAll(),HttpStatus.OK);\n\t}",
"public List<Object[]> findBGPPeersRecordsCountByCategory(String category){\n\n Session session = null;\n\n List<Object[]> records = new ArrayList<Object[]>();\n\n StringBuilder sqlQuery = new StringBuilder();\n\n if(category.equals(\"peerCountsByStatusIP\")){\n sqlQuery.append(\"SELECT if(isL3VPNpeer, 'VPN', if(isIpv4, 'IPv4', 'IPv6')) as `IP-Type`,count(hash_id) as Count FROM bgp_peers GROUP BY `IP-Type`\");\n } else if(category.equals(\"routersWithCountOfPeersByIPType\")){\n sqlQuery.append(\"SELECT RouterName,RouterIP,if(isPeerVPN, 'VPN', if(isPeerIPv4, 'IPv4', 'IPv6')) as `IP-Type`, count(peer_hash_id) as Count FROM v_peers GROUP BY RouterName,`IP-Type`\");\n }\n\n try{\n session = sessionFactory.openSession();\n\n records = session.createSQLQuery(sqlQuery.toString()).list();\n\n }catch(Exception e){\n e.printStackTrace();\n }finally {\n if(session != null){\n session.close();\n }\n }\n\n\n return records;\n }",
"@Override\n\tpublic List<Category> getAllCategory() {\n\t\treturn dao.getAllCategory();\n\t}",
"public String getCategoryListing(){\n\t\tCategoryDAO daoObject = new CategoryDAO();\n\t\tString result = \"\";\n\t\t/*if(requestCall.equalsIgnoreCase(\"table\")){\n\t\t\t//System.out.println(\"in getCategoryListing service call table\");\n\t\t\tresult = daoObject.getCategoriesAndSubCategories();\n\t\t}else{\n\t\t\tresult = daoObject.getCategories(); \n\t\t}*/\n\t\t//result = daoObject.getCategoriesAndSubCategories();\n\t\tresult = daoObject.getCategories();\n\t\treturn result;\n\t}",
"@Override\n\t@Transactional\n\tpublic void AssamdoAggregateByForm() {\n\t\tList<XForm> forms=xFormRepository.getAll();\n\t\tfor(XForm form:forms){\n\t\t\tSystem.out.println(form.getForm_id());\n\t\t\t\n//\t\t\tif(!form.getForm_id().equals(\"EVM_HealthFacility_04082014_V1\")){\n\t\t\tif(form.getForm_id().equals(\"EVM_SVS_RVS_09092014_V4\")){\n\t\t\t\taggregationServiceUtility.ProcessXform(form);\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\n\tpublic List<CategoryVO> mainCategory() {\n\t\treturn mapper.mainCategory();\n\t}",
"@Override\n\tpublic List<Category> getAllCategories() {\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(\"FROM \"+Category.class.getName());\n\t\treturn (List<Category>)query.list();\t\t\n\t}",
"public void executeGroupByCriteria() {\n Session session = getSession();\n Transaction transaction = session.beginTransaction();\n\n // SELECT name, price\n ProjectionList projectionList = Projections.projectionList();\n projectionList.add(Projections.groupProperty(\"name\"));\n projectionList.add(Projections.property(\"price\"));\n\n // FROM Product p\n Criteria criteria = session.createCriteria(Product.class);\n\n // GROUP BY p.name\n criteria.setProjection(projectionList);\n\n displayObjectsList(criteria.list());\n transaction.commit();\n }",
"public void visitHardTotals( DevCat devCat ) {}",
"@Test\n public void selectAll() {\n List<ProductCategory>productCategories=categoryService.selectAll();\n for (ProductCategory productCategory:productCategories\n ) {\n System.out.println(productCategory);\n }\n }",
"io.dstore.values.BooleanValue getGroupByCategory();",
"List<Category> getAllCategories();",
"private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}",
"protected List<Aggregation> getAggregations(QueryContext queryContext) {\n\t\t\n\t\tif (_log.isDebugEnabled()) {\n\t\t\t_log.debug(\"Getting aggregations.\");\n\t\t}\n\n\t\tif (_aggregationBuilders == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<Aggregation> aggregations = new ArrayList<Aggregation>();\n\t\t\t\t\n\t\tfor (AggregationsBuilder aggregationBuilder : _aggregationBuilders) {\n\n\t\t\tif (_log.isDebugEnabled()) {\n\t\t\t\t_log.debug(\n\t\t\t\t\t\"Executing \" +\n\t\t\t\t\t\taggregationBuilder.getClass().getName());\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\taggregations.addAll(\n\t\t\t\t\taggregationBuilder.buildAggregation(queryContext));\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e.getMessage(), e);\n\t\t\t}\n\t\t}\n\n\t\treturn aggregations;\n\t}",
"@GetMapping(\"/category\")\n\t public ResponseEntity<List<Category>> getcategorys() {\n\n\t List<Category> list = categoryService.getAllcategorys();\n\t if (list.size() <= 0) {\n\t return ResponseEntity.status(HttpStatus.NOT_FOUND).build();\n\t }\n\t return ResponseEntity.status(HttpStatus.CREATED).body(list);\n\t }",
"private void appointmentReport() {\n Set<String> types = new HashSet<>();\n Set<Month> months = new HashSet<>();\n HashMap<String, Integer> numberByType = new HashMap<>();\n HashMap<Month, Integer> numberByMonth = new HashMap<>();\n\n for (Appointment appointment: Data.getAppointments()) {\n months.add(appointment.getStart().toLocalDateTime().getMonth());\n types.add(appointment.getType());\n }\n\n for (String type: types) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n\n if (type.equals(appointment.getType())) {\n count++;\n }\n numberByType.put(type, count);\n }\n }\n for (Month month: months) {\n int count = 0;\n for (Appointment appointment: Data.getAppointments()) {\n if (month.equals(appointment.getStart().toLocalDateTime().getMonth())) {\n count++;\n }\n numberByMonth.put(month, count);\n }\n }\n\n reportText.appendText(\"Report of the number of appointments by type:\\n\\n\");\n reportText.appendText(\"Count \\t\\tType\\n\");\n numberByType.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n reportText.appendText(\"\\n\\n\\nReport of the number of appointments by Month:\\n\\n\");\n reportText.appendText(\"Count \\t\\tMonth\\n\");\n numberByMonth.forEach((k,v) -> reportText.appendText(v + \"\\t\\t\" + k + \"\\n\"));\n\n }",
"void displayAllPosts();",
"public static void loopCategories() throws IOException {\n //If all of the categories haven't been checked yet check the response at the current index (count).\n if (count < CATEGORY_ARRAY_SIZE) {\n //If that response if equal to TRUE (1).\n if (currentUser.getSingleCategory(count) == TRUE) {\n //Adjust the start index.\n startIndex = count * LOCATIONS_PER_CATEGORY;\n //Call the locaitons view.\n Main.FxmlLoader(LOCATIONS_PATH);\n }\n //Otherwise increment count and check the next index recursively.\n else {\n count++;\n loopCategories();\n }\n }\n }",
"List<ProductCategory> getAll();",
"private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }",
"public List<Categorie> getAllCategories();",
"@Override\n public OneRow emitAggObject() {\n if (!statsInitialized) {\n throw new IllegalStateException(\"retrieveStats() should be called before calling emitAggObject()\");\n }\n OneRow row = null;\n if (context.getAggType() == null)\n throw new UnsupportedOperationException(\"Aggregate operation is required\");\n if (context.getAggType() != EnumAggregationType.COUNT)\n throw new UnsupportedOperationException(\"Aggregation operation is not supported.\");\n\n if (objectsEmitted < count) {\n objectsEmitted++;\n row = rowToEmitCount;\n }\n return row;\n }",
"@Override\n public List<Map<String, Serializable>> getResult() {\n Preconditions.checkState(_finish, \"GetResult cannot be called before finish.\");\n List<Map<String, Serializable>> result = new ArrayList<Map<String, Serializable>>(_aggrFuncContextList.size());\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n result.add(new HashMap<String, Serializable>());\n }\n\n Iterator<Pair<Long, String>> groupKeys = _groupKeyGenerator.getUniqueGroupKeys();\n while (groupKeys.hasNext()) {\n Pair<Long, String> idKeyPair = groupKeys.next();\n String stringGroupKey = idKeyPair.getSecond();\n\n for (int i = 0; i < _aggrFuncContextList.size(); i++) {\n double resultForGroupKey = _resultHolderArray[i].getResultForGroupKey(idKeyPair.getFirst());\n result.get(i).put(stringGroupKey, resultForGroupKey);\n }\n }\n return result;\n }",
"@Override\r\n public void calculate() {\r\n // do the calculations\r\n this.categories = new String[]{\"one\", \"two\"};\r\n this.data = new double[]{75, 50};\r\n }",
"private void setAggregations(Aggregations aggregations, ActionResponse actionResp) { Only the result of the first aggregation is returned\n //\n final Aggregation agg = aggregations.asList().get(0);\n\n if (agg instanceof InternalMetricsAggregation) {\n actionResp.addAggregation(new AggWrapper(AggWrapper.AggregationType.SIMPLE,\n XContentHelper.toString((InternalMetricsAggregation) agg).toString()));\n } else if (agg instanceof InternalSingleBucketAggregation) {\n actionResp.addAggregation(new AggWrapper(AggWrapper.AggregationType.SIMPLE,\n XContentHelper.toString((InternalSingleBucketAggregation) agg).toString()));\n } else if (agg instanceof InternalMultiBucketAggregation) {\n final Set<String> headerKeys = new HashSet<>();\n final List<Map<String, Object>> buckets = new LinkedList<>();\n final InternalMultiBucketAggregation multiBucketAgg = (InternalMultiBucketAggregation) agg;\n\n for (final MultiBucketsAggregation.Bucket bucket : multiBucketAgg.getBuckets()) {\n try {\n final XContentBuilder builder = XContentFactory.jsonBuilder();\n bucket.toXContent(builder, null);\n actionResp.addAggregation(\n new AggWrapper(AggWrapper.AggregationType.MULTI_BUCKETS, builder.string()));\n } catch (final IOException e) {\n // Ignored\n }\n }\n }\n }",
"public static void showAllHouse(){\n ArrayList<House> houseList = getListFromCSV(FuncGeneric.EntityType.HOUSE);\n displayList(houseList);\n showServices();\n }",
"public void showCatalogue() {\n for (Record r : cataloue) {\n System.out.println(r);\n }\n }",
"private void outputAccounts(){\r\n float total = 0;\r\n Collections.sort(theAccounts);\r\n for(Account aAccount:theAccounts){\r\n System.out.println(aAccount.toString());\r\n total += aAccount.getPremiumBonds();\r\n }\r\n\r\n System.out.println(\"Mediem\");\r\n calculateMediem();\r\n\r\n System.out.println(\"Mean:\");\r\n calculateMean(total);\r\n\r\n System.out.println(\"Mode:\");\r\n calculateMode();\r\n\r\n System.out.println(\"Range\");\r\n calculateRange();\r\n }",
"public static void main(String[] args) {\n\t\tAggregateSummaryStatistics aggregate = new AggregateSummaryStatistics();\n\t\tSummaryStatistics setOneStats = aggregate.createContributingStatistics();\n\t\tSummaryStatistics setTwoStats = aggregate.createContributingStatistics();\n\n\t\t \n\t\tfor( int i = 1; i <= 10; i++) {\n\t\t\tsetOneStats.addValue(i);\n\t\t\tsetTwoStats.addValue(i);\n\t\t}\n\t\t\n\t\t// Full sample data is reported by the aggregate\n\t\tdouble totalSampleSum = aggregate.getSum();\n\t\tSystem.out.println(\"totalSampleSum=\"+totalSampleSum);\n\t\tSystem.out.println(\"Count=\"+aggregate.getN());\n\t\tSystem.out.println(\"mean=\"+aggregate.getMean());\n\t\tSystem.out.println(\"std=\"+aggregate.getStandardDeviation());\n\t\t\n\t}",
"protected Long getOverallStats(List<PropertyType> featuresWithType, List<Statistic> stats, NxQueryBuilder qb) {\n for (PropertyType prop : featuresWithType) {\n String propName = prop.getName();\n if (prop.getType() != null) {\n switch (prop.getType()) {\n case CATEGORY_TYPE:\n case TEXT_TYPE:\n // TODO assuming that text is a property ! could be a blob\n qb.addAggregate(makeAggregate(AGG_MISSING, propName, EMPTY_PROPS));\n qb.addAggregate(makeAggregate(AGG_TYPE_TERMS, propName, TERM_PROPS));\n qb.addAggregate(makeAggregate(AGG_CARDINALITY, propName, EMPTY_PROPS));\n break;\n case IMAGE_TYPE:\n qb.addAggregate(makeAggregate(AGG_MISSING, contentProperty(propName), EMPTY_PROPS));\n break;\n default:\n // Only 3 types at the moment, we would need numeric type in the future. //\n }\n } else {\n // Assuming without type it is text or category !\n qb.addAggregate(makeAggregate(AGG_MISSING, propName, EMPTY_PROPS));\n }\n }\n EsResult esResult = Framework.getService(ElasticSearchService.class).queryAndAggregate(qb);\n stats.addAll(esResult.getAggregates().stream().map(Statistic::from).collect(Collectors.toList()));\n long total = esResult.getElasticsearchResponse().getHits().getTotalHits().value;\n stats.add(Statistic.of(STATS_TOTAL, STATS_TOTAL, STATS_TOTAL, null, total));\n\n return total;\n }",
"public void displayAll() {\r\n \t Item currentItem;\r\n \t \r\n \t System.out.println(\"-----BOOKS-----\");\r\n \t for(int i=0; i<items.size(); i++) {\r\n \t currentItem = items.get(i);\r\n \t \t //This next line checks if the current item is a book.\r\n \t if(currentItem.getItemType() == Item.ItemTypes.BOOK) \r\n \t System.out.println(currentItem.toString());\r\n \t }\r\n \t \t\r\n \t System.out.println(\"-----MAGAZINES-----\");\r\n \t for(int i=0; i<items.size(); i++) {\r\n \t currentItem = items.get(i);\r\n \t \t //This next line checks if the current item is a magazine.\r\n \t if(currentItem.getItemType() == Item.ItemTypes.MAGAZINE)\r\n \t System.out.println(currentItem.toString());\r\n \t }\r\n\r\n }",
"private static void groupImperative() {\n\n Map<Currency, List<FinancialTransaction>> transactionsByCurrency = new EnumMap<>(Currency.class);\n for (FinancialTransaction transaction : transactions) {\n Currency currency = transaction.getCurrency();\n transactionsByCurrency.computeIfAbsent(currency, k -> new ArrayList<>()).add(transaction);\n }\n log.info(\"{}\", transactionsByCurrency);\n // Java 7.\n log.info(\"Handling a Map<Currency, List<FinancialTransaction>> via a for-loop (Java 7).\");\n for (Map.Entry<Currency, List<FinancialTransaction>> entry : transactionsByCurrency.entrySet()) {\n log.info(\"****************************************************\");\n log.info(\"Currency: {}\", entry.getKey());\n // Ooops: Java 8 :-) So in this way I can do everything with one of the values, being a List<String>.\n entry.getValue().stream()\n .forEach(financialTransaction -> log.info(\"Name: {}\", financialTransaction));\n }\n }",
"public void displayByAlbums()\n {\n Collections.sort(catalog);\n \n System.out.printf(\"%-39s %-30s %s %n\",\"ALBUM\", \"ARTIST\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(true)); //since true, albums are first. \n \n for(int i=0; i<30; i++)\n System.out.print(\"*\"); //line of asterisks\n System.out.print(\"\\n\\n\");\n }",
"@RequestMapping(value = \"/categories\", method = RequestMethod.GET, produces = \"application/json\")\n public Collection<String> getCategories() {\n return this.datasetService.getCategories();\n }",
"public Relation group(ArrayList<String> params, ArrayList<String> aggregates, ArrayList<String> groupBy){\n Relation table = new Relation();\n\n // Create columns for new table\n for(int i = 0; i < params.size(); i++){\n Col c = getColumnByName(params.get(i));\n\n String name = params.get(i);\n\n if(!aggregates.get(i).isEmpty()){\n name += \"-\" + aggregates.get(i);\n }\n\n table.insertColumn(new Col(name, c.getType(), c.getMaxLength(), c.getDecimalsAllowed(), false));\n }\n\n if(groupBy.size() == 1 && groupBy.get(0).charAt(0) == '('){\n\n Relation r = select(params, EMPTY_LIST, EMPTY_LIST);\n ArrayList<String> values = new ArrayList<>();\n\n for(int i = 0; i < params.size(); i++){\n\n if(aggregates.get(i).isEmpty()){\n values.add(r.getColumnByName(params.get(i)).getRec(0).getLastEntry().getData());\n }\n else{\n if(aggregates.get(i).equals(\"avg\")){\n values.add(Double.toString(r.average(params.get(i))));\n }\n else if(aggregates.get(i).equals(\"count\")){\n ArrayList<String> c = new ArrayList<>();\n ArrayList<String> a = new ArrayList<>();\n\n ArrayList<String> p = new ArrayList<>();\n p.add(params.get(i));\n\n values.add(Integer.toString(r.count(p, c, a)));\n }\n else if(aggregates.get(i).equals(\"sum\")){\n ArrayList<String> c = new ArrayList<>();\n ArrayList<String> a = new ArrayList<>();\n\n ArrayList<String> p = new ArrayList<>();\n p.add(params.get(i));\n\n values.add(Double.toString(r.sum(p, c, a)));\n }\n else if(aggregates.get(i).equals(\"min\")){\n ArrayList<String> c = new ArrayList<>();\n ArrayList<String> a = new ArrayList<>();\n\n ArrayList<String> p = new ArrayList<>();\n p.add(params.get(i));\n\n values.add(Double.toString(r.min(p, c, a)));\n }\n else if(aggregates.get(i).equals(\"max\")){\n ArrayList<String> c = new ArrayList<>();\n ArrayList<String> a = new ArrayList<>();\n\n ArrayList<String> p = new ArrayList<>();\n p.add(params.get(i));\n\n values.add(Double.toString(r.max(p, c, a)));\n\n }\n else{\n System.out.println(\"Relation.group: Unexpected scenerio occurred\");\n System.exit(2);\n }\n }\n\n }\n\n table.insert(values);\n values.clear();\n\n return table;\n }\n\n //Get distinct group values\n HashSet<String> distinct = new HashSet<>();\n HashMap<String, Relation> tables = new HashMap<>();\n Relation temp = new Relation();\n\n ArrayList<Col> columns = new ArrayList<>();\n for(String group : groupBy){\n columns.add(getColumnByName(group));\n temp.insertColumn(getColumnByName(group));\n }\n\n for(int i = 0; i < columns.get(0).size(); i++){\n ArrayList<Rec> rec = temp.getRecordsByRowIndex(i);\n String groups = \"\";\n\n for(Rec value : rec){\n groups += value.getLastEntry().getData() + \",\";\n }\n\n groups = groups.substring(0, groups.length()-1);\n\n distinct.add(groups);\n }\n\n /*Col col = getColumnByName(groupBy);\n for(Rec rec : col.getRecs()){\n distinct.add(rec.getLastEntry().getData());\n }*/\n\n for(String d : distinct) {\n\n ArrayList<String> p = new ArrayList<>();\n ArrayList<String> c = new ArrayList<>();\n ArrayList<String> a = new ArrayList<>();\n\n String[] split = d.split(\",\");\n for(int i = 0; i < split.length; i++) {\n c.add(groupBy.get(i) + \" = \" + split[i]);\n }\n\n for(int i = 1; i < split.length; i++){\n a.add(\"AND\");\n }\n\n Relation r = this.select(p, c, a);\n tables.put(d, r);\n }\n\n for(String d : distinct){\n\n Relation r = tables.get(d);\n ArrayList<String> values = new ArrayList<>();\n\n for(int i = 0; i < params.size(); i++){\n\n if(aggregates.get(i).isEmpty()){\n values.add(r.getColumnByName(params.get(i)).getRec(0).getLastEntry().getData());\n }\n else{\n if(aggregates.get(i).equals(\"avg\")){\n values.add(Double.toString(r.average(params.get(i))));\n }\n else if(aggregates.get(i).equals(\"count\")){\n ArrayList<String> c = new ArrayList<>();\n ArrayList<String> a = new ArrayList<>();\n\n String[] split = d.split(\",\");\n for(int j = 0; j < split.length; j++) {\n c.add(groupBy.get(j) + \" = \" + split[j]);\n }\n\n for(int j = 1; j < split.length; j++){\n a.add(\"AND\");\n }\n\n ArrayList<String> p = new ArrayList<>();\n p.add(params.get(i));\n\n values.add(Integer.toString(r.count(p, c, a)));\n }\n else if(aggregates.get(i).equals(\"sum\")){\n ArrayList<String> c = new ArrayList<>();\n ArrayList<String> a = new ArrayList<>();\n\n String[] split = d.split(\",\");\n for(int j = 0; j < split.length; j++) {\n c.add(groupBy.get(j) + \" = \" + split[j]);\n }\n\n for(int j = 1; j < split.length; j++){\n a.add(\"AND\");\n }\n\n ArrayList<String> p = new ArrayList<>();\n p.add(params.get(i));\n\n values.add(Double.toString(r.sum(p, c, a)));\n }\n else if(aggregates.get(i).equals(\"min\")){\n ArrayList<String> c = new ArrayList<>();\n ArrayList<String> a = new ArrayList<>();\n\n String[] split = d.split(\",\");\n for(int j = 0; j < split.length; j++) {\n c.add(groupBy.get(j) + \" = \" + split[j]);\n }\n\n for(int j = 1; j < split.length; j++){\n a.add(\"AND\");\n }\n\n ArrayList<String> p = new ArrayList<>();\n p.add(params.get(i));\n\n values.add(Double.toString(r.min(p, c, a)));\n }\n else if(aggregates.get(i).equals(\"max\")){\n ArrayList<String> c = new ArrayList<>();\n ArrayList<String> a = new ArrayList<>();\n\n String[] split = d.split(\",\");\n for(int j = 0; j < split.length; j++) {\n c.add(groupBy.get(j) + \" = \" + split[j]);\n }\n\n for(int j = 1; j < split.length; j++){\n a.add(\"AND\");\n }\n\n ArrayList<String> p = new ArrayList<>();\n p.add(params.get(i));\n\n values.add(Double.toString(r.max(p, c, a)));\n\n }\n else{\n System.out.println(\"Relation.group: Unexpected scenerio occurred\");\n System.exit(2);\n }\n }\n\n }\n\n table.insert(values);\n values.clear();\n\n }\n\n return table;\n\n }",
"public static void main(String[] args) throws IOException {\n\t\tFileInputStream fi = new FileInputStream(\"C:\\\\Users\\\\jyuna\\\\OneDrive\\\\Desktop\\\\2019airpollution.csv\");\n FileOutputStream fo = new FileOutputStream(\"C:\\\\Users\\\\jyuna\\\\OneDrive\\\\Desktop\\\\output.txt\");\n BufferedReader br = new BufferedReader(new InputStreamReader(fi));\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(fo));\n\n String strLine;\n while ((strLine = br.readLine()) != null) {\n\n String[] arr = strLine.split(\" \");\n String[] nos = arr[1].split(\",\");\n\n Set<Integer> set = new HashSet<Integer>(); \n for(int i = 0; i<nos.length; i++){\n int no = Integer.parseInt(nos[i]);\n set.add(no); \n }\n TreeSet<Integer> sortedSet = new TreeSet<Integer>(set); \n\n switch(arr[0]) {\n\n case \"Min:\":\n String msg1=\"The Min of [\" +arr[1]+ \"] is \" +(Integer)sortedSet.first();\n bw.write(msg1);\n bw.newLine();\n\n break;\n\n case \"Max:\":\n String msg2=\"The Max of [\" +arr[1]+ \"] is \" +(Integer)sortedSet.last();\n bw.write(msg2);\n bw.newLine();\n break;\n\n case \"Avg:\":\n Object[] noarray = sortedSet.toArray();\n int noarraysize = noarray.length-1;\n int sum=0;\n for(int i=0;i<=noarraysize;i++) {\n\n int no=Integer.valueOf(noarray[i].toString());\n sum = sum + no;\n if(i==noarraysize) {\n String msg3=\"The Avg of [\" +arr[1]+ \"] is \" +(double)sum/noarray.length;\n bw.write(msg3);\n bw.newLine();\n }\n }\n break;\n\n case \"Sum:\":\n Object[] noarray1 = sortedSet.toArray();\n int noarraysize1 = noarray1.length-1;\n int sum1=0;\n for(int i=0;i<=noarraysize1;i++) {\n int no=Integer.valueOf(noarray1[i].toString());\n sum1 = sum1 + no;\n if(i==noarraysize1) {\n String msg4=\"The Sum of [\" +arr[1]+ \"] is \" +sum1;\n bw.write(msg4);\n bw.newLine();\n }\n }\n break;\n\n }\n\n }\n br.close();\n bw.close();\n\n }",
"@GetMapping //método abaixo retorna todas categorias\n\tpublic ResponseEntity<List<Product>> findAll() {\n\t\tList<Product> list = categoryRepository.findAll();\n\t\t\n\t\t\n\t\treturn ResponseEntity.ok().body(list);\n\t}",
"String findAllAggrGroupByDistinct();",
"void displayFilteredAlbums();",
"public TreeMap<String, Integer[]> generateAppCategory(Date startDate, Date endDate) {\n\n //Total Usage Time for each appid\n TreeMap<Integer, Double> appResult = new TreeMap<Integer, Double>();\n //Total Usage Time for each category\n TreeMap<String, Double> result = new TreeMap<String, Double>();\n //Total Usage Time and Percent for each category\n TreeMap<String, Integer[]> toResult = new TreeMap<String, Integer[]>();\n\n AppUsageDAO auDAO = new AppUsageDAO();\n ArrayList<User> userList = new ArrayList<User>();\n\n userList = auDAO.retrieveUsers(startDate, endDate);\n for (int i = 0; i < userList.size(); i++) {\n\n User currUser = userList.get(i);\n ArrayList<AppUsage> userUsage = auDAO.retrieveByUser(currUser.getMacAddress(), startDate, endDate);\n Date nextDay = new Date(startDate.getTime() + 60 * 60 * 1000 * 24);\n\n Date oldTime = null;\n if (userUsage.size() > 0) {\n oldTime = userUsage.get(0).getDate();\n if (oldTime.after(nextDay)) {\n nextDay = new Date(nextDay.getTime() + 60 * 60 * 1000 * 24);\n }\n }\n\n for (int j = 1; j < userUsage.size(); j++) {\n AppUsage au = userUsage.get(j);\n Date newTime = au.getDate();\n\n //store oldTime appId\n int appId = userUsage.get(j - 1).getAppId();\n boolean beforeAppeared = false;\n if (newTime.before(nextDay)) {\n beforeAppeared = true;\n\n //difference = usage time of the oldTime appId\n double difference = Utility.secondsBetweenDates(oldTime, newTime);\n\n //If difference less than/equal 2 minutes\n if (difference <= 2 * 60) {\n // add time to the appId\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + difference));\n } else {\n appResult.put(appId, difference);\n }\n\n } else {\n // add 10sec to appid if > 2 mins\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + 10));\n } else {\n appResult.put(appId, 10.0);\n }\n\n }\n\n } else {\n nextDay = new Date(nextDay.getTime() + 60 * 60 * 1000 * 24);\n\n if (!beforeAppeared) {\n double diff = Utility.secondsBetweenDates(oldTime, newTime);\n //add time to the appid\n if (diff <= 2 * 60) {\n // add time to the appId\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + diff));\n } else {\n appResult.put(appId, diff);\n }\n\n } else {\n // add 10sec to appid if > 2 mins\n if (appResult.containsKey(appId)) {\n double value = appResult.get(appId);\n appResult.put(appId, (value + 10));\n } else {\n appResult.put(appId, 10.0);\n }\n\n }\n }\n\n }\n\n oldTime = newTime;\n\n }\n\n //get the appId of the last user usage\n int lastAppId = userUsage.get(userUsage.size() - 1).getAppId();\n\n if (oldTime.before(nextDay)) {\n double difference = Utility.secondsBetweenDates(oldTime, nextDay);\n //add the time difference to last appId\n if (difference < 10) {\n if (appResult.containsKey(lastAppId)) {\n double value = appResult.get(lastAppId);\n appResult.put(lastAppId, (value + difference));\n } else {\n appResult.put(lastAppId, difference);\n }\n } else {\n if (appResult.containsKey(lastAppId)) {\n double value = appResult.get(lastAppId);\n appResult.put(lastAppId, (value + 10));\n } else {\n appResult.put(lastAppId, 10.0);\n }\n }\n } else {\n\n if (appResult.containsKey(lastAppId)) {\n double value = appResult.get(lastAppId);\n appResult.put(lastAppId, (value + 10));\n } else {\n appResult.put(lastAppId, 10.0);\n }\n\n }\n\n //DIVIDE TO GET INTO DAYS\n long days = Utility.daysBetweenDates(startDate, endDate);\n\n AppDAO app = new AppDAO();\n\n //Retrieve appid in each category\n TreeMap<String, ArrayList<Integer>> appCategoryList = app.retrieveByCategory();\n Iterator<String> iter = appCategoryList.keySet().iterator();\n double totTime = 0.0;\n //Sum the total time by category\n while (iter.hasNext()) {\n String key = iter.next();\n //EACH CATEGORY\n ArrayList<Integer> innerList = appCategoryList.get(key);\n double totCatTime = 0.0;\n for (int j = 0; j < innerList.size(); j++) {\n int appid = innerList.get(j);\n double timePerApp = 0.0;\n\n if (appResult.containsKey(appid)) {\n timePerApp = appResult.get(appid);\n\n }\n totCatTime += timePerApp;\n }\n\n double avgCatTime = totCatTime / days;\n\n totTime += avgCatTime;\n result.put(key, avgCatTime);\n }\n\n Iterator<String> iterator = result.keySet().iterator();\n //Calculate the percentage for each category\n while (iterator.hasNext()) {\n\n String name = iterator.next();\n double duration = result.get(name);\n double percent = (duration / totTime) * 100;\n Integer[] arrToReturn = new Integer[2];\n\n arrToReturn[0] = Integer.valueOf(Math.round(duration) + \"\");\n arrToReturn[1] = Integer.valueOf(Math.round(percent) + \"\");\n toResult.put(name, arrToReturn);\n\n }\n\n }\n ArrayList<String> catList = Utility.retrieveCategories();\n\n for (String cat : catList) {\n if (!toResult.containsKey(cat)) {\n Integer[] arrToReturn = new Integer[2];\n arrToReturn[0] = 0;\n arrToReturn[1] = 0;\n toResult.put(cat, arrToReturn);\n }\n }\n return toResult;\n }",
"@Override\n\tpublic void aggregate(Scan scan) {\n\n\t}",
"public ModelAllGategorey(JSONObject jsonObject){\n\t\tif(jsonObject == null){\n\t\t\treturn;\n\t\t}\n\t\tstatus = jsonObject.optInt(\"status\");\n\t\tJSONArray catrgoriesJsonArray = jsonObject.optJSONArray(\"catrgories\");\n\t\tif(catrgoriesJsonArray != null){\n\t\t\tArrayList<ModelCatrgory> catrgoriesArrayList = new ArrayList<>();\n\t\t\tfor (int i = 0; i < catrgoriesJsonArray.length(); i++) {\n\t\t\t\tJSONObject catrgoriesObject = catrgoriesJsonArray.optJSONObject(i);\n\t\t\t\tcatrgoriesArrayList.add(new ModelCatrgory(catrgoriesObject));\n\t\t\t}\n\t\t\tcatrgories = (ModelCatrgory[]) catrgoriesArrayList.toArray();\n\t\t}\n\t}",
"@Override\n\tpublic Iterable<Category> findAllCategory() {\n\t\treturn categoryRepository.findAll();\n\t}",
"public static ArrayList<ArrayList<String>> getDataByMetric(String category) throws SQLException, CategoryException\n\t{\n\t\tMap<String, String> metrics = getMetricInfo(category);\n\t\t\t\t\t\t\n\t\tConnection conn = DBConnector.getInstance().getConn();\n\t\t\n\t\tArrayList<ArrayList<String>> data = new ArrayList<ArrayList<String>>();\n\t\t\n\t\tfor (Entry<String, String> e : metrics.entrySet())\n\t\t{\n\t\t\tString sql = \"SELECT * FROM mhtc_sch.getDataByMetric(?)\";\n\t\t\tPreparedStatement pstatement = conn.prepareStatement(sql);\n\t\t\tpstatement.setInt(1, Integer.parseInt(e.getValue()));\n\t\t\tResultSet rs = pstatement.executeQuery();\n\t\t\t\n\t\t\t/* Long: Convert it into JSON format for DataTable processing */\n\t\t\twhile (rs.next()) \n\t\t\t{\n\t\t\t\tArrayList<String> dataRows = new ArrayList<String>();\n\t\t\t\tdataRows.add(rs.getString(\"StateName\"));\n\t\t\t\tdataRows.add(e.getKey());\n\t\t\t\tdataRows.add(rs.getString(\"Value\"));\n\t\t\t\tdataRows.add(rs.getString(\"Year\"));\n\t\t\t\tdata.add(dataRows);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn data;\n\t}",
"public void clearAllResultsAndSummaries() {\r\n for (WjrMethodItem methodItem : methodItems.values()) {\r\n methodItem.clearResult();\r\n }\r\n for (WjrClassItem classItem : classItems.values()) {\r\n classItem.clearSummary();\r\n }\r\n root.clearSummary();\r\n }",
"boolean hasGroupByCategory();",
"private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}",
"@RequestMapping(value=\"/twitter_search/aggregation\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic String twitterAggregation(ModelMap model) {\n\t\t/*\n\t\t * Check whether the user has authorized the application to access the user’s Twitter data.\n\t\t * If not, the user is redirected to ConnectController with the option to kick off the authorization process.\n\t\t * If the user has authorized the application to access Twitter data, the application fetches the user’s profile\n\t\t * as well as several of the most recent entries in the user’s home feed. The data is placed into the model to be\n\t\t * displayed by the view identified as \"friend_feed\".\n\t\t */\n\t\tif(connectionRepository.findPrimaryConnection(Twitter.class) == null) {\n return \"redirect:/connect/twitter\";\n }\n\t\t\n\t\tmodel.addAttribute(twitter.userOperations().getUserProfile());\n model.addAttribute(\"friendFeed\", \"<friendFeedPost>\");\n\t\t\n\t\treturn \"friend_feed\";\n\t}",
"public void summarize () {\n\n TreeNodeVisitor visitor = new TreeNodeVisitor();\n traversal (visitor);\n visitor.log();\n \n }",
"private void displayAllProjects() {\n for(Project projects: Project.totalProjects){\n projects.displayProject();\n System.out.println(\"Popularity\\t\\t: \" + projects.getPopularityCounter());\n }\n }",
"@Test\n public void query_ALLTag() throws AtlasBaseException {\n SearchParameters params = new SearchParameters();\n params.setClassification(ALL_CLASSIFICATION_TYPES);\n params.setQuery(\"sales\");\n\n List<AtlasEntityHeader> entityHeaders = discoveryService.searchWithParameters(params).getEntities();\n\n Assert.assertTrue(CollectionUtils.isNotEmpty(entityHeaders));\n assertEquals(entityHeaders.size(), 5);\n }",
"@Override\r\n\tpublic List<Categorie> getAllCategorie() {\n\t\treturn cateDao.getAllCategorie();\r\n\t}",
"private static void consultaCategoria() throws Exception {\r\n boolean erro;\r\n int idCategoria;\r\n String nomeCategoria;\r\n ArrayList<Produto> lista;\r\n System.out.println(\"\\t** Listar produtos de uma categoria **\\n\");\r\n do {\r\n erro = false;\r\n System.out.print(\"ID da categoria a ser consultada: \");\r\n idCategoria = read.nextInt();\r\n if (idCategoria <= 0) {\r\n erro = true;\r\n System.out.println(\"ID Inválida! \");\r\n }\r\n System.out.println();\r\n } while (erro);\r\n lista = listProdutosPorCategoria(idCategoria);\r\n if (lista != null && !lista.isEmpty()) {\r\n nomeCategoria = getNomeCategoria(idCategoria - 1);\r\n System.out.println(\"Produtos pertencentes a '\" + nomeCategoria + \"'\");\r\n for (Produto p : lista) {\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n + \"\\nCategoria: \" + nomeCategoria\r\n );\r\n }\r\n } else {\r\n System.out.println(\"Não ha produtos nessa categoria, ou ela não existe!\");\r\n }\r\n }",
"public static void displayRestaurants(Category category){\n ArrayList<Restaurant> restaurants = Restaurant.getCategorizedRestaurants(category.getCategory_id());\n for(int i = 0; i < restaurants.size(); i++){\n System.out.println(\"[\" + (i+1) + \"] \" + restaurants.get(i).getRestaurant_name());\n }\n\n }",
"public static ResultSet getAllCategory() {\n try {\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"SELECT catName FROM category\");\n return rs;\n } catch (SQLException ex) {\n Logger.getLogger(itemDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"private void extractAllCitations() {\r\n try {\r\n // gets all matched objects for extracting All Citations.\r\n Matcher matcherObject = matcher.patternMatcher(\"AllCitations\");\r\n\r\n\r\n while (matcherObject.find()) {\r\n allMatches.add(matcherObject.group(1));\r\n }\r\n\r\n // add all citations from allMatches, add it to outputResult\r\n if (!allMatches.isEmpty()) {\r\n format.Formatter(2, allMatches.get(0));\r\n }\r\n \r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Error has occured in extractAllCitations method\");\r\n }\r\n }",
"@Secured({ \"GROUP_AGENT\" })\n Collection<ExpressionExperimentDetailsValueObject> generateSummaryObjects();",
"@RequestMapping(\"/fashionCategories\")\r\n public ResponseEntity<List> listFashionCategories() {\r\n\t\tSystem.out.println(\"*************************************ListAllItems\");\r\n\t\tDBConnection db = new DBConnection();\r\n \tList<Advertisment> categories = \tdb.getAllAdsByCategory(\"Fashion\");\r\n\t\t//List<String> categories = itemService.populateAllCategories(); \r\n\t\t\r\n\t\tSystem.out.println(\"*************************************ListAllItems1111\");\r\n if(categories.isEmpty()){\r\n return new ResponseEntity<List>(HttpStatus.NO_CONTENT);//You many decide to return HttpStatus.NOT_FOUND\r\n }\r\n return new ResponseEntity<List>(categories, HttpStatus.OK);\r\n }",
"@Test\r\n public void testGetALL() {\r\n CategoriaDAO instance = new CategoriaDAO();\r\n List<Categoria> result = instance.getALL();\r\n Categoria itera = new Categoria();\r\n Iterator it = result.iterator();\r\n while (it.hasNext()) {\r\n itera = (Categoria) it.next();\r\n System.out.println(itera.getIdcategoria() + \" \" + itera.getDescricao());\r\n }\r\n }",
"@Override\n\tpublic void displayAvgSalariesCompanies() {\n\n\t}",
"private TreeMap<String, Integer> aggregateResultBySignature(final List<CountingResult> results) {\r\n\t\tCountingResult countingResult;\r\n\t\tString signature;\r\n\t\tInteger value;\r\n\t\tTreeMap<String,Integer> classification = new TreeMap<String, Integer>();\r\n\t\tfor (Iterator<CountingResult> iterator = results.iterator(); iterator.hasNext();) {\r\n\t\t\tcountingResult = iterator.next();\r\n\t\t\tsignature = countingResult.getQualifyingMethodName();\r\n\t\t\tvalue = classification.get(signature);\r\n\t\t\tif(value==null){//classification.keySet().contains(signature)){\r\n\t\t\t\tclassification.put(signature, 1);\r\n\t\t\t}else{\r\n\t\t\t\tclassification.put(signature, new Integer(value+1));\r\n\t\t\t}\r\n\t\t}\r\n\t\tlog.debug(\"Counting results by method name (\\\"classification\\\"): \"+classification.toString());\r\n\t\treturn classification;\r\n\t}",
"public void printAverageRatingsByYearAfterAndGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n AllFilters f = new AllFilters();\n YearAfterFilter y = new YearAfterFilter(1990);\n GenreFilter g = new GenreFilter(\"Drama\");\n f.addFilter(y);\n f.addFilter(g);\n int minRatings = 8;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" \n + MovieDatabase.getYear(r.getItem()) + \"\\t\"\n + MovieDatabase.getTitle(r.getItem()) + \"\\t\"\n + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }",
"@GetMapping(\"/activity/{category}\")\n Stats getStats(@PathVariable(value = \"category\") StatsCategory category) {\n Stats stats = new Stats();\n log.info(\"getting all activity\");\n List<Activity> allActivity = repository.findAll();\n Collections.sort(allActivity);\n Map<String, Integer> stepsByCategory = new TreeMap<String, Integer>();\n switch (category) {\n case DAILY:\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.DAY_OF_YEAR);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = DAY + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n break;\n case WEEKLY:\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.WEEK_OF_YEAR);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = WEEK + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n break;\n case MONTHLY:\n for (Activity activity : allActivity) {\n Calendar cal = Calendar.getInstance();\n cal.setTime(activity.getUntilTime());\n int day = cal.get(Calendar.MONTH);\n int year = cal.get(Calendar.YEAR);\n String dayOfYear = MONTH + day + OF_YEAR + year;\n Integer steps = stepsByCategory.get(dayOfYear);\n if (steps == null) {\n steps = activity.getSteps();\n } else {\n steps += activity.getSteps();\n }\n stepsByCategory.put(dayOfYear, steps);\n }\n break;\n default:\n break;\n }\n List<Details> details = new ArrayList<Stats.Details>();\n if(stepsByCategory != null) {\n for (Entry entry : stepsByCategory.entrySet()) {\n Details stat = stats.new Details();\n stat.key = entry.getKey().toString();\n stat.steps = entry.getValue().toString();\n details.add(stat);\n }\n stats.setDetails(details);\n }\n //stats.setStepsByCategory(stepsByCategory);\n stats.setCategory(category);\n return stats;\n }",
"List<Category> getAllCategories() throws DataBaseException;",
"public ArrayList<Integer> getAnalysisGeneral(){\n resultListGeneral = null ;\n positiveResultGeneral = 0;\n negativeResultGeneral = 0;\n neutralResultGeneral = 0;\n try {\n IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(\"indice/\")));\n this.resultListGeneral = new ArrayList<>();\n\n for (int i = 0; i < reader.numDocs(); i++) {\n Document doc = reader.document(i);\n\n if((doc.get(\"analysis\")).equals(\"Positive\"))\n positiveResultGeneral++;\n else if((doc.get(\"analysis\")).equals(\"Negative\"))\n negativeResultGeneral++;\n else if((doc.get(\"analysis\")).equals(\"Neutral\"))\n neutralResultGeneral++;\n }\n reader.close();\n }\n catch(IOException ioe){\n System.out.println(\"Error\");\n }\n resultListGeneral.add(positiveResultGeneral);\n resultListGeneral.add(negativeResultGeneral);\n resultListGeneral.add(neutralResultGeneral);\n\n return resultListGeneral;\n }",
"private void publishResults()\r\n\t{\n\t\tif (toBeOutputBranches.size() >= guiObject.getNumberOfBranchesFilter()) {\r\n\t\t\t\r\n\t\t\t//prints the default header each block gets\r\n\t\t\tmultiThreadingObj.myPublish(mainHeader);\r\n\t\t\t\r\n\t\t\t//prints out all of the branches (of a block) which passed the filters\r\n\t\t\tfor (Entry<String, String> branch : toBeOutputBranches.entrySet()) {\r\n\t\t\t\tString branchHeader = branch.getKey();\r\n\t\t\t\tString formattedBranch = branch.getValue();\r\n\t\t\t\tmultiThreadingObj.myPublish(branchHeader + formattedBranch);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//prints the upper state energies at the end of the block\r\n\t\t\tmultiThreadingObj.myPublish(energyVals);\r\n\t\t}\r\n\t}",
"private void getChartStatistics(HttpServletResponse response, int scenario, int tickIndex) throws IOException {\n JSONObject obj = new JSONObject();\n Map<Integer, JSONArray> jsonArays = new HashMap<>();\n\n List<String> listOfStatistics = SimApi.getChartStatistics(scenario, tickIndex);\n\n if (listOfStatistics == null) {\n response.getWriter().write(obj.toJSONString());\n return;\n }\n\n if (tickIndex > 0) {\n for (int i = 0; i < listOfStatistics.size(); i++) {\n JSONArray listJ = new JSONArray();\n listJ.add(listOfStatistics.get(i));\n jsonArays.put(i, listJ);\n }\n }\n\n // always add the headers to the result.\n List<String> listOfHeaders = SimApi.getChartStatistics(0, 0);\n for (int i = 0; i < listOfHeaders.size(); i++) {\n if (jsonArays.size() > 0) {\n obj.put(listOfHeaders.get(i), jsonArays.get(i));\n } else {\n obj.put(listOfHeaders.get(i), new JSONArray());\n }\n }\n\n response.getWriter().write(obj.toJSONString());\n }",
"@Override\n\tpublic boolean isAggregate() {\n\t\treturn true;\n\t}",
"private String perRuleStatistics(Map<Feature<Boolean>, Set<String>> featureResults, int total) {\n StringBuffer statisticsTable = new StringBuffer();\n for (Feature<Boolean> feature : featureResults.keySet()) {\n statisticsTable.append(String.format(\"\\n### Project statistics for %s (%s)\\n\\n\", \n formatter.identifierOf(feature).orElseGet(() -> \"unknown\"), formatter.nameOf(feature)));\n Set<String> resultsForFeature = featureResults.get(feature);\n if (resultsForFeature.isEmpty()) {\n statisticsTable.append(\"*All projects are compliant with this rule.*\\n\");\n } else {\n statisticsTable.append(\"| | # of projects | % of projects |\\n\");\n statisticsTable.append(\"| ------- | :----- | :------------------ |\\n\");\n statisticsTable.append(String.format(\"| Passed | %d | %2.1f%% |\\n\", \n total - resultsForFeature.size(), \n (double) (total - resultsForFeature.size()) / total * 100));\n statisticsTable.append(String.format(\"| Failed | %d | %2.1f%% |\\n\\n\", \n resultsForFeature.size(), (double) resultsForFeature.size() / total * 100));\n statisticsTable.append(\"**Failed projects:**\\n\");\n resultsForFeature.stream()\n .forEach(result -> statisticsTable.append(String.format(\"- %s\\n\", result)));\n }\n }\n return statisticsTable.toString();\n }"
] | [
"0.59796476",
"0.5759626",
"0.5557928",
"0.54696316",
"0.5334468",
"0.52804357",
"0.5271008",
"0.5175097",
"0.516696",
"0.516161",
"0.51604426",
"0.5154858",
"0.5125532",
"0.51134676",
"0.50832856",
"0.50783473",
"0.507171",
"0.5049889",
"0.5003992",
"0.49854285",
"0.49753642",
"0.49711958",
"0.49690226",
"0.4968016",
"0.4936551",
"0.4935029",
"0.49164483",
"0.4904938",
"0.48953724",
"0.4887562",
"0.48868522",
"0.4860359",
"0.4854765",
"0.48420218",
"0.48370764",
"0.4835173",
"0.48167172",
"0.4814465",
"0.4805558",
"0.4795476",
"0.4790749",
"0.4779353",
"0.47529685",
"0.4745598",
"0.47440723",
"0.4738046",
"0.47283182",
"0.47206765",
"0.47088778",
"0.47056288",
"0.4702326",
"0.4701974",
"0.46974528",
"0.46845084",
"0.46843204",
"0.46788275",
"0.4678787",
"0.4670105",
"0.46649528",
"0.46639773",
"0.46514603",
"0.4646977",
"0.46377653",
"0.46334076",
"0.4631003",
"0.46305236",
"0.46269974",
"0.46256205",
"0.46249187",
"0.46230727",
"0.46177524",
"0.46106476",
"0.46010792",
"0.45980155",
"0.45901176",
"0.45881867",
"0.45879674",
"0.45872268",
"0.45870227",
"0.4584327",
"0.45840904",
"0.4582201",
"0.45812777",
"0.45806575",
"0.45755038",
"0.45705074",
"0.45691743",
"0.45688784",
"0.45675832",
"0.45648417",
"0.4564188",
"0.4563382",
"0.45541117",
"0.45539334",
"0.45505574",
"0.45437834",
"0.4537975",
"0.45305875",
"0.45297346",
"0.45271313"
] | 0.6166986 | 0 |
Created by zhangxin on 2016817. | public interface OnStateChangedListener {
/**
*
* @param state 1:下拉中;2:此处松开刷新:
* @param scaleOfLayout 下拉出的高度与header的比
*/
void onStateChanged(int state, float scaleOfLayout);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@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 entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void init() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void 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}",
"private void kk12() {\n\n\t}",
"private void poetries() {\n\n\t}",
"public void mo4359a() {\n }",
"public final void mo51373a() {\n }",
"private void init() {\n\n\n\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void memoria() {\n \n }",
"public void mo55254a() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public void baocun() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {}",
"private zza.zza()\n\t\t{\n\t\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"public void init()\n { \t\n }",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void init(){\r\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }"
] | [
"0.6144028",
"0.6053132",
"0.602139",
"0.60209215",
"0.6001795",
"0.5971979",
"0.5971979",
"0.59507",
"0.5883727",
"0.58740705",
"0.5873793",
"0.5861278",
"0.58606577",
"0.58508134",
"0.58439904",
"0.582459",
"0.58125216",
"0.579799",
"0.5787127",
"0.57849574",
"0.5780199",
"0.5769629",
"0.5759647",
"0.5759647",
"0.5759647",
"0.5759647",
"0.5759647",
"0.57457215",
"0.5745632",
"0.5736142",
"0.5735968",
"0.5725315",
"0.5715069",
"0.57048124",
"0.56722534",
"0.56722534",
"0.56722534",
"0.56698686",
"0.5669633",
"0.56670105",
"0.5663111",
"0.5659436",
"0.5653037",
"0.5653037",
"0.56361365",
"0.5634164",
"0.5634164",
"0.5634164",
"0.5632351",
"0.5632351",
"0.56239027",
"0.56239027",
"0.56239027",
"0.56239027",
"0.56239027",
"0.56239027",
"0.56239027",
"0.56196785",
"0.56196785",
"0.56196785",
"0.56182504",
"0.5617279",
"0.5596989",
"0.55893016",
"0.5586666",
"0.5560141",
"0.5557236",
"0.5552106",
"0.5550247",
"0.5549604",
"0.5546418",
"0.5546377",
"0.5542455",
"0.55296946",
"0.5524146",
"0.5519468",
"0.5517472",
"0.5517472",
"0.55098355",
"0.5501308",
"0.5501241",
"0.54990214",
"0.5497633",
"0.54928505",
"0.5483195",
"0.54748595",
"0.5473779",
"0.5464884",
"0.5462264",
"0.5458858",
"0.544612",
"0.543285",
"0.5428575",
"0.5423268",
"0.54180473",
"0.54129595",
"0.54104984",
"0.540541",
"0.540541",
"0.540541",
"0.540541"
] | 0.0 | -1 |
Tests the creation of an admin | @Test
void createTest() {
Admin anAdmin = new Admin();
anAdmin.setEmail("g.gialli1@wlbadmin.it");
anAdmin.setName("Giovanni");
anAdmin.setSurname("Gialli");
anAdmin.setPassword("Ciao1234.");
Admin created = adminJpa.create(anAdmin);
assertEquals("g.gialli1@wlbadmin.it", created.getEmail());
try {
entityManager = factor.createEntityManager();
entityManager.getTransaction().begin();
entityManager.remove(entityManager.merge(anAdmin));
entityManager.getTransaction().commit();
} finally {
entityManager.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testAdminCreate() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(05, \"new acc\", 00001, 100.00, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Created\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to create account as admin\", testResult);\n\t}",
"@Override\n\tpublic Admin createAdmin(Admin admin) {\n\t\treturn ar.save(admin);\n\t}",
"@Test\n\tpublic void checkValidLoginAdmin() {\n\t\ttest = report.createTest(\"CheckValidLoginAdmin\");\n\t\t\n\t\tadminhomepage = loginpage.successfullLoginAdmin(UserContainer.getAdmin());\n\t\ttest.log(Status.INFO, \"Signed in\");\n\t\t\n\t\tAssert.assertEquals(adminhomepage.getUserNameText(), UserContainer.getAdmin().getLogin());\n\t\ttest.log(Status.PASS, \"Checked if the right page is opened.\");\n\t\t\n\t\tloginpage = adminhomepage.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t}",
"public static void creaAdmin(Admin admin) {\n\t\ttry {\n\t\t\tRequestContent rp = new RequestContent();\n\t\t\trp.type = RequestType.CREATE_USER;\n\t\t\trp.userType = UserType.ADMIN;\n\t\t\trp.parameters = new Object[] { admin };\n\t\t\tsend(rp);\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"private Admin createNewAdmin(AdminRequest adminRequest, User user, PersonalData personalData) {\n\n Admin newAdmin = new Admin();\n newAdmin.setPersonalData(personalData);\n newAdmin.setUser(user);\n\n newAdmin.setEnabled(true);\n newAdmin.setDeleted(false);\n\n // Save on DB\n return saveAdmin(newAdmin);\n }",
"@Test\n\tpublic void testCreateAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString username = \"newUsername\";\n\t\tAdminAccount user = null;\n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, PASSWORD1, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\t\tassertNotNull(user);\n\t\tassertEquals(username, user.getUsername());\n\t\tassertEquals(PASSWORD1, user.getPassword());\n\t\tassertEquals(NAME1, user.getName());\n\t}",
"@Test\n\tpublic void adminLogin()\n\t{\n\t\tAdminFacade af = admin.login(\"admin\", \"1234\", ClientType.ADMIN);\n\t\tAssert.assertNotNull(af);\n\t}",
"public Admin createAdmin(){\n\t\ttry {\n\t\t\treturn conn.getAdmin();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"@Test\n public void testAdminPerm() {\n }",
"public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"boolean makeAdmin(User user);",
"AdminConsole createAdminConsole();",
"public void addAdmin(Admin admin);",
"private static void createAdmin(SecurityService service,\n\t\t\tString securityDomainId, Actor requestingActor, Actor adminActor,\n\t\t\tString groupId) {\n\t\tBooleanResultResponse boolResp = service.createAceActionByActorIdByRoleId(securityDomainId, adminActor, \"USRGADM\", groupId, requestingActor);\n\t\tSystem.out.println(\"after inserting admins>>>>\" + boolResp);\n\t}",
"@Override\n public ResultMessage createNewAdmin(NewAdminCommand command) {\n String currentAdmin = command.getCurrentAdmin();\n if (!adminDao.hasHighestAuthority(currentAdmin))\n return ResultMessage.failure(\"Permission denied\");\n\n // Permission passed\n if (adminDao.addAdmin(command.getNewAdminName(),\n encryptor.encrypt(command.getPassword(), command.getNewAdminName()))) {\n log.info(\"New administrator is created successfully\");\n return ResultMessage.success();\n }\n\n return ResultMessage.failure();\n }",
"boolean isAdmin();",
"public boolean isAdmin();",
"@Test\n public void getAdminsTest() throws ApiException {\n String scope = null;\n AdminResponse response = api.getAdmins(scope);\n\n // TODO: test validations\n }",
"@Test\n public void testCreateUserAdmin() {\n Set<Role> roles = new HashSet<>();\n roles.add(roleRepo.findRoleByRolename(\"ROLE_ADMIN\"));\n\n User admin = new User(\"Админ\", \"Админыч\", \"admin@123.com\", 45, \"admin\", roles);\n em.persist(admin);\n\n Assert.isTrue(userRepo.findUserByEmail(\"admin@123.com\").isEnabled(), \"User not find in DB\");\n }",
"@Test\n\tpublic void adminIDTest() {\n\t\tString string1 = \"admin\";\n\t\tassertTrue(AdminValidator.isValidAdmin(string1));\n\n\t\tString string2 = \"username\";\n\t\tassertTrue(AdminValidator.isValidAdmin(string2));\n\n\t\tString string3 = \"\";\n\t\tassertFalse(AdminValidator.isValidAdmin(string3));\n\n\n\t\tString string4 = \"admin%\";\n\t\tassertFalse(AdminValidator.isValidAdmin(string4));\n\t}",
"@Test\n public void testAddDemotivatorPageAccessibleIFAuthorised(){\n \tFixtures.deleteAllModels();\n \tFixtures.loadModels(\"data/user.yml\");\n \t\n\t\t//Authenticating\n \tauthenticate();\n\n //Going to add Demotivator page\n \tResponse response = GET(\"/add\");\n \n assertNotNull(response);\n assertStatus(200, response);\n }",
"@Test\n public void t01_buscaAdmin() throws Exception {\n Usuario admin;\n admin = usuarioServico.login(\"administrador\", \".Ae12345\");\n assertNotNull(admin);\n }",
"@Test(priority = 1)\r\n\tpublic void validUserTest() {\t\t\t\r\n\r\n\t\tAdminDashboardPage adminPage=new AdminDashboardPage(driver);\r\n\t\tadminPage.clickUsersTab();\t\r\n\t\t\r\n\t\tUsersListViewPage ulPage=new UsersListViewPage(driver);\r\n\t\tulPage.clickNewUser();\r\n\t\t\r\n\t\tCreateNewUserPage crUserPage=new CreateNewUserPage(driver);\r\n\t\tcrUserPage.enterUserDetails(\"Kathy\",\"pass\",\"Kathy@noreply.com\");\r\n\t\tcrUserPage.clickCreateUser();\t\t\r\n\t\t\r\n\t\tadminPage.clickUsersTab();\r\n\t\tString actUserCreated=ulPage.verifyCreatedUser();\r\n\t\tAssert.assertEquals(actUserCreated,\"Kathy\");\r\n\t\t\r\n\t}",
"public void add_admin(String admin_id, String admin_name, String admin_address, String admin_designation,\n\t\t\t double salary, String contact, boolean status_vacancy, String password,String admin_project_key)\n {\n\t\t\n \tadm_list.insert(new Admin(admin_id,admin_name,admin_address,admin_designation, salary,contact,status_vacancy,password,admin_project_key));\n \twrite_adm_file();\n }",
"public void createAdmin()\r\n\t{\r\n\t\tSystem.out.println(\"Administrator account not exist, please create the administrator account by setting up a password for it.\");\r\n\t\tString password=\"\",repassword=\"\";\r\n\t\tboolean flag=false;\r\n\t\twhile(!flag)\r\n\t\t{\r\n\t\t\tboolean validpassword=false;\r\n\t\t\twhile(!validpassword)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"Please enter the password: \");\r\n\t\t\t\tpassword=sc.nextLine();\r\n\t\t\t\tvalidpassword=a.validitycheck(password);\r\n\t\t\t\tif(!validpassword)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\"Your password has to fulfil: at least 1 small letter, 1 capital letter, 1 digit!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"Please re-enter the password: \");\r\n\t\t\trepassword=sc.nextLine();\r\n\t\t\tflag=a.matchingpasswords(password,repassword);\r\n\t\t\tif(!flag)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"Password not match! \");\r\n\t\t\t}\r\n\t\t}\r\n\t\tString hash_password=hashfunction(password); \r\n\t\tString last_login=java.time.LocalDate.now().toString();\r\n\t\tuser_records.add(new User(\"administrator\",hash_password,\"administrator\",\"\",0,0,last_login,false));\r\n\t\tSystem.out.println(\"Administrator account created successfully!\");\r\n\t}",
"java.lang.String getNewAdmin();",
"@Test\n\tpublic void testAdminDelete() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"temp\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(06, \"temp\", 00001, 0, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Deleted\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to delete account as admin\", testResult);\n\t}",
"@Test\n\tpublic void testCreateAdminAccountWithTakenUsername() {\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(USERNAME1, PASSWORD1, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"This username is not available.\", error);\n\t}",
"@Test\n\tpublic void testCreateAdminAccountWithEmptyPassword() {\n\t\tString username = \"Catherine\";\n\t\tString password = \"\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, password, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Password cannot be empty.\", error);\n\t}",
"protected final void runAsAdmin() {\n authenticationTestingUtil.grantAdminAuthority( this.applicationContext );\n }",
"@WithMockUser(username = \"admin\", authorities = {\"ADMIN\"})\n @Test\n @DisplayName(\"Allowed get books requests for ADMIN role \")\n void getByAdmin() throws Exception {\n mockMvc.perform(get(\"/books\").with(csrf())).andExpect(status().isOk());\n }",
"public boolean isAdmin()\n {\n return admin;\n }",
"public boolean isAdmin()\n {\n return admin;\n }",
"public Admin() {\n\n\t}",
"@Test\n\tpublic void testCreateAdminAccountWithEmptyName() {\n\t\tString name = \"\";\n\t\tString username = \"Catherine\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, PASSWORD1, name);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Name cannot be empty.\", error);\n\t}",
"@Test\n public void UserCreation() throws Exception {\n openDemoSite(driver);\n driver.findElement(By.xpath(\"//li/a[@title=\\\"Admin area\\\"]\")).click();\n driver.findElement(By.xpath(\"//input[@name='login']\")).sendKeys(\"Email\");\n driver.findElement(By.xpath(\"//input[@name='password']\")).sendKeys(\"Password\");\n driver.findElement(By.xpath(\"//button[@type='submit']\")).click();\n Assert.assertTrue(\"Admin should be logged in\", false);\n driver.findElement(By.xpath(\"//a[@title=\\\"Users list\\\"]\")).click();\n driver.findElement(By.xpath(\"//button[@class='btn regular-button']\")).click();\n driver.findElement(By.xpath(\"//input[@id='login']\")).sendKeys(\"Email\");\n driver.findElement(By.xpath(\"//input[@id='password']\")).sendKeys(\"Password\");\n driver.findElement(By.xpath(\"//input[@id='password-conf']\")).sendKeys(\"Confirm password\");\n driver.findElement(By.xpath(\"//div/button[@type='submit']/span[text()='Create account']\")).click();\n\n }",
"@Test\n public void testCreateOnBehalfUser_asTechnologyManager() throws Exception {\n container.login(supplierAdminUser.getKey(), ROLE_TECHNOLOGY_MANAGER);\n VOUserDetails result = idService\n .createOnBehalfUser(customer.getOrganizationId(), \"abcdef\");\n checkCreatedUser(result, customer, \"abcdef\", false);\n checkUserRoleAssignment(result, ROLE_ORGANIZATION_ADMIN);\n }",
"public boolean isAdmin() {\r\n return admin;\r\n }",
"public boolean isAdmin() {\n return admin;\n }",
"@Given(\"5- the user is not an admin\")\n\tpublic void theUserIsAnAdmin1() {\n\t\tadmin.setAdminState(false);\n\t\tassertFalse(admin.isAdmin());\n\t}",
"public void testGetProjectByNameAdminRole() throws Exception {\r\n\r\n ProjectServiceRemote projectService = lookupProjectServiceRemoteWithAdminRole();\r\n\r\n ProjectData projectData = new ProjectData();\r\n projectData.setName(\"project2\");\r\n projectData.setDescription(\"Hello\");\r\n\r\n projectService.createProject(projectData);\r\n\r\n // 2 is the administrator user id\r\n ProjectData pd = projectService.getProjectByName(\"project2\", 2);\r\n\r\n assertNotNull(\"null project data received\", pd);\r\n }",
"public void setAdmin(boolean admin) {\n this.admin = admin;\n }",
"@Override\r\n\tpublic int insertAdmin(AdminAdministrator adminAdministrator) {\n\t\treturn administratorDao.insert(adminAdministrator);\r\n\t}",
"public admin() {\n\t\tsuper();\n\t}",
"@Test\n\t@WithMockCustomUser(username = \"admin\")\n\tpublic void deleteRecipeAsAdmin() throws Exception {\n\t\tRecipe recipe = recipeBuilder(1L);\n\n\t\twhen(recipeService.findById(1L)).thenReturn(recipe);\n\t\twhen(userService.findAll()).thenReturn(new ArrayList<>());\n\t\tdoAnswer(invocation -> null).when(recipeService).deleteById(1L);\n\n\t\tmockMvc.perform(post(\"/recipes/1/delete\"))\n\t\t\t\t.andExpect(authenticated())\n\t\t\t\t.andExpect(flash().attributeExists(\"flash\"))\n\t\t\t\t.andExpect(status().is3xxRedirection())\n\t\t\t\t.andExpect(redirectedUrl(\"/recipes\"));\n\n\t\tverify(recipeService).findById(any(Long.class));\n\t\tverify(userService).findAll();\n\t\tverify(recipeService).deleteById(any(Long.class));\n\t}",
"@RolesAllowed(RoleEnum.ROLE_ADMIN)\n\tpublic Integer saveAdmin(Admin admin);",
"@Test\n @Transactional\n public void test_readIndexShowsCreateTopicLink_withAdminRole() throws Exception {\n // Create a cluster.\n final Cluster cluster = clusterTestTools.createCluster(\"Test Cluster\");\n\n // Hit the read page.\n mockMvc\n .perform(get(\"/cluster/\" + cluster.getId())\n .with(user(adminUserDetails)))\n .andDo(print())\n .andExpect(status().isOk())\n // Validate 'create topic' link exists\n .andExpect(content().string(containsString(CREATE_TOPIC_LINK_TEXT)));\n }",
"@Override\r\n\tpublic String addAdmin(Admin admin) {\n\t\treturn adminDAO.addAdmin(admin);\r\n\t}",
"@Test\n\tpublic void adminLogin2()\n\t{\n\t\tAdminFacade af = admin.login(\"admin\", \"4321\", ClientType.ADMIN);\n\t\tAssert.assertNull(af);\n\t}",
"@Override\r\n\tpublic boolean addAdmin(Admin admin) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tTransaction tx=session.beginTransaction();\r\n\t\tsession.persist(admin);\r\n\t\ttx.commit();\r\n\t\tsession.close();\r\n\t\treturn true;\r\n\t}",
"public void setAdmin( boolean admin )\n {\n this.admin = admin;\n }",
"@Override\n protected String requiredPostPermission() {\n return \"admin\";\n }",
"@Test(priority=1)\n public void adminPage(){\n\t\tdriver.findElement(By.xpath(\"/html/body/div[1]/nav/a[5]\")).click();\n\t}",
"public void setAdmin(boolean value) {\r\n this.admin = value;\r\n }",
"public void setAdmin(int admin) {\n this.admin = admin;\n }",
"public static void createInitialAdmin() throws InvalidDBTransferException {\n \tString salt = PasswordHash.getSalt();\n \tString pw = PasswordHash.hash(\"Password!123\", salt);\n \tsalt = \"'\" + salt + \"'\";\n \tpw = \"'\" + pw + \"'\";\n \t\n \texecuteInitialization(CHECK_ADMIN, String.format(INIT_ADMIN, pw, salt));\n }",
"@Test\n @DisplayName(\"delete returns 403 when user is not admin\")\n void delete_Returns403_WhenUserIsNotAdmin() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(USER);\n \n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleUser.exchange(\n \"/animes/admin/{id}\",\n HttpMethod.DELETE,\n null,\n Void.class,\n savedAnime.getId()\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.FORBIDDEN);\n }",
"private void checkAdminInDB(DB db) {\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tlong hashCode = (long) \"admin\".hashCode();\n\t\tif(!users.containsKey(hashCode))\n\t\t\tusers.put(hashCode, new Admin(\"admin\", \"admin\"));\n\t}",
"BaseUser createAdminUser(Application application);",
"@Test\n\tpublic void adminPassWordTest() {\n\t\tString string1 = \"admin!\";\n\t\tassertTrue(AdminValidator.isStrongPassword(string1));\n\n\t\tString string2 = \"user\";\n\t\tassertFalse(AdminValidator.isStrongPassword(string2));\n\n\t\tString string3 = \"\";\n\t\tassertFalse(AdminValidator.isStrongPassword(string3));\n\n\t\tString string4 = \"admin123\";\n\t\tassertTrue(AdminValidator.isStrongPassword(string4));\n\n\t}",
"@Test\n public void testCreateValidUser() {\n LocalUserManager ua = new LocalUserManager();\n\n try {\n ua.createUser(\"gburdell1\", \"buzz\", \"gburdell1@gatech.edu\", \"George\", \"Burdell\", \"MANAGER\");\n } catch (Exception e) {\n Assert.fail();\n }\n Assert.assertEquals(1, ua.getUsers().size());\n Assert.assertEquals(\"gburdell1\", ua.getUsers().get(0).getUsername());\n Assert.assertEquals(\"gburdell1@gatech.edu\", ua.getUsers().get(0).getEmail());\n Assert.assertEquals(UserClass.MANAGER, ua.getUsers().get(0).getUserClass());\n }",
"@Test\n public void adminShouldSeeStudentDetailsTest() throws Exception {\n StudyPlan studyPlan1 = studyPlanRepository.save(new StudyPlan(\"SE\", new EctsDistribution(new BigDecimal(60), new BigDecimal(30), new BigDecimal(30))));\n StudyPlan studyPlan2 = studyPlanRepository.save(new StudyPlan(\"VC\", new EctsDistribution(new BigDecimal(60), new BigDecimal(30), new BigDecimal(30))));\n studyPlanRepository.save(new StudyPlan(\"CI\", new EctsDistribution(new BigDecimal(60), new BigDecimal(30), new BigDecimal(30))));\n\n // given a student, registered to studyplan1 and studyplan2\n Semester semester = semesterRepository.save(new Semester(2016, SemesterType.WinterSemester));\n Student student = uisUserRepository.save(new Student(\"s12345\", \"student\", \"s12345@uis.at\"));\n StudyPlanRegistration studyPlanRegistration1 = new StudyPlanRegistration(studyPlan1, semester);\n StudyPlanRegistration studyPlanRegistration2 = new StudyPlanRegistration(studyPlan2, semester);\n student.addStudyplans(studyPlanRegistration1, studyPlanRegistration2);\n\n mockMvc.perform(\n get(\"/admin/users/\" + student.getId())\n .with(user(\"admin\").roles(Role.ADMIN.name()))\n ).andExpect(\n model().attribute(\"user\", student)\n ).andExpect(\n model().attribute(\"studyplans\", asList(studyPlanRegistration1, studyPlanRegistration2))\n );\n\n }",
"@Test\n\tpublic void testAuthenticateAdminAccountSuccessfully() {\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.authenticateAdminAccount(USERNAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\t\tassertNotNull(user);\n\t\tassertNotEquals(0, user.getToken());\n\t}",
"@Test(enabled=true)\n\tpublic void verifySuccessfullyCreateFolderAndDeleted()\n\t{\t\t\n\t\thomepg = new LoginPage(driver);\n\t\tlandingpg = new LandingPage(driver);\n\t\thomepg.login();\n\t\tlandingpg.addNewFolder();\n\t\tlandingpg.deleteFolder();\n\t\thomepg.logOut();\n\t}",
"public static void createAdministrator(OpBroker broker) {\n OpQuery query = broker.newQuery(OpUser.ADMINISTRATOR_ID_QUERY);\r\n Iterator result = broker.iterate(query);\r\n if (!result.hasNext()) {\r\n OpTransaction t = broker.newTransaction();\r\n OpUser administrator = new OpUser();\r\n administrator.setName(OpUser.ADMINISTRATOR_NAME);\r\n administrator.setDisplayName(OpUser.ADMINISTRATOR_DISPLAY_NAME);\r\n administrator.setDescription(OpUser.ADMINISTRATOR_DESCRIPTION);\r\n administrator.setPassword(OpUser.BLANK_PASSWORD);\r\n administrator.doSetLevel(new Byte(OpUser.MANAGER_USER_LEVEL));\r\n broker.makePersistent(administrator);\r\n OpContact contact = new OpContact();\r\n contact.setUser(administrator);\r\n broker.makePersistent(contact);\r\n t.commit();\r\n }\r\n }",
"@Test\n\tpublic void testCreateAdminAccountWithEmptyUsername() {\n\t\tString username = \"\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, PASSWORD1, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Username cannot be empty.\", error);\n\t}",
"@Test\r\n\tpublic void validEditTest() {\n\t\tadminUserEdit.clickAdminLink();\r\n\t\tadminUserEdit.clickUserListLink();\r\n\t\tadminUserEdit.clickEditUserLink();\r\n\t\t\r\n\t\t// Assertion\r\n\t\tString Actual = adminUserEdit.Assertion();\r\n\t\tString Expected = \"Hari\";\r\n\t\tassertEquals(Actual, Expected);\r\n\t\tscreenShot.captureScreenShot(\"TC019\");\r\n\t}",
"@Test\n public void testCreaAlumno() {\n System.out.println(\"creaAlumno\");\n Alumno alumno = new Alumno();\n alumno.setNombre(\"Dulce\");\n alumno.setApellido(\"Alvarado\");\n Alumno result = instance.creaAlumno(alumno);\n assertNotNull(result.getId());\n }",
"public boolean register(Admin admin) {\n\t\t\n\t\treturn adminDao.insert(admin);\n\t}",
"@Test\n\tpublic void testLoginAdminAccExist() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Session Started Admin\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to find that admin account\", testResult);\n\t}",
"public Boolean CreateWarehouseAdmin(String a, String b, Warehouse w) {\n for (int i = 0 ; i <= WAlist.getWarehouseAdmins().size() -1 ; i++)\n {\n if (WAlist.getWarehouseAdmins().get(i).getID().equals(a))\n {\n System.out.println(\"ID alreday exists\");\n return false;\n }\n }\n WarehouseAdmin admin = new WarehouseAdmin(a, b, w);\n WAlist.getWarehouseAdmins().add(admin);\n try {\n SerialiseList();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n return true;\n }",
"@Test\r\n\tpublic void testtraerCertificadosAdmin() {\n\t\tList<DatosDemandaAdmin> lista = despachoService\r\n\t\t\t\t.traerCertificadosAdmin();\r\n\t\tAssert.assertNotNull(lista);\r\n\t\tAssert.assertTrue(lista.size() > 0);\r\n\t}",
"@Test\n\tpublic void testLoginAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.loginAdminAccount(USERNAME2, PASSWORD2);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\n\t\tassertNotNull(user);\t\t\t\n\t\tassertEquals(USERNAME2, user.getUsername());\n\t\tassertEquals(PASSWORD2, user.getPassword());\n\t\tassertEquals(NAME2, user.getName());\n\t}",
"public void testAdminTypeNameConstant() {\n assertEquals(\"ADMIN_TYPE_NAME is incorrect\", UserConstants.ADMIN_TYPE_NAME, \"admin\");\n }",
"public void createAdminLog(TadminLog adminlog) {\n\t\tadminLogDao.create(adminlog);\n\t}",
"public static boolean iniAdmins() {\n if (applID == APPL_DRV) {\n return false;\n }\n Daten.admins = new Admins();\n try {\n // try to open admin file\n Daten.admins.open(false);\n } catch (Exception e) {\n if (!isGuiAppl()) {\n // if this is not a GUI appl, then stop here!\n Logger.log(Logger.ERROR, Logger.MSG_CORE_ADMINSFAILEDOPEN,\n LogString.fileOpenFailed(((DataFile) Daten.admins.data()).getFilename(),\n International.getString(\"Administratoren\")));\n haltProgram(HALT_ADMIN);\n }\n // check whether admin file exists, and only could not be opened\n boolean exists = true;\n try {\n exists = Daten.admins.data().existsStorageObject();\n } catch (Exception ee) {\n Logger.logdebug(ee);\n }\n if (exists) {\n // admin file exists, but could not be opened. we exit here.\n String msg = LogString.fileOpenFailed(((DataFile) Daten.admins.data()).getFilename(),\n International.getString(\"Administratoren\"));\n Logger.log(Logger.ERROR, Logger.MSG_CORE_ADMINSFAILEDOPEN, msg);\n if (isGuiAppl()) {\n Dialog.error(msg);\n }\n haltProgram(HALT_ADMIN);\n }\n // no admin file there, we need to create a new one\n if (Daten.efaSec.secFileExists() && Daten.efaSec.secValueValid()) {\n // ok, sec file is there: we're allowed to create a new one\n return true;\n } else {\n // no sec file there: exit and don't create new admin\n String msg = International.getString(\"Kein Admin gefunden.\") + \"\\n\"\n + International.getString(\"Aus Gründen der Sicherheit verweigert efa den Dienst. \"\n + \"Hilfe zum Reaktivieren von efa erhälst Du im Support-Forum.\");\n Logger.log(Logger.ERROR, Logger.MSG_CORE_ADMINSFAILEDNOSEC, msg);\n if (isGuiAppl()) {\n Dialog.error(msg);\n }\n haltProgram(HALT_EFASEC);\n }\n return false; // we never reach here, but just to be sure... ;-)\n }\n // we do have a admin file already that we can open. now check whether there's a super admin configured as well\n if (admins.getAdmin(Admins.SUPERADMIN) == null) {\n // we don't have a super admin yet\n if (Daten.efaSec.secFileExists() && Daten.efaSec.secValueValid()) {\n // ok, sec file is there: we're allowed to create a new one\n return true;\n }\n // no sec file there: exit and don't create new admin\n String msg = International.getString(\"Kein Admin gefunden.\") + \"\\n\"\n + International.getString(\"Aus Gründen der Sicherheit verweigert efa den Dienst. \"\n + \"Hilfe zum Reaktivieren von efa erhälst Du im Support-Forum.\");\n Logger.log(Logger.ERROR, Logger.MSG_CORE_ADMINSFAILEDNOSEC, msg);\n if (isGuiAppl()) {\n Dialog.error(msg);\n }\n haltProgram(HALT_EFASEC);\n return false; // we never reach here, but just to be sure... ;-)\n } else {\n // ok, we do have a super admin already\n return false;\n }\n }",
"@PostMapping(\"/\")\n\tpublic ResponseEntity<Object> createAdministrator(@Valid @RequestBody Administrator admin, HttpServletRequest request){\n\t\tif(service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession())) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tif(service.findByEmail(admin.getEmail()) != null || service.findByName(admin.getName()) != null) return new ResponseEntity<>(HttpStatus.CONFLICT); \t\n\t\t\tservice.save(new Administrator(admin.getEmail(), admin.getName(), admin.getPassword()));\n\t\t\treturn new ResponseEntity<>(HttpStatus.CREATED);\n\t\t}\t\t\n\t}",
"@Test\n\tpublic void testCreateAdminAccountWithSpacesInPassword() {\n\t\tString username = \"Catherine\";\n\t\tString password = \"this is a bad password\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, password, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Password cannot contain spaces.\", error);\n\t}",
"@Test\n public void adminShouldSeeLecturerDetailsTest() throws Exception {\n Lecturer lecturer = uisUserRepository.save(new Lecturer(\"l12345\", \"lecturer\", \"l12345@uis.at\"));\n Subject maths = new Subject(\"maths\", new BigDecimal(6.0));\n Subject df = new Subject(\"digital forensics\", new BigDecimal(6.0));\n maths.addLecturers(lecturer);\n df.addLecturers(lecturer);\n subjectRepository.save(maths);\n subjectRepository.save(df);\n\n mockMvc.perform(\n get(\"/admin/users/\" + lecturer.getId())\n .with(user(\"admin\").roles(Role.ADMIN.name()))\n ).andExpect(\n model().attribute(\"user\", lecturer)\n ).andExpect(\n model().attribute(\"subjects\", asList(maths, df))\n );\n\n }",
"public void CreateAdminUser (String administratorUserName, String administratorPassword, \n String administratorFirstName, String administratorLastName, String administratorEmail) {\n User user = identityService.newUser(administratorUserName);\n user.setFirstName(administratorFirstName);\n user.setLastName(administratorLastName);\n user.setPassword(administratorPassword);\n user.setEmail(administratorEmail);\n identityService.saveUser(user);\n\n LOGGER.info(\"Creating the camunda admin group\");\n // create Administrator Group\n if(identityService.createGroupQuery().groupId(Groups.CAMUNDA_ADMIN).count() == 0) {\n Group camundaAdminGroup = identityService.newGroup(Groups.CAMUNDA_ADMIN);\n camundaAdminGroup.setName(\"camunda BPM Administrators\");\n camundaAdminGroup.setType(Groups.GROUP_TYPE_SYSTEM);\n identityService.saveGroup(camundaAdminGroup);\n }\n\n LOGGER.info(\"Creating Admin group authrorizations for all built-in resources\");\n // create Admin authorizations on all built-in resources\n for (Resource resource : Resources.values()) {\n if(authorizationService.createAuthorizationQuery().groupIdIn(Groups.CAMUNDA_ADMIN).resourceType(resource).resourceId(ANY).count() == 0) {\n AuthorizationEntity userAdminAuth = new AuthorizationEntity(AUTH_TYPE_GRANT);\n userAdminAuth.setGroupId(Groups.CAMUNDA_ADMIN);\n userAdminAuth.setResource(resource);\n userAdminAuth.setResourceId(ANY);\n userAdminAuth.addPermission(ALL);\n authorizationService.saveAuthorization(userAdminAuth);\n }\n }\n identityService.createMembership(administratorUserName, \"camunda-admin\");\n }",
"@Test\n\tpublic void testAdminEnable() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"temp\", false, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(9, \"temp\", 00001, 0, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Enabled\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to enable account as admin\", testResult);\n\t}",
"@Test\n\tpublic void test04_05_DeleteADisabledUserByAdministrator() {\n\t\tinfo(\"Test 4: Delete a disabled user by administrator\");\n\t\tString name=txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tcreateNewUser();\n\t\tdisableUser();\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open User Management\n\t\t*Step Description: \n\t\t\t- Log in as admin.\n\t\t\t- Go to Administration \n\t\t\t-\n\t\t\t-> Community \n\t\t\t-\n\t\t\t-> Manage Community.\n\t\t\t- Choose the tab \"User Management\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The list of users is displayed: enabled and disabled\n\t\t\t- The column \"Action\" is displayed with 2 icons: Edit and Delete.*/\n\t\tuserAndGroup.goToEditUserInfo(username);\n\t\tuserAndGroup.editUserInfo_AccountTab(\"\", \"\",name, \"\");\n\t\t\n\t\t/*Step number: 2\n\t\t*Step Name: Step 2: Delete a disabled user\n\t\t*Step Description: \n\t\t\t- From a Disabled user, click on the icon \"Delete\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The disabled user is removed from the list*/ \n\t\tuserAndGroup.deleteUser(username);\n\t}",
"@Override\r\n\tpublic void saveAdmin(Admin admin) {\n\t\tdao.saveAdmin(admin);\r\n\t}",
"public boolean isIsAdmin() {\r\n return isAdmin;\r\n }",
"public Builder setNewAdmin(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n newAdmin_ = value;\n onChanged();\n return this;\n }",
"public boolean isAdminExists(String pIdentifiant, String pMotDePasse);",
"@Test\n\tpublic void testCreate() {\n\t\tApp app = new App();\n\t\tapp.setId(1L);\n\t\tRole role = new Role();\n\t\trole.setApp(app);\n\t\trole.setName(\"admin中国\");\n\t\troleService.create(role);\n\t}",
"public boolean getIsAdmin() {\n return isAdmin;\n }",
"@Test\n\tpublic void testDeleteAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.deleteAdminAccount(USERNAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\t\tAdminAccount savedUser = adminAccountService.getAdminAccountByUsername(USERNAME1);\n\t\tassertNotNull(user);\n\t\tassertEquals(savedUser.getUsername(), user.getUsername());\n\t\tassertEquals(savedUser.getPassword(), user.getPassword());\n\t\tassertEquals(savedUser.getName(), user.getName());\n\t}",
"@Override\r\n\tpublic boolean getAddAdmin(Admins ad) {\n\t\treturn adi.addAdmin(ad);\r\n\t}",
"@Test\n void insertSuccess() {\n GenericDao userDao = new GenericDao(User.class);\n //get a user to insert a new role\n User toInsert = (User) userDao.getEntityByName(\"lastName\", \"Curry\").get(0);\n\n UserRoles roles = new UserRoles(\"admin\", toInsert, toInsert.getUserName() );\n int id = genericDao.insert(roles);\n assertNotEquals(0, id);\n int insertedRoles = roles.getId();\n //assertEquals(toInsert.getId(), insertedRoles);\n }",
"public void shouldCreate() {\n }",
"public Boolean CreateStoreAdmin(String a, String b, Store s) {\n for (int i = 0 ; i <= SAlist.getStoreAdmins().size() -1 ; i++)\n {\n if (SAlist.getStoreAdmins().get(i).getID().equals(a))\n {\n System.out.println(\"ID alreday exists\");\n return false;\n }\n }\n StoreAdmin admin = new StoreAdmin(a, b, s);\n SAlist.getStoreAdmins().add(admin);\n try {\n SerialiseList();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n return true;\n }",
"public AdminController()\n { \n int totalNumAdmin = 99999;\n admin = new Administrator[totalNumAdmin];\n for(int index = 0; index < totalNumAdmin; index++)\n {\n admin[index] = new Administrator(\"????\",\"????\");\n }\n }",
"@Test\n public void testStaffFactoryCreate() {\n StaffController staffController = staffFactory.getStaffController();\n staffController.addStaff(STAFF_NAME, STAFF_GENDER, STAFf_ROLE);\n assertEquals(1, staffController.getStaffList().size());\n }",
"@Override\n protected String requiredDeletePermission() {\n return \"admin\";\n }",
"public void setAdminName(String adminName) {\n\t\tAdminName = adminName;\n\t}",
"public void setAdminName(String adminName) {\n\t\tthis.adminName = adminName;\n\t}",
"java.lang.String getAdmin();",
"@Test\n public void shouldListExpectedUsers() {\n OrgMembersListPage theMembersPage = open(OrgMembersListPage.class, organization.getName());\n theMembersPage.entriesContainer().shouldHave(text(\"Admin User (admin)\"));\n }"
] | [
"0.78374326",
"0.68639016",
"0.67980564",
"0.6757476",
"0.6717361",
"0.6687709",
"0.6632534",
"0.66236293",
"0.66093796",
"0.66061187",
"0.6553331",
"0.6531315",
"0.6499642",
"0.6468018",
"0.6462315",
"0.6441693",
"0.6360258",
"0.6345785",
"0.63143533",
"0.6314231",
"0.62797415",
"0.6273272",
"0.62066936",
"0.61940813",
"0.6192471",
"0.61748797",
"0.61388683",
"0.6119483",
"0.61170566",
"0.61003375",
"0.60911584",
"0.60834724",
"0.60834724",
"0.60685277",
"0.60416025",
"0.60316396",
"0.5989091",
"0.59808475",
"0.5980408",
"0.5975098",
"0.59698945",
"0.5947769",
"0.59454644",
"0.59340626",
"0.5927267",
"0.5897954",
"0.58939445",
"0.58848894",
"0.5884386",
"0.58810127",
"0.58757204",
"0.5871567",
"0.58567",
"0.5850121",
"0.5847572",
"0.5843563",
"0.58389944",
"0.5774924",
"0.57697415",
"0.5762315",
"0.5760575",
"0.57532346",
"0.57523865",
"0.5750524",
"0.57495266",
"0.57423526",
"0.57388353",
"0.573734",
"0.5734751",
"0.57267344",
"0.57257766",
"0.5719803",
"0.5715459",
"0.5711365",
"0.5707285",
"0.5704535",
"0.57006955",
"0.5698975",
"0.5694915",
"0.56919676",
"0.56892115",
"0.56745553",
"0.5654142",
"0.56499946",
"0.56419337",
"0.56410986",
"0.5635172",
"0.56283426",
"0.56235975",
"0.5620583",
"0.5618623",
"0.5617609",
"0.56087136",
"0.56038415",
"0.55898726",
"0.5587771",
"0.55877256",
"0.5574419",
"0.5574327",
"0.5555954"
] | 0.6547876 | 11 |
Tests the update done to an admin | @Test
void updateTest() {
admin.setSurname("Rossini");
Admin modifyied = adminJpa.update(admin);
assertEquals("Rossini", modifyied.getSurname());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic boolean updateAdminInfo(Admin admin) {\n\t\tint i = adminDao.updateAdminInfo(admin);\r\n\t\treturn i > 0?true:false;\r\n\t}",
"boolean adminUpdate(int userId, int statusId, int reimbId);",
"public boolean update(Admin admin) {\n\t\treturn adminDao.update(admin);\n\t}",
"@Override\n\tpublic boolean modify(Administrateur admin) {\n\t\ttry\n\t\t{\n\t\t\topenCurrentSessionWithTransaction();\n\t\t\tgetCurrentSession().update(admin);\n\t\t\tcloseCurrentSessionWithTransaction();\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test\n\tpublic void testUpdateAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString newName = \"New Name\";\n\t\tString newPassword = \"newPassword\";\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.updateAdminAccount(USERNAME1, newPassword, newName);\n\t\t} catch (InvalidInputException e) {\n\t\t\t// Check that no error occurred\n\t\t\tfail();\n\t\t}\n\t\tassertNotNull(user);\n\t\tassertEquals(USERNAME1, user.getUsername());\n\t\tassertEquals(newPassword, user.getPassword());\n\t\tassertEquals(newName, user.getName());\n\t}",
"@Test\r\n public void testUpdate() {\r\n assertTrue(false);\r\n }",
"public boolean update(Administrator admin) {\n\t\ttry {\n\t\t\tConnection conn = DbConnections.getConnection(DbConnections.ConnectionType.POSTGRESQL);\n\t\t\tPreparedStatement ps = conn\n\t\t\t\t\t.prepareStatement(\"update public.administrator set id_user = ?, nume = ?, prenume = ? where id = ?\");\n\n\t\t\tps.setInt(1, admin.getIdUser());\n\t\t\tps.setString(2, admin.getNume());\n\t\t\tps.setString(3, admin.getPrenume());\n\t\t\tps.setInt(4, admin.getId());\n\t\t\tint affectedRows = ps.executeUpdate();\n\t\t\tDbConnections.closeConnection(conn);\n\t\t\treturn affectedRows == 1;\n\t\t} catch (SQLException e) {\n\t\t\treturn false;\n\t\t}\n\n\t}",
"@Override\r\n\tpublic int updateAdmin(Admin newAdmin) {\n\t\treturn adminDAO.updateAdmin(newAdmin);\r\n\t}",
"public void updateAdmin(Admin admin) {\n\t\tadminDao.updateAdmin(admin);\r\n\t\t\r\n\t}",
"@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}",
"@Test\n public void update() {\n }",
"@Test\n\t public void testUpdateCollection(){\n\t\t try{\n\t\t\t List<Users> users = new ArrayList<Users>();\n\t\t\t users.add( BaseData.getUsers());\n\t\t\t\tusers.add(BaseData.getDBUsers());\n\t\t\t\tdoAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t\t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).persist(users);\n\t\t\t\tuserDao.update(users);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing update:.\",se);\n\t\t }\n\t }",
"@Test\r\n public void testUpdate() {\r\n }",
"@Test\r\n public void testBUpdate() throws Exception {\r\n System.out.println(\"update\");\r\n \r\n UsuarioDao instance = new UsuarioDao();\r\n \r\n Usuario obj = instance.login(\"admin\", \"admin\");\r\n obj.setFullName(\"Kevin Duran\");\r\n \r\n int expResult = 1;\r\n int result = instance.update(obj);\r\n assertEquals(expResult, result);\r\n }",
"@Test @Ignore\n\tpublic void testUpdate() {\n\t\tlog.info(\"*** testUpdate ***\");\n\t}",
"@Test\n\t public void testUpdate(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t\twhen(entityManager.merge(user)).thenReturn(BaseData.getDBUsers());\n\t\t\t\tUsers savedUser = userDao.update(user);\n\t\t\t\tassertNotNull(savedUser);\n\t\t\t\tassertTrue(savedUser.getFirstName().equals(\"MerchandisingUI\"));\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing update:.\",se);\n\t\t }\n\t }",
"@Override\r\n\tpublic boolean updateApwd(Admin admin) {\n\t\tint i = adminDao.updatePwd(admin);\r\n\t\treturn i > 0?true:false;\r\n\t}",
"@Override\n\tpublic Admin updateAdmin(Admin admin) {\n\t\treturn ar.save(admin);\n\t}",
"@Test\n public void testUpdate() {\n\n }",
"@Test\n void testUpdateUser() {\n String password = \"testPassword\";\n User updateUser = (User) userData.crud.getById(1);\n updateUser.setPassword(password);\n userData.crud.updateRecords(updateUser);\n User getUser = (User) userData.crud.getById(1);\n assertEquals(getUser, updateUser);\n logger.info(\"Updated the password for ID: \" + updateUser.getId());\n }",
"@Test \n\tpublic void testUpdateSetting() throws Exception\n\t{\n\t}",
"@Test \n\tpublic void edit() \n\t{\n\t\tassertTrue(true);\n\t}",
"public void testCmdUpdate() {\n\t\ttestCmdUpdate_taskID_field();\n\t\ttestCmdUpdate_taskName_field();\n\t\ttestCmdUpdate_time_field();\n\t\ttestCmdUpdate_priority_field();\n\t}",
"@Test\n public void update() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(1, 0, 6, \"GUI\");\n Student s2 = new Student(1,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(1, 1, \"prof\", 10, \"Irelevant\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repo.update(s2);\n repot.update(t2);\n repon.update(n2);\n assert repo.findOne(1).getGrupa()==221;\n assert repot.findOne(1).getDeadline()==8;\n assert repon.findOne(\"11\").getFeedback()==\"Irelevant\";\n\n }\n catch (ValidationException e){\n }\n }",
"@SmallTest\n public void testUpdate() {\n int result = -1;\n if (this.entity != null) {\n Settings settings = SettingsUtils.generateRandom(this.ctx);\n settings.setId(this.entity.getId());\n\n result = (int) this.adapter.update(settings);\n\n Assert.assertTrue(result >= 0);\n }\n }",
"@Test\n void testUpdateGoalie() {\n\n }",
"@Test\n\tpublic void testAdminChangePlan() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"temp\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(8, \"temp\", 00001, 0, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Plan Changed\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to change plan of account as admin\", testResult);\n\t}",
"@Test\n public void updateTest7() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCanoa(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isCanoa() ,\"Should return true if update Servizio\");\n }",
"void userChangeByAdmin(AdminUserDTO adminUserDTO) throws RecordExistException;",
"@Override\r\n\tpublic int updateAdminPassword(Admin admin) {\n\t\treturn adminMapper.updateAdminPassword(admin);\r\n\t}",
"public int update(Administraors admin, QueryRunner queryRunner,\n\t\t\tConnection connection) throws SQLException {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic int updateAdmin(AdminAdministrator adminAdministrator) {\n\t\treturn administratorDao.updateByPrimaryKey(adminAdministrator);\r\n\t}",
"@Test\n public void updateTest8() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCanoa(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isCanoa() ,\"Should return true if update Servizio\");\n }",
"private static void testupdate() {\n\t\ttry {\n\t\t\tRoleModel model = new RoleModel();\n\t\t\tRoleBean bean = new RoleBean();\n\t\t\tbean = model.findByPK(7L);\n\t\t\tbean.setName(\"Finance\");\n\t\t\tbean.setDescription(\"Finance Dept\");\n\t\t\tbean.setCreatedBy(\"CCD MYSORE\");\n\t\t\tbean.setModifiedBy(\"CCD MYSORE\");\n\t\t\tbean.setCreatedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tbean.setModifiedDatetime(new Timestamp(new Date().getTime()));\n\t\t\tmodel.update(bean);\n\t\t\tRoleBean updateBean = model.findByPK(1);\n\t\t\tif (\"12\".equals(updateBean.getName())) {\n\t\t\t\tSystem.out.println(\"UPDATE RECORD FAILED\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"RECORD UPDATED SUCCESSFULLY\");\n\t\t\t}\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (DuplicateRecordException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Test\n public void updateTest6() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBeach_volley(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isBeach_volley() ,\"Should return true if update Servizio\");\n }",
"@Test\r\n\tpublic void validEditTest() {\n\t\tadminUserEdit.clickAdminLink();\r\n\t\tadminUserEdit.clickUserListLink();\r\n\t\tadminUserEdit.clickEditUserLink();\r\n\t\t\r\n\t\t// Assertion\r\n\t\tString Actual = adminUserEdit.Assertion();\r\n\t\tString Expected = \"Hari\";\r\n\t\tassertEquals(Actual, Expected);\r\n\t\tscreenShot.captureScreenShot(\"TC019\");\r\n\t}",
"@Test\n\tpublic void checkValidLoginAdmin() {\n\t\ttest = report.createTest(\"CheckValidLoginAdmin\");\n\t\t\n\t\tadminhomepage = loginpage.successfullLoginAdmin(UserContainer.getAdmin());\n\t\ttest.log(Status.INFO, \"Signed in\");\n\t\t\n\t\tAssert.assertEquals(adminhomepage.getUserNameText(), UserContainer.getAdmin().getLogin());\n\t\ttest.log(Status.PASS, \"Checked if the right page is opened.\");\n\t\t\n\t\tloginpage = adminhomepage.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t}",
"@Test\n public void testModifyUser() throws Exception {\n\n User user = userDao.retrieveById(\"uuid123123123\");\n user.setUsername(\"newbody4\");\n\n Boolean result = userDao.update(user);\n Assert.assertTrue(result);\n }",
"@Test\n\tpublic void testUpdateTicketOk() {\n\t}",
"@Test\n public void updateTest14() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBeach_volley(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBeach_volley() ,\"Should return true if update Servizio\");\n }",
"@Test\n public void updateTest() {\n reservation3.setId(13L);\n reservation3.setReserveDate(LocalDate.now().plusDays(2));\n reservationService.update(reservation3);\n Mockito.verify(reservationDao, Mockito.times(1)).update(reservation3);\n }",
"@Test\n public void updateUserCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertFalse(userDAO.updateUser(new User(\"notdummy\", \"dummyUPDATED\", 2)));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }",
"@Test\n\tpublic void testUpdateAdminAccountWithEmptyName() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString newName = \"\";\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.updateAdminAccount(USERNAME1, PASSWORD1, newName);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Name cannot be empty.\", error);\n\t}",
"@Test\n void saveOrUpdateSuccess() {\n String newRoleName = \"readOnly\";\n UserRoles toUpdate = (UserRoles) genericDao.getById(3);\n toUpdate.setRoleName(newRoleName);\n genericDao.saveOrUpdate(toUpdate);\n UserRoles retrievedRole = (UserRoles) genericDao.getById(3);\n assertEquals(newRoleName, retrievedRole.getRoleName());\n log.info(\"update role success test\");\n\n }",
"public boolean changeAdmin() {\n\t\tString username = Inputs.getUserInput(\"Enter username:\");\n\t\tint pin = InputsValidator.getPinInput(\"Enter pin ( XXXX ) :\");\n\n\t\tif (adminDao.changeAdmin(username, pin)) {\n\t\t\tSystem.out.println(\"Admin changed! Username: \" + username + \"; pin: \" + pin);\n\t\t\tAdminMenu.getAdminMenu();\n\t\t\treturn true;\n\t\t}\n\n\t\telse {\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\t\t\tAdminMenu.getAdminMenu();\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test\n public void checkUpdateCampaignTest() {\n ObjectIdentityData buyer = ObjectIdentityData.getAnyObjectFromList(buyers);\n // select any not own campaign\n ObjectIdentityData campaign = ObjectIdentityData.getAnyObjectFromList(campaigns);\n RequestData requestData = new CampaignRequestData(campaign, buyer, false);\n GrantsVerification.checkUpdateRequest(requestData, isAdmin());\n }",
"@Test\n public void updatePage() {\n }",
"@Test\n\tpublic void testUpdateActionIsPerformedWhenPermissionInheritedAndUserAuthenticatedAndAllowed()\n\t\t\tthrows Throwable {\n\t\tcheck(getAllowedUser(), HttpStatus.SC_OK);\n\t}",
"@Test\n public void updateTest10() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBar() ,\"Should return true if update Servizio\");\n }",
"@Test\n public void updateTest2() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isBar() ,\"Should return true if update Servizio\");\n }",
"@Given(\"^Admin is on Admin Item List page$\")\n\tpublic void admin_is_on_Admin_Item_List_page() throws Throwable {\n\t\tdriver = new ChromeDriver();\n\t\t// Navigate to the home page\n\t\tdriver.navigate().to(StringUrlPath.htmlRoot);\n\t\t// Implicitly Wait 10 seconds to load the page \n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\t\t// Set the window width to maximum \n\t\tdriver.manage().window().maximize();\n\t\t// Get the login link and click it\n\t\tdriver.findElement(By.id(\"login-link\")).click();\n\t\t// Get the userName and password element and fill out those fields with correct data\n\t\tdriver.findElement(By.id(\"userName\")).sendKeys(\"admin\");\n\t\tdriver.findElement(By.id(\"Password\")).sendKeys(\"admin\");\n\t\t// Click the login button\n\t\tdriver.findElement(By.id(\"login\")).click();\n\t\tloggedIn = true;\n\t\tisUpdated = false;\n\t\t\n\t\t// Find the navigate application link and click it\n\t\tdriver.findElement(By.id(\"nav-app\")).click();\n\t\t// Click the item list link\n\t\tdriver.findElement(By.id(\"item-list\")).click(); \n\t}",
"@Test\n void updateSuccess() {\n String newDescription = \"December X-Large T-Shirt\";\n Order orderToUpdate = dao.getById(3);\n orderToUpdate.setDescription(newDescription);\n dao.saveOrUpdate(orderToUpdate);\n Order retrievedOrder = dao.getById(3);\n assertEquals(newDescription, retrievedOrder.getDescription());\n\n String resetDescription = \"February Small Long-Sleeve\";\n Order orderToReset = dao.getById(3);\n orderToUpdate.setDescription(resetDescription);\n dao.saveOrUpdate(orderToReset);\n }",
"@Test\n void updateSuccess() {\n String newFirstName = \"Artemis\";\n User userToUpdate = (User) dao.getById(1);\n userToUpdate.setFirstName(newFirstName);\n dao.saveOrUpdate(userToUpdate);\n User userAfterUpdate = (User) dao.getById(1);\n assertEquals(newFirstName, userAfterUpdate.getFirstName());\n }",
"@Test\n void updateSuccess () {\n TestEntity testEntity = buildEntity();\n Api2 instance = new Api2();\n Long result = instance.save(testEntity);\n\n String name = \"Edited name\";\n boolean check = false;\n String description = \"edited description\";\n\n if (result != null) {\n testEntity.setName(name);\n testEntity.setCheck(check);\n testEntity.setDescription(description);\n instance.update(testEntity);\n\n Optional<TestEntity> optionalTestEntity = instance.getById(TestEntity.class, testEntity.getId());\n assertTrue(optionalTestEntity.isPresent());\n\n if (optionalTestEntity.isPresent()) {\n TestEntity entity = optionalTestEntity.get();\n\n assertEquals(entity.getName(), name);\n assertEquals(entity.getDescription(), description);\n assertEquals(entity.isCheck(), check);\n } else {\n fail();\n }\n } else {\n fail();\n }\n }",
"protected final void runAsAdmin() {\n authenticationTestingUtil.grantAdminAuthority( this.applicationContext );\n }",
"@Test\r\n public void testUpdateEmployee1() throws Exception {\r\n try {\r\n\r\n int employee_id = 0;\r\n int department_id = 1;\r\n int position_id = 1;\r\n int status = 1;\r\n String date = \"\";\r\n EmployeeDAOImpl instance = new EmployeeDAOImpl();\r\n boolean expResult = false;\r\n boolean result = instance.updateEmployee(employee_id, department_id, position_id, status, date);\r\n assertEquals(expResult, result);\r\n } catch (Exception ex) {\r\n assertTrue(ex.getMessage().contains(\"Wrong Required Parameters\"));\r\n }\r\n }",
"@Test\n public void updateTest3() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setRistorante(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isRistorante() ,\"Should return true if update Servizio\");\n }",
"@Test\r\n public void testUpdate() {\r\n System.out.println(\"update\");\r\n Title t = new Title();\r\n t.setIsbn(\"test\");\r\n t.setTitle(\"aaaaaaaaaaaaaaaaaa\");\r\n t.setAuthor(\"kkkkkkkkkkkkkk\");\r\n t.setType(\"E\");\r\n int expResult = 1;\r\n int result = TitleDao.update(t);\r\n assertEquals(expResult, result);\r\n }",
"@Override\r\n\tpublic void adminSelectUpdate() {\n\t\t\r\n\t}",
"@Test\r\n public void testupdateCustomer() throws Exception {\r\n System.out.println(\"updateCustomer\");\r\n List<Server.Customer> lesClients = DAOCustomer.loadCustomer(Con());\r\n Server.Customer m = lesClients.get(2);\r\n DAOCustomer.updateCustomer(Con(),1, \"Costa\", \"Rui\",\"15 rue Paul\",\"77290\",\"Paris\",\"ruicosta@hotmail.fr\",\"M\");\r\n List<Server.Customer> results = DAOCustomer.loadCustomer(Con());\r\n Server.Customer r = results.get(2);\r\n assertFalse(m.getPrenom() == r.getPrenom());\r\n \r\n }",
"@Test\n public void testCanUpdatePublisher() {\n Publisher publisher = new Publisher();\n publisher.setName(\"Publisher\");\n publisher = publisherRepo.save(publisher);\n publisher = publisherRepo.findOne(publisher.getId());\n\n publisher.setName(\"New name\");\n publisher = publisherRepo.save(publisher);\n Publisher retrievedPublisher = publisherRepo.findOne(publisher.getId());\n assertThat(retrievedPublisher.getName(), equalTo(\"New name\"));\n }",
"@Test\n public void updateUser() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertTrue(userResource.updateUser(new User(\"dummy\", \"dummyUPDATED\", 2)));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }",
"public void checkAdmin (){exxampe for findElement combinations:\n\t \t//driver.findElement(By.partialLinkText(\"Super Admin\")).findElement(By.xpath(\"parent::*\")).findElement(By.xpath(\"parent::*\")).findElement(By.xpath(\"td[1]/input\")).click();\n\t \t//\n\t \t\n\t \tdriver.findElement(By.xpath(\"//table[@class='table table-striped']/tbody/tr[*]/td[contains(text(), 'admin')]/../td[1]/input\")).click();\n\t \t \n\t \t\n\t }",
"@Test\n public void updateTest11() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setRistorante(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isRistorante() ,\"Should return true if update Servizio\");\n }",
"@Test\n public void updateTest1() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCabina(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isCabina() ,\"Should return true if update Servizio\");\n }",
"@Test\n public void test2Update() {\n \n System.out.println(\"Prueba deSpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.update(spec2,\"teleinformatica\"),1); \n }",
"@Test\n public void updateTest() throws SQLException, IDAO.DALException {\n userDAO.create(user);\n user.setNavn(\"SørenBob\");\n user.setCpr(\"071199-4397\");\n user.setAktiv(false);\n user.setIni(\"SBO\");\n // Opdatere objektet i databasen, og sammenligner.\n userDAO.update(user);\n recivedUser = userDAO.get(-1);\n\n assertEquals(recivedUser.getId(), user.getId());\n assertEquals(recivedUser.getNavn(), user.getNavn());\n assertEquals(recivedUser.getIni(), user.getIni());\n assertEquals(recivedUser.getCpr(), user.getCpr());\n assertEquals(recivedUser.isAktiv(),user.isAktiv());\n }",
"@Test\n public void test_update() throws Exception {\n User user1 = createUser(1, false);\n\n user1.setUsername(\"new\");\n\n entityManager.getTransaction().begin();\n instance.update(user1);\n entityManager.getTransaction().commit();\n entityManager.clear();\n\n User retrievedUser = instance.get(user1.getId());\n\n assertEquals(\"'update' should be correct.\", user1.getUsername(), retrievedUser.getUsername());\n }",
"@Test @Ignore\n\tpublic void testSQLUpdate() {\n\t\tlog.info(\"*** testSQLUpdate ***\");\n\t}",
"@Test\n public void testEdit() {\n System.out.println(\"edit\");\n curso _curso = new curso();\n cursoDAO instance = new cursoDAO();\n boolean expResult = false;\n boolean result = instance.edit(_curso);\n assertEquals(expResult, result);\n \n }",
"@Test\n\tpublic void testUpdateAdminAccountWithEmptyPassword() {\n\n\t\tString newPassword = \"\";\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.updateAdminAccount(USERNAME1, newPassword, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Password cannot be empty.\", error);\n\t}",
"@Test\n public void updateTest9() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCabina(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isCabina() ,\"Should return true if update Servizio\");\n }",
"@Test\n\tpublic void testAdminDelete() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"temp\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(06, \"temp\", 00001, 0, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Deleted\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to delete account as admin\", testResult);\n\t}",
"@PutMapping(\"/\")\n\tpublic ResponseEntity<Object> updateAdministrator(@Valid @RequestBody AdminDataBean admin, HttpServletRequest request) {\t\n\t\tAdministrator rAdmin;\n\t\tif((rAdmin = service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession()))) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tAdministrator aux;\n\t\t\tif(admin.getEmail() != null && !admin.getEmail().isEmpty()) {\n\t\t\t\taux = service.findByEmail(admin.getEmail());\n\t\t\t\tif(aux != null && aux.getId() != rAdmin.getId()) return new ResponseEntity<>(HttpStatus.CONFLICT);\t\n\t\t\t\trAdmin.setEmail(admin.getEmail());\n\t\t\t}\n\t\t\tif(admin.getName() != null && !admin.getName().isEmpty()) {\n\t\t\t\taux = service.findByName(admin.getName());\n\t\t\t\tif(aux != null && aux.getId() != rAdmin.getId()) return new ResponseEntity<>(HttpStatus.CONFLICT);\n\t\t\t\trAdmin.setName(admin.getName());\n\t\t\t}\n\t\t\tservice.save(rAdmin);\n\t\t\tSessionManager.getInstance().setSessionEmail(request.getSession(), admin.getEmail());\n\t\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t\t}\n\t}",
"@Test\n void updateSuccess() {\n RunCategory categoryToUpdate = (RunCategory) dao.getById(2);\n categoryToUpdate.setCategoryName(\"New Name\");\n dao.saveOrUpdate(categoryToUpdate);\n RunCategory categoryAfterUpdate = (RunCategory) dao.getById(2);\n assertEquals(categoryToUpdate, categoryAfterUpdate);\n }",
"@Test\n public void updateDecline() throws Exception {\n }",
"@Test\n public void lastUpdateTest() {\n // TODO: test lastUpdate\n }",
"@Test\n public void testEdit() {\n lib.addDVD(dvd1);\n lib.addDVD(dvd2);\n \n dvd1.setTitle(\"Ghostbusters II\");\n lib.edit(dvd1);\n \n Assert.assertEquals(\"Ghostbusters II\", lib.getById(0).getTitle());\n }",
"@Test\n @Ignore\n public void testUpdate() {\n System.out.println(\"update\");\n Index entity = null;\n IndexDaoImpl instance = null;\n Index expResult = null;\n Index result = instance.update(entity);\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 }",
"@Test\n void updateSuccess() {\n String newEventName = \"Coffee meeting\";\n Event eventToUpdate = (Event)genericDao.getById(5);\n eventToUpdate.setName(newEventName);\n genericDao.saveOrUpdate(eventToUpdate);\n Event retrievedEvent = (Event)genericDao.getById(5);\n assertEquals(eventToUpdate, retrievedEvent);\n }",
"@Test\n\tvoid update() {\n\t\tfinal UserOrgEditionVo userEdit = new UserOrgEditionVo();\n\t\tuserEdit.setId(\"flast1\");\n\t\tuserEdit.setFirstName(\"FirstA\");\n\t\tuserEdit.setLastName(\"LastA\");\n\t\tuserEdit.setCompany(\"ing\");\n\t\tuserEdit.setMail(\"flasta@ing.com\");\n\t\tfinal List<String> groups = new ArrayList<>();\n\t\tgroups.add(\"dig rha\");\n\t\tuserEdit.setGroups(groups);\n\t\tinitSpringSecurityContext(\"fdaugan\");\n\t\tresource.update(userEdit);\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"flast1\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\n\t\tfinal UserOrgVo user = tableItem.getData().get(0);\n\t\tAssertions.assertEquals(\"flast1\", user.getId());\n\t\tAssertions.assertEquals(\"Firsta\", user.getFirstName());\n\t\tAssertions.assertEquals(\"Lasta\", user.getLastName());\n\t\tAssertions.assertEquals(\"ing\", user.getCompany());\n\t\tAssertions.assertEquals(\"flasta@ing.com\", user.getMails().get(0));\n\t\tAssertions.assertEquals(1, user.getGroups().size());\n\t\tAssertions.assertEquals(\"DIG RHA\", user.getGroups().get(0).getName());\n\n\t\t// Rollback attributes\n\t\tuserEdit.setId(\"flast1\");\n\t\tuserEdit.setFirstName(\"First1\");\n\t\tuserEdit.setLastName(\"Last1\");\n\t\tuserEdit.setCompany(\"ing\");\n\t\tuserEdit.setMail(\"first1.last1@ing.fr\");\n\t\tuserEdit.setGroups(null);\n\t\tresource.update(userEdit);\n\t}",
"@Test\n\tpublic void testUpdateTask() {\n\t}",
"@Test\n public void testUpdate() {\n System.out.println(\"update\");\n Address obj = null;\n AddressDAO instance = null;\n boolean expResult = false;\n boolean result = instance.update(obj);\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 }",
"@Test\n public void test() throws Exception{\n update(\"update user set username=? where id=?\",\"wangjian\",\"4\");\n }",
"@Test\n public void updateShiftListCatch(){\n userDAO.createUser(new User(\"dummy3\", \"dummy3\", 1));\n shiftListResource.createShiftlist(new ShiftList(\"dummy3\", 1, false, new Date(2017-01-01), 0, true));\n\n assertFalse(shiftListResource.updateShiftlist(new ShiftList(\"notdummy3\", 1, true, new Date(2015-01-01), 50, false)));\n\n //clean up\n shiftListResource.removeShiftlist(new Date(2017-01-01), 1, \"dummy3\");\n userDAO.removeUser((\"dummy3\"));\n }",
"@Test\n\tpublic void testModifyQuestion() {\n\t\tQnaQuestion question = questionLogic.getQuestionById(tdp.question1_location1.getId());\n\n\t\tquestion.setQuestionText(\"Testing update\");\n\n\t\t// Test with invalid permissions\n\t\ttry {\n\t\t\texternalLogicStub.currentUserId = USER_NO_UPDATE;\n\t\t\tquestionLogic.saveQuestion(question,LOCATION1_ID);\n\t\t\tAssert.fail(\"Should have thrown exception\");\n\t\t} catch (SecurityException e) {\n\t\t\tAssert.assertNotNull(e);\n\t\t} \n\n\t\t// Test with valid permission\n\t\ttry {\n\t\t\texternalLogicStub.currentUserId = USER_UPDATE;\n\t\t\tquestionLogic.saveQuestion(question,LOCATION1_ID);\n\t\t\tQnaQuestion changedQuestion = questionLogic.getQuestionById(tdp.question1_location1.getId());\n\t\t\tAssert.assertEquals(changedQuestion.getQuestionText(), \"Testing update\");\n\t\t} catch (Exception e) {\n\t\t\tAssert.fail(\"Should not have thrown exception\");\n\t\t}\n\t}",
"@Test\n\tpublic void validateUpdateOperation() throws Exception {\n\t\tmockMvc.perform(\n\t\t\t\tget(\"/secure/user/{username}\", \"username1\").accept(\n\t\t\t\t\t\tMediaType.APPLICATION_JSON)).andDo(print())\n\t\t\t\t.andExpect(status().isOk())\n\t\t\t\t.andExpect(content().contentType(\"application/json\"))\n\t\t\t\t.andExpect(jsonPath(\"firstName\").value(\"updatedFirstName\"));\n\n\t}",
"@Test\n public void updateTest12() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setAnimazione(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isAnimazione() ,\"Should return true if update Servizio\");\n }",
"@Test\r\n public void testUpdate() {\r\n TestingTypeList test = new TestingTypeList();\r\n test.addTestingType(\"TestType\", \"test\");\r\n TestingType testValue = test.getTestingTypeAt(0);\r\n test.update(testValue, testValue);\r\n TestingType notInList = new TestingType(\"NotInList\", \"notinlist\", \"notinlist\");\r\n test.update(notInList, notInList);\r\n assertEquals(1, test.size());\r\n }",
"@Test\n public void testExposesUpdate() throws Exception {\n Link customer = findCustomersLinks().iterator().next();\n byte[] bytes = Files.readAllBytes(Paths.get(\"src/test/resources/customer-update.txt\"));\n\n mockMvc\n .perform(put(customer.getHref())\n .contentType(MediaType.APPLICATION_JSON)\n .content(bytes))\n .andExpect(status().isNoContent());\n\n MockHttpServletResponse response2 = request(customer.getHref());\n\n assertThat(\"Firstname field was updated correctly\",\n JsonPath.read(response2.getContentAsString(), \"firstname\").toString(),\n is(\"Ralph\"));\n }",
"@Test\r\n\t public void updateAnExistingRouteFather(){\r\n\t\t this.routeFather.setDescription(\"yolo\");\r\n\t\t routeFatherDAO.update(this.routeFather);\r\n\t\t Assert.assertNotNull(\"it should returns not null\", this.routeFather);\r\n\t\t Assert.assertEquals(\"email should be yolo\", this.routeFather.getDescription(), \"yolo\");\r\n\t\t routeFatherDAO.delete(routeFather);\r\n\t\t \r\n\t }",
"@Test(priority = 1)\n\tpublic void editTest() throws IOException, InterruptedException\n\t{\n\t\tdriver.get(baseURL);\n\t\tloginPage lp = new loginPage(driver);\n\t\tSearchCustomerPage scp = new SearchCustomerPage(driver);\n\t\tEditDeleteCustomerPage edcp = new EditDeleteCustomerPage(driver);\n\t\t\n\t\tlp.setUserName(username);\n\t\tlp.setPassword(password);\n\t\tlp.clickLogin();\n\t\tlogger.info(\"login passed\");\n\t\t\n\t\t//getting cutsomers page\n\t\tscp.clickCustomers();\n\t\tscp.clickCustomers1();\n\t\tlogger.info(\"customers page \");\n\t\t\n\t\t//choosing a customer to edit and editing them\n\t\tedcp.editCustomer(edcp.btnEdit2);\n\t\tlogger.info(\"edit customer clicked\");\n\t\t\n\t\t//editing company\n\t\tedcp.editCompany(\"busy QA\");\n\t\tlogger.info(\"edited company info\");\n\t\t\n\t\t//saving\n\t\tedcp.saveCutomer();\n\t\tlogger.info(\"customer saved\");\n\t\t\n\t\tString s = edcp.alertMsgSaved.getText();\n\t\t\n\t\t//checking if true\n\t\tif(s.contains(\"The customer has been updated successfully.\"))\n\t\t{\n\t\t\tAssert.assertTrue(true);\n\t\t\tlogger.info(\"passed\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcaptureScreen(driver, \"editTest\");\n\t\t\tAssert.assertTrue(false);\n\t\t\tlogger.info(\"failed\");\n\t\t}\n\t\tThread.sleep(2000);\n\t\tlp.clickLogout();\n\t}",
"@Test\n\tpublic void navigateToAdminPage() throws InterruptedException\n\t{\n\t\tdashboardPage.clickOnDropdownOptionAdmin();\n\t\tThread.sleep(5000);\n\t\t/*\n\t\t * Sleep because selenium does not wait until the webpage is loaded and URL is changed,\n\t\t * Instead it fetches the URL as soon as the command is hit.\n\t\t */\n\t\tString actualURL = commonUtilities.verifyURLMethod();\n\t\tAssert.assertEquals(actualURL, ReadPropertiesFile.getPropertyValue(\"reportsPageUrl\"), \"Validating Admin Page URL\");\n\t}",
"@Override\n\tpublic void saveUpdateAdmin(Admin myUpdateAdmin) {\n\t\tgetHibernateTemplate().saveOrUpdate(myUpdateAdmin);\n\t}",
"@RequestMapping(value = \"/updateAdmin\", method = RequestMethod.POST)\n\t@ResponseBody\n\tpublic void updateUserAdmin(HttpServletRequest httpServletRequest) {\n\t\tint isAdmin = Integer.parseInt(httpServletRequest.getParameter(\"isAdmin\"));\n\t\tint userID = Integer.parseInt(httpServletRequest.getParameter(\"userID\"));\n\t\tuserService.updateUserAdmin(isAdmin, userID);\n\t}",
"@Test\n\tpublic void testUpdateAdminAccountWithInvalidToken() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.updateAdminAccount(USERNAME2, PASSWORD1, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"You do not have permission to modify this account.\", error);\n\t}",
"@Test\n public void updateEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //creating dummy employee\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 1));\n\n assertFalse(employeeResource.updateEmployee(new Employee(\"notdummy\", \"dummyUpdated\", \"dummyUpdated\", \"dummyUpdated\", \"dummyUpdated\", 1)));\n\n //clean up\n employeeDAO.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"public static void actualizar( Administrador admin, Conector conector ) throws ErrorConector\r\n {\r\n String lineaSQL = \"UPDATE administrador \"\r\n + \"SET documento_identidad = \" + admin.getDocumentoidentidad()+ \", \"\r\n + \"nombres = '\" + admin.getNombres()+ \"', \"\r\n + \"apellidos = '\" + admin.getApellidos()+ \"', \"\r\n + \"password = '\" + admin.getPassword()+ \"', \"\r\n + \"numero_telefonico = \" + admin.getNumerotelefonico()+ \", \"\r\n + \"correo_electronico = '\" + admin.getCorreoelectronico()+ \"' \"\r\n +\"WHERE id_administrador = \" + admin.getIdadmin();\r\n conector.ejecutarEnBaseDatos(lineaSQL);\r\n }",
"@Test\n public void testUpdateAccount() {\n for (int i = 0; i < 10; i++) {\n presenter.onUpdateAccount();\n }\n Assert.assertEquals(10, view.getManageUpdateAccountClicks());\n }",
"@Test\n\tpublic void testUpdateAdminAccountWithSpacesInPassword() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString newPassword = \"this is a bad password\";\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.updateAdminAccount(USERNAME1, newPassword, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Password cannot contain spaces.\", error);\n\t}"
] | [
"0.72934574",
"0.7052753",
"0.681542",
"0.6764732",
"0.66746885",
"0.65047127",
"0.6477783",
"0.642376",
"0.64199084",
"0.6390714",
"0.63638043",
"0.63504654",
"0.6348177",
"0.63414806",
"0.63403714",
"0.63025784",
"0.62995905",
"0.62882453",
"0.62876254",
"0.6283448",
"0.62642735",
"0.62591285",
"0.6258136",
"0.62536424",
"0.62431395",
"0.6227073",
"0.6215851",
"0.6190656",
"0.6187741",
"0.6186306",
"0.6180333",
"0.61801517",
"0.6171262",
"0.61683816",
"0.6162645",
"0.616066",
"0.61571246",
"0.61330867",
"0.61220765",
"0.6117106",
"0.6104606",
"0.6085094",
"0.60709393",
"0.6051964",
"0.6051323",
"0.6037262",
"0.6036899",
"0.60235953",
"0.6016036",
"0.60132486",
"0.6008675",
"0.6008256",
"0.60017526",
"0.59946764",
"0.5991346",
"0.59864753",
"0.5983233",
"0.59797347",
"0.59771556",
"0.5973624",
"0.5969371",
"0.5966275",
"0.5965524",
"0.5964907",
"0.5962088",
"0.5959276",
"0.5950833",
"0.59389865",
"0.5937601",
"0.5921185",
"0.59211016",
"0.59156936",
"0.5907073",
"0.5906633",
"0.5896084",
"0.5890463",
"0.58749664",
"0.58722496",
"0.58689684",
"0.58649826",
"0.5859092",
"0.5854846",
"0.58497375",
"0.5848379",
"0.5847853",
"0.58425885",
"0.5837405",
"0.5836959",
"0.58324885",
"0.58248115",
"0.58224374",
"0.5814378",
"0.5806194",
"0.5804189",
"0.57967764",
"0.5793228",
"0.57874984",
"0.5786306",
"0.5781671",
"0.57749635"
] | 0.7285293 | 1 |
Tests the removal of an admin | @Test
void removeTest() {
Admin anAdmin = new Admin();
anAdmin.setEmail("g.gialli1@wlbadmin.it");
anAdmin.setName("Giovanni");
anAdmin.setSurname("Gialli");
anAdmin.setPassword("Ciao1234.");
try {
entityManager = factor.createEntityManager();
entityManager.getTransaction().begin();
entityManager.persist(anAdmin);
entityManager.getTransaction().commit();
} finally {
entityManager.close();
}
adminJpa.remove(anAdmin);
assertThrows(NoResultException.class, () -> {
adminJpa.retrieveByEmailPassword("g.gialli1@wlb.it", "Ciao1234.");
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testAdminDelete() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"temp\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(06, \"temp\", 00001, 0, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Deleted\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to delete account as admin\", testResult);\n\t}",
"public void deleteAdmin(Long idAdmin);",
"@Test\n\t@WithMockCustomUser(username = \"admin\")\n\tpublic void deleteRecipeAsAdmin() throws Exception {\n\t\tRecipe recipe = recipeBuilder(1L);\n\n\t\twhen(recipeService.findById(1L)).thenReturn(recipe);\n\t\twhen(userService.findAll()).thenReturn(new ArrayList<>());\n\t\tdoAnswer(invocation -> null).when(recipeService).deleteById(1L);\n\n\t\tmockMvc.perform(post(\"/recipes/1/delete\"))\n\t\t\t\t.andExpect(authenticated())\n\t\t\t\t.andExpect(flash().attributeExists(\"flash\"))\n\t\t\t\t.andExpect(status().is3xxRedirection())\n\t\t\t\t.andExpect(redirectedUrl(\"/recipes\"));\n\n\t\tverify(recipeService).findById(any(Long.class));\n\t\tverify(userService).findAll();\n\t\tverify(recipeService).deleteById(any(Long.class));\n\t}",
"@Test\n @DisplayName(\"delete returns 403 when user is not admin\")\n void delete_Returns403_WhenUserIsNotAdmin() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(USER);\n \n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleUser.exchange(\n \"/animes/admin/{id}\",\n HttpMethod.DELETE,\n null,\n Void.class,\n savedAnime.getId()\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.FORBIDDEN);\n }",
"@Test\n public void whenAdminRemoveUserShouldCheckThatUserWasRemoved() throws ServletException, IOException {\n Create createUser = new Create();\n HttpServletRequest request = mock(HttpServletRequest.class);\n HttpServletResponse response = mock(HttpServletResponse.class);\n when(request.getParameter(\"name\")).thenReturn(\"Yegor\");\n when(request.getParameter(\"surname\")).thenReturn(\"Voronyansky\");\n when(request.getParameter(\"email\")).thenReturn(\"vrnsky@vrnsky.com\");\n when(request.getParameter(\"role\")).thenReturn(\"2\");\n createUser.doPost(request, response);\n\n Remove removeUser = new Remove();\n List<User> users = ExtendedRepo.getInstance().getAllUsers();\n User user = users.get(users.size() - 1);\n when(request.getParameter(\"id\")).thenReturn(String.valueOf(user.getId()));\n removeUser.doPost(request, response);\n\n User removed = ExtendedRepo.getInstance().getUserById(user.getId());\n assertEquals(null, removed);\n }",
"@Test\n\tpublic void test04_05_DeleteADisabledUserByAdministrator() {\n\t\tinfo(\"Test 4: Delete a disabled user by administrator\");\n\t\tString name=txData.getContentByArrayTypeRandom(1)+getRandomNumber();\n\t\tcreateNewUser();\n\t\tdisableUser();\n\t\t/*Step Number: 1\n\t\t*Step Name: Step 1: Open User Management\n\t\t*Step Description: \n\t\t\t- Log in as admin.\n\t\t\t- Go to Administration \n\t\t\t-\n\t\t\t-> Community \n\t\t\t-\n\t\t\t-> Manage Community.\n\t\t\t- Choose the tab \"User Management\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The list of users is displayed: enabled and disabled\n\t\t\t- The column \"Action\" is displayed with 2 icons: Edit and Delete.*/\n\t\tuserAndGroup.goToEditUserInfo(username);\n\t\tuserAndGroup.editUserInfo_AccountTab(\"\", \"\",name, \"\");\n\t\t\n\t\t/*Step number: 2\n\t\t*Step Name: Step 2: Delete a disabled user\n\t\t*Step Description: \n\t\t\t- From a Disabled user, click on the icon \"Delete\".\n\t\t*Input Data: \n\t\t\t\n\t\t*Expected Outcome: \n\t\t\t- The disabled user is removed from the list*/ \n\t\tuserAndGroup.deleteUser(username);\n\t}",
"@Override\r\n\tpublic int deleteAdmin(int adminid) {\n\t\treturn administratorDao.deleteByPrimaryKey(adminid);\r\n\t}",
"@Override\n\tpublic boolean delete(Administrateur admin) {\n\t\ttry\n\t\t{\n\t\t\topenCurrentSessionWithTransaction();\n\t\t\tgetCurrentSession().delete(admin);\n\t\t\tcloseCurrentSessionWithTransaction();\n\t\t\treturn true;\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic String deleteAdminById(int id) {\n\t\tar.deleteById(id);\n\t\treturn \"Admin with id: \" + id + \" was deleted.\";\n\t}",
"@Test\n\tpublic void testadminLogout(){\n\t\tlic.logon(\"nadmin\", \"admin\", true);\n\t\tassertTrue(loc.adminLogout(\"nadmin\"));\n\t\tassertFalse(loc.adminLogout(\"oops\"));\n\t}",
"public void removeAdminRight(Admin admin) throws ServiceException{\n }",
"@Test\n @DisplayName(\"delete removes anime when successful\")\n void delete_RemovesAnime_WhenSuccessful() {\n Anime savedAnime = animeRepository.save(AnimeCreator.createAnimeToBeSaved());\n devDojoRepository.save(ADMIN);\n \n // using testRestTemplateRoleAdmin to perform request\n ResponseEntity<Void> animeResponseEntity = testRestTemplateRoleAdmin.exchange(\n \"/animes/admin/{id}\",\n HttpMethod.DELETE,\n null,\n Void.class,\n savedAnime.getId()\n );\n\n Assertions.assertThat(animeResponseEntity).isNotNull();\n \n Assertions.assertThat(animeResponseEntity.getStatusCode()).isEqualTo(HttpStatus.NO_CONTENT);\n }",
"@Override\r\n\tpublic String delete() {\n\t\tList<Object> paramList=new ArrayList<Object>();\r\n\t\tparamList.add(admin.getAdminAccount());\r\n\t\tboolean mesg=false;\r\n\t\tif(adminDao.doDelete(paramList)==1)\r\n\t\t\tmesg=true;\r\n\t\tthis.setResultMesg(mesg, \"ɾ³ý\");\r\n\t\treturn SUCCESS;\r\n\t}",
"@Override\n\tpublic boolean deleteAdmin(String adminId) {\n\t\tif (!adminRepository.existsById(adminId))\n\t\t\tthrow new AdminNotFoundException(\"Customer with id \" + adminId + \" Not Found\");\n\t\tadminRepository.deleteById(adminId);\n\t\treturn true;\n\t}",
"@Test\n\tpublic void testDeleteAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.deleteAdminAccount(USERNAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\t\tAdminAccount savedUser = adminAccountService.getAdminAccountByUsername(USERNAME1);\n\t\tassertNotNull(user);\n\t\tassertEquals(savedUser.getUsername(), user.getUsername());\n\t\tassertEquals(savedUser.getPassword(), user.getPassword());\n\t\tassertEquals(savedUser.getName(), user.getName());\n\t}",
"@Test\n void createTest() {\n Admin anAdmin = new Admin();\n anAdmin.setEmail(\"g.gialli1@wlbadmin.it\");\n anAdmin.setName(\"Giovanni\");\n anAdmin.setSurname(\"Gialli\");\n anAdmin.setPassword(\"Ciao1234.\");\n Admin created = adminJpa.create(anAdmin);\n assertEquals(\"g.gialli1@wlbadmin.it\", created.getEmail());\n try {\n entityManager = factor.createEntityManager();\n entityManager.getTransaction().begin();\n entityManager.remove(entityManager.merge(anAdmin));\n entityManager.getTransaction().commit();\n } finally {\n entityManager.close();\n }\n }",
"@Test\n public void testAuthorizedRemoveUser() throws IOException {\n testUserId2 = createTestUser();\n grantUserManagementRights(testUserId2);\n\n String userId = createTestUser();\n\n Credentials creds = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n\n String getUrl = String.format(\"%s/system/userManager/user/%s.json\", baseServerUri, userId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n String postUrl = String.format(\"%s/system/userManager/user/%s.delete.html\", baseServerUri, userId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds, postUrl, HttpServletResponse.SC_OK, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_NOT_FOUND, null); //make sure the profile request returns some data\n }",
"@Override\n protected String requiredDeletePermission() {\n return \"admin\";\n }",
"@External\n\tpublic void remove_admin(Address _admin) {\n\t\tif (Context.getCaller().equals(this.get_super_admin())) {\n\t\t\tif (!containsInArrayDb(_admin, this.admin_list) ) {\n\t\t\t\tContext.revert(\"Invalid address: not in list\");\n\t\t\t}\n\n\t\t\tAddress top = this.admin_list.pop();\n\t\t\tif (!top.equals(_admin)) {\n\t\t\t\tfor (int i= 0; i<this.admin_list.size(); i++) {\n\t\t\t\t\tAddress address = this.admin_list.get(i);\n\t\t\t\t\tif (address.equals(_admin)) {\n\t\t\t\t\t\tthis.admin_list.set(i, address);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (DEBUG) {\n\t\t\t\tContext.println( _admin.toString() + \" has been removed from admin list.\" + TAG);\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t}",
"@DeleteMapping(\"/{id}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public boolean deleteAdmin(@PathVariable int id){\n return adminService.deleteAdmin(id);\n }",
"@Test\n\tpublic void testDeleteAdminAccountWithNonExistingUser() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString username = \"Catherine\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.deleteAdminAccount(username);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"The user cannot be found.\", error);\n\t}",
"int deleteByExample(AdminExample example);",
"@Test\n public void testNotAuthorizedRemoveUser() throws IOException {\n testUserId2 = createTestUser();\n\n String userId = createTestUser();\n\n Credentials creds = new UsernamePasswordCredentials(\"admin\", \"admin\");\n\n String getUrl = String.format(\"%s/system/userManager/user/%s.json\", baseServerUri, userId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n Credentials creds2 = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n String postUrl = String.format(\"%s/system/userManager/user/%s.delete.html\", baseServerUri, userId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds2, postUrl, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n }",
"public void removeAdminRole()\r\n {\r\n getSemanticObject().removeProperty(swpres_adminRole);\r\n }",
"int deleteByPrimaryKey(Integer adminId);",
"public abstract void adminDeleteVM(int userId, String uuid);",
"public void remove_admin(String id)\n {\n \tNode<Admin> pos=adm_list.getFirst();\n \twhile(pos!=null)\n \t{\n \t\tif(id.equals(pos.getData().employee_id))\n \t\t{\n \t\t\tadm_list.remove(pos);\n \t\t}\n \t\tpos=pos.getNext();\n \t}\n write_adm_file();\n }",
"@Test\n\tpublic void deleteByAdministratorTest() throws ParseException {\n\t\t\n\t\tSystem.out.println(\"-----Delete announcement by administrator test. Positive 0 to 1, Negative 2 to 4.\");\n\t\t\n\t\tObject testingData[][]= {\n\t\t\t\t//Positive cases\n\t\t\t\t{\"announcement1-1\", \"admin\", null},\n\t\t\t\t{\"announcement1-2\", \"admin\", null},\n\t\t\t\t\n\t\t\t\t//Negative cases\n\t\t\t\t//Without announcement\n\t\t\t\t{null, \"admin\", NullPointerException.class},\n\t\t\t\t//Without user\n\t\t\t\t{\"announcement2-1\", null, IllegalArgumentException.class},\n\t\t\t\t//With not admin\n\t\t\t\t{\"announcement2-1\", \"user1\", IllegalArgumentException.class}\n\t\t\t\t};\n\t\t\n\t\t\n\t\tfor (int i = 0; i< testingData.length; i++) {\n\t\t\ttemplateDeleteByAdministratorTest(\n\t\t\t\t\ti,\n\t\t\t\t\t(Integer) this.getEntityIdNullable((String) testingData[i][0]),\n\t\t\t\t\t(String) testingData[i][1],\n\t\t\t\t\t(Class<?>) testingData[i][2]\n\t\t\t\t\t);\n\t\t}\n\t}",
"@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }",
"int deleteByPrimaryKey(Integer adminid);",
"@Test\r\n\tpublic void testDeleteSuggestionButNoSuggestionToDelete() {\n\t\tWebDriver driver2 = new HtmlUnitDriver();\r\n\t\tadminLogin();\r\n\t\tSuggestion suggestion = suggestionRepository.save(new Suggestion(null, \"suggestion\", true));\r\n\t\t// go to \"/suggestions\"\r\n\t\tdriver.get(suggestionsUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Home\", \"New suggestion\", \"Logged as Admin\", \"Logout\");\r\n\t\tassertThat(driver.findElement(By.id(\"suggestions_table\")).getText()).contains(\"ID\", \"Suggestions\",\r\n\t\t\t\tsuggestion.getId().toString(), suggestion.getSuggestionText());\r\n\t\t// go to \"/suggestions/delete/{id}\"\r\n\t\tdriver.findElement(By.linkText(\"Delete\")).click();\r\n\r\n\t\t// user number 2 log himself\r\n\t\t// go to login page\r\n\t\tdriver2.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver2.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver2.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\t// go to suggestions page\r\n\t\tdriver2.get(suggestionsUrl);\r\n\t\t// go to \"/suggestions/delete/{id}\"\r\n\t\tdriver2.findElement(By.linkText(\"Delete\")).click();\r\n\t\t// delete by clicking the button\r\n\t\tassertThat(suggestionRepository.findAll().size()).isEqualTo(1);\r\n\t\tdriver2.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(suggestionRepository.findAll().size()).isZero();\r\n\t\tdriver2.quit();\r\n\t\t// user 1 try to delete but the suggestion does not exist anymore\r\n\t\t// submit the edit\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t\tassertThat(driver.getCurrentUrl()).isEqualTo(errorUrl);\r\n\t\tassertThat(driver.getPageSource()).contains(\"Error\", \"Home\",\r\n\t\t\t\t\"It is not possible to delete a suggestion with the id: \" + suggestion.getId());\r\n\t}",
"@Test\n public void testStaffFactoryRemove() {\n StaffController staffController = staffFactory.getStaffController();\n staffController.removeStaff(STAFF_NAME, 1);\n assertEquals(0, staffController.getStaffList().size());\n }",
"@Test\n\t public void testDelete(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t doAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).remove(user);\n\t\t\t\tuserDao.delete(user);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing delete:.\",se);\n\t\t }\n\t }",
"@Test\n\tpublic void checkValidLoginAdmin() {\n\t\ttest = report.createTest(\"CheckValidLoginAdmin\");\n\t\t\n\t\tadminhomepage = loginpage.successfullLoginAdmin(UserContainer.getAdmin());\n\t\ttest.log(Status.INFO, \"Signed in\");\n\t\t\n\t\tAssert.assertEquals(adminhomepage.getUserNameText(), UserContainer.getAdmin().getLogin());\n\t\ttest.log(Status.PASS, \"Checked if the right page is opened.\");\n\t\t\n\t\tloginpage = adminhomepage.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t}",
"@Override\n\tpublic void onDelete() {\n\t\tif (testSessionChangedHandler != null) {\n\t\t\ttestSessionChangedHandler.removeHandler();\n\t\t\ttestSessionChangedHandler = null;\n\t\t}\n\t\t// Release the acmi\n\t\tif (acmiSaveButton !=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiSaveButton))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiSaveButton);\n\t\t}\n\t\tif (acmiPromoteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiPromoteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiPromoteSite);\n\t\t}\n\t\tif (acmiDeleteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiDeleteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiDeleteSite);\n\t\t}\n\t\tif (acmiCreateSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiCreateSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiCreateSite);\n\t\t}\n\t}",
"public static int deleteUser(int adminId) {\r\n\t\t//conn = DBConnection.getConnection();\r\n\t\tPreparedStatement statement;\r\n\t\ttry {\r\n\r\n\t\t\tstatement = conn.prepareStatement(deleteQuery);\r\n\t\t\tstatement.setInt(1, adminId);\r\n\t\t\tint rowsUpdated = statement.executeUpdate();\r\n\t\t\tif (rowsUpdated == 1)\r\n\t\t\t\treturn 1;\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"@Test\n\tpublic void test_delete_user_success(){\n template.delete(REST_SERVICE_URI + \"/\" + getLastUser().getId() + ACCESS_TOKEN + token);\n }",
"@Test\r\n public void testRemove() throws Exception {\r\n\r\n String ADMIN_USERNAME = \"bjones\";\r\n Calendar DEFAULT_START_DATE = Calendar.getInstance();\r\n Calendar DEFAULT_END_DATE = Calendar.getInstance();\r\n DEFAULT_START_DATE.set(Calendar.YEAR, 1900);\r\n DEFAULT_END_DATE.set(Calendar.YEAR, 3000);\r\n \r\n logger.debug(\"\\nSTARTED testRemove()\\n\");\r\n\r\n User user1 = userDao.find(TEST_USERNAME);\r\n\r\n List<TaskLog> logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());\r\n Result<User> ar;\r\n\r\n if (logs.isEmpty()) {\r\n\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Delete of user should be allowed as no task logs assigned!\", ar.isSuccess());\r\n\r\n } else {\r\n\r\n // this user has task log assigned\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Cascading delete of user to task logs not allowed!\", !ar.isSuccess());\r\n\r\n }\r\n\r\n logs = taskLogDao.findByUser(user1, DEFAULT_START_DATE.getTime(), DEFAULT_END_DATE.getTime());\r\n if (logs.isEmpty()) {\r\n\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Delete of user should be allowed as empty task log list!\", ar.isSuccess());\r\n\r\n } else {\r\n\r\n // this user has task log assigned\r\n ar = userService.remove(TEST_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Cascading delete of user to task logs not allowed!\", !ar.isSuccess());\r\n\r\n }\r\n\r\n ar = userService.remove(ADMIN_USERNAME, ADMIN_USERNAME);\r\n logger.debug(ar.getMsg());\r\n assertTrue(\"Should not be able to delete yourself\", !ar.isSuccess());\r\n\r\n logger.debug(\"\\nFINISHED testRemove()\\n\");\r\n }",
"public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }",
"@Test\n\tpublic void testDeleteAdminAccountWithInvalidToken() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.deleteAdminAccount(USERNAME2);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"You do not have permission to delete this account.\", error);\n\t}",
"@Override\n\tpublic boolean deleteAdminUnitLevel(Integer slc, Integer adminUnitCode,\n\t\t\tint entityType) throws Exception {\n\t\t// TODO Auto-generated method stub\n\t\treturn organizationDAO.deleteAdminUnitLevel(slc, adminUnitCode, entityType);\n\t}",
"@Override\n\tpublic void deleteByname(String adminname) {\n\t\tSettingMapper.deleteByname(adminname);\n\t}",
"@Test\n\tvoid testDeletePlant() {\n\t\tList<Plant> plant = service.deletePlant(50);\n\t\tassertFalse(plant.isEmpty());\n\t}",
"@Test\n public void testNotAuthorizedRemoveGroup() throws IOException {\n testUserId2 = createTestUser();\n\n String groupId = createTestGroup();\n\n Credentials creds = new UsernamePasswordCredentials(\"admin\", \"admin\");\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n Credentials creds2 = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds2, postUrl, HttpServletResponse.SC_INTERNAL_SERVER_ERROR, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n }",
"private void removeAdminProfile(List<Model> models) {\n\t\tfor (Iterator<Model> iterator = models.iterator(); iterator.hasNext();) {\n\t\t\tModel model = iterator.next();\n\t\t\tif(\"admin\".equals(model.get(\"name\"))) {\n\t\t\t\titerator.remove();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} \n\t\t\t\n\t}",
"@RequestMapping(path = \"/delAdmin/{id}\")\n public String delAdmin(HttpServletRequest request, @Value(\"删除帐号、员工信息\") String type,@PathVariable(\"id\") String id){\n adminService.delAdmin(id);\n// empService.delEmp(admin.getId()); //这个是根据编号删除,我们要根据帐号删除\n\n empService.delEmpByAdminID(id);\n\n //日志\n addlog(request,type);\n return \"redirect:/adminList/1\";\n }",
"@Test\n public void deleteId() throws Exception {\n Role role = create(new Role(\"roleName\"));\n\n //Attempt to remove from the database with delete request\n try {\n mvc.perform(MockMvcRequestBuilders.delete(\"/auth/roles/{id}\", UUIDUtil.UUIDToNumberString(role.getUuid()))\n .header(\"Authorization\", authPair[0])\n .header(\"Function\", authPair[1])\n )\n .andExpect(status().isOk());\n } catch (Exception e) {\n remove(role.getUuid());\n throw e;\n }\n\n //Check if successfully removed from database\n try {\n //Remove from database (above get function should have thrown an error if the object was no longer in the database)\n remove(role.getUuid());\n fail(\"DELETE request did not succesfully delete the object from the database\");\n } catch (ObjectNotFoundException e) {\n //Nothing because the object is no longer present in the database which is expected\n }\n }",
"@Test\n public void testAuthorizedRemoveGroup() throws IOException {\n testUserId2 = createTestUser();\n grantUserManagementRights(testUserId2);\n\n String groupId = createTestGroup();\n\n Credentials creds = new UsernamePasswordCredentials(testUserId2, \"testPwd\");\n\n String getUrl = String.format(\"%s/system/userManager/group/%s.json\", baseServerUri, groupId);\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_OK, null); //make sure the profile request returns some data\n\n String postUrl = String.format(\"%s/system/userManager/group/%s.delete.html\", baseServerUri, groupId);\n List<NameValuePair> postParams = new ArrayList<>();\n assertAuthenticatedPostStatus(creds, postUrl, HttpServletResponse.SC_OK, postParams, null);\n\n assertAuthenticatedHttpStatus(creds, getUrl, HttpServletResponse.SC_NOT_FOUND, null); //make sure the profile request returns some data\n }",
"@Test\n\tpublic void testDelete(){\n\t}",
"@Test\n\tpublic void testSupprimer() {\n\t\tprofesseurServiceEmp.supprimer(prof);\n\t}",
"@Test\n void deleteSuccess() {\n\n UserDOA userDao = new UserDOA();\n User user = userDao.getById(1);\n String orderDescription = \"February Large Test-Tshirt Delete\";\n\n Order newOrder = new Order(orderDescription, user, \"February\");\n user.addOrder(newOrder);\n\n dao.delete(newOrder);\n List<Order> orders = dao.getByPropertyLike(\"description\", \"February Large Test-Tshirt Delete\");\n assertEquals(0, orders.size());\n }",
"boolean isAdmin();",
"@Test\r\n public void testDelete() {\r\n assertTrue(false);\r\n }",
"int deleteByExample(AdminUserCriteria example);",
"int deleteByExample(AdminUserCriteria example);",
"@Test\n public void testCustomerFactoryRemove() {\n CustomerController customerController = customerFactory.getCustomerController();\n customerController.addCustomer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n customerController.removeCustomer(CUSTOMER_NAME,1);\n assertEquals(0, customerController.getCustomerList().size());\n }",
"@Override\r\n\tpublic boolean getDeleAdmin(int A_id) {\n\t\treturn adi.deleAdmin(A_id);\r\n\t}",
"@Test\n public void testDeleteMember() throws Exception {\n }",
"int deleteByExample(AdminTabExample example);",
"public void delete(Long id) {\n log.debug(\"Request to delete Administrator : {}\", id);\n administratorRepository.delete(id);\n }",
"public String deleteAdminDetails(String identifier) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic int applyuseradminDelete(int id) {\n\t\treturn applyseradminDao.applyuseradminDelete(id);\r\n\t}",
"@Override\n\tpublic boolean deleteAdminUnitEntityForDraft(Integer slc,Integer adminUnitCode, int entityType) throws Exception {\n\t\treturn organizationDAO.deleteAdminUnitEntityForDraft(slc, adminUnitCode, entityType);\n\t}",
"@Test\n public void testAdminPerm() {\n }",
"public boolean isAdmin();",
"@Test\n public void removeUser() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertTrue(userResource.removeUser(\"dummy\"));\n }",
"@Test\r\n\tpublic void testRemoveContributor() {\r\n\t\tcm = Contributormanager.getInstance();\r\n\t\tassertTrue(cm.isEmpty());\r\n\t\tassertTrue(cm.addContributor(\"Chris\"));\r\n\t\tassertFalse(cm.isEmpty());\r\n\t\tassertTrue(cm.removeContributor(\"Chris\"));\r\n\t\tassertTrue(cm.isEmpty());\r\n\t}",
"@Given(\"5- the user is not an admin\")\n\tpublic void theUserIsAnAdmin1() {\n\t\tadmin.setAdminState(false);\n\t\tassertFalse(admin.isAdmin());\n\t}",
"@Test\n\t public void testDeleteEntity(){\n\t\t try{\n\t\t\t Users user = BaseData.getUsers();\n\t\t\t doAnswer(new Answer() {\n\t\t\t \t public Object answer(InvocationOnMock invocation) {\n\t\t\t \t Object[] args = invocation.getArguments();\n\t\t\t \t EntityManager mock = (EntityManager) invocation.getMock();\n\t\t\t \t return null;\n\t\t\t \t }\n\t\t\t \t }).when(entityManager).remove(entityManager.getReference(Users.class,\n\t\t\t \t \t\tuser.getLoginName()));\n\t\t\t\tuserDao.delete(user.getLoginName(),user);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing delete:.\",se);\n\t\t }\n\t }",
"private void removeAdminUsers(List<Model> models) {\n\t\tfor (Iterator<Model> iterator = models.iterator(); iterator.hasNext();) {\n\t\t\tModel model = iterator.next();\n\t\t\tif(\"admin\".equals(model.get(\"profile\"))) {\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t} \n\t}",
"public static void deleteUserByUsernameForAdmin(String username){\n\n adminServices.deleteUserByUsername(username);\n\n // boolean deleted = adminServices.deleteUserByUsername(username);\n//\n// if (deleted){\n//\n// System.out.println(\"Der Employee mit der Username:\"+ username +\"wurde gelöscht.\");\n// }else {\n//\n// System.out.println(\"Der Employee mit der Username:\"+ username +\"wurde nicht gelöscht.\");\n// }\n }",
"@Test\n public void removeUserCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n assertFalse(userResource.removeUser(\"notdummy\"));\n\n //clean up\n userDAO.removeUser(\"dummy\");\n }",
"@Test\n\tpublic void testDeleteRoomPositive() {\n\t\tRoom room;\n\t\tint roomId;\n\n\t\tsuper.authenticate(\"player1\");\n\n\t\troomId = super.getEntityId(\"Room1\");\n\t\troom = this.roomService.findOne(roomId);\n\n\t\tthis.roomService.delete(room);\n\n\t\tsuper.unauthenticate();\n\t}",
"@Test\r\n\tpublic void checkDeleteTest() {\n\t\tassertFalse(boardService.getGameRules().checkDelete(board.field[13][13])); \r\n\t}",
"@Test\n\tpublic void testRemovePregunta(){\n\t\tej1.addPregunta(pre);\n\t\tej1.removePregunta(pre);\n\t\tassertFalse(ej1.getPreguntas().contains(pre));\n\t}",
"@Override\n\tpublic boolean DeleteAbilityBbsByAdmin(AbilityBbs ability) {\n\t\treturn abilityDao.DeleteAbilityBbsByAdmin(ability);\n\t}",
"@When(\"^the admin deletes the owner with a specified id$\")\n\tpublic void the_admin_deletes_the_owner_with_a_specified_id() throws Throwable {\n\t throw new PendingException();\n\t}",
"@Test\n void testDeleteUser() {\n List<User> allUsers = userData.crud.getAll();\n int deleteId = allUsers.get((allUsers.size() - 1)).getId();\n userData.crud.deleteRecord(userData.crud.getById(deleteId));\n assertNull(userData.crud.getById(deleteId));\n // List<User> allUsersMinusOne = userData.crud.getAll();\n // assertNotEquals(allUsersMinusOne, allUsers);\n logger.info(\"Deleted record for ID: \" + deleteId);\n\n LocationData locationData = new LocationData();\n Location location = new Location();\n Set<Location> userLocations = location.getLocations((User) userData.crud.getById(deleteId));\n\n assertEquals(0, userLocations.size());\n\n }",
"@Test\n @ExpectedDatabase(value = \"classpath:data.xml\", assertionMode = DatabaseAssertionMode.NON_STRICT)\n public void delete_WithUnauthorisedUser_Test_OK() throws Exception {\n mockMvc.perform(delete(\"/client-journal-resource/clients/{id}\", 1))\n .andExpect(status().is(401));\n }",
"@Override\r\n\tpublic void adminSelectDelete() {\n\t\t\r\n\t}",
"@Test\n public void removeEmployee() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n //removing dummy data to avoid clutter in database\n assertTrue(employeeResource.removeEmployee(\"dummy\"));\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }",
"@Test\n\t@Transactional(value = TransactionMode.ROLLBACK)\n\t@UsingDataSet({ \"persona.json\", \"registro.json\", \"administrador.json\", \"cuenta.json\", \"empleado.json\",\n\t\t\t\"familia.json\", \"genero.json\", \"recolector.json\", \"planta.json\" })\n\tpublic void eliminarEmpladoTest() {\n\t\tEmpleado ad = entityManager.find(Empleado.class, \"125\");\n\t\tAssert.assertNotNull(ad);\n\t\tentityManager.remove(ad);\n\t\tAssert.assertNull(\"No se ha eliminado\", entityManager.find(Administrador.class, \"125\"));\n\t}",
"@Test\n\tpublic void adminIDTest() {\n\t\tString string1 = \"admin\";\n\t\tassertTrue(AdminValidator.isValidAdmin(string1));\n\n\t\tString string2 = \"username\";\n\t\tassertTrue(AdminValidator.isValidAdmin(string2));\n\n\t\tString string3 = \"\";\n\t\tassertFalse(AdminValidator.isValidAdmin(string3));\n\n\n\t\tString string4 = \"admin%\";\n\t\tassertFalse(AdminValidator.isValidAdmin(string4));\n\t}",
"@Test(priority = 28)\r\n\tpublic void removalUserLinkCheck() {\r\n\tAssert.assertEquals(mainPage.removalUserLinkCheck(), true);\r\n\t}",
"@Test\n\tpublic void testAdminDisable() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\tAccount acc2 = new Account(00001, \"temp\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\t\taccounts.add(acc2);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(07, \"temp\", 00001, 0, \"A\"));\n\t\ttransactions.add(2, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Account Disabled\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to disable account as admin\", testResult);\n\t}",
"@DeleteMapping(\"/\")\n\tpublic ResponseEntity<Object> deleteAdministrator(HttpServletRequest request){\n\t\tAdministrator admin = service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession()));\n\t\tservice.delete(admin);\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t}",
"@Test\n\tpublic void testLogoutAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.logoutAdminAccount(USERNAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\n\t\tassertNotNull(user);\n\t\tassertEquals(USERNAME1, user.getUsername());\n\t\tassertEquals(PASSWORD1, user.getPassword());\n\t\tassertEquals(NAME1, user.getName());\n\t}",
"public void testValidateFieldsDelete() throws Exception {\n this.mSession = new PortalSessionTestFacade(new InstanceSelectorPlusDirectActionsTemplate());\n\n this.mSession.startFlow(\"start\");\n assertNotNull(this.mSession.getCurrentPage());\n\n // emtpy required field Peroon.Naam and press delete button\n this.mSession.handleButtonEvent(\"delete\", new RequestTemplate(\"Persoon.Naam\", \"\"));\n assertNotNull(this.mSession.getCurrentPage());\n\n assertEquals(\"persoon must be deleted\", 2,\n this.mSession.getProfile().getAllInstancesForEntity(\"Persoon\", true).length);\n\n }",
"@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"pop.ion@gmail.com\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }",
"@Test\n public void testRemove() {\n System.out.println(\"remove\");\n Repositorio repo = new RepositorioImpl();\n Persona persona = new Persona();\n persona.setNombre(\"Ismael\");\n persona.setApellido(\"González\");\n persona.setNumeroDocumento(\"4475199\");\n repo.crear(persona);\n \n Persona personaAEliminar = (Persona) repo.buscar(persona.getId());\n assertNotNull(personaAEliminar);\n \n //eliminacion\n repo.eliminar(personaAEliminar);\n Persona personaEliminada = (Persona) repo.buscar(persona.getId());\n assertNull(personaEliminada);\n }",
"@Test\n public void testDeleteOperationFromDataBaseAsUser(){\n loginAsUser();\n\n vinyardApp.navigationOperationsClick();\n vinyardApp.deleteOperationFromDataBase();\n Boolean isPresent = driver.findElements(By.id(\"opdelete3\")).size()>0;\n Boolean expected = false;\n assertEquals(expected, isPresent);\n }",
"public void removeAdminOnIndividualFromSystemUser(Individual i, SystemUser user);",
"@Test\n public void testExclui() {\n System.out.println(\"exclui\");\n Object obj = null;\n AdministradorDAO instance = new AdministradorDAO();\n instance.exclui(obj);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void deleteRecipe_Deletes(){\n int returned = testDatabase.addRecipe(testRecipe);\n testDatabase.deleteRecipe(returned);\n assertEquals(\"deleteRecipe - Deletes From Database\", null, testDatabase.getRecipe(returned));\n }",
"@Test\n public void testExposesDelete() throws Exception {\n List<Link> customers = findCustomersLinks();\n assertThat(\"Customers exist to work with\",\n customers.size(),\n greaterThan(0));\n\n Link customer = customers.get(customers.size() - 1);\n\n mockMvc\n .perform(delete(customer.getHref()))\n .andExpect(status().isNoContent());\n\n mockMvc\n .perform(get(customer.getHref()))\n .andExpect(status().isNotFound());\n }",
"@Test\n void deleteList() {\n }",
"@Test\n public void getAdminsTest() throws ApiException {\n String scope = null;\n AdminResponse response = api.getAdmins(scope);\n\n // TODO: test validations\n }",
"@Test\n public void testMenuFactoryRemove() {\n Menu menuController = menuFactory.getMenu();\n menuController.addMenuItem(MENU_NAME, MENU_PRICE, MENU_TYPE, MENU_DESCRIPTION);\n menuController.removeMenuItem(1);\n assertEquals(0, menuController.getMenu().size());\n }",
"private void deleteTodoMenu(User u) {\n\t\t\n\t}",
"@Test\n\tpublic void testLogoutAdminAccountWithNonExistingUser() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString username = \"Catherine\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.logoutAdminAccount(username);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"The user cannot be found.\", error);\n\t}"
] | [
"0.7446809",
"0.73201543",
"0.7276163",
"0.7010901",
"0.6838662",
"0.67228353",
"0.6629324",
"0.65626186",
"0.65359235",
"0.6535195",
"0.6520973",
"0.6492383",
"0.6487834",
"0.6476434",
"0.64154005",
"0.6387167",
"0.6382858",
"0.6344385",
"0.6340712",
"0.6335072",
"0.6325692",
"0.63166463",
"0.6313929",
"0.6287327",
"0.628627",
"0.62677646",
"0.622486",
"0.6218529",
"0.6189681",
"0.6171549",
"0.6164482",
"0.61482763",
"0.6117667",
"0.6099982",
"0.60958755",
"0.6077764",
"0.6073984",
"0.60652393",
"0.60629815",
"0.6047265",
"0.6022192",
"0.5997935",
"0.59951603",
"0.5994933",
"0.5993653",
"0.5992558",
"0.5989675",
"0.5982005",
"0.5976177",
"0.5972535",
"0.5971937",
"0.5966983",
"0.5963131",
"0.59221846",
"0.59221846",
"0.59133804",
"0.5913251",
"0.5913182",
"0.5906952",
"0.59043527",
"0.5897004",
"0.5893301",
"0.58747035",
"0.58744144",
"0.58728856",
"0.5866323",
"0.5865075",
"0.5848625",
"0.5844569",
"0.5844552",
"0.58361673",
"0.5834789",
"0.58257616",
"0.5822981",
"0.5818363",
"0.5809246",
"0.5807858",
"0.5806584",
"0.5798783",
"0.57822555",
"0.57760125",
"0.57750094",
"0.57590735",
"0.574212",
"0.5737891",
"0.57351047",
"0.57335365",
"0.5724452",
"0.5724346",
"0.5720309",
"0.5714958",
"0.5714103",
"0.57042414",
"0.569672",
"0.5687281",
"0.5686464",
"0.5680546",
"0.5678043",
"0.5668566",
"0.56641114"
] | 0.7179059 | 3 |
Tests the retrieve of all admins | @Test
void retrieveAllTest() {
boolean check1 = false;
boolean check2 = false;
List<Admin> adminList = adminJpa.retrieveAll();
for (Admin anAdmin : adminList) {
String email = anAdmin.getEmail();
if (email.equals("m.rossi1@wlbadmin.it"))
check1 = true;
if (email.equals("v.verdi1@wlbadmin.it"))
check2 = true;
}
assertTrue(check1);
assertTrue(check2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void getAdminsTest() throws ApiException {\n String scope = null;\n AdminResponse response = api.getAdmins(scope);\n\n // TODO: test validations\n }",
"@Override\n\tpublic List<Admin> getAdmins() {\n\t\treturn ar.findAll();\n\t}",
"@Override\r\n\tpublic List<Admins> getQueryAdminAll() {\n\t\treturn adi.queryAdminAll();\r\n\t}",
"@Test\n\tpublic void testGetAdminAccountsByName() {\n\n\t\tList<AdminAccount> users = adminAccountService.getAdminAccountsByName(NAME1);\n\t\tassertNotNull(users);\n\t\tassertEquals(users.get(0).getUsername(), USERNAME1);\n\t}",
"@Override\n\tpublic List<UsuariosEntity> findAdmin(){\n\t\treturn (List<UsuariosEntity>) iUsuarios.findAdmin();\n\t}",
"@Test\n void getAllSuccess() {\n List<UserRoles> roles = genericDAO.getAll();\n assertEquals(3, roles.size());\n }",
"@GetMapping(\"/all\")\n public List<Admin> getAll(){\n return adminService.getAll();\n }",
"@Override\r\n\tpublic List<Admin> getAdminDetails() {\n\t\tList<Admin> admin =dao.getAdminDetails();\r\n return admin;\r\n\t}",
"public Administrator[] getAllAdmin()\n {\n return admin;\n }",
"@Test\n void getAllUserRolesSuccess() {\n List<UserRoles> userRoles = genericDao.getAll();\n //assert that you get back the right number of results assuming nothing alters the table\n assertEquals(6, userRoles.size());//\n log.info(\"get all userRoles test: all userRoles;\" + genericDao.getAll());\n }",
"public static List<Admin> getAdmin() {\r\n\t\t//conn = DBConnection.getConnection();\r\n\t\t\r\n\r\n\t\tAdmin admin = null;\r\n\t\tList<Admin> listOfproducts = new ArrayList<Admin>();\r\n\r\n\t\ttry {\r\n\t\t\tStatement statement = conn.createStatement();\r\n\t\t\tResultSet resultSet = statement.executeQuery(getAllQuery);\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\t//User user = new User();\r\n\t\t\t\tint adminId = resultSet.getInt(1);\r\n\t\t\t\tString adminname = resultSet.getString(2);\r\n String adminpassword = resultSet.getString(3);\r\n\r\n\t\t\t\tadmin.setAdminid(adminId);\r\n\t\t\t\tadmin.setAdminname(adminname);\r\n\t\t\t\tadmin.setAdminpassword(adminpassword);\r\n\r\n\t\t\t\tlistOfproducts.add(admin);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn listOfproducts;\r\n\r\n\t}",
"@WithMockUser(username = \"admin\", authorities = {\"ADMIN\"})\n @Test\n @DisplayName(\"Allowed get books requests for ADMIN role \")\n void getByAdmin() throws Exception {\n mockMvc.perform(get(\"/books\").with(csrf())).andExpect(status().isOk());\n }",
"List<UserDisplayDto> findeAdmins();",
"@GetMapping(\"/administrators\")\n\tpublic ResponseEntity<Object> getAllAdministrators(HttpServletRequest request){\n\t\tString email = SessionManager.getInstance().getSessionEmail(request.getSession());\n\t\tif(service.findByEmail(email) == null) {\n\t\t\tSessionManager.getInstance().delete(request.getSession());\n\t\t\treturn new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\t}else {\n\t\t\tList<Administrator> a = service.findAll();\n\t\t\tIterator<Administrator> i = a.iterator();\n\t\t\twhile (i.hasNext()) {\n\t\t\t Administrator adm = i.next();\n\t\t\t if(adm.getEmail().equals(email)) i.remove();\n\t\t\t}\n\t\t\tMappingJacksonValue mappedAdmin = new MappingJacksonValue(a);\n\t\t\tmappedAdmin.setFilters(new SimpleFilterProvider().addFilter(Administrator.FILTER, SimpleBeanPropertyFilter.filterOutAllExcept(\"id\", \"email\", \"name\")));\n\t\t\treturn new ResponseEntity<>(mappedAdmin, HttpStatus.OK);\n\t\t}\n\t}",
"@Test \n\t public void testRetrieveAll(){\n\t\t try{\n\t\t\t List<Users> users = new ArrayList<Users>();\n\t\t\t users.add( BaseData.getUsers());\n\t\t\t\tusers.add(BaseData.getDBUsers());\n\t\t\t\tQuery mockQuery = mock(Query.class);\n\t\t\t\twhen(entityManager.createQuery(Mockito.anyString())).thenReturn(mockQuery);\n\t\t\t\twhen(mockQuery.getResultList()).thenReturn(users);\n\t\t\t\tList<Users> loadedUsers = (List<Users>)userDao.retrieveAll();\n\t\t\t\tassertNotNull(loadedUsers);\n\t\t\t\tassertTrue(loadedUsers.size() > 1);\n\t\t }catch(DataAcessException se){\n\t\t\t logger.error(\"error at service layer while testing retrieveAll:.\",se);\n\t\t }\n\t }",
"@Override\n\tpublic List<Basicunit> selectAllforadmin() {\n\t\treturn basicDAOManager.selectAllforadmin();\n\t}",
"@Test\n void getAllClientIdWithAccess_gaeAdmin() {\n AuthenticatedRegistrarAccessor registrarAccessor =\n new AuthenticatedRegistrarAccessor(\n GAE_ADMIN, ADMIN_CLIENT_ID, SUPPORT_GROUP, lazyGroupsConnection);\n\n assertThat(registrarAccessor.getAllClientIdWithRoles())\n .containsExactly(\n CLIENT_ID_WITH_CONTACT, ADMIN,\n CLIENT_ID_WITH_CONTACT, OWNER,\n\n REAL_CLIENT_ID_WITHOUT_CONTACT, ADMIN,\n\n OTE_CLIENT_ID_WITHOUT_CONTACT, ADMIN,\n OTE_CLIENT_ID_WITHOUT_CONTACT, OWNER,\n\n ADMIN_CLIENT_ID, ADMIN,\n ADMIN_CLIENT_ID, OWNER);\n verifyNoInteractions(lazyGroupsConnection);\n }",
"@GetMapping(path=\"/getall\")\r\n\tpublic @ResponseBody Iterable<MyClass> getAllAdmins() {\n\t\treturn classRepository.findAll();\r\n\t}",
"@Test\n\tpublic void testGetAllAdminAccountsWithBusinessInformation() {\n\t\tBusinessInformation businessInformation = new BusinessInformation();\n\t\tbusinessInformation.setName(INFO_NAME);\n\t\tList<AdminAccount> users = adminAccountService.getAllAdminAccountsWithBusinessInformation(INFO_NAME);\n\t\tassertNotNull(users);\n\t\tassertEquals(users.get(0).getUsername(), USERNAME1);\n\t\tassertEquals(users.get(1).getUsername(), USERNAME2);\n\t}",
"public List<Usuario> getAdmins() {\n List<Usuario> lUsers = new ArrayList<>();\n try {\n\n if (em.isOpen()) {\n// lUsers = this.em.createNamedQuery(\"Usuario.findByTipoUsuario\")\n// .setParameter(\"tipoUsuario\", 1)\n// .setHint(QueryHints.CACHE_USAGE, CacheUsage.DoNotCheckCache)\n// .getResultList();\n\n Query query = this.em.createNamedQuery(\"Usuario.findByTipoUsuario\")\n .setParameter(\"tipoUsuario\", 1)\n .setHint(QueryHints.CACHE_USAGE, CacheUsage.DoNotCheckCache);\n\n lUsers = (List<Usuario>) query.getResultList();\n for (Usuario u : lUsers) {\n this.em.refresh(u);\n }\n }\n\n } catch (Exception e) {\n //e.printStackTrace();\n }\n\n return lUsers;\n }",
"@Test\n public void shouldListExpectedUsers() {\n OrgMembersListPage theMembersPage = open(OrgMembersListPage.class, organization.getName());\n theMembersPage.entriesContainer().shouldHave(text(\"Admin User (admin)\"));\n }",
"public Administrator[] getAllAdmin() {\n\t\ttry {\n\t\t\tConnection conn = DbConnections.getConnection(DbConnections.ConnectionType.POSTGRESQL);\n\t\t\tPreparedStatement ps = conn.prepareStatement(\"select * from public.administrator\");\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tList<Administrator> adminList = new ArrayList<Administrator>();\n\t\t\twhile (rs.next()) {\n\t\t\t\tint id = rs.getInt(\"id\");\n\t\t\t\tint idUser = rs.getInt(\"id_user\");\n\t\t\t\tString nume = rs.getString(\"nume\");\n\t\t\t\tString prenume = rs.getString(\"prenume\");\n\t\t\t\t\n\t\t\t\tadminList.add(new Administrator(id, idUser, nume, prenume));\n\t\t\t}\n\t\t\tDbConnections.closeConnection(conn);\n\t\t\treturn adminList.toArray(new Administrator[adminList.size()]);\n\t\t} catch (SQLException e) {\n\t\t\treturn null;\n\t\t}\n\n\t}",
"@Override\r\n\tpublic List<AdminAdministrator> selectAllAdList() {\n\t\treturn administratorDao.selectAll();\r\n\t}",
"public boolean populateAdmins(){\r\n\t\t\r\n\t\tboolean done=false;\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\tConnection conn=Database.getConnection();\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tif(conn != null){\r\n\t\t\t\t\t\r\n\t\t\t\t\tArrayList<Department> getAllDepts=Department.getAllDepartments();\r\n\t\t\t\t\t//Retrieve the current semester ID\r\n\t\t\t\t\tString SemesterSelect = \"Select * FROM names3 order by rand() LIMIT 50\";\r\n\t\t\t\t\tPreparedStatement statement = conn.prepareStatement(SemesterSelect);\r\n\t\t\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\twhile(rs.next()){\r\n\t\t\t\t\t\tint size=getAllDepts.size();\r\n\t\t\t\t\t\tint rand=(int)(Math.random()*size);\r\n\t\t\t\t\t\tDepartment d=getAllDepts.get(rand);\r\n\t\t\t\t\t\tString name = rs.getString(1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Adding new admin\");\r\n\t\t\t\t\t\t\t\tAdmin.addAdmin(name, d);\r\n\t\t\t\t\t\t\t\tSystem.out.println(d.getDepartmentName()+\"-------\"+name);\r\n\t\t\t\t\t\t\t\tThread.sleep(10);\r\n\t\t\t\t\t\t\t\tdone=true;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tcatch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t} catch (People.loginDetailsnotAdded e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcatch(SQLException e){\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} \r\n\t\t\t\t\r\n\t\t\tfinally{\r\n\t\t\t\t//Database.commitTransaction(conn);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfinally{\r\n\t\t}\r\n\t\t\r\n\t\treturn done;\r\n\t}",
"@Test\n public void testGetUsersForOrganization_SubMgr() throws Exception {\n\n // given\n container.login(customerUser.getKey(), ROLE_ORGANIZATION_ADMIN);\n List<VOUserDetails> oldList = idService.getUsersForOrganization();\n\n // execute\n container.login(supplierAdminUser.getKey(), ROLE_SUBSCRIPTION_MANAGER);\n List<VOUserDetails> newList = idService.getUsersForOrganization();\n\n assertEquals(oldList.size(), newList.size());\n }",
"@Test\n void getAllSuccess() {\n // get all the users\n // make sure there are the proper number of users\n List<User> users = genericDao.getAll();\n assertEquals(users.size(), 4);\n }",
"public static List<AdminDetails> list() {\n\t\treturn null;\r\n\t}",
"@Test\n public void test_getSupervisors_1() throws Exception {\n clearDB();\n\n List<User> res = instance.getSupervisors();\n\n assertEquals(\"'getSupervisors' should be correct.\", 0, res.size());\n }",
"@Test\n void testGetAllUsers() {\n List<User> users = userData.crud.getAll();\n int currentSize = users.size();\n assertEquals(currentSize, users.size());\n logger.info(\"Got all users\");\n }",
"@Test\n void getUserBy() {\n List<Role> users = (List<Role>) roleDAO.getEntityBy(\"roleName\", \"o\");\n assertEquals(1, users.size());\n }",
"@Test\r\n\tpublic void testtraerCertificadosAdmin() {\n\t\tList<DatosDemandaAdmin> lista = despachoService\r\n\t\t\t\t.traerCertificadosAdmin();\r\n\t\tAssert.assertNotNull(lista);\r\n\t\tAssert.assertTrue(lista.size() > 0);\r\n\t}",
"@Test\n\tvoid findAllAllFiltersAllRights() {\n\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(\"ing\", \"dig rha\", \"iRsT\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(2, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(2, tableItem.getRecordsFiltered());\n\n\t\t// Check the users\n\t\tfinal UserOrgVo user = tableItem.getData().get(0);\n\t\tAssertions.assertEquals(\"fdoe2\", user.getId());\n\t\tAssertions.assertEquals(\"jdoe5\", tableItem.getData().get(1).getId());\n\n\t\t// Check the other attributes\n\t\tAssertions.assertEquals(\"ing\", user.getCompany());\n\t\tAssertions.assertEquals(\"First2\", user.getFirstName());\n\t\tAssertions.assertEquals(\"Doe2\", user.getLastName());\n\t\tAssertions.assertEquals(\"first2.doe2@ing.fr\", user.getMails().get(0));\n\t\tAssertions.assertTrue(user.isCanWrite());\n\t\tfinal List<GroupVo> groups = new ArrayList<>(user.getGroups());\n\t\tAssertions.assertEquals(2, groups.size());\n\t\tAssertions.assertEquals(\"Biz Agency\", groups.get(0).getName());\n\t\tAssertions.assertEquals(\"DIG RHA\", groups.get(1).getName());\n\t}",
"@Test\n void getAllSuccess() {\n List<User> Users = dao.getAll();\n assertEquals(2, Users.size());\n }",
"@Test\n void getUserRolesByNameLikeSuccess() {\n List<UserRoles> userRoles = genericDao.getEntityByName(\"roleName\", \"all\");\n assertEquals(2, userRoles.size());\n List<UserRoles> users2 = genericDao.getEntityByName(\"roleName\", \"user\");\n assertEquals(2, users2.size());\n }",
"public List<User> getAdministrators() {\n \n QueryResult<User> admins = new AdminUsers(this, 1, \"asc\", null, 0, \n Integer.MAX_VALUE).executeQuery();\n \n return admins.getList();\n }",
"public ObservableList<User> getAdminsList() {\n adminsList.addAll(userManager.getAdminsList());\n return adminsList;\n }",
"private static void findAdministrators(Robot robot, JsonNode robotNode) {\n List<String> administrators = new ArrayList<String>();\n robot.getAdministrators().clear();\n for (JsonNode node : robotNode.get(\"administrators\")) {\n administrators.add(node.asText());\n }\n for (RosterEntry entry : robot.getRosters()) {\n if (administrators.contains(entry.getUser())) {\n robot.getAdministrators().add(entry);\n }\n }\n robot.setAdministratorIds(administrators);\n }",
"@Test\r\n public void testA0Get_0args() {\r\n System.out.println(\"get all\");\r\n \r\n UsuarioDao instance = new UsuarioDao();\r\n List<Usuario> expResult = new ArrayList<>();\r\n List<Usuario> result = instance.get();\r\n \r\n assertEquals(expResult, result);\r\n }",
"@Test\n\tpublic void testShowAllUsers() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/show-users\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200, response.getStatusCodeValue());\n\t}",
"@Test\n public void adminShouldSeeLecturerDetailsTest() throws Exception {\n Lecturer lecturer = uisUserRepository.save(new Lecturer(\"l12345\", \"lecturer\", \"l12345@uis.at\"));\n Subject maths = new Subject(\"maths\", new BigDecimal(6.0));\n Subject df = new Subject(\"digital forensics\", new BigDecimal(6.0));\n maths.addLecturers(lecturer);\n df.addLecturers(lecturer);\n subjectRepository.save(maths);\n subjectRepository.save(df);\n\n mockMvc.perform(\n get(\"/admin/users/\" + lecturer.getId())\n .with(user(\"admin\").roles(Role.ADMIN.name()))\n ).andExpect(\n model().attribute(\"user\", lecturer)\n ).andExpect(\n model().attribute(\"subjects\", asList(maths, df))\n );\n\n }",
"public List<Admin> findAdmin(String identifier) {\n\t\treturn null;\r\n\t}",
"@Test\n\t\tpublic void testGetAllOrganization() {\n\t\t\tfor (int i =0; i<10;i++){\n\t\t\t assertEquals(wraRestServer.listOrganization().get(i).getSiret(),organizationDao.getAll().get(i).getSiret());\n\t\t}\n\t\t\n\t\n\t}",
"@Override\r\n\tpublic List<ViewApplyUserAdmin> applyuseradminSelectAll() {\n\t\treturn applyseradminDao.applyuseradminSelectAll();\r\n\t}",
"@Override\n\tpublic int countAdmins() {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic List<Admin> getAdminDetails(String ID) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"from Admin\");\r\n\t\t\r\n\t\t\r\n\t\tList<Admin> adminList=query.list();\r\n\t\tif(adminList.isEmpty())\r\n\t\t\tSystem.out.println(\"List Passed\"+adminList.toString());\r\n\t\telse\r\n\t\t\tSystem.out.println(\"Not empty \"+adminList.get(0));\r\n\t\t\r\n\t\treturn adminList;\r\n\t}",
"@Override\n\tpublic Admin getAllAdminByid(int id) {\n\t\tString hql=\"from Admin a where a.id=?\";\n\t\tList<Admin> l=getHibernateTemplate().find(hql,id);\n\t\treturn l.isEmpty()||l==null ? null:l.get(0);\n\t}",
"@Test\n public void testGetUsersForOrganization_hideOnbehalfUsers()\n throws Exception {\n\n // given\n container.login(customerUser.getKey(), ROLE_ORGANIZATION_ADMIN);\n List<VOUserDetails> oldList = idService.getUsersForOrganization();\n\n // execute\n container.login(supplierAdminUser.getKey(), ROLE_SERVICE_MANAGER);\n idService.createOnBehalfUser(customer.getOrganizationId(), \"pwd123\");\n\n // assert\n container.login(customerUser.getKey(), ROLE_ORGANIZATION_ADMIN);\n List<VOUserDetails> newList = idService.getUsersForOrganization();\n assertEquals(oldList.size(), newList.size());\n }",
"@Test\n\tpublic void testGetRolenames_1()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\n\t\tSet<String> result = fixture.getRolenames();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"@Test\n public void testAdminCanSeeOtherUserApplication() throws Exception {\n Set<Id> appIds = ImmutableSet.of(Id.valueOf(5000));\n User user = User.builder()\n .withId(Id.valueOf(5000))\n .withApplicationIds(appIds)\n .withRole(Role.ADMIN)\n .build();\n UserAwareQueryContext context = new UserAwareQueryContext(ApplicationSources.defaults(), \n ActiveAnnotations.standard(),\n Optional.of(user));\n UserAwareQuery<Application> query = UserAwareQuery.singleQuery(Id.valueOf(6000), context);\n UserAwareQueryResult<Application> result = executor.execute(query);\n assertFalse(result.isListResult());\n assertEquals(result.getOnlyResource().getId(), Id.valueOf(6000));\n }",
"@Test\n\t// @Disabled\n\tvoid testViewAllCustomer() {\n\t\tCustomer customer1 = new Customer(1, \"tom\", \"son\", \"951771122\", \"tom@gmail.com\");\n\t\tCustomer customer2 = new Customer(2, \"jerry\", \"lee\", \"951998122\", \"jerry@gmail.com\");\n\t\tList<Customer> customerList = new ArrayList<>();\n\t\tcustomerList.add(customer1);\n\t\tcustomerList.add(customer2);\n\t\tMockito.when(custRep.findAll()).thenReturn(customerList);\n\t\tList<Customer> customer = custService.findAllCustomer();\n\t\tassertEquals(2, customer.size());\n\t}",
"@Test\n public void test_getAll_1() throws Exception {\n clearDB();\n\n List<User> res = instance.getAll();\n\n assertEquals(\"'getAll' should be correct.\", 0, res.size());\n }",
"public Collection eleicoesAdmin(){\n return this.eleicaoDB.eleicoesAdmin();\n }",
"@Test\n public void test_getSupervisors_2() throws Exception {\n User user1 = createUser(1, false);\n createUser(2, false);\n createUser(3, true);\n\n List<User> res = instance.getSupervisors();\n\n assertEquals(\"'getSupervisors' should be correct.\", 1, res.size());\n\n User entity1 = res.get(0);\n\n assertEquals(\"'getSupervisors' should be correct.\", user1.getUsername(), entity1.getUsername());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getDefaultTab(), entity1.getDefaultTab());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getNetworkId(), entity1.getNetworkId());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getRole().getId(), entity1.getRole().getId());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getFirstName(), entity1.getFirstName());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getLastName(), entity1.getLastName());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getEmail(), entity1.getEmail());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getTelephone(), entity1.getTelephone());\n assertEquals(\"'getSupervisors' should be correct.\", user1.getStatus().getId(), entity1.getStatus().getId());\n }",
"@Test\n void getByIdSuccess() {\n UserRoles retrievedRole = (UserRoles)genericDAO.getByID(1);\n assertEquals(\"administrator\", retrievedRole.getRoleName());\n assertEquals(1, retrievedRole.getUserRoleId());\n assertEquals(\"admin\", retrievedRole.getUserName());\n }",
"public LoadTestAdministrationsImpl getLoadTestAdministrations() {\n return this.loadTestAdministrations;\n }",
"boolean isAdmin();",
"@Test\n\tvoid findAllForMyCompany() {\n\t\tinitSpringSecurityContext(\"assist\");\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, null, newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(9, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(9, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(9, tableItem.getData().size());\n\n\t\t// Check the users\n\t\tAssertions.assertEquals(\"fdoe2\", tableItem.getData().get(0).getId());\n\t\tAssertions.assertTrue(tableItem.getData().get(0).isCanWrite());\n\n\t\t// Check the groups\n\t\tAssertions.assertEquals(0, tableItem.getData().get(0).getGroups().size());\n\t}",
"@Override\r\n\tpublic List<AdminUser> selectAll() {\n\t\treturn adminUserMapper.selectAll();\r\n\t}",
"@Test\n\tpublic void testGetAllUsers() throws Exception {\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/users\")\n\t\t\t\t.accept(APPLICATION_JSON)).andExpect(status().isOk())\n\t\t.andExpect(content().contentType(contentType));\n\t\t// Verifies If userService.getAllUsers() is invoked at least once\n\t\tMockito.verify(userService).getAllUsers();\n\t}",
"@Test\n\t@WithMockUser(username=\"admin\",roles={\"ADMIN\"})\n\tpublic void getAllEmployees_AuthorisedUser_ReturnsJsonOfEmployees() throws Exception\n\t{\n\t\tString result = this.mockMvc.perform(MockMvcRequestBuilders\n\t\t\t .get(\"/api/employees\")\n\t\t\t .contentType(MediaType.APPLICATION_JSON))\n\t\t\t\t .andDo(MockMvcResultHandlers.print())\n\t\t\t\t .andExpect(MockMvcResultMatchers.status().isOk())\n\t\t\t\t .andReturn()\n\t\t\t\t .getResponse()\n\t\t\t\t .getContentAsString();\n\t\t\n\t\t//Assert\n\t\tJSONObject json = new JSONObject(result);\t\n\t\t//the json returns in an object called \"_embedded\", which then has an array of accounts\n\t\tJSONObject embedded = (JSONObject) json.get(\"_embedded\");\n\t\tJSONArray employees = embedded.getJSONArray(\"employees\");\n\t\tassertTrue(employees.length() > 0);\n\t\t\n\t}",
"@Test\n\tvoid testAllUsersDataPresent() {\n\t\tassertNotNull(allUserList);\n\t\tassertTrue(allUserList.size() == 1000);\n\t}",
"@ManyToMany(mappedBy = \"administeredRooms\", cascade = CascadeType.ALL)\r\n\t@OrderBy(\"lastName\")\r\n\tpublic Set<User> getAdministrators() {\r\n\t\treturn administrators;\r\n\t}",
"@Test\n\tpublic void testGetRolenames_2()\n\t\tthrows Exception {\n\t\tSimpleAuthorizingAccount fixture = new SimpleAuthorizingAccount();\n\t\tfixture.setSimpleRoles(new HashSet());\n\n\t\tSet<String> result = fixture.getRolenames();\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}",
"List<Administrativo> findAll();",
"@Test\n @Transactional\n public void ManyToManyQuery() {\n SysRole role = roleDao.findOne(4l);\n role.getUsers().forEach(u-> System.out.println(u));\n }",
"private void checkAdminInDB(DB db) {\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tlong hashCode = (long) \"admin\".hashCode();\n\t\tif(!users.containsKey(hashCode))\n\t\t\tusers.put(hashCode, new Admin(\"admin\", \"admin\"));\n\t}",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_1_getAllDeptRoles() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n d_1.getCompany()+\n \"/departments/\"+\n d_1.getId().toString()+\n \"/roles?recursive=true\")\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.roles\",hasSize(3)));\n }",
"@Test\n\tvoid findAllNoWrite() {\n\t\tinitSpringSecurityContext(\"mlavoine\");\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(null, null, \"fdoe2\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(1, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(1, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(1, tableItem.getData().size());\n\n\t\t// Check the users\n\t\tAssertions.assertEquals(\"fdoe2\", tableItem.getData().get(0).getId());\n\t\tAssertions.assertFalse(tableItem.getData().get(0).isCanWrite());\n\n\t\t// Check the groups\n\t\tAssertions.assertEquals(1, tableItem.getData().get(0).getGroups().size());\n\t\tAssertions.assertEquals(\"Biz Agency\", tableItem.getData().get(0).getGroups().get(0).getName());\n\t\tAssertions.assertFalse(tableItem.getData().get(0).getGroups().get(0).isCanWrite());\n\t}",
"@Test\n\t\tpublic void testGetAllMedicalAct() {\n\t\t\tfor (int i =0; i<10;i++){\n\t\t\t assertEquals(wraRestServer.listMedicalAct().get(i).getId(),medicalActDao.getAll().get(i).getId());\n\t\t}\n\t\t\t\n\t}",
"@GET\n @Path(\"/admin\")\n public String isAdmin() {\n return ResponseUtil.SendSuccess(response, \"\\\"isAdmin\\\":\\\"\" + SessionUtil.isAdmin(request) + \"\\\"\");\n }",
"@Test\n void getByIdSuccess() {\n UserRoles retrievedUserRole = (UserRoles) genericDao.getById(2);\n assertEquals(\"all\", retrievedUserRole.getRoleName());\n assertEquals(\"fhensen\", retrievedUserRole.getUserName());\n\n assertNotNull(retrievedUserRole);\n }",
"public static ArrayList<Admin> getLockedAdmin() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_LOCKED_ADMINS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Admin> adminBloccati = (ArrayList<Admin>) rpp.parameters[0];\n\t\treturn adminBloccati;\n\t}",
"@Test\r\n\tpublic final void testGetAllRooms() {\n\t\tList<Room> actualList = roomServices.getAllRooms();\r\n\t\t// get all data in JUnit test\r\n\r\n\t\tList<Room> expectedList = new ArrayList<Room>();\r\n\t\texpectedList.addAll(params());\r\n\t\t\r\n\t\tSystem.out.println(\"expectedList\");\r\n\t\tSystem.out.println(expectedList);\r\n\t\tSystem.out.println(\"actualList\");\r\n\t\tSystem.out.println(actualList);\r\n\t\t\r\n\t\t// see if JUnit test value is in room list\r\n\t\tassertTrue(actualList.contains(expected));\r\n\t}",
"protected void listTenants() {\n if (!MULTITENANT_FEATURE_ENABLED.contains(dbType)) {\n return;\n }\n Db2Adapter adapter = new Db2Adapter(connectionPool);\n try (ITransaction tx = TransactionFactory.openTransaction(connectionPool)) {\n try {\n GetTenantList rtListGetter = new GetTenantList(adminSchemaName);\n List<TenantInfo> tenants = adapter.runStatement(rtListGetter);\n \n System.out.println(TenantInfo.getHeader());\n tenants.forEach(t -> System.out.println(t.toString()));\n } catch (DataAccessException x) {\n // Something went wrong, so mark the transaction as failed\n tx.setRollbackOnly();\n throw x;\n }\n }\n }",
"public boolean checkAdmin()\r\n\t{\r\n\t\tboolean admin=false;\r\n\t\tint length=user_records.size();\r\n\t\tfor(int i=0;i<length;i++)\r\n\t\t{\r\n\t\t\tif(((User)user_records.get(i)).get_username().equals(\"administrator\"))\r\n\t\t\t{\r\n\t\t\t\tadmin=true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn admin;\r\n\t}",
"@Test\n public void employeeRetrieveTest() {\n Mockito.when(this.rolService.getRoles()).thenReturn(Arrays.asList(new Rol()));\n Assert.assertNotNull(this.rolController.retrieve(new HttpHeaders()));\n }",
"@Test\n void testGetRegistrarForUser_inContacts_isAdmin() throws Exception {\n expectGetRegistrarSuccess(\n CLIENT_ID_WITH_CONTACT,\n GAE_ADMIN,\n \"admin admin@gmail.com has [OWNER, ADMIN] access to registrar TheRegistrar\");\n verifyNoInteractions(lazyGroupsConnection);\n }",
"public boolean isAdmin();",
"@Test\n @IfProfileValue(name=\"dept-test-group\", values={\"all\",\"role\"})\n public void _4_2_6_findMultiRolesByName() throws Exception {\n this.mockMvc.perform(get(\"/api/v1.0/companies/\"+\n c_1.getId()+\"/departments/**/roles?name=manager\")\n .header(AUTHORIZATION, ACCESS_TOKEN))\n .andDo(print())\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$._embedded.roles\",hasSize(2)));\n }",
"@Override\n\tpublic List<Administrateur> getList() {\n\t\topenCurrentSession();\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Administrateur> list = (List<Administrateur>)getCurrentSession().createQuery(\"FROM Administrateur\").list();\n\t\tcloseCurrentSession();\n\t\treturn list;\n\t}",
"public Admin getAdminByLogin(String login);",
"@GetMapping(\"/\")\n\tpublic ResponseEntity<Object> getAdministrator(HttpServletRequest request){\n\t\tAdministrator admin = service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession()));\n\t\tif(admin == null) return new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\tMappingJacksonValue mappedAdmin = new MappingJacksonValue(admin);\n\t\tmappedAdmin.setFilters(new SimpleFilterProvider().addFilter(Administrator.FILTER, SimpleBeanPropertyFilter.filterOutAllExcept(\"email\", \"name\")));\n\t\treturn new ResponseEntity<>(mappedAdmin, HttpStatus.OK);\n\t}",
"@Test\n public void testGetPharmaciesByAdministrator() throws Exception {\n System.out.println(\"getPharmaciesByAdministrator\");\n \n //Logout test\n ManagePharmaciesController instance = new ManagePharmaciesController();\n// PharmaDeliveriesApp.getInstance().doLogout();\n// LinkedList<PharmacyDTO> exp = null;\n// LinkedList<PharmacyDTO> result = instance.getPharmaciesByAdministrator();\n// Assertions.assertEquals(exp, result);\n// PharmaDeliveriesApp.getInstance().doLogin(\"adminteste@isep.ipp.pt\", \"adminteste\");\n \n //Value test\n PharmacyDB db = Mockito.mock(PharmacyDB.class);\n PharmaDeliveriesApp.getInstance().getPharmacyService().setPharmacyDB(db);\n \n LinkedList<Pharmacy> inputsDB = new LinkedList<>();\n inputsDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"testeA\")));\n inputsDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"testeB\")));\n \n LinkedList<Pharmacy> expResultDB = new LinkedList<>();\n expResultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"testeA\")));\n expResultDB.add(convertPharmacyDTO(getPharmacyDTOTest(\"testeB\")));\n \n LinkedList<Pharmacy> inputsCobtroller = new LinkedList<>();\n inputsCobtroller.add(convertPharmacyDTO(getPharmacyDTOTest(\"testeA\")));\n inputsCobtroller.add(convertPharmacyDTO(getPharmacyDTOTest(\"testeB\")));\n \n LinkedList<PharmacyDTO> expResult = new LinkedList<>();\n expResult.add(getPharmacyDTOTest(\"testeA\"));\n expResult.add(getPharmacyDTOTest(\"testeB\"));\n \n when(db.getPharmaciesByAdministrator(any(User.class))).thenReturn(expResultDB);\n Assertions.assertEquals(instance.getPharmaciesByAdministrator().size(), expResult.size());\n \n when(db.getPharmaciesByAdministrator(any(User.class))).thenReturn(null);\n Assertions.assertNull(instance.getPharmaciesByAdministrator());\n \n }",
"@WithMockUser(username = \"admin\", authorities = { \"ROLE_ADMIN\" })\n\t@Test\n\tvoid authenticatedCallShouldBeOkForAdminAuthorizationOnWidgetWithLimit() throws Exception {\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tthis.mockMvc.perform(post(\"/api/widgets\").contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t\t.content(new ObjectMapper().writeValueAsString(new Widget(null, \"test widget\", \"test source\")))\n\t\t\t\t\t)\n\t\t\t.andExpect(status().isCreated());\n\t\t}\n\t\t//Limit test\n\t\tthis.mockMvc.perform(post(\"/api/widgets\").contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.content(new ObjectMapper().writeValueAsString(new Widget(null, \"test widget\", \"test source\")))\n\t\t\t\t)\n\t\t.andExpect(status().isForbidden());\n\t}",
"@Test\n\tpublic void adminLogin()\n\t{\n\t\tAdminFacade af = admin.login(\"admin\", \"1234\", ClientType.ADMIN);\n\t\tAssert.assertNotNull(af);\n\t}",
"public Admin queryOneAdmin(Admin admin);",
"public List<UserTO> checkAdminAcsi(String allRoleIds) throws Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tList<UserTO> allUsers = new ArrayList<UserTO>();\r\n\t\tUserTO user = null;\r\n\t\ttry {\r\n\t\t\tconn = driver.connect(DATA_SOURCE, null);\r\n\r\n\t\t\tString query = \" SELECT rle.role_name, urle.userid FROM role rle, user_role urle \" + \"WHERE urle.roleid = rle.roleID AND rle.role_name = 'ROLE_ADMIN' \" + \"AND urle.userid in ( \"\r\n\t\t\t\t\t+ allRoleIds + \" )\";\r\n\t\t\tpstmt = conn.prepareCall(query);\r\n\t\t\t// pstmt.setString(1, allRoleIds);\r\n\t\t\t// logger.info(query);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tuser = new UserTO();\r\n\t\t\t\tString roleName = rs.getString(1);\r\n\t\t\t\tif (\"ROLE_ADMIN\".equals(roleName)) {\r\n\t\t\t\t\tuser.setAdminUser(Boolean.TRUE);\r\n\t\t\t\t}\r\n\t\t\t\tuser.setUserId(rs.getString(2));\r\n\t\t\t\tallUsers.add(user);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\trs.close();\r\n\t\t\t} catch (Exception e2) {\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tpstmt.close();\r\n\t\t\t} catch (Exception e2) {\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tconn.close();\r\n\t\t\t} catch (Exception e2) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tlogger.info(\"Returning \" + allUsers.size() + \" Admins\");\r\n\t\treturn allUsers;\r\n\t}",
"java.lang.String getAdmin();",
"public void setAdmins(ArrayList<Integer> adminIDs) {\n this.adminIDs = adminIDs;\n }",
"void doGetAdminInfo() {\n\t\tlog.config(\"doGetAdminInfo()...\");\n\t\tthis.rpcService.getAdminInfo(new AsyncCallback<DtoAdminInfo>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tString errorMessage = \"Error when getting admin info! : \" + caught.getMessage();\n\t\t\t\tlog.severe(errorMessage);\n\t\t\t\tgetAdminPanel().setActionResult(errorMessage, ResultType.error);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(DtoAdminInfo adminInfo) {\n\t\t\t\tlog.config(\"getAdminInfo() on success - \" + adminInfo.getListLogFilenames().size() + \" logs filenames.\");\n\t\t\t\tgetAdminPanel().setAdminInfo(adminInfo);\n\t\t\t}\n\t\t});\n\t}",
"List<Admin> selectByExample(AdminExample example);",
"@Test\n\tpublic void test_get_all_success() {\n\t\tResponseEntity<User[]> response = template.getForEntity(REST_SERVICE_URI + ACCESS_TOKEN + token, User[].class);\n\t\tassertThat(response.getStatusCode(), is(HttpStatus.OK));\n\t\tvalidateCORSHttpHeaders(response.getHeaders());\n\t}",
"protected final void runAsAdmin() {\n authenticationTestingUtil.grantAdminAuthority( this.applicationContext );\n }",
"@Test\r\n public void testFGetFreelancers() {\r\n System.out.println(\"getFreelancers\");\r\n \r\n UsuarioDao instance = new UsuarioDao();\r\n List<Usuario> expResult = new ArrayList<>();\r\n List<Usuario> result = instance.getFreelancers();\r\n \r\n assertEquals(expResult, result);\r\n }",
"@Test\n void testGetRegistrarForUser_notInContacts_isAdmin_notReal() throws Exception {\n expectGetRegistrarSuccess(\n OTE_CLIENT_ID_WITHOUT_CONTACT,\n GAE_ADMIN,\n \"admin admin@gmail.com has [OWNER, ADMIN] access to registrar OteRegistrar.\");\n verifyNoInteractions(lazyGroupsConnection);\n }",
"@Transactional(readOnly = true) \n public Page<Administrator> findAll(Pageable pageable) {\n log.debug(\"Request to get all Administrators\");\n Page<Administrator> result = administratorRepository.findAll(pageable); \n return result;\n }",
"@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> roles = genericDAO.getByPropertyLike(\"userName\", \"a\");\n for(UserRoles role : roles) {\n log.info(role.getUserName());\n }\n assertEquals(2, roles.size());\n }",
"@Test\n public void adminShouldSeeStudentDetailsTest() throws Exception {\n StudyPlan studyPlan1 = studyPlanRepository.save(new StudyPlan(\"SE\", new EctsDistribution(new BigDecimal(60), new BigDecimal(30), new BigDecimal(30))));\n StudyPlan studyPlan2 = studyPlanRepository.save(new StudyPlan(\"VC\", new EctsDistribution(new BigDecimal(60), new BigDecimal(30), new BigDecimal(30))));\n studyPlanRepository.save(new StudyPlan(\"CI\", new EctsDistribution(new BigDecimal(60), new BigDecimal(30), new BigDecimal(30))));\n\n // given a student, registered to studyplan1 and studyplan2\n Semester semester = semesterRepository.save(new Semester(2016, SemesterType.WinterSemester));\n Student student = uisUserRepository.save(new Student(\"s12345\", \"student\", \"s12345@uis.at\"));\n StudyPlanRegistration studyPlanRegistration1 = new StudyPlanRegistration(studyPlan1, semester);\n StudyPlanRegistration studyPlanRegistration2 = new StudyPlanRegistration(studyPlan2, semester);\n student.addStudyplans(studyPlanRegistration1, studyPlanRegistration2);\n\n mockMvc.perform(\n get(\"/admin/users/\" + student.getId())\n .with(user(\"admin\").roles(Role.ADMIN.name()))\n ).andExpect(\n model().attribute(\"user\", student)\n ).andExpect(\n model().attribute(\"studyplans\", asList(studyPlanRegistration1, studyPlanRegistration2))\n );\n\n }",
"private void buildAdmin()\n {\n User admin = userServiceImpl.getUserByUsername(adminUsername);\n try\n {\n //If the application is started for the first time (e.g., the admin is not in the DB)\n if(admin==null)\n { \n \t registerUserService.save(adminUsername,password,Role.Admin); \n }\n //if the application has previously been started (e.g., the admin is already present in the DB)\n else\n {\n \t //Do nothing!! \n }\n \n //Always add this retails when started the application.\n \n \tCountry mexico = new Country();\n \tmexico.setCountryId(1);\n \tmexico.setCountryName(\"México\");\n\t\t\tmexico.setCurrency(\"Peso MXN\");\n\t\t\tmexico.setNickname(\"MX\");\n\t\t\taddCountryService.saveCountry(mexico);\t\n\t\t\t\n\t\t\t\n\t\t\tCountry usa = new Country();\n\t\t\tusa.setCountryId(2);\n\t\t\tusa.setCountryName(\"United States\");\n\t\t\tusa.setCurrency(\"USD\");\n\t\t\tusa.setNickname(\"US\");\n\t\t\taddCountryService.saveCountry(usa);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail1 = new Retail();\n\t\t\tretail1.setRetailId(1);\n\t\t\tretail1.setRetailName(\"Amazon\");\n\t\t\tretail1.setCrawlerName(\"Amazon\");\n\t\t\tretail1.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail1);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail2 = new Retail();\n\t\t\tretail2.setRetailId(2);\n\t\t\tretail2.setRetailName(\"Arome\");\n\t\t\tretail2.setCrawlerName(\"Arome\");\n\t\t\tretail2.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail2);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail3 = new Retail();\n\t\t\tretail3.setRetailId(3);\n\t\t\tretail3.setRetailName(\"Chedraui\");\n\t\t\tretail3.setCrawlerName(\"Chedraui\");\n\t\t\tretail3.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail3);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail4 = new Retail();\n\t\t\tretail4.setRetailId(4);\n\t\t\tretail4.setRetailName(\"Laeuropea\");\n\t\t\tretail4.setCrawlerName(\"Laeuropea\");\n\t\t\tretail4.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail4);\n\t\t\t\n\t\t\tRetail retail5 = new Retail();\n\t\t\tretail5.setRetailId(5);\n\t\t\tretail5.setRetailName(\"Linio\");\n\t\t\tretail5.setCrawlerName(\"Linio\");\n\t\t\tretail5.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail5);\n\t\t\t\n\t\t\tRetail retail6 = new Retail();\n\t\t\tretail6.setRetailId(6);\n\t\t\tretail6.setRetailName(\"Liverpool\");\n\t\t\tretail6.setCrawlerName(\"Liverpool\");\n\t\t\tretail6.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail6);\n\t\t\t\n\t\t\tRetail retail7 = new Retail();\n\t\t\tretail7.setRetailId(7);\n\t\t\tretail7.setRetailName(\"MercadoLibre\");\n\t\t\tretail7.setCrawlerName(\"MercadoLibre\");\n\t\t\tretail7.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail7);\n\t\t\t\n\t\t\tRetail retail8 = new Retail();\n\t\t\tretail8.setRetailId(8);\n\t\t\tretail8.setRetailName(\"NutritionDepot\");\n\t\t\tretail8.setCrawlerName(\"NutritionDepot\");\n\t\t\tretail8.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail8);\n\t\t\t\n\t\t\tRetail retail9 = new Retail();\n\t\t\tretail9.setRetailId(9);\n\t\t\tretail9.setRetailName(\"Osom\");\n\t\t\tretail9.setCrawlerName(\"Osom\");\n\t\t\tretail9.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail9);\n\t\t\t\n\t\t\tRetail retail10 = new Retail();\n\t\t\tretail10.setRetailId(10);\n\t\t\tretail10.setRetailName(\"PerfumesMexico\");\n\t\t\tretail10.setCrawlerName(\"PerfumesMexico\");\n\t\t\tretail10.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail10);\n\t\t\t\n\t\t\tRetail retail11 = new Retail();\n\t\t\tretail11.setRetailId(11);\n\t\t\tretail11.setRetailName(\"PerfumesOnline\");\n\t\t\tretail11.setCrawlerName(\"PerfumesOnline\");\n\t\t\tretail11.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail11);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail12 = new Retail();\n\t\t\tretail12.setRetailId(12);\n\t\t\tretail12.setRetailName(\"Prissa\");\n\t\t\tretail12.setCrawlerName(\"Prissa\");\n\t\t\tretail12.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail12);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tRetail retail13 = new Retail();\n\t\t\tretail13.setRetailId(13);\n\t\t\tretail13.setRetailName(\"Sanborns\");\n\t\t\tretail13.setCrawlerName(\"Sanborns\");\n\t\t\tretail13.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail13);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail14 = new Retail();\n\t\t\tretail14.setRetailId(14);\n\t\t\tretail14.setRetailName(\"Soriana\");\n\t\t\tretail14.setCrawlerName(\"Soriana\");\n\t\t\tretail14.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail14);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail15 = new Retail();\n\t\t\tretail15.setRetailId(15);\n\t\t\tretail15.setRetailName(\"SuperWalmart\");\n\t\t\tretail15.setCrawlerName(\"SuperWalmart\");\n\t\t\tretail15.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail15);\n\t\t\t\n\t\t\t\n\t\t\tRetail retail16 = new Retail();\n\t\t\tretail16.setRetailId(16);\n\t\t\tretail16.setRetailName(\"SuplementosFitness\");\n\t\t\tretail16.setCrawlerName(\"SuplementosFitness\");\n\t\t\tretail16.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail16);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tRetail retail17 = new Retail();\n\t\t\tretail17.setRetailId(17);\n\t\t\tretail17.setRetailName(\"Walmart\");\n\t\t\tretail17.setCrawlerName(\"Walmart\");\n\t\t\tretail17.setCountry(mexico);\t\t\n\t\t\taddRetailService.saveRetail(retail17);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n System.out.println(\"Errors occurred during initialization. System verification is required.\");\n }\n }",
"@External(readonly = true)\n\tpublic List<Address> get_admin(){\n\t\t\n\t\tif (DEBUG) {\n\t\t\tContext.println( Context.getOrigin().toString() + \" is getting admin addresses.\" + TAG);\n\t\t}\n\t\tAddress[] admin_list = new Address[this.admin_list.size()];\n\t\tfor(int i= 0; i< this.admin_list.size(); i++) {\n\t\t\tadmin_list[i] = this.admin_list.get(i);\n\t\t}\n\t\treturn List.of(admin_list);\n\t}"
] | [
"0.82454765",
"0.7027672",
"0.6884147",
"0.6730823",
"0.65765345",
"0.65366507",
"0.6518574",
"0.6471828",
"0.6465565",
"0.6451677",
"0.64258397",
"0.641563",
"0.6408329",
"0.6391977",
"0.6388417",
"0.6383294",
"0.6350321",
"0.6327062",
"0.63137466",
"0.62935513",
"0.62817943",
"0.627881",
"0.62556195",
"0.6227234",
"0.6204726",
"0.61911625",
"0.61846423",
"0.61765784",
"0.61740744",
"0.6153989",
"0.6120313",
"0.6070095",
"0.6020434",
"0.600223",
"0.5996105",
"0.59688056",
"0.59601617",
"0.59508574",
"0.59340096",
"0.59293014",
"0.59245706",
"0.59183544",
"0.59175533",
"0.5917333",
"0.5895404",
"0.5893356",
"0.5892536",
"0.58709174",
"0.5870389",
"0.5870013",
"0.58667636",
"0.5855116",
"0.5837484",
"0.58247495",
"0.5824149",
"0.5810565",
"0.5809768",
"0.5806434",
"0.5806394",
"0.5804744",
"0.58035433",
"0.5777532",
"0.5776814",
"0.5776174",
"0.5773778",
"0.5768122",
"0.57669127",
"0.576572",
"0.5764738",
"0.5764402",
"0.575777",
"0.57570976",
"0.5756666",
"0.57554585",
"0.57498217",
"0.57446593",
"0.57356536",
"0.5733101",
"0.57321584",
"0.5727405",
"0.5723414",
"0.5714756",
"0.57066363",
"0.5705907",
"0.5704021",
"0.5688374",
"0.56839275",
"0.56827635",
"0.5681792",
"0.5678988",
"0.5649253",
"0.5645594",
"0.5642755",
"0.5631799",
"0.56292737",
"0.56290686",
"0.5618625",
"0.56018656",
"0.56009465",
"0.5596557"
] | 0.6851139 | 3 |
Tests the retrieve of an admin using his email and password | @Test
void retrieveByEmailPasswordTest() {
Admin retrieved = adminJpa.retrieveByEmailPassword("m.rossi1@wlbadmin.it", "Ciao1234.");
assertEquals("m.rossi1@wlbadmin.it", retrieved.getEmail());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic AdminDetails checkAdmin(String email, String password) {\n\t\tfor (AdminDetails checkAdmin : Repository.ADMIN_DETAILS) {\n\t\t\tif ((checkAdmin.getEmailId().equalsIgnoreCase(email)) && (checkAdmin.getPassword().equals(password))) {\n\t\t\t\treturn checkAdmin;\n\t\t\t}\n\t\t}\n\t\tthrow new AirlineException(\"Invalid Credentials\");\n\t}",
"@Test\n\tpublic void adminLogin()\n\t{\n\t\tAdminFacade af = admin.login(\"admin\", \"1234\", ClientType.ADMIN);\n\t\tAssert.assertNotNull(af);\n\t}",
"@Test\n public void t01_buscaAdmin() throws Exception {\n Usuario admin;\n admin = usuarioServico.login(\"administrador\", \".Ae12345\");\n assertNotNull(admin);\n }",
"public Admin doRetrieveAdmin(String email, String password) {\n try {\n PreparedStatement ps = conn.prepareStatement(\" SELECT * FROM user \"\n + \"WHERE TRIM(LOWER(email)) = TRIM(?) AND TRIM(password) = TRIM(?) AND user_type = 2\");\n ps.setString(1, email);\n ps.setString(2, password);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n Admin a = new Admin();\n a.setEmail(rs.getString(1));\n a.setName(rs.getString(2));\n a.setSurname(rs.getString(3));\n a.setSex(rs.getString(\"sex\").charAt(0));\n a.setPassword(rs.getString(5));\n a.setUserType(rs.getInt(6));\n return a;\n }\n return null;\n } catch (SQLException e) {\n System.out.println(\"doRetrieveAdmin: error while executing the query\\n\" + e);\n throw new RuntimeException(e);\n }\n }",
"public String adminlogin() {\n\t\tfactory = Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME);\n\t\tEntityManager em = factory.createEntityManager();\n\t\t//Query to select user account where email and password entered by the user\n\t\tQuery q = em\n\t\t\t\t.createQuery(\"SELECT u FROM AdminAccount u WHERE u.email = :email AND u.password = :pass\");\n\t\tq.setParameter(\"email\", email);\n\t\tq.setParameter(\"pass\", password);\n\t\ttry {\n\t\t\tAdminAccount user = (AdminAccount) q.getSingleResult();\n\t\t\tif (email.equalsIgnoreCase(user.getEmail())\n\t\t\t\t\t&& password.equals(user.getPassword())) {\t//If passwords match,\n\t\t\t\n\t\t\t\t HttpSession session = Util.getSession();\t//create session\n\t\t session.setAttribute(\"email\", email);\n\t\t\n\t\t\t\treturn \"success\";\n\t\t\t}\n\t\t\taddMessage(new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"Invalid credentials entered!\", null));\n\t\t\treturn \"failure\";\n\n\t\t} catch (Exception e) {\n\t\t\taddMessage(new FacesMessage(FacesMessage.SEVERITY_ERROR,\n\t\t\t\t\t\"System error occured. Contact system admin!\", null));\n\t\t\treturn \"systemError\";\n\t\t}\n\t}",
"@Test\n\tpublic void adminLogin2()\n\t{\n\t\tAdminFacade af = admin.login(\"admin\", \"4321\", ClientType.ADMIN);\n\t\tAssert.assertNull(af);\n\t}",
"@Test\n\tpublic void checkValidLoginAdmin() {\n\t\ttest = report.createTest(\"CheckValidLoginAdmin\");\n\t\t\n\t\tadminhomepage = loginpage.successfullLoginAdmin(UserContainer.getAdmin());\n\t\ttest.log(Status.INFO, \"Signed in\");\n\t\t\n\t\tAssert.assertEquals(adminhomepage.getUserNameText(), UserContainer.getAdmin().getLogin());\n\t\ttest.log(Status.PASS, \"Checked if the right page is opened.\");\n\t\t\n\t\tloginpage = adminhomepage.clickLogout();\n\t\ttest.log(Status.INFO, \"Signed off\");\n\t}",
"@Override\r\n\tpublic boolean checkAdmin(String email) {\n\t\treturn adminDAO.checkAdmin(email);\r\n\t}",
"@Test\n\tpublic void testLoginAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.loginAdminAccount(USERNAME2, PASSWORD2);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\n\t\tassertNotNull(user);\t\t\t\n\t\tassertEquals(USERNAME2, user.getUsername());\n\t\tassertEquals(PASSWORD2, user.getPassword());\n\t\tassertEquals(NAME2, user.getName());\n\t}",
"private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }",
"public boolean adminAccess (String password) throws PasswordException;",
"@Test\n\tpublic void testAuthenticateAdminAccountSuccessfully() {\n\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.authenticateAdminAccount(USERNAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\t\tassertNotNull(user);\n\t\tassertNotEquals(0, user.getToken());\n\t}",
"public Admin getAdminByLogin(String login);",
"public Admin getAdminByEmailAndPassword(String email, String password){\r\n \r\n Admin admin=null;\r\n \r\n try {\r\n \r\n String query=\"from Admin where adminEmail =:e and adminPassword =:p\"; \r\n \r\n Session session=this.factory.openSession();\r\n Query q=session.createQuery(query);\r\n q.setParameter(\"e\", email);\r\n q.setParameter(\"p\", password);\r\n admin=(Admin)q.uniqueResult();\r\n session.close();\r\n \r\n } catch (HibernateException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n \r\n \r\n \r\n return admin;\r\n \r\n \r\n }",
"public Admin findLoginAdmin(String adminEmail, String adminPassword) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tran = session.beginTransaction();\n\n\t\tQuery<Admin> query = session.createQuery(\"from Admin where admin_email=:email and admin_passwd=:passwd\");\n\t\tquery.setParameter(\"email\", adminEmail);\n\t\tquery.setParameter(\"passwd\", adminPassword);\n\t\tAdmin admin = query.uniqueResult();\n\t\t// System.out.print(admin.getPerson().getRealName());\n\t\ttran.commit();\n\t\tsession.close();\n\t\treturn admin;\n\t}",
"@Override\r\n\tpublic boolean doLogin(Admin admin) {\n\t\tSession session=sessionFactory.openSession();\r\n\t\tQuery query=\r\n\t\t\t\tsession.createQuery(\"select o from Admin o where o.Email=:email and o.password=:password\");\r\n\t\tquery.setParameter(\"email\", admin.getEmail());\r\n\t\tquery.setParameter(\"password\", admin.getPassword());\r\n\t\tList<Admin> adminList=query.list();\r\n\t\t\r\n\t\tif(adminList.isEmpty())\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\treturn true;\r\n\t}",
"void legeAn(String login, String name, String password, boolean isAdmin, String email);",
"UserEntity getUserEntity(String username, String password, boolean isAdmin);",
"@Given ( \"I am logged into iTrust2 as an Admin\" )\r\n public void loginAsAdmin () {\r\n driver.get( baseUrl );\r\n final WebElement username = driver.findElement( By.name( \"username\" ) );\r\n username.clear();\r\n username.sendKeys( \"admin\" );\r\n final WebElement password = driver.findElement( By.name( \"password\" ) );\r\n password.clear();\r\n password.sendKeys( \"123456\" );\r\n final WebElement submit = driver.findElement( By.className( \"btn\" ) );\r\n submit.click();\r\n\r\n }",
"java.lang.String getAdmin();",
"@Override\n\tpublic Admin adminLogin(Admin admin) {\n\t\tString sql = \"select * from admin where adminName = ? and adminPwd = ?\";\n\t\tAdmin admin1 = (Admin) JDBCUtil.executeQueryOne(sql, new adminMapping(), admin.getAdminName(),admin.getAdminPwd());\n\t\tif(admin1 != null){\n\t\t\treturn admin1;\n\t\t}\n\t\treturn null;\n\t}",
"private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}",
"void expectMatchesAdmin(String adminSql, String user, String userSql) throws Exception;",
"@WithMockUser(username = \"admin\", authorities = {\"ADMIN\"})\n @Test\n @DisplayName(\"Allowed get books requests for ADMIN role \")\n void getByAdmin() throws Exception {\n mockMvc.perform(get(\"/books\").with(csrf())).andExpect(status().isOk());\n }",
"SandBox retrieveUserSandBox(Site site, AdminUser adminUser);",
"public Admin login(Admin admin) {\n\t\t\n\t\treturn adminDao.select(admin);\n\t}",
"public Admin findLoginAdmin(String AdminTelephone, String adminPassword) {\n\t\tSession session = sessionFactory.openSession();\n\t\tTransaction tran = session.beginTransaction();\n\n\t\tQuery<Admin> query = session.createQuery(\"from Admin where admin_phone=:phone and admin_pwd=:passwd\");\n\t\tquery.setParameter(\"phone\", AdminTelephone);\n\t\tquery.setParameter(\"passwd\", adminPassword);\n\t\tAdmin admin = query.uniqueResult();\n\t\t// System.out.print(admin.getPerson().getRealName());\n\t\ttran.commit();\n\t\tsession.close();\n\t\treturn admin;\n\t}",
"@Test\n public void getAdminsTest() throws ApiException {\n String scope = null;\n AdminResponse response = api.getAdmins(scope);\n\n // TODO: test validations\n }",
"@Test\n\tpublic void testLoginAdminAccountWithNonExistingUser() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString username = \"Catherine\";\n\t\tString password = \"password\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.loginAdminAccount(username, password);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"The user cannot be found. Please sign up if you do not have an account yet.\", error);\n\t}",
"public interface AdminDao {\n public Admin queryOneByNameAndPassword(Admin admin);\n}",
"boolean isAdmin();",
"@GET\n @Path(\"/admin\")\n public String isAdmin() {\n return ResponseUtil.SendSuccess(response, \"\\\"isAdmin\\\":\\\"\" + SessionUtil.isAdmin(request) + \"\\\"\");\n }",
"@Override\n\tpublic Admin getAdmin(String adminId) {\n\t\tif(!adminRepository.existsById(adminId))\n\t\t\tthrow new AdminNotFoundException(\"User with id \"+adminId+\" Not Found\");\n\t\treturn adminRepository.getOne(adminId);\n\t}",
"@Test\n\tpublic void testLoginAdminAccExist() {\n\t\tAccount acc1 = new Account(00000, \"ADMIN\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"ADMIN\", 00000, 0, \"A\"));\n\t\ttransactions.add(1, new Transaction(00, \"ADMIN\", 00000, 0, \"A\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Session Started Admin\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to find that admin account\", testResult);\n\t}",
"public String getAdminUser() {\n return adminUser;\n }",
"Admin selectByName(String adminName);",
"@Override\n\tpublic Admin loginAdmin(String adminName, String adminPassword){\n\t\tAdmin admin = adminRepository.findAdminByAdminName(adminName);\n\t\tif (!(admin.getAdminPassword().equals(adminPassword)\n\t\t\t\t&& admin.getAdminName().equals(adminName)))\n\t\t{\n\t\t\n\t\t\tthrow new AdminNotFoundException(\n\t\t\t\t\t\"Admin with AdminName [\" + adminName + \"] and password [\" + adminPassword + \"] not found\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn admin;\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic int validLogin(String adminid, String adminpw) {\n\t\tif (\"admin\".equals(adminid)\n\t\t\t\t&& \"12345\".equals(adminpw))\n\t\t\t{\n\t\t\t\treturn 99;\n\t\t\t}\n\t\t\treturn -1;\n\t}",
"boolean makeAdmin(User user);",
"public String getAdminUserName() {\n return adminUserName;\n }",
"public String getAdminpass() {\n return adminpass;\n }",
"@Test\n\tpublic void testCreateAdminAccountWithEmptyPassword() {\n\t\tString username = \"Catherine\";\n\t\tString password = \"\";\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, password, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Password cannot be empty.\", error);\n\t}",
"@Override\n\tpublic Admin getAdminByLoginNameAndPassword(int parseInt) {\n\t\tString hql = \"from Admin a where a.id=?\";\n\t\tList<Admin> al = getHibernateTemplate().find(hql,parseInt);\n\t\treturn al.isEmpty()||al==null?null:al.get(0);\n\t}",
"@Override\r\n\tpublic Integer findAdminPassword(Admin admin) {\n\t\treturn adminMapper.findAdminPassword(admin);\r\n\t}",
"@Test\n\tpublic void testGetUser() throws DBException {\n\t\tMyProfileController controller = new MyProfileController();\n\t\tUserBean adminBean = controller.getUser(1);\n\t\tboolean equal = true;\n\t\tif(adminBean.getId()!=1) {\n\t\t\tequal=false;\n\t\t}\n\t\tif(!adminBean.getName().equals(\"Admin\")){\n\t\t\tequal=false;\n\t\t}\n\t\tif(!adminBean.getSurname().equals(\"Admin\")){\n\t\t\tequal=false;\n\t\t}\n\t\tassertEquals(equal,true);\n\t}",
"@Test\n\tpublic void testGetAdminAccountsByName() {\n\n\t\tList<AdminAccount> users = adminAccountService.getAdminAccountsByName(NAME1);\n\t\tassertNotNull(users);\n\t\tassertEquals(users.get(0).getUsername(), USERNAME1);\n\t}",
"public void checkAdmin (){exxampe for findElement combinations:\n\t \t//driver.findElement(By.partialLinkText(\"Super Admin\")).findElement(By.xpath(\"parent::*\")).findElement(By.xpath(\"parent::*\")).findElement(By.xpath(\"td[1]/input\")).click();\n\t \t//\n\t \t\n\t \tdriver.findElement(By.xpath(\"//table[@class='table table-striped']/tbody/tr[*]/td[contains(text(), 'admin')]/../td[1]/input\")).click();\n\t \t \n\t \t\n\t }",
"@Test\n void retrieveAllTest() {\n boolean check1 = false;\n boolean check2 = false;\n List<Admin> adminList = adminJpa.retrieveAll();\n for (Admin anAdmin : adminList) {\n String email = anAdmin.getEmail();\n if (email.equals(\"m.rossi1@wlbadmin.it\"))\n check1 = true;\n if (email.equals(\"v.verdi1@wlbadmin.it\"))\n check2 = true;\n }\n assertTrue(check1);\n assertTrue(check2);\n }",
"@Test\n\tpublic void testLoginAdminAccountWithInvalidCredentials() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.loginAdminAccount(USERNAME2, PASSWORD1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"Username or password incorrect. Please try again.\", error);\n\t}",
"@Override\r\n\tpublic boolean login(String email, String pw) {\n\t\treturn jdbcTemplate.query(\r\n\t\t\"select * from s_member where email=? and pw=?\", extractor,email,pw)!=null;\r\n\t}",
"@Override\r\n\tpublic List<Admin> getAdminDetails() {\n\t\tList<Admin> admin =dao.getAdminDetails();\r\n return admin;\r\n\t}",
"@Override\r\n\tpublic Admins getAdminLogin(String aname, String apwd) {\n\t\treturn adi.adminLogin(aname, apwd);\r\n\t}",
"public String getAdminUsername() {\n\treturn adminUsername;\n}",
"@Test\n\tpublic void testAuthenticateAdminAccountWithNonExistingUser() {\n\n\t\tString username = \"Catherine\";\n\t\tString error = null;\n\t\tAdminAccount user = null;\n\t\ttry {\n\t\t\tuser = adminAccountService.authenticateAdminAccount(username);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"The user cannot be found.\", error);\n\t}",
"public static List<Admin> getAdmin() {\r\n\t\t//conn = DBConnection.getConnection();\r\n\t\t\r\n\r\n\t\tAdmin admin = null;\r\n\t\tList<Admin> listOfproducts = new ArrayList<Admin>();\r\n\r\n\t\ttry {\r\n\t\t\tStatement statement = conn.createStatement();\r\n\t\t\tResultSet resultSet = statement.executeQuery(getAllQuery);\r\n\t\t\twhile (resultSet.next()) {\r\n\t\t\t\t//User user = new User();\r\n\t\t\t\tint adminId = resultSet.getInt(1);\r\n\t\t\t\tString adminname = resultSet.getString(2);\r\n String adminpassword = resultSet.getString(3);\r\n\r\n\t\t\t\tadmin.setAdminid(adminId);\r\n\t\t\t\tadmin.setAdminname(adminname);\r\n\t\t\t\tadmin.setAdminpassword(adminpassword);\r\n\r\n\t\t\t\tlistOfproducts.add(admin);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn listOfproducts;\r\n\r\n\t}",
"public static void navigateAdminLoginPage() {\n Browser.driver.get(\"http://shop.pragmatic.bg/admin\");\n }",
"public Admin queryOneAdmin(Admin admin);",
"@Test\n public void testCheckAuth() throws Exception {\n SettingsManager manager = new SettingsManager();\n //manager.username = \"testUsername\";\n //manager.password = \"testPassword\";\n Assert.assertTrue(\"Correct credentials should return true\", manager.checkAuth(\"testUsername\", \"testPassword\"));\n Assert.assertFalse(\"Bad username should return false\", manager.checkAuth(\"badUsername\", \"testPassword\"));\n Assert.assertFalse(\"Bad password should return false\", manager.checkAuth(\"testUsername\", \"wrongPassword\"));\n }",
"@Test\n\tpublic void adminIDTest() {\n\t\tString string1 = \"admin\";\n\t\tassertTrue(AdminValidator.isValidAdmin(string1));\n\n\t\tString string2 = \"username\";\n\t\tassertTrue(AdminValidator.isValidAdmin(string2));\n\n\t\tString string3 = \"\";\n\t\tassertFalse(AdminValidator.isValidAdmin(string3));\n\n\n\t\tString string4 = \"admin%\";\n\t\tassertFalse(AdminValidator.isValidAdmin(string4));\n\t}",
"@Test\n public void test8() {\n userFury.login(\"13ab\");\n assertFalse(userFury.getLoggedIn());\n\n assertEquals(1, userFury.getFailedLoginAttempts());\n\n userFury.login(\"sdljf3\");\n assertFalse(userFury.getLoggedIn());\n\n assertEquals(2, userFury.getFailedLoginAttempts());\n\n userFury.login(\"13ab\");\n assertFalse(userFury.getLoggedIn());\n\n assertEquals(3, userFury.getFailedLoginAttempts());\n\n admin.login(\"34ab\");\n assertTrue(admin.getLoggedIn());\n\n admin.addAccount(userFury);\n String expectedAccountName = \"Fury\";\n String actualAccountName = admin.getAccounts().get(0).getName();\n assertTrue(!admin.getAccounts().isEmpty());\n\n admin.resetAccount(userFury, \"seed\");\n System.out.println(admin);\n String expectedPassword = \"seed\";\n assertTrue(userFury.checkPassword(expectedPassword));\n }",
"java.lang.String getNewAdmin();",
"public boolean isAdmin();",
"@Test\n void findCustomerByName() {\n String expectedPassword = \"1\";\n String actualPassword = customerRepository.findCustomerByName(\"test1\").getPassword();\n assertEquals(expectedPassword,actualPassword);\n }",
"private void checkAdminInDB(DB db) {\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tlong hashCode = (long) \"admin\".hashCode();\n\t\tif(!users.containsKey(hashCode))\n\t\t\tusers.put(hashCode, new Admin(\"admin\", \"admin\"));\n\t}",
"@Test\n\tpublic void adminPassWordTest() {\n\t\tString string1 = \"admin!\";\n\t\tassertTrue(AdminValidator.isStrongPassword(string1));\n\n\t\tString string2 = \"user\";\n\t\tassertFalse(AdminValidator.isStrongPassword(string2));\n\n\t\tString string3 = \"\";\n\t\tassertFalse(AdminValidator.isStrongPassword(string3));\n\n\t\tString string4 = \"admin123\";\n\t\tassertTrue(AdminValidator.isStrongPassword(string4));\n\n\t}",
"public String getAdminpwd() {\r\n return adminpwd;\r\n }",
"private static void loginForAdmin(String username, String password){\n\n ArrayList<Object> loginData = LogInAndLogOutService.login(username, password);\n boolean logged = (boolean) loginData.get(0);\n boolean freezed = (boolean) loginData.get(1);\n Employee employee = (Employee) loginData.get(2);\n\n if (logged){\n\n System.out.println(\"Sie sind richtig als Herr/Frau \"+ employee.getLastname() + \" \"+ employee.getFirstname() +\" eingelogt.\");\n }else {\n if (freezed){\n\n System.out.println(\"Ihr Konto wurde einfriert. Sie können sie sich nicht einloggen. :(\");\n }else {\n\n System.out.println(\"Falscher Benutzername oder Passwort eingegeben. Versuchen Sie erneut.\");\n }\n }\n }",
"@GET(\"administrators/{id}\")\n Call<User> getUser(\n @retrofit2.http.Path(\"id\") Integer id\n );",
"private final void initializeAdminUser() throws Exception {\r\n String adminEmail = server.getServerProperties().get(ADMIN_EMAIL_KEY);\r\n String adminPassword = server.getServerProperties().get(ADMIN_PASSWORD_KEY);\r\n // First, clear any existing Admin role property.\r\n for (User user : this.email2user.values()) {\r\n user.setRole(\"basic\");\r\n }\r\n // Now define the admin user with the admin property.\r\n if (this.email2user.containsKey(adminEmail)) {\r\n User user = this.email2user.get(adminEmail);\r\n user.setPassword(adminPassword);\r\n user.setRole(\"admin\");\r\n }\r\n else {\r\n User admin = new User();\r\n admin.setEmail(adminEmail);\r\n admin.setPassword(adminPassword);\r\n admin.setRole(\"admin\");\r\n this.updateCache(admin);\r\n }\r\n }",
"private static boolean admin(String username, String password) {\r\n\t\tFile file = new File(\"admin.txt\");\r\n\t\tScanner scanner;\r\n\t\tString user = null;\r\n\t\tString pwd = null;\r\n\t\ttry {\r\n\t\t\tscanner = new Scanner(file);\r\n\t\t\tString nextLine = scanner.nextLine();\r\n\t\t\tString[] parts = nextLine.split(\"=\");\r\n\t\t\tuser = parts[0];\r\n\t\t\tpwd = parts[1];\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn (username.equals(user) && password.equals(pwd));\r\n\t\t\r\n\t}",
"public boolean isAdminExists(String pIdentifiant, String pMotDePasse);",
"@Test\n\tpublic void testCreateAdminAccountSuccessfully() {\n\t\tassertEquals(2, adminAccountService.getAllAdminAccounts().size());\n\n\t\tString username = \"newUsername\";\n\t\tAdminAccount user = null;\n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(username, PASSWORD1, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\tfail();\n\t\t}\n\t\tassertNotNull(user);\n\t\tassertEquals(username, user.getUsername());\n\t\tassertEquals(PASSWORD1, user.getPassword());\n\t\tassertEquals(NAME1, user.getName());\n\t}",
"@Test\n public void testLoginPassCheck(){\n loginIn(\"admin\", \"password\", R.string.login_success_message);\n }",
"@Test(priority = 1)\r\n\tpublic void validUserTest() {\t\t\t\r\n\r\n\t\tAdminDashboardPage adminPage=new AdminDashboardPage(driver);\r\n\t\tadminPage.clickUsersTab();\t\r\n\t\t\r\n\t\tUsersListViewPage ulPage=new UsersListViewPage(driver);\r\n\t\tulPage.clickNewUser();\r\n\t\t\r\n\t\tCreateNewUserPage crUserPage=new CreateNewUserPage(driver);\r\n\t\tcrUserPage.enterUserDetails(\"Kathy\",\"pass\",\"Kathy@noreply.com\");\r\n\t\tcrUserPage.clickCreateUser();\t\t\r\n\t\t\r\n\t\tadminPage.clickUsersTab();\r\n\t\tString actUserCreated=ulPage.verifyCreatedUser();\r\n\t\tAssert.assertEquals(actUserCreated,\"Kathy\");\r\n\t\t\r\n\t}",
"@Test\n public void getPassword() {\n User u = new User(name, mail, pass, address, gender);\n Assert.assertEquals(u.getPassword(), pass);\n }",
"public String getAdminid() {\r\n return adminid;\r\n }",
"public void createAdminUser() {\n\n Users user = new Users();\n user.setId(\"1\");\n user.setName(\"admin\");\n user.setPassword(bCryptPasswordEncoder.encode(\"admin\"));\n\n ExampleMatcher em = ExampleMatcher.matching().withIgnoreCase();\n Example<Users> example = Example.of(user, em);\n List<Users> users = userRepository.findAll(example);\n System.out.println(\"Existing users: \" + users);\n\n if (users.size() == 0) {\n System.out.println(\"admin user not found, hence creating admin user\");\n userRepository.save(user);\n System.out.println(\"admin user created\");\n latch.countDown();\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"@GetMapping(\"/\")\n\tpublic ResponseEntity<Object> getAdministrator(HttpServletRequest request){\n\t\tAdministrator admin = service.findByEmail(SessionManager.getInstance().getSessionEmail(request.getSession()));\n\t\tif(admin == null) return new ResponseEntity<>(HttpStatus.UNAUTHORIZED); \n\t\tMappingJacksonValue mappedAdmin = new MappingJacksonValue(admin);\n\t\tmappedAdmin.setFilters(new SimpleFilterProvider().addFilter(Administrator.FILTER, SimpleBeanPropertyFilter.filterOutAllExcept(\"email\", \"name\")));\n\t\treturn new ResponseEntity<>(mappedAdmin, HttpStatus.OK);\n\t}",
"@Test\n\tpublic void testCreateAdminAccountWithTakenUsername() {\n\n\t\tString error = null;\n\t\tAdminAccount user = null; \n\t\ttry {\n\t\t\tuser = adminAccountService.createAdminAccount(USERNAME1, PASSWORD1, NAME1);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"This username is not available.\", error);\n\t}",
"protected final void runAsAdmin() {\n authenticationTestingUtil.grantAdminAuthority( this.applicationContext );\n }",
"public Admin createAdmin(){\n\t\ttry {\n\t\t\treturn conn.getAdmin();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"@Test\n public void testAdminPerm() {\n }",
"@Override\r\n public Boolean loginAdmin(LoginAccessVo vo) throws Exception {\n return null;\r\n }",
"@Override\r\n public Boolean loginAdmin(LoginAccessVo vo) throws Exception {\n return null;\r\n }",
"@Test\n public void testUserManager(){\n userManager.addUser(\"and\",\"rew\");\n assertEquals(\"rew\",userManager.getPassword(\"and\"));\n userManager.addUser(\"a\",\"a\");\n assertEquals(\"a\",userManager.getPassword(\"a\"));\n assertEquals(\"rew\",userManager.getPassword(\"and\"));\n }",
"public boolean isAdmin() {\r\n admin = userBean.isAdmin(email);\r\n return admin;\r\n }",
"public void setAdminUsername(String adminUsername) {\n\tthis.adminUsername = adminUsername;\n}",
"public Admin(String username, String email) {\n super(username, email);\n userType = UserType.ADMIN;\n }",
"@Test\r\n\tpublic void testFindUserByEmail() {\r\n\t\twhen(backgroundVerificationAndLeaseAdminRepository.findByEmail(\"abc@gmail.com\")).thenReturn(StringList.get(0));\r\n\t\tBackgroundverification backgroundverification = backgroundVerificationAndLeaseAdmnServiceImpl\r\n\t\t\t\t.findByEmail(\"abc@gmail.com\");\r\n\t\tassertEquals(\"abc@gmail.com\", backgroundverification.getEmail());\r\n\t}",
"@Test\n\tpublic void testadminLogout(){\n\t\tlic.logon(\"nadmin\", \"admin\", true);\n\t\tassertTrue(loc.adminLogout(\"nadmin\"));\n\t\tassertFalse(loc.adminLogout(\"oops\"));\n\t}",
"private void byPassLogin(String email) {\n User user = new User(123, email, Grade.A, 100, 9999991, 50f, 25f);\n Login(user);\n }",
"@Test\n\tpublic void testAuthenticateAdminAccountWithInvalidToken() {\n\n\t\tString error = null;\n\t\tAdminAccount user = null;\n\t\ttry {\n\t\t\tuser = adminAccountService.authenticateAdminAccount(USERNAME2);\n\t\t} catch (InvalidInputException e) {\n\t\t\terror = e.getMessage();\n\t\t}\n\t\tassertNull(user);\n\t\t// check error\n\t\tassertEquals(\"An error occured. Please try again.\", error);\n\n\t}",
"@Test\n public void shouldListExpectedUsers() {\n OrgMembersListPage theMembersPage = open(OrgMembersListPage.class, organization.getName());\n theMembersPage.entriesContainer().shouldHave(text(\"Admin User (admin)\"));\n }",
"@Test\n public void existingUserOK_PW() {\n boolean result = auth.authenticateUser(\"Ole\", \"secret\", 0); \n //Then\n assertThat(result, is(true));\n }",
"public int getAdmin() {\n return admin;\n }",
"@Test\r\n public void findUserByAuthorizationValid() {\r\n\r\n // login as testUser\r\n TestUtil.login(\"testUser\", ApplicationAccessControlConfig.GROUP_CUSTOMER);\r\n\r\n UserRegistrationEto userRegistrationEto = new UserRegistrationEto();\r\n\r\n userRegistrationEto.setUsername(\"testUser\");\r\n userRegistrationEto.setPassword(\"123456\");\r\n userRegistrationEto.setEmail(\"valid@mail.de\");\r\n userRegistrationEto.setUserRoleId(0L);\r\n\r\n this.usermanagement.saveUser(userRegistrationEto);\r\n\r\n UserEto savedUserFromDB = this.usermanagement.findUserByAuthorization();\r\n\r\n assertThat(savedUserFromDB).isNotNull();\r\n assertThat(savedUserFromDB.getUsername()).isEqualTo(\"testUser\");\r\n assertThat(savedUserFromDB.getEmail()).isEqualTo(\"valid@mail.de\");\r\n assertThat(savedUserFromDB.getUserRoleId()).isEqualTo(0L);\r\n\r\n TestUtil.logout();\r\n }",
"public int checkAdmin(String email)\n {\n\n for(int index = 0 ; index < getAllAdmin().length; index++)\n {\n if(getAdmin(index).getAdminEmail().toLowerCase().equals(email))\n return index;\n }\n return -1;\n }",
"public String getAdminId() {\n return adminId;\n }",
"public String getAdminId() {\n return adminId;\n }",
"@Test\n\tpublic void navigateToAdminPage() throws InterruptedException\n\t{\n\t\tdashboardPage.clickOnDropdownOptionAdmin();\n\t\tThread.sleep(5000);\n\t\t/*\n\t\t * Sleep because selenium does not wait until the webpage is loaded and URL is changed,\n\t\t * Instead it fetches the URL as soon as the command is hit.\n\t\t */\n\t\tString actualURL = commonUtilities.verifyURLMethod();\n\t\tAssert.assertEquals(actualURL, ReadPropertiesFile.getPropertyValue(\"reportsPageUrl\"), \"Validating Admin Page URL\");\n\t}"
] | [
"0.72676414",
"0.71583277",
"0.7129745",
"0.7026554",
"0.68930364",
"0.68904746",
"0.67646277",
"0.67599285",
"0.67347926",
"0.6709231",
"0.67017365",
"0.6671975",
"0.66183937",
"0.6607471",
"0.66051465",
"0.6579017",
"0.65533715",
"0.6507372",
"0.64995813",
"0.6487931",
"0.64680374",
"0.64281976",
"0.6373025",
"0.63121504",
"0.62954766",
"0.62894624",
"0.6284515",
"0.6282278",
"0.6222867",
"0.6221346",
"0.62055445",
"0.62026423",
"0.6173008",
"0.6172885",
"0.6170448",
"0.6169537",
"0.61643916",
"0.6148457",
"0.6141141",
"0.6132168",
"0.61296594",
"0.6104561",
"0.6104533",
"0.61017144",
"0.60959184",
"0.6094035",
"0.60690784",
"0.606653",
"0.6066271",
"0.60658747",
"0.60629696",
"0.60564256",
"0.6055562",
"0.60473514",
"0.6046839",
"0.6045688",
"0.6044054",
"0.6041946",
"0.6031373",
"0.6022315",
"0.60189587",
"0.6015314",
"0.6009991",
"0.6005873",
"0.5991338",
"0.596909",
"0.5964412",
"0.59594923",
"0.59587306",
"0.5956286",
"0.5946572",
"0.5944852",
"0.5942449",
"0.5941086",
"0.59391975",
"0.59166664",
"0.5914771",
"0.59085995",
"0.59083617",
"0.5902966",
"0.5901663",
"0.58901244",
"0.58884823",
"0.58884823",
"0.58800536",
"0.5878646",
"0.5874906",
"0.5864933",
"0.5862446",
"0.5836452",
"0.58305675",
"0.5826487",
"0.58245194",
"0.5822215",
"0.5813644",
"0.5809792",
"0.57992",
"0.5797456",
"0.5797456",
"0.57970005"
] | 0.76624465 | 0 |
boolean ans = detect1(head); | public static boolean main(String[] args, ListNode head) {
boolean ans = detect2(head);
return ans;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static native boolean detect_0(long nativeObj, long img_nativeObj, long points_nativeObj);",
"boolean hasDecision();",
"boolean hasDecision();",
"private static native boolean detectMulti_0(long nativeObj, long img_nativeObj, long points_nativeObj);",
"boolean hasRecognizer();",
"boolean hasS1();",
"public List<Result> recognize(IplImage image);",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"boolean hasUnknown1();",
"boolean detect(Point p, MapLayer layer);",
"private static native void detect_0(long nativeObj, long inputImage_nativeObj, long Bbox_mat_nativeObj, long confidence_mat_nativeObj);",
"boolean hasCandidate();",
"public abstract void hitOnHead(Nana nana, boolean head);",
"boolean hasFreq();",
"boolean hasNum1();",
"boolean hasTrainIdx();",
"boolean estVide();",
"private boolean learning()\r\n\t{\r\n\t\tint temp = (int) (Math.random() * 100);\t\t//generate a random int between 0-100\r\n\t\tif(temp<=intelligence)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"boolean hasPicture();",
"static Boolean detectloop(Node Header){\n Node slow_pointer = Header;\n Node fast_pointer = Header;\n while(slow_pointer!=null && fast_pointer!=null && fast_pointer.link!=null){\n slow_pointer=slow_pointer.link;\n fast_pointer=fast_pointer.link.link;\n if(slow_pointer==fast_pointer){\n return true;\n }\n }\n return false;\n }",
"public Map<String,Double> doDetection(){\n if(recordingFile!=null){\r\n FileManager fm = new FileManager(recordingFile);\r\n signal = fm.readFile();\r\n if(signal!=null){\r\n //for(int i=0;i<256;i++)\r\n // System.out.print(signal[i]+\", \");\r\n System.out.println(\"tamaño:: \"+signal.length);\r\n Map<String,Double> resultadoCanal= classify();\r\n System.out.println(\"resultadoCanal \"+resultadoCanal.size());\r\n return resultadoCanal;\r\n }\r\n }\r\n else{\r\n System.out.println(\"El archivo no existe\");\r\n }\r\n return null;\r\n }",
"boolean isCounting();",
"public void detect(AudioBuffer ab)\n\t{\n\t\tdetect(ab.toArray());\n\t}",
"boolean hasFirstFrame();",
"public abstract boolean sensorFound();",
"boolean getResult();",
"boolean getResult();",
"boolean getResult();",
"boolean getResult();",
"boolean mo51986hp();",
"boolean getFaceDetectionPref();",
"boolean hasUnknown2();",
"boolean hasUnknown2();",
"boolean hasUnknown2();",
"Boolean getRandomize();",
"private boolean Verific() {\n\r\n\treturn true;\r\n\t}",
"protected abstract boolean computeHasNext();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasX();",
"boolean hasNoise();",
"public ListNode loopDetection1(ListNode head) {\r\n\r\n if (head == null || head.next == null) return null;\r\n\r\n ListNode curr = head;\r\n HashSet<ListNode> list = new HashSet<ListNode>();\r\n\r\n while (curr.next != null) {\r\n if (list.contains(curr)) return curr;\r\n\r\n list.add(curr);\r\n curr = curr.next;\r\n }\r\n\r\n return null;\r\n\r\n }",
"int countFeatures();",
"int countFeatures();",
"boolean hasData1();",
"boolean hasData1();",
"boolean hasTutorial();",
"private native int applyFaceDetection2(byte[] data,int len,int width,int height);",
"String classify(AudioFile af);",
"boolean hasFrequency();",
"boolean isVisited();",
"boolean isVisited();",
"boolean hasAlreadFoldCard();",
"boolean hasHat();",
"@Override\n public boolean detect() {\n \t slowDown();\n final MoveResult move = CurrentData.CALCULATED.tetromino.move;\n\t\t\t\t\t\tif (move.hasMove()) {\n final Tetromino moveTetromino = move.tetromino;\n final int y = QQRobot.findTetromino(moveTetromino, 3 + missingTetromino * 2);\n if (y == -1) {\n missingTetromino++;\n if (missingTetromino == 3) {\n // System.out.println(\"没找到块\" + nr + \"!\" + CurrentData.CALCULATED.tetromino.move + \", \"\n // + CurrentData.CALCULATED.tetromino + \", \"\n // + CurrentData.CALCULATED.tetromino.move.tetromino);\n // QQDebug.save(QQRobot.getScreen(), \"qqtetris_\" + nr);\n // nr++;\n throw new NoTetrominoFoundException(\"没找到块!\");\n // CurrentData.CALCULATED.tetromino.move.doMove();\n }\n } else {\n \t final int fallen = y - moveTetromino.y;\n if (fallen > 0) {\n // System.out.println(\"掉落:\" + fallen);\n moveTetromino.y = y;\n } \t \n \t if (move.clever) {\n \t \t if (firstScan) {\n \t \t firstScan = false;\n \t \t } else if (fallen > 0) {\n\t\t\t move.doMove(); \t \t \t \n \t \t }\n \t } else {\n\t\t move.doMove();\n \t }\n }\n }\n if (move.hasMove()) {\n return false;\n } else {\n // QQDebug.printBoard(CurrentData.CALCULATED.board);\n return true;\n }\n }",
"boolean hasSingleBet();",
"public boolean hasPassed(){\n return hasPassed(0);\n }",
"boolean hasS2();",
"boolean isIntroduced();",
"Boolean isPassed();",
"public boolean hasImTrue() {\n return result.hasImTrue();\n }",
"int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}",
"int match(ArrayList<ImageCell> images);",
"public boolean execute() {\n\t\t\n\t\tfor (int i = 0; i <Network.size(); i++) {\n\t\t\t\n\t\t\tMyNode n = (MyNode)Network.get(i);\n\t\t\t//MyNode n1 = (MyNode) n;\t\t\n \n System.out.println(\"The frobenius_norm at node\"+\"(\"+i+\"):\"+n.frobenius_norm);\n\t\t\tretVal=retVal &&(n.frobenius_norm<=threshold);\n\t\t\tSystem.out.println(retVal);\n }\n if(retVal)\n {\n \t System.out.println(\"ALgorithm Converged...###########################!\");\n \t return myNewSVMCode.end;\n }\n else\t\n {\n\t\treturn false;\n }\n }",
"private static native boolean detectAndDecodeMulti_0(long nativeObj, long img_nativeObj, List<String> decoded_info, long points_nativeObj, long straight_code_mat_nativeObj);",
"boolean getProbables();",
"boolean mo38970a();",
"boolean hasHadithChapterIntro();",
"boolean hasN();",
"boolean hasN();",
"boolean captureChoice(Scanner sc);",
"DetectionResult getObjInImage(Mat image);",
"boolean test();",
"boolean test();",
"boolean test();",
"boolean hasPass();",
"boolean hasPass();",
"boolean hasCorrect();",
"public boolean evaluate();",
"boolean hasAccY();",
"public boolean test(MyList<Point> pixels, Image img)\r\n/* 19: */ {\r\n/* 20:33 */ int volume = 0;\r\n/* 21:35 */ for (MyListNode<Point> n = pixels.getHead(); n != null; n = n.getNext())\r\n/* 22: */ {\r\n/* 23:36 */ Point p = (Point)n.getDatum();\r\n/* 24: */ \r\n/* 25:38 */ int[] val = img.getVXYByte(p.x, p.y);\r\n/* 26:40 */ for (int c = 0; c < val.length; c++) {\r\n/* 27:41 */ volume += img.getXYCByte(p.x, p.y, c);\r\n/* 28: */ }\r\n/* 29: */ }\r\n/* 30:44 */ if (volume < this.threshold) {\r\n/* 31:44 */ return false;\r\n/* 32: */ }\r\n/* 33:45 */ return true;\r\n/* 34: */ }"
] | [
"0.58317274",
"0.57102305",
"0.57102305",
"0.56850946",
"0.557037",
"0.55073225",
"0.5486719",
"0.5477478",
"0.5477478",
"0.5477478",
"0.5477478",
"0.5477478",
"0.5477478",
"0.5473881",
"0.5400344",
"0.5368041",
"0.5350945",
"0.5338093",
"0.53341174",
"0.5301044",
"0.52607715",
"0.5223604",
"0.5219509",
"0.52155167",
"0.520044",
"0.5189534",
"0.51850444",
"0.51770735",
"0.51726615",
"0.5161217",
"0.5161217",
"0.5161217",
"0.5161217",
"0.5139341",
"0.513819",
"0.5131963",
"0.5131963",
"0.5131963",
"0.511502",
"0.5104625",
"0.5091912",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.5089619",
"0.50835586",
"0.5075028",
"0.50707364",
"0.50707364",
"0.5069128",
"0.5069128",
"0.5067082",
"0.50563157",
"0.50523466",
"0.5043732",
"0.50407684",
"0.50407684",
"0.50400025",
"0.5039519",
"0.50379694",
"0.5035464",
"0.5032342",
"0.5027082",
"0.502608",
"0.5018192",
"0.5000302",
"0.4999304",
"0.49977344",
"0.49944147",
"0.4990475",
"0.49868625",
"0.4982978",
"0.49825072",
"0.49804413",
"0.49804413",
"0.49746594",
"0.49696186",
"0.4969454",
"0.4969454",
"0.4969454",
"0.49687392",
"0.49687392",
"0.49678645",
"0.49660408",
"0.49655625",
"0.49595436"
] | 0.68035126 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_product_detail, container, false);
unbinder = ButterKnife.bind(this, view);
return view;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
this fuction displays an alert dialog box regarding the instructions of the game. | private void pop(){
AlertDialog.Builder start = new AlertDialog.Builder(this);
start.setTitle("THE ADVANCED HANGMAN - INSTRUCTIONS");
start.setMessage("The advanced hangman is an advanced version of the traditional hangman game. \nThe objective of the game is to guess the correct word within six chances.\nThis game is like a treasure hunt game. Two hints will be provided. \n\nHint 1: when the player makes two wrong guesses. This hint will be a one vague one. \n\nHint 2: when the player makes four wrong guesses. This hint will be a sort of giveaway. \n\n NOTE : The hints appear for a short period of time. Be attentive.");
start.setPositiveButton("OK",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
MainActivity.this.play(); //is pressed ok, play function is called.
}
});
start.show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void gameOverAlert() {\n \tAlert alert = new Alert(AlertType.INFORMATION);\n \t\n \talert.setTitle(\"Game Over!\");\n \talert.setHeaderText(\"You Did Not Get A New High Score!\\nYour High Score: \" + level.animal.getPoints());\n \talert.setContentText(\"Try Again Next Time!\");\n \talert.show();\n\t}",
"public void alertAlreadySolved() {\n\t\tthis.alert(\"ERROR\",\"Game already solved\",AlertType.WARNING);\n\t}",
"private void showHelp(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this,R.style.MyDialogTheme);\n alertDialogBuilder.setMessage(\"Welcome to NBA Manager 2019\\n\\n\" +\n \"The purpose of the application is to simulate a basketball manager game and draft a team.\\n\\n\" +\n \"You can view your current roster by pressing the right arrow in the top right corner.\\n\\n\" +\n \"*Not all players will have a height or a weight.\");\n alertDialogBuilder.setPositiveButton(\"Ok\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface arg0, int arg1) {\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }",
"private void showInstructions() {\n Alert popUp = new Alert(Alert.AlertType.INFORMATION);\n popUp.setTitle(\"Instructions\");\n popUp.setContentText(\"The size field in the bottom let controls the board demensions.\" \n + \"The coord field in the bottom right controls the starting point of the tour \" \n + \"where 0 <= x, y < size. \"\n + \"Press enter with the text field in focus to submit changes. \"\n + \"Changes submitted to the coordinate field will start a new tour. \"\n + \"Depending on the conditions it could take a while!\");\n\n popUp.showAndWait();\n }",
"public void game_over() {\n JOptionPane.showMessageDialog(null,\"GAME OVER\",\"Titolo finestra mettici quello che vuoi\",1);\n\n System.exit(0);\n}",
"void showAlert(String message);",
"@Override\r\n\t public void actionPerformed(ActionEvent event) {\n\t \t\t\tJOptionPane.showMessageDialog(gameFrame,\r\n\t \t\t\t regles,\"Règles du jeu\", JOptionPane.INFORMATION_MESSAGE);\r\n\t \t\t\t\r\n\t }",
"public void win()\r\n {\r\n Alert inputConfirmation = new Alert(Alert.AlertType.INFORMATION);\r\n inputConfirmation.setTitle(\"Congratulations!\");\r\n inputConfirmation.setHeaderText(\"Congratulations! You Win!\");\r\n inputConfirmation.setGraphic(null);\r\n\r\n String contentText = (\"You took \" + scoreBoard.timeText.getText() + \" seconds\");\r\n inputConfirmation.setContentText(contentText);\r\n scoreBoard.gameTimer.gameTime.cancel();\r\n\r\n inputConfirmation.showAndWait();\r\n }",
"private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}",
"private void gameOverDialog() {\n Toast makeText;\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.game_over), Toast.LENGTH_LONG);\n makeText.show();\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.final_score) + score, Toast.LENGTH_LONG);\n makeText.show();\n }",
"private void showLoserDialog() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"You Have Been Defeated \" + player1.getName() + \",Computer Wins!!\", new ButtonType(\"Close\", ButtonBar.ButtonData.NO), new ButtonType(\"Try Again?\", ButtonBar.ButtonData.YES));\n alert.setGraphic(new ImageView(new Image(this.getClass().getResourceAsStream(\"/Images/bronze.png\"))));\n alert.setHeaderText(null);\n alert.setTitle(\"Computer Wins\");\n alert.showAndWait();\n if (alert.getResult().getButtonData() == ButtonBar.ButtonData.YES) {\n onReset();\n }\n }",
"private void gameOver(){\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(GameActivity.this);\n alertDialogBuilder\n .setMessage(\"Your score: \" + correctScore + \"%\").setCancelable(false).setPositiveButton(\"New Game\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n startActivity(new Intent(getApplicationContext(), MainActivity.class));\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n }",
"private void answerResultAlert(String feedback){\n AlertDialog.Builder showResult = new AlertDialog.Builder(this);\n\n showResult.setTitle(feedback);\n showResult.setMessage(currentQuestion.getExplanation());\n showResult.setCancelable(false); //if this is not set, the user may click outside the alert, cancelling it. no cheating this way\n showResult.setNeutralButton(\"ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n //only when the ok is clicked will continue to run the program\n setUpQuestions();\n }\n });\n showResult.create();\n showResult.show();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(mainscreen, \"Created by Saadia Aman and Ammar Israr\");\n\t\t\t}",
"private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }",
"private void showGameOver()\n {\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n //Todo:\n // step 1. get the winner name using game.getWinner()\n // step 2. put the string player.getName()+\" won the game!\" to the string reference called \"result\"\n Player winner = game.getWinner();\n String result = winner.getName() + \" won the game!\";\n\n // pass the string referred by \"result\" to make an alert window\n // check the bottom of page 9 of the PA description for the appearance of this alert window\n Alert alert = new Alert(AlertType.CONFIRMATION, result, ButtonType.YES, ButtonType.NO);\n alert.showAndWait();\n if (alert.getResult() == ButtonType.YES)\n {\n Platform.exit();\n }\n }\n });\n }",
"private void tutorial(){\n\t\tString msg = \"[Space] = Inicia e pausa o jogo depois de iniciado.\";\n\t\tmsg += \"\\n[Seta esquerda] = Move o paddle para a esquerda.\";\n\t\tmsg += \"\\n[Seta direita] = Move o paddle para a direita.\";\n\t\tmsg += \"\\n[I] = Abre a janela de informaçoes.\";\n\t\tmsg += \"\\n[R] = Reinicia o jogo.\";\n\t\tJOptionPane.showMessageDialog(null, \"\"+msg, \"Informaçoes\", JOptionPane.INFORMATION_MESSAGE);\n\t}",
"@Override\n\t\t\tpublic void handle(MouseEvent e){\n\t\t\t\tAlert confirmation = new Alert(AlertType.CONFIRMATION);\n\t\t\t\tconfirmation.setTitle(\"Start game?\");\n\t\t\t\tconfirmation.setHeaderText(\"Do you wish to start the game on \" + difficultyChoices.getValue() + \" difficulty?\");\n\n\t\t\t\t//The Alert window has two buttons, an OK button and a cancel button. This variable is\n\t\t\t\t//created to store which button was clicked on by the player.\n\t\t\t\tOptional<ButtonType> result = confirmation.showAndWait();\n\t\t\t\t\n\t\t\t\t//If the player clicked on the OK button, this if statement is used.\n\t\t\t\tif(result.get() == ButtonType.OK) {\n\n\t\t\t\t\t//A switch statement checks the choice selected from the drop down menu\n\t\t\t\t\tswitch(difficultyChoices.getValue()) {\n\t\t\t\t\t//Depending on which difficulty was chosen, the difficultyGuesses int variable is\n\t\t\t\t\t//set to the maximum amount of guesses that the player is allowed, and debug messages\n\t\t\t\t\t//are displayed on the console. If the player was somehow able to reach this point\n\t\t\t\t\t//without selecting one of the options, the program closes, to prevent any issues later.\n\t\t\t\t\tcase \"Easy\" : difficultyGuesses = 7;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Easy mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Medium\" : difficultyGuesses = 5;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Medium mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Hard\" : difficultyGuesses = 3;\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Picked Hard mode\");\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault \t : System.out.println(\"For some reason, we didn't get a difficulty setting.\");\n\t\t\t\t\t\t\t\t\tSystem.exit(1);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Using the PrintWriter, a message is sent to the server. StartUpGame acts like a \n\t\t\t\t\t//keyword so that the server can access the right area of the code to use the \n\t\t\t\t\t//second parameter correctly.\n\t\t\t\t\tout.println(\"StartUpGame \" + difficultyGuesses);\n\t\t\t\t\t\n\t\t\t\t\t//A boolean is created and set to false. It is used as a crude way of waiting for a\n\t\t\t\t\t//response from the server. The while loop afterwards continues for as long as the\n\t\t\t\t\t//boolean remains false. When the correct message is received from the server, it\n\t\t\t\t\t//will set the boolean to true, which will end the while loop and continue with the\n\t\t\t\t\t//code afterwards. \n\t\t\t\t\tboolean connectionCheck = false;\n\t\t\t\t\twhile(!connectionCheck) {\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tconnectionCheck = Boolean.parseBoolean(in.readLine());\n\t\t\t\t\t\t}catch(IOException ioe) {\n\t\t\t\t\t\t\t//If nothing is received, do nothing. The loop will continue as the boolean\n\t\t\t\t\t\t\t//remains false. May need to be refined in some way to determine whether no\n\t\t\t\t\t\t\t//message was received because the server's message hasn't arrived yet, or\n\t\t\t\t\t\t\t//because the connection has been completely lost and act accordingly.\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//The Alert window can now be closed\n\t\t\t\t\tconfirmation.close();\n\t\t\t\t\t\n\t\t\t\t\t//Call the game method, passing over the stage so that it can be redesigned\n\t\t\t\t\tgame(stage);\n\t\t\t\t}\n\t\t\t}",
"private void showDrawDialog() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \" Game Has Ended in a Draw!! \\n\\n\\n Thanks For Playing \" + player1.getName(), new ButtonType(\"Close\", ButtonBar.ButtonData.NO), new ButtonType(\"Play Again\", ButtonBar.ButtonData.YES));\n alert.setGraphic(new ImageView(new Image(this.getClass().getResourceAsStream(\"/Images/draw.png\"))));\n alert.setHeaderText(null);\n alert.setTitle(\"Draw!\");\n alert.showAndWait();\n if (alert.getResult().getButtonData() == ButtonBar.ButtonData.YES) {\n onReset();\n }\n }",
"public void showLooseMessage() {\n\t\tAlertDialog alert = new AlertDialog.Builder(getContext()).create();\n\t\talert.setCancelable(false);\n\n\t\talert.setMessage(\"You Loose!\");\n\t\talert.setButton(AlertDialog.BUTTON_POSITIVE, \"Replay\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\talert.setButton(AlertDialog.BUTTON_NEGATIVE, \"Exit\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tactivity.finish();\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\talert.show();\n\n\t}",
"DialogResult show();",
"private void aboutHandler() {\n JOptionPane.showMessageDialog(\n this.getParent(),\n \"YetAnotherChessGame v1.0 by:\\nBen Katz\\nMyles David\\n\"\n + \"Danielle Bushrow\\n\\nFinal Project for CS2114 @ VT\");\n }",
"private void showAboutDialog() {\n JOptionPane.showMessageDialog(this, \"Sea Battle II Version 1.0\\nCS 232 (Computer Programming II), Fall 2018\");\n }",
"public static void message() {\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, \"Thanks for your participation\" + \"\\nHave a great day!\");\r\n\t\t\r\n\t\t\r\n\t}",
"private void show_Alert(String msg) {\n ((TextView) dialog.findViewById(R.id.tv_text)).setText(msg);\n dialog.findViewById(R.id.tv_ok).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(frame, \n//\" Programming language: Java\\n\"+\n\" Developer: Monish Gupta\\n\"+\n\" monishgupta.blogspot.com\", \"About\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t}",
"public static void aboutApp(){\n\t\tAlert alertDialog = new Alert(Alert.AlertType.INFORMATION);\n\t\talertDialog.setTitle(\"My first java Desktop App\");\n\t\talertDialog.setHeaderText(\"Learning JavaFX\");\n\t\talertDialog.setContentText(\"I'm a beginner and soon i'll be a pro\");\n\n\t\t//to make custom buttons\n\t\tButtonType yesBtn = new ButtonType(\"yes\");\n\t\tButtonType noBtn = new ButtonType(\"No\");\n\t\talertDialog.getButtonTypes().setAll(yesBtn,noBtn);\n\n\t\t//to perform click event on buttons of the dilague box that opens and make buttons\n\t\tOptional<ButtonType> clickBtn=alertDialog.showAndWait();\n\t\tif(clickBtn.isPresent()&&clickBtn.get()==yesBtn){\n\t\t\t// code .......\n\t\t}\n\t\tif(clickBtn.get()==noBtn){\n\t\t\t//code..........\n\t\t}\n\n\t\talertDialog.show();\n\t}",
"private void showIncorrectAnswerDialogueBox() {\n\t\tString _title = getString(R.string.incorrectansweralertdialoguetitle);\n\t\tString _message = getString(R.string.incorrectansweralertdialoguemessage);\n\t\tUtilityMethods.createAlertDialog(_title, _message,\n\t\t\t\tAnalysisActivity.this);\n\t}",
"public void msgErreur(){\n \n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Entrée invalide\");\n alert.setHeaderText(\"Corriger les entrées invalides.\");\n alert.setContentText(\"Les informations entrées sont erronnées\");\n\n alert.showAndWait();\n \n\n}",
"static void giveInfo(String message){\n JOptionPane.showMessageDialog(null, message);\n }",
"private void showEndMessage()\n {\n showText(\"Time is up - you win!\", 390, 150);\n showText(\"Your final score: \" + healthLevel + \" points\", 390, 170);\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tString actionCmd = e.getActionCommand();\n\t\t\tif(actionCmd.equals(\"Yes\")) { //재게임 하겠다\n\t\t\t\t\n\t\t\t\tif(GameType.equalsIgnoreCase(\"Theory\")) { //이론 게임 선택 \n\t\t\t\t\tTheoryJavaGame theoryjava = new TheoryJavaGame(user.getId());\n\t\t\t\t\ttheoryjava.setVisible(true);\n\t\t\t\t}else if(GameType.equalsIgnoreCase(\"Lab\")) { //실습 게임 선택 \n\t\t\t\t\tLabJavaGame labjava = new LabJavaGame(user.getId());\n\t\t\t\t\tlabjava.setVisible(true);\n\t\t\t\t}else {\n\t\t\t\t\tJOptionPane.showMessageDialog(new TheoryJavaGame(user.getId()), \n\t\t\t\t\t\t\t\"Please enter it correctly.\", \n\t\t\t\t\t\t\t\"Submission Error\", \n\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t}\n\t\t\t\tdispose();\n\n\t\t\t}else if(actionCmd.equals(\"No\")) { //재게임 하지 않겠다\n\t\t\t\tLogin log = new Login(); //로그인 페이지로 돌아가기\n\t\t\t\tlog.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}else\n\t\t\t\tSystem.out.println(\"Unexpected Error\"\n\t\t\t\t\t\t+ \" in Confirm Window\");\n\t\t}",
"private void gameWonDialog() {\n // stack overflow\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle((game.isPlayer_turn()) ? R.string.player_win_title : R.string.bank_win_title);\n builder.setMessage((game.isPlayer_turn()) ? R.string.player_win_message : R.string.bank_win_message);\n\n // Set up the buttons\n builder.setPositiveButton(R.string.play_again, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n resetGame();\n }\n });\n builder.setNegativeButton(R.string.return_to_home, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n returnToMain();\n }\n });\n //builder.show();\n\n AlertDialog alert = builder.create();\n alert.show();\n Button nbutton = alert.getButton(DialogInterface.BUTTON_NEGATIVE);\n nbutton.setBackgroundColor(getResources().getColor(R.color.bank_red));\n Button pbutton = alert.getButton(DialogInterface.BUTTON_POSITIVE);\n pbutton.setBackgroundColor(getResources().getColor(R.color.yale_blue));\n }",
"public void popUp(ArrayList<Integer> list){\n\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\n alert.setTitle(\"You Have Won The Game!\");\n alert.setHeaderText(\"Your Score: \" + animal.getPoints() + \"!\");\n alert.setContentText(Integer.toString(list.get(0)));\n\n String highScoreContent = String.format(\"Highscore\\n1. \" + list.get(0) + \"\\n2. \" + list.get(1) + \"\\n3. \" + list.get(2) + \"\\n4. \" + list.get(3) + \"\\n5. \" + list.get(4));\n alert.setContentText(highScoreContent);\n\n ButtonType backToMainMenu = new ButtonType(\"Back to Main Menu\");\n ButtonType quit = new ButtonType(\"Quit Game\");\n alert.getButtonTypes().setAll(backToMainMenu,quit);\n\n alert.setOnCloseRequest(e -> {\n ButtonType result = alert.getResult();\n if(result!= null && result == quit){\n primaryStage.close();\n } else {\n sceneManager sm = new sceneManager(primaryStage);\n sm.toMenuScene();\n }\n });\n\n alert.show();\n }",
"public void correctAnswer(){\n AlertDialog.Builder dialogBoxAns = new AlertDialog.Builder(this);\n //set title to dialog box\n dialogBoxAns.setTitle(\"Results\");\n //set correct message to dialog box\n dialogBoxAns.setMessage((Html.fromHtml(\"<font color='#39FF14'> CORRECT! </font> \")));\n //set button to dialog box\n dialogBoxAns.setPositiveButton(\"OK\", null);\n //create new dialog box\n AlertDialog dialog = dialogBoxAns.create();\n dialog.show();\n }",
"public void showWinMessage(String info) {\n\t\tAlert al = new Alert(AlertType.WARNING);\n\t\tal.setTitle(\"Se termino el juego\");\n\t\tal.setHeaderText(\"Ganaste\");\n\t\tal.setContentText(info);\n\t\tal.showAndWait();\n\t}",
"private void gameWonDialog() {\n Toast makeText;\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.game_won), Toast.LENGTH_LONG);\n makeText.show();\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.final_score) + score, Toast.LENGTH_LONG);\n makeText.show();\n }",
"public void GameWin () {\n\t\t\n\t\twordDashes.setText(mysteryWord);\n\t\tguessBttn.setVisible(false);\n\t\tguessFullWord.setVisible(false);\n\t\tAnswerBox.setDisable(true); //can no longer use the text box\n\t\tresultMessage.setText(\" Great Job!!\\nYou Guessed the Word!!\");\n\t\tplayAgain.setVisible(true); \n\t\t\n\t}",
"private void alertBox(String title, String message) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"GPS Anda tampaknya dinonaktifkan, apakah Anda ingin mengaktifkannya?\")\n .setCancelable(false)\n .setTitle(\"STATUS GPS\")\n .setPositiveButton(\n \"YA\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n /* this gonna call class of settings then dialog interface disappeared */\n Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n startActivity(intent);\n dialog.cancel();\n }\n }\n )\n .setNegativeButton(\"TIDAK\", new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id) {\n dialog.cancel();\n }\n }\n );\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }",
"private void showAlert() {\n AlertDialog.Builder alert = new AlertDialog.Builder(this);\n alert.setMessage(\"Error al autenticar usuario\");\n alert.setPositiveButton(\"Aceptar\", null);\n AlertDialog pop = alert.create();\n alert.show();\n }",
"public void emitirSaludoConGui()\n {\n JOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"<html><p style ='color: red'>Saludo en modo gráfico </p></html>\" + \n\t\t\t\t\t\"\\n\\nBienvenido/a al curso de programación orientada a objetos\\n en Java utilizando BlueJ\",\n\t\t\t\t\t\"Ejemplo de prueba\", JOptionPane.INFORMATION_MESSAGE);\n }",
"private void success() {\n showMessage(\"Congratulations!\", \"success\");\n }",
"public static void main(String[] args) {\n\n JOptionPane.showMessageDialog(null, \"This is a message dialog box\", \"title\", JOptionPane.PLAIN_MESSAGE);\n JOptionPane.showMessageDialog(null, \"Here is some useless info\", \"title\", JOptionPane.INFORMATION_MESSAGE);\n JOptionPane.showMessageDialog(null, \"really?\", \"title\", JOptionPane.QUESTION_MESSAGE);\n JOptionPane.showMessageDialog(null, \"Your computer has a VIRUS!\", \"title\", JOptionPane.WARNING_MESSAGE);\n JOptionPane.showMessageDialog(null, \"CALL TECH SUPPORT OR ELSE!\", \"title\", JOptionPane.ERROR_MESSAGE);\n\n\n //int answer = JOptionPane.showConfirmDialog(null, \"bro, do you even code?\");\n //String name = JOptionPane.showInputDialog(\"What is your name?: \");\n\n ImageIcon icon = new ImageIcon(\"smile.png\");\n String[] responses = {\"No, you are!\",\"thank you!\",\"*blush*\"};\n int answer = JOptionPane.showOptionDialog(\n null,\n \"You are the best! :D\",\n \"Secret message\",\n JOptionPane.DEFAULT_OPTION,\n 0,\n icon,\n responses,\n responses[0]);\n System.out.println(answer);\n\n }",
"private void alert(String title, String msg) {\n if (title.isEmpty() || msg.isEmpty()) {\n return;\n }\n if (isFinishing()) {\n return;\n }\n new AlertDialog.Builder(this).setTitle(title).setMessage(msg)\n .setIcon(android.R.drawable.ic_dialog_info)\n .setNeutralButton(R.string.ok, null).show();\n }",
"private void showDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"User created successfully\");\n builder.setIcon(R.drawable.ic_shield);\n builder.setCancelable(true);\n builder.setPositiveButton(\n \"Continue\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n finish();\n }\n });\n AlertDialog alert11 = builder.create();\n alert11.show();\n Window window = alert11.getWindow();\n assert window != null;\n WindowManager.LayoutParams wlp = window.getAttributes();\n wlp.gravity = Gravity.CENTER;\n wlp.y = 270;\n wlp.flags &= ~WindowManager.LayoutParams.FLAG_DIM_BEHIND;\n window.setAttributes(wlp);\n }",
"private void displayAlert(String title, String message) {\n\t\tStage window = new Stage();\n\t\twindow.initModality(Modality.APPLICATION_MODAL);\n\t\twindow.setTitle(title);\n\t\twindow.setHeight(100);\n\n\t\tLabel errorMessage = new Label(message);\n\t\terrorMessage.setPrefWidth(150 + message.length() * 5);\n\t\terrorMessage.setAlignment(Pos.CENTER);\n\t\tButton close = new Button(\"Okay\");\n\t\tclose.setOnAction(event -> window.close());\n\n\t\twindow.setWidth(errorMessage.getPrefWidth());\n\n\t\tVBox layout = new VBox();\n\t\tlayout.getChildren().addAll(errorMessage, close);\n\t\tlayout.setAlignment(Pos.CENTER);\n\t\tlayout.setSpacing(15);\n\n\t\tScene scene = new Scene(layout);\n\t\twindow.setScene(scene);\n\t\twindow.showAndWait();\n\t}",
"private void newHighScoreAlert() {\n\t\tAlert alert = new Alert(AlertType.INFORMATION);\n\t\t\n\t\talert.setTitle(\"New High Score!\");\n \talert.setHeaderText(\"You Got A New High Score!\\nYour High Score: \" + level.animal.getPoints());\n \talert.setContentText(\"Enter Your Name With Alphabet Or Digit Keys.\\nPress 'Enter' To Confirm Your Name Afterwards.\");\n \talert.show();\n\t}",
"private void alert(String title, String msj){\n android.app.AlertDialog.Builder alertDialog = new android.app.AlertDialog.Builder(getActivity());\n alertDialog.setTitle(title);\n alertDialog.setMessage(msj);\n alertDialog.setPositiveButton(getString(R.string.alert_accept), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n alertDialog.show();\n }",
"public void alertForOuitMessage() {\n final AlertDialog.Builder builder = new AlertDialog.Builder(context);\n final AlertDialog alert = builder.create();\n alert.getWindow().getAttributes().windowAnimations = R.style.alertAnimation;\n View view = alert.getLayoutInflater().inflate(R.layout.quiz_quit_alert, null);\n TextView title1 = (TextView) view.findViewById(R.id.title1);\n title1.setText(context.getString(R.string.quiz_quit_are));\n title1.setTypeface(VodafoneRg);\n TextView title2 = (TextView) view.findViewById(R.id.title2);\n title2.setText(context.getString(R.string.quiz_quit_progress));\n title2.setTypeface(VodafoneRg);\n TextView quiz_text = (TextView) view.findViewById(R.id.quit_text);\n quiz_text.setTypeface(VodafoneRg);\n LinearLayout quit_layout = (LinearLayout) view.findViewById(R.id.quit_layout);\n alert.setCustomTitle(view);\n TextView quit_icon = (TextView) view.findViewById(R.id.quit_icon);\n quit_icon.setTypeface(materialdesignicons_font);\n quit_icon.setText(Html.fromHtml(\"\"));\n quit_layout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n alert.dismiss();\n finish();\n }\n });\n alert.show();\n }",
"private void showCheckDialog() {\n AlertDialog.Builder showAuditAlert = new AlertDialog.Builder(this); // Create Alert dialog\n showAuditAlert.setTitle(\"Total prize\"); // Set title\n showAuditAlert.setMessage(\"= \"+mydb.getResultDayAudit(year,month,day).intValue()+\"\"); // Set message\n\n showAuditAlert.setPositiveButton(\"Done\",\n new DialogInterface.OnClickListener()\n { // Can hear \"CLICK\"\n @Override\n public void onClick(DialogInterface dialog,int which)\n {\n \tdialog.dismiss(); // CLICK then disappear\n }\n }\n );\n showAuditAlert.show(); // Show dialog that created upper this line\n }",
"@Override\n public void handle(ActionEvent event) {\n alert = new Alert(AlertType.CONFIRMATION);\n //Optional title. If not used the standard title \"Confiramation\" will be displayed\n //To remove the title use alert.setTitle(null);\n alert.setTitle(\"Confirmation Dialog\");\n //Optional header.If not used the standard header \"Confiramation\" will be displayed\n //To remove the title use alert.setHeaderText(null); \n alert.setHeaderText(\"Please answer the question!\");\n alert.setContentText(initText);\n //Display the dialog and get the result from the user action\n Optional<ButtonType> result = alert.showAndWait();\n if (result.get() == ButtonType.OK){\n // the user clicked OK\n alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(\"Important message for you!\");\n alert.setContentText(\"Happiness is ephemeral!\");\n alert.showAndWait(); \n //the user clocked Cancel\n } else {\n // ... user chose CANCEL or closed the dialog\n //Warning Dialog\n alert = new Alert(AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setHeaderText(\"Read the Warning!\");\n alert.setContentText(\"You must like Java - Shall make you Happy!\");\n alert.showAndWait(); \n }\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Instrucciones: \" + \"\\n1. Has de darle al boton iniciar juego \"\n\t\t\t\t\t\t+ \"\\n2. Aparecen los espacios de las letras de una palabra oculta \"\n\t\t\t\t\t\t+ \"\\n3. Has de adivinar la palabra pulsando en el teclado de palabras que hay abajo \"\n\t\t\t\t\t\t+ \"\\n4. Si te equivocas, el ahorcado se ira completando \"\n\t\t\t\t\t\t+ \"\\n5. Tienes 10 intentos antes de que se complete el ahorcado \"\n\t\t\t\t\t\t+ \"\\n6. Puedes usar las pistas las cuales te descubriran una letra, tienes una pista por partida\"\n\t\t\t\t\t\t+ \"\\n7. al principio del juego puedes elegir hasta 5 vidas, cada vez que solicitas una pista perderas una vida \"\n\t\t\t\t\t\t+ \"\\n8. cada vez que pierdes la partida, perderas una vida \");\n\n\t\t\t}",
"public void winMessage() {\r\n\t\tSystem.out.print(\"\\n\\nCongratulations! You've won the game! :D\");\r\n\t\tSystem.exit(0);\r\n\t}",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"@SuppressWarnings(\"deprecation\")\n\t\tprivate void alertDialog(String msg) \n\t\t{\n\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(LoginScreenActivity.this).create();\n\t alertDialog.setTitle(\"StyleZ\");\n\t alertDialog.setMessage(msg);\n\t alertDialog.setButton(\"OK\", new DialogInterface.OnClickListener() \n\t {\n\t public void onClick(DialogInterface dialog, int which) {\n\t \t\n\t // Write your code here to execute after dialog closed\n\t dialog.dismiss();\n\t \n\t if(strstatus.equals(\"success\"))\n\t {\n\t Intent i=new Intent(LoginScreenActivity.this,StyleZTab.class);\n\t startActivity(i);\n\t finish();\n\t }\n\t else\n\t {\n\t \t imgviewloginon.setVisibility(View.GONE);\n\t imgviewloginoff.setVisibility(View.VISIBLE);\n\t }\n\t }\n\t });\n\t alertDialog.show();\n\t\t}",
"public void alert(String message);",
"private void successDialog() {\n AlertDialog dialog = _dialogFactory.createDialog(this, R.string.completed, R.string.success);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, getString(R.string.ok), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n gotoGameEnd(IGameConstants.GAME_SUCCESS);\n }\n });\n\n dialog.setCancelable(false);\n _dialogActive = true;\n dialog.show();\n }",
"public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }",
"public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}",
"public void working() {\n\t\t Dialog d = new Dialog(this);\r\n\t\t d.setTitle(\"hech yea!\");\r\n\t\t TextView tv = new TextView(this);\r\n\t\t tv.setText(\"Success\");\r\n\t\t d.setContentView(tv);\r\n\t\t d.show();\t\r\n\t}",
"private void alert(String title, String message) {\n UIAlertView alertView = new UIAlertView(title, message, null, \"OK\");\n alertView.show();\n }",
"private void showAlert() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setTitle(\"Info..\");\r\n builder.setMessage(\"Your password reset email has been sent!\\n\" +\r\n \"\\n\" +\r\n \"We have sent a password reset email to your email address:\\n\" +\r\n \"\\n\" +\r\n input_email.getText().toString()+\"\\n\" +\r\n \"\\n\" +\r\n \"Please check your inbox to continue.\");\r\n\r\n builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n finish();\r\n }\r\n });\r\n /* builder.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.dismiss();\r\n }\r\n });*/\r\n // create and show the alert dialog\r\n AlertDialog dialog = builder.create();\r\n dialog.show();\r\n }",
"public static void alert(String message) {\r\n\t Stage window = new Stage();\r\n\r\n\t // Blokira klikanje na druge povrsine sem pop-up\r\n\t window.initModality(Modality.APPLICATION_MODAL);\r\n\t window.setTitle(\"Alert\");\r\n\t window.setMinWidth(250);\r\n\t window.setMinHeight(100);\r\n\t \r\n\t // Label\r\n\t Label label = new Label();\r\n\t label.setText(message);\r\n\t Button closeButton = new Button(\"Close\");\r\n\t closeButton.setOnAction(e -> window.close());\r\n\r\n\t // Layout\r\n\t VBox layout = new VBox(10);\r\n\t layout.getChildren().addAll(label, closeButton);\r\n\t layout.setAlignment(Pos.CENTER);\r\n\r\n\t // Pop-up ostaje aktivan\r\n\t Scene scene = new Scene(layout);\r\n\t window.setScene(scene);\r\n\t window.showAndWait();\r\n\t }",
"void AlertaValidacion(String title, String message){\n AlertDialog.Builder builder = new AlertDialog.Builder(RegisterActivity.this);\n builder.setTitle(title);\n builder.setMessage(message).setPositiveButton(\"ACEPTAR\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }",
"public void showReportAbuseSuccess() {\n try {\n AlertDialog.Builder builder = new AlertDialog.Builder(this.mContext);\n builder.setTitle(this.mContext.getResources().getString(R.string.consult_report_abuse_thanks));\n builder.setMessage(this.mContext.getResources().getString(R.string.consult_comment_report_abuse_success));\n builder.setPositiveButton(this.mContext.getResources().getString(R.string.alert_dialog_confirmation_ok_button_text), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n builder.show();\n } catch (Exception unused) {\n Trace.w(TAG, \"Failed to show disclaimer for consult photo editing\");\n }\n }",
"public void showMessage(){\n final AlertDialog.Builder alert = new AlertDialog.Builder(context);\n alert.setMessage(message);\n alert.setTitle(title);\n alert.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n alert.create().dismiss();\n }\n });\n alert.create().show();\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n builder.setMessage(R.string.alertMessage)\n .setCancelable(false)\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n //buClick();\n //finish();\n dialog.cancel();\n calculat();\n\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'NO' Button\n dialog.cancel();\n\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n //Setting the title manually\n alert.setTitle(R.string.alertTitle);\n alert.show();\n }",
"private void showGameOverDialog() {\n this.computerPaquetView.showOnceHiddenCards();\n int dialogResult = JOptionPane.showConfirmDialog (null, String.format(\"%s, you have lost!\\nPlay again?\", this.blackjackController.getHumanPlayer().getName()),\"\", JOptionPane.YES_NO_OPTION);\n if(dialogResult == JOptionPane.YES_OPTION){\n this.blackjackController.getHumanPlayer().resetBudget();\n this.startGame();\n } else {\n this.dispose();\n }\n }",
"public void showWinMessage() {\n\n\t}",
"private void newGame() \n {\n int input = JOptionPane.showConfirmDialog(null, \"Would you like to play again?\\n\",\"Game has ended\",JOptionPane.YES_NO_OPTION);\n if (input == JOptionPane.NO_OPTION){\n JOptionPane.showMessageDialog(null, \"Thank you for playing! \\n\\nBye Bye!\",\"Game Over\", JOptionPane.PLAIN_MESSAGE);\n System.exit(0);\n }\n else if (input == JOptionPane.YES_OPTION){\n isFirst = false;\n init();\n gameLogic();\n }\n }",
"public static void showAlert(String message, Activity context) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setMessage(message).setCancelable(false)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n\n }\n });\n try {\n builder.show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"private void showFinalScore() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Time's up! Your final score is: \" + score + \"\\nHigh score: \" + highScore);\n builder.setOnDismissListener(unused -> finish());\n AlertDialog dialog = builder.create();\n dialog.show();\n }",
"@Override\n public void run() {\n Player winner = game.getWinner();\n String result = winner.getName() + \" won the game!\";\n\n // pass the string referred by \"result\" to make an alert window\n // check the bottom of page 9 of the PA description for the appearance of this alert window\n Alert alert = new Alert(AlertType.CONFIRMATION, result, ButtonType.YES, ButtonType.NO);\n alert.showAndWait();\n if (alert.getResult() == ButtonType.YES)\n {\n Platform.exit();\n }\n }",
"private void showDialog(String msg) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n }",
"protected void aboutUs(ActionEvent arg0) {\n\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\"A Curriculum Design of DBMS By psiphonc in NOV.2019\");\r\n\t}",
"public void showCorrectDialog() {\n\t\t //get correct dialog box image\n\t\t URL greenIconURL = getClass().getResource(\"green.png\");\n\t\t Image greenImage = getToolkit().getImage(greenIconURL);\n\t\t ImageIcon greenIcon = new ImageIcon(greenImage);\n\t\t \n\t\t //show dialog box\n\t\t JOptionPane.showMessageDialog(this,\n\t\t\t\t \"Good job!\", //answer message\n\t\t\t\t \"Correct\", //title bar\n\t\t\t\t JOptionPane.INFORMATION_MESSAGE, \n\t\t\t\t greenIcon);\n\t\t \n\t\t //enable next button\n\t\t next.setEnabled(true);\n\t }",
"private void correctDialog() {\n // Update score.\n updateScore(scoreIncrease);\n\n // Show Dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Correct! This Tweet is \" + (realTweet ? \"real\" : \"fake\"));\n //builder.setPositiveButton(\"OK\", (dialog, which) -> chooseRandomTweet());\n builder.setOnDismissListener(unused -> chooseRandomTweet());\n AlertDialog dialog = builder.create();\n dialog.show();\n }",
"public void actionPerformed (ActionEvent e) {\n\t \t\tJOptionPane.showMessageDialog(frame3,\n\t \t\t\t \"Player 1 is blue \\n\"\n\t \t\t\t \t\t+ \"Player 2 is red \\n\"\n\t \t\t\t \t\t+ \"Player 3 is green \\n\"\n\t \t\t\t \t\t+ \"Player 4 is yellow \\n\"\n\t \t\t\t \t\t+ \"A Warrior's token is a circle. Range:1, Move:3\\n\"\n\t \t\t\t \t\t+ \"A Ranger's token is a square. Range:4, Move:5\\n\"\n\t \t\t\t \t\t+ \"A Rogue's token is a triangle. Range:1, Move:6\\n\"\n\t \t\t\t \t\t+ \"A healer's token is a star. Range:3, Move:4\\n\"\n\t \t\t\t \t\t+ \"A Damage Mage's token is a pentagon. Range:3, Move:4\\n\", \n\t \t\t\t \"Key\",\n\t \t\t\t JOptionPane.PLAIN_MESSAGE);\n\t \t}",
"private void showAlert(){\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(\"Your further details please:\")\n .setView(view);\n builder.setPositiveButton(\"Proceed\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent it = new Intent(getActivity(), StudentFurtherDetails.class);\n getActivity().startActivity(it);\n }\n\n });\n //call api for insertion\n builder.setNegativeButton(\"Later\", null)\n .setCancelable(false);\n AlertDialog alert = builder.create();\n alert.show();\n }",
"@Then(\"^User should see a predefined alert box$\")\r\n\tpublic void user_should_see_a_predefined_alert_box() throws Throwable {\n\t\tSystem.out.println(\"Alert message pop-ups on the screen\");\r\n\t}",
"private void displayDuplicateInputError(){\n\t\tAlert alert = new Alert(Alert.AlertType.INFORMATION);\n\t\talert.setTitle(\"Duplicate Letter Dialog\");\n\t\talert.setHeaderText(\"Pay Attention!\");\n\t\talert.setContentText(\"You have already tried that letter, please try again\");\n\t\talert.showAndWait();\n\t}",
"public void winDialog() {\n\n\t\tif (JOptionPane.showOptionDialog(null,\n\t\t\t\t\"Player \" + playerTurn\n\t\t\t\t\t\t+ \" created a SAP and wins the game! Congratulations!\\nWould you like to play again?\",\n\t\t\t\t\"Game Over\", 0, JOptionPane.PLAIN_MESSAGE, null, options, options[0]) == JOptionPane.YES_OPTION) {\n\t\t\trestartGame();\n\t\t} else {\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t}",
"public void displayInvalidNumberAlert(int i) {\r\n String invalidMessage = \"\";\r\n\r\n if(i == 1)\r\n invalidMessage = \"PLEASE ENTER A VALID NUMBER, 2 OR ABOVE, FOR YOUR AGE!!!\";\r\n else if(i == 2)\r\n invalidMessage = \"PLEASE ENTER A VALID HEIGHT IN INCHES!!!\";\r\n else\r\n invalidMessage = \"PLEASE ENTER A VALID WEIGHT IN POUNDS!!!\";\r\n\r\n //build error box\r\n AlertDialog.Builder newDialog = new AlertDialog.Builder(MainActivity.this);\r\n newDialog.setMessage(invalidMessage).setCancelable(false)\r\n .setPositiveButton(\"GOT IT!\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.cancel();\r\n }\r\n });\r\n //create alert box\r\n AlertDialog alert = newDialog.create();\r\n alert.setTitle(\"ERROR\");\r\n alert.show();\r\n }",
"public void message() {\n JOptionPane.showMessageDialog(null,\n \"Task was deleted successfully.\",\n \"Message\", JOptionPane.INFORMATION_MESSAGE);\n }",
"public void alertDialogBasico() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\r\n // 2. Encadenar varios métodos setter para ajustar las características del diálogo\r\n builder.setMessage(R.string.dialog_message);\r\n\r\n\r\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\r\n public void onClick(DialogInterface dialog, int id) {\r\n\r\n }\r\n });\r\n\r\n\r\n builder.show();\r\n\r\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"<html><center><u><strong>Edité par :</strong></u><br>RAHMANI ABD EL KADER<br>SEIF EL ISLEM<br> Groupe 1 Section 1</center></html>\", \"A propros\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}",
"public void exibeMensagem(String mensagem) {\n JOptionPane.showMessageDialog(null, mensagem);\n }",
"private void SuccessfulBox(View v){\n \t//create an alert box with specified properties\n \tnew AlertDialog.Builder(this)\n \t.setTitle(\"Submit Successfully!\")\n \t.setMessage(\"New prescription information has been added to\" + \" \" +item)\n \t.setNeutralButton(\"ok\", null)\n \t.show();\n }",
"private void showAlert(String message) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(message).setTitle(\"Response from Yourcare\")\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t// do nothing\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tIntent intent = new Intent(getApplicationContext(),CapturePrescriptionActivity.class);\n\t\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\t\tfinish();\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}",
"private void showReturnDialog(){\n final Dialog verificationDialog = new Dialog(this, R.style.DialogTheme);\n verificationDialog.setContentView(R.layout.dialog_verification);\n TextView verificationText = (TextView) verificationDialog.findViewById(R.id.verification_text);\n Button cancelButton = (Button) verificationDialog.findViewById(R.id.cancel_button);\n Button acceptButton = (Button) verificationDialog.findViewById(R.id.accept_button);\n verificationDialog.show();\n\n verificationText.setText(R.string.verification_return);\n\n // Setting up a listener for the Cancel Button:\n cancelButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n }\n });\n\n // Setting up a listener for the Done Button:\n acceptButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n // Play a proper sound:\n if(mSoundStatus.equals(Constants.ON)) mPutPieceSound.start();\n\n // Dismiss dialog:\n verificationDialog.dismiss();\n\n // Go back to main menu:\n\n // Creating an intent:\n Intent mainIntent = new Intent(OfflineGameActivity.this , MainActivity.class);\n // Starting the Main Activity:\n startActivity(mainIntent);\n\n }\n });\n\n }",
"@Override\n public void messagePrompt(String message) {\n JOptionPane.showMessageDialog(lobbyWindowFrame,message+\" is choosing the gods\");\n }",
"public void actionPerformed (ActionEvent e) {\n \t\tJOptionPane.showMessageDialog(frame3,\n \t\t\t \"Player 1 is blue \\n\"\n \t\t\t \t\t+ \"Player 2 is red \\n\"\n \t\t\t \t\t+ \"Player 3 is green \\n\"\n \t\t\t \t\t+ \"Player 4 is yellow \\n\"\n \t\t\t \t\t+ \"A Warrior's token is a circle. Range:1, Move:3\\n\"\n \t\t\t \t\t+ \"A Ranger's token is a square. Range:4, Move:5\\n\"\n \t\t\t \t\t+ \"A Rogue's token is a triangle. Range:1, Move:6\\n\"\n \t\t\t \t\t+ \"A healer's token is a star. Range:3, Move:4\\n\"\n \t\t\t \t\t+ \"A Damage Mage's token is a pentagon. Range:3, Move:4\\n\", \n \t\t\t \"Key\",\n \t\t\t JOptionPane.PLAIN_MESSAGE);\n \t}",
"private void showWinnerDialog(Player player) {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Congratulations \" + player.getName() + \", You are Victorious!!\", new ButtonType(\"Close\", ButtonBar.ButtonData.NO), new ButtonType(\"Play Again\", ButtonBar.ButtonData.YES));\n alert.setGraphic(new ImageView(new Image(this.getClass().getResourceAsStream(\"/Images/winner.png\"))));\n alert.setHeaderText(null);\n alert.setTitle(player.getName() + \" Wins!!\");\n alert.showAndWait();\n if (alert.getResult().getButtonData() == ButtonBar.ButtonData.YES) {\n onReset();\n }\n }",
"public void alertSaveSuccess() {\n\t\tthis.alert(\"Saved\",\"Game saved\",AlertType.INFORMATION);\n\t}",
"public boolean displayPrompt(String msg);",
"public void showWarningMessage(View view){\n\n //Show popup to warn user about the entered start and destiantion Addresses\n builder = new AlertDialog.Builder(this);\n //Setting message manually and performing action on button click\n builder.setMessage(\"Please insert a start and a destination address!\")\n .setCancelable(false)\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // finish();\n Toast.makeText(getApplicationContext(),\"you choose yes action for the warning popup\",\n Toast.LENGTH_SHORT).show();\n }\n });\n /* .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'NO' Button\n dialog.cancel();\n Toast.makeText(getApplicationContext(),\"you choose no action for for the warning popup\",\n Toast.LENGTH_SHORT).show();\n }\n } );*/\n //Creating dialog box\n AlertDialog alert = builder.create();\n //Setting the title manually\n alert.setTitle(\"WARNING!\");\n alert.show();\n }",
"private void GeefFoutboodschap(String s) {\n new AlertDialog.Builder(this)\n .setTitle(\"Onbekende kode\")\n .setMessage(\n \"Arduino heeft een onbekende kode \" + s\n + \" opgestuurd. Het programma wordt gestopt \")\n .setPositiveButton(android.R.string.yes,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int which) {\n finish();\n }\n }).show();\n }",
"private void incorrectDialog() {\n // Update score.\n updateScore(scoreDecrease);\n\n // Show Dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"TRUMPED! This Tweet is \" + (realTweet ? \"real\" : \"fake\"));\n //builder.setPositiveButton(\"OK\", (dialog, which) -> chooseRandomTweet());\n builder.setOnDismissListener(unused -> chooseRandomTweet());\n AlertDialog dialog = builder.create();\n dialog.show();\n }"
] | [
"0.7212688",
"0.71935713",
"0.7167933",
"0.71604216",
"0.7106242",
"0.706826",
"0.7026761",
"0.6916976",
"0.6908124",
"0.68516314",
"0.6766359",
"0.6741624",
"0.6738511",
"0.6702895",
"0.6688617",
"0.66812575",
"0.6673046",
"0.66721404",
"0.6640191",
"0.6638211",
"0.6637263",
"0.6611966",
"0.66039175",
"0.6602125",
"0.6594657",
"0.6585364",
"0.6577599",
"0.6572477",
"0.6570391",
"0.65697134",
"0.65558857",
"0.6550486",
"0.65452707",
"0.65390915",
"0.65240884",
"0.65110105",
"0.6508947",
"0.65021366",
"0.64996225",
"0.6497074",
"0.64946556",
"0.6490229",
"0.64888",
"0.6481348",
"0.6480934",
"0.64751357",
"0.647033",
"0.6465323",
"0.6463678",
"0.64586574",
"0.6457941",
"0.64405787",
"0.643923",
"0.64384514",
"0.6430869",
"0.642945",
"0.64265704",
"0.6421007",
"0.64170456",
"0.64156914",
"0.6407108",
"0.6406706",
"0.64063734",
"0.6399997",
"0.63979006",
"0.6393739",
"0.6392689",
"0.6387649",
"0.63820004",
"0.6380842",
"0.637967",
"0.63777983",
"0.6375053",
"0.6359514",
"0.63585776",
"0.6348075",
"0.6334427",
"0.6332208",
"0.63315535",
"0.63277113",
"0.63238955",
"0.63238114",
"0.6316486",
"0.63096106",
"0.6296764",
"0.6292225",
"0.6291831",
"0.6290127",
"0.6288389",
"0.6284664",
"0.6283663",
"0.6273521",
"0.62698275",
"0.626868",
"0.6267981",
"0.6267842",
"0.6265867",
"0.6265624",
"0.6258293",
"0.62512547"
] | 0.65130836 | 35 |
this function is the main backbone of the game. | private void play() {
//play a new game
g=rando.nextInt(database.length);
String newWord = database[g];
while(newWord.equals(currentWord))
{
g=rando.nextInt(database.length); //random word is chosen diffferent from prev. word.
newWord = database[g];
}
currentWord = newWord; //update current word.
cViews = new TextView[currentWord.length()];
wLayout.removeAllViews();
int i=0;
while(i!=currentWord.length()){
cViews[i] = new TextView(this);
cViews[i].setText("" + currentWord.charAt(i));
LayoutParams lp=new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
cViews[i].setLayoutParams(lp);
cViews[i].setGravity(Gravity.CENTER);
cViews[i].setTextColor(Color.WHITE); //word is present but in white color.
cViews[i].setBackgroundResource(R.drawable.l_bg);
//add to layout
wLayout.addView(cViews[i]);
i++;
}
lAdapt=new LAdapter(this);
letters.setAdapter(lAdapt); //adding letter butttons dynamically.
currentPart=0;
numChars=currentWord.length();
numCorrect=0;
for(int p = 0; p < numParts; p++) {
arr[p].setVisibility(View.INVISIBLE); //set all body parts to invisible
}
// pop();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void beginGame() {\n }",
"@Override\n public void loadGame() {\n\n }",
"public void preGame() {\n\n\t}",
"@Override\n public void newGame() {\n //TODO Implement this method\n }",
"public void createGame();",
"void gameStarted();",
"void gameStarted();",
"public void newGame();",
"public void newGame();",
"public void newGame();",
"public ProjectGame() {\n\n super(\"BulletHell\", 1200, 900);\n die = new Event();\n backgroundMusic = new SoundManagerClass();\n playButton.setPositionX(420);\n playButton.setPositionY(180);\n quitButton.setPositionX(623);\n quitButton.setPositionY(181);\n //x = 0;\n reduceLife = new Event();\n fadeOutEvent = new Event();\n PickedUpEvent = new Event();\n die.setEventType(\"playerDeath\");\n fadeOutEvent.setEventType(\"FadeOut\");\n reduceLife.setEventType(\"Collision\");\n collidedEvent = new Event();\n collidedEvent.setEventType(\"CollidedEvent\");\n throwKnife = new Event();\n throwKnife.setEventType(\"throwKnife\");\n\n\n keyIcon.setPositionX(200);\n keyIcon.setPositionY(40);\n\n knifeIcon.setPositionX(205);\n knifeIcon.setPositionY(95);\n\n currentLevel = 0;//0 = base , 3=brigham's level\n\n\n PickedUpEvent.setEventType(\"CoinPickedUp\");\n\n this.addEventListener(myQuestManager, collidedEvent.getEventType());\n\n\n background.setScaleX(5);\n background.setScaleY(5);\n\n background.setScaleX(5);\n background.setScaleY(5);\n\n\n player = new Player(\"player\", \"resources/player_sheet.png\", \"idle_right\");\n player.setSpriteSheetJson(\"resources/player_sheet.json\");\n player.setDelay(100);\n\n player.getLifeArray().get(0).setPositionX(390);\n player.getLifeArray().get(0).setPositionY(40);\n player.getLifeArray().get(1).setPositionX(420);\n player.getLifeArray().get(1).setPositionY(40);\n player.getLifeArray().get(2).setPositionX(450);\n player.getLifeArray().get(2).setPositionY(40);\n // player.setHasPhysics(true);\n keyCount = 0;\n knifeCount = 4;\n // player.setHasPhysics(true);\n\n // platform.setPositionX(50);\n // platform.setPositionY(550);\n\n\n // platform1.setPositionX(150);\n // platform1.setPositionY(150);\n\n\n player.setPositionX(550);\n player.setPositionY(700);\n\n pressE = new Sprite(\"pressE\", \"pressE.png\");\n player.addChild(pressE);\n pressE.setPositionY(-50);\n\n\n coin.setPositionY(250);\n coin.setPositionX(660);\n\n findKey.setPositionX(500);\n findKey.setPositionY(-20);\n\n getToRoom.setPositionX(500);\n getToRoom.setPositionY(-20);\n\n killTurtle.setPositionX(500);\n killTurtle.setPositionY(-20);\n\n\n //Rectangle2D rect = new Rectangle2D.Float(600,400,700,500);\n //coverList = new ArrayList<Rectangle2D>(); //list of cover sprites\n //coverList.add(rect);\n\n ///////////////////////////////////////LEVEL 0 ////////////////////////////////////////////////////////////////\n\n if (currentLevel == 0) {\n\n tutorial = new TutorialLevel1(\"Tutorial\");\n tutorial.run();\n addChild(tutorial);\n\n myLevel = new Level0(\"Room1\");\n myLevel.run();\n addChild(myLevel);\n\n\n myLevel1 = new Level1(\"Room2\");\n myLevel1.run();\n myLevel1.hide();\n addChild(myLevel1);\n\n myLevel2 = new ahmedslevel(\"Room3\", player);\n myLevel2.run();\n myLevel2.hide();\n addChild(myLevel2);\n\n myLevel3 = new BrighamLevel(\"Room4\");\n myLevel3.run();\n myLevel3.hide();\n addChild(myLevel3);\n\n level4 = new AlternatingSpikesLevel(\"Room6\");\n level4.run();\n level4.hide();\n addChild(level4);\n\n bossLevel = new BossLevel(\"Room5\", player);\n bossLevel.run();\n bossLevel.hide();\n addChild(bossLevel);\n\n\n\n tutorial.mapDoorToRoom(0,myLevel);\n myLevel.mapDoorToRoom(0, myLevel1);\n myLevel1.mapDoorToRoom(0, myLevel2);\n myLevel2.mapDoorToRoom(0, myLevel3);\n myLevel3.mapDoorToRoom(0, level4);\n level4.mapDoorToRoom(0, bossLevel);\n //myLevel3.mapDoorToRoom(0,bossLevel);\n\n\n currentRoom = tutorial;\n\n //myLevel1.mapDoorToRoom(0,myLevel2);\n\n //myLevel2.run();\n //myLevel2.hide();\n\n\n //myLevel2.mapDoorToRoom(0,myLevel3);\n //myLevel3.run();\n //myLevel3.hide();\n currentQuestObjective = 0;\n\n }\n\n if (currentLevel == 4) {\n\n\n bossLevel = new BossLevel(\"Room4\", player);\n bossLevel.run();\n currentRoom = bossLevel;\n\n\n }\n\n enemies = currentRoom.enemies;\n pickpocketEnemy = null;\n\n transitionY = 615;\n transitionYCurrent = 615;\n\n\n backgroundMusic.playSoundEffect(\"resources/oceanOperator.wav\", 100);\n\n }",
"public GameScreen() {\n\n\t\tint midPointY = (int) (Const.GAME_HEIGHT / 2);\n\n\t\tworld = new GameWorld(midPointY);\n\t\trenderer = new GameRenderer(world);\n\n\t\tGdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown()));\n\t\t// Gdx.input.setInputProcessor(new\n\t\t// InputHandler(world.getVentilatorTwo()));\n\t}",
"void startGame();",
"void startGame();",
"void startGame();",
"public GameMain()\n {\n allenBad = new AllenSucks(this);\n }",
"@Override\n public void run(){\n Initialize();\n // Load game files (images, sounds, ...)\n LoadContent();\n \n Framework.gameState = Framework.GameState.PLAYING;\n }",
"@Override\n public void run(){\n Initialize();\n // Load game files (images, sounds, ...)\n LoadContent();\n \n Framework.gameState = Framework.GameState.PLAYING;\n }",
"public void startNewGame();",
"public Game() {\r\n\r\n\t\tmakeFrame();\r\n\t\tisClicked = false;\r\n\t\tisPlaying = false;\r\n\t\tlevelEasy = true;\r\n\t\tlevelIntermediate = false;\r\n\t\tlevelHard = false;\r\n\t\tplayerScore = 0;\r\n\r\n\t}",
"public void run (){\n\t\t\t\t\t\t\t\t\tgame.setScreen(game.ui);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}",
"public GameOverStandalone() {\n initComponents();\n \n ranks = new LinkedList<String>();\n \n FadingEffect fader = new FadingEffect();\n fader.Fade(this);\n \n// mainActivity=this;\n// \n// Thread fading = new Thread(new Runnable() {\n// @Override\n// public void run() {\n// while (true) {\n// int x=java.awt.MouseInfo.getPointerInfo().getLocation().x;\n// int y=java.awt.MouseInfo.getPointerInfo().getLocation().y;\n// if (x>mainActivity.getX()&&x<(mainActivity.getX()+mainActivity.getWidth())&&y>mainActivity.getY()&&y<(mainActivity.getY()+mainActivity.getHeight())) {\n// mainActivity.setOpacity(1.0f);\n// }\n// else {\n// mainActivity.setOpacity(0.75f);\n// }\n// try {\n// Thread.sleep(100);\n// } catch (Exception e) {\n// \n// }\n// }\n// }\n// });\n// fading.start();\n }",
"public abstract void gameObjectAwakens();",
"@Override\r\n\t\t\tpublic void playGame() {\n\t\t\t\tSystem.out.println(\"调用打游戏的功能\");\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void playGame() {\n\t\t\t\tSystem.out.println(\"隐式调用接口\");\r\n\t\t\t}",
"public Game()\r\n { \r\n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\r\n super(800, 600, 1);\r\n \r\n // add grill obj on left\r\n grill = new Grill();\r\n addObject(grill, 200, 400);\r\n \r\n // add table on right\r\n prepTable = new PrepTable();\r\n addObject(prepTable, 600, 400);\r\n \r\n // add all the table buttons\r\n addTableButtons();\r\n \r\n // add timer text\r\n timerText = new Text(\"2:00\");\r\n addObject(timerText, 60, 30);\r\n \r\n // setup the timer\r\n frameRate = 60;\r\n timeLeft = frameRate * 2;\r\n \r\n // setup the points\r\n score = 0;\r\n scoreText = new Text(\"$0\");\r\n addObject(scoreText, 50, 80);\r\n \r\n // setup orders\r\n orders = new ArrayList<Order>();\r\n orderTimer = frameRate * 4; // start with a 4 sec delay before the first order\r\n \r\n // the game is still updating\r\n stillRunning = true;\r\n \r\n // fix layering order\r\n setPaintOrder(Text.class, Topping.class, Button.class, Patty.class, Order.class);\r\n \r\n // set order variance\r\n orderVariance = 2 * frameRate;\r\n \r\n // init seconds counter\r\n totalSecondsElapsed = 0;\r\n }",
"public void runGame()\r\n\t{\r\n\t\tmainFrame.runGame();\r\n\t}",
"void gameTie();",
"public void defaultGame() {\n //CREATE A BOARD\n Board board = new Board(10, 10, 0);\n ArrayList<Boat> boats = createDefaultBoatArray();\n //CREATE A GAME\n GameData game = new GameData(board, boats, false);\n //POSITION BOATS\n randomPosBoats(game);\n\n //!!tile matrix is empty\n Game.getInstance().setGameData(game);\n Game.getInstance().setEnded(false);\n }",
"public static void create(){\n\t\tstage = new Stage(new StretchViewport(1680, 1050)); \n\t\tCamera camera = stage.getCamera();\n\t\tcamera.update();\n\n\t\t//Instantiate the Managers\n\t\tGdx.input.setInputProcessor(getStage());\t\n\t\tstage.getActors().clear();\n\t\t\n\t\tmapManager = new Game_Map_Manager();\n\t\tmapManager.create(getStage());\n\t\t\n\t\tGame_CardHand cardHand = new Game_CardHand();\n\t\tcardHand.create(getStage());\n\n\t\tGameScreenUI actorManager = new GameScreenUI();\n\t\tactorManager.create(getStage());\n\n\t\tTrainDepotUI trainDepot = new TrainDepotUI();\n\t\ttrainDepot.create(getStage());\n\n\t\tGoalMenu goalScreenManager = new GoalMenu();\n\t\tgoalScreenManager.create(getStage());\n\t\t\n\t\tPlayerGoals ticketManager = new PlayerGoals();\n\t\tticketManager.create(getStage());\t\n\t\t\n\t\tGame_StartingSequence startgameManager = new Game_StartingSequence(replayMode);\n\t\tstartgameManager.create(getStage());\n\t\t\n\t\tGame_Shop shop = new Game_Shop();\n\t\tshop.create(getStage());\n\t\t\n\t\tGame_PauseMenu pauseMenu= new Game_PauseMenu();\n\t\tpauseMenu.create(getStage());\n\t\t\n\t\tWarningMessage warningMessage = new WarningMessage();\n\t\twarningMessage.create(getStage());\n\t\t\n\t\tif (replayMode){\n\t\t\tReplayModeUI replayUI = new ReplayModeUI();\n\t\t\treplayUI.create(getStage());\n\t\t\t\n\t\t\tif (Game_StartingSequence.inProgress){\n\t\t\t\tWorldMap replayMap = WorldMap.getInstance();\n\t\t\t\tGame_StartingSequence.player1 = false;\n\t\t\t\t\n\t\t\t\tStation p1station = replayMap.stationsList.get(0);\n\t\t\t\tfor (Station station : replayMap.stationsList){\n\t\t\t\t\tif (station.getName().equals(LocomotionCommotion.getReplayTurn().getJSONObject(\"player1\").getJSONArray(\"stations\").getJSONObject(0).getString(\"stationName\"))){\n\t\t\t\t\t\tp1station = station;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tStation p2station = replayMap.stationsList.get(1);\n\t\t\t\tfor (Station station : replayMap.stationsList){\n\t\t\t\t\tif (station.getName().equals(LocomotionCommotion.getReplayTurn().getJSONObject(\"player2\").getJSONArray(\"stations\").getJSONObject(0).getString(\"stationName\"))){\n\t\t\t\t\t\tp2station = station;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcreateCoreGame(p1station, p2station);\n\t\t\t\tGame_StartingSequence.startGame();\n\t\t\t\tGameScreenUI.refreshResources();\n\t\t\t\tGame_StartingSequence.inProgress = false;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void onEnter(Game game) {\n\t\t\n\t}",
"public Game(){\n new Window(800, 800, \"Survival Game\", this);\n handler = new Handler();\n camera = new Camera(0,0);\n this.addKeyListener(new KeyInput(handler));\n\n //create the map\n map = new Map(handler);\n map.generateMap();\n map.drawWorld();\n\n player = new Player(100, 100, ID.Player, handler);\n handler.addObject(player);\n handler.addObject(new Bear(600, 600, ID.Bear, player));\n handler.addObject(new Deer(400, 400, ID.Deer, player));\n\n start();\n }",
"@Override\r\n public int playGameLoop() {\r\n return 0;\r\n }",
"private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n }else{\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n \n \n if(!gameover){\n player.render(g);\n borrego.render(g);\n rayo.render(g);\n \n for (Enemy brick : enemies) {\n brick.render(g);\n //bomba.render(g);\n }\n \n for (Fortaleza fortaleza : fortalezas) {\n fortaleza.render(g);\n }\n \n for (Bomba bomba: bombas){\n bomba.render(g);\n }\n \n drawScore(g);\n drawLives(g,vidas);\n }else if(gameover){\n drawGameOver(g);\n }\n \n\n if (lost && !gameover){\n drawLost(g);\n }\n if (pause && !lost && !gameover){\n drawPause(g);\n }\n if(win && !lost && !pause && !lost &&!gameover){\n \n drawWin(g);\n }\n \n bs.show();\n g.dispose();\n }\n }",
"public void newGame()\n\t{\n\t\tmap = new World(3, viewSize, playerFactions);\n\t\tview = new WorldView(map, viewSize, this);\n\t\tbar = new Sidebar(map, barSize);\n\t}",
"public HowToPlay()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(763, 578, 1); \n //HowToPlay play = new HowToPlay();\n }",
"public void gameRunning()\n{\n}",
"public void run() {\n\t\tprepareVariables(true);\n\t\t\n\t\t// Prepares Map Tables for Song and Key Info.\n\t\tprepareTables();\n\t\t\n\t\t// Selects a Random Song.\n\t\tchooseSong(rgen.nextInt(0, songlist.size()-1));\n\t\t\n\t\t// Generates layout.\n\t\tgenerateLabels();\n\t\tgenerateLines();\n\t\t\n\t\t// Listeners\n\t\taddMouseListeners();\n\t\taddKeyListeners();\n\t\t\n\t\t// Game Starts\n\t\tplayGame();\n\t}",
"public OrchardGame() {\n\t\t\n\t}",
"public abstract void RunOnGameOpen();",
"public SnakeGame() {\n\t\t// game initialy not running\n\t\tgameRunning = false; \n\t\t// init our GUI\n\t\tinitGUI();\n\t}",
"private void startGame() {\n\t\tmain.next_module = new Game(main, inputs, gameSelectionData);\n\t}",
"protected abstract void drawGame();",
"void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}",
"public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}",
"@Override\n public void buildAndSetGameLoop() {\n }",
"public GameWorld(){\r\n\t\t\r\n\t}",
"public Game()\n\t{\n\t\tsetSize(Main.FRAMEWIDTH, Main.FRAMEHEIGHT);\n\t\taddMouseListener(mouse);\n\t\taddMouseMotionListener(mouse);\n\t\taddKeyListener(key);\n\t\taddMouseWheelListener(mouse);\n\t\tsetFocusable(true);\n\t\t//setVisible(false);\n\t\t\n\t\tengine.start();\n\t}",
"public void startGame() {\r\n this.setupGame();\r\n }",
"public static void main(String[] args) {\n MainGameClass mg=new MainGameClass();\n mg.start();\n \n \n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }",
"public GameView() {\n initComponents();\n gameView(30, 30);\n }",
"private Game() {}",
"public Game createGame();",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1078, 672, 1); \n preparePlayer1();\n preparePlayer2();\n prepareTitle();\n //playmusic();\n }",
"public Game() {\n\n GameBoard gameBoard = new GameBoard();\n Renderer renderer = new Renderer(gameBoard);\n }",
"Games game();",
"public GameStart() {\n\t\tsuper(\"First 2D Game\");\n\t}",
"public Game() { \n super(1000, 640, 1);\n updateScore(0);\n }",
"public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }",
"void playGame(MarbleSolitaireModel model);",
"@Override\n public void run(){\n Settings.setGameSettings(new Player(0,Color.RED,1800, \"Player 1\",true),\n new Player(1,Color.BLUE,1800, \"Player 2\",false),1800,25);\n MenuFrame menuFrame = new MenuFrame();\n }",
"private void GameInitialize()\r\n { \r\n // set to fullscreen to use the entire \r\n // display or false to only use\r\n // the area inbetween the two bars on the display\r\n setFullScreenMode(true);\r\n\r\n // setup 3D\r\n try\r\n {\r\n Object3D[] buffer = Loader.load(\"/RaptorWalk.m3g\");\r\n\r\n for(int i = 0; i < buffer.length; i++)\r\n {\r\n if(buffer[i] instanceof World)\r\n {\r\n // get our world node\r\n mWorld = (World)buffer[i];\r\n mEnemy = (SkinnedMesh)mWorld.find(56);\r\n mEnemyTimer = 0;\r\n break;\r\n }\r\n }\r\n }\r\n catch(Exception e) \r\n { System.out.println(\"Loading error!\" + e.getMessage()); }\r\n\r\n // create a game font\r\n mGameFont = Font.getFont(Font.FACE_MONOSPACE, \r\n Font.STYLE_PLAIN, Font.SIZE_SMALL);\r\n\r\n // Get the active camera from the world\r\n mCam = mWorld.getActiveCamera();\r\n mCam.translate(0, 1.0f, 0);\r\n\r\n // Create an ambient light and add it to the world node\r\n Light light = new Light();\r\n light.setMode(Light.AMBIENT);\r\n light.setIntensity(3);\r\n mWorld.addChild(light);\r\n }",
"public PlayableGame() {\r\n\r\n }",
"@Override\r\n\tpublic void render() {\r\n\r\n\t\tsb.setProjectionMatrix(cam.combined);\r\n\r\n\t\t// draw background\r\n\t\tbg.render(sb);\r\n\r\n\t\t// draw button\r\n\t\tlevel1.render(sb);\r\n\t\tlevel2.render(sb);\r\n\t\tlevel3.render(sb);\r\n\t\t\r\n\t\tif (gameMode == 1){\r\n\t\t\tplayer1press.render(sb);\r\n\t\t\tplayer2press.render(sb);\r\n\t\t}\r\n\t\telse \r\n\t\t\tplayerpress.render(sb);\r\n\t\t\r\n\t\t\r\n\t selectTheLevel.render(sb);\r\n\t\t\r\n\t\tmainMenuB.render(sb);\r\n\r\n\t\t// debug draw box2d\r\n\t\tif(debug) {\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH / 100, Game.V_HEIGHT / 100);\r\n\t\t\tb2dRenderer.render(world, cam.combined);\r\n\t\t\tcam.setToOrtho(false, Game.V_WIDTH, Game.V_HEIGHT);\r\n\t\t}\r\n\r\n\t}",
"public void initialize() {\n // create a runner using a function\n this.createScreenBorders();\n // create a keyboard sensor.\n this.keyboard = this.runner.getGUI().getKeyboardSensor();\n //create the environment for the game (game environment and sprites collection)\n this.createEnvironment();\n // BACKGROUND CREATION //\n this.createBackground();\n // create the counters for the game.\n this.createCounters();\n // LISTENERS CREATION //\n //create a message printing listener.\n HitListener phl = new PrintingHitListener();\n //create a new block remover listener.\n HitListener blockrmv = new BlockRemover(this, blockCounter);\n //create a new ball remover listener.\n HitListener ballrmv = new BallRemover(this, ballCounter);\n //create a new score counter listener.\n HitListener scorelstn = new ScoreTrackingListener(this.scoreCounter);\n // BLOCKS CREATION //\n this.createBlocks(phl, blockrmv, scorelstn);\n // SIDE BLOCKS CREATION //\n this.createSideBlocks();\n // DEATH BLOCK CREATION //\n this.createDeathBlock(ballrmv);\n // LEVEL'S NAME //\n LevelsName name = new LevelsName(this.levelInfo.levelName());\n // add the whole-game indicators to the sprites list.\n this.sprites.addSprite(scoreIndi);\n this.sprites.addSprite(lifeIndi);\n this.sprites.addSprite(name);\n }",
"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 static void startGame()\r\n\t{\r\n\t\tnew ModeFrame();\r\n\t}",
"@Override\n\tpublic void gameStopped() {\n\t}",
"public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }",
"public static void main(String[] args){\n\t\tGameLoop game=new GameLoop();\n\t\tgame.registerGlobalCallbacks();\n\t\t//Game loop and setting initial scene\n\t\tmusic = new Sound(\"res\\\\Music.wav\");\n\t\tmusic.setLoop(true);\n\t\tgameOverMenu.setMusic(new Sound(\"res\\\\GameOver.wav\"));\n\t\ttimeText = new Text(screenWidth*9/10-100,screenHeight*1/32-20,20,20,\"\");\n\t\ttimeText.setColor(0, 0, 0);\n\t\tscoreText = new Text(screenWidth*9/10-100,screenHeight*1/32,20,20,\"\");\n\t\tscoreText.setColor(0, 0, 0);\n\t\twaveText = new Text(screenWidth*9/10-100,screenHeight*1/32+20,20,20,\"\");\n\t\twaveText.setColor(0, 0, 0);\n\t\t\n\t\tinitScene iLauncher = new initScene(game);\n\t\toLauncher = new overScene(game);\n\t\t\n\t\tmainMenu.addUnselItem(screenWidth/2-165, screenHeight/2-300, 50, 50, \"Spell Flingers\",0,0,1);\n\t\tmainMenu.addUnselItem(25, screenHeight-45, 20, 20, \"CONTROLS: WASD to move, esc to pause, and mouse buttons to cast spells!\",0,0,0);\n\t\tmainMenu.addUnselItem(screenWidth/2-265, screenHeight/2-308, 64, (Texture) SpellList.getTexture(Spell.ARCANE_MISSILE)[0]);\n\t\tmainMenu.addUnselItem(screenWidth/2+265, screenHeight/2-308, 64, (Texture) SpellList.getTexture(Spell.ARCANE_MISSILE)[0]);\n\t\tmainMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2-100, 30, 30, \"Play Game\", 1, 0, 0, 0, 0, 0), iLauncher);\n\t\tmainMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2-50, 30, 30, \"Exit\", 1, 0, 0, 0, 0, 0), null);\n\t\tmainMenu.select(0);\n\t\t\n\t\tpauseMenu.addUnselItem(screenWidth/2-165, screenHeight/2-300, 50, 50, \"PAUSED\",0,1,0);\n\t\tpauseMenu.addUnselItem(timeText);\n\t\tpauseMenu.addUnselItem(scoreText);\n\t\tpauseMenu.addUnselItem(waveText);\n\t\tpauseMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2-100, 30, 30, \"Resume Game\", 1, 0, 0, 0, 0, 0), game);\n\t\tpauseMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2-50, 30, 30, \"Abandon Run\", 1, 0, 0, 0, 0, 0), oLauncher);\n\n\t\ttimeTextGO = new Text(screenWidth/2-165, 240, 20, 20,\"\");\n\t\ttimeTextGO.setColor(1, 1, 1);\n\t\tscoreTextGO = new Text(screenWidth/2-165, 270, 20, 20,\"\");\n\t\tscoreTextGO.setColor(1, 1, 1);\n\t\twaveTextGO = new Text(screenWidth/2-165, 300, 20, 20,\"\");\n\t\twaveTextGO.setColor(1, 1, 1);\n\t\tgameOverMenu.addUnselItem(screenWidth/2-165, 100, 50, 50, \"GAME OVER\",1,0,0);\n\t\tgameOverMenu.addUnselItem(timeTextGO);\n\t\tgameOverMenu.addUnselItem(scoreTextGO);\n\t\tgameOverMenu.addUnselItem(waveTextGO);\n\t\tgameOverMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2+50, 30, 30, \"New Game\", 1, 0, 0, 1, 1, 1), iLauncher);\n\t\tgameOverMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2+100, 30, 30, \"Return to Main Menu\", 1, 0, 0, 1, 1, 1), mainMenu);\n\t\tgameOverMenu.addSelItem(new Scenes.SelectableText(screenWidth/2-165, screenHeight/2+150, 30, 30, \"Exit\", 1, 0, 0, 1, 1, 1), null);\n\t\t\n\t\tgame.setScene(mainMenu);\n\t\tgame.gameLoop();\n\t}",
"public void startGame() {\n\t\ttank1.create(20, 530, 0, 0);\n\t\ttank1.setDefaults();\n\t\ttank2.create(960, 530, 0, 0);\n\t\ttank2.setDefaults();\n\t\tobjects.add(tank1);\n\t\tobjects.add(tank2);\n\t\tground = new Groundmod2((int) (Math.random() * 4));\n\t\tturn = Turn.PLAYER1;\n\t\tgrabFocus();\n\t}",
"public GameHandler() {\n boardGraph = new BoardGraph();\n reset();\n }",
"public Game() {\n whitePlayer = new AwfulAIPlayer(Colour.WHITE, board);\n blackPlayer = new HumanPlayer(Colour.BLACK, board);\n\n sharedBoard = new CompositeBitBoard(whitePlayer.getOccupied(), blackPlayer.getOccupied());\n }",
"public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }",
"private void drawGame(){\n drawBackGroundImage();\n drawWalls();\n drawPowerups();\n drawBullet();\n }",
"public void frame() {\r\n\r\n\r\n\t\t//this will solves a thread issue, to do FX application stuff in a non FX application thread. \r\n\t\tPlatform.runLater(() -> {\r\n\r\n\t\t\tif (Player.isBattle()) {\r\n\r\n\t\t\t\tPlayer.setVelX(0);\r\n\t\t\t\tPlayer.setVelY(0);\r\n\t\t\t\tmainStage.setScene(combatScene);\r\n\r\n\t\t\t} else if (Player.isShop()) {\r\n\t\t\t\tmainStage.setScene(shopScene);\r\n\r\n\t\t\t} else {\r\n\r\n\t\t\t\tcircle.setFill(getColor());\r\n\t\t\t\tmainStage.setScene(mainScene);\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\tgetMainScene().setOnKeyPressed(e -> {\r\n\t\t\tPlayer.move(e);\r\n\t\t});\r\n\r\n\t\tgetMainScene().setOnKeyReleased(e -> {\r\n\t\t\tPlayer.stop(e);\t\r\n\t\t});\r\n\r\n\t\tPlayer.update();\r\n\t\tposition();\r\n\t}",
"public BlasticFantastic()\r\n {\r\n super(\"BlasticFantastic 0.1\");\r\n AppGameContainer app;\r\n\t\ttry {\r\n\t\t\tapp = new AppGameContainer(this);\r\n\t\t\tapp.setDisplayMode(1024, 600, false);\r\n\t\t\tapp.setVSync(true);\r\n\t\t\tapp.start();\r\n\t\t} catch (SlickException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n \r\n }",
"public GameFrame() {\n initComponents();\n setTitle(\"Ultra Generic Tower Defence by Jorzi\");\n }",
"public ViewMain()\n\t{\n\t\tview = new View();\n\t\t\n\t\tcolors = new Color[20][10];\n\t\tfor(int i=0; i < 20; ++i)\n\t\t\tfor(int j=0; j < 10; ++j)\n\t\t\t\tcolors[i][j] = Color.DARK_GRAY;\n\t\t\n\t\tpanel = new BoardGamePanel(colors);\n\t\tpanel.setVisible(true);\n\t\t\n\t\tgameInfo = new GameInfo();\n\t\t\n\t\tactionListenner();\n\t\t\n\t}",
"public RunningGame() {\n initComponents();\n }",
"public void act()\r\n {\n \r\n if (Background.enNum == 0)\r\n {\r\n length = Background.length;\r\n width = Background.width;\r\n getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n \r\n //long lastAdded2 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long curTime3 = System.currentTimeMillis();\r\n //long seconds = curTime3 / 1000;\r\n //sleep = 3;\r\n //try {\r\n //TimeUnit.SECONDS.sleep(sleep);\r\n //} catch(InterruptedException ex) {\r\n //Thread.currentThread().interrupt();\r\n //}\r\n //Greenfoot.delay(3);\r\n //long curTime3 = System.currentTimeMillis();\r\n //long secs2 = curTime3 / 1000;\r\n //long curTime4;\r\n //long secs3;\r\n //do\r\n //{\r\n //getWorld().addObject (new YouWon(), length / 2, width / 2);\r\n //curTime4 = System.currentTimeMillis();\r\n //secs3 = curTime3 / 1000;\r\n //} while (curTime4 / 1000 < curTime3 / 1000 + 3);\r\n //if (System.currentTimeMillis()/1000 - 3 >= secs2)\r\n //{\r\n //do\r\n //{\r\n pause(3000);\r\n Actor YouWon;\r\n YouWon = getOneObjectAtOffset(0, 0, YouWon.class);\r\n World world;\r\n world = getWorld();\r\n world.removeObject(this);\r\n Background.xp += 50;\r\n Background.myGold += 100;\r\n if (Background.xp >= 50 && Background.xp < 100){\r\n Background.myLevel = 2;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 100 && Background.xp < 200){\r\n Background.myLevel = 3;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 200 && Background.xp < 400){\r\n Background.myLevel = 4;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 400 && Background.xp < 800){\r\n Background.myLevel = 5;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 800 && Background.xp < 1600){\r\n Background.myLevel = 6;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 1600 && Background.xp < 3200){\r\n Background.myLevel = 7;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 3200 && Background.xp < 6400){\r\n Background.myLevel = 8;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 6400 && Background.xp < 12800){\r\n Background.myLevel = 9;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n } else if (Background.xp >= 12800){\r\n Background.myLevel = 10;\r\n getWorld().addObject (new Level(), getWorld().getWidth() / 2, getWorld().getHeight() / 2);\r\n }\r\n //curTime3 = System.currentTimeMillis();\r\n //secs2 = curTime3 / 1000;\r\n //index2++;\r\n //Greenfoot.setWorld(new YouWon());\r\n //lastAdded2 = curTime3;\r\n //}\r\n //} while (index2 <= 0);\r\n }\r\n }",
"@Override\n protected void initGame() {\n\n// entityBuilder()\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(getAppWidth() - 64, getAppHeight() - 64)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(0, getAppHeight() / 2 - 32)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .with(new ProjectileComponent(new Point2D(1, 0), 150))\n// .buildAndAttach();\n }",
"public Game() {\r\n \r\n level = 1;\r\n \r\n enemyCount = 15;\r\n \r\n // world\r\n world = new Level1();\r\n \r\n world.populate(this);\r\n \r\n // view\r\n view = new MyView(world, this, 1000, 650);\r\n\r\n view.setGridResolution(1);\r\n\r\n // mouse controls\r\n view.addMouseListener(new MouseHandler(view, world.getPlayer()));\r\n \r\n\r\n // display the view in a frame\r\n JFrame frame = new JFrame(\"Multi-Level game\");\r\n\r\n // quit the application when the game window is closed\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationByPlatform(true);\r\n // display the world in the window\r\n frame.add(view);\r\n controlPanel = new ControlPanel(world, this);\r\n frame.add(controlPanel, BorderLayout.WEST);\r\n // don't let the game window be resized\r\n frame.setResizable(false);\r\n // size the game window to fit the world view\r\n frame.pack();\r\n // make the window visible\r\n frame.setVisible(true);\r\n \r\n keyHandler = new KeyHandler(world.getPlayer());\r\n // key controls\r\n frame.addKeyListener(keyHandler);\r\n \r\n // give keyboard focus to the frame whenever the mouse enters the view\r\n view.addMouseListener(new GiveFocus(frame));\r\n \r\n // Invincibility\r\n if(world.getPlayer().getInivincibility() == true) {\r\n world.getPlayer().removeAllCollisionListeners();\r\n } \r\n\r\n // Debugging view\r\n // JFrame debugView = new DebugViewer(gameWorld, 1000, 650);\r\n \r\n // background sound\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel1Sound();\r\n levelMusic.loop();\r\n \r\n // start!\r\n world.start();\r\n \r\n }",
"public void start() {\n ArrayList<String> names = new ArrayList<>();\n game.initialize(names);\n //game.play(this.mainPkmn, this.attack);\n\n }",
"public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }",
"public Game()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1, false); \n Greenfoot.start(); //Autostart the game\n Greenfoot.setSpeed(50); // Set the speed to 30%\n setBackground(bgImage);// Set the background image\n \n //Create instance\n \n Airplane gameplayer = new Airplane ();\n addObject (gameplayer, 100, getHeight()/2);\n \n }",
"private RockGameController() {\n points = 0; opponentPoints = 0;\n update1 = false; update2 = false; update3 = false; update4 = false; update5 = false;\n rockBodyOne = new RockGameBody(RockGameModel.getInstance().getRockOne());\n rockBodyTwo = new RockGameBody(RockGameModel.getInstance().getRockTwo());\n rockBodyThree = new RockGameBody(RockGameModel.getInstance().getRockThree());\n rockBodyFour = new RockGameBody(RockGameModel.getInstance().getRockFour());\n rockBodyFive = new RockGameBody(RockGameModel.getInstance().getRockFive());\n rocks = new ArrayList<RockGameBody>() {{add(rockBodyOne); add(rockBodyTwo); add(rockBodyThree); add(rockBodyFour); add(rockBodyFive);}};\n }",
"private void setupGame() {\n \tdrawBricks();\n \tdrawPaddle();\n \tdrawBall(); \t\n \tsetInitialBallVelocity();\n }",
"public GameState(){\n this.gameResults = \"\";\n initVars();\n this.theme = DEFAULT_THEME;\n this.board = new Board(DEFAULT_BOARD);\n createSetOfPlayers(DEFAULT_PLAYERS, DEFAULT_AUTOPLAYER, DEFAULT_AUTOMODE);\n }",
"void onNewGame();",
"@Override\n\tpublic void run() {\n\t\tgameImpl.render();\n\t\tgameImpl.update();\n\t}",
"public void initialize() {\r\n /**********************************/\r\n //this.numOfLives=new hitevent.Counter(START_NUM_LIVES);\r\n //this.blocksCounter = new hitevent.Counter(this.levelInformation.numberOfBlocksToRemove());\r\n //this.gui = new GUI(\"jumping\", WIDTH_SCREEN, HI_SCREEN);\r\n /*****************************************/\r\n //create new point to create the edges of the screen\r\n Point p1 = new Point(-5, 20);\r\n Point p2 = new Point(-5, -5);\r\n Point p3 = new Point(WIDTH_SCREEN - 20, -5);\r\n Point p4 = new Point(-5, HI_SCREEN - 15);\r\n //an array to the blocks of the edges\r\n Block[] edges = new Block[4];\r\n //create the adges of the screen\r\n Counter[] edgeCount = new Counter[4];\r\n edgeCount[0] = new Counter(1);\r\n edges[0] = new Block(new Rectangle(p1, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[0]);\r\n edgeCount[1] = new Counter(1);\r\n edges[1] = new Block(new Rectangle(p2, 25, HI_SCREEN + 20), Color.RED, edgeCount[1]);\r\n edgeCount[2] = new Counter(1);\r\n edges[2] = new Block(new Rectangle(p3, 25, HI_SCREEN + 20), Color.RED, edgeCount[2]);\r\n edgeCount[3] = new Counter(1);\r\n edges[3] = new Block(new Rectangle(p4, WIDTH_SCREEN + 20, 25), Color.RED, edgeCount[3]);\r\n\r\n //initilize the paddle\r\n initializePaddle();\r\n //sprite collection and game evnironment\r\n SpriteCollection sprite = new SpriteCollection();\r\n GameEnvironment game1 = new GameEnvironment();\r\n\r\n //add the Background of the level to the sprite collection\r\n this.addSprite(this.levelInformation.getBackground());\r\n //create score Indicator, lives Indicator and level name\r\n ScoreIndicator scoreIndicator1 = new ScoreIndicator(score);\r\n LivesIndicator livesIndicator1 = new LivesIndicator(numOfLives);\r\n LevelIndicator levelName = new LevelIndicator(this.levelInformation.levelName());\r\n\r\n game1.addCollidable((Collidable) this.paddle);\r\n sprite.addSprite((Sprite) this.paddle);\r\n sprite.addSprite((Sprite) scoreIndicator1);\r\n sprite.addSprite((Sprite) livesIndicator1);\r\n sprite.addSprite((Sprite) levelName);\r\n\r\n //add the paddle, score Indicator, lives Indicator and level name to the game\r\n this.paddle.addToGame(this);\r\n scoreIndicator1.addToGame(this);\r\n livesIndicator1.addToGame(this);\r\n levelName.addToGame(this);\r\n\r\n //initilize the Blocks\r\n initializeBlocks();\r\n\r\n }",
"@Override\n\t public void run() {\n\t \tSnakeGame game = new SnakeGame();\n\t }",
"public Game() {\n\t\tthis.setMode(this.gameModes[0]);\n\t\tthis.SIZE = this.mode.getSize();\n\t\tint x = Random.nextInt(0, 5);\n\t\tSystem.out.println(x);\n\t\tthis.newCandy();\n\t}",
"public void OnStart(){\n\t\t//create the random space background and put its priority behind everything else\n\t\tswitch ((int) (Math.random() * 3)){\n\t\t\tcase 0:\n\t\t\t\tbackground = new Background(R.drawable.spaceback_med,new Point(0,0),-1);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tbackground = new Background(R.drawable.spaceback_asteroids,new Point(0,0),-1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tbackground = new Background(R.drawable.spaceback_nebula,new Point(0,0),-1);\n\t\t\t\tbreak;\n\t\t}\n\t\t//generate asteroids\n\t\tinitAsteroids((int)(Math.random()*3));\n\t\t//create a border for the background (draw on top)\n\t\tnew Border(background,1000);\n\t\t//create the player\n\t\tplayer = new Player(new Point(-300,300), 1);\n\t\t//create a target reticule for the player\n\t\ttarget = new Target(player);\n\t\t\n\t\t//load sounds\n\t\tGameState.State().LoadSound(R.raw.shoot, \"shoot\");\n\t\tGameState.State().LoadSound(R.raw.accelerate, \"accelerate\");\n\t\tGameState.State().LoadSound(R.raw.engine, \"engine\");\n\t\tGameState.State().LoadSound(R.raw.explosion, \"explosion\");\n\t\tGameState.State().LoadSound(R.raw.death, \"death\");\n\t\t\n\t\thasStarted = true;\n\t\t\n\t\trespawnCount = 0.0f;\n\t\trespawnTime = 4f;\n\t}",
"public static void main(String[] args) {\n Game game = new Game(\"Programming 2 Project\",600,600);\n game.start();\n \n }",
"public void run() {\n gf = addGameFrame(\"Pacman\", displayW, displayH);\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tGameGrafic game = null;\r\n\t\t\t\tGameState state = new GameState();\r\n\t\t\t\t// if (opt == 2) {\r\n\t\t\t\t// game = SaveGameOptions.load();\r\n\t\t\t\t// } else {\r\n\t\t\t\tgame = new GameGrafic(state);\r\n\t\t\t\t// }\r\n\r\n\t\t\t\tif (game != null) {\r\n\t\t\t\t\tgame.start();\r\n\t\t\t\t}\r\n\r\n\t\t\t}",
"public Game() \n {\n gameLoaded = false;\n }",
"private void prepare()\n {\n addObject(player,185,196);\n player.setLocation(71,271);\n Ground ground = new Ground();\n addObject(ground,300,360);\n invent invent = new invent();\n addObject(invent,300,375);\n }"
] | [
"0.7318875",
"0.72109747",
"0.7152492",
"0.7129654",
"0.71135473",
"0.7057894",
"0.7057894",
"0.7033014",
"0.7033014",
"0.7033014",
"0.69775456",
"0.69592625",
"0.6929441",
"0.6929441",
"0.6929441",
"0.6890873",
"0.68908113",
"0.68908113",
"0.6861525",
"0.6841544",
"0.68079364",
"0.6795587",
"0.6784331",
"0.67775804",
"0.6755863",
"0.6751412",
"0.67420816",
"0.6731657",
"0.67290246",
"0.67256266",
"0.6718901",
"0.6713142",
"0.66924584",
"0.6689202",
"0.6685818",
"0.6677907",
"0.6673505",
"0.6672724",
"0.6653989",
"0.66493565",
"0.6642695",
"0.66422653",
"0.663899",
"0.6636932",
"0.663585",
"0.6604382",
"0.6592553",
"0.6586397",
"0.65679073",
"0.65609175",
"0.65607643",
"0.6559112",
"0.65574217",
"0.6554639",
"0.6538219",
"0.65355104",
"0.652768",
"0.6526495",
"0.6518218",
"0.65176374",
"0.6509261",
"0.64942545",
"0.64876026",
"0.6487471",
"0.6484593",
"0.6483318",
"0.6473077",
"0.64719826",
"0.6471257",
"0.6468752",
"0.64618695",
"0.64612544",
"0.64567924",
"0.64498156",
"0.6448325",
"0.64480424",
"0.64453083",
"0.6444896",
"0.6437924",
"0.64303696",
"0.6424702",
"0.64243865",
"0.6422665",
"0.6421957",
"0.6413129",
"0.6412215",
"0.6411651",
"0.64013064",
"0.6400721",
"0.6400151",
"0.63998735",
"0.6390483",
"0.6388808",
"0.6382112",
"0.6375962",
"0.63748175",
"0.63723487",
"0.63697535",
"0.6368287",
"0.636797",
"0.63642913"
] | 0.0 | -1 |
function when button is pressed. | public void lPressed(View v) {
//user has pressed a letter to guess
String ltr=((TextView)v).getText().toString();
char letterChar = ltr.charAt(0);
v.setEnabled(false);
// v.setBackgroundResource(R.drawable.l_down);
int hang=0;
int k=0;
while(k!=currentWord.length()){
if(currentWord.charAt(k)==letterChar){
hang=1;
numCorrect++;
cViews[k].setTextColor(Color.RED); //change color to red.
}
k++;
}
String t=currentWord;
if(hang==1){
if(numCorrect==numChars){
int numLetters = letters.getChildCount();
for (int i = 0; i < numLetters; i++) {
letters.getChildAt(i).setEnabled(false);
}
play();
//dialog box that you won
AlertDialog.Builder wins = new AlertDialog.Builder(this);
wins.setTitle("CONGRATS !!!");
wins.setMessage("You win!\n\nThe answer was : " + t);
wins.setPositiveButton("Play Again",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
MainActivity.this.play();
}
});
wins.setNegativeButton("Exit",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
MainActivity.this.finish();
}
});
wins.show();
}
}
else if (currentPart < numParts) {
if(currentPart==1){ //adding hint 1
switch(g) {
case 0:
Toast.makeText(getApplicationContext(), "Hint 1 : Have you heard of CrANBERRies?", Toast.LENGTH_SHORT).show();
break;
case 1:
Toast.makeText(getApplicationContext(), "Hint 1 : Also known as city of David", Toast.LENGTH_SHORT).show();
break;
case 2:
Toast.makeText(getApplicationContext(), "Hint 1 : Dalai Lama is bad (No offence) ", Toast.LENGTH_SHORT).show();
break;
case 3:
Toast.makeText(getApplicationContext(), "Hint 1 : WELL ! A makING TON", Toast.LENGTH_SHORT).show();
break;
case 4:
Toast.makeText(getApplicationContext(), "Hint 1 : According to sources, Hamsters live near dam", Toast.LENGTH_SHORT).show();
break;
case 5:
Toast.makeText(getApplicationContext(), "Hint 1 : Student wish pumkin had fallen !!!", Toast.LENGTH_SHORT).show();
break;
case 6:
Toast.makeText(getApplicationContext(), "Hint 1 : Think this anwer relatively !!", Toast.LENGTH_SHORT).show();
break;
case 7:
Toast.makeText(getApplicationContext(), "Hint 1 : Nearnight is antonym of ...", Toast.LENGTH_SHORT).show();
break;
case 8:
Toast.makeText(getApplicationContext(), "Hint 1 : Eureka !!!", Toast.LENGTH_SHORT).show();
break;
case 9:
Toast.makeText(getApplicationContext(), "Hint 1 : Did you try pressing a button other than an alphabet !!!", Toast.LENGTH_SHORT).show();
break;
case 10:
Toast.makeText(getApplicationContext(), "Hint 1 : Windowless !!!", Toast.LENGTH_SHORT).show();
break;
case 11:
Toast.makeText(getApplicationContext(), "Hint 1 : Dora is fed up with Windows !!", Toast.LENGTH_SHORT).show();
break;
case 12:
Toast.makeText(getApplicationContext(), "Hint 1 : DEBI is AN eclyomologocalysticalisyisac.", Toast.LENGTH_SHORT).show();
break;
case 13:
Toast.makeText(getApplicationContext(), "Hint 1 : Short form of 'generation too' !!!", Toast.LENGTH_SHORT).show();
break;
case 14:
Toast.makeText(getApplicationContext(), "Hint 1 : Answer also matches with a Hindu goddess.", Toast.LENGTH_SHORT).show();
break;
case 15:
Toast.makeText(getApplicationContext(), "Hint 1 : Beth bought a MAC !!", Toast.LENGTH_SHORT).show();
break;
case 16:
Toast.makeText(getApplicationContext(), "Hint 1 : Let hamburger be eaten by Prince of Denmark !!", Toast.LENGTH_SHORT).show();
break;
case 17:
Toast.makeText(getApplicationContext(), "Hint 1 : King of vampires !!", Toast.LENGTH_SHORT).show();
break;
case 18:
Toast.makeText(getApplicationContext(), "Hint 1 : Oath should be made as Hello is made !!!", Toast.LENGTH_SHORT).show();
break;
case 19:
Toast.makeText(getApplicationContext(), "Hint 1 : Are you hungry. Then don't mock others !!!", Toast.LENGTH_SHORT).show();
break;
case 20:
Toast.makeText(getApplicationContext(), "Hint 1 : He was assassinated", Toast.LENGTH_SHORT).show();
break;
case 21:
Toast.makeText(getApplicationContext(), "Hint 1 : Also known as Uncle Abe !!!", Toast.LENGTH_SHORT).show();
break;
case 22:
Toast.makeText(getApplicationContext(), "Hint 1 : Is your BeltLoose?", Toast.LENGTH_SHORT).show();
break;
case 23:
Toast.makeText(getApplicationContext(), "Hint 1 : He was clever-and..he drank a lot of watel !!!", Toast.LENGTH_SHORT).show();
break;
case 24:
Toast.makeText(getApplicationContext(), "Hint 1 : Also known as Barry !!!", Toast.LENGTH_SHORT).show();
break;
}
arr[currentPart].setVisibility(View.VISIBLE);
currentPart++;
}
else if(currentPart==3){ //displaying hint 2
if(g/5==0)
{
Toast.makeText(getApplicationContext(), "Hint 2 : A capital city!", Toast.LENGTH_SHORT).show();
}
else if(g/5==1)
{
Toast.makeText(getApplicationContext(), "Hint 2 : A Scientist!", Toast.LENGTH_SHORT).show();
}
else if(g/5==2)
{
Toast.makeText(getApplicationContext(), "Hint 2 : A Linux system!", Toast.LENGTH_SHORT).show();
}
else if(g/5==3)
{
Toast.makeText(getApplicationContext(), "Hint 2 : A novel!", Toast.LENGTH_SHORT).show();
}
else if(g/5==4)
{
Toast.makeText(getApplicationContext(), "Hint 2 : An American president!", Toast.LENGTH_SHORT).show();
}
arr[currentPart].setVisibility(View.VISIBLE);
currentPart++;
}
else {
arr[currentPart].setVisibility(View.VISIBLE);
currentPart++;
}
}
else{
int numLetters = letters.getChildCount();
for (int i = 0; i < numLetters; i++) {
letters.getChildAt(i).setEnabled(false);
}
play();
//dialog box displaying when u lose
AlertDialog.Builder lose = new AlertDialog.Builder(this);
lose.setTitle("TRY AGAIN");
lose.setMessage("You lose!\n\nThe answer was : "+t);
lose.setPositiveButton("Play Again",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
MainActivity.this.play();
}});
lose.setNegativeButton("Exit",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
MainActivity.this.finish();
}});
lose.show();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}",
"public void buttonClicked();",
"public void onButtonAPressed();",
"void mainButtonPressed();",
"public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }",
"void buttonGo_actionPerformed(ActionEvent e) {\n\n\n }",
"String handleButtonPress(Button button);",
"public void ipcallButtonPressed() {\n\t\tdialButtonPressed(true) ;\n\t}",
"public void sButton() {\n\n\n\n }",
"public abstract void buttonPressed();",
"void buttonPressed(ButtonType type);",
"protected abstract void pressedOKButton( );",
"void enablButtonListener();",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tButtonPress();\n\t}",
"public void testing() {\n System.out.println(\"button pressed!\");\n }",
"public void actionPerformed(ActionEvent e) {\n \n // YOUR CODE HERE\n\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbutton_press.playSound(BUTTON_PRESS);\r\n\t\t\t}",
"private void devBtnActionPerformed(ActionEvent evt) {\n }",
"@Override\n\tpublic void pressed(PushButton button) {\n\t\tvm.getConfigurationPanel().getButton(index);\n\t\t\n\t}",
"void userPressConnectButton();",
"public void settingBtnClick() {\n\t}",
"public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }",
"public void onButtonBPressed();",
"private void button1MouseClicked(MouseEvent e) {\n\t}",
"protected abstract boolean up(int button);",
"public void clickButton()\n {\n fieldChangeNotify( 0 );\n }",
"private void button1KeyPressed(KeyEvent e) {\n }",
"private void button1MousePressed(MouseEvent e) {\n }",
"public void trigger() {\n button.release(true);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n protected void actionPerformed(GuiButton button)\n {\n super.actionPerformed(button);\n }",
"void actionButton ( ) throws IOException {\n String textOfField = this.gui.wdgInputText.getText();\n this.gui.widgOutput.append(\"Button1 \" + (++this.ctKeyStroke1) + \" time, text=\" + textOfField + \"\\n\");\n }",
"private void button1MouseClicked(MouseEvent e) {\n }",
"public void onClicked();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif (e.getSource() == button1) {\n\t\t prefDisplay();\n\t\t }\n\t}",
"private void designBtnActionPerformed(ActionEvent evt) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}",
"public void buttonPressed(){\r\n\t\tsetBorder(new BevelBorder(10));\r\n\t}",
"private void pressedButton(int button) {\n if (button < CalculatorButtons.CALCULATE_BUTTONS && button > CalculatorButtons.NONE) {\n equation.sortButton(button, CalculatorButtons.BUTTON_PRESSED);\n }\n else if (button == CalculatorButtons.FRACTION_CHANGE_BUTTON) {\n buttonActions.sortButton(button, CalculatorButtons.BUTTON_PRESSED);\n }\n else if (button == 36) {\n buttonActions.sortButton(button, CalculatorButtons.BUTTON_PRESSED);\n equation.formatAnswer();\n }\n else if (button < CalculatorButtons.FRACTION_BUTTONS && button > CalculatorButtons.FRACTION_CHANGE_BUTTON) {\n fractionActions.sortButton(button, CalculatorButtons.BUTTON_PRESSED);\n }\n\n }",
"public void buttonPress(ActionEvent event) {\r\n Button clickedButton = (Button) event.getSource();\r\n String selectedButton = clickedButton.getId();\r\n System.out.print(selectedButton);\r\n \r\n // If the user correctly guesses the winning button\r\n if (correctButtonName.equals(selectedButton)) {\r\n \r\n //Displays a popup alerting the user that they won the game.\r\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\r\n alert.setTitle(\"You Win!\");\r\n alert.setHeaderText(\"Congratulations, you found the treasure!\");\r\n alert.setContentText(\"Would you like to play again?\");\r\n ButtonType okButton = new ButtonType(\"Play again\");\r\n ButtonType noThanksButton = new ButtonType(\"No Thanks!\");\r\n alert.getButtonTypes().setAll(okButton, noThanksButton);\r\n Optional<ButtonType> result = alert.showAndWait();\r\n \r\n //If the user selects \"Play again\" a new button will be randomly selected\r\n if (result.get() == okButton ){\r\n //Chooses a random button from the list of buttons\r\n correctButtonName = buttonList[(int)(Math.random() * buttonList.length)];\r\n }\r\n //If the user does not select \"Play again\", the application will be closed\r\n else {System.exit(0);}\r\n \r\n }\r\n \r\n //If the user chooses any button except for the winning button\r\n else if (!selectedButton.equals(correctButtonName)) {\r\n \r\n //Displays a popup alerting the user that they did not find the treasure.\r\n Alert alert2 = new Alert(Alert.AlertType.INFORMATION);\r\n alert2.setTitle(\"No treasure!\");\r\n alert2.setHeaderText(\"There was no treasure found on that island\");\r\n alert2.setContentText(\"Would you like to continue searching for treasure?\");\r\n ButtonType ayeCaptain = new ButtonType (\"Continue Searching\");\r\n ButtonType noCaptain = new ButtonType (\"Quit\");\r\n alert2.getButtonTypes().setAll(ayeCaptain,noCaptain);\r\n Optional<ButtonType> result2 = alert2.showAndWait();\r\n \r\n if (result2.get() == ayeCaptain){\r\n //The search for treasure continues!\r\n }\r\n else{ \r\n System.exit(0);\r\n }\r\n }\r\n }",
"private void button1ActionPerformed(ActionEvent e) {\n }",
"@Override\npublic void actionPerformed(ActionEvent e) {\n\nJButton b1 = (JButton)(e.getSource());\n\tString text = b1.getText();\n\tSystem.out.println(\"buttn pressed \"+ text);\n\tcm.addADigit(text);\n\n\tcv.update();\n\n}",
"public void submit_intsatpos(View button) {\n }",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) \n\t\t{\n\t\t\t\n\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[0])){\n\t\t\tperformButton(0);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[1])){\n\t\t\tperformButton(1);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[2])){\n\t\t\tperformButton(2);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[3])){\n\t\t\tperformButton(3);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[4])){\n\t\t\tperformButton(4);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[5])){\n\t\t\tperformButton(5);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[6])){\n\t\t\tperformButton(6);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[7])){\n\t\t\tperformButton(7);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[8])){\n\t\t\tperformButton(8);\n\t\t}\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getSource().equals(btnQuayLai)){\n btnquaylaiclick();}\n }",
"void okButtonClicked();",
"public void actionPerformed(ActionEvent e) { \n enter();\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJButton btn = (JButton) e.getSource();\n\t lev_no = (int) btn.getClientProperty(\"column\") + 3 * ((int) btn.getClientProperty(\"row\"));\n\t\t\tselect.setVisible(false);\n\t\t\ttitle.setVisible(true);\n\t\t\tstart.setVisible(true);\n\t\t\texit.setVisible(true);\n\t\t\tlev_button.setVisible(true);\n\t \n\t\t}",
"@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void onButtonEvent(GlassUpEvent event, int contentId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t{\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n public void actionPerformed(ActionEvent e)\n {\n \n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) { // ueberprueft das Event fuer den Button\r\n\t\t\t\tif (e.getSource() == alarm \r\n\t\t\t\t\t\t&& alarm.getText().equals(\"Alarm setzen\")) { // schaut ob der geklickte Button den gleichen Text hat wieder der Alarmbutton\r\n\t\t\t\t\tabfrageFenster(); // bei Uebereinstimmung wird Abfragefenster aufgerufen\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().equals(\"Up\")){\n //System.out.println(\"Up button clicked!!\");\n jLabel.setText(\"You pressed the up button\");\n }\n // else if -> for several buttons...\n else {\n //System.out.println(\"Down button clicked!!\");\n jLabel.setText(\"You pressed the down button\");\n }\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t}",
"private void btn_stockMouseClicked(java.awt.event.MouseEvent evt) {\n \n }",
"public void buttonClickHandler (ActionEvent evt) {\n\t\tButton clickedButton = (Button) evt.getTarget();\n\t\tString buttonLabel = clickedButton.getText();\n\t\t\n\t\tswitch(buttonLabel) {\n\t\t\tcase(\"Instructions\"): openInstructionsWindow(); break;\n\t\t\tcase(\"About\"): openAboutWindow(); break;\n\t\t\tcase(\"Quit\"): GameScreenController.quitWindow(); break;\n\t\t}\t\n\t}",
"private void ViewActionPerformed(ActionEvent e) {\n\t}",
"private void btnThongtinActionPerformed(java.awt.event.ActionEvent evt) {\n\n fillThongtin();\n }",
"protected void execute() { \t\n// \tboolean toggle=true;\n// \tboolean grab = false;\n// \tif(toggle&&button.get()) {//execute once per button push\n// \t\ttoggle=false;//prevents code from being called again until button is released and pressed again\n// \t\tif(grab){\n// \t\t\tgrab=false;\n// \t\t\tclaw.open();\n// \t\t}else {\n// \t\t\tgrab=true;\n// \t\t\tclaw.close();\n// \t\t}\n// \t}else if(!button.get()) {\n// \t\ttoggle=true;//button has been released\n// \t}\n \tclaw.open();\n }",
"@FXML\n private void keypadAction(ActionEvent event)\n {\n // Get Button text\n Button button = (Button)event.getSource();\n String buttonText = button.getText();\n \n pressKey(buttonText);\n \n }",
"public void buttonShowComplete(ActionEvent actionEvent) {\n }",
"@Override\n\tpublic void mousePressed(MouseEvent e) {\n\t\tSystem.out.println(\"mousePressed\");\n\t\tbtnNewButton.setIcon(new ImageIcon(\"./res/img/startlogo.png\"));\n\t\tjsr.startCaptureAudio(); // 오디오 캡쳐 시작\n\n\t}",
"@Override\r\n\tpublic int buttonPressed() {\n\t\tif ( state == 0)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Total Button Pressed\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n \t\tpublic void actionPerformed(ActionEvent e) {\n \t\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}"
] | [
"0.80308574",
"0.8001093",
"0.7798994",
"0.76383406",
"0.7634376",
"0.75651324",
"0.7513075",
"0.7391325",
"0.7325586",
"0.7317071",
"0.7271666",
"0.72709525",
"0.7256598",
"0.72396904",
"0.7229542",
"0.7218973",
"0.7156508",
"0.7156508",
"0.7156508",
"0.7156508",
"0.7156508",
"0.71535796",
"0.7121492",
"0.7088051",
"0.7080751",
"0.7068919",
"0.7039873",
"0.7029267",
"0.7018708",
"0.7004316",
"0.6985168",
"0.6972591",
"0.6961007",
"0.6959496",
"0.69378406",
"0.693467",
"0.6930355",
"0.69210863",
"0.69183177",
"0.69147545",
"0.6912111",
"0.6902566",
"0.6902566",
"0.6902566",
"0.6902566",
"0.689079",
"0.68811375",
"0.6878973",
"0.68554",
"0.6854762",
"0.68462646",
"0.68418485",
"0.68413085",
"0.6833265",
"0.6833265",
"0.6820844",
"0.6820844",
"0.6820844",
"0.68010724",
"0.6798355",
"0.6797719",
"0.67814",
"0.67794013",
"0.6775834",
"0.67747706",
"0.6766191",
"0.67615575",
"0.6759089",
"0.6759089",
"0.6759089",
"0.6759089",
"0.6759089",
"0.6759089",
"0.6759089",
"0.6759089",
"0.6759089",
"0.6759089",
"0.675362",
"0.6753581",
"0.6753581",
"0.6738612",
"0.6735158",
"0.6714997",
"0.67147964",
"0.67106813",
"0.67075694",
"0.6690865",
"0.6689441",
"0.6682923",
"0.66827637",
"0.6678666",
"0.66782236",
"0.6674103",
"0.6672977",
"0.6672182",
"0.6672182",
"0.6666446",
"0.6665531",
"0.6665531",
"0.6665531",
"0.6665531"
] | 0.0 | -1 |
/ dialog for choosing the arriving time if garKey = 0 and non current day | private void showChooseNonCurNonGarTimeDialog(){
alertDialog = new AlertDialog.Builder(this);
alertDialog.setTitle("请选择添到店时间");
timeString = new String[] { "20:00", "23:59","次日06:00"};
final ArrayList<String> arrayList = new ArrayList<String>();
//final ArrayList<String> arrayListType = new ArrayList<String>();
for (int i = 0; i < timeString.length; i++) {
if (!timeString[i].equals("null")) {
arrayList.add(timeString[i]);
//arrayListType.add(typeArrayStrings[i]);
//timeTextView.setText(timeString[0]);
}
}
//将遍历之后的数组 arraylist的内容在选择器上显示
alertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = "14:00-20:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"14:00:00";
postArrivalLateTime = leaveTimeString + " " + "20:00:00";
setTime(arrivingTime);
break;
case 1:
arrivingTime = "20:00-23:59";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"20:00:00";
postArrivalLateTime = leaveTimeString + " " + "23:59:00";
setTime(arrivingTime);
break;
case 2:
arrivingTime = "23:59-次日06:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"23:59:00";
postArrivalLateTime = getDateNext(liveTimeString) + " " + "06:00:00";
int dayNum1 = Integer.parseInt(dayTextView.getText().toString());
int roomNum1 = Integer.parseInt(roomtTextView.getText().toString());
if(dayNum1 != 1){
//dayTextView.setText(""+(dayNum1+1));
//zongpicTextView.setText("¥"+((j/dayNum1)*(dayNum1+1)*roomNum1));
}else{
//dayTextView.setText("1");
//zongpicTextView.setText("¥"+(j*1*roomNum1));
}
setTime(arrivingTime);
break;
default:
arrivingTime = "";
setTime(arrivingTime);
break;
}
}
}).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showChooseCurNonGarTimeDialog2(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\" ;\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString)+ \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showChooseCurNonGarTimeDialog1(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"20:00\";\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showTimeDialog() {\n\t\tTimePickerDialog tpd = new TimePickerDialog(this, new OnTimeSetListener(){\r\n\t\t\tpublic void onTimeSet(TimePicker view , int hour, int minute){\r\n\t\t\t\tgiorno.set(Calendar.HOUR_OF_DAY,hour);\r\n\t\t\t\tgiorno.set(Calendar.MINUTE,minute); \r\n\t\t\t\tEditText et_ora = (EditText) BookingActivity.this.findViewById(R.id.prenotazione_et_ora);\r\n\t\t\t\tformatter.applyPattern(\"HH:mm\");\r\n\t\t\t\tet_ora.setText(formatter.format(giorno.getTime()));\r\n\t\t\t}\t\t\t \t\r\n\t\t}, giorno.get(Calendar.HOUR_OF_DAY), giorno.get(Calendar.MINUTE), true);\r\n\t\ttpd.show();\r\n\t}",
"private void showChooseCurNonGarTimeDialog3(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }",
"private void getTimeView() {\n\n\t\ttry {\n\n\t\t\t// Launch Time Picker Dialog\n\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + hour);\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + minutes);\n\n\t\t\tTimePickerDialog tpd = new TimePickerDialog(this,\n\t\t\t\t\tnew TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay,\n\t\t\t\t\t\t\t\tint minute) {\n\n\t\t\t\t\t\t\tif (rf_booking_date_box.getText().toString()\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(currDate.toString())) {\n\t\t\t\t\t\t\t\tc = Calendar.getInstance();\n\t\t\t\t\t\t\t\tint curr_hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t\t\t\t\tint curr_minutes = c.get(Calendar.MINUTE);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_hour);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_minutes);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!hourOfDay<curr_hour\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (hourOfDay < curr_hour));\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!minute<curr_minutes\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (minute < curr_minutes));\n\n\t\t\t\t\t\t\t\tif (hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute <= curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay == curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes) {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! in if\");\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_Please_choose_valid_time),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay\n\t\t\t\t\t\t\t\t\t\t// + \":\" +\n\t\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay +\n\t\t\t\t\t\t\t\t\t// \":\" +\n\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}, hour, minutes, false);\n\t\t\ttpd.show();\n\t\t\ttpd.setCancelable(false);\n\t\t\ttpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddRDV.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n editTextHeur.setText(String.format(\"%02d\",selectedHour) + \":\" + String.format(\"%02d\" ,selectedMinute)+\":\"+\"00\");\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select time of your appointment\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n //validar hora\n plantaOut.setText(time);\n globals.getAntecedentesHormigonMuestreo().setPlantaOut(time);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"private void setTimeOfDay(){\n Calendar calendar = Calendar.getInstance();\n int timeOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n if(timeOfDay >= 0 && timeOfDay < 12){\n greetings.setText(\"Good Morning\");\n }else if(timeOfDay >= 12 && timeOfDay < 16){\n greetings.setText(\"Good Afternoon\");\n }else if(timeOfDay >= 16 && timeOfDay < 23){\n greetings.setText(\"Good Evening\");\n }\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvam.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime() +\"(上午)\";\r\n\t\t\t\t\t\t\t\t\t initPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }",
"private void selectTime() {\n Calendar calendar = Calendar.getInstance();\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n timeTonotify = i + \":\" + i1; //temp variable to store the time to set alarm\n mTimebtn.setText(FormatTime(i, i1)); //sets the button text as selected time\n }\n }, hour, minute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog26 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog26.updateTime(t26Hour26, t26Minute26);\n //show dialog\n timePickerDialog26.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 1;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog14 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog14.updateTime(t14Hour14, t14Minute14);\n //show dialog\n timePickerDialog14.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog28 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog28.updateTime(t28Hour28, t28Minute28);\n //show dialog\n timePickerDialog28.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddReminder.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n edtSelectTimeForMeet.setText( \"\" + selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvpm.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime()+\"(下午)\";\r\n\t\t\t\t\t\t\t\t\tinitPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 2;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }",
"private void timeSelectionDialog() {\n final TimeSelectionDialog timeSelectDialog = new TimeSelectionDialog(this, _game);\n timeSelectDialog.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n _game.setTime(timeSelectDialog.getSelectedTime());\n timeSelectDialog.dismiss();\n }\n });\n timeSelectDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog8 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog8.updateTime(t8Hour8, t8Minute8);\n //show dialog\n timePickerDialog8.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }",
"public void startAgentTime() {\n Timer timer = new Timer(SIBAConst.TIME_AGENT_CHANGE_FOR_HOUR, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n \t\n \tCalendar c = Calendar.getInstance();\n int minutos = c.get(Calendar.MINUTE);\n int hora = c.get( (Calendar.HOUR_OF_DAY)); \n hora = hora * 60;\n if (minutos >= 30 && minutos <= 59)\n {hora +=30;\t\n }\n if (hora > ctrlHours)\n {ctrlHours = hora;\n //activada bandera de modificacion de programacion\n activatedScheduleChange = true;\n }\n else\n { if (hora < ctrlHours)\n \t ctrlHours = 0;\n }\n \t\n \t\n \n }\n });\n timer.start();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\ttimeSet.performClick();\n\t\t\t\tif(ifFO.equals(\"Time_On\")){\n\t\t\t\t\tAppConstants.open.getTime();\n\t\t\t\t}else{\n\t\t\t\t\tAppConstants.close.getTime();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), starttimepicker, trigger.getStarttime().get(Calendar.HOUR), trigger.getStarttime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog17 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog17.updateTime(t17Hour17, t17Minute17);\n //show dialog\n timePickerDialog17.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), endtimepicker, trigger.getEndtime().get(Calendar.HOUR), trigger.getEndtime().get(Calendar.MINUTE), true).show();\n }",
"public GregorianCalendar getSelectedTime(){\n int start_hour = Integer.parseInt(this.time_hour.getValue().toString());\n int start_min = Integer.parseInt(this.time_min.getValue().toString());\n\n GregorianCalendar time = new GregorianCalendar();\n time.setTimeInMillis(0);\n\n time.set(Calendar.HOUR_OF_DAY, start_hour);\n time.set(Calendar.MINUTE, start_min);\n \n return time;\n }",
"@Override\n public void onClick(View v) {\n showDialog(TIME_DIALOG_ID);\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\tarrivingTime = \"14:00-20:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"14:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1+1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaPlantaTime;\n Date horaMuestroTime;\n Date horaCamionTime;\n\n try {\n if (globals.getAntecedentesHormigonMuestreo().getPlantaOut() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaPlantaTime = parser.parse(globals.getAntecedentesHormigonMuestreo().getPlantaOut());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.after(horaPlantaTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser inferior a la hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaMuestroTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.before(horaMuestroTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser mayor a la hora de toma muestra\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog30 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog30.updateTime(t30Hour30, t30Minute30);\n //show dialog\n timePickerDialog30.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"20:00\";\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"private void showTimePicker(final EditText editText, final boolean isStartType) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(mActivity, R.style.DialogTheme, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n if (isStartType) {\n Calendar datetime = Calendar.getInstance();\n Calendar c = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n if (datetime.getTimeInMillis() > c.getTimeInMillis()) {\n// it's after current\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n } else {\n// it's before current'\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.start_time_cant_be_less));\n\n }\n } else {\n if (!checktimings(etBeginTime.getText().toString(), parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)))) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.end_time_cant_less));\n } else if (pickUpTime != null && !pickUpTime.equals(\"\") && !appUtils.matchSameTime(appUtils.parseDateToTime(pickUpTime), selectedHour + \":\" + selectedMinute)) {\n appUtils.showAlertDialog(mActivity, \"\", getString(R.string.same_pickup_time), getString(R.string.ok), \"\", null);\n } else {\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n }\n }\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"\");\n mTimePicker.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog2 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog2.updateTime(t2Hour2, t2Minute2);\n //show dialog\n timePickerDialog2.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\" ;\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString)+ \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n TimePickerDialog timePicker = new TimePickerDialog(\n PHUpdateNonRecurringScheduleActivity.this,\n mTimeSetListener, mHour, mMinute, true);\n\n timePicker.show();\n }",
"private void showTimePicker(){\n\n // Create new time picker instance\n TimePickerDialog timePicker = new TimePickerDialog(this, (view, hourOfDay, minute) -> {\n // Update booking time\n bookingHour = hourOfDay;\n bookingMinute = minute;\n\n // Set the contents of the edit text to the relevant hours / minutes\n timeInput.setText(getString(R.string.desired_time_format, bookingHour, bookingMinute));\n\n }, bookingHour, bookingMinute, true);\n\n timePicker.setTitle(getString(R.string.desired_time_selection));\n timePicker.show();\n\n // Change button colors\n Button positiveButton = timePicker.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = timePicker.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddTripActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String a = \"\" + selectedMinute;\n String b = \"\" + selectedHour;\n if(selectedMinute<10){\n a = \"0\"+selectedMinute;\n }\n if(selectedHour<10){\n b = \"0\"+selectedHour;\n }\n mTime.setText( b + \":\" + a);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"@Override\n protected void onDialogClosed(boolean positiveResult) {\n super.onDialogClosed(positiveResult);\n\n if (positiveResult){\n setTime(timePicker.getHour(), timePicker.getMinute());\n }\n }",
"private void jadwalKetiga(){\n jadwalKetigaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalKetigaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[2][0] = hourOfDay;\n jadwal[2][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n out_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (in_time.getText().toString().trim().equals(\"\")) {\n *//*if(!validateintime())\n return;*//*\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n in_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (out_time.getText().toString().trim().equals(\"\")) {\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"public void onClick(DialogInterface dialog, int id) {\n Date dateObj = new Date();\n long timeNow = dateObj.getTime();\n editor.putLong(getResources().getString(R.string.later_pressed_time), timeNow);\n editor.putBoolean(getResources().getString(R.string.later), true);\n editor.commit();\n dialog.cancel();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n\n Date horaInTime;\n Date horaMuestreoTime;\n try {\n if (globals.getMuestra().getHoraIn() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n } else {\n horaInTime = parser.parse(globals.getMuestra().getHoraIn());\n horaMuestreoTime = parser.parse(time);\n if (horaMuestreoTime.after(horaInTime)) {\n\n timeMuestreo.setText(time);\n globals.getAntecedentesMuestreo().setTimeMuestreo(time);\n } else {\n Toast.makeText(getContext(), \"Hora de Muestreo no puede ser inferior a la hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeMuestreo.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n if (onDay){\n schedTime.set(Calendar.HOUR_OF_DAY,timePicker.getCurrentHour());\n schedTime.set(Calendar.MINUTE, timePicker.getCurrentMinute());\n }else{\n schedTime2.set(Calendar.HOUR_OF_DAY, timePicker.getCurrentHour());\n schedTime2.set(Calendar.MINUTE, timePicker.getCurrentMinute());\n }\n \n if (Math.abs(schedTime.get(Calendar.HOUR_OF_DAY) - schedTime2.get(Calendar.HOUR_OF_DAY)) >= 1){\n if (onDay){\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String dayTime = formatter.format(schedTime.getTime());\n startDay.setText(dayTime);\n formatter = new SimpleDateFormat(\"KK:mm\");\n serverStartDay = formatter.format(schedTime.getTime());\n }else{\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String nightTime = formatter.format(schedTime2.getTime());\n startNight.setText(nightTime);\n formatter = new SimpleDateFormat(\"KK:mm\");\n serverStartNight = formatter.format(schedTime2.getTime());\n }\n timeLayout.setVisibility(View.INVISIBLE);\n schedAdapter.notifyDataSetChanged();\n }else{\n AlertDialog.Builder myAlert = new AlertDialog.Builder(ScheduleParamsView.this)\n .setMessage(R.string.wrong_start_time_msg)\n .setTitle(R.string.wrong_start_time_title)\n .setNegativeButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n myAlert.show();\n //set the time back to the default on failure of following the rules!\n switch(schedIndex){\n case 0:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 1:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 2:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 3:\n schedTime.set(Calendar.HOUR_OF_DAY,7);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,18);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 4:\n schedTime.set(Calendar.HOUR_OF_DAY,6);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,19);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 5:\n schedTime.set(Calendar.HOUR_OF_DAY,6);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,19);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n }\n //set text of views back to default\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String dayTime = formatter.format(schedTime.getTime());\n startDay.setText(dayTime);\n String nightTime = formatter.format(schedTime2.getTime());\n startNight.setText(nightTime);\n schedAdapter.notifyDataSetChanged();\n }\n }",
"public void initializeTime() {\n hour = cal.get(Calendar.HOUR);\n min = cal.get(Calendar.MINUTE);\n\n time = (EditText) findViewById(R.id.textSetTime);\n time.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n if(min < 10) {\n time.setText(hour + \":0\" + min);\n } else {\n time.setText(hour + \":\" + min);\n }\n\n time.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n picker = new TimePickerDialog(ControlCenterActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n if(i1 < 10) {\n time.setText(i + \":0\" + i1);\n } else {\n time.setText(i + \":\" + i1);\n }\n }\n }, hour, min, false);\n\n picker.show();\n }\n });\n }",
"public static void updateTimeButtonClicked() {\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n String success = OccasionCommunication.updateOccasion(occasion.getId(), occasion.getDate(), occasion.getOpenTime(),\n occasion.getCloseTime(), occasion.getBuilding().getId());\n if (success.equals(\"Successful\")) {\n alert.hide();\n } else {\n alert.setContentText(success);\n alert.showAndWait();\n }\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog1 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog1.updateTime(t1Hour1, t1Minute1);\n //show dialog\n timePickerDialog1.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n eventTime.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Event Time\");\n mTimePicker.show();\n\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }",
"@Override\n public void onClick(View v) {\n if(v == botonHora){\n final Calendar calendar = Calendar.getInstance();\n hora = calendar.get(Calendar.HOUR_OF_DAY);\n minutos = calendar.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n if(minute <10)\n campoHora.setText(hourOfDay+\":\"+\"0\"+minute);\n else\n campoHora.setText(hourOfDay+\":\"+minute);\n }\n },hora,minutos,false);\n timePickerDialog.show();\n }\n }",
"private void jadwalKedua(){\n jadwalKeduaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalKeduaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[1][0] = hourOfDay;\n jadwal[1][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }",
"private void showTimePicker(){\n final Calendar c = Calendar.getInstance();\n mHour = c.get(Calendar.HOUR_OF_DAY);\n mMinute = c.get(Calendar.MINUTE);\n\n // Launch Time Picker Dialog\n TimePickerDialog tpd = new TimePickerDialog(this,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n // Display Selected time in textbox\n pickupTime.setText(hourOfDay + \":\" + minute);\n// Log.e(TAG,\"Time set: \" + mHour + \",\" + mMinute + \",\");\n }\n }, mHour, mMinute, false);\n\n tpd.show();\n }",
"private void gettime(){\n\t\t String depart_time = view.shpmTable.getSelection()[0].getAttribute(\"DEPART_TIME\");\n\t\t String unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n\t\t if(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t}else {\n\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\n\t\t\t}\n\t\t /*Util.db_async.getSingleRecord(\"MAX(DEPART_TIME)\", \"V_SHIPMENT_HEADER\", \" WHERE LOAD_NO='\"+load_no+\"'\", null, new AsyncCallback<HashMap<String,String>>() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onSuccess(HashMap<String, String> result) {\n\t\t\t\tString depart_time = result.get(\"MAX(DEPART_TIME)\");\n\t\t\t\tString unload_time = view.panel.getValue(\"UNLOAD_TIME\").toString();\n//\t\t\t\tboolean x =DateUtil.isAfter(unload_time, depart_time);\n\t\t\t\tif(!DateUtil.isAfter(unload_time, depart_time)){\n\t\t\t\t\tdoConfirm(view.panel.getValue(\"UNLOAD_TIME\").toString());\n\t\t\t\t}else {\n\t\t\t\t\tMSGUtil.sayWarning(\"到货签收时间不能小于实际发货时间!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t});*/\n\t}",
"@Override\n public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute, int second) {\n String time = Integer.toString(hourOfDay) + \"-\" + Integer.toString(minute);\n txtTime.setText(time);\n\n //TODO why get wrong time?\n calendar.set(Calendar.HOUR, hourOfDay);\n calendar.set(Calendar.MINUTE, minute);\n\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaCamionTime;\n Date horaMuestreoTime;\n Date horaDescargaTime;\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaMuestreoTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n horaDescargaTime = parser.parse(time);\n if (horaMuestreoTime.before(horaDescargaTime)) {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser mayor a la hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n\n if (globals.getAntecedentesMuestreo().getTimeCamion() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaCamionTime = parser.parse(globals.getAntecedentesMuestreo().getTimeCamion());\n\n horaDescargaTime = parser.parse(time);\n if (horaDescargaTime.after(horaCamionTime)) {\n\n horaDescarga.setText(time);\n globals.getAntecedentesMuestreo().setHoraDescarga(time);\n } else {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser inferior a la hora de llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n }\n }\n }\n }\n } catch (ParseException e) {\n horaDescarga.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"private void dialogCreateAppointment(){\n\n String day = spin_day.getSelectedItem().toString();//Get the text of the spinner\n String time = spin_start.getSelectedItem().toString()+ \" to \" +\n spin_end.getSelectedItem().toString();//Get the text of the spinner\n String fullTime = day + \" at \" + time;\n\n /**\n * Event of the dialog box (found on STACKOVERFLOW)\n */\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Appointment\");\n builder.setMessage(\"You sure you want to create an Appointment:\\n\" +\n fullTime);\n\n\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n getValidity();\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n\n }",
"private void showDialogTime() {\n final TimePickerDialog timePickerDialog = new TimePickerDialog(getActivity(),\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n mCal.set(Calendar.HOUR_OF_DAY, hourOfDay);\n mCal.set(Calendar.MINUTE, minute);\n\n tvDate.setText(getDateString(mCal));\n\n }\n }, mCal.get(Calendar.HOUR_OF_DAY), mCal.get(Calendar.MINUTE), true);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n mCal.set(Calendar.YEAR, year);\n mCal.set(Calendar.MONTH, monthOfYear);\n mCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n timePickerDialog.show();\n }\n }, mCal.get(Calendar.YEAR), mCal.get(Calendar.MONTH), mCal.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}"
] | [
"0.6698729",
"0.6647923",
"0.6575501",
"0.6574944",
"0.6480958",
"0.64342666",
"0.6410434",
"0.63815314",
"0.63493013",
"0.6339778",
"0.630559",
"0.62950456",
"0.62844425",
"0.6283278",
"0.6281982",
"0.62764096",
"0.6254616",
"0.62541837",
"0.62512517",
"0.6250857",
"0.62454075",
"0.6238348",
"0.62341416",
"0.62271017",
"0.6225818",
"0.62230146",
"0.62135565",
"0.6213188",
"0.6212149",
"0.62093127",
"0.6199283",
"0.6196132",
"0.6189573",
"0.618676",
"0.6186198",
"0.6181669",
"0.6172205",
"0.6152792",
"0.6150565",
"0.61501706",
"0.61467713",
"0.6146149",
"0.61441314",
"0.6138224",
"0.6132107",
"0.61226857",
"0.61168647",
"0.61134356",
"0.61132354",
"0.61132157",
"0.6112017",
"0.61081606",
"0.61059475",
"0.61033434",
"0.6102873",
"0.60993874",
"0.6094639",
"0.6093693",
"0.60892516",
"0.6086531",
"0.60826296",
"0.6071572",
"0.6067434",
"0.6065126",
"0.60616994",
"0.6060995",
"0.6055084",
"0.6047284",
"0.60471785",
"0.60437423",
"0.6035428",
"0.60335773",
"0.6029016",
"0.6020393",
"0.6013726",
"0.60136056",
"0.60024834",
"0.60011685",
"0.5996026",
"0.5994928",
"0.5990959",
"0.5980883",
"0.5971748",
"0.5956117",
"0.59539616",
"0.59460896",
"0.59374267",
"0.5930799",
"0.5929351",
"0.5921291",
"0.58956665",
"0.5893679",
"0.58881074",
"0.5848512",
"0.58475965",
"0.5847458",
"0.5844873",
"0.58398426",
"0.5831832",
"0.5825949"
] | 0.66920745 | 1 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = "14:00-20:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"14:00:00";
postArrivalLateTime = leaveTimeString + " " + "20:00:00";
setTime(arrivingTime);
break;
case 1:
arrivingTime = "20:00-23:59";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"20:00:00";
postArrivalLateTime = leaveTimeString + " " + "23:59:00";
setTime(arrivingTime);
break;
case 2:
arrivingTime = "23:59-次日06:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"23:59:00";
postArrivalLateTime = getDateNext(liveTimeString) + " " + "06:00:00";
int dayNum1 = Integer.parseInt(dayTextView.getText().toString());
int roomNum1 = Integer.parseInt(roomtTextView.getText().toString());
if(dayNum1 != 1){
//dayTextView.setText(""+(dayNum1+1));
//zongpicTextView.setText("¥"+((j/dayNum1)*(dayNum1+1)*roomNum1));
}else{
//dayTextView.setText("1");
//zongpicTextView.setText("¥"+(j*1*roomNum1));
}
setTime(arrivingTime);
break;
default:
arrivingTime = "";
setTime(arrivingTime);
break;
}
} | {
"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 |
/ dialog for choosing the arriving time if garKey = 0 and current day | private void showChooseCurNonGarTimeDialog2(){
alertDialog = new AlertDialog.Builder(this);
alertDialog.setTitle("请选择添到店时间");
timeString = new String[] {"23:59","次日06:00"};
final ArrayList<String> arrayList = new ArrayList<String>();
//final ArrayList<String> arrayListType = new ArrayList<String>();
for (int i = 0; i < timeString.length; i++) {
if (!timeString[i].equals("null")) {
arrayList.add(timeString[i]);
//arrayListType.add(typeArrayStrings[i]);
}
}
//将遍历之后的数组 arraylist的内容在选择器上显示
alertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = (getTimeCurrentHr()+1)+":00"+"-"+"23:59";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " + (getTimeCurrentHr()+1)+":00:00";
postArrivalLateTime = leaveTimeString + " " + "23:59:00";
setTime(arrivingTime);
break;
case 1:
arrivingTime = "23:59-次日06:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"23:59:00" ;
postArrivalLateTime = getDateNext(liveTimeString)+ " " + "06:00:00";
setTime(arrivingTime);
int dayNum1 = Integer.parseInt(dayTextView.getText().toString());
int roomNum1 = Integer.parseInt(roomtTextView.getText().toString());
if(dayNum1 != 1){
//dayTextView.setText(""+(dayNum1+1));
//zongpicTextView.setText("¥"+((j/dayNum1)*(dayNum1-1)*roomNum1));
}else{
//dayTextView.setText("1");
//zongpicTextView.setText("¥"+(j*1*roomNum1));
}
break;
default:
arrivingTime = "";
setTime(arrivingTime);
break;
}
}
}).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showChooseNonCurNonGarTimeDialog(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\t\t\t\t//timeTextView.setText(timeString[0]);\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\tarrivingTime = \"14:00-20:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"14:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1+1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showChooseCurNonGarTimeDialog1(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"20:00\";\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showChooseCurNonGarTimeDialog3(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showTimeDialog() {\n\t\tTimePickerDialog tpd = new TimePickerDialog(this, new OnTimeSetListener(){\r\n\t\t\tpublic void onTimeSet(TimePicker view , int hour, int minute){\r\n\t\t\t\tgiorno.set(Calendar.HOUR_OF_DAY,hour);\r\n\t\t\t\tgiorno.set(Calendar.MINUTE,minute); \r\n\t\t\t\tEditText et_ora = (EditText) BookingActivity.this.findViewById(R.id.prenotazione_et_ora);\r\n\t\t\t\tformatter.applyPattern(\"HH:mm\");\r\n\t\t\t\tet_ora.setText(formatter.format(giorno.getTime()));\r\n\t\t\t}\t\t\t \t\r\n\t\t}, giorno.get(Calendar.HOUR_OF_DAY), giorno.get(Calendar.MINUTE), true);\r\n\t\ttpd.show();\r\n\t}",
"private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }",
"private void getTimeView() {\n\n\t\ttry {\n\n\t\t\t// Launch Time Picker Dialog\n\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + hour);\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + minutes);\n\n\t\t\tTimePickerDialog tpd = new TimePickerDialog(this,\n\t\t\t\t\tnew TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay,\n\t\t\t\t\t\t\t\tint minute) {\n\n\t\t\t\t\t\t\tif (rf_booking_date_box.getText().toString()\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(currDate.toString())) {\n\t\t\t\t\t\t\t\tc = Calendar.getInstance();\n\t\t\t\t\t\t\t\tint curr_hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t\t\t\t\tint curr_minutes = c.get(Calendar.MINUTE);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_hour);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_minutes);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!hourOfDay<curr_hour\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (hourOfDay < curr_hour));\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!minute<curr_minutes\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (minute < curr_minutes));\n\n\t\t\t\t\t\t\t\tif (hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute <= curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay == curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes) {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! in if\");\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_Please_choose_valid_time),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay\n\t\t\t\t\t\t\t\t\t\t// + \":\" +\n\t\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay +\n\t\t\t\t\t\t\t\t\t// \":\" +\n\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}, hour, minutes, false);\n\t\t\ttpd.show();\n\t\t\ttpd.setCancelable(false);\n\t\t\ttpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddRDV.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n editTextHeur.setText(String.format(\"%02d\",selectedHour) + \":\" + String.format(\"%02d\" ,selectedMinute)+\":\"+\"00\");\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select time of your appointment\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n //validar hora\n plantaOut.setText(time);\n globals.getAntecedentesHormigonMuestreo().setPlantaOut(time);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"private void setTimeOfDay(){\n Calendar calendar = Calendar.getInstance();\n int timeOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n if(timeOfDay >= 0 && timeOfDay < 12){\n greetings.setText(\"Good Morning\");\n }else if(timeOfDay >= 12 && timeOfDay < 16){\n greetings.setText(\"Good Afternoon\");\n }else if(timeOfDay >= 16 && timeOfDay < 23){\n greetings.setText(\"Good Evening\");\n }\n }",
"private void selectTime() {\n Calendar calendar = Calendar.getInstance();\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n timeTonotify = i + \":\" + i1; //temp variable to store the time to set alarm\n mTimebtn.setText(FormatTime(i, i1)); //sets the button text as selected time\n }\n }, hour, minute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvam.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime() +\"(上午)\";\r\n\t\t\t\t\t\t\t\t\t initPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog26 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog26.updateTime(t26Hour26, t26Minute26);\n //show dialog\n timePickerDialog26.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog14 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog14.updateTime(t14Hour14, t14Minute14);\n //show dialog\n timePickerDialog14.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog28 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog28.updateTime(t28Hour28, t28Minute28);\n //show dialog\n timePickerDialog28.show();\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddReminder.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n edtSelectTimeForMeet.setText( \"\" + selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 1;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvpm.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime()+\"(下午)\";\r\n\t\t\t\t\t\t\t\t\tinitPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }",
"private void timeSelectionDialog() {\n final TimeSelectionDialog timeSelectDialog = new TimeSelectionDialog(this, _game);\n timeSelectDialog.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n _game.setTime(timeSelectDialog.getSelectedTime());\n timeSelectDialog.dismiss();\n }\n });\n timeSelectDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 2;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog8 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog8.updateTime(t8Hour8, t8Minute8);\n //show dialog\n timePickerDialog8.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\ttimeSet.performClick();\n\t\t\t\tif(ifFO.equals(\"Time_On\")){\n\t\t\t\t\tAppConstants.open.getTime();\n\t\t\t\t}else{\n\t\t\t\t\tAppConstants.close.getTime();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }",
"public void startAgentTime() {\n Timer timer = new Timer(SIBAConst.TIME_AGENT_CHANGE_FOR_HOUR, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n \t\n \tCalendar c = Calendar.getInstance();\n int minutos = c.get(Calendar.MINUTE);\n int hora = c.get( (Calendar.HOUR_OF_DAY)); \n hora = hora * 60;\n if (minutos >= 30 && minutos <= 59)\n {hora +=30;\t\n }\n if (hora > ctrlHours)\n {ctrlHours = hora;\n //activada bandera de modificacion de programacion\n activatedScheduleChange = true;\n }\n else\n { if (hora < ctrlHours)\n \t ctrlHours = 0;\n }\n \t\n \t\n \n }\n });\n timer.start();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog17 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog17.updateTime(t17Hour17, t17Minute17);\n //show dialog\n timePickerDialog17.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), starttimepicker, trigger.getStarttime().get(Calendar.HOUR), trigger.getStarttime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\tarrivingTime = \"14:00-20:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"14:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1+1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n showDialog(TIME_DIALOG_ID);\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), endtimepicker, trigger.getEndtime().get(Calendar.HOUR), trigger.getEndtime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"20:00\";\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog30 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog30.updateTime(t30Hour30, t30Minute30);\n //show dialog\n timePickerDialog30.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaPlantaTime;\n Date horaMuestroTime;\n Date horaCamionTime;\n\n try {\n if (globals.getAntecedentesHormigonMuestreo().getPlantaOut() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaPlantaTime = parser.parse(globals.getAntecedentesHormigonMuestreo().getPlantaOut());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.after(horaPlantaTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser inferior a la hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaMuestroTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.before(horaMuestroTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser mayor a la hora de toma muestra\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\" ;\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString)+ \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"private void showTimePicker(){\n\n // Create new time picker instance\n TimePickerDialog timePicker = new TimePickerDialog(this, (view, hourOfDay, minute) -> {\n // Update booking time\n bookingHour = hourOfDay;\n bookingMinute = minute;\n\n // Set the contents of the edit text to the relevant hours / minutes\n timeInput.setText(getString(R.string.desired_time_format, bookingHour, bookingMinute));\n\n }, bookingHour, bookingMinute, true);\n\n timePicker.setTitle(getString(R.string.desired_time_selection));\n timePicker.show();\n\n // Change button colors\n Button positiveButton = timePicker.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = timePicker.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog2 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog2.updateTime(t2Hour2, t2Minute2);\n //show dialog\n timePickerDialog2.show();\n }",
"public static void updateTimeButtonClicked() {\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n String success = OccasionCommunication.updateOccasion(occasion.getId(), occasion.getDate(), occasion.getOpenTime(),\n occasion.getCloseTime(), occasion.getBuilding().getId());\n if (success.equals(\"Successful\")) {\n alert.hide();\n } else {\n alert.setContentText(success);\n alert.showAndWait();\n }\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }",
"public GregorianCalendar getSelectedTime(){\n int start_hour = Integer.parseInt(this.time_hour.getValue().toString());\n int start_min = Integer.parseInt(this.time_min.getValue().toString());\n\n GregorianCalendar time = new GregorianCalendar();\n time.setTimeInMillis(0);\n\n time.set(Calendar.HOUR_OF_DAY, start_hour);\n time.set(Calendar.MINUTE, start_min);\n \n return time;\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }",
"private void jadwalKetiga(){\n jadwalKetigaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalKetigaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[2][0] = hourOfDay;\n jadwal[2][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddTripActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String a = \"\" + selectedMinute;\n String b = \"\" + selectedHour;\n if(selectedMinute<10){\n a = \"0\"+selectedMinute;\n }\n if(selectedHour<10){\n b = \"0\"+selectedHour;\n }\n mTime.setText( b + \":\" + a);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"public void onClick(DialogInterface dialog, int id) {\n Date dateObj = new Date();\n long timeNow = dateObj.getTime();\n editor.putLong(getResources().getString(R.string.later_pressed_time), timeNow);\n editor.putBoolean(getResources().getString(R.string.later), true);\n editor.commit();\n dialog.cancel();\n }",
"@Override\n public void onClick(View v) {\n TimePickerDialog timePicker = new TimePickerDialog(\n PHUpdateNonRecurringScheduleActivity.this,\n mTimeSetListener, mHour, mMinute, true);\n\n timePicker.show();\n }",
"private void showTimePicker(final EditText editText, final boolean isStartType) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(mActivity, R.style.DialogTheme, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n if (isStartType) {\n Calendar datetime = Calendar.getInstance();\n Calendar c = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n if (datetime.getTimeInMillis() > c.getTimeInMillis()) {\n// it's after current\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n } else {\n// it's before current'\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.start_time_cant_be_less));\n\n }\n } else {\n if (!checktimings(etBeginTime.getText().toString(), parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)))) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.end_time_cant_less));\n } else if (pickUpTime != null && !pickUpTime.equals(\"\") && !appUtils.matchSameTime(appUtils.parseDateToTime(pickUpTime), selectedHour + \":\" + selectedMinute)) {\n appUtils.showAlertDialog(mActivity, \"\", getString(R.string.same_pickup_time), getString(R.string.ok), \"\", null);\n } else {\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n }\n }\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"\");\n mTimePicker.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n\n Date horaInTime;\n Date horaMuestreoTime;\n try {\n if (globals.getMuestra().getHoraIn() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n } else {\n horaInTime = parser.parse(globals.getMuestra().getHoraIn());\n horaMuestreoTime = parser.parse(time);\n if (horaMuestreoTime.after(horaInTime)) {\n\n timeMuestreo.setText(time);\n globals.getAntecedentesMuestreo().setTimeMuestreo(time);\n } else {\n Toast.makeText(getContext(), \"Hora de Muestreo no puede ser inferior a la hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeMuestreo.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n if (onDay){\n schedTime.set(Calendar.HOUR_OF_DAY,timePicker.getCurrentHour());\n schedTime.set(Calendar.MINUTE, timePicker.getCurrentMinute());\n }else{\n schedTime2.set(Calendar.HOUR_OF_DAY, timePicker.getCurrentHour());\n schedTime2.set(Calendar.MINUTE, timePicker.getCurrentMinute());\n }\n \n if (Math.abs(schedTime.get(Calendar.HOUR_OF_DAY) - schedTime2.get(Calendar.HOUR_OF_DAY)) >= 1){\n if (onDay){\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String dayTime = formatter.format(schedTime.getTime());\n startDay.setText(dayTime);\n formatter = new SimpleDateFormat(\"KK:mm\");\n serverStartDay = formatter.format(schedTime.getTime());\n }else{\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String nightTime = formatter.format(schedTime2.getTime());\n startNight.setText(nightTime);\n formatter = new SimpleDateFormat(\"KK:mm\");\n serverStartNight = formatter.format(schedTime2.getTime());\n }\n timeLayout.setVisibility(View.INVISIBLE);\n schedAdapter.notifyDataSetChanged();\n }else{\n AlertDialog.Builder myAlert = new AlertDialog.Builder(ScheduleParamsView.this)\n .setMessage(R.string.wrong_start_time_msg)\n .setTitle(R.string.wrong_start_time_title)\n .setNegativeButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n myAlert.show();\n //set the time back to the default on failure of following the rules!\n switch(schedIndex){\n case 0:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 1:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 2:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 3:\n schedTime.set(Calendar.HOUR_OF_DAY,7);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,18);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 4:\n schedTime.set(Calendar.HOUR_OF_DAY,6);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,19);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 5:\n schedTime.set(Calendar.HOUR_OF_DAY,6);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,19);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n }\n //set text of views back to default\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String dayTime = formatter.format(schedTime.getTime());\n startDay.setText(dayTime);\n String nightTime = formatter.format(schedTime2.getTime());\n startNight.setText(nightTime);\n schedAdapter.notifyDataSetChanged();\n }\n }",
"@Override\n protected void onDialogClosed(boolean positiveResult) {\n super.onDialogClosed(positiveResult);\n\n if (positiveResult){\n setTime(timePicker.getHour(), timePicker.getMinute());\n }\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n eventTime.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Event Time\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n in_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (out_time.getText().toString().trim().equals(\"\")) {\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog1 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog1.updateTime(t1Hour1, t1Minute1);\n //show dialog\n timePickerDialog1.show();\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n out_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (in_time.getText().toString().trim().equals(\"\")) {\n *//*if(!validateintime())\n return;*//*\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }",
"public void initializeTime() {\n hour = cal.get(Calendar.HOUR);\n min = cal.get(Calendar.MINUTE);\n\n time = (EditText) findViewById(R.id.textSetTime);\n time.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n if(min < 10) {\n time.setText(hour + \":0\" + min);\n } else {\n time.setText(hour + \":\" + min);\n }\n\n time.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n picker = new TimePickerDialog(ControlCenterActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n if(i1 < 10) {\n time.setText(i + \":0\" + i1);\n } else {\n time.setText(i + \":\" + i1);\n }\n }\n }, hour, min, false);\n\n picker.show();\n }\n });\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }",
"private void jadwalKedua(){\n jadwalKeduaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalKeduaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[1][0] = hourOfDay;\n jadwal[1][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n if(v == botonHora){\n final Calendar calendar = Calendar.getInstance();\n hora = calendar.get(Calendar.HOUR_OF_DAY);\n minutos = calendar.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n if(minute <10)\n campoHora.setText(hourOfDay+\":\"+\"0\"+minute);\n else\n campoHora.setText(hourOfDay+\":\"+minute);\n }\n },hora,minutos,false);\n timePickerDialog.show();\n }\n }",
"private void dialogCreateAppointment(){\n\n String day = spin_day.getSelectedItem().toString();//Get the text of the spinner\n String time = spin_start.getSelectedItem().toString()+ \" to \" +\n spin_end.getSelectedItem().toString();//Get the text of the spinner\n String fullTime = day + \" at \" + time;\n\n /**\n * Event of the dialog box (found on STACKOVERFLOW)\n */\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Appointment\");\n builder.setMessage(\"You sure you want to create an Appointment:\\n\" +\n fullTime);\n\n\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n getValidity();\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n\n }",
"public void setupTimeDialog(PlaceIt placeit) {\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(\"Set recurrence for PlaceIt \" + placeit.getTitle());\n\t\tLayoutInflater inflater = getLayoutInflater();\n\t\tfinal View dialog = inflater.inflate(R.layout.placeit_time_form, null);\n\t\t\n\t\tint checkedItem = -1;\n\t\t\n\t\t// Create single choice list\n\t\tbuilder.setSingleChoiceItems(R.array.days_array, checkedItem, new DialogInterface.OnClickListener() {\n\t\t\t@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n\t\t\t\t// do something with checkedItem\n }\n\t\t});\n\t\t// Create textbox for number of weeks\n\t\tTextView every = (TextView) dialog.findViewById(R.id.every);\n\t\tfinal EditText numweeks = (EditText) dialog.findViewById(R.id.numweeks);\n\t\tTextView weeks = (TextView) dialog.findViewById(R.id.weeks);\n\t\t\n\t\t\n\t\t// Set the action buttons\n builder.setPositiveButton(R.string.recurrence_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK, so save the mSelectedItems results somewhere\n // or return them to the component that opened the dialog\n \n }\n });\n builder.setNegativeButton(R.string.recurrence_cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n \n }\n });\n\t\t\n builder.setView(dialog);\n builder.show();\n\t\t\n\t\t/*\n\t\tSpinner dayspinner = (Spinner) findViewById(R.id.days_spinner);\n\t\t\n\t\t// Create an ArrayAdapter using the string array and a default spinner layout\n\t\tArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n\t\t R.array.days_array, android.R.layout.simple_spinner_item);\n\t\t// Specify the layout to use when the list of choices appears\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\t// Apply the adapter to the spinner\n\t\tdayspinner.setAdapter(adapter);\n\t\t\n\t\t\n\t\talert.setView(dialog);\n\t\talert.show();\n\t\t*/\n\t\t\n\t}",
"@Then(\"^I choose an interval time$\")\n public void i_choose_an_interval_time() {\n onViewWithId(R.id.startHour).type(\"12:00\");\n onViewWithId(R.id.endHour).type(\"23:59\");\n }",
"private void showTimePicker(){\n final Calendar c = Calendar.getInstance();\n mHour = c.get(Calendar.HOUR_OF_DAY);\n mMinute = c.get(Calendar.MINUTE);\n\n // Launch Time Picker Dialog\n TimePickerDialog tpd = new TimePickerDialog(this,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n // Display Selected time in textbox\n pickupTime.setText(hourOfDay + \":\" + minute);\n// Log.e(TAG,\"Time set: \" + mHour + \",\" + mMinute + \",\");\n }\n }, mHour, mMinute, false);\n\n tpd.show();\n }",
"private void showDialogTime() {\n final TimePickerDialog timePickerDialog = new TimePickerDialog(getActivity(),\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n mCal.set(Calendar.HOUR_OF_DAY, hourOfDay);\n mCal.set(Calendar.MINUTE, minute);\n\n tvDate.setText(getDateString(mCal));\n\n }\n }, mCal.get(Calendar.HOUR_OF_DAY), mCal.get(Calendar.MINUTE), true);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n mCal.set(Calendar.YEAR, year);\n mCal.set(Calendar.MONTH, monthOfYear);\n mCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n timePickerDialog.show();\n }\n }, mCal.get(Calendar.YEAR), mCal.get(Calendar.MONTH), mCal.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaCamionTime;\n Date horaMuestreoTime;\n Date horaDescargaTime;\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaMuestreoTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n horaDescargaTime = parser.parse(time);\n if (horaMuestreoTime.before(horaDescargaTime)) {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser mayor a la hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n\n if (globals.getAntecedentesMuestreo().getTimeCamion() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaCamionTime = parser.parse(globals.getAntecedentesMuestreo().getTimeCamion());\n\n horaDescargaTime = parser.parse(time);\n if (horaDescargaTime.after(horaCamionTime)) {\n\n horaDescarga.setText(time);\n globals.getAntecedentesMuestreo().setHoraDescarga(time);\n } else {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser inferior a la hora de llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n }\n }\n }\n }\n } catch (ParseException e) {\n horaDescarga.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }"
] | [
"0.6714547",
"0.6693776",
"0.66215605",
"0.6603256",
"0.6533787",
"0.65114045",
"0.64764655",
"0.64604414",
"0.6431885",
"0.64099616",
"0.64015925",
"0.63842624",
"0.6372471",
"0.6358816",
"0.63586193",
"0.63578635",
"0.63403153",
"0.63380843",
"0.6331999",
"0.63301027",
"0.6317425",
"0.6314568",
"0.63123155",
"0.63028735",
"0.6297195",
"0.62959754",
"0.6294959",
"0.6292357",
"0.6280287",
"0.6280213",
"0.62789434",
"0.6271396",
"0.62668955",
"0.626618",
"0.6265355",
"0.62580687",
"0.6247069",
"0.6246624",
"0.6232539",
"0.6231045",
"0.6229572",
"0.6228835",
"0.62278444",
"0.6225817",
"0.6221104",
"0.6212857",
"0.6198323",
"0.6198203",
"0.61948586",
"0.6193225",
"0.619033",
"0.6187392",
"0.6183837",
"0.618223",
"0.6182",
"0.61750704",
"0.61736125",
"0.6171703",
"0.616135",
"0.61483693",
"0.6145849",
"0.61428046",
"0.6140498",
"0.6138351",
"0.6137632",
"0.6131671",
"0.6118147",
"0.6116362",
"0.6116237",
"0.61142325",
"0.6113377",
"0.61123985",
"0.6111635",
"0.6106236",
"0.609738",
"0.6081591",
"0.607739",
"0.60672265",
"0.60600156",
"0.6046888",
"0.6046674",
"0.60443693",
"0.6037451",
"0.60225004",
"0.6020703",
"0.601631",
"0.6014594",
"0.6009692",
"0.60090375",
"0.60023725",
"0.5984548",
"0.59819555",
"0.59758264",
"0.5961185",
"0.59364074",
"0.5931647",
"0.5918935",
"0.59146184",
"0.59118664",
"0.590633"
] | 0.6751674 | 0 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = (getTimeCurrentHr()+1)+":00"+"-"+"23:59";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " + (getTimeCurrentHr()+1)+":00:00";
postArrivalLateTime = leaveTimeString + " " + "23:59:00";
setTime(arrivingTime);
break;
case 1:
arrivingTime = "23:59-次日06:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"23:59:00" ;
postArrivalLateTime = getDateNext(liveTimeString)+ " " + "06:00:00";
setTime(arrivingTime);
int dayNum1 = Integer.parseInt(dayTextView.getText().toString());
int roomNum1 = Integer.parseInt(roomtTextView.getText().toString());
if(dayNum1 != 1){
//dayTextView.setText(""+(dayNum1+1));
//zongpicTextView.setText("¥"+((j/dayNum1)*(dayNum1-1)*roomNum1));
}else{
//dayTextView.setText("1");
//zongpicTextView.setText("¥"+(j*1*roomNum1));
}
break;
default:
arrivingTime = "";
setTime(arrivingTime);
break;
}
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
/ dialog for choosing the arriving time if garKey = 0 and current day | private void showChooseCurNonGarTimeDialog3(){
alertDialog = new AlertDialog.Builder(this);
alertDialog.setTitle("请选择添到店时间");
timeString = new String[] {"次日06:00"};
final ArrayList<String> arrayList = new ArrayList<String>();
//final ArrayList<String> arrayListType = new ArrayList<String>();
for (int i = 0; i < timeString.length; i++) {
if (!timeString[i].equals("null")) {
arrayList.add(timeString[i]);
//arrayListType.add(typeArrayStrings[i]);
}
}
//将遍历之后的数组 arraylist的内容在选择器上显示
alertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = "23:59-次日06:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"23:59:00";
postArrivalLateTime = getDateNext(liveTimeString) + " " + "06:00:00";
setTime(arrivingTime);
int dayNum1 = Integer.parseInt(dayTextView.getText().toString());
int roomNum1 = Integer.parseInt(roomtTextView.getText().toString());
if(dayNum1 != 1){
//dayTextView.setText(""+(dayNum1+1));
//zongpicTextView.setText("¥"+((j/dayNum1)*(dayNum1-1)*roomNum1));
}else{
//dayTextView.setText("1");
//zongpicTextView.setText("¥"+(j*1*roomNum1));
}
break;
default:
arrivingTime = "";
setTime(arrivingTime);
break;
}
}
}).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showChooseCurNonGarTimeDialog2(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\" ;\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString)+ \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showChooseNonCurNonGarTimeDialog(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\t\t\t\t//timeTextView.setText(timeString[0]);\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\tarrivingTime = \"14:00-20:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"14:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1+1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showChooseCurNonGarTimeDialog1(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"20:00\";\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showTimeDialog() {\n\t\tTimePickerDialog tpd = new TimePickerDialog(this, new OnTimeSetListener(){\r\n\t\t\tpublic void onTimeSet(TimePicker view , int hour, int minute){\r\n\t\t\t\tgiorno.set(Calendar.HOUR_OF_DAY,hour);\r\n\t\t\t\tgiorno.set(Calendar.MINUTE,minute); \r\n\t\t\t\tEditText et_ora = (EditText) BookingActivity.this.findViewById(R.id.prenotazione_et_ora);\r\n\t\t\t\tformatter.applyPattern(\"HH:mm\");\r\n\t\t\t\tet_ora.setText(formatter.format(giorno.getTime()));\r\n\t\t\t}\t\t\t \t\r\n\t\t}, giorno.get(Calendar.HOUR_OF_DAY), giorno.get(Calendar.MINUTE), true);\r\n\t\ttpd.show();\r\n\t}",
"private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }",
"private void getTimeView() {\n\n\t\ttry {\n\n\t\t\t// Launch Time Picker Dialog\n\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + hour);\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + minutes);\n\n\t\t\tTimePickerDialog tpd = new TimePickerDialog(this,\n\t\t\t\t\tnew TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay,\n\t\t\t\t\t\t\t\tint minute) {\n\n\t\t\t\t\t\t\tif (rf_booking_date_box.getText().toString()\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(currDate.toString())) {\n\t\t\t\t\t\t\t\tc = Calendar.getInstance();\n\t\t\t\t\t\t\t\tint curr_hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t\t\t\t\tint curr_minutes = c.get(Calendar.MINUTE);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_hour);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_minutes);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!hourOfDay<curr_hour\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (hourOfDay < curr_hour));\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!minute<curr_minutes\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (minute < curr_minutes));\n\n\t\t\t\t\t\t\t\tif (hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute <= curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay == curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes) {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! in if\");\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_Please_choose_valid_time),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay\n\t\t\t\t\t\t\t\t\t\t// + \":\" +\n\t\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay +\n\t\t\t\t\t\t\t\t\t// \":\" +\n\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}, hour, minutes, false);\n\t\t\ttpd.show();\n\t\t\ttpd.setCancelable(false);\n\t\t\ttpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddRDV.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n editTextHeur.setText(String.format(\"%02d\",selectedHour) + \":\" + String.format(\"%02d\" ,selectedMinute)+\":\"+\"00\");\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select time of your appointment\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n //validar hora\n plantaOut.setText(time);\n globals.getAntecedentesHormigonMuestreo().setPlantaOut(time);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"private void setTimeOfDay(){\n Calendar calendar = Calendar.getInstance();\n int timeOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n if(timeOfDay >= 0 && timeOfDay < 12){\n greetings.setText(\"Good Morning\");\n }else if(timeOfDay >= 12 && timeOfDay < 16){\n greetings.setText(\"Good Afternoon\");\n }else if(timeOfDay >= 16 && timeOfDay < 23){\n greetings.setText(\"Good Evening\");\n }\n }",
"private void selectTime() {\n Calendar calendar = Calendar.getInstance();\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n timeTonotify = i + \":\" + i1; //temp variable to store the time to set alarm\n mTimebtn.setText(FormatTime(i, i1)); //sets the button text as selected time\n }\n }, hour, minute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvam.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime() +\"(上午)\";\r\n\t\t\t\t\t\t\t\t\t initPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog26 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog26.updateTime(t26Hour26, t26Minute26);\n //show dialog\n timePickerDialog26.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog14 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog14.updateTime(t14Hour14, t14Minute14);\n //show dialog\n timePickerDialog14.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog28 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog28.updateTime(t28Hour28, t28Minute28);\n //show dialog\n timePickerDialog28.show();\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddReminder.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n edtSelectTimeForMeet.setText( \"\" + selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 1;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvpm.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime()+\"(下午)\";\r\n\t\t\t\t\t\t\t\t\tinitPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }",
"private void timeSelectionDialog() {\n final TimeSelectionDialog timeSelectDialog = new TimeSelectionDialog(this, _game);\n timeSelectDialog.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n _game.setTime(timeSelectDialog.getSelectedTime());\n timeSelectDialog.dismiss();\n }\n });\n timeSelectDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 2;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog8 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog8.updateTime(t8Hour8, t8Minute8);\n //show dialog\n timePickerDialog8.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\ttimeSet.performClick();\n\t\t\t\tif(ifFO.equals(\"Time_On\")){\n\t\t\t\t\tAppConstants.open.getTime();\n\t\t\t\t}else{\n\t\t\t\t\tAppConstants.close.getTime();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }",
"public void startAgentTime() {\n Timer timer = new Timer(SIBAConst.TIME_AGENT_CHANGE_FOR_HOUR, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n \t\n \tCalendar c = Calendar.getInstance();\n int minutos = c.get(Calendar.MINUTE);\n int hora = c.get( (Calendar.HOUR_OF_DAY)); \n hora = hora * 60;\n if (minutos >= 30 && minutos <= 59)\n {hora +=30;\t\n }\n if (hora > ctrlHours)\n {ctrlHours = hora;\n //activada bandera de modificacion de programacion\n activatedScheduleChange = true;\n }\n else\n { if (hora < ctrlHours)\n \t ctrlHours = 0;\n }\n \t\n \t\n \n }\n });\n timer.start();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog17 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog17.updateTime(t17Hour17, t17Minute17);\n //show dialog\n timePickerDialog17.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), starttimepicker, trigger.getStarttime().get(Calendar.HOUR), trigger.getStarttime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\tarrivingTime = \"14:00-20:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"14:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1+1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n showDialog(TIME_DIALOG_ID);\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), endtimepicker, trigger.getEndtime().get(Calendar.HOUR), trigger.getEndtime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"20:00\";\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog30 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog30.updateTime(t30Hour30, t30Minute30);\n //show dialog\n timePickerDialog30.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaPlantaTime;\n Date horaMuestroTime;\n Date horaCamionTime;\n\n try {\n if (globals.getAntecedentesHormigonMuestreo().getPlantaOut() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaPlantaTime = parser.parse(globals.getAntecedentesHormigonMuestreo().getPlantaOut());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.after(horaPlantaTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser inferior a la hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaMuestroTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.before(horaMuestroTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser mayor a la hora de toma muestra\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\" ;\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString)+ \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"private void showTimePicker(){\n\n // Create new time picker instance\n TimePickerDialog timePicker = new TimePickerDialog(this, (view, hourOfDay, minute) -> {\n // Update booking time\n bookingHour = hourOfDay;\n bookingMinute = minute;\n\n // Set the contents of the edit text to the relevant hours / minutes\n timeInput.setText(getString(R.string.desired_time_format, bookingHour, bookingMinute));\n\n }, bookingHour, bookingMinute, true);\n\n timePicker.setTitle(getString(R.string.desired_time_selection));\n timePicker.show();\n\n // Change button colors\n Button positiveButton = timePicker.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = timePicker.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog2 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog2.updateTime(t2Hour2, t2Minute2);\n //show dialog\n timePickerDialog2.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }",
"public static void updateTimeButtonClicked() {\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n String success = OccasionCommunication.updateOccasion(occasion.getId(), occasion.getDate(), occasion.getOpenTime(),\n occasion.getCloseTime(), occasion.getBuilding().getId());\n if (success.equals(\"Successful\")) {\n alert.hide();\n } else {\n alert.setContentText(success);\n alert.showAndWait();\n }\n }",
"public GregorianCalendar getSelectedTime(){\n int start_hour = Integer.parseInt(this.time_hour.getValue().toString());\n int start_min = Integer.parseInt(this.time_min.getValue().toString());\n\n GregorianCalendar time = new GregorianCalendar();\n time.setTimeInMillis(0);\n\n time.set(Calendar.HOUR_OF_DAY, start_hour);\n time.set(Calendar.MINUTE, start_min);\n \n return time;\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }",
"private void jadwalKetiga(){\n jadwalKetigaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalKetigaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[2][0] = hourOfDay;\n jadwal[2][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddTripActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String a = \"\" + selectedMinute;\n String b = \"\" + selectedHour;\n if(selectedMinute<10){\n a = \"0\"+selectedMinute;\n }\n if(selectedHour<10){\n b = \"0\"+selectedHour;\n }\n mTime.setText( b + \":\" + a);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"public void onClick(DialogInterface dialog, int id) {\n Date dateObj = new Date();\n long timeNow = dateObj.getTime();\n editor.putLong(getResources().getString(R.string.later_pressed_time), timeNow);\n editor.putBoolean(getResources().getString(R.string.later), true);\n editor.commit();\n dialog.cancel();\n }",
"@Override\n public void onClick(View v) {\n TimePickerDialog timePicker = new TimePickerDialog(\n PHUpdateNonRecurringScheduleActivity.this,\n mTimeSetListener, mHour, mMinute, true);\n\n timePicker.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n\n Date horaInTime;\n Date horaMuestreoTime;\n try {\n if (globals.getMuestra().getHoraIn() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n } else {\n horaInTime = parser.parse(globals.getMuestra().getHoraIn());\n horaMuestreoTime = parser.parse(time);\n if (horaMuestreoTime.after(horaInTime)) {\n\n timeMuestreo.setText(time);\n globals.getAntecedentesMuestreo().setTimeMuestreo(time);\n } else {\n Toast.makeText(getContext(), \"Hora de Muestreo no puede ser inferior a la hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeMuestreo.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"private void showTimePicker(final EditText editText, final boolean isStartType) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(mActivity, R.style.DialogTheme, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n if (isStartType) {\n Calendar datetime = Calendar.getInstance();\n Calendar c = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n if (datetime.getTimeInMillis() > c.getTimeInMillis()) {\n// it's after current\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n } else {\n// it's before current'\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.start_time_cant_be_less));\n\n }\n } else {\n if (!checktimings(etBeginTime.getText().toString(), parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)))) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.end_time_cant_less));\n } else if (pickUpTime != null && !pickUpTime.equals(\"\") && !appUtils.matchSameTime(appUtils.parseDateToTime(pickUpTime), selectedHour + \":\" + selectedMinute)) {\n appUtils.showAlertDialog(mActivity, \"\", getString(R.string.same_pickup_time), getString(R.string.ok), \"\", null);\n } else {\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n }\n }\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"\");\n mTimePicker.show();\n }",
"@Override\n public void onClick(View v) {\n if (onDay){\n schedTime.set(Calendar.HOUR_OF_DAY,timePicker.getCurrentHour());\n schedTime.set(Calendar.MINUTE, timePicker.getCurrentMinute());\n }else{\n schedTime2.set(Calendar.HOUR_OF_DAY, timePicker.getCurrentHour());\n schedTime2.set(Calendar.MINUTE, timePicker.getCurrentMinute());\n }\n \n if (Math.abs(schedTime.get(Calendar.HOUR_OF_DAY) - schedTime2.get(Calendar.HOUR_OF_DAY)) >= 1){\n if (onDay){\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String dayTime = formatter.format(schedTime.getTime());\n startDay.setText(dayTime);\n formatter = new SimpleDateFormat(\"KK:mm\");\n serverStartDay = formatter.format(schedTime.getTime());\n }else{\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String nightTime = formatter.format(schedTime2.getTime());\n startNight.setText(nightTime);\n formatter = new SimpleDateFormat(\"KK:mm\");\n serverStartNight = formatter.format(schedTime2.getTime());\n }\n timeLayout.setVisibility(View.INVISIBLE);\n schedAdapter.notifyDataSetChanged();\n }else{\n AlertDialog.Builder myAlert = new AlertDialog.Builder(ScheduleParamsView.this)\n .setMessage(R.string.wrong_start_time_msg)\n .setTitle(R.string.wrong_start_time_title)\n .setNegativeButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n myAlert.show();\n //set the time back to the default on failure of following the rules!\n switch(schedIndex){\n case 0:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 1:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 2:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 3:\n schedTime.set(Calendar.HOUR_OF_DAY,7);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,18);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 4:\n schedTime.set(Calendar.HOUR_OF_DAY,6);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,19);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 5:\n schedTime.set(Calendar.HOUR_OF_DAY,6);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,19);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n }\n //set text of views back to default\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String dayTime = formatter.format(schedTime.getTime());\n startDay.setText(dayTime);\n String nightTime = formatter.format(schedTime2.getTime());\n startNight.setText(nightTime);\n schedAdapter.notifyDataSetChanged();\n }\n }",
"@Override\n protected void onDialogClosed(boolean positiveResult) {\n super.onDialogClosed(positiveResult);\n\n if (positiveResult){\n setTime(timePicker.getHour(), timePicker.getMinute());\n }\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n eventTime.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Event Time\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n in_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (out_time.getText().toString().trim().equals(\"\")) {\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog1 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog1.updateTime(t1Hour1, t1Minute1);\n //show dialog\n timePickerDialog1.show();\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n out_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (in_time.getText().toString().trim().equals(\"\")) {\n *//*if(!validateintime())\n return;*//*\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }",
"public void initializeTime() {\n hour = cal.get(Calendar.HOUR);\n min = cal.get(Calendar.MINUTE);\n\n time = (EditText) findViewById(R.id.textSetTime);\n time.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n if(min < 10) {\n time.setText(hour + \":0\" + min);\n } else {\n time.setText(hour + \":\" + min);\n }\n\n time.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n picker = new TimePickerDialog(ControlCenterActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n if(i1 < 10) {\n time.setText(i + \":0\" + i1);\n } else {\n time.setText(i + \":\" + i1);\n }\n }\n }, hour, min, false);\n\n picker.show();\n }\n });\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }",
"private void jadwalKedua(){\n jadwalKeduaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalKeduaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[1][0] = hourOfDay;\n jadwal[1][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n if(v == botonHora){\n final Calendar calendar = Calendar.getInstance();\n hora = calendar.get(Calendar.HOUR_OF_DAY);\n minutos = calendar.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n if(minute <10)\n campoHora.setText(hourOfDay+\":\"+\"0\"+minute);\n else\n campoHora.setText(hourOfDay+\":\"+minute);\n }\n },hora,minutos,false);\n timePickerDialog.show();\n }\n }",
"private void dialogCreateAppointment(){\n\n String day = spin_day.getSelectedItem().toString();//Get the text of the spinner\n String time = spin_start.getSelectedItem().toString()+ \" to \" +\n spin_end.getSelectedItem().toString();//Get the text of the spinner\n String fullTime = day + \" at \" + time;\n\n /**\n * Event of the dialog box (found on STACKOVERFLOW)\n */\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Appointment\");\n builder.setMessage(\"You sure you want to create an Appointment:\\n\" +\n fullTime);\n\n\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n getValidity();\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n\n }",
"public void setupTimeDialog(PlaceIt placeit) {\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(\"Set recurrence for PlaceIt \" + placeit.getTitle());\n\t\tLayoutInflater inflater = getLayoutInflater();\n\t\tfinal View dialog = inflater.inflate(R.layout.placeit_time_form, null);\n\t\t\n\t\tint checkedItem = -1;\n\t\t\n\t\t// Create single choice list\n\t\tbuilder.setSingleChoiceItems(R.array.days_array, checkedItem, new DialogInterface.OnClickListener() {\n\t\t\t@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n\t\t\t\t// do something with checkedItem\n }\n\t\t});\n\t\t// Create textbox for number of weeks\n\t\tTextView every = (TextView) dialog.findViewById(R.id.every);\n\t\tfinal EditText numweeks = (EditText) dialog.findViewById(R.id.numweeks);\n\t\tTextView weeks = (TextView) dialog.findViewById(R.id.weeks);\n\t\t\n\t\t\n\t\t// Set the action buttons\n builder.setPositiveButton(R.string.recurrence_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK, so save the mSelectedItems results somewhere\n // or return them to the component that opened the dialog\n \n }\n });\n builder.setNegativeButton(R.string.recurrence_cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n \n }\n });\n\t\t\n builder.setView(dialog);\n builder.show();\n\t\t\n\t\t/*\n\t\tSpinner dayspinner = (Spinner) findViewById(R.id.days_spinner);\n\t\t\n\t\t// Create an ArrayAdapter using the string array and a default spinner layout\n\t\tArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n\t\t R.array.days_array, android.R.layout.simple_spinner_item);\n\t\t// Specify the layout to use when the list of choices appears\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\t// Apply the adapter to the spinner\n\t\tdayspinner.setAdapter(adapter);\n\t\t\n\t\t\n\t\talert.setView(dialog);\n\t\talert.show();\n\t\t*/\n\t\t\n\t}",
"@Then(\"^I choose an interval time$\")\n public void i_choose_an_interval_time() {\n onViewWithId(R.id.startHour).type(\"12:00\");\n onViewWithId(R.id.endHour).type(\"23:59\");\n }",
"private void showTimePicker(){\n final Calendar c = Calendar.getInstance();\n mHour = c.get(Calendar.HOUR_OF_DAY);\n mMinute = c.get(Calendar.MINUTE);\n\n // Launch Time Picker Dialog\n TimePickerDialog tpd = new TimePickerDialog(this,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n // Display Selected time in textbox\n pickupTime.setText(hourOfDay + \":\" + minute);\n// Log.e(TAG,\"Time set: \" + mHour + \",\" + mMinute + \",\");\n }\n }, mHour, mMinute, false);\n\n tpd.show();\n }",
"private void showDialogTime() {\n final TimePickerDialog timePickerDialog = new TimePickerDialog(getActivity(),\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n mCal.set(Calendar.HOUR_OF_DAY, hourOfDay);\n mCal.set(Calendar.MINUTE, minute);\n\n tvDate.setText(getDateString(mCal));\n\n }\n }, mCal.get(Calendar.HOUR_OF_DAY), mCal.get(Calendar.MINUTE), true);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n mCal.set(Calendar.YEAR, year);\n mCal.set(Calendar.MONTH, monthOfYear);\n mCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n timePickerDialog.show();\n }\n }, mCal.get(Calendar.YEAR), mCal.get(Calendar.MONTH), mCal.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaCamionTime;\n Date horaMuestreoTime;\n Date horaDescargaTime;\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaMuestreoTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n horaDescargaTime = parser.parse(time);\n if (horaMuestreoTime.before(horaDescargaTime)) {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser mayor a la hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n\n if (globals.getAntecedentesMuestreo().getTimeCamion() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaCamionTime = parser.parse(globals.getAntecedentesMuestreo().getTimeCamion());\n\n horaDescargaTime = parser.parse(time);\n if (horaDescargaTime.after(horaCamionTime)) {\n\n horaDescarga.setText(time);\n globals.getAntecedentesMuestreo().setHoraDescarga(time);\n } else {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser inferior a la hora de llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n }\n }\n }\n }\n } catch (ParseException e) {\n horaDescarga.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }"
] | [
"0.6751233",
"0.67141443",
"0.6693516",
"0.66042006",
"0.6533895",
"0.65121746",
"0.6477284",
"0.6460993",
"0.64327383",
"0.6410795",
"0.64014524",
"0.63845664",
"0.6373141",
"0.63595265",
"0.63585323",
"0.63585186",
"0.63410497",
"0.6338725",
"0.633258",
"0.6330783",
"0.63180494",
"0.6315303",
"0.6312922",
"0.6303562",
"0.6297527",
"0.62966746",
"0.62957203",
"0.6293045",
"0.62808573",
"0.6280826",
"0.62791765",
"0.62720203",
"0.626689",
"0.6266857",
"0.62659955",
"0.6258317",
"0.6247866",
"0.62466264",
"0.62331283",
"0.62316823",
"0.62302756",
"0.6229521",
"0.6228525",
"0.62268704",
"0.6221806",
"0.6213484",
"0.6198933",
"0.6198817",
"0.619552",
"0.6193716",
"0.61909926",
"0.61880946",
"0.6184484",
"0.6182904",
"0.61825883",
"0.61757535",
"0.61743563",
"0.6172384",
"0.61616117",
"0.6148647",
"0.6146274",
"0.6143513",
"0.6140657",
"0.6139184",
"0.6138357",
"0.613214",
"0.6118872",
"0.611701",
"0.61165035",
"0.6114243",
"0.6114058",
"0.61123306",
"0.61116415",
"0.61077434",
"0.6098029",
"0.6082332",
"0.6078414",
"0.60672027",
"0.60606074",
"0.60473764",
"0.604704",
"0.60443896",
"0.6038216",
"0.60236454",
"0.60210025",
"0.6016972",
"0.6014767",
"0.60103726",
"0.60097295",
"0.6003109",
"0.5985648",
"0.59825015",
"0.5976615",
"0.5960114",
"0.5935333",
"0.5932532",
"0.59197",
"0.5914661",
"0.59118676",
"0.59070086"
] | 0.6621072 | 3 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = "23:59-次日06:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"23:59:00";
postArrivalLateTime = getDateNext(liveTimeString) + " " + "06:00:00";
setTime(arrivingTime);
int dayNum1 = Integer.parseInt(dayTextView.getText().toString());
int roomNum1 = Integer.parseInt(roomtTextView.getText().toString());
if(dayNum1 != 1){
//dayTextView.setText(""+(dayNum1+1));
//zongpicTextView.setText("¥"+((j/dayNum1)*(dayNum1-1)*roomNum1));
}else{
//dayTextView.setText("1");
//zongpicTextView.setText("¥"+(j*1*roomNum1));
}
break;
default:
arrivingTime = "";
setTime(arrivingTime);
break;
}
} | {
"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 |
/ dialog for choosing the arriving time if garKey = 0 and current day | private void showChooseCurNonGarTimeDialog1(){
alertDialog = new AlertDialog.Builder(this);
alertDialog.setTitle("请选择添到店时间");
timeString = new String[] { "20:00", "23:59","次日06:00"};
final ArrayList<String> arrayList = new ArrayList<String>();
//final ArrayList<String> arrayListType = new ArrayList<String>();
for (int i = 0; i < timeString.length; i++) {
if (!timeString[i].equals("null")) {
arrayList.add(timeString[i]);
//arrayListType.add(typeArrayStrings[i]);
}
}
//将遍历之后的数组 arraylist的内容在选择器上显示
alertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = (getTimeCurrentHr()+1)+":00"+"-"+"20:00";
postArrivalEarlyTime = liveTimeString + " " + (getTimeCurrentHr()+1)+":00:00";
postArrivalLateTime = leaveTimeString + " " + "20:00:00";
timeTextView.setText(arrivingTime);
setTime(arrivingTime);
break;
case 1:
arrivingTime = "20:00-23:59";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"20:00:00";
postArrivalLateTime = leaveTimeString + " " + "23:59:00";
setTime(arrivingTime);
break;
case 2:
arrivingTime = "23:59-次日06:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"23:59:00";
postArrivalLateTime = getDateNext(liveTimeString) + " " + "06:00:00";
setTime(arrivingTime);
int dayNum1 = Integer.parseInt(dayTextView.getText().toString());
int roomNum1 = Integer.parseInt(roomtTextView.getText().toString());
if(dayNum1 != 1){
//dayTextView.setText(""+(dayNum1+1));
//zongpicTextView.setText("¥"+((j/dayNum1)*(dayNum1-1)*roomNum1));
}else{
//dayTextView.setText("1");
//zongpicTextView.setText("¥"+(j*1*roomNum1));
}
break;
default:
arrivingTime = "";
setTime(arrivingTime);
break;
}
}
}).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showChooseCurNonGarTimeDialog2(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\" ;\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString)+ \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showChooseNonCurNonGarTimeDialog(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] { \"20:00\", \"23:59\",\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\t\t\t\t//timeTextView.setText(timeString[0]);\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\tarrivingTime = \"14:00-20:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"14:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1+1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showChooseCurNonGarTimeDialog3(){\n\t\talertDialog = new AlertDialog.Builder(this);\n\t\talertDialog.setTitle(\"请选择添到店时间\");\n\t\ttimeString = new String[] {\"次日06:00\"};\n\t\tfinal ArrayList<String> arrayList = new ArrayList<String>();\n\t\t//final ArrayList<String> arrayListType = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < timeString.length; i++) {\n\t\t\tif (!timeString[i].equals(\"null\")) {\n\t\t\t\tarrayList.add(timeString[i]);\t\n\t\t\t\t//arrayListType.add(typeArrayStrings[i]);\n\n\t\t\t}\n\t\t}\n\t\t//将遍历之后的数组 arraylist的内容在选择器上显示 \n\t\talertDialog.setSingleChoiceItems(arrayList.toArray(new String[0]), 0, new DialogInterface.OnClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}).show();\n\t}",
"private void showTimeDialog() {\n\t\tTimePickerDialog tpd = new TimePickerDialog(this, new OnTimeSetListener(){\r\n\t\t\tpublic void onTimeSet(TimePicker view , int hour, int minute){\r\n\t\t\t\tgiorno.set(Calendar.HOUR_OF_DAY,hour);\r\n\t\t\t\tgiorno.set(Calendar.MINUTE,minute); \r\n\t\t\t\tEditText et_ora = (EditText) BookingActivity.this.findViewById(R.id.prenotazione_et_ora);\r\n\t\t\t\tformatter.applyPattern(\"HH:mm\");\r\n\t\t\t\tet_ora.setText(formatter.format(giorno.getTime()));\r\n\t\t\t}\t\t\t \t\r\n\t\t}, giorno.get(Calendar.HOUR_OF_DAY), giorno.get(Calendar.MINUTE), true);\r\n\t\ttpd.show();\r\n\t}",
"private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }",
"private void getTimeView() {\n\n\t\ttry {\n\n\t\t\t// Launch Time Picker Dialog\n\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + hour);\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + minutes);\n\n\t\t\tTimePickerDialog tpd = new TimePickerDialog(this,\n\t\t\t\t\tnew TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay,\n\t\t\t\t\t\t\t\tint minute) {\n\n\t\t\t\t\t\t\tif (rf_booking_date_box.getText().toString()\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(currDate.toString())) {\n\t\t\t\t\t\t\t\tc = Calendar.getInstance();\n\t\t\t\t\t\t\t\tint curr_hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t\t\t\t\tint curr_minutes = c.get(Calendar.MINUTE);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_hour);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_minutes);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!hourOfDay<curr_hour\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (hourOfDay < curr_hour));\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!minute<curr_minutes\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (minute < curr_minutes));\n\n\t\t\t\t\t\t\t\tif (hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute <= curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay == curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes) {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! in if\");\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_Please_choose_valid_time),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay\n\t\t\t\t\t\t\t\t\t\t// + \":\" +\n\t\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay +\n\t\t\t\t\t\t\t\t\t// \":\" +\n\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}, hour, minutes, false);\n\t\t\ttpd.show();\n\t\t\ttpd.setCancelable(false);\n\t\t\ttpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddRDV.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n editTextHeur.setText(String.format(\"%02d\",selectedHour) + \":\" + String.format(\"%02d\" ,selectedMinute)+\":\"+\"00\");\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Select time of your appointment\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n //validar hora\n plantaOut.setText(time);\n globals.getAntecedentesHormigonMuestreo().setPlantaOut(time);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"private void setTimeOfDay(){\n Calendar calendar = Calendar.getInstance();\n int timeOfDay = calendar.get(Calendar.HOUR_OF_DAY);\n if(timeOfDay >= 0 && timeOfDay < 12){\n greetings.setText(\"Good Morning\");\n }else if(timeOfDay >= 12 && timeOfDay < 16){\n greetings.setText(\"Good Afternoon\");\n }else if(timeOfDay >= 16 && timeOfDay < 23){\n greetings.setText(\"Good Evening\");\n }\n }",
"private void selectTime() {\n Calendar calendar = Calendar.getInstance();\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n timeTonotify = i + \":\" + i1; //temp variable to store the time to set alarm\n mTimebtn.setText(FormatTime(i, i1)); //sets the button text as selected time\n }\n }, hour, minute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvam.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime() +\"(上午)\";\r\n\t\t\t\t\t\t\t\t\t initPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog26 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog26.updateTime(t26Hour26, t26Minute26);\n //show dialog\n timePickerDialog26.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog14 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog14.updateTime(t14Hour14, t14Minute14);\n //show dialog\n timePickerDialog14.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog28 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog28.updateTime(t28Hour28, t28Minute28);\n //show dialog\n timePickerDialog28.show();\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddReminder.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n edtSelectTimeForMeet.setText( \"\" + selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 1;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }",
"@Override\r\n\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\tif(!tvpm.getText().equals(\"\")){\r\n\t\t\t\t\t\t\t\t\t data = info.get(position).getAdmitTime()+\"(下午)\";\r\n\t\t\t\t\t\t\t\t\tinitPopupWindow();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }",
"private void timeSelectionDialog() {\n final TimeSelectionDialog timeSelectDialog = new TimeSelectionDialog(this, _game);\n timeSelectDialog.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n _game.setTime(timeSelectDialog.getSelectedTime());\n timeSelectDialog.dismiss();\n }\n });\n timeSelectDialog.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tflag = 2;\n\t\t\t\tshowDialog(TIME_DIALOG_ID);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog8 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog8.updateTime(t8Hour8, t8Minute8);\n //show dialog\n timePickerDialog8.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\ttimeSet.performClick();\n\t\t\t\tif(ifFO.equals(\"Time_On\")){\n\t\t\t\t\tAppConstants.open.getTime();\n\t\t\t\t}else{\n\t\t\t\t\tAppConstants.close.getTime();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }",
"public void startAgentTime() {\n Timer timer = new Timer(SIBAConst.TIME_AGENT_CHANGE_FOR_HOUR, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n \t\n \tCalendar c = Calendar.getInstance();\n int minutos = c.get(Calendar.MINUTE);\n int hora = c.get( (Calendar.HOUR_OF_DAY)); \n hora = hora * 60;\n if (minutos >= 30 && minutos <= 59)\n {hora +=30;\t\n }\n if (hora > ctrlHours)\n {ctrlHours = hora;\n //activada bandera de modificacion de programacion\n activatedScheduleChange = true;\n }\n else\n { if (hora < ctrlHours)\n \t ctrlHours = 0;\n }\n \t\n \t\n \n }\n });\n timer.start();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog17 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog17.updateTime(t17Hour17, t17Minute17);\n //show dialog\n timePickerDialog17.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), starttimepicker, trigger.getStarttime().get(Calendar.HOUR), trigger.getStarttime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\tarrivingTime = \"14:00-20:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"14:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1+1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n showDialog(TIME_DIALOG_ID);\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), endtimepicker, trigger.getEndtime().get(Calendar.HOUR), trigger.getEndtime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"20:00\";\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"20:00:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"20:00-23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"20:00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\n\t\t\t\tcase 2:\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog30 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog30.updateTime(t30Hour30, t30Minute30);\n //show dialog\n timePickerDialog30.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaPlantaTime;\n Date horaMuestroTime;\n Date horaCamionTime;\n\n try {\n if (globals.getAntecedentesHormigonMuestreo().getPlantaOut() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaPlantaTime = parser.parse(globals.getAntecedentesHormigonMuestreo().getPlantaOut());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.after(horaPlantaTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser inferior a la hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaMuestroTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.before(horaMuestroTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser mayor a la hora de toma muestra\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = (getTimeCurrentHr()+1)+\":00\"+\"-\"+\"23:59\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" + (getTimeCurrentHr()+1)+\":00:00\";\n\t\t\t\t\tpostArrivalLateTime = leaveTimeString + \" \" + \"23:59:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\" ;\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString)+ \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"private void showTimePicker(){\n\n // Create new time picker instance\n TimePickerDialog timePicker = new TimePickerDialog(this, (view, hourOfDay, minute) -> {\n // Update booking time\n bookingHour = hourOfDay;\n bookingMinute = minute;\n\n // Set the contents of the edit text to the relevant hours / minutes\n timeInput.setText(getString(R.string.desired_time_format, bookingHour, bookingMinute));\n\n }, bookingHour, bookingMinute, true);\n\n timePicker.setTitle(getString(R.string.desired_time_selection));\n timePicker.show();\n\n // Change button colors\n Button positiveButton = timePicker.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = timePicker.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog2 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog2.updateTime(t2Hour2, t2Minute2);\n //show dialog\n timePickerDialog2.show();\n }",
"public static void updateTimeButtonClicked() {\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n String success = OccasionCommunication.updateOccasion(occasion.getId(), occasion.getDate(), occasion.getOpenTime(),\n occasion.getCloseTime(), occasion.getBuilding().getId());\n if (success.equals(\"Successful\")) {\n alert.hide();\n } else {\n alert.setContentText(success);\n alert.showAndWait();\n }\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }",
"public GregorianCalendar getSelectedTime(){\n int start_hour = Integer.parseInt(this.time_hour.getValue().toString());\n int start_min = Integer.parseInt(this.time_min.getValue().toString());\n\n GregorianCalendar time = new GregorianCalendar();\n time.setTimeInMillis(0);\n\n time.set(Calendar.HOUR_OF_DAY, start_hour);\n time.set(Calendar.MINUTE, start_min);\n \n return time;\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }",
"private void jadwalKetiga(){\n jadwalKetigaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalKetigaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[2][0] = hourOfDay;\n jadwal[2][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(AddTripActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String a = \"\" + selectedMinute;\n String b = \"\" + selectedHour;\n if(selectedMinute<10){\n a = \"0\"+selectedMinute;\n }\n if(selectedHour<10){\n b = \"0\"+selectedHour;\n }\n mTime.setText( b + \":\" + a);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n\n }",
"public void onClick(DialogInterface dialog, int id) {\n Date dateObj = new Date();\n long timeNow = dateObj.getTime();\n editor.putLong(getResources().getString(R.string.later_pressed_time), timeNow);\n editor.putBoolean(getResources().getString(R.string.later), true);\n editor.commit();\n dialog.cancel();\n }",
"@Override\n public void onClick(View v) {\n TimePickerDialog timePicker = new TimePickerDialog(\n PHUpdateNonRecurringScheduleActivity.this,\n mTimeSetListener, mHour, mMinute, true);\n\n timePicker.show();\n }",
"private void showTimePicker(final EditText editText, final boolean isStartType) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(mActivity, R.style.DialogTheme, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n if (isStartType) {\n Calendar datetime = Calendar.getInstance();\n Calendar c = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n if (datetime.getTimeInMillis() > c.getTimeInMillis()) {\n// it's after current\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n } else {\n// it's before current'\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.start_time_cant_be_less));\n\n }\n } else {\n if (!checktimings(etBeginTime.getText().toString(), parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)))) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.end_time_cant_less));\n } else if (pickUpTime != null && !pickUpTime.equals(\"\") && !appUtils.matchSameTime(appUtils.parseDateToTime(pickUpTime), selectedHour + \":\" + selectedMinute)) {\n appUtils.showAlertDialog(mActivity, \"\", getString(R.string.same_pickup_time), getString(R.string.ok), \"\", null);\n } else {\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n }\n }\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"\");\n mTimePicker.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n\n Date horaInTime;\n Date horaMuestreoTime;\n try {\n if (globals.getMuestra().getHoraIn() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n } else {\n horaInTime = parser.parse(globals.getMuestra().getHoraIn());\n horaMuestreoTime = parser.parse(time);\n if (horaMuestreoTime.after(horaInTime)) {\n\n timeMuestreo.setText(time);\n globals.getAntecedentesMuestreo().setTimeMuestreo(time);\n } else {\n Toast.makeText(getContext(), \"Hora de Muestreo no puede ser inferior a la hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeMuestreo.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n if (onDay){\n schedTime.set(Calendar.HOUR_OF_DAY,timePicker.getCurrentHour());\n schedTime.set(Calendar.MINUTE, timePicker.getCurrentMinute());\n }else{\n schedTime2.set(Calendar.HOUR_OF_DAY, timePicker.getCurrentHour());\n schedTime2.set(Calendar.MINUTE, timePicker.getCurrentMinute());\n }\n \n if (Math.abs(schedTime.get(Calendar.HOUR_OF_DAY) - schedTime2.get(Calendar.HOUR_OF_DAY)) >= 1){\n if (onDay){\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String dayTime = formatter.format(schedTime.getTime());\n startDay.setText(dayTime);\n formatter = new SimpleDateFormat(\"KK:mm\");\n serverStartDay = formatter.format(schedTime.getTime());\n }else{\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String nightTime = formatter.format(schedTime2.getTime());\n startNight.setText(nightTime);\n formatter = new SimpleDateFormat(\"KK:mm\");\n serverStartNight = formatter.format(schedTime2.getTime());\n }\n timeLayout.setVisibility(View.INVISIBLE);\n schedAdapter.notifyDataSetChanged();\n }else{\n AlertDialog.Builder myAlert = new AlertDialog.Builder(ScheduleParamsView.this)\n .setMessage(R.string.wrong_start_time_msg)\n .setTitle(R.string.wrong_start_time_title)\n .setNegativeButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n myAlert.show();\n //set the time back to the default on failure of following the rules!\n switch(schedIndex){\n case 0:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 1:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 2:\n schedTime.set(Calendar.HOUR_OF_DAY,9);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,21);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 3:\n schedTime.set(Calendar.HOUR_OF_DAY,7);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,18);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 4:\n schedTime.set(Calendar.HOUR_OF_DAY,6);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,19);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n case 5:\n schedTime.set(Calendar.HOUR_OF_DAY,6);\n schedTime.set(Calendar.MINUTE,0);\n schedTime2.set(Calendar.HOUR_OF_DAY,19);\n schedTime2.set(Calendar.MINUTE,0);\n break;\n }\n //set text of views back to default\n SimpleDateFormat formatter;\n if (Locale.getDefault().toString().equalsIgnoreCase(\"en_US\")){\n formatter = new SimpleDateFormat(\"h:mm aa\");\n }else{\n formatter = new SimpleDateFormat(\"k:mm\");\n }\n String dayTime = formatter.format(schedTime.getTime());\n startDay.setText(dayTime);\n String nightTime = formatter.format(schedTime2.getTime());\n startNight.setText(nightTime);\n schedAdapter.notifyDataSetChanged();\n }\n }",
"@Override\n protected void onDialogClosed(boolean positiveResult) {\n super.onDialogClosed(positiveResult);\n\n if (positiveResult){\n setTime(timePicker.getHour(), timePicker.getMinute());\n }\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n eventTime.setText( selectedHour + \":\" + selectedMinute);\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"Event Time\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n in_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (out_time.getText().toString().trim().equals(\"\")) {\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog1 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog1.updateTime(t1Hour1, t1Minute1);\n //show dialog\n timePickerDialog1.show();\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n out_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (in_time.getText().toString().trim().equals(\"\")) {\n *//*if(!validateintime())\n return;*//*\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }",
"public void initializeTime() {\n hour = cal.get(Calendar.HOUR);\n min = cal.get(Calendar.MINUTE);\n\n time = (EditText) findViewById(R.id.textSetTime);\n time.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n if(min < 10) {\n time.setText(hour + \":0\" + min);\n } else {\n time.setText(hour + \":\" + min);\n }\n\n time.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n picker = new TimePickerDialog(ControlCenterActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n if(i1 < 10) {\n time.setText(i + \":0\" + i1);\n } else {\n time.setText(i + \":\" + i1);\n }\n }\n }, hour, min, false);\n\n picker.show();\n }\n });\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }",
"private void jadwalKedua(){\n jadwalKeduaEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n tpd = new TimePickerDialog(IncubationForm.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n jadwalKeduaEditText.setText(hourOfDay + \":\" + minute);\n jadwal[1][0] = hourOfDay;\n jadwal[1][1] = minute;\n }\n }, hour, minute, true);\n tpd.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n if(v == botonHora){\n final Calendar calendar = Calendar.getInstance();\n hora = calendar.get(Calendar.HOUR_OF_DAY);\n minutos = calendar.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog = new TimePickerDialog(this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n if(minute <10)\n campoHora.setText(hourOfDay+\":\"+\"0\"+minute);\n else\n campoHora.setText(hourOfDay+\":\"+minute);\n }\n },hora,minutos,false);\n timePickerDialog.show();\n }\n }",
"private void dialogCreateAppointment(){\n\n String day = spin_day.getSelectedItem().toString();//Get the text of the spinner\n String time = spin_start.getSelectedItem().toString()+ \" to \" +\n spin_end.getSelectedItem().toString();//Get the text of the spinner\n String fullTime = day + \" at \" + time;\n\n /**\n * Event of the dialog box (found on STACKOVERFLOW)\n */\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Appointment\");\n builder.setMessage(\"You sure you want to create an Appointment:\\n\" +\n fullTime);\n\n\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n getValidity();\n }\n });\n builder.setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n AlertDialog alert = builder.create();\n alert.show();\n\n }",
"public void setupTimeDialog(PlaceIt placeit) {\n\t\t\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(\"Set recurrence for PlaceIt \" + placeit.getTitle());\n\t\tLayoutInflater inflater = getLayoutInflater();\n\t\tfinal View dialog = inflater.inflate(R.layout.placeit_time_form, null);\n\t\t\n\t\tint checkedItem = -1;\n\t\t\n\t\t// Create single choice list\n\t\tbuilder.setSingleChoiceItems(R.array.days_array, checkedItem, new DialogInterface.OnClickListener() {\n\t\t\t@Override\n public void onClick(DialogInterface dialog, int checkedItem) {\n\t\t\t\t// do something with checkedItem\n }\n\t\t});\n\t\t// Create textbox for number of weeks\n\t\tTextView every = (TextView) dialog.findViewById(R.id.every);\n\t\tfinal EditText numweeks = (EditText) dialog.findViewById(R.id.numweeks);\n\t\tTextView weeks = (TextView) dialog.findViewById(R.id.weeks);\n\t\t\n\t\t\n\t\t// Set the action buttons\n builder.setPositiveButton(R.string.recurrence_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n // User clicked OK, so save the mSelectedItems results somewhere\n // or return them to the component that opened the dialog\n \n }\n });\n builder.setNegativeButton(R.string.recurrence_cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n \n }\n });\n\t\t\n builder.setView(dialog);\n builder.show();\n\t\t\n\t\t/*\n\t\tSpinner dayspinner = (Spinner) findViewById(R.id.days_spinner);\n\t\t\n\t\t// Create an ArrayAdapter using the string array and a default spinner layout\n\t\tArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n\t\t R.array.days_array, android.R.layout.simple_spinner_item);\n\t\t// Specify the layout to use when the list of choices appears\n\t\tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n\t\t// Apply the adapter to the spinner\n\t\tdayspinner.setAdapter(adapter);\n\t\t\n\t\t\n\t\talert.setView(dialog);\n\t\talert.show();\n\t\t*/\n\t\t\n\t}",
"@Then(\"^I choose an interval time$\")\n public void i_choose_an_interval_time() {\n onViewWithId(R.id.startHour).type(\"12:00\");\n onViewWithId(R.id.endHour).type(\"23:59\");\n }",
"private void showTimePicker(){\n final Calendar c = Calendar.getInstance();\n mHour = c.get(Calendar.HOUR_OF_DAY);\n mMinute = c.get(Calendar.MINUTE);\n\n // Launch Time Picker Dialog\n TimePickerDialog tpd = new TimePickerDialog(this,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n // Display Selected time in textbox\n pickupTime.setText(hourOfDay + \":\" + minute);\n// Log.e(TAG,\"Time set: \" + mHour + \",\" + mMinute + \",\");\n }\n }, mHour, mMinute, false);\n\n tpd.show();\n }",
"private void showDialogTime() {\n final TimePickerDialog timePickerDialog = new TimePickerDialog(getActivity(),\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n mCal.set(Calendar.HOUR_OF_DAY, hourOfDay);\n mCal.set(Calendar.MINUTE, minute);\n\n tvDate.setText(getDateString(mCal));\n\n }\n }, mCal.get(Calendar.HOUR_OF_DAY), mCal.get(Calendar.MINUTE), true);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n mCal.set(Calendar.YEAR, year);\n mCal.set(Calendar.MONTH, monthOfYear);\n mCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\n timePickerDialog.show();\n }\n }, mCal.get(Calendar.YEAR), mCal.get(Calendar.MONTH), mCal.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show();\n }",
"@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t\tSystem.out.println(\"***被点击***\"+which);\n\t\t\t\tdialog.toString();\n\t\t\t\tswitch (which) {\n\t\t\t\tcase 0:\n\t\t\t\t\t\n\t\t\t\t\tarrivingTime = \"23:59-次日06:00\";\n\t\t\t\t\ttimeTextView.setText(arrivingTime);\n\t\t\t\t\tpostArrivalEarlyTime = liveTimeString + \" \" +\"23:59:00\";\n\t\t\t\t\tpostArrivalLateTime = getDateNext(liveTimeString) + \" \" + \"06:00:00\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tint dayNum1 = Integer.parseInt(dayTextView.getText().toString());\n\t\t\t\t\tint roomNum1 = Integer.parseInt(roomtTextView.getText().toString());\n\t\t\t\t\tif(dayNum1 != 1){\n\t\t\t\t\t\t//dayTextView.setText(\"\"+(dayNum1+1));\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+((j/dayNum1)*(dayNum1-1)*roomNum1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//dayTextView.setText(\"1\");\n\t\t\t\t\t\t//zongpicTextView.setText(\"¥\"+(j*1*roomNum1));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tarrivingTime = \"\";\n\t\t\t\t\tsetTime(arrivingTime);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaCamionTime;\n Date horaMuestreoTime;\n Date horaDescargaTime;\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaMuestreoTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n horaDescargaTime = parser.parse(time);\n if (horaMuestreoTime.before(horaDescargaTime)) {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser mayor a la hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n\n if (globals.getAntecedentesMuestreo().getTimeCamion() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaCamionTime = parser.parse(globals.getAntecedentesMuestreo().getTimeCamion());\n\n horaDescargaTime = parser.parse(time);\n if (horaDescargaTime.after(horaCamionTime)) {\n\n horaDescarga.setText(time);\n globals.getAntecedentesMuestreo().setHoraDescarga(time);\n } else {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser inferior a la hora de llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n }\n }\n }\n }\n } catch (ParseException e) {\n horaDescarga.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }"
] | [
"0.6751674",
"0.6714547",
"0.66215605",
"0.6603256",
"0.6533787",
"0.65114045",
"0.64764655",
"0.64604414",
"0.6431885",
"0.64099616",
"0.64015925",
"0.63842624",
"0.6372471",
"0.6358816",
"0.63586193",
"0.63578635",
"0.63403153",
"0.63380843",
"0.6331999",
"0.63301027",
"0.6317425",
"0.6314568",
"0.63123155",
"0.63028735",
"0.6297195",
"0.62959754",
"0.6294959",
"0.6292357",
"0.6280287",
"0.6280213",
"0.62789434",
"0.6271396",
"0.62668955",
"0.626618",
"0.6265355",
"0.62580687",
"0.6247069",
"0.6246624",
"0.6232539",
"0.6231045",
"0.6229572",
"0.6228835",
"0.62278444",
"0.6225817",
"0.6221104",
"0.6212857",
"0.6198323",
"0.6198203",
"0.61948586",
"0.6193225",
"0.619033",
"0.6187392",
"0.6183837",
"0.618223",
"0.6182",
"0.61750704",
"0.61736125",
"0.6171703",
"0.616135",
"0.61483693",
"0.6145849",
"0.61428046",
"0.6140498",
"0.6138351",
"0.6137632",
"0.6131671",
"0.6118147",
"0.6116362",
"0.6116237",
"0.61142325",
"0.6113377",
"0.61123985",
"0.6111635",
"0.6106236",
"0.609738",
"0.6081591",
"0.607739",
"0.60672265",
"0.60600156",
"0.6046888",
"0.6046674",
"0.60443693",
"0.6037451",
"0.60225004",
"0.6020703",
"0.601631",
"0.6014594",
"0.6009692",
"0.60090375",
"0.60023725",
"0.5984548",
"0.59819555",
"0.59758264",
"0.5961185",
"0.59364074",
"0.5931647",
"0.5918935",
"0.59146184",
"0.59118664",
"0.590633"
] | 0.6693776 | 2 |
TODO Autogenerated method stub | @Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
System.out.println("***被点击***"+which);
dialog.toString();
switch (which) {
case 0:
arrivingTime = (getTimeCurrentHr()+1)+":00"+"-"+"20:00";
postArrivalEarlyTime = liveTimeString + " " + (getTimeCurrentHr()+1)+":00:00";
postArrivalLateTime = leaveTimeString + " " + "20:00:00";
timeTextView.setText(arrivingTime);
setTime(arrivingTime);
break;
case 1:
arrivingTime = "20:00-23:59";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"20:00:00";
postArrivalLateTime = leaveTimeString + " " + "23:59:00";
setTime(arrivingTime);
break;
case 2:
arrivingTime = "23:59-次日06:00";
timeTextView.setText(arrivingTime);
postArrivalEarlyTime = liveTimeString + " " +"23:59:00";
postArrivalLateTime = getDateNext(liveTimeString) + " " + "06:00:00";
setTime(arrivingTime);
int dayNum1 = Integer.parseInt(dayTextView.getText().toString());
int roomNum1 = Integer.parseInt(roomtTextView.getText().toString());
if(dayNum1 != 1){
//dayTextView.setText(""+(dayNum1+1));
//zongpicTextView.setText("¥"+((j/dayNum1)*(dayNum1-1)*roomNum1));
}else{
//dayTextView.setText("1");
//zongpicTextView.setText("¥"+(j*1*roomNum1));
}
break;
default:
arrivingTime = "";
setTime(arrivingTime);
break;
}
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPreExecute() {
super.onPreExecute();
progressDialog1 = ProgressDialogTripg.show(HotelOrderYuDingMain.this, null, null);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPostExecute(String result) {
super.onPostExecute(result);
progressDialog1.dismiss();
if (result.length() != 0) {
progressDialog1.dismiss();
Log.e("http response is ", result);
System.out.println("order request result -----> " + result);
checkingStatusCode(result);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected String doInBackground(Void... params) {
String rev1 = null;
JSONObject jsonObject = null;
try {
jsonObject = jsonObjectDict();
} catch (UnsupportedEncodingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
String jsonString = "OrderRequest="+jsonObject.toString();
Log.e("jsonString****", ""+jsonString);
String url = "http://mapi.tripglobal.cn/Hotel.aspx?action=SubmitHotelOrder";
// hotelOrderInterFaces = new HotelOrderInterFaces(HotelOrderYuDingMain.this, handler);
// hotelOrderInterFaces.getModelFromPOST(url, jsonString, TripgMessage.HANGBAN);
try {
HttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost(url);
//添加http头信息
//认证token
httppost.addHeader("OrderRequest", "application/json");
httppost.addHeader("Content-type", "application/x-www-form-urlencoded");
httppost.setEntity(new StringEntity(jsonString));
HttpResponse response;
response = httpclient.execute(httppost);
rev1 = EntityUtils.toString(response.getEntity());
//obj = new JSONObject(rev);
//检验状态码,如果成功接收数据
// int code = response.getStatusLine().getStatusCode();
} catch (ClientProtocolException e) {
} catch (IOException e) {
} catch (Exception e) {
}
return rev1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Get the current application context. | CTX_Context getContext(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Context getContext(){\n return appContext;\n }",
"public static Context getAppContext() {\n return _BaseApplication.context;\n }",
"Context getContext() {\n Context context = mContextRef.get();\n return context != null ? context : AppUtil.getAppContext();\n }",
"public static ApplicationContext getApplicationContext() {\r\n\t\treturn applicationContext;\r\n\t}",
"public static ApplicationContext getApplicationContext() {\n return appContext;\n }",
"public Context getApplicationContext();",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n\t\treturn context;\n\t}",
"public static Context getContext() {\n if (sContext == null) {\n throw new RuntimeException(APPLICATION_CONTEXT_IS_NULL);\n }\n return sContext;\n }",
"static Application getContext() {\n if (ctx == null)\n // TODO: 2019/6/18\n// throw new RuntimeException(\"please init LogXixi\");\n return null;\n else\n return ctx;\n }",
"public static Context getApplicationContext() { return mApplicationContext; }",
"public ApplicationContext getApplicationContext() {\n return applicationContext;\n }",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"private Context getApplicationContext() {\n\t\treturn this.cordova.getActivity().getApplicationContext();\n\t}",
"public Context getContext() {\n return context;\n }",
"public Context getContext() {\n\t\treturn context;\n\t}",
"public Context getContext() {\r\n\t\treturn context;\r\n\t}",
"public ApplicationContext getApplicationContext()\n {\n return this.applicationContext;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public String getContext() {\n return context;\n }",
"public Context getContext() {\n return contextMain;\n }",
"public static Context getContext() {\n\t\treturn instance;\n\t}",
"public Context getContext() {\n\t\treturn ctx;\n\t}",
"static synchronized Context getContext() {\n checkState();\n return sInstance.mContext;\n }",
"public static Context getAppContext() {\n return mContext;\n }",
"public Context getContext() {\n if (context == null) {\n context = Model.getSingleton().getSession().getContext(this.contextId);\n }\n return context;\n }",
"ApplicationContext getAppCtx();",
"public static ApplicationContext getContext() {\n if (context == null) {\n CompilerExtensionRegistry.setActiveExtension( OTA2CompilerExtensionProvider.OTA2_COMPILER_EXTENSION_ID );\n }\n return context;\n }",
"public String getContext() {\n\t\treturn context;\n\t}",
"public String getContext() {\r\n\t\treturn context;\r\n\t}",
"public Context getContext() {\n\t\treturn mContext;\n\t}",
"public ServletContext getApplication() {\n return servletRequest.getServletContext();\n }",
"@Override\n public Context getContext() {\n return this.getApplicationContext();\n }",
"long getCurrentContext();",
"public String getContext() { return context; }",
"public Context getContext() {\n return this.mService.mContext;\n }",
"Context getContext();",
"public Context getContext() {\n return this.mContext;\n }",
"public Context getContext() {\n return this.mContext;\n }",
"public Context getContext() {\n return mContext;\n }",
"@Override\r\n\tpublic Context getContext()\r\n\t{\n\t\treturn this.getActivity().getApplicationContext();\r\n\t}",
"public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }",
"public final Context getContext() {\n return mContext;\n }",
"public static Context getContext() {\r\n\t\tif (mContext == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn mContext;\r\n\r\n\t}",
"public static BundleContext getContext() {\n return context;\n }",
"private Context getContext() {\n return mContext;\n }",
"private Context getContext() {\n return mContext;\n }",
"public Context getContext() {\n\t\treturn null;\n\t}",
"public Object getContextObject() {\n return context;\n }",
"public ServletContext getContext() {\r\n\t\treturn new ContextWrapper(getEvent().getServletContext());\r\n\t}",
"public URI getCurrentContext();",
"public Context getContext() {\n return this;\n }",
"@Nullable\n default String getContext() {\n String contextName =\n String.valueOf(execute(DriverCommand.GET_CURRENT_CONTEXT_HANDLE).getValue());\n return \"null\".equalsIgnoreCase(contextName) ? null : contextName;\n }",
"public ContextInstance getContextInstance() {\n\t\treturn token.getProcessInstance().getContextInstance();\r\n\t}",
"public Context getContext() {\n return (Context)this;\n }",
"public ContextRequest getContext() {\n\t\treturn context;\n\t}",
"@Override\n public Context getApplicationContext() {\n return mView.get().getApplicationContext();\n }",
"public Context getContext() {\n if (context == null) {\n try {\n context = new InitialContext();\n } catch (NamingException exception) {\n }\n }\n return context;\n }",
"static public RenderingContext getCurrentInstance()\r\n {\r\n return _CURRENT_CONTEXT.get();\r\n }",
"@Override\r\n\tpublic Context getContext() {\r\n\t\treturn this.context;\r\n\t}",
"public ModuleContext getContext() {\r\n return context;\r\n }",
"public static ApplicationContext getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}",
"public IRuntimeContext getContext() {\n return fContext;\n }",
"protected Activity getContext() {\n return contextWeakReference.get();\n }",
"protected RestContext getContext() {\n\t\tif (context.get() == null)\n\t\t\tthrow new InternalServerError(\"RestContext object not set on resource.\");\n\t\treturn context.get();\n\t}",
"public cl_context getContext() {\r\n return context;\r\n }",
"Context context();",
"Context context();",
"public static Activity getContext() {\n return instance;\n\n }",
"public abstract ApplicationLoader.Context context();",
"default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }",
"public TApplication getApplication() {\n return window.getApplication();\n }",
"public ExecutionContext getContext();",
"public StaticContext getUnderlyingStaticContext() {\n return env;\n }",
"public static Context getResourceContext() {\n return context;\n }",
"@Provides\n @Singleton\n @ApplicationScope\n public Context provideApplicationContext() {\n return mApp.getApplicationContext();\n }",
"Map<String, Object> getContext();",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public Context getThis()\r\n {\r\n return this.context;\r\n }",
"public RuntimeContext getRuntimeContext() {\n return runtimeContext;\n }",
"public com.google.protobuf.ByteString getContext() {\n return context_;\n }",
"public abstract Context context();",
"public static String getContext(HttpServletRequest request) {\n\t\tString context = request.getParameter(CONTEXT_KEY);\n\t\tif (context == null && Server.getInstance().getAllKnownInternalContexts().size() == 1) {\n\t\t\tcontext = (String) Server.getInstance().getAllKnownInternalContexts().toArray()[0];//req.getContextPath();\n\t\t}\n\t\t// If no or invalid context, display a list of available WebApps\n\t\tif (context == null || Server.getInstance().getApplication(context) == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn context;\n\t\t}\n\t}",
"public ComponentContext getContext()\n\t{\n\t\treturn context;\n\t}",
"protected BackendContext getBackendContext() {\n assertActivityNotNull();\n return mActivity.getBackendContext();\n }",
"public UserContext getUserContext();",
"private Context getContextAsync() {\n return getActivity() == null ? IotSensorsApplication.getApplication().getApplicationContext() : getActivity();\n }",
"public static Context getInstance(){\n\t\treturn (Context) t.get();\n\t}",
"public String getSessionContext() {\n return this.SessionContext;\n }",
"ContextBucket getContext() {\n\treturn context;\n }",
"public static BundleContext getBundleContext()\r\n {\r\n return bundleContext;\r\n }",
"Application getApplication();",
"public LoggerContext getContext() {\n return context;\n }",
"protected final TranslationContext context() {\n\t\treturn context;\n\t}",
"protected RuntimeContext getRuntimeContext() {\r\n return parentAction.getRuntimeContext();\r\n }",
"public static FHIRRequestContext get() {\n FHIRRequestContext result = contexts.get();\n if (log.isLoggable(Level.FINEST)) {\n log.finest(\"FHIRRequestContext.get: \" + result.toString());\n }\n return result;\n }",
"public ServletContext getServletContext() {\n return this.context;\n }",
"public final Object getContextInfo() {\n return this.info;\n }",
"public ServletContext getServletContext() {\n\t\treturn _context;\n\t}",
"public java.lang.String getContext() {\n java.lang.Object ref = context_;\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 context_ = s;\n return s;\n }\n }"
] | [
"0.8570261",
"0.8120062",
"0.8080129",
"0.80475014",
"0.8044616",
"0.80201423",
"0.79891825",
"0.79891825",
"0.7949089",
"0.7880647",
"0.77298087",
"0.76782435",
"0.765452",
"0.765452",
"0.76466715",
"0.76337916",
"0.76245236",
"0.76138496",
"0.7562518",
"0.7562518",
"0.7562518",
"0.75377",
"0.7534669",
"0.7530452",
"0.7527191",
"0.75144434",
"0.7502504",
"0.748073",
"0.7480241",
"0.74571854",
"0.7446248",
"0.744312",
"0.74413174",
"0.7418499",
"0.7383762",
"0.733348",
"0.7319317",
"0.72725636",
"0.7265688",
"0.7265688",
"0.72562456",
"0.71984446",
"0.7187892",
"0.71663654",
"0.71292764",
"0.712169",
"0.7106524",
"0.7106524",
"0.7103861",
"0.70997",
"0.7082731",
"0.7071308",
"0.7062961",
"0.7058201",
"0.70499617",
"0.7009071",
"0.70046955",
"0.70029575",
"0.69962007",
"0.69334185",
"0.6928175",
"0.69194496",
"0.691143",
"0.6910405",
"0.68994594",
"0.68934566",
"0.68880993",
"0.6873774",
"0.6873774",
"0.68558586",
"0.68163186",
"0.6771844",
"0.6768701",
"0.6750077",
"0.6741045",
"0.6734395",
"0.66914177",
"0.6682628",
"0.6673025",
"0.6671278",
"0.6669925",
"0.6641137",
"0.6640983",
"0.6626009",
"0.6590242",
"0.65689874",
"0.6557483",
"0.6549389",
"0.6487828",
"0.64792085",
"0.6478341",
"0.6476142",
"0.6474845",
"0.64535564",
"0.64528245",
"0.6451194",
"0.6430641",
"0.63930947",
"0.63912106",
"0.6364744",
"0.63644505"
] | 0.0 | -1 |
Save the current context onto the disk. | void saveContext(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}",
"public void context_save(long context) {\n context_save(nativeHandle, context);\n }",
"private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"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 }",
"private void saveAsCurrentSession(Context context) {\n \t// Save the context\n \tthis.context = context;\n }",
"public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }",
"public static void saveContext(String filePath,Monde monde) throws IOException {\n\t\tFileOutputStream fout = new FileOutputStream(filePath);\n\t\tObjectOutputStream oos = new ObjectOutputStream(fout);\n\t\toos.writeObject(monde);\n\t\toos.close();\n\t}",
"protected void save() {\n close();\n if(saveAction != null) {\n saveAction.accept(getObject());\n }\n }",
"@Override\n public void save() {\n graphicsEnvironmentImpl.save(canvas);\n }",
"private void saveCurrentObject() {\n\t}",
"public void save() {\n\t\tpreferences().flush();\n\t}",
"public void save() {\n\t\tthis.setState(Constants.CWorld.STATE_SAVING);\n\t\tthis.getWorld().saveAll();\n\t\tthis.setState(Constants.CWorld.STATE_ONLINE);\n\t}",
"public void saveState() throws IOException {\n\t\tFile f = new File(workingDirectory() + File.separator + id() + FILE_EXTENSION);\n\t\t\n\t\t// create new file if it doesnt exist\n\t\tf.createNewFile();\n\t\t\n\t\t// dump client state into file\n\t\tObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(f));\n\t\tos.writeObject(this);\n\t\tos.close();\n\t}",
"public void save() {\n UTILS.write(FILE.getAbsolutePath(), data);\n }",
"public void save() {\t\n\t\n\t\n\t}",
"public void save(Context context){\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = context.openFileOutput(\"state.bin\", Context.MODE_PRIVATE);\n\t\t\tObjectOutputStream os = new ObjectOutputStream(fos);\n\t\t\tos.writeObject(this.list);\n\t\t\tos.close();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"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}",
"void saveSaves(Object data, Context context);",
"public void save(){\r\n\t\ttry {\r\n\t\t\tgame.suspendLoop();\r\n\t\t\tGameStockage.getInstance().save(game);\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (GameNotSaveException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t}\r\n\t}",
"public void save() {\n Path root = Paths.get(storagePath);\n try {\n Files.copy(file.getInputStream(), root.resolve(file.getOriginalFilename()),\n StandardCopyOption.REPLACE_EXISTING);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void save() {\r\n try {\r\n FileOutputStream fos = new FileOutputStream(REPO_STATE_FILE_NAME);\r\n fos.write(CodecUtils.toJson(this).getBytes());\r\n fos.close();\r\n } catch (Exception e) {\r\n Logging.logError(e);\r\n }\r\n }",
"public void persist() {\n\t\ttry {\n\t\t\tFileOutputStream fos = this._context.openFileOutput(\n\t\t\t\t\tConstants.CATALOG_XML_FILE_NAME, Context.MODE_PRIVATE);\n\t\t\tfos.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" ?>\\n\".getBytes());\n\t\t\tfos.write(\"<orders>\\n\".getBytes());\n\t\t\tfor (int i = 0; i < getOrderEntryCount(); i++) {\n\t\t\t\tOrderEntry oe = getOrderEntry(i);\n\t\t\t\tfos.write(oe.toXMLString().getBytes());\n\t\t\t}\n\t\t\tfos.write(\"</orders>\\n\".getBytes());\n\t\t\tfos.flush();\n\t\t\tfos.close();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLog.d(Constants.LOGTAG, \" \" + OrderList.CLASSTAG\n\t\t\t\t\t+ \"Failed to write out file?\" + e.getMessage());\n\t\t}\n\t}",
"public void persist() {\n getBuildContextHolder().persist();\n }",
"public interface Saveable {\n void save( String key,File file,Context context);\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 saveData(){\r\n file.executeAction(modelStore);\r\n }",
"public void saveState() {\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFile savefile = new File(getServletContext().getRealPath(\"/WEB-INF/\"), SAVED_RECEPTOR_FILE_NAME);\n\t\t\tfos = new FileOutputStream(savefile);\n\t\t\tout = new ObjectOutputStream(fos);\n\t\t\tout.writeObject(pgtMap);\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"IO Exception saving proxyTicket cache\");\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception e) { //don't think this is possible, but I'm seeing some goofy behavior, so...\n\t\t\tSystem.err.println(\"Non-IO Exception saving proxyTicket cache\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}",
"public boolean save(Context context)\n {\n return save(context, this);\n }",
"public void save() throws TransformerException {\n\t\tgenerator.saveToFile(saveLocation);\n\t}",
"private void saveToFileData() {//Context context) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(fileNameData, Context.MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(Data.userData);\n objectOutputStream.close();\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void saveInFile() {\n\t\tthis.deleteFile();\n\t\tfor (CounterModel obj : counterListModel.getCounterList()) {\n\t\t\ttry {\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tif (obj.getCounterName().equals(counterModel.getCounterName())) {\n\t\t\t\t\tobj = counterModel;\n\t\t\t\t}\n\t\t\t\tString json = gson.toJson(obj) +'\\n';\n\t\t\t\tFileOutputStream fos = openFileOutput(FILENAME,\n\t\t\t\t\t\tContext.MODE_APPEND);\n\t\t\t\tfos.write(json.getBytes());\n\t\t\t\tfos.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void saveAndExit() {\n if (yesNoQuestion(\"Would you like to save the current active courses to the saved list before saving?\")) {\n addActiveCourseListToCourseList();\n }\n try {\n JsonWriter writer = new JsonWriter(\"./data/ScheduleList.json\",\n \"./data/CourseList.json\");\n writer.open(true);\n writer.writeScheduleList(scheduleList);\n writer.close(true);\n\n writer.open(false);\n writer.writeCourseList(courseList);\n writer.close(false);\n } catch (IOException ioe) {\n System.out.println(\"File Not Found, failed to save\");\n } catch (Exception e) {\n System.out.println(\"Unexpected Error, failed to save\");\n }\n\n }",
"public void save() throws Exception {\n FileOutputStream saveFile = new FileOutputStream(Config.languageModelFile);\n ObjectOutputStream save = new ObjectOutputStream(saveFile);\n save.writeObject(this);\n save.close();\n }",
"public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}",
"public void saveSelf() {\n\t\tCRFileIOHelper.stringToFile(this.toString(), controller.getReportController().getCurrentFilePath() + \"parameters\");\n\t}",
"public void save () {\n // Make sure the workspace folder exist\n createFolder(this.pathToWorkspaceFolder);\n\n // Write the serialized Flow object\n System.out.println(\"Saving\");\n try (FileWriter file = new FileWriter(this.pathToWorkspaceFolder.toString() + \"/\" + FLOW_FILE_NAME)) {\n file.write(flow.serialize());\n System.out.println(\"Successfully Copied Flow \" + flow.getId() + \" to File :)\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void save()\n\t{\n\t\ttry\n\t\t{\n\t\t\tgetConnection().commit();\n\t\t\tgetPreparedStatement(\"SET FILES SCRIPT FORMAT COMPRESSED\").execute();\n\t\t\t// causes a checkpoint automatically.\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\tm_logger.error(\"Couldn't cleanly save.\", e);\n\t\t}\n\t}",
"public void save() {\n\t\tlog.log(\"Attempting to save...\");\n\t\tPath spath = Paths.get(getFullSavePath());\n\t\tPath cpath = Paths.get(getFullSavePath() + \"units/\");\n\t\ttry {\n\t\t\tif(!Files.exists(spath))\n\t\t\t\tFiles.createDirectory(spath);\n\t\t\tif(!Files.exists(cpath))\n\t\t\t\tFiles.createDirectory(cpath);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\n\t\tFile[] files = new File(cpath.toString()).listFiles();\n\t\tfor(File f : files) {\n\t\t\tf.delete();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tBufferedWriter mfestWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"progress.txt\"));\n\t\t\tmfestWriter.write(name);\n\t\t\tmfestWriter.close();\n\t\t\tfor(MapCharacter mc : getFriendlies()) {\n\t\t\t\tBufferedWriter charWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"units/\"\n\t\t\t\t\t\t+ mc.getEnclosed().getDirName()));\n\t\t\t\tcharWriter.write(mc.getEnclosed().save());\n\t\t\t\tcharWriter.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\t\tlog.log(\"Game saved.\");\n\t}",
"public void save() {\n savePrefs();\n }",
"void save();",
"void save();",
"void save();",
"private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }",
"public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}",
"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 }",
"void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }",
"public void save() {\n try {\n FileOutputStream fos = new FileOutputStream(file);\n properties.store(fos, \"Preferences\");\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public boolean save() {\n\t\treturn save(_file);\n\t}",
"void saveAs() {\n writeFile.Export();\n }",
"void save() throws IOException, ParserConfigurationException, TransformerConfigurationException;",
"public static void save()\n\t{\n writeMap();\n\t}",
"public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}",
"public void saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }",
"public void save() throws IOException {\n File f = new File(\"data/pages/\" + pageName + \".class\");\n if (!f.exists()) {\n if (!f.getParentFile().exists()) {\n if (f.getParentFile().mkdirs()) {\n f.createNewFile();\n }\n }\n }\n FileOutputStream fos = new FileOutputStream(f);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(this);\n oos.flush();\n oos.close();\n }",
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"public void save() {\n ProductData.saveData(tree);\n }",
"public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}",
"private void save() {\n if (mCacheFile.exists()) {\n mCacheFile.delete();\n }\n\n try (JsonWriter writer = new JsonWriter(new BufferedWriter(new FileWriter(mCacheFile)))) {\n writer.beginObject();\n writer.name(PRINTER_LIST_NAMES.get(0));\n writer.beginArray();\n for (DiscoveredPrinter printer : mSavedPrinters) {\n printer.write(writer);\n }\n writer.endArray();\n writer.endObject();\n } catch (NullPointerException | IOException e) {\n Log.w(TAG, \"Error while storing to \" + mCacheFile, e);\n }\n }",
"public static void saveSession(Stage primaryStage){\n FileChooser chooser = new FileChooser();\n chooser.getExtensionFilters().add(new FileChooser.ExtensionFilter(\"Text Files\", \"*.txt\"));\n File file = chooser.showSaveDialog(primaryStage);\n if (file != null) {\n try (ObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(file))) {\n out.writeObject(getCurrentSession());\n out.flush();\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n }\n\n }",
"public void saveCurrentRecord() {\n ThreadUtil.executeOnNewThread(new Runnable() {\n @Override\n public void run() {\n SharedPreferences recordPreferences = mContext.getSharedPreferences(RECORD_PREFERENCES, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = recordPreferences.edit();\n if (mCurrentRecord == null) {\n editor.putString(CURRENT_RECORD_KEY, null);\n } else {\n String recordJson = mGson.toJson(mCurrentRecord);\n editor.putString(CURRENT_RECORD_KEY, recordJson);\n }\n editor.apply();\n\n if (mCurrentRecord != null) {\n saveRecord(mCurrentRecord);\n }\n }\n });\n }",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void save() throws Exception{\n\t\tFileOutputStream saveFile = new FileOutputStream(Config.languageModelFile);\n\t\tObjectOutputStream save = new ObjectOutputStream(saveFile);\n\t\tsave.writeObject(lm_);\n\t\tsave.close();\n\t}",
"public void save(){\r\n\t\tmanager.save(this);\r\n\t}",
"public void save() throws FileNotFoundException, IOException, ClassNotFoundException ;",
"public void save() {\n try {\n ConfigurationProvider.getProvider(YamlConfiguration.class).save(this.configuration, this.getConfigurationFile());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void save(OutputStream os) throws IOException;",
"public void saveWorkflow() {\n\t\tsaveWorkflow(engine.getGUI().getGraphCanvas());\n }",
"public static void saveFile(State state) throws Exception{\n\n buildDoc();\n writePreferences(state.language, state.background, state.pastTurtles.size());\n\n writeTurtles(state.pastTurtles);\n writeLines(state.pastLines);\n\n createFile(STATE_FILE);\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 }",
"void save() {\r\n if (actionCompleted) {\r\n forget();\r\n } else {\r\n AccountSettings.stateStored = new Bundle();\r\n save(AccountSettings.stateStored);\r\n }\r\n }",
"@Override\n\tpublic void save() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"save\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}",
"public void save () {\r\n\t\tlog.debug(\"TunnelList:save()\");\r\n\t\tlog.info(\"Saving to file\");\r\n\t\tFileTunnel.saveTunnels(this);\r\n\t}",
"public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }",
"public void save() {\n }",
"public void saveData() {\n\t\t//place to save notes e.g to file\n\t}",
"private void saveData() {\n }",
"public void save()\n throws IOException\n {\n File file = new File(MainFrame.getConfig().getUserPath(), SNAPSHOTFILE);\n if(null != file.getParentFile())\n file.getParentFile().mkdirs();\n\n try(FileOutputStream ostream = new FileOutputStream(file)) {\n try(OutputStreamWriter fw = new OutputStreamWriter(ostream, StandardCharsets.UTF_8)) {\n PrintNode.printNode(m_snapshotDoc, \" \", fw);\n }\n }\n }",
"public void save()\n\t{\n\t\tif(entity != null)\n\t\t\t((SaveHandler)DimensionManager.getWorld(0).getSaveHandler()).writePlayerData(entity);\n\t}",
"public void saveConfigXml() {\n // Save the xml object to disk\n IPathManager pm = PathManagerFactory.getPathManager();\n LocalizationContext lc = pm.getContext(LocalizationType.COMMON_STATIC,\n LocalizationLevel.SITE);\n\n LocalizationFile newXmlFile = pm.getLocalizationFile(lc,\n CONFIG_FILE_NAME);\n\n if (newXmlFile.getFile().getParentFile().exists() == false) {\n // System.out.println(\"Creating new directory\");\n\n if (newXmlFile.getFile().getParentFile().mkdirs() == false) {\n // System.out.println(\"Could not create new directory...\");\n }\n }\n\n try {\n // System.out.println(\"Saving -- \"\n // + newXmlFile.getFile().getAbsolutePath());\n jaxb.marshalToXmlFile(configXml, newXmlFile.getFile()\n .getAbsolutePath());\n newXmlFile.save();\n\n lf = newXmlFile;\n } catch (Exception e) {\n statusHandler.handle(Priority.ERROR, \"Couldn't save config file.\",\n e);\n }\n }",
"public void save() {\n\n\t\tint[][] rawData = new int[2][CHUNK_SIZE * CHUNK_SIZE];\n\n\t\tfor (int l = 0; l < 2; l++) {\n\t\t\tLayer layer = Layer.get(l);\n\t\t\tfor (int y = 0; y < CHUNK_SIZE; y++) {\n\t\t\t\tfor (int x = 0; x < CHUNK_SIZE; x++) {\n\t\t\t\t\trawData[l][x + y * CHUNK_SIZE] = getTileId(layer, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tthis.saveData = new RawChunkData(rawData);\n\t}",
"public void savePreferences() {\n\t\tfinal IEclipsePreferences prefs = getPreferences();\n\t\ttry {\n\t\t\tprefs.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tgetILog().log(createStatus(IStatus.ERROR, e));\n\t\t}\n\t}",
"public void saveCurrentPlayer() {\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/current_player\");\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/current_player\",_currentPlayer));\n\t}",
"public void doSave() {\n WaveformLoader.doSave(waveform, WaveformLoader.scalingForSavingFile);\n }",
"@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}",
"public static void save()\n {\n try\n {\n FileOutputStream fOS = new FileOutputStream(propsFile); \n props.store(fOS, \"\");\n fOS.close();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"@Override\n public void Save() {\n\t \n }",
"public void save() {\r\n IniReader.write(FILE_NAME, \"x\", x, \"y\", y, \"fullscreen\", fullscreen, \"controlType\", controlType, \"vol\", volMul,\r\n \"keyUpMouse\", getKeyUpMouseName(), \"keyDownMouse\", getKeyDownMouseName(), \"keyUp\", getKeyUpName(), \"keyDown\", keyDownName,\r\n \"keyLeft\", keyLeftName, \"keyRight\", keyRightName, \"keyShoot\", keyShootName, \"keyShoot2\", getKeyShoot2Name(),\r\n \"keyAbility\", getKeyAbilityName(), \"keyEscape\", getKeyEscapeName(), \"keyMap\", keyMapName, \"keyInventory\", keyInventoryName,\r\n \"keyTalk\", getKeyTalkName(), \"keyPause\", getKeyPauseName(), \"keyDrop\", getKeyDropName(), \"keySellMenu\", getKeySellMenuName(),\r\n \"keyBuyMenu\", getKeyBuyMenuName(), \"keyChangeShipMenu\", getKeyChangeShipMenuName(), \"keyHireShipMenu\", getKeyHireShipMenuName());\r\n }",
"private void saveEntity(E entity){\n try (BufferedWriter bw = new BufferedWriter(new FileWriter(this.fileName, true))) {\n bw.write(entity.toFile());\n bw.newLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void save() {\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(\"studentData.dat\");\n\n\t\t\tObjectOutputStream oos;\n\t\t\ttry {\n\t\t\t\toos = new ObjectOutputStream(fos);\n\n\t\t\t\toos.writeObject(studentList);\n\t\t\t\toos.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"File is finished writing to the hard drive\");\n\t}",
"public void save(){\n checkpoint = chapter;\n }",
"public void save();",
"public void save();",
"public void save();",
"public void save();",
"private void save() throws FileNotFoundException {\n\t\tm.write(new FileOutputStream(OUTPUT), \"RDF/XML\");\n\t}"
] | [
"0.6834548",
"0.6827745",
"0.67305815",
"0.66628814",
"0.65591675",
"0.64892733",
"0.6429795",
"0.6398996",
"0.6316169",
"0.6302374",
"0.62264717",
"0.62241274",
"0.6150962",
"0.6108685",
"0.6094163",
"0.6092613",
"0.60917443",
"0.6091669",
"0.6060919",
"0.60413957",
"0.60400015",
"0.60374707",
"0.6036146",
"0.6032641",
"0.60123605",
"0.5974312",
"0.5942294",
"0.5941373",
"0.5910752",
"0.5903258",
"0.5898833",
"0.5883899",
"0.5877132",
"0.58384526",
"0.5837112",
"0.58324456",
"0.58285475",
"0.5822203",
"0.5818532",
"0.5815351",
"0.5815327",
"0.5798962",
"0.5784279",
"0.5768505",
"0.5768505",
"0.5768505",
"0.5765752",
"0.57471085",
"0.5717525",
"0.5714087",
"0.5711213",
"0.57091504",
"0.5707213",
"0.5705353",
"0.5704494",
"0.5675468",
"0.56750476",
"0.5632238",
"0.5631503",
"0.5630518",
"0.56278265",
"0.56050026",
"0.559593",
"0.55921936",
"0.5583101",
"0.55761606",
"0.5560455",
"0.555811",
"0.5558103",
"0.55572283",
"0.5540483",
"0.55342174",
"0.5529173",
"0.55014366",
"0.5489113",
"0.5484004",
"0.5483182",
"0.5476075",
"0.54736257",
"0.54543257",
"0.54534596",
"0.5450497",
"0.5444215",
"0.5444089",
"0.54390556",
"0.5438581",
"0.54367876",
"0.5434529",
"0.5432665",
"0.5425241",
"0.5422892",
"0.54172623",
"0.5417035",
"0.541685",
"0.5413651",
"0.5405899",
"0.5405899",
"0.5405899",
"0.5405899",
"0.5404244"
] | 0.7909229 | 0 |
for Loops Loopcondition for(datatype variable = whereToStart;whereToFinish;Increment/Decrement) | public static void main(String[] args) {
for (int m =0; m<9;m++) {
System.out.println("kona");
}
for (int y=0; y<6; y++) {
System.out.println(y +"veer");
}
//Inner for loop
// print selenium 5 times,and for each time you print selenium,print java 2 times
for (int t=0; t<5;t++) {
System.out.println("selenium");
for (int r=0;r<2;r++) {
System.out.println("java");
}
}
//while loop
int w=0;
while (w<7) {
System.out.println("dear");
w++;
}
int b=0;
while (b<2) {
System.out.println(b + "we");
b++;
}
// Do While loop
int k =0;
do {
System.out.println("don't know");
k++;
}
while(k<5);
// Enhance for loop
int [] id ={99,66,90,55};
for (int q:id) {
System.out.println(q);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"For(int first, int last, int step) {\n\t\tthis.first = first;\n\t\tthis.step = step;\n\t\tthis.last = last;\n\t\tcountFor++;\n\t}",
"private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);\r\n\t\t\tshowCalc_1(sum1.get(), array1.getData(i.getPosition()));\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum1.add(array1.getData(i.getPosition())); sum1.mod(255); sum1.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(3,4);\r\n\t\t\tsum1.switchHighlight(); \r\n\t\t\tshowCalc_1(sum2.get(), sum1.get());\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum2.add(sum1.get()); sum2.mod(255); sum2.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsum2.switchHighlight();\r\n\t\t\tsc.toggleHighlight(4,2);\r\n\t\t}\r\n\t}",
"public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }",
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"public void processingTotal(int i);",
"private static void loopWithCheck(int upperLimit, QuitObject q) {\r\n\t\t\tint i;\r\n\t\t\tdouble temp;\r\n\t\t\t\r\n\t\t\tfor (i=0; i<upperLimit; i++) {\r\n\t\t\t\tif(q.getGreaterThan()==q.getLessThan()){\r\n\t\t\t\t\tq.setFinalCount(i+10000);\r\n\t\t\t\t\tq.setStatus(1);\r\n\t\t\t\t\tquitProgram(q);\r\n\t\t\t\t}\r\n\t\t\t\ttemp = Math.random();\r\n\t\t\t\tif (temp > 0.5) {\r\n\t\t\t\t\tq.addOneGreaterThan();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tq.addOneLessThan();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tq.setFinalCount(i+10000);\r\n\t\t\tq.setStatus(2);\r\n\t\t\tquitProgram(q);\r\n\t\t\t\r\n\t\t}",
"static void increment() {\r\n\t\tfor (double i =2.4; i<=8.8; i=i+0.2) { \r\n\t\t\tSystem.out.format(\"%.1f %n \",i); //%.1f: to 1 decimal place. %n: print on a new line\r\n\t\t}\r\n\t}",
"@Override\n\tprotected void runLine(Query query) {\n\t\tquery.inc();\n\t\tint i = Integer.parseInt(query.next());\n\t\tArrayList<Integer> originList = new ArrayList<Integer>();\n\t\toriginList.add(i - 1);\n\t\tArrayList<Integer> destinationList = new ArrayList<Integer>();\n\t\tparseSecondCondition(query, originList, destinationList);\n\t}",
"public static void main003(String[] args) {\n\t\t/*\n\t\t * numberStart++ tra ve gia tri cua numberStart, sau đo tang number lan mot đon vi\n\t\t * numberStart-- tra ve gia tri cua numberStart, sau đo giam number xuong mot đon vi\n\t\t * ++numberStart tang numberStart len mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t * --numberStart giam numberStart xuong mot don vi, sau đo tra ve gia tri cua numberStart\n\t\t */\n\t\tint numberStart\t= 20;\n\t\tint numberEnd\t= 0;\n\t\t\n//\t\tnumberEnd\t\t= ++numberStart;\n\t\tnumberEnd\t\t= --numberStart;\n\t\tSystem.out.println(\"Number Start = \" + numberStart);\n\t\tSystem.out.println(\"Number End = \" + numberEnd);\n\t}",
"public abstract int start(int i);",
"public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}",
"private void tempVariableExample() {\r\n\tfor(int i =0; i < age; i++)\r\n\t{\r\n\t\t//print i\r\n\t}\r\n\r\n\r\n}",
"protected void updateValues(){\n double total = 0;\n for(int i = 0; i < values.length; i++){\n values[i] = \n operation(minimum + i * (double)(maximum - minimum) / (double)numSteps);\n \n total += values[i];\n }\n for(int i = 0; i < values.length; i++){\n values[i] /= total;\n }\n }",
"public void increaseDecrease(String toDo)\n {\n\n ObservableList<?>fields= updateNew.getChildren();\n for(int i=0;i<fields.size();i++)\n {\n if(toDo.equals(\"i\")) {\n for(int k=0;k<=100;k++) {\n slowMotion(fields, i, k);\n }\n }\n else if(toDo.equalsIgnoreCase(\"d\"))\n {\n for(int k=100;k>=0;k--) {\n slowMotion(fields, i, k);\n }\n }\n }\n }",
"public void AdvancePos() {\n \tswitch (data3d.TrackDirection){\n \tcase 0:\n \tc2.PositionValue += 1;\n \tc2.PositionValue = (c2.PositionValue % c2.getMaxPos());\n \tbreak;\n \tcase 1:\n \tc3.PositionValue += 1;\n \tc3.PositionValue = (c3.PositionValue % c3.getMaxPos());\n \tbreak;\n \tcase 2:\n \tc1.PositionValue += 1;\n \tc1.PositionValue = (c1.PositionValue % c1.getMaxPos());\n \tbreak;\n \tcase 3:\n \tdata3d.setElement((data3d.ActiveElement + 1) % data3d.Elements);\n \tcase 4:\n \tdata3d.setTime((data3d.ActiveTime + 1) % data3d.Times);\n \t}\n }",
"public void nextIteration() {t++;}",
"protected boolean iterate()\n {\n switch (stoCri)\n {\n case 1:\n if (isDFltdFMin()) return false;\n // continue to check the maximum number of iteration\n default:\n return (nIntRed == nIntRedMax) ? false : true;\n }\n }",
"public abstract int end(int i);",
"public ForLoopNode(ElementVariable variable, Element startExpression, Element endExpression, Element stepExpression) {\n\t\tthis.variable = variable;\n\t\tthis.startExpression = startExpression;\n\t\tthis.endExpression = endExpression;\n\t\tthis.stepExpression = stepExpression;\n\t}",
"public void iterate() {\n\t\tfor (int i = 0; i < this.getRemainingAmount(); i++) {\n\t\t\t// O(1) getter of the Circular Vector.\n\t\t\tCarAndTime temp = mVehicles.getIndex(i);\n\t\t\t// to increment the travel time of the car self\n\t\t\ttemp.getCar().incrementTravelTime(1);\n\t\t\t// to decrement the travel time of the car in the pair(in the\n\t\t\t// street)\n\t\t\ttemp.setTime(temp.getTime() - 1);\n\t\t}\n\n\t}",
"private void preComp(long from, long to) {\n\t\tfor (long i = from; i < to; i++) {\n\t\t\tif (isEmirp(i)) {\t\t\t\t\n\t\t\t\tpreComputedEmirps.add(i);\n\t\t\t}\n\t\t}\n\t\tlastComputedUpTo = to;\n\t}",
"public static void main(String[] args) {\n\t\tint start = 100;\r\n\t\tint end = 1;\r\n\t\t//int add = 1;\r\n\t\twhile (start>=end) {\r\n\t\t\tSystem.out.println(start);\r\n\t\t\t//start = start - add;\r\n\t\t\tstart--;\r\n\t\t}\r\n\t}",
"private int getIncrement(int from, int to) {\n if (from < to) {\n return 1;\n } else if (from > to) {\n return -1;\n } else {\n return 0;\n }\n }",
"int stepsToGo();",
"private void calculate() throws InterruptedException {\n\tfor (int i = 1; i <= 100; i++) {\n\t Thread.sleep(100);\n\t update(i);\n\t}\n }",
"ForLoopRule createForLoopRule();",
"public void startNumberMethod(int startNumber) {\n for (int i = startNumber; i <= 100; i++) {\n System.out.println(i);\n }\n }",
"void countUp(int start, int stop) {\n if (start > stop) {\n System.out.println(\"Start value must be less than stop\");\n return;\n }\n //Print the value of start to console\n System.out.println(start); // 1\n\n //add one to value of start on the console\n start++; //start 2\n\n if(start <= stop) {\n countUp(start, stop);\n }\n return;\n }",
"public static void forLoop() {\n // In this case, we have the raw score results of students.\n // In a test they took with 67 questions, we have recorded\n // how many they got correct.\n int[] testScores = {57, 65, 53, 34};\n\n // Our goal is to go through each score and convert that score into\n // a percentage score.\n // The overall flow of the code goes as follows.\n // 1) Initially, create a variable, i, and set it to 0. -> 2\n // 2) if i < testScores.length, then step 3. Otherwise, Step 5\n // 3) execute the body of code below. -> 4\n // 4) Once done executing the body, increment i by 1. -> 2.\n // 5) We're out of the loop!\n for (int i = 0; i < testScores.length; i++) {\n System.out.println(\"Test Score initially \" + testScores[i]);\n testScores[i] = (testScores[i] * 100) / 67;\n System.out.println(\"Test Score now \" + testScores[i]);\n System.out.println(\"==================\");\n }\n }",
"void countDown (int start, int stop) {\n if (start < stop) {\n System.out.println(\"Start value must be bigger than stop\");\n return;\n }\n System.out.println(start);\n start--;\n\n if (start >= stop) {\n countDown(start, stop);\n }\n return;\n\n\n }",
"public abstract void increment(int delta);",
"public static void doWhile() {\n\n //1.\n int i = 0;\n do {\n System.out.println(i);\n i += 2;\n } while (i < 100);\n//\n //2.\n int j = 100;\n do {\n System.out.println(j);\n j -= 5;\n } while (j >= -10);\n\n // 3.\n int k = 2;\n do {\n System.out.println(k);\n k *= k;\n } while (k < 1000000);\n }",
"void assignRange() {\n rangeIndex = (int) Math.floor(value / step);\n }",
"public int scopeDown(boolean doesLoop) { // TODO: Rename scopeInto\n // TODO: Delete Parameters if therw already was scopeNo\n currentScope++;\n return currentScope;\n }",
"@Override\n\tprotected void runCode(Query query) {\n\t\tquery.inc();\n\t\tArrayList<Integer> originList = getListOnCode(query.next());\n\t\tArrayList<Integer> destinationList = new ArrayList<Integer>();\n\t\tparseSecondCondition(query, originList, destinationList);\n\t}",
"public void incrementLoopCounter() throws EndTaskException {\n\t\tgoToBeeperStock();\n\t\tpickBeeper();\n\t\tgoToLoopCounter();\n\t\tputBeeper();\n\t}",
"private void m3991a(C0820v vVar, int i, int i2) {\n if (i != i2) {\n if (i2 > i) {\n for (int i3 = i2 - 1; i3 >= i; i3--) {\n mo4689a(i3, vVar);\n }\n } else {\n while (i > i2) {\n mo4689a(i, vVar);\n i--;\n }\n }\n }\n }",
"public void step (double dt){ \r\n setValues();\r\n //Do Step \r\n int steps=(int)dt;\r\n for (int i=0;i<steps;i++)\r\n eval(commandUpdate); \r\n getValues(); \r\n }",
"public static void main(String[] args) {\n int a = 20;\n System.out.println(a++); // will output 20, then the next time a is used,\n // value is 21\n System.out.println(a++); // now 21 and next will be 22 and etc.\n\n int e = 20;\n System.out.println(a--); // will output 20, then the next time a is used,\n // value is 19\n System.out.println(a--); // now 19 and next will be 18 and etc.\n\n\n int b = 30; // will output 30 - 1, since it is assigning it to another data\n // right away\n int c = b--; // will output 30 ,\n\n System.out.println(b); // 29\n System.out.println(c); // 30\n /* PRE Increment / Decrement: Outputs the CURRENT VALUE, and\n Changes number of the value by + or - 1 IMMEDIATELY\n */\n int x = 200;\n System.out.println( --x);\n // ^ outputs 199\n System.out.println(++x);\n // ^ outputs 200; it took 199 & then added 1\n\n int z = 100;\n // Post + Pre - Post + Pre\n // Value of z = 100 + 101 - 100 + 99\n z = z++ + --z - z-- + ++z;\n //Post/Pre z = 100 + 100 - 100 + 100 = 200\n System.out.println(z);\n\n int u = 900;\n // value of u = 901 , 902 , 903\n int r = - ++u + ++u + -u++;\n //Post/Pre zu = -901 + 902 + -902 = - 901\n System.out.println(r);\n\n\n }",
"Boolean incremental();",
"public static void main(String[] args) {\n for(int i =0;i <=5;i++){ //i =0 , conditoon true ; i = 1; true;\n for(int j =0;j<=5;j++){ //j = 0 , true j=1; true ; j =3 ; true ;j =4 ; true ; j = 5 ; true ; j = 6\n System.out.println(\"the value of i is : \"+ i +\"The value of J is : \"+ j);\n }\n }\n }",
"public void run(){\n \n while (true){\n double p1Xnext =l1.getStart().getX()+v1p1;\n double p2Xnext =l2.getStart().getX()+v1p2;\n double p3Xnext =l3.getStart().getX()+v1p3;\n double p1Ynext =l1.getStart().getY()+v2p1;\n double p2Ynext =l2.getStart().getY()+v2p2;\n double p3Ynext =l3.getStart().getY()+v2p3;\n double p4Xnext =l1.getEnd().getX()+v1p1;\n double p5Xnext =l2.getEnd().getX()+v1p2;\n double p6Xnext =l3.getEnd().getX()+v1p3;\n double p4Ynext =l1.getEnd().getY()+v2p1;\n double p5Ynext =l2.getEnd().getY()+v2p2;\n double p6Ynext =l3.getEnd().getY()+v2p3;\n\n if (p1Xnext > l1.getCanvas().getWidth()){\n v1p1=-v1p1; \n }\n if (p1Xnext< 0){\n v1p1=-v1p1;\n \n }\n if (p1Ynext > l1.getCanvas().getHeight()){\n v2p1=-v2p1;\n \n }\n if (p1Ynext< 0){\n v2p1=-v2p1;\n }\n if (p2Xnext > l1.getCanvas().getWidth()){\n v1p2=-v1p2; \n }\n if (p2Xnext< 0){\n v1p2=-v1p2;\n \n }\n if (p2Ynext > l1.getCanvas().getHeight()){\n v2p2=-v2p2;\n \n }\n if (p2Ynext< 0){\n v2p2=-v2p2;\n \n }\n if (p3Xnext > l1.getCanvas().getWidth()){\n v1p3=-v1p3; \n }\n if (p3Xnext< 0){\n v1p3=-v1p3;\n \n }\n if (p3Ynext > l1.getCanvas().getHeight()){\n v2p3=-v2p3;\n \n }\n if (p3Ynext< 0){\n v2p3=-v2p3;\n }\n l1.setStart(l1.getStart().getX()+v1p1, l1.getStart().getY()+v2p1);\n l2.setStart(l2.getStart().getX()+v1p2, l2.getStart().getY()+v2p2);\n l3.setStart(l3.getStart().getX()+v1p3, l3.getStart().getY()+v2p3);\n l1.setEnd(l3.getStart());\n l2.setEnd(l1.getStart());\n l3.setEnd(l2.getStart());\n pause(10);\n \n \n \n }\n}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tint i = 0; // 0 1 2 3 4 \r\n\t\t\r\n\t\twhile (i < 4) {\r\n\t\t\tSystem.out.println(\"i is \" + i); // 0 1 2 3 \r\n\t\t\ti++;\r\n\t\t}\r\n\t\t/** OUTPUT\r\n\t\t * i is 0\r\n\t\t * i is 1\r\n\t\t * i is 2\r\n\t\t * i is 3\r\n\t\t */\r\n\t\t\r\n\t\t/*\r\n\t\t * A do while loop will ALWAYS execute at least once because\r\n\t\t * the condition is physically is at the bottom. The contents\r\n\t\t * of the loop must execute before the condition is tested\r\n\t\t * making it run at least once, e.g. this loop will run\r\n\t\t * once even though the condition is false:\r\n\t\t * \r\n\t\t * \t\tint i = 10;\r\n\t\t * \t\tdo {\r\n\t\t * \t\t\t.....\r\n\t\t * \t\t\ti++;\r\n\t\t * \t\t} while (i < 9); // 11 is not less than 9\r\n\t\t */\r\n\t\ti = 0; // 0 1 2 3 4\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Inside do-while, i is \" + i); // 0123\r\n\t\t\ti++;\r\n\t\t} while (i < 4);\r\n\t\t/** OUTPUT:\r\n\t\t * Inside do-while, i is 0\r\n\t\t * Inside do-while, i is 1\r\n\t\t * Inside do-while, i is 2\r\n\t\t * Inside do-while, i is 3\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * A for loop is normally used for looping through an array.\r\n\t\t * The advantage of a for is that the three parts are written\r\n\t\t * on one line, the three pars are:\r\n\t\t * 1. The initialisation: int i = 0; This section executes \r\n\t\t * ONCE per loop, as if it were typed before the loop.\r\n\t\t * 2. The condition or test, e.g. i < 4. The condition must\r\n\t\t * always equate to a boolean, i.e. it must be true or false.\r\n\t\t * When the condition is true, the body of the loop will \r\n\t\t * execute. \r\n\t\t * 3. The increment, e.g. i++. The increment section will \r\n\t\t * always happen after the body the loop, as if it is the\r\n\t\t * last line in the body. You can increment a variable as\r\n\t\t * follows:\r\n\t\t * \t\t\ti++;\r\n\t\t * \t\t\t++i;\r\n\t\t * \t\t\ti = i + 1;\t\t\ti = i + 4;\r\n\t\t * \t\t\ti += i; \t\t\ti += 4;\r\n\t\t * \r\n\t\t * \t\t\ti = i - 1;\t\t\ti = i - 10; \r\n\t\t */\r\n\t\t\r\n\t\t// 0 1 2 3 4\r\n\t\tfor (i = 0; i < 4; i++) {\r\n\t\t\tSystem.out.println(\"Inside for, i is \" + i);// 0 1 2 3 \r\n\t\t}\r\n\t\t/** OUTPUT: \r\n\t\t * Inside for, i is 0\r\n\t\t * Inside for, i is 1\r\n\t\t * Inside for, i is 2\r\n\t\t * Inside for, i is 3\r\n\t\t */\r\n\t}",
"void test(int loop){\n\t\tfor(int i=0; i<loop; i++){\n\t\t\ttest(loop / 2);\n\t\t}\n//\t\tSystem.out.printf(\"loop done: %d\\n\", loop);\n//\t\tlong end = System.nanoTime();\n\t}",
"public CustomForLoop(Node forLoopNode, int position, CustomClassObject theForLoopsClass, ArrayList<CustomClassObject> allTheClasses){\n this.positon = position;\n //System.out.println(\"this is for loop12345 \" + forLoopNode);\n String loopIteratorType = \"\";\n String declaratorVar = \"\";\n String declaratorVal = \"\";\n String fullRelationalExpression = \"\";\n String rightHandVar = \"\";\n String incrementor;\n String postfixExpression = \"\";\n\n for (int i = 0; i < forLoopNode.getNode(0).size(); i++) {\n\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"Type\")){\n //System.out.println(\"$FOR TYPE\");\n Node getType = forLoopNode.getNode(0).getNode(i);\n loopIteratorType = getType.getNode(0).getString(0);\n CppDataLayout.typeTranslate trans = new CppDataLayout.typeTranslate();\n loopIteratorType = trans.translateType(loopIteratorType);\n }\n\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"Declarators\")){\n\n\n Node declarator = forLoopNode.getNode(0).getNode(i).getNode(0);\n declaratorVar = declarator.getString(0);\n declaratorVal = declarator.getNode(2).getString(0);\n }\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"RelationalExpression\")){\n\n Node relationalExpression = forLoopNode.getNode(0).getNode(i);\n String primaryId = relationalExpression.getNode(0).getString(0);\n String operator = relationalExpression.getString(1);\n Node selectionExpressionNode = relationalExpression.getNode(2);\n String selectionExpression = \"\";\n if (selectionExpressionNode.getNode(0).getName().equals(\"SubscriptExpression\")){\n Node subscriptExpression = selectionExpressionNode.getNode(0);\n selectionExpression += subscriptExpression.getNode(0).getString(0);\n for (int s = 1; s < subscriptExpression.size(); s++){\n selectionExpression += \"[\" + subscriptExpression.getNode(s).getString(0) + \"]\";\n }\n }else {\n selectionExpression = selectionExpressionNode.getNode(0).getString(0);\n }\n String lengthField = \"\";\n if (selectionExpressionNode.getString(1) != null) {\n lengthField = \".\" + selectionExpressionNode.getString(1);\n }\n //for (int32_t i = 0; i < ({__rt::checkNotNull(args); args->length; }); i++) {\n fullRelationalExpression += primaryId + \" \" + operator + \"({__rt::checkNotNull(\"+ selectionExpression +\"); \"+selectionExpression+\"->length; })\";\n }\n if (forLoopNode.getNode(0).getNode(i).getName().equals(\"ExpressionList\")){\n //System.out.println(\"$FOR EXPRESSION\");\n Node expressionList = forLoopNode.getNode(0).getNode(i);\n Node postfixExpressionNode = expressionList.getNode(0);\n postfixExpression = postfixExpressionNode.getNode(0).getString(0) + postfixExpressionNode.getString(1);\n }\n } // end of get for loop header\n this.forLoopDecLine = \"for (\" + loopIteratorType + \" \" + declaratorVar + \" = \" + declaratorVal + \"; \" + fullRelationalExpression + \"; \" + postfixExpression + \")\";\n //System.out.println(\"fullForLoop1234678 \" + forLoopDecLine);\n for (int i = 0; i < forLoopNode.size(); i++) {\n //Use this to find the for loops block\n if(forLoopNode.getNode(i).getName().equals(\"Block\")){\n //This is the for loops block\n this.forLoopsTranslatedBlock = new TranslatedBlock(forLoopNode.getNode(i), false, theForLoopsClass, allTheClasses);\n }\n }\n }",
"@Override\n\tpublic void allocateorder(Block block) {\n\t\tint executedQty=(int) block.getQtyExecuted();\n\t\tList<Order> list = new ArrayList<Order>();\n\t\tQuery query = em.createQuery(\"from Order where blockId = :id order by orderDate\");\n\t\tquery.setParameter(\"id\", block.getBlockId());\n\t\tlist = query.getResultList();\n\t\tfor (Order order1 : list) {\n\t\tint q=order1.getQtyPlaced();\n\t\tStatus status = null;\n\t\t\tif((q<= executedQty) && (executedQty>0))\n\t\t\t{\n\t\t\t\tSystem.out.println(em);\n\t\t\t\tSystem.out.println(\"Inside first loop\");\n\t\t\t\tSystem.out.println(q);\n\t\t\t\texecutedQty=executedQty-q;\n\t\t\t\t\n\t\t\t\tQuery query1 = em.createQuery(\"Update Order set qtyExecuted=:qty1, status=:status1 where orderId=:oid\");\n\t\t\t\tquery1.setParameter(\"qty1\",q);\n\t\t\t\tquery1.setParameter(\"status1\",status.Completed.toString());\n\t\t\t\tquery1.setParameter(\"oid\",order1.getOrderId());\n\t\t\t\tSystem.out.println(query1.executeUpdate());\n\t\t\t\tSystem.out.println(executedQty + q);\n\t\t\t\t//query1.executeUpdate();\n\n\t\t\t}\n\t\t\telse if(q>=executedQty && executedQty>0){\n\t\t\t\texecutedQty=q-executedQty;\n\t\t\t\tSystem.out.println(\"Inside second loop\");\n\t\t\t\tQuery query1 = em.createQuery(\"Update Order set qtyExecuted=:qty2, status=:status2 where orderId=:oid\");\n\t\t\t\tquery1.setParameter(\"qty2\",executedQty);\n\t\t\t\tquery1.setParameter(\"status2\", status.PartiallyAllocated.toString());\n\t\t\t\tquery1.setParameter(\"oid\",order1.getOrderId());\n\t\t\t\tSystem.out.println(query1.executeUpdate());\n\t\t\t\t//query1.executeUpdate();\n\t\t\t\texecutedQty=0;\n\t\t\t\tSystem.out.println(executedQty);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tQuery query2 = em.createQuery(\"update Order set status=:status3 where orderId=:oid\");\n\t\t\t\tquery2.setParameter(\"status3\", status.Open.toString());\n\t\t\t\tquery2.setParameter(\"oid\",order1.getOrderId());\n\t\t\t\tSystem.out.println(query2.executeUpdate());\n\t\t\t\t//query2.executeUpdate();\n\t\t\t}}\n\t\tSystem.out.println(\"Inside OrderDAO\");\n\n\t\t\n\t}",
"public void incrementLoopCount() {\n this.loopCount++;\n }",
"public int getIteration();",
"void iterationStatements() \n{ \nSystem.out.println(\"***************while loops************* \");\n\nint i=1; //initialisation\nwhile(i<10) //condition\n{\nSystem.out.println(\"inside while loop\"); \ni++; //iteration\n}\n\n\n\nSystem.out.println(\"***************do-while loop************* \");\nint b=1; //initialisation\ndo\n{\nSystem.out.println(\"inside do-while loop\"); \nb++; //iteration\n}while(b<10); //condition\n\nSystem.out.println(\"ended do- while loop\"); \n\n\n\nSystem.out.println(\"***************for loop************* \");\n\nSystem.out.println(\"started for loop\"); \nfor(int c=0;c<10;c++) //all three written in one line separated by semicolons\n{\nSystem.out.println(\"inside while loop\"); \n}\nSystem.out.println(\"ended for loop\"); \n\n}",
"private int appendUntil(StringBuilder code, int i, Token... what) {\n\t\tappendLoop:\n\t\twhile (true) {\n\t\t\t//This loop serves as the condition\n\t\t\tfor (Token token : what) if (tokens.get(i) == token) break appendLoop;\n\t\t\tif (tokens.get(i) == STRING || tokens.get(i) == NUMBER) code.append(metadata.get(i));\n\t\t\telse if (tokens.get(i) == VARIABLE_NAME) {\n\t\t\t\tif (isReferenced(metadata.get(i))) code.append(metadata.get(i));\n\t\t\t\telse outputAndThrow(new RuntimeException(\"Error: Variable undefined.\\n\"));\n\t\t\t}\n\t\t\telse if (tokens.get(i) == LPAR) code.append(\"(\");\n\t\t\telse if (tokens.get(i) == RPAR) code.append(\")\");\n\t\t\telse if (tokens.get(i) == PLUS) code.append(\"+\");\n\t\t\telse if (tokens.get(i) == MINUS) code.append(\"-\");\n\t\t\telse if (tokens.get(i) == MULTIPLY) code.append(\"*\");\n\t\t\telse if (tokens.get(i) == DIVIDE) code.append(\"/\");\n\t\t\telse if (tokens.get(i) == REMAINDER) code.append(\"%\");\n\t\t\telse if (tokens.get(i) == TRUE) code.append(\"true\");\n\t\t\telse if (tokens.get(i) == FALSE) code.append(\"false\");\n\t\t\telse if (tokens.get(i) == AND) code.append(\"&&\");\n\t\t\telse if (tokens.get(i) == OR) code.append(\"||\");\n\t\t\telse if (tokens.get(i) == NOT) code.append(\"!\");\n\t\t\telse if (tokens.get(i) == MORE_EQUALS) code.append(\">=\");\n\t\t\telse if (tokens.get(i) == LESS_EQUALS) code.append(\"<=\");\n\t\t\telse if (tokens.get(i) == MORE_THAN) code.append(\">\");\n\t\t\telse if (tokens.get(i) == LESS_THAN) code.append(\"<\");\n\t\t\telse if (tokens.get(i) == EQUALS) code.append(\"==\");\n\t\t\telse if (tokens.get(i) == NOT_EQUALS) code.append(\"!=\");\n\t\t\telse if (tokens.get(i) == LSQPAR) code.append(\"Number.parseInt(\");\n\t\t\telse if (tokens.get(i) == RSQPAR) code.append(\")\");\n\t\t\telse if (tokens.get(i) == ASSIGNMENT) code.append(\"=\");\n\t\t\telse if (tokens.get(i).isOutputable()) code.append(tokens.get(i).getValue());\n\t\t\telse break;\n\t\t\tif (i+1 >= tokens.size()) break;\n\t\t\ti++;\n\t\t}\n\t\treturn i;\n\t}",
"public void run() {\n for (int i = start; i <= end; i++) {\n //reset output variable\n output = 1;\n array[i] = computeFactorial(array[i]);\n }\n }",
"@Override\n protected Boolean doInBackground(Void... voids) {\n int i=0;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n i++;\n return sendEmailUpdate(\"\");\n }",
"private int advance(int[] n, int i) {\n i += n[i];\n i%=len;\n while (i<0) i+=len;\n return i;\n }",
"public static void main(String[] args){\n int i=1;\n int j, k;\n while(i<4){\n j=0;\n while(j<10){\n k=0;\n while(k<10){\n System.out.println(i+\"\"+j+\"\"+k); // i,j values must be inside of the inner loop\n k++;\n }\n j++;\n }\n i++;\n }\n\n }",
"private void calculateEachDivision(int division) {\n DataController.setCurrentDivisionForWriting(division);\r\n percentageSlid = (division / (float) DIVISIONS_OF_VALUE_SLIDER);\r\n newCurrentValue = minValueNumeric + (percentageSlid * deltaValueNumeric);\r\n dataController.setValueAsFloat(currentSliderKey, newCurrentValue);\r\n CalculatedVariables.crunchCalculation();\r\n }",
"public void increment(){\n value+=1;\n }",
"private boolean for_cond(){\n int save = position;\r\n boolean for_cond = false;\r\n\r\n if (getNextLexeme() == Lexeme.LP) {\r\n if(init()){\r\n if(log_exp() && getNextLexeme() == Lexeme.END){\r\n if(getNextLexeme() == Lexeme.VAR && assign_op()) {\r\n if (getNextLexeme() == Lexeme.RP) {\r\n for_cond = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n position = for_cond ? position : save;\r\n return for_cond;\r\n }",
"@Override public int getBlockIncrement(int dir)\n{\n BicexEvaluationContext ctx = for_bubble.getExecution().getCurrentContext();\n if (ctx != null) {\n BicexValue bv = ctx.getValues().get(\"*LINE*\");\n List<Integer> times = bv.getTimeChanges();\n long now = for_bubble.getExecution().getCurrentTime();\n long prev = -1;\n long next = -1;\n long cur = -1;\n for (Integer t : times) {\n\t if (t <= now) {\n\t prev = cur;\n\t cur = t;\n\t }\n\t else if (next < 0) {\n\t next = t;\n\t break;\n\t }\n }\n\n if (dir < 0 && prev > 0) {\n\t return (int) (now-prev);\n }\n else if (dir > 0 && next > 0) {\n\t return (int) (next-now);\n }\n }\n\n return super.getBlockIncrement(dir);\n}",
"public static void main(String[] args) {\n\t\tfor(int i = 1, j = i + 10; i < 5; i++, j = i * 2) \r\n\t\t{\r\n System.out.println(\"i= \" + i + \" j= \" + j);\r\n\t\t}\r\n\t\tfor(int i=0, j=i+99; i<101; i++, j=i/2 ) {\r\n\t\t\tSystem.out.println(\"i= \" +i + \" j= \"+j);\r\n\t}\r\n\t\t\r\n\t\tint n=0;\r\n\t\twhile(n<10)\r\n\t\t{ System.out.println(n);\r\n\t\tn++;\r\n\t\t}\r\n\t\t\r\n//\t int a = 1;\r\n//\t int b = 2;\r\n//\t int c = 3;\r\n//\t \r\n//\t a += 5;\r\n//\t b *= 4;\r\n//\t c += a * b;\r\n//\t c %= 6;\r\n//\t System.out.println(\"a = \" + a);\r\n//\t System.out.println(\"b = \" + b);\r\n//\t System.out.println(\"c = \" + c);\r\n\r\n\r\n\t}",
"private void iterativeDataPropertyMetrics() {\n\t}",
"private static void function(int startNum,int endNum) {\n int start = startNum;\n int end = endNum;\n int count = 0;\n int x = 0;\n\n for (int i = 2; i < end; i++) {\n x=0;\n for (int j = 2; j <= (int)Math.sqrt(i); j++) {\n if (i%j==0) {\n x++;\n\n }\n }\n if (x==0) {\n count++;\n System.out.println(i);\n }\n }\n\n System.out.println(\"==========\");\n System.out.println(count);\n }",
"public static void main(String[] args) {\n\t\tint sum=0;\n\t\tfor(int i=0; i<11; i++) {\n\t\t\tSystem.out.println(\"sum till \" +i+ \" \" + (sum = sum + i));\n\t\t\t\n\t\t}\n\t\tsum = 0;\n\t\tfor(int i=10; i>=0; i--) {\n\t\t\tSystem.out.println(\"sum till \" +i+ \" \" + (sum = sum + i));\n\t\t\t\n\t\t\n\t}\n\t}",
"public static void main (String args[])\n {\n final int START;\n final int STOP = 500;\n final int NUMBER_PER_LINE = 10;\n int temp = 0;\n Scanner inputDevice = new Scanner(System.in);\n System.out.println(\"Enter value to count by: \");\n START = inputDevice.nextInt();\n for(int i = START; i <= STOP; i += START)\n {\n System.out.print(i + \" \");\n temp++;\n if(temp % NUMBER_PER_LINE == 0)\n System.out.println();\n }\n System.out.println();\n }",
"private void generate(ArrayList<Integer> literals, int start){\n if(start > numVar){\n Clause clause = new Clause();\n for(Integer i: literals){\n clause.addLiteral(i);\n }\n clauses.add(clause);\n return;\n }\n literals.add(start);\n generate(literals, start + 1);\n literals.remove(literals.size() - 1);\n literals.add(-1 * start);\n generate(literals, start + 1);\n literals.remove(literals.size() - 1);\n }",
"protected boolean hasNext() {\n\t\treturn (counter + incrValue) < max && (counter + incrValue) > min;\n\t}",
"public void step()\n {\n LCD.clear();\n sw.reset();\n for( int i = 0; i<3; i++)m[i].resetTachoCount();\n for( int i = 0; i<3; i++)m[i].forward();\n for(int r = 0 ; r<8; r++)\n {\n while(sw.elapsed() < 200* r)Thread.yield();\n for( int i = 0; i<3; i++)\n LCD.drawInt(m[i].getTachoCount(),5*i,r);\n }\n for( int i = 0; i<3; i++)m[i].stop();\n Button.waitForPress();\n }",
"public void step() {\n\n if (n8) {\n // Your code here\n \n \n //by here, after your code, the cellsNext array should be updated properly\n }\n\n if (!n8) { // neighbours-4\n // your code here\n\n //by here, after your code, the cellsNext array should be updated properly\n }\n\n // Flip the arrays now.\n stepCounter++;\n\ttmp = cellsNow;\n cellsNow = cellsNext;\n\tcellsNext = tmp;\n\n }",
"void increase();",
"void increase();",
"public static void main(String[] args) {\n\tint i = 1\n\t\tint Obergrenze = 789\n\t\t\t\tfor (int = 1; i < Obergrenze; i = i + 2) {\n\t}",
"void increase()\n {\n a++;\n b++ ;\n }",
"@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}",
"@Override\n\tpublic void run() {\n\t\tfor(long i=start;i<=end;i++)\n\t\t{\n\t\t\tif(isprime(i))\n\t\t\t\tcount++;\n\t\t\t\n\t\t}\n\t\tres =false;\n\t}",
"protected void evaluateConditions()\n {\n ensureConditionContinuity() ;\n checkComponentList() ;\n\n for ( int liCondCtr = 1 ; liCondCtr <= 5 ; liCondCtr++ )\n {\n checkCondition( liCondCtr ) ;\n } /* end for */\n\n }",
"static void core_state_transition_loop(ShortWrapper p, byte[] memblock, int[] track_counts, int[] final_counts) {\n\t\twhile (memblock[p.value]!=0) {\n\t\t\tbyte fstate=core_state_transition(p,memblock,track_counts);\n\t\t\tfinal_counts[fstate]++;\n\t\t}\n\t}",
"public boolean foundLoop();",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"This is a for loop\");\n\t\tfor (int number = 0; number <=30; number++) {\n\t\t\tSystem.out.println(number);\n\t\t\t\n\t\t}\n\t\t\n\t\tint number=20;\n\t\tint numberone=10;\n\t\tSystem.out.println(\"This is a do while loop\");\n\t\tdo {\n\t\tSystem.out.println(number);\n\t\tnumber++;\n\t\t} while (number<=100);\n\t\t\n\t\t\n\t\tSystem.out.println(\"This is a while loop\");\n\t\twhile (numberone<=50) {\n\t\t\tSystem.out.println(numberone);\n\t\t\tnumberone++;\n\t\t\t\n\t\t}\n\n\t}",
"public static void main(String[] args) {\n\r\n for (int x = 1; x < 10; x++) {// x=1\r\n\r\n for (int h = 1; h < 10; h++) { // h=1+1+1...8+1\r\n\r\n System.out.println(x + \"*\" + h \"=\" +x*h);// 1-2-3....8-9\r\n\r\n if(h==2){\r\n break;\r\n }\r\n }\r\n\r\n if(x==4){\r\n continue;\r\n }\r\n\r\n }\r\n\r\n }",
"@Override\n\tpublic void run() {\n\t\tfor(int i = 1; i<=5; i++) {\n\t\t\tdata.up();\n\t\t}\n\t}",
"public void nextIteration()\n {\n actuelIteration++;\n }",
"protected void end() {\n \tclimber.ascend(0, 0);\n }",
"public void run() {\n Integer i = start;\n while(i != end) {\n if (isPrime(i)) { // Will there be type issues, since isPrime takes an int?\n // Add i to primes\n i++;\n } else {\n i++;\n }\n }\n }",
"public static void main(String[] args) {\r\n\t\t\t\r\n\t\t\tint year;\r\n\t\t\tfor(year=1;year<4000;year++) {\r\n\r\n\t\t // if value of i is between 4 and 9, continue is executed \r\n\t\t if(year % 4 == 0) {\r\n\t\t continue;\r\n\t\t \r\n\t\t } \r\n\t\t System.out.println(year);\r\n\t\t\r\n\t\t\r\n\t\t}\r\n\t}",
"private void forPractice() //for loop- always a counting loop (like Simon says- do it 3 times)-pass two streets then turn left\n\t{\n\t\tfor (int i = 1; i < 4; i++)\n\t\t{\n\t\t\taskUser();\n\t\t}\n\t\n\t\n\t\n\t//Analogy-\n\t//model is what you can see\n\t//controller-director-not seen in the movie\n\t//all work goes \n\n\t\n\t}",
"private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }",
"public int stepthrough(int i) {\r\n\t\tswitch(sim40.memory[i]) {\r\n\r\n\t\t/* stop */\r\n\t\tcase 0: this.isProgramTerminated = true; \r\n\t\treturn i;\r\n\r\n\t\t/* print, printb, printch */\r\n\t\tcase 1: case 2: case 3: \r\n\t\t\tthis.stdStream.getOutput().add(result(i));\r\n\t\t\t++i;\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\t/* jump, comp, xcomp, ycomp, jineg, jipos, jizero, jicarry */\r\n\t\t\tif(sim40.memory[i] >= 19 && sim40.memory[i] <= 26)\r\n\t\t\t\ti = compareExecute(i);\r\n\r\n\t\t\telse if(sim40.memory[i] >= 4 && sim40.memory[i] <= 9) \r\n\t\t\t\ti = unaryExecute(i);\r\n\r\n\t\t\telse \r\n\t\t\t\ti = binaryExecute(i);\t\t\r\n\r\n\t\t}\r\n\t\t\r\n\t\tcheckResetAllRegsAndFlags();\r\n\t\tsim40.updateViewVars();\r\n\t\tsim40.memory[Simulator.PROGRAM_COUNTER] = i;\r\n\r\n\t\treturn i;\r\n\t}",
"public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}",
"public boolean iterate() {\n\t\tupdated = false;\n//\t\tSystem.out.println(\"QN iterations \"+iterations);\n\t\tif( mode == 0 ) {\n\t\t\treturn computeSearchDirection();\n\t\t} else {\n\t\t\treturn performLineSearch();\n\t\t}\n\t}",
"public void step() {\n // method 1 of Temperature randomness\n enPrice = 1.1 * enPrice;\n\n TempChange = Temperature * (0.1 * (1 - 2 * r.nextDouble()));\n // method 2 of Temperature\n// TempChange = temperature_list.get(count);\n// count+=1;\n\n Temperature += TempChange;\n year_num+=1;\n }",
"private StatementNode wrapBodyWithControlVariableStep(WriteVariableNode assignment, StatementNode loopBody, ForDirection direction) throws VariableNotDeclaredException {\n if (direction == ForDirection.UP) {\n return loopBody.appendStatement(\n astFactory.createIncrementVariable(\n astFactory.createReadVariable(assignment.getVariableName())), getFrameDescriptor());\n\n } else if (direction == ForDirection.DOWN) {\n return loopBody.appendStatement(\n astFactory.createDecrementVariable(astFactory.createReadVariable(assignment.getVariableName())),\n getFrameDescriptor());\n } else {\n throw new RuntimeException(\"Unexpected loop direction \" + direction.toString());\n }\n }",
"private int calcIndexTemplet4(int overPos, boolean isStart, int result) {\n // Start index\n if (isStart) {\n if (overPos < mItemHeight * 2) {\n result = 1;\n } else {\n result = 4;\n }\n }\n // End index\n else {\n if (overPos < mItemHeight) {\n result = 2;\n } else if (overPos < mItemHeight * 2) {\n result = 3;\n } else if (overPos < mItemHeight * 3) {\n result = 5;\n } else {\n result = 6;\n }\n }\n\n return result;\n }",
"public static void code_fragment(){\n int[] a = new int[10];\n for(int i = 0; i < 10 ; i++){\n a[i] = 9 - i;\n // Custom code to print values\n print_value(i, a[i]);\n }\n for(int i = 0; i < 10 ; i++){\n a[i] = a[a[i]];\n // Custom code to print values\n print_value(i, a[i]);\n }\n for(int i = 0; i < 10 ; i++){\n System.out.println(i);\n }\n }",
"public static void main(String[] args) {\n int a=10;\n int b=3;\n\n int count=0; // count the execution of the loop\n\n while(a>=b){\n a-=b;\n count++;\n\n }\n System.out.println(count);\n\n /*\n While loop is used in situations where we do not know how many times loop needs\n to be excuted beforehand. For loop is used where we already know about the number of times loop needs to be excuted.\n */\n\n\n\n\n\n\n\n\n\n\n }",
"public void goToLoopCounter() throws EndTaskException {\n\t\tgoToOrigin();\n\t\tturnAround();\n\t\tmove();//lane 2\n\t\tmove();\n\t}",
"private void loopy()\n\t{\n\t\tboolean isDone = false;\n\t\tint count = 0;\n\n\t\twhile (!isDone)\n\t\t// Test the variable\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"blah blah blah\");\n\t\t\t// Eventually change the loop variable\n\t\t\tcount++;\n\t\t\tif (count >= 10)\n\t\t\t{\n\t\t\t\tisDone = true; // update variable\n\t\t\t}\n\t\t}\n\n\t\tfor (int loop = 0; loop < 30; loop += 2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"The loop value is : \" + loop);\n\t\t}\n\t}",
"@SuppressWarnings(\"unused\")\r\n\t@Override\r\n\tpublic double doCommand(String[] parameters, int commandIndex) {\n\t\tDouble leftExpression = null;\r\n\t\tDouble rightExpression = null;\r\n\t\tString predicate=null;\r\n\t\tint res=0;\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint innerLoop = 0;\r\n\t\tString[] innerLoopEquasion = new String[5];\r\n\t\tint j=0;\r\n\t\tString[] whileiLine=null;\r\n\t\tboolean flag= true;\r\n\t\t\r\n//\t\tSystem.out.println(\"length is: \"+parameters.length);\r\n//\t\t\r\n//\t\tfor(String s: parameters) {\r\n//\t\t\tSystem.out.println(s);\r\n//\t\t}\r\n//\t\t\r\n\t\tfor(int i=0; i<parameters.length;i++) {\r\n\t\t\tif(parameters[i].contains(\"while\")) {\r\n\t\t\t\tinnerLoop = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"length is: \" + parameters.length);\r\n//\t\tSystem.out.println(\"innerloop index: \" + innerLoop);\r\n\t\t\t\t\t\r\n\t\t//calculate how many equasion i need to calculate\r\n\t\tfor(int i=innerLoop; i<parameters.length && flag;i++) {\r\n\t\t\tif(parameters[i].contains(\"while\")) {\r\n\t\t\t\twhileiLine = parameters[i].split(\"\\\\s+\");\r\n\t\t\t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n\t\t\t\trightExpression= ExpressionToDouble(whileiLine[3]);\r\n\t\t\t\tpredicate = whileiLine[2];\r\n\t\t\t}\r\n\t\t\telse if(parameters[i].contains(\"}\")) {\r\n\t\t\t\tflag=false;\r\n\t\t\t}\t\t\t\r\n\t\t\telse if(i>innerLoop) {\t\r\n\t\t\t\t innerLoopEquasion[j]=parameters[i];\r\n\t\t\t\t//System.out.println(\"loopy: \"+ innerLoopEquasion[j]);\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\t//apply the condition:\r\n\t switch (predicate) {\r\n case \"<\": {\r\n while (leftExpression - rightExpression < 0) {\r\n \tres=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\r\n }\r\n } break;\r\n\r\n case \">\": {\r\n while (leftExpression - rightExpression > 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"<=\": {\r\n while (leftExpression - rightExpression <= 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \">=\": {\r\n while (leftExpression - rightExpression >= 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"==\": {\r\n while (leftExpression - rightExpression == 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"!=\": {\r\n while (leftExpression - rightExpression != 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n } \r\n\t //return the next expression afer the \"}\"\r\n\t return parameters.length;\r\n\t}",
"public static void main(String []args) {\n Scanner in = new Scanner(System.in);\n // Using While Loop\n int start, end, div, i, sum=0;\n System.out.println(\"Input beginning number: \");\n start = in.nextInt();\n System.out.println(\"Input ending number: \");\n end = in.nextInt();\n System.out.println(\"Input divisible number: \");\n div = in.nextInt();\n System.out.println(\"Numbers between \" + start + \" and \" + end + \" divisible by \" + div + \" : \");\n i=start;\n while(i<end){\n if(i%div==0){\n System.out.print(\" \" + i); // OR.. System.out.printf(\"% 5d\",i);\n sum+=i;\n }\n i++;\n }\n System.out.println(\"\\n\\nThe sum : \" + sum);\n\n // Using For Loop\n /*int start, end, div, i, sum=0;\n System.out.println(\"Input beginning number: \");\n start = in.nextInt();\n System.out.println(\"Input ending number: \");\n end = in.nextInt();\n System.out.println(\"Input divisible number: \");\n div = in.nextInt();\n System.out.println(\"Numbers between \" + start + \" and \" + end + \" divisible by \" + div + \" : \");\n\n for(i=start;i<end;i++){\n if(i%div==0){\n System.out.print(\" \" + i); // OR.. System.out.printf(\"% 5d\",i);\n sum+=i;\n }\n }\n System.out.println(\"\\n\\nThe sum : \" + sum);*/\n\n }",
"public static void main(String[] args) {\n\t\tfor (int number = 20;number <= 100; number=number+2) {\n\t\t\tSystem.out.println(number);\n\t\t}\n\t}",
"void calculateRange() {\n //TODO: See Rules\n }",
"public static void main (String[]args) {\n for (int i = 10; i >= 1; i--) {\n System.out.println(i);\n }\n }",
"static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}"
] | [
"0.55993736",
"0.5557373",
"0.53799736",
"0.5280635",
"0.52715385",
"0.5264535",
"0.52073973",
"0.5199744",
"0.5172965",
"0.5168002",
"0.51437366",
"0.5143114",
"0.5061783",
"0.5033584",
"0.5006571",
"0.49972522",
"0.4993235",
"0.49647975",
"0.49617773",
"0.49541545",
"0.49448648",
"0.49360102",
"0.4920725",
"0.49183524",
"0.48982954",
"0.48848787",
"0.4872571",
"0.48708445",
"0.48605078",
"0.48557293",
"0.48546058",
"0.48509383",
"0.485047",
"0.4842448",
"0.48291218",
"0.48267943",
"0.480631",
"0.47981685",
"0.47930354",
"0.47928703",
"0.4789827",
"0.47878367",
"0.47852752",
"0.4778801",
"0.47695845",
"0.47665235",
"0.4751714",
"0.47470713",
"0.47447485",
"0.47439027",
"0.47305325",
"0.47302938",
"0.47264624",
"0.47215545",
"0.47170976",
"0.4714113",
"0.47040898",
"0.47037917",
"0.47029006",
"0.47019106",
"0.47002813",
"0.4698419",
"0.46965617",
"0.46852562",
"0.46754676",
"0.46753302",
"0.46749732",
"0.46671584",
"0.46671584",
"0.46664488",
"0.46647668",
"0.46574676",
"0.464749",
"0.46472043",
"0.46452275",
"0.46427122",
"0.46419886",
"0.46402553",
"0.46396244",
"0.46388775",
"0.46354952",
"0.4628744",
"0.4621751",
"0.4611898",
"0.46118778",
"0.46109104",
"0.46104872",
"0.4607383",
"0.4597646",
"0.45891163",
"0.45878863",
"0.45855707",
"0.45826662",
"0.456807",
"0.45590395",
"0.4557252",
"0.4556116",
"0.4550118",
"0.45479125",
"0.4545052",
"0.45408824"
] | 0.0 | -1 |
Created by Shivani on 2/9/2018. | public interface PatientRegisterContracts extends BaseContract {
interface PatientRegisterView extends BaseContract.BaseView {
void onRegisterPatient(UserRegisterResponse userRegisterResponse);
}
interface PatientRegisterPresenter {
void registerPatient(PatientRegisterRequest patientRegsiterRequest);
void addPatientNoIcon(PatientRequestNoIcon patientRequestNoIcon);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"private void poetries() {\n\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {\n }",
"@Override\n void init() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@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 protected void getExras() {\n }",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void init() {}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void init() {\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 init() {}",
"public void gored() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\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 public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private void m50366E() {\n }",
"Petunia() {\r\n\t\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"private TMCourse() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public void initialize() { \n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\n public void initialize() {\n \n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"private void kk12() {\n\n\t}"
] | [
"0.6026255",
"0.58438456",
"0.57457256",
"0.56951314",
"0.568626",
"0.568626",
"0.5649277",
"0.5631987",
"0.5564456",
"0.55499274",
"0.55256003",
"0.55195177",
"0.5517523",
"0.5497504",
"0.54931355",
"0.5476722",
"0.54662645",
"0.5452878",
"0.5452878",
"0.5452878",
"0.5452878",
"0.5452878",
"0.5452878",
"0.54467136",
"0.5436698",
"0.5435991",
"0.5430281",
"0.5421719",
"0.5417016",
"0.541055",
"0.54007953",
"0.5389761",
"0.5385541",
"0.53801715",
"0.53801715",
"0.53801715",
"0.53801715",
"0.53801715",
"0.53740406",
"0.53735983",
"0.5358763",
"0.5352066",
"0.5346349",
"0.5346192",
"0.53451186",
"0.53447044",
"0.53412396",
"0.53412396",
"0.53299433",
"0.53282344",
"0.53152704",
"0.53152704",
"0.5309729",
"0.5297209",
"0.52944726",
"0.5284385",
"0.5283419",
"0.52808475",
"0.52808475",
"0.52808475",
"0.52768236",
"0.52768236",
"0.5275579",
"0.5273753",
"0.52642435",
"0.52642435",
"0.52642435",
"0.52462584",
"0.52304435",
"0.52295107",
"0.52237624",
"0.52232814",
"0.52218527",
"0.5214559",
"0.5214526",
"0.5214526",
"0.5214526",
"0.5213506",
"0.52072257",
"0.52001745",
"0.51923275",
"0.5191082",
"0.518907",
"0.518907",
"0.518907",
"0.51883286",
"0.5186569",
"0.5182178",
"0.5182178",
"0.5182178",
"0.5182178",
"0.5182178",
"0.5182178",
"0.5182178",
"0.517654",
"0.51764303",
"0.51589954",
"0.51563936",
"0.5154249",
"0.5154249",
"0.51541436"
] | 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. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
cmbFC = new javax.swing.JComboBox();
jScrollPane1 = new javax.swing.JScrollPane();
tabFCHis = new javax.swing.JTable();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
setBackground(new java.awt.Color(255, 255, 255));
jLabel1.setBackground(new java.awt.Color(255, 255, 255));
jLabel1.setFont(new java.awt.Font("Lucida Grande", 1, 14)); // NOI18N
jLabel1.setText("Fund Company Trade History Analysis");
jLabel2.setText("Fund Company:");
cmbFC.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
cmbFCActionPerformed(evt);
}
});
tabFCHis.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Fund Name", "Sales", "Type", "Purchase Price", "Redemption Price"
}
) {
boolean[] canEdit = new boolean [] {
false, false, false, false, false
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jScrollPane1.setViewportView(tabFCHis);
jButton1.setBackground(new java.awt.Color(255, 255, 255));
jButton1.setText("Analysis");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jButton2.setBackground(new java.awt.Color(255, 255, 255));
jButton2.setText("<<Back");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel2)
.addComponent(jLabel1))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(cmbFC, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGap(68, 68, 68)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jButton2)
.addGap(362, 362, 362)
.addComponent(jButton1))
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 556, javax.swing.GroupLayout.PREFERRED_SIZE))))
.addContainerGap(81, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(cmbFC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(41, 41, 41)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 197, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(38, 38, 38)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2))
.addContainerGap(107, Short.MAX_VALUE))
);
} | {
"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 kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\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 vpemesanan1() {\n initComponents();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\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 JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\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.7319573",
"0.72908455",
"0.72908455",
"0.72908455",
"0.7286827",
"0.7248724",
"0.7213511",
"0.7208325",
"0.7195998",
"0.7190202",
"0.7184771",
"0.7158966",
"0.7147921",
"0.7093225",
"0.7080275",
"0.7057302",
"0.69875276",
"0.6977057",
"0.6955658",
"0.6953942",
"0.69454855",
"0.6942884",
"0.6935925",
"0.69316167",
"0.692865",
"0.6925198",
"0.69251573",
"0.69119257",
"0.6911172",
"0.68930143",
"0.68928415",
"0.6890789",
"0.6890435",
"0.68890977",
"0.68831456",
"0.6881887",
"0.68808997",
"0.6878897",
"0.6876147",
"0.68747145",
"0.6872147",
"0.6859808",
"0.6856282",
"0.6855344",
"0.68553185",
"0.685469",
"0.6853377",
"0.68523794",
"0.68523794",
"0.68436074",
"0.68373406",
"0.6837167",
"0.68286663",
"0.68283236",
"0.6826517",
"0.682448",
"0.6823606",
"0.68170947",
"0.6817084",
"0.681006",
"0.6809135",
"0.68087894",
"0.68084186",
"0.68076634",
"0.6802823",
"0.6795054",
"0.67939687",
"0.67926705",
"0.6791137",
"0.6789317",
"0.6788968",
"0.6788417",
"0.6782546",
"0.67662394",
"0.67658025",
"0.6765246",
"0.6756509",
"0.67557156",
"0.6752202",
"0.6750687",
"0.6742804",
"0.6739344",
"0.6736661",
"0.67360824",
"0.67333126",
"0.6727312",
"0.67265683",
"0.6720307",
"0.67165637",
"0.67146873",
"0.6714614",
"0.67091054",
"0.67075574",
"0.6704629",
"0.6700793",
"0.6700504",
"0.6699442",
"0.6697844",
"0.66946405",
"0.66912174",
"0.6690615"
] | 0.0 | -1 |
Conversion .svg to .png for create a format more standard and print it | public void convert() throws Exception {
String svg_URI_input = Paths.get("library.svg").toUri().toURL().toString();
TranscoderInput input_svg_image = new TranscoderInput(svg_URI_input);
this.setNewImage(generate(20));// Define the name of the file
try (OutputStream png_ostream = new FileOutputStream(newImage)) {
TranscoderOutput output_png_image = new TranscoderOutput(png_ostream);
PNGTranscoder my_converter = new PNGTranscoder();
my_converter.transcode(input_svg_image, output_png_image);
png_ostream.flush();
png_ostream.close();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void outputSvg(String fileName){\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(new File(fileName));\n\t\t\tfw.write(output);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t}",
"public ImageWriterSVG(String format)\n\t{\n\t\tif (!(\"svg\".equals(format) || \"svgz\".equals(format)))\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"format \" + format + \" is not accepted by this ImageWriter\");\n\t\t}\n\t\t\n\t\tacceptedFormat = format;\n\t}",
"public String toSVG() {\n\n StringBuilder toReturn = new StringBuilder();\n toReturn.append(\"<svg width=\" + \"\\\"\" + Integer.toString(this.width)\n + \"\\\"\" + \" height=\" + \"\\\"\" + Integer.toString(this.height)\n + \"\\\"\" + \" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"); // add website\n String tag;\n for (String s : model.getIDSet()) {\n\n IShape sh = model.currentShape(0, s);\n if (sh.isRectangle()) {\n toReturn.append(\"<rect id=\" + \"\\\"\" + s + \"\\\"\" + \" \");\n tag = \"</rect>\";\n toReturn.append(\"x=\\\"\" + sh.getLocation().getX() + \"\\\" y=\\\"\"\n + sh.getLocation().getY() + \"\\\" width=\\\"\" + sh.getWidth() + \"\\\" height=\\\"\"\n + sh.getHeight() + \"\\\" fill=\\\"rgb(\" + sh.getColor().getRedInt() + \",\" +\n sh.getColor().getGreenInt() + \",\"\n + sh.getColor().getBlueInt() + \")\\\" visibility=\\\"visible\\\" >\\n\");\n } else {\n toReturn.append(\"<ellipse id=\" + \"\\\"\" + s + \"\\\"\" + \" \");\n toReturn.append(\"cx=\\\"\" + sh.getLocation().getX() + \"\\\" cy=\\\"\" + sh.getLocation().getY()\n + \"\\\" rx=\\\"\" + sh.getWidth() + \"\\\" ry=\\\"\" + sh.getHeight() + \"\\\" fill=\\\"rgb(\"\n + sh.getColor().getRedInt() + \",\" + sh.getColor().getGreenInt() + \",\"\n + sh.getColor().getBlueInt() + \")\\\" visibility=\\\"visible\\\" >\\n\");\n tag = \"</ellipse>\";\n }\n\n toReturn.append(svgColors(s));\n\n toReturn.append(svgSizes(s));\n\n toReturn.append(svgMoves(s));\n\n toReturn.append(tag + \"\\n\");\n\n }\n toReturn.append(\"</svg>\");\n return toReturn.toString();\n }",
"public void exportDotAndPng(String filename) throws IOException {\n // finalizeAlphabet();\n String dot = toGraphviz();\n Writer output = new BufferedWriter(new FileWriter(new File(filename)));\n try {\n output.write(dot);\n } finally {\n output.close();\n }\n GraphExporter.generatePngFileFromDotFile(filename);\n }",
"public static void main(String[] args) throws Exception {\n String svg_URI_input = Paths.get(\"chessboard.svg\").toUri().toURL().toString();\n TranscoderInput input_svg_image = new TranscoderInput(svg_URI_input);\n //Step-2: Define OutputStream to PNG Image and attach to TranscoderOutput\n OutputStream png_ostream = new FileOutputStream(\"chessboard.png\");\n TranscoderOutput output_png_image = new TranscoderOutput(png_ostream);\n // Step-3: Create PNGTranscoder and define hints if required\n PNGTranscoder my_converter = new PNGTranscoder();\n // Step-4: Convert and Write output\n my_converter.transcode(input_svg_image, output_png_image);\n // Step 5- close / flush Output Stream\n png_ostream.flush();\n png_ostream.close();\n }",
"protected Bitmap getSVGImageForName(String name) throws IOException {\n String path = SVG_BASE_PATH + name + \".svg\";\n\n // create a shape document (load the SVG)\n PXShapeDocument document = PXSVGLoader.loadFromStream(getContext().getAssets().open(path));\n\n // grab root shape\n PXShapeGroup root = (PXShapeGroup) document.getShape();\n RectF bounds = root.getViewport();\n\n if (bounds == null || bounds.isEmpty()) {\n // use 100x100 if we didn't find a view port in the SVG file\n bounds = new RectF(0, 0, 100, 100);\n }\n\n // set size\n document.setBounds(bounds);\n // render to UIImage\n Drawable drawable = root.renderToImage(bounds, false);\n return ((BitmapDrawable) drawable).getBitmap();\n }",
"public SvgGraphics(int numOfVertices, int scale){\n\t\t//Set the scale\n\t\tthis.scale = scale;\n\t\t\n\t\t//Get the size of the graph (from the paper 2*n-4 x n-2)\n\t\tint xSize = (2*numOfVertices - 4);\n\t\tint ySize = (numOfVertices - 2);\n\t\t\n\t\t//Set the starting x and y coordinates (in pixels).\n\t\t//The r just moves the graph up and over so that the bottom nodes\n\t\t//are fully displayed.\n\t\tint startx = r;\n\t\tint starty = (scale*ySize) + r;\n\t\t\n\t\t//Set the initial xml format for SVG\n\t\t//Also rotate the picture and move to a place that can be viewed\n\t\toutput = \"<?xml version=\\\"1.0\\\" standalone=\\\"no\\\"?>\\n\" +\n\t\t\t\t\"<!DOCTYPE svg PUBLIC \\\"-//W3C//DTD SVG 1.1//EN\\\" \" +\n\t\t\t\t\"\\\"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\\\">\\n\\n\" +\n\t\t\t\t\"<svg width=\\\"100%\\\" height=\\\"100%\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\\n\" +\n\t\t\t\t\"<g transform=\\\"matrix(1, 0, 0, -1, \" + startx + \", \" + starty +\")\\\">\\n\" +\n\t\t\t\t\"<g font-family=\\\"Verdana\\\" font-size=\\\"8\\\" >\\n\\n\";\n\t}",
"public String saveDotGraph(String inFile){\n\t\tProcessBuilder p = new ProcessBuilder(\"dot\",\"-o\"+inFile+\".jpg\",\"-Tjpg\",inFile);\n\t\tp.redirectErrorStream(true); //redirects stderr to stdout\n\t\ttry {\n\t\t\tProcess run=p.start();\n\t\t\t//we need to capture the output stream in order for this to work properly\n\t\t\tOutputStream output=run.getOutputStream();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn inFile+\".jpg\";\n\t}",
"public void endSvgFile(){\n\t\toutput += \"</g>\\n\" + \n\t\t\t\t\t\"</g>\\n\" +\n\t\t\t\t\t\"</svg>\\n\";\n\t}",
"public static IStatus saveSVG(IFigure root, File file, IProgressMonitor monitor)\n\t\t\tthrows IOException {\n\t\tGraphicsSVG graphics = null;\n\t\tOutputStream out = null;\n\t\ttry {\n\t\t\tout = new FileOutputStream(file);\n\t\t\tfinal Rectangle viewBox = root.getBounds().getCopy();\n\t\t\tgraphics = GraphicsSVG.getInstance(viewBox);\n\t\t\t// paint figure\n\t\t\troot.paint(graphics);\n\t\t\tElement svgRoot = graphics.getRoot();\n\n\t\t\tif (monitor != null && monitor.isCanceled()) {\n\t\t\t\treturn Status.CANCEL_STATUS;\n\t\t\t}\n\n\t\t\t// Define the view box\n\t\t\tsvgRoot.setAttributeNS(null, \"viewBox\",\n\t\t\t\t\tString.valueOf(viewBox.x) + \" \" + String.valueOf(viewBox.y)\n\t\t\t\t\t\t\t+ \" \" + String.valueOf(viewBox.width) + \" \"\n\t\t\t\t\t\t\t+ String.valueOf(viewBox.height));\n\n\t\t\tif (monitor != null && monitor.isCanceled()) {\n\t\t\t\treturn Status.CANCEL_STATUS;\n\t\t\t}\n\n\t\t\t// Write the document to the stream\n\t\t\tTransformer transformer = TransformerFactory.newInstance()\n\t\t\t\t\t.newTransformer();\n\t\t\ttransformer.setOutputProperty(OutputKeys.METHOD, \"xml\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.ENCODING, \"UTF-8\");\n\t\t\ttransformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n\t\t\tif (monitor != null && monitor.isCanceled()) {\n\t\t\t\treturn Status.CANCEL_STATUS;\n\t\t\t}\n\n\t\t\tDOMSource source = new DOMSource(svgRoot);\n\t\t\tStreamResult result = new StreamResult(out);\n\n\t\t\ttransformer.transform(source, result);\n\t\t\treturn Status.OK_STATUS;\n\t\t} catch (Exception e) {\n\t\t\tlogger.debug(e.getMessage());\n\t\t\tMessageDialog.openWarning(Display.getDefault().getActiveShell(), \"Warning\", \"The SVG conversion failed: \"+e.getMessage());\n\t\t\treturn Status.CANCEL_STATUS;\n\t\t} finally {\n\t\t\tif (graphics != null)\n\t\t\t\tgraphics.dispose();\n\t\t\tif (out != null) {\n\t\t\t\tout.close();\n\t\t\t}\n\t\t}\n\t}",
"String getSVGDescription(double speed);",
"void writeGraphics() throws Exception;",
"@Override\n public void writeSVG(Appendable ap, int tps, boolean looping,\n LinkedHashMap<String, IVisitableActor> actorMap) {\n IView svg;\n if (looping) {\n svg = new LoopingSvgView(ap, tps);\n }\n else {\n svg = new SvgView(ap, tps);\n }\n svg.setActors(actorMap);\n try {\n svg.outputActors();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public interface Paths {\n String svg_path=\"M 1024.00,0.00\\n\"+\n \"C 1024.00,0.00 1024.00,1024.00 1024.00,1024.00\\n\"+\n \"1024.00,1024.00 0.00,1024.00 0.00,1024.00\\n\"+\n \"0.00,1024.00 0.00,0.00 0.00,0.00\\n\"+\n \"0.00,0.00 1024.00,0.00 1024.00,0.00 Z\\n\"+\n \"M 471.00,82.00\\n\"+\n \"C 471.00,82.00 436.00,86.46 436.00,86.46\\n\"+\n \"402.29,92.53 363.11,105.02 332.00,119.31\\n\"+\n \"212.66,174.10 124.94,279.73 93.13,407.00\\n\"+\n \"93.13,407.00 84.32,449.00 84.32,449.00\\n\"+\n \"84.32,449.00 83.71,459.00 83.71,459.00\\n\"+\n \"83.71,459.00 82.04,468.00 82.04,468.00\\n\"+\n \"82.04,468.00 82.04,477.00 82.04,477.00\\n\"+\n \"81.41,483.79 80.02,482.44 80.00,493.00\\n\"+\n \"80.00,493.00 80.00,531.00 80.00,531.00\\n\"+\n \"80.02,541.55 81.41,540.19 81.91,547.00\\n\"+\n \"83.59,569.87 87.15,592.72 92.74,615.00\\n\"+\n \"100.84,647.21 115.95,687.81 132.22,716.80\\n\"+\n \"132.22,716.80 151.28,747.23 151.28,747.23\\n\"+\n \"151.28,747.23 165.74,768.69 165.74,768.69\\n\"+\n \"165.74,768.69 170.22,773.74 170.22,773.74\\n\"+\n \"170.22,773.74 180.37,787.49 180.37,787.49\\n\"+\n \"180.37,787.49 189.63,797.04 189.63,797.04\\n\"+\n \"189.63,797.04 195.01,804.24 195.01,804.24\\n\"+\n \"195.01,804.24 221.76,830.99 221.76,830.99\\n\"+\n \"221.76,830.99 228.24,835.74 228.24,835.74\\n\"+\n \"228.24,835.74 235.76,842.99 235.76,842.99\\n\"+\n \"235.76,842.99 249.49,853.14 249.49,853.14\\n\"+\n \"249.49,853.14 255.31,858.26 255.31,858.26\\n\"+\n \"255.31,858.26 271.58,869.13 271.58,869.13\\n\"+\n \"291.22,882.33 311.33,894.77 333.00,904.45\\n\"+\n \"333.00,904.45 341.00,907.55 341.00,907.55\\n\"+\n \"367.84,919.54 388.74,925.41 417.00,932.47\\n\"+\n \"417.00,932.47 449.00,938.71 449.00,938.71\\n\"+\n \"449.00,938.71 457.00,939.29 457.00,939.29\\n\"+\n \"462.41,939.99 463.86,940.92 470.00,941.08\\n\"+\n \"470.00,941.08 480.00,941.08 480.00,941.08\\n\"+\n \"487.10,941.88 487.04,942.99 496.00,943.00\\n\"+\n \"496.00,943.00 532.00,943.00 532.00,943.00\\n\"+\n \"540.96,942.99 540.90,941.88 548.00,941.00\\n\"+\n \"548.00,941.00 558.00,941.00 558.00,941.00\\n\"+\n \"558.00,941.00 567.00,939.29 567.00,939.29\\n\"+\n \"567.00,939.29 575.00,938.71 575.00,938.71\\n\"+\n \"600.22,935.42 641.23,924.46 665.00,915.29\\n\"+\n \"704.92,899.89 742.59,878.10 776.69,852.26\\n\"+\n \"776.69,852.26 793.76,837.74 793.76,837.74\\n\"+\n \"793.76,837.74 800.24,832.99 800.24,832.99\\n\"+\n \"800.24,832.99 815.67,817.67 815.67,817.67\\n\"+\n \"815.67,817.67 830.99,802.24 830.99,802.24\\n\"+\n \"830.99,802.24 836.37,795.04 836.37,795.04\\n\"+\n \"836.37,795.04 843.63,787.49 843.63,787.49\\n\"+\n \"843.63,787.49 853.78,773.74 853.78,773.74\\n\"+\n \"853.78,773.74 858.80,768.26 858.80,768.26\\n\"+\n \"858.80,768.26 865.22,758.47 865.22,758.47\\n\"+\n \"865.22,758.47 883.32,731.61 883.32,731.61\\n\"+\n \"912.11,682.93 931.69,628.01 939.70,572.00\\n\"+\n \"939.70,572.00 940.29,564.00 940.29,564.00\\n\"+\n \"940.29,564.00 941.83,554.00 941.83,554.00\\n\"+\n \"941.83,554.00 943.09,532.00 943.09,532.00\\n\"+\n \"943.09,532.00 944.00,520.00 944.00,520.00\\n\"+\n \"944.09,461.78 934.76,408.42 913.76,354.00\\n\"+\n \"913.76,354.00 903.46,328.00 903.46,328.00\\n\"+\n \"903.46,328.00 888.10,299.00 888.10,299.00\\n\"+\n \"848.42,227.81 787.58,169.24 716.00,130.54\\n\"+\n \"697.75,120.67 678.43,112.81 659.00,105.63\\n\"+\n \"633.52,96.22 601.90,88.14 575.00,84.30\\n\"+\n \"575.00,84.30 567.00,83.71 567.00,83.71\\n\"+\n \"557.81,82.51 560.60,82.12 550.00,82.00\\n\"+\n \"550.00,82.00 530.00,80.14 530.00,80.14\\n\"+\n \"530.00,80.14 487.00,80.14 487.00,80.14\\n\"+\n \"478.45,81.70 480.15,81.95 471.00,82.00 Z\\n\"+\n \"M 621.75,530.91\\n\"+\n \"C 622.02,527.46 613.08,514.77 610.99,510.91\\n\"+\n \"610.99,510.91 582.50,458.00 582.50,458.00\\n\"+\n \"582.50,458.00 574.45,440.00 574.45,440.00\\n\"+\n \"574.45,440.00 562.02,415.00 562.02,415.00\\n\"+\n \"562.02,415.00 558.45,406.00 558.45,406.00\\n\"+\n \"558.45,406.00 547.55,384.00 547.55,384.00\\n\"+\n \"547.55,384.00 544.45,376.00 544.45,376.00\\n\"+\n \"544.45,376.00 537.55,362.00 537.55,362.00\\n\"+\n \"537.55,362.00 534.45,354.00 534.45,354.00\\n\"+\n \"534.45,354.00 519.54,322.00 519.54,322.00\\n\"+\n \"519.54,322.00 513.96,306.00 513.96,306.00\\n\"+\n \"513.96,306.00 490.85,254.00 490.85,254.00\\n\"+\n \"487.38,245.70 482.11,237.17 482.00,228.00\\n\"+\n \"482.00,228.00 482.00,224.00 482.00,224.00\\n\"+\n \"482.15,213.62 490.05,209.14 496.26,213.13\\n\"+\n \"504.24,218.27 512.34,230.36 517.45,238.42\\n\"+\n \"517.45,238.42 565.14,314.91 565.14,314.91\\n\"+\n \"565.14,314.91 597.99,367.28 597.99,367.28\\n\"+\n \"597.99,367.28 627.99,417.28 627.99,417.28\\n\"+\n \"627.99,417.28 633.72,427.83 633.72,427.83\\n\"+\n \"633.72,427.83 642.04,442.99 642.04,442.99\\n\"+\n \"642.04,442.99 647.01,451.09 647.01,451.09\\n\"+\n \"647.01,451.09 662.50,482.00 662.50,482.00\\n\"+\n \"665.34,487.69 671.71,498.69 670.27,504.91\\n\"+\n \"668.95,510.57 661.64,511.99 657.23,514.72\\n\"+\n \"657.23,514.72 636.00,526.23 636.00,526.23\\n\"+\n \"636.00,526.23 629.08,529.26 629.08,529.26\\n\"+\n \"624.38,531.87 623.04,535.59 618.00,538.00\\n\"+\n \"619.10,535.68 621.58,532.97 621.75,530.91 Z\\n\"+\n \"M 436.60,334.30\\n\"+\n \"C 436.60,334.30 449.66,322.96 449.66,322.96\\n\"+\n \"449.66,322.96 454.84,315.00 454.84,315.00\\n\"+\n \"458.55,309.64 464.74,303.48 471.00,301.36\\n\"+\n \"483.14,297.26 496.23,303.73 504.96,312.09\\n\"+\n \"507.66,314.67 511.26,318.44 512.30,322.09\\n\"+\n \"513.68,326.94 513.16,338.17 511.62,343.00\\n\"+\n \"511.62,343.00 508.00,352.00 508.00,352.00\\n\"+\n \"497.67,351.97 498.41,349.50 489.97,344.58\\n\"+\n \"489.97,344.58 465.96,330.58 465.96,330.58\\n\"+\n \"463.47,329.14 453.27,323.10 450.91,325.36\\n\"+\n \"449.58,326.64 451.17,328.37 452.10,329.27\\n\"+\n \"454.46,331.55 459.05,334.01 462.00,335.50\\n\"+\n \"462.00,335.50 492.91,352.99 492.91,352.99\\n\"+\n \"496.07,354.74 503.04,358.49 503.71,362.18\\n\"+\n \"504.12,364.49 503.07,371.74 501.40,373.40\\n\"+\n \"500.07,374.73 498.69,374.72 497.00,375.00\\n\"+\n \"497.00,375.00 498.00,384.00 498.00,384.00\\n\"+\n \"489.25,387.43 489.12,391.54 488.00,400.00\\n\"+\n \"488.00,400.00 484.56,402.29 484.56,402.29\\n\"+\n \"484.56,402.29 476.00,415.76 476.00,415.76\\n\"+\n \"474.01,415.99 471.15,416.11 469.28,415.76\\n\"+\n \"469.28,415.76 450.91,405.14 450.91,405.14\\n\"+\n \"450.91,405.14 431.28,393.99 431.28,393.99\\n\"+\n \"428.52,392.33 417.78,384.60 414.91,387.36\\n\"+\n \"413.58,388.64 415.17,390.37 416.10,391.27\\n\"+\n \"418.75,393.84 423.68,396.31 426.99,398.00\\n\"+\n \"426.99,398.00 436.04,403.42 436.04,403.42\\n\"+\n \"436.04,403.42 459.09,416.86 459.09,416.86\\n\"+\n \"464.58,420.20 469.84,421.09 466.87,429.00\\n\"+\n \"464.69,434.81 460.98,439.65 458.04,445.01\\n\"+\n \"458.04,445.01 434.58,486.04 434.58,486.04\\n\"+\n \"434.58,486.04 412.58,524.04 412.58,524.04\\n\"+\n \"412.58,524.04 406.75,535.74 406.75,535.74\\n\"+\n \"406.75,535.74 403.11,540.22 403.11,540.22\\n\"+\n \"403.11,540.22 399.78,546.77 399.78,546.77\\n\"+\n \"399.78,546.77 390.27,562.01 390.27,562.01\\n\"+\n \"390.27,562.01 377.78,584.77 377.78,584.77\\n\"+\n \"377.78,584.77 355.78,622.77 355.78,622.77\\n\"+\n \"352.15,628.93 347.72,634.90 346.00,642.00\\n\"+\n \"346.00,642.00 342.00,642.00 342.00,642.00\\n\"+\n \"327.89,641.76 309.68,627.91 297.00,621.34\\n\"+\n \"292.74,619.14 282.33,612.37 282.23,607.00\\n\"+\n \"282.16,602.98 286.67,598.03 288.56,594.40\\n\"+\n \"288.56,594.40 293.73,585.99 293.73,585.99\\n\"+\n \"293.73,585.99 309.28,558.77 309.28,558.77\\n\"+\n \"309.28,558.77 322.22,535.23 322.22,535.23\\n\"+\n \"322.22,535.23 331.85,522.00 331.85,522.00\\n\"+\n \"331.85,522.00 360.15,472.00 360.15,472.00\\n\"+\n \"360.15,472.00 378.42,441.00 378.42,441.00\\n\"+\n \"378.42,441.00 399.85,404.00 399.85,404.00\\n\"+\n \"399.85,404.00 404.19,396.00 404.19,396.00\\n\"+\n \"404.19,396.00 412.07,386.00 412.07,386.00\\n\"+\n \"417.87,375.86 412.46,368.80 422.00,368.00\\n\"+\n \"419.91,356.08 424.78,360.59 428.99,351.99\\n\"+\n \"432.09,345.64 427.65,342.70 436.00,342.00\\n\"+\n \"436.00,340.05 435.83,335.96 436.60,334.30 Z\\n\"+\n \"M 497.00,467.00\\n\"+\n \"C 497.00,467.00 566.00,467.00 566.00,467.00\\n\"+\n \"566.00,467.00 577.46,468.74 577.46,468.74\\n\"+\n \"577.46,468.74 589.72,489.83 589.72,489.83\\n\"+\n \"589.72,489.83 600.58,509.96 600.58,509.96\\n\"+\n \"600.58,509.96 609.14,524.91 609.14,524.91\\n\"+\n \"609.14,524.91 615.84,535.28 615.84,535.28\\n\"+\n \"615.84,535.28 618.75,542.68 618.75,542.68\\n\"+\n \"618.75,542.68 633.00,569.00 633.00,569.00\\n\"+\n \"627.03,570.70 618.38,570.00 612.00,570.00\\n\"+\n \"612.00,570.00 575.00,570.00 575.00,570.00\\n\"+\n \"575.00,570.00 454.00,570.00 454.00,570.00\\n\"+\n \"454.00,570.00 413.00,570.00 413.00,570.00\\n\"+\n \"407.25,570.00 401.16,571.61 398.00,566.00\\n\"+\n \"398.00,566.00 408.22,549.23 408.22,549.23\\n\"+\n \"408.22,549.23 411.73,543.99 411.73,543.99\\n\"+\n \"411.73,543.99 415.53,536.16 415.53,536.16\\n\"+\n \"415.53,536.16 423.49,522.17 423.49,522.17\\n\"+\n \"423.49,522.17 445.49,484.17 445.49,484.17\\n\"+\n \"445.49,484.17 454.00,468.00 454.00,468.00\\n\"+\n \"454.00,468.00 497.00,467.00 497.00,467.00 Z\\n\"+\n \"M 702.17,542.80\\n\"+\n \"C 702.17,542.80 690.97,518.40 690.97,518.40\\n\"+\n \"690.97,518.40 685.92,508.73 685.92,508.73\\n\"+\n \"685.92,508.73 681.54,501.83 681.54,501.83\\n\"+\n \"681.54,501.83 678.58,494.04 678.58,494.04\\n\"+\n \"678.58,494.04 669.98,476.71 669.98,476.71\\n\"+\n \"668.90,474.57 667.26,470.96 669.00,468.74\\n\"+\n \"670.65,466.63 675.55,467.00 678.00,467.00\\n\"+\n \"678.00,467.00 771.00,467.00 771.00,467.00\\n\"+\n \"781.99,467.02 780.02,468.61 780.00,479.00\\n\"+\n \"780.00,479.00 780.00,540.00 780.00,540.00\\n\"+\n \"780.00,547.62 780.84,564.52 779.00,571.00\\n\"+\n \"779.00,571.00 755.00,570.00 755.00,570.00\\n\"+\n \"755.00,570.00 714.00,570.00 714.00,570.00\\n\"+\n \"712.50,563.82 705.24,548.95 702.17,542.80 Z\\n\"+\n \"M 244.00,544.00\\n\"+\n \"C 244.00,544.00 244.00,491.00 244.00,491.00\\n\"+\n \"244.00,491.00 244.00,475.00 244.00,475.00\\n\"+\n \"244.00,475.00 245.60,469.02 245.60,469.02\\n\"+\n \"245.60,469.02 253.00,468.00 253.00,468.00\\n\"+\n \"253.00,468.00 316.00,468.00 316.00,468.00\\n\"+\n \"316.00,468.00 348.00,469.00 348.00,469.00\\n\"+\n \"348.00,469.00 332.15,498.00 332.15,498.00\\n\"+\n \"332.15,498.00 320.46,519.00 320.46,519.00\\n\"+\n \"320.46,519.00 313.40,533.58 313.40,533.58\\n\"+\n \"313.40,533.58 305.83,546.80 305.83,546.80\\n\"+\n \"305.83,546.80 295.75,563.57 295.75,563.57\\n\"+\n \"295.75,563.57 291.45,569.18 291.45,569.18\\n\"+\n \"291.45,569.18 284.00,570.00 284.00,570.00\\n\"+\n \"284.00,570.00 245.00,571.00 245.00,571.00\\n\"+\n \"245.00,571.00 244.00,544.00 244.00,544.00 Z\\n\"+\n \"M 661.20,520.16\\n\"+\n \"C 665.01,518.10 669.48,513.82 674.00,513.69\\n\"+\n \"681.26,513.49 682.77,525.02 684.72,529.96\\n\"+\n \"685.98,533.16 687.84,534.10 689.23,536.51\\n\"+\n \"689.23,536.51 696.79,554.00 696.79,554.00\\n\"+\n \"702.32,565.71 706.00,565.74 706.00,580.00\\n\"+\n \"702.00,581.07 691.45,588.05 687.27,590.48\\n\"+\n \"677.93,595.93 672.90,598.00 662.00,598.00\\n\"+\n \"660.73,593.28 659.36,593.20 657.39,589.19\\n\"+\n \"657.39,589.19 654.74,583.08 654.74,583.08\\n\"+\n \"654.74,583.08 650.68,577.53 650.68,577.53\\n\"+\n \"650.68,577.53 640.75,561.49 640.75,561.49\\n\"+\n \"638.20,556.85 631.85,545.01 628.00,542.00\\n\"+\n \"628.00,542.00 628.00,536.00 628.00,536.00\\n\"+\n \"638.41,533.51 651.47,525.40 661.20,520.16 Z\\n\"+\n \"M 692.01,597.78\\n\"+\n \"C 692.01,597.78 700.77,593.28 700.77,593.28\\n\"+\n \"702.28,592.35 703.63,591.04 705.32,590.24\\n\"+\n \"707.11,589.89 710.07,590.01 712.00,590.24\\n\"+\n \"713.02,593.79 722.45,606.09 725.33,610.47\\n\"+\n \"725.33,610.47 749.32,646.47 749.32,646.47\\n\"+\n \"749.32,646.47 752.72,652.77 752.72,652.77\\n\"+\n \"752.72,652.77 761.84,667.20 761.84,667.20\\n\"+\n \"767.44,677.57 774.05,684.01 772.83,697.00\\n\"+\n \"772.00,705.79 771.20,707.97 765.00,714.14\\n\"+\n \"757.05,722.05 757.74,721.35 747.00,722.09\\n\"+\n \"743.86,722.30 742.31,722.92 739.00,722.68\\n\"+\n \"736.09,722.46 727.83,722.05 725.76,720.75\\n\"+\n \"718.69,716.32 714.23,704.93 710.57,697.60\\n\"+\n \"710.57,697.60 683.66,634.91 683.66,634.91\\n\"+\n \"680.50,626.27 674.27,614.84 674.00,606.00\\n\"+\n \"682.86,604.87 685.11,601.59 692.01,597.78 Z\\n\"+\n \"M 256.13,712.00\\n\"+\n \"C 256.13,712.00 264.84,685.00 264.84,685.00\\n\"+\n \"264.84,685.00 273.95,642.00 273.95,642.00\\n\"+\n \"273.95,642.00 277.26,627.00 277.26,627.00\\n\"+\n \"277.26,627.00 278.99,620.65 278.99,620.65\\n\"+\n \"278.99,620.65 284.00,618.00 284.00,618.00\\n\"+\n \"291.29,628.23 310.06,636.13 321.09,642.80\\n\"+\n \"327.01,646.39 330.75,645.36 334.00,652.00\\n\"+\n \"334.00,652.00 320.96,664.24 320.96,664.24\\n\"+\n \"320.96,664.24 315.04,668.38 315.04,668.38\\n\"+\n \"315.04,668.38 281.67,701.67 281.67,701.67\\n\"+\n \"281.67,701.67 263.48,719.19 263.48,719.19\\n\"+\n \"263.48,719.19 256.13,720.00 256.13,720.00\\n\"+\n \"256.13,720.00 256.13,712.00 256.13,712.00 Z\";\n}",
"public static void main(String[] args) {\n MyImageVector.Double img = new MyImageVector.Double(new Loader().loadSVGDocument(\"D:\\\\sample_images_PA\\\\trash_test_mem\\\\images_de_test_pr_figure_assistant\\\\test_scaling_SVG.svg\"));\n //MyImage2D img = new MyImage2D.Double(0, 0, \"D:\\\\sample_images_PA\\\\trash_test_mem\\\\mini\\\\focused_Series010.png\");\n img.addAssociatedObject(new MyRectangle2D.Double(10, 10, 128, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(200, 20, 256, 256));\n img.addAssociatedObject(new MyRectangle2D.Double(100, 10, 256, 128));\n MyPoint2D.Double text = new MyPoint2D.Double(220, 220);\n text.setText(new ColoredTextPaneSerializable(new StyledDoc2Html().reparse(\"<i>test<i>\"), \"\"));\n img.addAssociatedObject(text);\n CheckLineArts iopane = new CheckLineArts(img, 1.5f, true);\n if (!iopane.noError) {\n int result = JOptionPane.showOptionDialog(null, new Object[]{iopane}, \"Check stroke width of line arts\", JOptionPane.CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE, null, new String[]{\"Accept automated solution\", \"Ignore\"}, null);\n if (result == JOptionPane.OK_OPTION) {\n //--> replace objects with copy\n Object strokeData = iopane.getModifiedStrokeData();\n if (strokeData instanceof ArrayList) {\n img.setAssociatedObjects(((ArrayList<Object>) strokeData));\n// for (Object string : img.getAssociatedObjects()) {\n// if (string instanceof PARoi) {\n// System.out.println(((PARoi) string).getStrokeSize());\n// }\n// }\n } else if (strokeData instanceof String) {\n ((MyImageVector) img).setSvg_content_serializable((String) strokeData);\n ((MyImageVector) img).reloadDocFromString();\n }\n }\n }\n System.exit(0);\n }",
"int wkhtmltoimage_init(int use_graphics);",
"public static SVGImage createImage(InputStream is) throws IOException {\n ScalableImage scalableImage = ScalableImage.createImage(is, null);\n return new SVGImage(scalableImage);\n }",
"void exports(String text,String name){\n BufferedImage img = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2d = img.createGraphics();\n Font font = new Font(\"Arial\", Font.PLAIN, 48);\n g2d.setFont(font);\n FontMetrics fm = g2d.getFontMetrics();\n int width = fm.stringWidth(text);\n int height = fm.getHeight();\n g2d.dispose();\n\n img = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\n g2d = img.createGraphics();\n g2d.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n g2d.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);\n g2d.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n g2d.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n g2d.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n g2d.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n g2d.setFont(font);\n fm = g2d.getFontMetrics();\n g2d.setColor(Color.BLACK);\n g2d.drawString(text, 0, fm.getAscent());\n g2d.dispose();\n try {\n ImageIO.write(img, \"png\", new File(name+\".png\"));\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n }",
"public String getAsSVGPath() {\n\n\t\tString d=\"M \"+topleft.x +\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+topleft.y+\" \"\n\t\t\t\t+\"L \"+bottomright.x+\",\"+bottomright.y+\" \"\n\t\t\t\t+\"L \"+topleft.x +\",\"+bottomright.y+\" z\";\n\n\n\t\treturn d;\n\t}",
"@Override\n public void convert(final List<OutputPayload> outputPayloadList) throws Exception {\n\n for (final OutputPayload payload : outputPayloadList) {\n System.out.println(strings.getString(\"status_exporting_file\", payload.getTargetFile()));\n\n final String svgPath = payload.getSvgPath();\n final String svgURI = new File(svgPath).toURL().toString();\n final TranscoderInput input = new TranscoderInput(svgURI);\n\n // Create a JPEG transcoder\n final PNGTranscoder t = new PNGTranscoder();\n\n final float floatWidth = Float.valueOf(payload.getWidth());\n final float floatHeight = Float.valueOf(payload.getHeight());\n\n t.addTranscodingHint(PNGTranscoder.KEY_WIDTH, floatWidth);\n t.addTranscodingHint(PNGTranscoder.KEY_HEIGHT, floatHeight);\n\n // Create the transcoder output.\n final OutputStream ostream = new FileOutputStream(payload.getTargetFile());\n final TranscoderOutput output = new TranscoderOutput(ostream);\n // Save the image.\n t.transcode(input, output);\n\n // Flush and close the stream.\n ostream.flush();\n ostream.close();\n }\n }",
"private void processSvg(final InputStream data) throws IOException {\n final File tmpFile = writeToTmpFile(data);\n log.debug(\"Stored uploaded image in temporary file {}\", tmpFile);\n\n // by default, store SVG data as-is for all variants: the browser will do the real scaling\n scaledData = new AutoDeletingTmpFileInputStream(tmpFile);\n\n // by default, use the bounding box as scaled width and height\n scaledWidth = width;\n scaledHeight = height;\n\n if (!isOriginalVariant()) {\n try {\n scaleSvg(tmpFile);\n } catch (ParserConfigurationException | SAXException e) {\n log.info(\"Could not read dimensions of SVG image, using the bounding box dimensions instead\", e);\n }\n }\n }",
"protected void assertSVG(String name) throws Exception {\n svgImage = getSVGImageForName(name);\n assertNotNull(svgImage);\n // Load the equivalent PNG file that we'll compare against\n int pathSeparatorIndex = name.lastIndexOf(\"/\");\n if (pathSeparatorIndex > -1) {\n name = name.substring(pathSeparatorIndex + 1);\n }\n pngImage = BitmapFactory.decodeStream(getContext().getAssets().open(\n SVG_RENDERED_PATH + name + \".png\"));\n assertNotNull(pngImage);\n\n // compare\n assertImages(name, svgImage, pngImage);\n }",
"public static void main(String[] args) throws Exception {\n\t\tString fileBase = \"GasWaterElectricity3\";\r\n\t\t//String fileBase = \"000cwHDLdata\";\r\n\t\tBufferedReader b = new BufferedReader(\r\n\t\t\t\tnew FileReader(fileBase+\".txt\"));\r\n\t\tPrintStream fo = new PrintStream(fileBase+\".svg\");\r\n\t\tStringBuffer chips = new StringBuffer();\r\n\t\tStringBuffer joins = new StringBuffer();\r\n\t\tint joinCount = 1;\r\n\t\tStringBuffer paths = new StringBuffer();\r\n\t\tString ln ;\r\n\t\twhile ((ln = b.readLine()) != null){\r\n\t\t\tString [] wrds = ln.split(\"\\\\s+\");\r\n\t\t\tif (wrds.length==0) continue; // A blank line\r\n\t\t\tint x0,y0,x1,y1;\r\n\t\t\tdouble t = 0.1;\r\n\t\t\tswitch (wrds[0])\r\n\t\t\t{\r\n\t\t\tcase \"D\":\r\n\t\t\t\tgridW = Integer.parseInt(wrds[1]);\r\n\t\t\t\tgridH = Integer.parseInt(wrds[2]);\r\n\t\t\t\tbreak;\t\t\t\t\r\n\t\t\tcase \"C\":\r\n\t\t\t\tx0 = Integer.parseInt(wrds[1]);\r\n\t\t\t\ty0 = Integer.parseInt(wrds[2]);\r\n\t\t\t\tx1 = Integer.parseInt(wrds[3]);\r\n\t\t\t\ty1 = Integer.parseInt(wrds[4]);\r\n\t\t\t\tchips.append(String.format(\"<rect x='%f' y='%f' width='%f' height='%f' rx='.2' ry='.2' fill='pink' stroke='black' stroke-width='.2'/>\\n\",\r\n\t\t\t\t\t\tx0+t,y0+t,x1+1-x0-2*t,y1+1-y0-2*t));\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"J\":\r\n\t\t\t\tx0 = Integer.parseInt(wrds[1]);\r\n\t\t\t\ty0 = Integer.parseInt(wrds[2]);\r\n\t\t\t\tx1 = Integer.parseInt(wrds[3]);\r\n\t\t\t\ty1 = Integer.parseInt(wrds[4]);\r\n\t\t\t\tdouble f = 0.04;\r\n\t\t\t\tjoins.append(String.format(\"<circle cx='%f' cy='%f' r='.4' fill='white' stroke='blue' stroke-width='.1'/>\\n\",\r\n\t\t\t\t\t\tx0+.5,y0+.5));\r\n\t\t\t\tjoins.append(String.format(\"<circle cx='%f' cy='%f' r='.4' fill='white' stroke='blue' stroke-width='.1'/>\\n\",\r\n\t\t\t\t\t\tx1+.5,y1+.5));\r\n\t\t\t\tjoins.append(String.format(\"<g transform='translate(%f,%f) scale(%f,%f)'><text text-anchor='middle'>%d</text></g>\\n\",\r\n\t\t\t\t\t\tx0+.5,y0+0.7f,f,f,joinCount));\r\n\t\t\t\tjoins.append(String.format(\"<g transform='translate(%f,%f) scale(%f,%f)'><text text-anchor='middle'>%d</text></g>\\n\",\r\n\t\t\t\t\t\tx1+.5,y1+0.7f,f,f,joinCount++));\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"#\"://A comment, ignore\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"T\":\r\n\t\t\t\tx0 = Integer.parseInt(wrds[1]);\r\n\t\t\t\ty0 = Integer.parseInt(wrds[2]);\r\n\t\t\t\tStringBuffer p = new StringBuffer();\r\n\t\t\t\tp.append(\"M\"+(x0+.5)+\" \"+(y0+.5)+\" l\");\r\n\t\t\t\tfor(int i=3;i<wrds.length;i++)\r\n\t\t\t\t\tfor(int j=0;j<wrds[i].length();j++){\r\n\t\t\t\t\t\tswitch (wrds[i].charAt(j))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\tcase 'N':\r\n\t\t\t\t\t\t\tp.append(\" 0 -1\");\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'E':\r\n\t\t\t\t\t\t\tp.append(\" l 1 0\");\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'S':\r\n\t\t\t\t\t\t\tp.append(\" 0 1\");\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 'W':\r\n\t\t\t\t\t\t\tp.append(\" -1 0\");\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\tpaths.append(String.format(\"<path stroke='gray' stroke-width='.2' fill='none' d='%s'/>\\n\",p));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tb.close();\r\n\t\tfo.printf(\"<svg width='10cm' height='10cm' viewBox='0 0 %d %d' xmlns='http://www.w3.org/2000/svg' version='1.1'>\\n\",\r\n\t\t\t\tgridW,gridH);\r\n\t\tString s=\"\";\r\n\t\tfor(int i=0;i<gridW;i++)\r\n\t\t\ts += String.format(\"M %d 0 l 0 %d \",i,gridH);\r\n\t\tfo.printf(\"<path stroke='blue' stroke-width='.02' fill='none' d='%s'/>\", s);\r\n\t\ts=\"\";\r\n\t\tfor(int i=0;i<gridH;i++)\r\n\t\t\ts += String.format(\"M 0 %d l %d 0 \",i,gridW);\r\n\t\tfo.printf(\"<path stroke='blue' stroke-width='.02' fill='none' d='%s'/>\", s);\r\n\t\tfo.print(chips);\r\n\t\tfo.print(paths);\r\n\t\tfo.print(joins);\r\n\t\tfo.print(\"</svg>\");\r\n\t\tfo.close();\r\n\t}",
"private void generarPNG(String nombre, String entrada) {\n try {\n String ruta = this.pathGuardado + \"/\" + nombre + \".dot\";\n File file = new File(ruta);\n // Si el archivo no existe es creado\n if (!file.exists()) {\n file.createNewFile();\n }\n FileWriter fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(entrada);\n bw.close();\n// //Generar Imagen creada por .dot\n ControlTerminal controlTer = new ControlTerminal(ruta, this.pathGuardado + \"/\" + nombre + \".png\");\n controlTer.generarImagen();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static String convertImageInStdout(String mscgen_path, String codePath){\n\t\t\n\t\tProcessBuilder pb = new ProcessBuilder(); \n\t\tif (mscgen_path == \"MSCGEN PATH EMPTY\") {\n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler path not set.\";\n\t\t}\n\t\t\n\t\telse if (mscgen_path == \"MSCGEN EXE NOT FOUND\") {\n\t\t\t \n\t\t\treturn \"0\"+\",ERROR:\" +\"MSCGen compiler not found.\";\n\t\t}\n String OS = System.getProperty(\"os.name\");\n if(OS.startsWith(\"Windows\")){\n codePath = codePath.replace(\"\\\\\",\"\\\\\\\\\");\n /* \n * Ref: PLUG-5262\n * In case of windows environment if we have space in-between the compiler path \n * then we need to set parent directory as the directory of ProcessBuilder. \n */\n File f = new File(mscgen_path);\n pb.directory(f.getParentFile());\n pb.command(\"cmd.exe\", \"/c\",f.getName(),\"-T\",\"png\",\"-i\",codePath);\n }else{\n pb.command(mscgen_path,\"-T\",\"png\",\"-i\",codePath); \n }\n Process p = null;\n\t\ttry {\n\t\t\tp = pb.start();\n\t\t\tp.waitFor();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tString error=checkError(p);\n\t\tif(error!=\"\"){\n\t\t\treturn getErrorLine(error)+\",ERROR:\"+error;\n\t\t}\n\t\tBufferedImage image=null;\t\n\t\ttry {\n File f = new File(codePath+\".png\");\n\t\t\timage=ImageIO.read(f);\n \n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in read\");\n\t\t} \n String imageString = null;\n ByteArrayOutputStream imageInBytes = new ByteArrayOutputStream();\n\t try {\n\t\t\tImageIO.write(image, \"png\", imageInBytes);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in write\");\n\t\t}\n\t byte[] imageBytes = imageInBytes.toByteArray();\n\t imageString = DatatypeConverter.printBase64Binary(imageBytes);\n\t try {\n\t\t\timageInBytes.close();\n\t\t\tp.getInputStream().close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IO exception in close\");\n }\n\t\treturn imageString;\n\t}",
"public static SVGPath getIconSVG(String path) {\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n SVGPath svgPath = new SVGPath();\n path = ClassLoader.getSystemResource(\"icon/\" + path).toExternalForm();\n try {\n DocumentBuilder builder = factory.newDocumentBuilder();\n org.w3c.dom.Document document = builder.parse(path);\n XPathExpression expression = XPathFactory.newInstance().newXPath().compile(\"//path/@d\");\n String svgPathString = (String) expression.evaluate(document, XPathConstants.STRING);\n svgPath.setContent(svgPathString);\n } catch (ParserConfigurationException | SAXException | IOException | XPathExpressionException e) {\n e.printStackTrace();\n }\n return svgPath;\n }",
"private void initScene() {\n myStringBuilder.append(\"<svg width=\\\"\" + width + \"\\\" height=\\\"\" + height +\n \"\\\" version=\\\"1.1\\\"\\n\" + \" xmlns=\\\"http://www.w3.org/2000/svg\\\">\");\n }",
"private StreamResource getSVGStreamResource(String name, JFreeChart chart, int width, int height) {\n String randomName = UUID.randomUUID().toString() + \".svg\";\n return new StreamResource((name == null ? randomName : name + \".svg\"), (StreamResourceWriter) (stream, session) -> {\n session.lock();\n try (Writer writer = new OutputStreamWriter(stream)) {\n DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder;\n try {\n docBuilder = docBuilderFactory.newDocumentBuilder();\n } catch (ParserConfigurationException e1) {\n throw new RuntimeException(e1);\n }\n Document document = docBuilder.newDocument();\n Element svgelem = document.createElement(\"svg\");\n document.appendChild(svgelem);\n // Create an instance of the SVG Generator\n SVGGraphics2D svgGenerator = new SVGGraphics2D(document);\n\n // draw the chart in the SVG generator\n chart.draw(svgGenerator, new Rectangle(width, height));\n Element el = svgGenerator.getRoot();\n el.setAttributeNS(null, \"viewBox\", \"0 0 \" + width + \" \" + height + \"\");\n el.setAttributeNS(null, \"style\", \"width:100%;height:100%;\");\n el.setAttributeNS(null, \"preserveAspectRatio\", SVG_ASPECT_RATIO);\n svgGenerator.stream(el, writer, true, false);\n } finally {\n session.unlock();\n }\n });\n }",
"@Override\n public void saveSvgPopup(LinkedHashMap<String, IVisitableActor> actorCopies) {\n JTextField outputFile = new JTextField();\n JTextField tps = new JTextField();\n JCheckBox loopBack = new JCheckBox(\"Loopback?\");\n Object[] components = {\"Output file name:\", outputFile, \"Ticks-per-second:\", tps, loopBack};\n\n int option =\n JOptionPane.showConfirmDialog(this.swingView, components, \"Save animation to SVG\",\n JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n\n String file = outputFile.getText();\n String ticks = tps.getText();\n\n int tpsInt;\n try {\n tpsInt = Integer.parseInt(ticks);\n } catch (NumberFormatException e) {\n tpsInt = -1;\n }\n\n if (option == JOptionPane.CANCEL_OPTION || option == JOptionPane.CLOSED_OPTION) {\n return;\n }\n\n // Get rid of invalid file names, namely ones containing ?:/\\\"*<>|\n while (file.matches(\".*([:|<>?*\\\"/\\\\\\\\]).*\") || tpsInt <= 0) {\n // Display the text \"invalid file name\"\n ArrayList<Object> newComps = new ArrayList<>(Arrays.asList(components));\n newComps.add(\"Error: Invalid file name or ticks per second\");\n\n //Do it again\n option = JOptionPane.showConfirmDialog(\n this.swingView,\n newComps.toArray(),\n \"Save animation to SVG\",\n JOptionPane.OK_CANCEL_OPTION,\n JOptionPane.PLAIN_MESSAGE);\n\n if (option == JOptionPane.CANCEL_OPTION || option == JOptionPane.CLOSED_OPTION) {\n return;\n }\n file = outputFile.getText();\n ticks = tps.getText();\n\n try {\n tpsInt = Integer.parseInt(ticks);\n } catch (NumberFormatException e) {\n tpsInt = -1;\n }\n\n }\n //using the user input to write to the SVG file that the user wants the output to be printed to.\n FileWriter fileWriter = null;\n if (option == JOptionPane.OK_OPTION) {\n try {\n fileWriter = new FileWriter(outputFile.getText());\n this.writeSVG(fileWriter, Integer.parseInt(tps.getText()), loopBack.isSelected(),\n actorCopies);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //closing the file writer if there was a valid output file name provided.\n if (fileWriter != null) {\n try {\n fileWriter.close();\n } catch (IOException e) {\n System.exit(-1);\n }\n }\n }",
"@Override\r\n public Thumbnail generateThumbnail(@Nullable ViewContext context)\r\n {\n try\r\n {\r\n _svg = VisualizationController.filterSVGSource(_svg);\r\n return ThumbnailUtil.getThumbnailFromSvg(_svg);\r\n }\r\n catch (NotFoundException e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n }",
"private BufferedImage createPlotImage() {\r\n final BufferedImage img = new BufferedImage(getWidth(), getHeight(), \r\n Transparency.BITMASK);\r\n final Graphics g = img.getGraphics();\r\n ((Graphics2D) g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, \r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n \r\n g.setColor(GUIConstants.color6);\r\n for(int i = 0; i < scatterData.size; i++) {\r\n drawItem(g, scatterData.xAxis.co[i], \r\n scatterData.yAxis.co[i], false, false);\r\n }\r\n return img;\r\n }",
"@Override\n\tpublic String toString() {\n\t\tif (tr2.intersects(varBnd.getStart()) && tr1.intersects(varBnd.getEndPoint().getStart())) {\n\t\t\t// Swap transcripts\n\t\t\tTranscript trTmp = tr2;\n\t\t\ttr2 = tr1;\n\t\t\ttr1 = trTmp;\n\t\t}\n\n\t\t// Transcript 1, scale and NextProt domains\n\t\tSvg svgScale1 = new SvgScale(tr1, null);\n\t\tSvg svgTr1 = Svg.factory(tr1, svgScale1);\n\t\tSvg svgNextProt1 = nextProt(tr1, svgTr1);\n\n\t\tSvg svgSpacer = new SvgSpacer(tr1, svgNextProt1);\n\n\t\t// Transcript 2, scale and NextProt domains\n\t\tSvg svgScale2 = new SvgScale(tr2, svgSpacer);\n\t\tsvgScale2.setScaleX();\n\t\tSvg svgTr2 = Svg.factory(tr2, svgScale2);\n\t\tSvg svgNextProt2 = nextProt(tr2, svgTr2);\n\n\t\t// Translocation\n\t\tSvg svgBnd;\n\t\tsvgBnd = new SvgBnd(varBnd, svgTr1, svgTr2);\n\n\t\tString svgStr = svgTr1.open() //\n\t\t\t\t+ svgTr1 + svgScale1 //\n\t\t\t\t+ svgNextProt1 //\n\t\t\t\t+ svgTr2 + svgScale2 //\n\t\t\t\t+ svgNextProt2 //\n\t\t\t\t+ svgBnd //\n\t\t\t\t+ svgTr1.close();\n\n\t\treturn svgStr;\n\t}",
"public static void graphTree(CommonTree tree){\n\t\tDOTTreeGenerator gen = new DOTTreeGenerator(); \n\t\tStringTemplate st = gen.toDOT(tree); \n\n\t\tString type = \"jpg\";\n\t\tGraphViz gv = new GraphViz();\n\t\tgv.addln(st.toString());\n\n\t\tSystem.out.println(\"Before\");\n\n\t\tImageIcon img = new ImageIcon(gv.getGraph(gv.getDotSource(), type));\n\n\t\tSystem.out.println(\"After\");\n\n\t\tint newHeight = 775, newWidth = 1255; \n\t\t/* This is for writing the image to disk*/\n\t\tFile out = new File(\"graph.\" + type); // Linux\n\t\tgv.writeGraphToFile( gv.getGraph( gv.getDotSource(), type ), out );\n\t\t//\t\tif (iw > newWidth){\n\t\t//\t\t\tnewHeight = newWidth * ih/iw ;\n\t\t//\t\t\tBufferedImage resizedImg = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_RGB);\n\t\t//\t\t\tGraphics2D g2 = resizedImg.createGraphics();\n\t\t//\t\t\t\n\t\t//\t\t\tg2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\t\t//\t\t\tg2.drawImage(img.getImage(), 0, 0, newWidth, newHeight, null);\n\t\t//\t\t\tg2.dispose();\n\t\t//\t\t\timg = new ImageIcon(resizedImg);\n\t\t//\t\t}\n\n\t\tJFrame jf = new JFrame(\"Abstract Syntax Tree\");\n\t\tjf.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n\t\tJLabel photographLabel = new JLabel();\n\t\tphotographLabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t//private Image getScaledImage(Image srcImg, int w, int h){\n\n\n\t\tphotographLabel.setIcon(img);\n\t\tJScrollPane scrollPane = new JScrollPane(photographLabel);\n\t\tjf.add(scrollPane, BorderLayout.CENTER);\n\t\tjf.pack();\n\t\tjf.setSize(newWidth+50, newHeight+50);\n\t\tjf.setResizable(true);\n\t\tjf.setVisible(true);\n\t\t/*end graphical display*/\n\t}",
"@Override\n public String exportImage() throws IllegalArgumentException {\n BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n int r = this.pixels[x][y][0];\n int g = this.pixels[x][y][1];\n int b = this.pixels[x][y][2];\n int color = (r << 16) | (g << 8) | b;\n img.setRGB(x, y, color);\n }\n }\n return exportHelp(img);\n }",
"public void saveCanvasToPng(String path) throws IOException {\n int WIDTH = 500;\n int HEIGHT = 500;\n\n BufferedImage image = new BufferedImage(WIDTH,HEIGHT, BufferedImage.TYPE_INT_RGB);\n Graphics g = image.getGraphics();\n paintComponent(g, WIDTH, HEIGHT);\n ImageIO.write(image,\"png\",new File(path));\n }",
"@Test\n public void SVGViewTest2() throws FileNotFoundException {\n EasyAnimator.main(new String[]{\"-in toh-3.txt -view svg -out svgTextOutput.txt -speed 20\"});\n\n BufferedReader bufferedReader;\n try {\n bufferedReader = new BufferedReader(new FileReader(\"svgTextOutput.txt\"));\n StringBuilder stringBuilder = new StringBuilder();\n String line = bufferedReader.readLine();\n\n while (line != null) {\n stringBuilder.append(line);\n stringBuilder.append(\"\\n\");\n line = bufferedReader.readLine();\n }\n assertEquals(\"<svg width=\\\"410\\\" height=\\\"220\\\" viewBox=\\\"145 50 555 270\\\" \"\n + \"version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"<rect id=\\\"disk1\\\" x=\\\"190\\\" y=\\\"180\\\" width=\\\"20\\\" height=\\\"30\\\" \"\n + \"fill=\\\"rgb(0,49,90)\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"180.0\\\" to=\\\"180.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"1200.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"1200.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"180.0\\\" to=\\\"180.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1250.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1250.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"180.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1750.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1750.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1800.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1800.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2300.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2300.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2350.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2350.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2850.0ms\\\" dur=\\\"1600.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2850.0ms\\\" dur=\\\"1600.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"4450.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"4450.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"4950.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"4950.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"5000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"5000.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"5500.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"5500.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"5550.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"5550.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"6050.0ms\\\" dur=\\\"1600.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"6050.0ms\\\" dur=\\\"1600.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"7650.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"7650.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8150.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8150.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8200.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8200.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8700.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8700.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8750.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8750.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"9250.0ms\\\" dur=\\\"1600.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"9250.0ms\\\" dur=\\\"1600.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"10850.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"10850.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11350.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11350.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11400.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11400.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11900.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11900.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11950.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11950.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"180.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"CSS\\\" begin=\\\"12450.0ms\\\" dur=\\\"400.0ms\\\" \"\n + \"attributeName=\\\"fill\\\" from=\\\"rgb(0,49,90)\\\" to=\\\"rgb(0,255,0)\\\" fill=\\\"freeze\\\" \"\n + \"/>\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"12850.0ms\\\" dur=\\\"2250.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"12850.0ms\\\" dur=\\\"2250.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"180.0\\\" to=\\\"180.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"<rect id=\\\"disk2\\\" x=\\\"167\\\" y=\\\"210\\\" width=\\\"65\\\" height=\\\"30\\\" \"\n + \"fill=\\\"rgb(6,247,41)\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"167.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"2800.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"167.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"2800.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2850.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"167.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"2850.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"3350.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"167.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"3350.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"3400.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"3400.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"3900.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"3900.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"3950.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"3950.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"4450.0ms\\\" dur=\\\"4800.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"4450.0ms\\\" dur=\\\"4800.0ms\\\"\"\n + \" attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"9250.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"9250.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"9750.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"9750.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"9800.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"467.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"9800.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"10300.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"467.0\\\" to=\\\"467.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"10300.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"10350.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"467.0\\\" to=\\\"467.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"10350.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"CSS\\\" begin=\\\"10850.0ms\\\" dur=\\\"400.0ms\\\" \"\n + \"attributeName=\\\"fill\\\" from=\\\"rgb(6,247,41)\\\" to=\\\"rgb(0,255,0)\\\" fill=\\\"freeze\\\" \"\n + \"/>\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11250.0ms\\\" dur=\\\"3850.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"467.0\\\" to=\\\"467.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"11250.0ms\\\" dur=\\\"3850.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"<rect id=\\\"disk3\\\" x=\\\"145\\\" y=\\\"240\\\" width=\\\"110\\\" height=\\\"30\\\" \"\n + \"fill=\\\"rgb(11,45,175)\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"145.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"6000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"145.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"50.0ms\\\" dur=\\\"6000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"6050.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"145.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"6050.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"6550.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"145.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"6550.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"6600.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"445.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"6600.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"7100.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"445.0\\\" to=\\\"445.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"7100.0ms\\\" dur=\\\"50.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"7150.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"445.0\\\" to=\\\"445.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"7150.0ms\\\" dur=\\\"500.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"CSS\\\" begin=\\\"7650.0ms\\\" dur=\\\"400.0000000000009ms\\\" \"\n + \"attributeName=\\\"fill\\\" from=\\\"rgb(11,45,175)\\\" to=\\\"rgb(0,255,0)\\\" fill=\\\"freeze\\\"\"\n + \" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8050.000000000001ms\\\" dur=\\\"\"\n + \"7049.999999999999ms\\\" attributeName=\\\"x\\\" from=\\\"445.0\\\" to=\\\"445.0\\\" fill=\\\"\"\n + \"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"8050.000000000001ms\\\" dur=\\\"\"\n + \"7049.999999999999ms\\\" attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"\"\n + \"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"</svg>\\n\", stringBuilder.toString());\n bufferedReader.close();\n } catch (Exception e) {\n // do nothing\n }\n }",
"public void encodeImage(BufferedImage buf, File imageFile) throws SVGGraphics2DIOException {\n/* */ try {\n/* 80 */ OutputStream os = new FileOutputStream(imageFile);\n/* */ try {\n/* 82 */ ImageWriter writer = ImageWriterRegistry.getInstance().getWriterFor(\"image/jpeg\");\n/* */ \n/* 84 */ ImageWriterParams params = new ImageWriterParams();\n/* 85 */ params.setJPEGQuality(1.0F, false);\n/* 86 */ writer.writeImage(buf, os, params);\n/* */ } finally {\n/* */ \n/* 89 */ os.close();\n/* */ } \n/* 91 */ } catch (IOException e) {\n/* 92 */ throw new SVGGraphics2DIOException(\"could not write image File \" + imageFile.getName());\n/* */ } \n/* */ }",
"public static SVGPath GetSVGPath(String uri){\n SVGPath ico = new SVGPath();\n String path = \"\";\n String fill;\n\n Path filePath = Paths.get(uri);\n InputStream is = SVGExtractor.class.getResourceAsStream(uri);\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\n\n String line;\n\n boolean started = false;\n\n try{\n while ((line = reader.readLine()) != null){\n if (started){\n path += line;\n if (line.contains(\"/>\")){\n started = false;\n }\n } else{\n if (line.contains(\"<path\")){\n started = true;\n path += line;\n }\n }\n }\n fill = path.substring(path.indexOf(\"fill=\\\"\") + 6, path.indexOf(\"\\\" d=\\\"\"));\n path = path.substring(path.indexOf(\" d=\\\"\") + 4, path.indexOf(\"\\\"/>\"));\n path = path.replaceAll(\"\\t\", \"\");\n ico.setContent(path);\n ico.setFill(Paint.valueOf(fill));\n } catch (IOException e){\n e.printStackTrace();\n NotificationManager.pop(\"Fichier Manquant\", \"Le fichier \" + filePath + \" est introuvable.\", \"error\");\n System.out.println(\"Erreur IO\");\n }\n return ico;\n }",
"public void write(String path) throws Exception {\n\t\tint canvasSize = size + 10; // size + 5 px stroke x2\n\t\t\n\t\tSVGGraphics2D generator = getGenerator();\n\t\tDimension svgCanvasSize = new Dimension(canvasSize, canvasSize);\n\t\tgenerator.setSVGCanvasSize(svgCanvasSize);\n\t\t\n\t\tdrawChromosome(generator);\n\t\tdrawArcs(generator);\n\t\tdrawCenter(generator);\n\t\t\n\t\twriteToFile(generator, path);\n\t\t\n\t\tlink = File.separator + \"prism\" + File.separator + path.split(\"prism\" + File.separator)[1]; \n\t}",
"@Override\n\tpublic void petrinet2SVG(PetrinetNode startNode) {\n\t\tthis.BFSTOSVG(startNode);\n\t}",
"public void svgDraw(PrintStream svgWriter, String colour) {\n if (colour == null) {\n if (this.maxSpeed >= 100) colour = \"darkorange\";\n else if (this.maxSpeed >= 80) colour = \"gold\";\n else colour = \"lightskyblue\";\n }\n // width of the road is dirived on the basis of max speed\n double width = 0.2 + this.maxSpeed * 0.008;\n\n // accounts for the reversed y-direction of the svg coordinate system relative to RD-coordinates\n svgWriter.printf(Locale.ENGLISH, \"<line x1='%.3f' y1='%.3f' x2='%.3f' y2='%.3f' stroke-width='%.3f' stroke='%s'/>\\n\",\n this.getFrom().getLocationX(), -this.getFrom().getLocationY(),\n this.getTo().getLocationX(), -this.getTo().getLocationY(),\n width, colour);\n }",
"private void writeToFile(SVGGraphics2D generator, String path) throws IOException {\n\t\tFile file = new File(path);\n\t\tif (!file.exists())\n\t\t\tfile.createNewFile();\n\t\tFileWriter fw = new FileWriter(file);\n\t\tPrintWriter writer = new PrintWriter(fw);\n\t\tgenerator.stream(writer);\n\t\twriter.close();\n\t}",
"private String textualize() {\n StringBuilder text = new StringBuilder();\n\n text.append(\n \"<svg width=\\\"\" + (model.getRightMostX() + 200) + \"\\\" height=\\\"\" + (model.getDownMostY()\n + 200)\n + \"\\\" version=\\\"1.1\\\"\\n\"\n + \" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\\n\");\n\n ArrayList<IMotion> modelMotions = model.getMotionList();\n\n ArrayList<String> shapeNames = new ArrayList<String>();\n\n for (IMotion motion : modelMotions) {\n String currInitShapeName = motion.getStartingShapeName();\n\n if (!(shapeNames.contains(currInitShapeName))) {\n shapeNames.add(currInitShapeName);\n }\n }\n\n ArrayList<IShape> initShapes = new ArrayList<IShape>();\n for (String shapeName : shapeNames) {\n IShape shape = model.getInitShape(shapeName);\n if (!(initShapes.contains(shape))) {\n initShapes.add(shape);\n }\n }\n\n int counter = 0;\n\n for (IShape shape : initShapes) {\n text.append(shape.getShapeSVGText() + \"\\n\");\n\n for (IMotion motion : modelMotions) {\n if (motion.containsShape(shape)) {\n if (motion.hasSVGMotion(motion.getStartShape(), motion.getEndShape())) {\n if (counter == 0) {\n text.append(motion.makeMotionHidden(this.ticksPerSec));\n text.append(motion.getMotionSVGText(this.ticksPerSec) + \"\\n\");\n counter++;\n } else {\n text.append(motion.getMotionSVGText(this.ticksPerSec) + \"\\n\");\n }\n } else {\n if (counter == 0) {\n text.append(motion.makeMotionHiddenNoSVG(this.ticksPerSec));\n text.append(motion.getMotionSVGText(this.ticksPerSec) + \"\\n\");\n counter++;\n }\n }\n }\n }\n\n text.append(shape.getShapeClosingSVG() + \"\\n\\n\");\n counter = 0;\n }\n\n text.append(\"</svg>\");\n\n return text.toString();\n }",
"public View getGraphic()\n{\n // Get image for file\n //Image img = _type==FileType.PACKAGE_DIR? Package : ViewUtils.getFileIconImage(_file);\n Image img = ViewUtils.getFileIconImage(_file);\n View grf = new ImageView(img); grf.setPrefSize(18,18);\n \n // If error/warning add Error/Warning badge as composite icon\n /*BuildIssue.Kind status = _proj!=null? _proj.getRootProject().getBuildIssues().getBuildStatus(_file) : null;\n if(status!=null) {\n Image badge = status==BuildIssue.Kind.Error? ErrorBadge : WarningBadge;\n ImageView bview = new ImageView(badge); bview.setLean(Pos.BOTTOM_LEFT);\n StackView spane = new StackView(); spane.setChildren(grf, bview); grf = spane;\n }*/\n \n // Return node\n return grf;\n}",
"public static void main(String[] args) throws IOException {\n\t\t// create a dataset...\n\t\tDefaultPieDataset data = new DefaultPieDataset();\n\t\tdata.setValue(\"Category 1\", new Double(43.2));\n\t\tdata.setValue(\"Category 2\", new Double(27.9));\n\t\tdata.setValue(\"Category 3\", new Double(79.5));\n\t\t// create a chart\n\t\tJFreeChart chart = ChartFactory.createPieChart(\"Sample Pie Chart\",\n\t\t\t\tdata, true, false, false);\n\t\t// THE FOLLOWING CODE BASED ON THE EXAMPLE IN THE BATIK DOCUMENTATION...\n\t\t// Get a DOMImplementation\n\t\tDOMImplementation domImpl = GenericDOMImplementation\n\t\t\t\t.getDOMImplementation();\n\t\t// Create an instance of org.w3c.dom.Document\n\t\tDocument document = domImpl.createDocument(null, \"svg\", null);\n\t\t// Create an instance of the SVG Generator\n\t\tSVGGraphics2D svgGenerator = new SVGGraphics2D(document);\n\t\t// set the precision to avoid a null pointer exception in Batik 1.5\n\t\tsvgGenerator.getGeneratorContext().setPrecision(6);\n\t\t// Ask the chart to render into the SVG Graphics2D implementation\n\t\tchart.draw(svgGenerator, new Rectangle2D.Double(0, 0, 400, 300), null);\n\t\t// Finally, stream out SVG to a file using UTF-8 character to\n\t\t// byte encoding\n\t\tboolean useCSS = true;\n\t\tWriter out = new OutputStreamWriter(new FileOutputStream(new File(\n\t\t\t\t\"test.svg\")), \"UTF-8\");\n\t\tsvgGenerator.stream(out, useCSS);\n\t}",
"protected abstract GraphicsWriter newGraphicsWriter();",
"public synchronized static void saveGraph(String filename, String fileType, final IFigure printableFigure) \n\t\t\tthrows Exception {\n\t\tImage im = new Image(Display.getDefault(), printableFigure.getSize().width, printableFigure.getSize().height);\n\t\tGC gc = new GC(im);\n\t\t\n\t\t// fill the region in the AWT image with the transparent color\n\t\tSWTGraphics graphics = new SWTGraphics(gc);\n\t\ttry {\n\t\t\t// Needed because the clipping is not set with GTK2\n\t\t\tgraphics.setClip(new Rectangle(0, 0, im.getBounds().width, im.getBounds().height));\n\t\n\t\t\tprintableFigure.paint(graphics);\n\t\t\t// test for all possible file types\n\t\t\tif (!Arrays.asList(FILE_FORMATS).contains(fileType.toLowerCase())\n\t\t\t\t\t&& !Arrays.asList(FILE_TYPES).contains(fileType))\n\t\t\t\tthrow new RuntimeException(\"Cannot deal with file type \" + fileType);\n\t\n\t\t\t// This overrides given fileType!\n\t\t\t// If they have specified the file type in the file name, use that.\n\t\t\tString lname = filename.toLowerCase();\n\t\t\tif (lname.endsWith(\".png\") || lname.endsWith(\".jpg\") || lname.endsWith(\".jpeg\"))\n\t\t\t\tfileType = FILE_TYPES[0];\n\t\t\tif (lname.endsWith(\".ps\") || lname.endsWith(\".eps\"))\n\t\t\t\tfileType = FILE_TYPES[1];\n\t\t\tif (lname.endsWith(\".svg\"))\n\t\t\t\tfileType = FILE_TYPES[2];\n\t\t\tif (fileType.equals(FILE_TYPES[0])) {\n\t\t\t\tif (!lname.endsWith(\".png\") && !lname.endsWith(\".jpg\") && !lname.endsWith(\".jpeg\")) {\n\t\t\t\t\tfilename = filename + \".png\";\n\t\t\t\t\tlname = filename.toLowerCase();\n\t\t\t\t}\n\t\t\t\tImageLoader loader = new ImageLoader();\n\t\t\t\tloader.data = new ImageData[] { im.getImageData() };\n\t\t\t\tloader.save(filename, lname.endsWith(\".png\") ? SWT.IMAGE_PNG : SWT.IMAGE_JPEG);\n\t\t\t} else if (fileType.equals(FILE_TYPES[1])) {\n\t\t\t\tif (!lname.endsWith(\".ps\") && !lname.endsWith(\".eps\"))\n\t\t\t\t\tfilename = filename + \".ps\";\n\t\t\t\tsavePostScript(new File(filename), im);\n\t\t\t} else if (fileType.equals(FILE_TYPES[2])) {\n\t\t\t\tif (!lname.endsWith(\".svg\"))\n\t\t\t\t\tfilename = filename + \".svg\";\n\t\t\t\tfinal File file = new File(filename);\n\t\t\t\t// save to SVG process in a Job\n\t\t\t\tJob svgJob = new Job(\"Exporting to SVG\") {\n\t\t\t\t\tIStatus result = null;\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected IStatus run(final IProgressMonitor monitor) {\n\t\t\t\t\t\tDisplayUtils.syncExec(new Runnable() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tresult = saveSVG(printableFigure, file, monitor);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tresult = Status.CANCEL_STATUS;\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Error writing to file:\"+e.toString());\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\tif (result == null)\n\t\t\t\t\t\t\tresult = Status.CANCEL_STATUS;\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tsvgJob.setUser(true);\n\t\t\t\tsvgJob.schedule();\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"Cannot process \" + fileType);\n\t\t\t}\n\t\t} finally {\n\t\t\tgraphics.dispose();\n\t\t\tgc.dispose();\n\t\t\tim.dispose();\n\t\t}\n\t}",
"public void buildImage(String INPUT_XML_SYMBOL) throws IOException, JAXBException, XMLStreamException {\n\n\t\tFile xmlFile = new File(OUTPUT_FILE_TEMP);\n\n\t\tString outputFileName = (INPUT_XML_SYMBOL).replaceAll(\".xml\", \".png\");\n\t\t\n\n\t\tint resolutionX = 500;\n\t\tJaxbErrorLogRepository errorRep = new JaxbErrorLogRepository(xmlFile);\n\t\tInputRepository inputRep = new JaxbInputRepository(xmlFile);\n\t\tGraphicFactory gFac = new ImageFactory_PNG();\n\t\tGraphicBuilder gBuilder = new GraphicBuilder(inputRep, gFac, errorRep);\n\t\tBufferedImage image = gBuilder.buildImage(resolutionX, outputFileName);\n\t\timage = trim(image);\n\n\t\t// Writing image now:\n\n\t\t// Get all possible Image Writers that are actually available for the\n\t\t// type PNG\n\t\tIterator<ImageWriter> imageWriters = ImageIO.getImageWritersBySuffix(\"PNG\");\n\n\t\t// Ok, we need the output file of course\n\t\tFile file = new File(outputFileName);\n\t\t\n\t\t// select the first found Writer\n\t\tImageWriter imageWriter = (ImageWriter) imageWriters.next();\n\n\t\t// Now we define the output stream\n\t\ttry (ImageOutputStream ios = ImageIO.createImageOutputStream(file)) {\n\t\t\timageWriter.setOutput(ios);\n\n\t\t\t// Here we add the Listener which reports to the logger, so we can\n\t\t\t// see\n\t\t\t// the progress\n\t\t\timageWriter.addIIOWriteProgressListener(new GraphicBuilderImageWriteListener());\n\n\t\t\t// Now start writing the image\n\t\t\timageWriter.write(image);\n\t\t}\n\n\t\t// delete errorLog and output_file_temp\n\t\tString errorLog = OUTPUT_FILE_TEMP.replace(\".xml\", \".graphic_errors.xml\");\n\t\tFile tempErrorLogFile = new File(errorLog);\n\t\ttempErrorLogFile.delete();\n\n\t\txmlFile.delete();\n\n\t}",
"protected abstract Image generateImage(Graphics g, String text, Dimension d);",
"public BufferedImage toImage(){\n // turn it into a png\n int scale = 8;\n int w = 16;\n int h = 16;\n BufferedImage image = new BufferedImage(w * scale, h * scale, BufferedImage.TYPE_INT_ARGB);\n Color background = new Color(240, 240, 240);\n java.awt.Graphics gr = image.getGraphics();\n gr.setColor(background);\n gr.fillRect(0, 0, w * scale, h * scale);\n\n // so each 3 bytes describes 1 color?\n for(int i = 0; i < 256; ++i){\n\n // int r = palette.get(i * 3);\n // int g = palette.get(i * 3 + 1);\n // int b = palette.get(i * 3 + 2);\n\n // the Color() constructor that takes ints does values 0..255\n // but it has a float constructor, so why not divide\n //Color awtColor = new Color(r/64.0f, g/64.0f, b/64.0f);\n Color awtColor = getAwtColor(i);\n\n int row = i / 16;\n int col = i % 16;\n int y = row * scale;\n int x = col * scale;\n gr.setColor(awtColor);\n gr.fillRect(x, y, x + scale, y + scale);\n }\n\n return image;\n }",
"public void createImage(String pathImg) {\n\t\ttry {\n\t\t\tImageIO.write(this.bi, \"PNG\", new File(pathImg));\n\t\t\tSystem.out.println(\" Create image of the Graph : \" + this.nameGraph);\n\t\t} catch (Exception e) {\n\t\t\t// just send a mail\n\t\t\t// EmailSender.sendMailError(e, StaticGeneral.pathReport);\n\t\t}\n\t\tSystem.gc();\n\t\tSystem.runFinalization();\n\t}",
"public void imprime() {\n mapa =\"<svg width='\" + x + \"' height='\" + y + \"'><g>\";\n }",
"public static SVGImage createImage(String svgURI) throws IOException {\n ScalableImage scalableImage = null;\n\n try {\n scalableImage = ScalableImage.createImage(svgURI, null);\n } catch (NullPointerException npe) {\n throw new IllegalArgumentException(ERROR_NULL_URI);\n } \n \n return new SVGImage(scalableImage);\n }",
"public void saveAs() {\n MimsJFileChooser fileChooser = new MimsJFileChooser(ui);\n fileChooser.setSelectedFile(new File(ui.getLastFolder(), ui.getImageFilePrefix() + \".png\"));\n ResourceBundle localizationResources = ResourceBundleWrapper.getBundle(\"org.jfree.chart.LocalizationBundle\");\n ExtensionFileFilter filter = new ExtensionFileFilter(\n localizationResources.getString(\"PNG_Image_Files\"), \".png\");\n fileChooser.addChoosableFileFilter(filter);\n fileChooser.setFileFilter(filter);\n int option = fileChooser.showSaveDialog(chartpanel);\n if (option == MimsJFileChooser.APPROVE_OPTION) {\n String filename = fileChooser.getSelectedFile().getPath();\n if (!filename.endsWith(\".png\")) {\n filename = filename + \".png\";\n }\n try {\n ChartUtils.saveChartAsPNG(new File(filename), chartpanel.getChart(), getWidth(), getHeight());\n } catch (IOException ioe) {\n IJ.error(\"Unable to save file.\\n\\n\" + ioe.toString());\n }\n }\n }",
"public void dot(String str) throws PaleoException {\n\t\trunProcess(\"dot -Tpng \" + str + \".dot -o \" + str + \".png\");\n\t\tif (erreur.length() != 0) {\n\t\t\tthrow new DotException(erreur.toString());\n\t\t}\n\t}",
"private static RenderedImage ownerImage(RegionReport rr) {\n BufferedImage bufferedImage = new BufferedImage(MAP_SIZE, MAP_SIZE,\n BufferedImage.TYPE_INT_RGB) ;\n // Create a graphics contents on the buffered image\n Graphics2D g2d = bufferedImage.createGraphics() ;\n g2d.setColor(Color.white);\n //TODO need to set default overflow to something other than black,\n // or set this default background to something else. colors colors colors.\n g2d.fillRect(0, 0, MAP_SIZE, MAP_SIZE);\n \n String family = \"Sans-Serif\";\n int style = Font.PLAIN;\n int size = 12;\n Font font = new Font(family, style, size);\n g2d.setFont(font);\n\n ArrayList owners = rr.getOwnerMap() ;\n System.out.println(owners.size() + \" owners.\") ;\n int yy = 20 ;\n int boxX = 14 ;\n int nameX = boxX + 26 ; ;\n\n for (Iterator all = owners.iterator(); all.hasNext();) {\n Owner owner = (Owner) all.next() ;\n int ownerNum = owner.getNumber() ;\n Color cc = OwnerColors.getOwnerColor(ownerNum) ;\n g2d.setColor(cc) ;\n g2d.fillRect(boxX, yy, 16, 16) ;\n String ownerName = owner.getName() ;\n int spot = ownerName.indexOf(\"-\") ;\n if (spot > 0) {\n ownerName = ownerName.substring(0,8) ;\n }\n g2d.drawString(ownerName, nameX, yy+13) ;\n yy += 24 ;\n \n if (yy+48 > MAP_SIZE) {\n yy = 20 ;\n boxX = boxX + MAP_SIZE/2 ;\n nameX = boxX + 26 ;\n \n }\n }\n \n/*\n // trial of svg\n // <rect x=\"0\" y=\"8\" width=\"512\" height=\"8\"\n // style=\"fill:rgb(255,255,255)\"/>\n char q = '\"' ;\n System.out.println(\n \"<rect x=\" + q + xx + q + \" y=\" + q + yy + q +\n \" width=\" + q + finishRow + q + \" height=\" + q + \"1\" + q +\n \" style=\" + q + \"fill:rgb(\" + \n cc.getRed() + \",\" + cc.getGreen() + \",\" + cc.getBlue() \n + \")\" + q + \"/>\") ;\n */\n \n // Graphics context no longer needed so dispose it\n g2d.dispose() ;\n\n return bufferedImage ;\n }",
"public void displayImageToConsole();",
"public void createOAGDot(){\r\n\t\ttry {\r\n\t\t\tFileWriter writer = new FileWriter(new File(\"OAGGraph.dot\"));\r\n\t\t\twriter.write(\"digraph G{\\n\");\r\n\t\t\tint subCounter = 0;\r\n\t\t\t// Add all vertices\r\n\t\t\t\r\n\t\t\tfor (IFace iface : interfaces){\r\n\t\t\t\taddOAGDotIFace(iface, writer, subCounter);\r\n\t\t\t\tsubCounter++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (Class cls : classes){\r\n\t\t\t\taddOAGDotCls(cls, writer, subCounter);\r\n\t\t\t\tsubCounter++;\r\n\t\t\t}\r\n\r\n\t\t\t// Add edges\r\n\t\t\tfor (Vertex source : graphEdges.keySet()){\r\n\t\t\t\tString sourceName = source.getParent().getName() + \"_\" + source.getExtVar();\r\n\t\t\t\tHashMap<Vertex, EdgeType> dests = graphEdges.get(source);\r\n\t\t\t\tif (dests != null){\r\n\t\t\t\t\tfor (Vertex dest : dests.keySet()){\r\n\t\t\t\t\t\tString destName = dest.getParent().getName() + \"_\" + dest.getExtVar();\r\n\t\t\t\t\t\tString edgeStr = \"\\t\" + sourceName + \" -> \" + destName;\r\n\t\t\t\t\t\tif (dests.get(dest) == EdgeType.INDIRECT)\r\n\t\t\t\t\t\t\tedgeStr += \"[style=dotted]\";\r\n\t\t\t\t\t\twriter.write(edgeStr + \";\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twriter.write(\"}\");\r\n\t\t\twriter.close();\r\n\t\t}\r\n\t\tcatch (IOException e){\r\n\t\t\tSystem.err.println(\"Error: IOException detected\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t}",
"public void setSVG(SVG mysvg)\r\n {\r\n if (mysvg == null)\r\n throw new IllegalArgumentException(\"Null value passed to setSVG()\");\r\n\r\n setSoftwareLayerType();\r\n setImageDrawable(new PictureDrawable(mysvg.renderToPicture()));\r\n mSvg = mysvg;\r\n mRenderer = getNewRenderer(mSvg);\r\n }",
"public void ShowImage(BufferedImage test) {\n try {\n BufferedImage output = test;\n File fo = new File(\"C:\\\\java\\\\images\\\\sub_image20170114.png\");\n ImageIO.write(output, \"PNG\", fo);\n } catch (IOException e) {\n System.out.println(\"Writing to output failed.\");\n }\n }",
"public final void writeMOL2PNGFile(IAtomContainer mol, String pngFile) throws Exception {\n\n BufferedImage bimage = null;\n \n try {\n bimage = (BufferedImage) getImage4MOL(mol);\n ImageIO.write(bimage, \"png\", new File(this.folder + pngFile));\n \n } catch (Exception e) {\n e.printStackTrace();\n //throw new Exception(\"EPS rendering of structure(s) failed\");\n }\n\n }",
"public String save(Long projectInfoId, String svgString) {\n svgCache.put(projectInfoId, svgString);\n return svgString;\n }",
"public void draw() \n{\n background(250, 243, 225);\n timer(); //control timing of the program\n mapwd.draw(); //visualize weekday trajectory\n shadeTra(t1); \n mapwk.draw(); //visualize weekend trajectory\n shadeTra(t2); \n transport(); //draw the transport legend\n infoDisplay(); //display almost text information\n \n\n stroke(0);\n \n gweekend();\n gweekday();\n frame();\n graduation();\n piechart();\n \n stroke(0);\n arrow();\n \n saveFrame(\"Output1/traffic_######.tif\");\n}",
"void takeSnapShot(File fileToSave) {\n try {\n /*Construct a new BufferedImage*/\n BufferedImage exportImage = new BufferedImage(this.getSize().width,\n this.getSize().height,\n BufferedImage.TYPE_INT_RGB);\n\n \n /*Get the graphics from JPanel, use paint()*/\n this.paint(exportImage.createGraphics());\n \n fileToSave.createNewFile();\n ImageIO.write(exportImage, \"PNG\", fileToSave);\n } catch(Exception exe){\n System.out.println(\"DrawCanvas.java - Exception\");\n }//catch\n}",
"@Override\n\tpublic SVGFilterDescriptor toSVG(BufferedImageOp filter, Rectangle filterRect) {\n\t\tif (filter instanceof LookupOp)\n\t\t\treturn toSVG((LookupOp) filter);\n\t\telse\n\t\t\treturn null;\n\t}",
"private String svgSizes(String id) {\n StringBuilder toReturn = new StringBuilder();\n String w;\n String h;\n for (AAction a : model.getSizes(id)) {\n if (model.currentShape(0, id).isRectangle()) {\n w = \"width\";\n h = \"height\";\n } else {\n w = \"rx\";\n h = \"ry\";\n }\n ChangeSize sz = (ChangeSize) a;\n toReturn.append(\" \");\n toReturn.append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + sz.getStartTime() * speed + \"ms\\\"\" +\n \" dur=\\\"\" + speed * (sz.getEndTime() - sz.getStartTime())\n + \"ms\" + \"\\\" attributeName=\\\"\" + w + \"\\\"\" +\n \" from=\\\"\" + sz.getStartWidth() + \"\\\" to=\\\"\" +\n \"\" + sz.getEndWidth() + \"\\\" fill=\\\"freeze\\\" />\\n\");\n toReturn.append(\" \");\n toReturn.append(\"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + sz.getStartTime() * speed + \"ms\\\"\" +\n \" dur=\\\"\" + speed * (sz.getEndTime() - sz.getStartTime())\n + \"ms\" + \"\\\" attributeName=\\\"\" + h + \"\\\"\" +\n \" from=\\\"\" + sz.getStartHeight() + \"\\\" to=\\\"\" +\n \"\" + sz.getEndHeight() + \"\\\" fill=\\\"freeze\\\" />\\n\");\n\n }\n return toReturn.toString();\n }",
"private SVGGraphics2D getGenerator() throws Exception {\n\t\tDOMImplementation dom = GenericDOMImplementation.getDOMImplementation();\n\t\tDocument doc = dom.createDocument(null, \"svg\", null);\n\t\tSVGGraphics2D generator = new SVGGraphics2D(doc);\n\t\treturn generator;\n\t}",
"@Test\r\n public void testInjest() throws Exception {\r\n System.out.println(\"injest\");\r\n String doc = \"crowd.xml\";\r\n ImageWord word = new ImageWord();\r\n word.setUrl(doc);\r\n ImageTextSource source = new ImageTextSource();\r\n Set sourceSet = new HashSet();\r\n sourceSet.add(\"crowd\");\r\n source.setWordSet(sourceSet);\r\n word.setTextSrc(source);\r\n word.setType(\"svg\");\r\n word.setDataSource(\"<svg xmlns=\\\"http://www.w3.org/2000/svg\\\" xmlns:xlink=\\\"http://www.w3.org/1999/xlink\\\" version=\\\"1.0\\\" x=\\\"0px\\\" y=\\\"0px\\\" width=\\\"100px\\\" height=\\\"100px\\\" viewBox=\\\"0 0 100 100\\\" enable-background=\\\"new 0 0 100 100\\\" xml:space=\\\"preserve\\\">\\n\" +\r\n \"<path d=\\\"M19.453,27.837c3.151,0,5.698-2.551,5.698-5.697c0-3.15-2.546-5.702-5.698-5.702 c-3.15,0-5.696,2.551-5.696,5.702C13.757,25.286,16.303,27.837,19.453,27.837z\\\"/>\\n\" +\r\n \"<circle cx=\\\"81.189\\\" cy=\\\"22.138\\\" r=\\\"5.699\\\"/>\\n\" +\r\n \"<path d=\\\"M50.35,27.837c3.147,0,5.697-2.551,5.697-5.697c0-3.15-2.55-5.702-5.697-5.702 c-3.151,0-5.702,2.551-5.702,5.702C44.648,25.286,47.199,27.837,50.35,27.837z\\\"/>\\n\" +\r\n \"<circle cx=\\\"81.189\\\" cy=\\\"22.138\\\" r=\\\"5.699\\\"/>\\n\" +\r\n \"<path d=\\\"M89.036,35.577l9.913-11.868c1.292-1.549,1.085-3.858-0.467-5.151c-1.551-1.293-3.85-1.086-5.146,0.462 c0,0-7.637,9.068-7.658,9.057c-1.274,1.124-2.936,1.811-4.763,1.811c-1.71,0-3.278-0.597-4.507-1.59 c-0.019,0.007-0.01,0.004-0.006,0l-7.873-9.277c-0.771-0.923-1.904-1.366-3.019-1.301c-1.116-0.064-2.242,0.378-3.018,1.301 c0,0-7.637,9.068-7.654,9.057c-1.273,1.124-2.939,1.811-4.763,1.811c-1.709,0-3.278-0.597-4.507-1.59h-0.004l-7.875-9.277 c-0.78-0.93-1.92-1.372-3.044-1.301c-1.128-0.071-2.274,0.371-3.045,1.301c0,0-7.64,9.068-7.658,9.057 c-1.273,1.124-2.939,1.811-4.768,1.811c-1.71,0-3.274-0.597-4.507-1.59l-7.878-9.277c-1.292-1.549-3.596-1.756-5.146-0.462 c-1.552,1.292-1.755,3.602-0.463,5.151L11.61,36.194v12.185c0,0.337,0.026,0.661,0.071,0.987l-1.595,30.765 c-0.146,2.055,1.405,3.838,3.458,3.979c2.054,0.141,3.834-1.401,3.975-3.459l1.269-24.463c0.224,0.017,0.44,0.035,0.665,0.035 c0.273,0,0.542-0.014,0.807-0.044l1.679,24.472c0.137,2.058,1.921,3.6,3.978,3.459c2.05-0.142,3.605-1.925,3.46-3.979 l-2.124-30.939c0.026-0.267,0.044-0.541,0.044-0.813V35.577l7.35-8.799l7.861,9.417v2.594L39,62.291h2.903l-0.925,17.84 c-0.141,2.055,1.405,3.838,3.458,3.979c2.058,0.141,3.842-1.401,3.983-3.459l0.952-18.36h2.199l1.255,18.36 c0.15,2.058,1.93,3.6,3.983,3.459c2.054-0.142,3.604-1.925,3.463-3.979l-1.225-17.84h2.864L58.193,37.37v-1.793l7.318-8.764 l7.838,9.382v12.185c0,0.337,0.021,0.661,0.067,0.987l-1.596,30.765c-0.141,2.055,1.405,3.838,3.458,3.979 c2.054,0.141,3.838-1.401,3.983-3.459l1.267-24.463c0.215,0.017,0.436,0.035,0.66,0.035c0.271,0,0.542-0.014,0.807-0.044 l1.674,24.472c0.145,2.058,1.929,3.6,3.983,3.459c2.05-0.142,3.601-1.925,3.459-3.979l-2.125-30.939 c0.032-0.267,0.049-0.541,0.049-0.813V35.577z\\\"/>\\n\" +\r\n \"<circle cx=\\\"81.189\\\" cy=\\\"22.138\\\" r=\\\"5.699\\\"/>\\n\" +\r\n \"</svg>\");\r\n String xml = new Util().generateXML(word);\r\n IwRepoDAOMarkLogicImplStud instance = new IwRepoDAOMarkLogicImplStud();\r\n boolean expResult = true;\r\n System.out.println(xml);\r\n boolean result = instance.injest(doc, xml);\r\n assertEquals(expResult, result);\r\n }",
"public SvgStyle() {\n\n\t\t\tfillPaint = new Paint();\n\t\t\tstrokePaint = new Paint();\n\t\t\tfillPaint.setStyle(Paint.Style.FILL);\n\t\t\tstrokePaint.setStyle(Paint.Style.STROKE);\n\t\t\tfillPaint.setColor(0xff000000);\n\t\t\tstrokePaint.setColor(0xff000000);\n\t\t\tmasterOpacity = 1;\n\t\t\tfillOpacity = 1;\n\t\t\tstrokeOpacity = 1;\n\t\t\tfillPaint.setAntiAlias(true);\n\t\t\tstrokePaint.setAntiAlias(true);\n\t\t\tfillPaint.setStrokeWidth(1f);\n\t\t\tstrokePaint.setStrokeWidth(1f);\n\t\t\tfillPaint.setTextAlign(Paint.Align.LEFT);\n\t\t\tstrokePaint.setTextAlign(Paint.Align.LEFT);\n\t\t\tfillPaint.setTextSize(0.02f);\n\t\t\tstrokePaint.setTextSize(0.02f);\n\t\t\tfillPaint.setTextScaleX(1f);\n\t\t\tstrokePaint.setTextScaleX(1f);\n\t\t\tfillPaint.setTypeface(Typeface.DEFAULT);\n\t\t\tstrokePaint.setTypeface(Typeface.DEFAULT);\n\t\t\thasFill = true;\n\t\t\thasStroke = false;\n\t\t}",
"@Override\n public String toStringSvg(int speed, IShape shape) {\n String result = \"\";\n\n result += \"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + this.getStartTime() * 1000.0 / speed + \"ms\\\" dur=\\\"\"\n + this.timeInterval * 1000.0 / speed + \"ms\\\" \"\n + this.toStringSvgScaleXChange(shape)\n + \" fill=\\\"freeze\\\"/>\\n\";\n result += \"<animate attributeType=\\\"xml\\\" begin=\\\"\"\n + this.getStartTime() * 1000.0 / speed + \"ms\\\" dur=\\\"\"\n + this.timeInterval * 1000.0 / speed + \"ms\\\" \"\n + this.toStringSvgScaleYChange(shape)\n + \" fill=\\\"freeze\\\"/>\";\n\n return result;\n }",
"public SVGView(String fileName, FileWriter newFile) {\n super(fileName, newFile);\n this.textDescription = this.textualize();\n }",
"public static void convert(File pdfFile, File imgFile) throws Exception {\n\t PDDocument document = PDDocument.load(pdfFile);\n\t \n\t //Instantiating the PDFRenderer class\n\t PDFRenderer renderer = new PDFRenderer(document);\n\t \n\t // set resolution (in DPI) and Rendering an image from the PDF document\n\t BufferedImage src = renderer.renderImageWithDPI(0, 300);\n\t \n\t //Rendering an image from the PDF document\n\t\t //BufferedImage image = renderer.renderImage(0);\n\t \n\t \n\t int srcWidth = src.getWidth();\n\t int srcHeight = src.getHeight();\n\t BufferedImage dest = new BufferedImage(srcHeight, srcWidth, src.getType());\n\t \n\t for (int row = 0; row < srcHeight-1; row++)\n\t \t for (int col = srcWidth - 1; col >=0 ; col--)\t \t\n\t \t\t dest.setRGB(row,srcWidth-1-col,src.getRGB(col,row));\n\t \n\t \n\t \n\t //Writing the image to a file\n\t ImageIO.write(dest, \"JPG\", imgFile);\n\t //ImageIO.write(dest, \"JPG\", new File(\"D:/autocad draw/image drawings/Production Drawing_ExampleByCode2.jpg\"));\n\t \n\t System.out.println(\"Image created\");\n\t \n\t //Closing the document\n\t document.close();\n\t}",
"@Test(expected = UnsupportedOperationException.class)\n public void SVGViewTest3() {\n IView a = new SVGView(new AnimatorModelImpl(0, 0, 100, 100), \"toh-3.txt\", 10);\n a.makeVisible();\n }",
"public void exportGraphForClade(String clade_name, String out_filepath){\n \t\tIndexHits<Node> foundNodes = findTaxNodeByName(clade_name);\n \t\tNode firstNode = null;\n \t\tif (foundNodes.size() < 1) {\n System.out.println(\"name '\" + clade_name + \"' not found. quitting.\");\n \t\t\treturn;\n \t\t} else if (foundNodes.size() > 1) {\n \t\t System.out.println(\"more than one node found for name '\" + clade_name + \"'not sure how to deal with this. quitting\");\n \t\t} else {\n \t\t for (Node n : foundNodes) {\n \t\t firstNode = n;\n \t\t }\n \t\t}\n \t\t//TraversalDescription CHILDOF_TRAVERSAL = Traversal.description().relationships(RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tPrintWriter out_file;\n \t\ttry {\n \t\t\tout_file = new PrintWriter(new FileWriter(out_filepath));\n \t\t\tout_file.write(\"strict digraph {\\n\\trankdir = RL ;\\n\");\n \t\t\tHashMap<String, String> src2style = new HashMap<String, String>();\n \t\t\tHashMap<Node, String> nd2dot_name = new HashMap<Node, String>();\n \t\t\tint count = 0;\n \t\t\tfor (Node nd : firstNode.traverse(Traverser.Order.BREADTH_FIRST, \n \t\t\t\t\t\t\t\t\t\t\t StopEvaluator.END_OF_GRAPH,\n \t\t\t\t\t\t\t\t\t\t\t ReturnableEvaluator.ALL,\n \t\t\t\t\t\t\t\t\t\t\t RelTypes.TAXCHILDOF,\n \t\t\t\t\t\t\t\t\t\t\t Direction.INCOMING)) {\n \t\t\t\tfor(Relationship rel : nd.getRelationships(RelTypes.TAXCHILDOF,Direction.INCOMING)) {\n \t\t\t\t\tcount += 1;\n \t\t\t\t\tNode rel_start = rel.getStartNode();\n \t\t\t\t\tString rel_start_name = ((String) rel_start.getProperty(\"name\"));\n \t\t\t\t\tString rel_start_dot_name = nd2dot_name.get(rel_start);\n \t\t\t\t\tif (rel_start_dot_name == null){\n \t\t\t\t\t\trel_start_dot_name = \"n\" + (1 + nd2dot_name.size());\n \t\t\t\t\t\tnd2dot_name.put(rel_start, rel_start_dot_name);\n \t\t\t\t\t\tout_file.write(\"\\t\" + rel_start_dot_name + \" [label=\\\"\" + rel_start_name + \"\\\"] ;\\n\");\n \t\t\t\t\t}\n \t\t\t\t\tNode rel_end = rel.getEndNode();\n \t\t\t\t\tString rel_end_name = ((String) rel_end.getProperty(\"name\"));\n \t\t\t\t\tString rel_end_dot_name = nd2dot_name.get(rel_end);\n \t\t\t\t\tif (rel_end_dot_name == null){\n \t\t\t\t\t\trel_end_dot_name = \"n\" + (1 + nd2dot_name.size());\n \t\t\t\t\t\tnd2dot_name.put(rel_end, rel_end_dot_name);\n \t\t\t\t\t\tout_file.write(\"\\t\" + rel_end_dot_name + \" [label=\\\"\" + rel_end_name + \"\\\"] ;\\n\");\n \t\t\t\t\t}\n \t\t\t\t\tString rel_source = ((String) rel.getProperty(\"source\"));\n \t\t\t\t\tString edge_style = src2style.get(rel_source);\n \t\t\t\t\tif (edge_style == null) {\n \t\t\t\t\t\tedge_style = \"color=black\"; // @TMP\n \t\t\t\t\t\tsrc2style.put(rel_source, edge_style);\n \t\t\t\t\t}\n \t\t\t\t\tout_file.write(\"\\t\" + rel_start_dot_name + \" -> \" + rel_end_dot_name + \" [\" + edge_style + \"] ;\\n\");\n \t\t\t\t}\n \t\t\t}\n \t\t\tout_file.write(\"}\\n\");\n \t\t\tout_file.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"@Override\n\tpublic String drawForConsole() {\n\t\tString[][] output = new String[this.getWidth()][this.getHeight()];\n\t\tString image = \"\";\n\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\t\tif (x == 0 || x == this.getWidth() - 1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (y == 0 || y == this.getHeight() -1) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else if (this.isFilledIn()) {\n\t\t\t\t\toutput[x][y] = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\toutput[x][y] = \" \";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int y = 0; y < this.getHeight(); y++) {\n\t\t\tfor (int x = 0; x < this.getWidth(); x++) {\n\t\t\t\timage += output[x][y];\n\t\t\t\tif (x == this.getWidth() - 1) {\n\t\t\t\t\timage += \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn image;\n\t}",
"public static void exportGraphToDotFile(\n\t\t\tGraph<Vertex, CustomEdge> graph) {\n\t\tboolean graphIsWeighted = graph instanceof WeightedGraph ;\n\t\t\n\t\t//Create a new Attribute Provider for Edges\n\t\tComponentAttributeProvider<CustomEdge> EdgeWeightProvider = new ComponentAttributeProvider<CustomEdge>() {\n\t\t\tpublic Map<String, String> getComponentAttributes(\n\t\t\t\t\tCustomEdge e) {\n\t\t\t\t\n\t\t\t\tMap<String, String> map = new LinkedHashMap<String, String>();\n\t\t\t\tmap.put(\"label\", Double.toString(graph.getEdgeWeight(e)));\n\t\t\t\tmap.put(\"weight\", Double.toString(graph.getEdgeWeight(e)));\n\t\t\t\tmap.put(\"color\", e.getColor());\n\t\t\t\treturn map;\n\t\t\t}\n\t\t};\n\t\t\n\t\tComponentAttributeProvider<CustomEdge> EdgeAttributeWithoutWeightProvider = new ComponentAttributeProvider<CustomEdge>() {\n\t\t\tpublic Map<String, String> getComponentAttributes(\n\t\t\t\t\tCustomEdge e) {\n\t\t\t\t\n\t\t\t\tMap<String, String> map = new LinkedHashMap<String, String>();\n\t\t\t\tmap.put(\"color\", e.getColor());\n\t\t\t\t\n\t\t\t\treturn map;\n\t\t\t}\n\t\t};\n\t\t\n\t\t//Create a new Attribute Provider for Edges\n\t\tComponentAttributeProvider<Vertex> VertexAttributeProvider = new ComponentAttributeProvider<Vertex>() {\n\n\t\t\t@Override\n\t\t\tpublic Map<String, String> getComponentAttributes(Vertex v) {\n\t\t\t\tMap<String, String> map = new LinkedHashMap<String, String>();\n\t\t\t\tmap.put(\"distortion\", Integer.toString(v.getAttribut()));\n\t\t\t\tmap.put(\"color\", v.getColor());\n\t\t\t\treturn map;\n\t\t\t}\n\t\t};\n\t\t\n\t\t//Create DotExporter which matches type of the Graph\n\t\tDOTExporter<Vertex, CustomEdge> exporter1 = null;\n\t\tif(graphIsWeighted){\n\t\t\t exporter1 = new DOTExporter<>(\n\t\t\t\tnew IntegerNameProvider<>(), new StringNameProvider<>(),\n\t\t\t\tnull, VertexAttributeProvider, EdgeWeightProvider);\n\t\t}else {\n\t\t\t\n\t\t\texporter1 = new DOTExporter<>(\n\t\t\t\t\tnew IntegerNameProvider<>(), new StringNameProvider<>(),\n\t\t\t\t\tnew StringEdgeNameProvider<>(), VertexAttributeProvider, EdgeAttributeWithoutWeightProvider);\n\t\t}\n//\t\texporter1 = new DOTExporter<Vertex, CustomEdge>();\n\t\t//File Directory\n\t\tString targetDirectory = \"../GKA/result/\";\n\t\t\n\t\t//Export Dot File\n\t\tnew File(targetDirectory).mkdirs();\n\t\ttry {\n\n\t\t\texporter1.export(\n\t\t\t\t\tnew FileWriter(targetDirectory + \"result.gv\"), graph);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String toDot() {\n\t\tStringBuilder b = new StringBuilder();\n\t\tb.append(\"digraph BP {\\n\");\n\n\t\t// standard style for nodes and edges\n\t\tb.append(\"graph [fontname=\\\"Helvetica\\\" nodesep=0.3 ranksep=\\\"0.2 equally\\\" fontsize=10];\\n\");\n\t\tb.append(\"node [fontname=\\\"Helvetica\\\" fontsize=8 fixedsize width=\\\".3\\\" height=\\\".3\\\" label=\\\"\\\" style=filled fillcolor=white];\\n\");\n\t\tb.append(\"edge [fontname=\\\"Helvetica\\\" fontsize=8 color=white arrowhead=none weight=\\\"20.0\\\"];\\n\");\n\n\t\t// String tokenFillString =\n\t\t// \"fillcolor=black peripheries=2 height=\\\".2\\\" width=\\\".2\\\" \";\n\t\tString cutOffFillString = \"fillcolor=gold\";\n\t\tString antiFillString = \"fillcolor=red\";\n\t\tString impliedFillString = \"fillcolor=violet\";\n\t\tString hiddenFillString = \"fillcolor=grey\";\n\n\t\t// first print all conditions\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\"node [shape=circle];\\n\");\n\t\tfor (DNode n : bp.allConditions) {\n\t\t\tif (!option_printAnti && n.isAnti)\n\t\t\t\tcontinue;\n\t\t\t/*\n\t\t\t * - print current marking if (cutNodes.contains(n))\n\t\t\t * b.append(\" c\"+n.localId+\" [\"+tokenFillString+\"]\\n\"); else\n\t\t\t */\n\t\t\tif (n.isAnti && n.isHot)\n\t\t\t\tb.append(\" c\" + n.globalId + \" [\" + antiFillString + \"]\\n\");\n\t\t\telse if (n.isCutOff)\n\t\t\t\tb.append(\" c\" + n.globalId + \" [\" + cutOffFillString + \"]\\n\");\n\t\t\telse\n\t\t\t\tb.append(\" c\" + n.globalId + \" []\\n\");\n\n//\t\t\tString auxLabel = \"\";\n\n\t\t\tb.append(\" c\" + n.globalId + \"_l [shape=none];\\n\");\n\t\t\t// Diagrams\n\t\t\t// b.append(\" c\"+n.globalId+\"_l -> c\"+n.globalId+\" [headlabel=\\\"\"+n+\" \"+auxLabel+\"\\\"]\\n\");\n\t\t}\n\n\t\t// then print all events\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\"node [shape=box];\\n\");\n\t\tfor (DNode n : bp.allEvents) {\n\t\t\tif (!option_printAnti && n.isAnti)\n\t\t\t\tcontinue;\n\t\t\tif (n.isAnti && n.isHot)\n\t\t\t\tb.append(\" e\" + n.globalId + \" [\" + antiFillString + \"]\\n\");\n\t\t\telse if (n.isAnti && !n.isHot)\n\t\t\t\tb.append(\" e\" + n.globalId + \" [\" + hiddenFillString + \"]\\n\");\n\t\t\telse if (n.isImplied)\n\t\t\t\tb.append(\" e\" + n.globalId + \" [\" + impliedFillString + \"]\\n\");\n\t\t\telse if (n.isCutOff)\n\t\t\t\tb.append(\" e\" + n.globalId + \" [\" + cutOffFillString + \"]\\n\");\n\t\t\telse\n\t\t\t\tb.append(\" e\" + n.globalId + \" []\\n\");\n\n\t\t\tString auxLabel = \"\";\n\n\t\t\tb.append(\" e\" + n.globalId + \"_l [shape=none]\\n\");\n\t\t\t// Diagrams\n\t\t\tb.append(\" e\"+n.globalId+\"_l -> e\"+n.globalId+\" [headlabel=\\\"\"+n+\" \"+auxLabel+\"\\\"]\\n\");\n//\t\t\tb.append(\" label=\\\"\"+n+\"\\\"];\\n\");\n\t\t}\n\n\t\t// finally, print all edges\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\" edge [fontname=\\\"Helvetica\\\" fontsize=8 arrowhead=normal color=black];\\n\");\n\t\tfor (DNode n : bp.allConditions) {\n\t\t\tString prefix = n.isEvent ? \"e\" : \"c\";\n\t\t\tfor (int i = 0; i < n.pre.length; i++) {\n\t\t\t\tif (n.pre[i] == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tif (!option_printAnti && n.isAnti)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif (n.pre[i].isEvent)\n\t\t\t\t\tb.append(\" e\" + n.pre[i].globalId + \" -> \" + prefix\n\t\t\t\t\t\t\t+ n.globalId + \" [weight=10000.0]\\n\");\n\t\t\t\telse\n\t\t\t\t\tb.append(\" c\" + n.pre[i].globalId + \" -> \" + prefix\n\t\t\t\t\t\t\t+ n.globalId + \" [weight=10000.0]\\n\");\n\t\t\t}\n\t\t}\n\n\t\tfor (DNode n : bp.allEvents) {\n\t\t\tString prefix = n.isEvent ? \"e\" : \"c\";\n\t\t\tfor (int i = 0; i < n.pre.length; i++) {\n\t\t\t\tif (n.pre[i] == null)\n\t\t\t\t\tcontinue;\n\t\t\t\tif (!option_printAnti && n.isAnti)\n\t\t\t\t\tcontinue;\n\t\t\t\tif (n.pre[i].isEvent)\n\t\t\t\t\tb.append(\" e\" + n.pre[i].globalId + \" -> \" + prefix\n\t\t\t\t\t\t\t+ n.globalId + \" [weight=10000.0]\\n\");\n\t\t\t\telse\n\t\t\t\t\tb.append(\" c\" + n.pre[i].globalId + \" -> \" + prefix\n\t\t\t\t\t\t\t+ n.globalId + \" [weight=10000.0]\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// and add links from cutoffs to corresponding events (exclusive case)\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\" edge [fontname=\\\"Helvetica\\\" fontsize=8 arrowhead=normal color=red];\\n\");\n\t\tfor (DNode n : bp.allEvents) {\n\t\t\tif (n.isCutOff\n\t\t\t\t\t&& futureEquivalence().getElementary_ccPair().get(n) != null) {\n\t\t\t\tif (!this.isCorrInLocalConfig(n, futureEquivalence()\n\t\t\t\t\t\t.getElementary_ccPair().get(n)))\n\t\t\t\t\tb.append(\" e\"\n\t\t\t\t\t\t\t+ n.globalId\n\t\t\t\t\t\t\t+ \" -> e\"\n\t\t\t\t\t\t\t+ futureEquivalence().getElementary_ccPair().get(n).globalId\n\t\t\t\t\t\t\t+ \" [weight=10000.0]\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// and add links from cutoffs to corresponding events (causal case)\n\t\tb.append(\"\\n\\n\");\n\t\tb.append(\" edge [fontname=\\\"Helvetica\\\" fontsize=8 arrowhead=normal color=blue];\\n\");\n\t\tfor (DNode n : bp.allEvents) {\n\t\t\tif (n.isCutOff\n\t\t\t\t\t&& futureEquivalence().getElementary_ccPair().get(n) != null) {\n\t\t\t\tif (this.isCorrInLocalConfig(n, futureEquivalence()\n\t\t\t\t\t\t.getElementary_ccPair().get(n)))\n\t\t\t\t\tb.append(\" e\"\n\t\t\t\t\t\t\t+ n.globalId\n\t\t\t\t\t\t\t+ \" -> e\"\n\t\t\t\t\t\t\t+ futureEquivalence().getElementary_ccPair().get(n).globalId\n\t\t\t\t\t\t\t+ \" [weight=10000.0]\\n\");\n\t\t\t}\n\t\t}\n\n\t\tb.append(\"}\");\n\t\treturn b.toString();\n\t}",
"public String toCodedString() {\n\t\t//System.out.println(toString());\n\t\treturn String.format(\"%s%s\", getColor().toInt(), getShape().toString());\n\t}",
"String marshall(final D diagram) throws IOException;",
"public String getSnapImage()\r\n\t\t{\r\n\t\tif(this.snapImage != null && this.fximage != null) {\t\r\n\t\t\treturn this.snapImage;\r\n\t\t}\r\n\t\telse {\r\n\t\t\ttry {\r\n\t\t\t\tgetFXImage();\r\n \t\t\tBufferedImage bImage = SwingFXUtils.fromFXImage(this.fximage, null);\r\n \t\t\tByteArrayOutputStream s = new ByteArrayOutputStream();\r\n \t\t\ttry {\r\n\t\t\t\t\tImageIO.write(bImage, \"png\", s);\r\n\t\t\t\t\t} \r\n \t\t\tcatch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n \t\t\tthis.snapImage = Base64.encode(s.toByteArray());\r\n\t\t\t}\r\n\t\t\tcatch (NullPointerException n) {\r\n\t\t\t\tSystem.out.println(\"The asset for \" + iconId + \" was not found.\" );\r\n\t\t\t}\r\n\t\t\treturn this.snapImage;\t\r\n\t\t}\r\n\t}",
"public static void exportRouteGraph() {\n try {\n var nodeRouteNr = new ArrayList<Integer>();\n var links = new ArrayList<Pair<Integer, Integer>>();\n\n int[] idx = {0};\n Files.lines(Path.of(Omnibus.class.getResource(\"segments.txt\").getFile())).forEach(line -> {\n String[] parts = line.split(\",\");\n int routeNr = Integer.parseInt(parts[0]) - 1;\n nodeRouteNr.add(routeNr);\n if (parts.length > 5) {\n String[] connections = parts[5].split(\";\");\n for (String c : connections)\n links.add(new Pair(idx[0], Integer.parseInt(c)));\n }\n ++idx[0];\n });\n\n\n File f = Paths.get(\"route-graph.graphml\").toFile();\n var out = new PrintStream(f);\n out.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n out.println(\"<graphml xmlns=\\\"http://graphml.graphdrawing.org/xmlns\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:schemaLocation=\\\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\\\">\");\n out.println(\"<key attr.name=\\\"r\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"r\\\"/>\");\n out.println(\"<key attr.name=\\\"g\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"g\\\"/>\");\n out.println(\"<key attr.name=\\\"b\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"b\\\"/>\");\n out.println(\"<graph id=\\\"G\\\" edgedefault=\\\"directed\\\">\");\n for (int n = 0; n < nodeRouteNr.size(); ++n) {\n out.println(\"<node id=\\\"n\" + n + \"\\\">\");\n out.println(\"<data key=\\\"r\\\">\" + (COLOR[nodeRouteNr.get(n)]>>16) + \"</data>\");\n out.println(\"<data key=\\\"g\\\">\" + ((COLOR[nodeRouteNr.get(n)]>>8)&0xff) + \"</data>\");\n out.println(\"<data key=\\\"b\\\">\" + (COLOR[nodeRouteNr.get(n)]&0xff) + \"</data>\");\n out.println(\"</node>\");\n }\n int e = 0;\n for (var link : links)\n out.println(\"<edge id=\\\"e\" + (e++) + \"\\\" source=\\\"n\" + link.p + \"\\\" target=\\\"n\" + link.q + \"\\\"/>\");\n out.println(\"</graph>\");\n out.println(\"</graphml>\");\n out.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }",
"public BufferedImage ditaaRenderImage() {\n\t\tTextGrid grid = new TextGrid();\n\n\t\ttry {\n\t\t\tif(!grid.initialiseWithText(diagram, null)){\n\t\t\t\tSystem.err.println(\"Cannot initialize data\");\n\t\t\t}\n\t\t} catch (UnsupportedEncodingException e1){\n\t\t\tSystem.err.println(\"Error: \"+e1.getMessage());\n\t\t\tSystem.exit(1);\n\t\t}\n\n\t\tConversionOptions co = new ConversionOptions();\n\t\tco.setDebug(false);\n\n\t\tco.renderingOptions.setDropShadows(this.shadows);\n\t\tco.renderingOptions.setAntialias(this.antialiasing);\n\t\tco.renderingOptions.setScale(this.scale);\n\t\tColor col = new Color(background.getRed(), background.getGreen(), background.getBlue(), background.getAlpha());\n\t\tif (transparent) col = new Color(background.getRed(), background.getGreen(), background.getBlue(), 0);\n\t\t//co.renderingOptions.setBackgroundColor(col);\n\n\t\tProcessingOptions pr = new ProcessingOptions();\n\t\tpr.setAllCornersAreRound(this.round);\n\t\tpr.setPerformSeparationOfCommonEdges(this.separateCommonEdges);\n\t\tpr.setCharacterEncoding(encoding);\n\n\t\tDiagram diagram = new Diagram(grid, co, pr);\n\n\t\tBufferedImage image = new BufferedImage(diagram.getWidth(), diagram.getHeight(),\n\t\t\t\ttransparent ? BufferedImage.TYPE_INT_ARGB : BufferedImage.TYPE_INT_RGB);\n\t\tGraphics2D g = image.createGraphics();\n\t\tg.setColor(col);\n\t\tg.fillRect(0, 0, image.getWidth(), image.getHeight());\n\t\tg.dispose();\n\t\treturn (BufferedImage) new BitmapRenderer().render(diagram, image, co.renderingOptions);\n\t}",
"public void writeFile(String s) {\n\t\ttry\n\t\t{\t\t\t \n\t\t\tPrintWriter writer = new PrintWriter(s, \"UTF-8\");\n\t\t\twriter.println(\"digraph G{\");\n\t\t\tint u;\n\t\t\tint n = vertices();\n\t\t\tfor (u = 0; u < n; u++) {\n\t\t\t for (Edge e: next(u)) {\n\t\t\t \twriter.println(e.from + \"->\" + e.to + \"[label=\\\"\" + e.cost + \"\\\"];\");\n\t\t\t }\n\t\t\t}\n\t\t\twriter.println(\"}\");\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t}\t\t\t\t\t\t\n }",
"public BufferedImage getExport() {\n int ebackw = Integer.parseInt\n (main.myProps.getProperty(\"export.back\"));\n int efrontw = main.forecast;\n main.display.setBounds(ebackw, efrontw);\n\n Dimension dim = main.display.getPreferredSize(); \n BufferedImage img = new BufferedImage\n (dim.width, dim.height, BufferedImage.TYPE_INT_ARGB);\n Graphics gc = img.getGraphics();\n main.display.paintComponent(gc);\n int d[] = main.display.getExportSize(); \n gc.dispose();\n\n main.display.resetBounds();\n return img.getSubimage(d[0], d[1], d[2], d[3]);\n }",
"public SVGView(String fileName) {\n super(fileName);\n this.textDescription = this.textualize();\n }",
"@FXML\n public void onExportButtonClick() throws MatrixSizeException {\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"Save As\");\n fileChooser.getExtensionFilters().addAll(\n\t\t\t\tnew FileChooser.ExtensionFilter(\"PNG File\", \"*.png\"),\n new FileChooser.ExtensionFilter(\"JPG File\", \"*.jpg\"),\n new FileChooser.ExtensionFilter(\"JPEG File\", \"*.jpeg\")\n\t\t);\n\n // The directory the user chooses to save the file\n File file = fileChooser.showSaveDialog(root.getScene().getWindow());\n\n // Saves the image in the output directory\n if(file != null) {\n System.out.println(file.getAbsolutePath());\n\n BufferedImage bImage = SwingFXUtils.fromFXImage(Main.getRectifiedImage().getImage(), null);\n try {\n ImageIO.write(bImage, \"png\", file);\n }\n catch (IOException e) {\n Logger.getLogger(RectifierGUIController.class.getName()).log(Level.SEVERE, null, e);\n }\n }\n }",
"public boolean generateImageFromText();",
"public static void main(String[] args) {\n String dataDir = Utils.getDataDir(ParticularDWGToImage.class) + \"DWGDrawings/\";\n String sourceFilePath = dataDir + \"visualization_-_conference_room.dwg\";\n\n CadImage cadImage = ((CadImage)(Image.load(sourceFilePath)));\n\n CadBaseEntity[] entities = cadImage.getEntities();\n \n List<CadBaseEntity> filteredEntities = new ArrayList<CadBaseEntity>();\n for (CadBaseEntity baseEntity : entities) {\n // selection or filtration of entities\n if ((baseEntity.getTypeName() == CadEntityTypeName.TEXT)) {\n filteredEntities.add(baseEntity);\n }\n\n }\n \n CadBaseEntity[] arr = new CadBaseEntity[filteredEntities.size()];\n cadImage.setEntities(filteredEntities.toArray(arr));\n // Create an instance of CadRasterizationOptions and set its various properties\n CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();\n rasterizationOptions.setPageWidth(1600);\n rasterizationOptions.setPageHeight(1600);\n // Set Auto Layout Scaling\n rasterizationOptions.setAutomaticLayoutsScaling(true);\n // Create an instance of PdfOptions\n PdfOptions pdfOptions = new PdfOptions();\n // Set the VectorRasterizationOptions property\n pdfOptions.setVectorRasterizationOptions(rasterizationOptions);\n String outFile = dataDir + \"result_out_generated.pdf\";\n // Export the CAD to PDF\n cadImage.save(outFile, pdfOptions);\n //ExEnd:ParticularDWGToImage\n }",
"private static final byte[] xfmt_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -62, 0, 0, -128,\n\t\t\t\t-128, -128, -1, -1, -1, 0, 0, 0, 0, 0, -1, -64, -64, -64, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101,\n\t\t\t\t32, 119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1,\n\t\t\t\t10, 0, 5, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 3, 62, 88, -70,\n\t\t\t\t-36, 11, 48, 74, -8, -126, -67, -40, 10, 5, -126, -8, 32, -40,\n\t\t\t\t109, -59, 56, -100, -24, 57, 114, -34, 16, -92, -86, -57, 10,\n\t\t\t\t48, -70, -106, 109, 61, -36, -90, -50, -25, -75, -97, 96, 34,\n\t\t\t\t-111, -31, 50, 72, 82, 33, -60, 4, 57, 58, 23, 2, 64, -71, 104,\n\t\t\t\t54, 29, -40, 70, 2, 0, 59 };\n\t\treturn data;\n\t}",
"public static void createPNG(final byte[] signature, final OutputStream out) throws IOException {\n final AztecCode aztecCode = Encoder.encode(signature, ECC_PERCENT, LAYERS);\n createPNG(aztecCode.getMatrix(), out);\n }",
"public static void main(String[] args) {\n\t\tDocument pdfDocument = new Document(\"input.pdf\");\n\t\tString outHtmlFile = \"resultant.html\";\n\t\t// Create HtmlSaveOption with tested feature\n\t\tHtmlSaveOptions saveOptions = new HtmlSaveOptions();\n\t\tsaveOptions.setFixedLayout(true);\n\t\t// save images in PNG format instead of SVG\n\t\tsaveOptions.RasterImagesSavingMode = HtmlSaveOptions.RasterImagesSavingModes.AsEmbeddedPartsOfPngPageBackground;\n\t\t// save output as HTML\n\t\tpdfDocument.save(outHtmlFile, saveOptions);\n\t}",
"public static void exportPNGFile(AlignFrame alignFrame, ActionEvent evt) {\n\t JFileChooser chooser = new JFileChooser(lastSelectedFolder);\n\t chooser.setFileFilter(new PngFileFilter());\n\t chooser.setMultiSelectionEnabled(false);\n\t chooser.setDialogTitle(\"Export PNG File Details\");\n\t chooser.requestFocusInWindow();\n\n\t File selectedFile;\n\t chooser.requestFocusInWindow();\n\t int returnVal = chooser.showSaveDialog(alignFrame);\n\n\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\n\t selectedFile = chooser.getSelectedFile();\n\n\t if (!selectedFile.getName().toLowerCase().endsWith(\".png\")) {\n\t selectedFile = new File(selectedFile.getAbsolutePath() + \".png\");\n\t }\n\n\t while (selectedFile.exists()) {\n\t int option = JOptionPane.showConfirmDialog(alignFrame,\n\t \"The file \" + chooser.getSelectedFile().getName() +\n\t \" already exists. Replace file?\",\n\t \"Replace File?\", JOptionPane.YES_NO_CANCEL_OPTION);\n\n\t if (option == JOptionPane.NO_OPTION) {\n\t chooser = new JFileChooser(lastSelectedFolder);\n\t chooser.setFileFilter(new PngFileFilter());\n\t chooser.setMultiSelectionEnabled(false);\n\t chooser.setDialogTitle(\"Export PNG File Details\");\n\n\t returnVal = chooser.showSaveDialog(alignFrame);\n\n\t if (returnVal == JFileChooser.CANCEL_OPTION) {\n\t return;\n\t } else {\n\t selectedFile = chooser.getSelectedFile();\n\n\t if (!selectedFile.getName().toLowerCase().endsWith(\".png\")) {\n\t selectedFile = new File(selectedFile.getAbsolutePath() + \".png\");\n\t }\n\t }\n\t } else { // YES option\n\t break;\n\t }\n\t }\n\n\t alignFrame.setCursor(new Cursor(Cursor.WAIT_CURSOR));\n\n\t try {\n\t selectedFile = chooser.getSelectedFile();\n\n\t if (!selectedFile.getName().toLowerCase().endsWith(\".png\")) {\n\t selectedFile = new File(selectedFile.getAbsolutePath() + \".png\");\n\t }\n\n\t if (selectedFile.exists()) {\n\t selectedFile.delete();\n\t }\n\n\t selectedFile.createNewFile();\n\t // Here comes the actual PNG file export! \n\t alignFrame.getAlignPanel().exportPNGFile(selectedFile);\n\t lastSelectedFolder = selectedFile.getPath();\n\n\t } catch (IOException ex) {\n\t JOptionPane.showMessageDialog(alignFrame,\n\t \"An error occured when exporting the PNG file.\",\n\t \"Error Exporting PNG File\",\n\t JOptionPane.ERROR_MESSAGE);\n\t ex.printStackTrace();\n\t }\n\n\t alignFrame.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\n\t }\n\t }",
"private static final byte[] xfmt_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -94, 1, 0, 0, 0,\n\t\t\t\t0, -1, -1, -1, 28, 28, 28, -128, -128, -128, -64, -64, -64, -1,\n\t\t\t\t-1, -1, 0, 0, 0, 0, 0, 0, 33, -7, 4, 1, 0, 0, 1, 0, 44, 0, 0,\n\t\t\t\t0, 0, 16, 0, 16, 0, 0, 3, 62, 24, -70, -36, 59, 48, 74, -8,\n\t\t\t\t-118, -67, -40, 2, 53, 10, -8, 32, -40, 109, -63, 40, -100,\n\t\t\t\t-24, 57, 114, -98, 80, -92, -86, -57, 2, 48, -70, -106, 109,\n\t\t\t\t45, -36, -90, -50, -25, -75, 31, 96, 34, -111, -31, 50, 72, 82,\n\t\t\t\t32, -60, 4, 57, 58, 23, -62, 64, -71, 104, 54, 29, -40, 70, 2,\n\t\t\t\t0, 59 };\n\t\treturn data;\n\t}",
"public abstract String getImageFormat();",
"private void exportGraphic(ExportableGraphic p_exportable)\r\n {\r\n // Create a few simple file filters.\r\n SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n new SimpleFileFilter(\"png\", \"Portable Network Graphics (*.png)\"),\r\n new SimpleFileFilter(\"jpg\", \"JPEG file (*.jpg)\")\r\n };\r\n\r\n // Save the file.\r\n String filePath = openFileChooser(false, filters);\r\n \r\n // Process the file\r\n if(filePath != null)\r\n {\r\n // Get the file the user selected.\r\n File selectedFile = new File(filePath);\r\n \r\n // Determine the file type.\r\n String fileType = IOLib.getExtension(selectedFile);\r\n if (fileType == null)\r\n {\r\n fileType = ((SimpleFileFilter) m_fc.getFileFilter()).getExtension();\r\n selectedFile = new File(selectedFile.toString() + \".\" + fileType);\r\n }\r\n \r\n // If the file already exists the user has to confirm that it may be \r\n // replaced by the new export.\r\n boolean doExport = true;\r\n if (selectedFile.exists())\r\n {\r\n int response = JOptionPane.showConfirmDialog(m_frame, \"The file \\\"\" + selectedFile.getName() + \"\\\" already exists.\\nDo you want to replace it?\", \"Confirm Save\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\r\n if (response == JOptionPane.NO_OPTION) doExport = false;\r\n }\r\n \r\n // Do the export.\r\n if (doExport) p_exportable.export(selectedFile, fileType);\r\n }\r\n }",
"String getIcon();",
"String getIcon();",
"public static Try<Void> writePngFile(String filePath, BufferedImage image) {\n return imageToPng(image).flatmap(imageBytes -> Files.writeBytes(filePath, imageBytes));\n }",
"java.lang.String getImage();",
"@Test\n public void SVGViewTest1() throws FileNotFoundException {\n AnimatorModel model;\n String filename = \"toh-3.txt\";\n Readable inFile = new FileReader(filename);\n\n AnimationBuilder<AnimatorModel> builder =\n new AnimationBuilderImpl();\n\n model = AnimationReader.parseFile(inFile, builder);\n SVGView view = new SVGView(model, filename, 1);\n assertEquals(\"<svg width=\\\"410\\\" height=\\\"220\\\" viewBox=\\\"145 50 555 270\\\" \"\n + \"version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\">\\n\"\n + \"<rect id=\\\"disk1\\\" x=\\\"190\\\" y=\\\"180\\\" width=\\\"20\\\" height=\\\"30\\\" fill=\\\"\"\n + \"rgb(0,49,90)\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"0.0ms\\\" attributeName=\\\"x\\\" \"\n + \"from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"0.0ms\\\" attributeName=\\\"y\\\" \"\n + \"from=\\\"180.0\\\" to=\\\"180.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"24000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"24000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"180.0\\\" to=\\\"180.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"25000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"25000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"180.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"35000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"35000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"36000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"36000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"46000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"46000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"47000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"47000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"57000.0ms\\\" dur=\\\"32000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"57000.0ms\\\" dur=\\\"32000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"89000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"89000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"99000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"99000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"100000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"100000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"110000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"110000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"111000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"111000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"121000.0ms\\\" dur=\\\"32000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"121000.0ms\\\" dur=\\\"32000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"153000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"153000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"163000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"340.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"163000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"164000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"340.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"164000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"174000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"174000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"175000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"175000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"185000.0ms\\\" dur=\\\"32000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"185000.0ms\\\" dur=\\\"32000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"217000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"217000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"227000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"190.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"227000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"228000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"190.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"228000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"238000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"238000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"239000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"239000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"180.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"CSS\\\" begin=\\\"249000.0ms\\\" dur=\\\"8000.0ms\\\" \"\n + \"attributeName=\\\"fill\\\" from=\\\"rgb(0,49,90)\\\" to=\\\"rgb(0,255,0)\\\" fill=\\\"freeze\\\" \"\n + \"/>\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"257000.0ms\\\" dur=\\\"45000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"490.0\\\" to=\\\"490.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"257000.0ms\\\" dur=\\\"45000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"180.0\\\" to=\\\"180.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"<rect id=\\\"disk2\\\" x=\\\"167\\\" y=\\\"210\\\" width=\\\"65\\\" height=\\\"30\\\" \"\n + \"fill=\\\"rgb(6,247,41)\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"167.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"56000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"167.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"56000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"57000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"167.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"57000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"67000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"167.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"67000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"68000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"167.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"68000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"78000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"78000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"79000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"79000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"89000.0ms\\\" dur=\\\"96000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"89000.0ms\\\" dur=\\\"96000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"185000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"185000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"195000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"317.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"195000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"196000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"317.0\\\" to=\\\"467.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"196000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"206000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"467.0\\\" to=\\\"467.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"206000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"207000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"467.0\\\" to=\\\"467.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"207000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"CSS\\\" begin=\\\"217000.0ms\\\" dur=\\\"8000.0ms\\\" \"\n + \"attributeName=\\\"fill\\\" from=\\\"rgb(6,247,41)\\\" to=\\\"rgb(0,255,0)\\\" fill=\\\"freeze\\\" \"\n + \"/>\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"225000.0ms\\\" dur=\\\"77000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"467.0\\\" to=\\\"467.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"225000.0ms\\\" dur=\\\"77000.0ms\\\"\"\n + \" attributeName=\\\"y\\\" from=\\\"210.0\\\" to=\\\"210.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"<rect id=\\\"disk3\\\" x=\\\"145\\\" y=\\\"240\\\" width=\\\"110\\\" height=\\\"30\\\" \"\n + \"fill=\\\"rgb(11,45,175)\\\" >\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"145.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"0.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"120000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"145.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"1000.0ms\\\" dur=\\\"120000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"121000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"145.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"121000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"131000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"145.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"131000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"132000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"145.0\\\" to=\\\"445.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"132000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"142000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"445.0\\\" to=\\\"445.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"142000.0ms\\\" dur=\\\"1000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"50.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"143000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"445.0\\\" to=\\\"445.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"143000.0ms\\\" dur=\\\"10000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"50.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"CSS\\\" begin=\\\"153000.0ms\\\" dur=\\\"8000.0ms\\\" \"\n + \"attributeName=\\\"fill\\\" from=\\\"rgb(11,45,175)\\\" to=\\\"rgb(0,255,0)\\\" fill=\\\"freeze\\\"\"\n + \" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"161000.0ms\\\" dur=\\\"141000.0ms\\\" \"\n + \"attributeName=\\\"x\\\" from=\\\"445.0\\\" to=\\\"445.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"<animate attributeType=\\\"xml\\\" begin=\\\"161000.0ms\\\" dur=\\\"141000.0ms\\\" \"\n + \"attributeName=\\\"y\\\" from=\\\"240.0\\\" to=\\\"240.0\\\" fill=\\\"freeze\\\" />\\n\"\n + \"</rect>\\n\"\n + \"</svg>\", view.getViewState());\n }"
] | [
"0.68905544",
"0.6500637",
"0.64500946",
"0.6410647",
"0.6118219",
"0.60256726",
"0.58314246",
"0.58228576",
"0.5707507",
"0.57000995",
"0.5697547",
"0.5691737",
"0.5684019",
"0.565718",
"0.56317323",
"0.54907537",
"0.54891735",
"0.54799753",
"0.54532087",
"0.5450165",
"0.54237056",
"0.53871316",
"0.5369751",
"0.5365403",
"0.53467745",
"0.5317986",
"0.5294874",
"0.5276864",
"0.5274822",
"0.52694565",
"0.5263451",
"0.5262512",
"0.52623945",
"0.5261896",
"0.5250447",
"0.52273256",
"0.52254677",
"0.5222735",
"0.5198752",
"0.5176505",
"0.51587087",
"0.5139315",
"0.51384777",
"0.51337206",
"0.5102224",
"0.5091532",
"0.507656",
"0.5069944",
"0.50358534",
"0.50278234",
"0.50244766",
"0.5015984",
"0.49921072",
"0.4976177",
"0.4969357",
"0.4967074",
"0.4918515",
"0.49127597",
"0.49090162",
"0.488934",
"0.48809835",
"0.48798314",
"0.4851961",
"0.4851043",
"0.4842485",
"0.48362324",
"0.4822063",
"0.4807396",
"0.4806027",
"0.4801783",
"0.48005128",
"0.47813222",
"0.47581705",
"0.47566545",
"0.47495303",
"0.47425723",
"0.4738266",
"0.47247836",
"0.47207826",
"0.47192574",
"0.47183844",
"0.47140157",
"0.4713586",
"0.47132188",
"0.47071972",
"0.47027573",
"0.47017077",
"0.46982095",
"0.4680526",
"0.46715736",
"0.46680516",
"0.46641132",
"0.46605757",
"0.46567807",
"0.46534747",
"0.4650308",
"0.4650308",
"0.46428773",
"0.4641276",
"0.4636959"
] | 0.6536556 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.